Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
48af7b16
Commit
48af7b16
authored
Apr 26, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化
parent
6e316b31
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
app/cube-achievements/cube-achievements.component.css
app/cube-achievements/cube-achievements.component.css
+5
-5
app/cube-achievements/cube-achievements.component.html
app/cube-achievements/cube-achievements.component.html
+1
-2
app/cube-achievements/cube-achievements.component.ts
app/cube-achievements/cube-achievements.component.ts
+3
-3
app/cube.ts
app/cube.ts
+1
-1
No files found.
app/cube-achievements/cube-achievements.component.css
View file @
48af7b16
...
...
@@ -29,15 +29,15 @@
background-repeat
:
no-repeat
;
background-origin
:
content-box
;
background-position
:
right
top
;
background-position
:
right
top
;
background-size
:
48px
;
}
div
{
box-sizing
:
content-box
;
div
{
box-sizing
:
content-box
;
}
.panel-my
{
.panel-my
{
border
:
1px
solid
#eceeef
;
border-radius
:
6px
;
background
:
rgba
(
255
,
255
,
255
,
.7
);
...
...
@@ -47,6 +47,6 @@ div{
position
:
relative
;
}
.clear
{
.clear
{
clear
:
both
;
}
app/cube-achievements/cube-achievements.component.html
View file @
48af7b16
...
...
@@ -18,8 +18,7 @@
<div
class=
"panel-footer"
>
<div
class=
"achievement-border"
*ngFor=
"let ac of acLocks"
[title]=
"getTitle(ac)"
>
<div
class=
"achievement ac-progress"
[style.background-image]=
"'url('+ac.image+')'"
>
<div
class=
"gray"
[style.background-image]=
"'url('+ac.image+')'"
[style.width]=
"ac.progress_max ? 100-ac.progress_value/ac.progress_max*100+'%':'100%' "
></div>
<div
class=
"gray"
[style.background-image]=
"'url('+ac.image+')'"
[style.width]=
"ac.progress_max ? 100-ac.progress_value/ac.progress_max*100+'%':'100%' "
></div>
</div>
</div>
<div
class=
"clear"
></div>
...
...
app/cube-achievements/cube-achievements.component.ts
View file @
48af7b16
/**
* Created by zh99998 on 16/9/2.
*/
import
{
Component
,
Input
,
OnChanges
,
SimpleChanges
}
from
'
@angular/core
'
;
import
{
Achievement
,
Cube
}
from
'
../cube
'
;
import
{
Component
,
Input
,
OnChanges
,
SimpleChanges
}
from
'
@angular/core
'
;
import
{
Achievement
,
Cube
}
from
'
../cube
'
;
@
Component
({
...
...
@@ -26,7 +26,7 @@ export class CubeAchievementsComponent implements OnChanges {
this
.
acLocks
=
[];
this
.
acUnlocks
=
[];
console
.
log
(
this
.
currentCube
)
console
.
log
(
this
.
currentCube
)
;
console
.
log
(
Cube
);
for
(
let
ac
of
this
.
currentCube
.
achievements
)
{
let
title
=
ac
.
name
+
'
\n
'
+
ac
.
description
+
'
\n
'
+
(
ac
.
progress_max
?
ac
.
progress_value
+
''
+
...
...
app/cube.ts
View file @
48af7b16
...
...
@@ -384,7 +384,7 @@ export class CubeLocal {
for
(
let
[
k
,
v
]
of
Object
.
entries
(
this
.
files
))
{
t
[
k
]
=
v
;
}
return
{
path
:
this
.
path
,
version
:
this
.
version
,
files
:
t
};
return
{
path
:
this
.
path
,
version
:
this
.
version
,
files
:
t
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment