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
xiaoye
mycard
Commits
0ed4dbd6
Commit
0ed4dbd6
authored
Apr 21, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
achievements
parent
56940564
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
4 deletions
+27
-4
app/app.module.ts
app/app.module.ts
+2
-3
app/cube-achievements/cube-achievements.component.css
app/cube-achievements/cube-achievements.component.css
+0
-0
app/cube-achievements/cube-achievements.component.html
app/cube-achievements/cube-achievements.component.html
+1
-0
app/cube-achievements/cube-achievements.component.ts
app/cube-achievements/cube-achievements.component.ts
+16
-0
app/cube-detail/cube-detail.component.html
app/cube-detail/cube-detail.component.html
+1
-0
app/cube.ts
app/cube.ts
+7
-1
No files found.
app/app.module.ts
View file @
0ed4dbd6
...
@@ -13,10 +13,8 @@ import { CubesService } from './cubes.service';
...
@@ -13,10 +13,8 @@ import { CubesService } from './cubes.service';
import
{
SettingsService
}
from
'
./settings.sevices
'
;
import
{
SettingsService
}
from
'
./settings.sevices
'
;
import
{
LoginService
}
from
'
./login.service
'
;
import
{
LoginService
}
from
'
./login.service
'
;
import
{
DownloadService
}
from
'
./download.service
'
;
import
{
DownloadService
}
from
'
./download.service
'
;
import
{
AuthGuard
}
from
'
./auth.guard
'
;
import
{
ProgressSpinnerComponent
}
from
'
./progress-spinner/progress-spinner.component
'
;
import
{
ProgressSpinnerComponent
}
from
'
./progress-spinner/progress-spinner.component
'
;
import
{
CommunityComponent
}
from
'
./community/community.component
'
;
import
{
CommunityComponent
}
from
'
./community/community.component
'
;
import
{
LoadingGuard
}
from
'
./loading.guard
'
;
import
{
UpdateComponent
}
from
'
./update/update.component
'
;
import
{
UpdateComponent
}
from
'
./update/update.component
'
;
import
{
WindowControlComponent
}
from
'
./window-control/window-control.component
'
;
import
{
WindowControlComponent
}
from
'
./window-control/window-control.component
'
;
import
{
CubeActionsComponent
}
from
'
./cube-actions/cube-actions.component
'
;
import
{
CubeActionsComponent
}
from
'
./cube-actions/cube-actions.component
'
;
...
@@ -29,6 +27,7 @@ import { ELECTRON_SCHEMA } from 'electron-schema';
...
@@ -29,6 +27,7 @@ import { ELECTRON_SCHEMA } from 'electron-schema';
import
{
MaotamaComponent
}
from
'
./maotama/maotama.component
'
;
import
{
MaotamaComponent
}
from
'
./maotama/maotama.component
'
;
import
{
ProfileComponent
}
from
'
./profile/profile.component
'
;
import
{
ProfileComponent
}
from
'
./profile/profile.component
'
;
import
{
RoutingService
}
from
'
./routing.sevices
'
;
import
{
RoutingService
}
from
'
./routing.sevices
'
;
import
{
CubeAchievementsComponent
}
from
'
./cube-achievements/cube-achievements.component
'
;
@
NgModule
({
@
NgModule
({
imports
:
[
BrowserModule
,
FormsModule
,
ReactiveFormsModule
,
HttpModule
],
imports
:
[
BrowserModule
,
FormsModule
,
ReactiveFormsModule
,
HttpModule
],
...
@@ -37,7 +36,7 @@ import { RoutingService } from './routing.sevices';
...
@@ -37,7 +36,7 @@ import { RoutingService } from './routing.sevices';
CubeDetailComponent
,
RosterComponent
,
YGOProComponent
,
CandyComponent
,
CubeDetailComponent
,
RosterComponent
,
YGOProComponent
,
CandyComponent
,
ProgressSpinnerComponent
,
CommunityComponent
,
UpdateComponent
,
WindowControlComponent
,
ProgressSpinnerComponent
,
CommunityComponent
,
UpdateComponent
,
WindowControlComponent
,
CubeActionsComponent
,
CubeArenaComponent
,
CubeDescriptionComponent
,
CubeNewsComponent
,
CubeExpansionsComponent
,
CubeActionsComponent
,
CubeArenaComponent
,
CubeDescriptionComponent
,
CubeNewsComponent
,
CubeExpansionsComponent
,
ProgressBarComponent
,
MaotamaComponent
,
ProfileComponent
ProgressBarComponent
,
MaotamaComponent
,
ProfileComponent
,
CubeAchievementsComponent
],
],
bootstrap
:
[
MoeCubeComponent
],
bootstrap
:
[
MoeCubeComponent
],
providers
:
[
providers
:
[
...
...
app/cube-achievements/cube-achievements.component.css
0 → 100644
View file @
0ed4dbd6
app/cube-achievements/cube-achievements.component.html
0 → 100644
View file @
0ed4dbd6
成就
app/cube-achievements/cube-achievements.component.ts
0 → 100644
View file @
0ed4dbd6
/**
* Created by zh99998 on 16/9/2.
*/
import
{
Component
,
Input
}
from
'
@angular/core
'
;
import
{
Cube
}
from
'
../cube
'
;
@
Component
({
selector
:
'
cube-achievements
'
,
templateUrl
:
'
./cube-achievements.component.html
'
,
styleUrls
:
[
'
./cube-achievements.component.css
'
],
})
export
class
CubeAchievementsComponent
{
@
Input
()
currentCube
:
Cube
;
}
app/cube-detail/cube-detail.component.html
View file @
0ed4dbd6
<ng-container
*ngIf=
"currentCube"
>
<ng-container
*ngIf=
"currentCube"
>
<cube-actions
[currentCube]=
"currentCube"
class=
"panel"
></cube-actions>
<cube-actions
[currentCube]=
"currentCube"
class=
"panel"
></cube-actions>
<cube-achievements
*ngIf=
"currentCube.useAchievements()"
[currentCube]=
"currentCube"
class=
"panel"
></cube-achievements>
<cube-arena
*ngIf=
"currentCube.useArena()"
[currentCube]=
"currentCube"
class=
"panel"
></cube-arena>
<cube-arena
*ngIf=
"currentCube.useArena()"
[currentCube]=
"currentCube"
class=
"panel"
></cube-arena>
<cube-description
*ngIf=
"currentCube.useDescription()"
[currentCube]=
"currentCube"
></cube-description>
<cube-description
*ngIf=
"currentCube.useDescription()"
[currentCube]=
"currentCube"
></cube-description>
<cube-news
*ngIf=
"currentCube.useNews()"
[currentCube]=
"currentCube"
class=
"panel"
></cube-news>
<cube-news
*ngIf=
"currentCube.useNews()"
[currentCube]=
"currentCube"
class=
"panel"
></cube-news>
...
...
app/cube.ts
View file @
0ed4dbd6
...
@@ -35,6 +35,7 @@ export class Cube {
...
@@ -35,6 +35,7 @@ export class Cube {
// 宣传片
// 宣传片
trailer
:
{
url
:
string
,
type
:
'
video
'
|
'
image
'
,
url2
?:
string
}[];
trailer
:
{
url
:
string
,
type
:
'
video
'
|
'
image
'
,
url2
?:
string
}[];
achievements
:
{
name
:
string
,
description
:
string
,
unlocked
:
boolean
,
unlocked_at
:
Date
}[];
static
downloadUrl
(
app
:
Cube
,
platform
:
string
,
locale
:
string
):
string
{
static
downloadUrl
(
app
:
Cube
,
platform
:
string
,
locale
:
string
):
string
{
if
(
app
.
id
===
'
ygopro
'
)
{
if
(
app
.
id
===
'
ygopro
'
)
{
...
@@ -144,6 +145,10 @@ export class Cube {
...
@@ -144,6 +145,10 @@ export class Cube {
return
this
.
useRun
()
&&
!!
this
.
actions
.
get
(
'
custom
'
);
return
this
.
useRun
()
&&
!!
this
.
actions
.
get
(
'
custom
'
);
}
}
useAchievements
():
boolean
{
return
this
.
achievements
.
length
>
0
;
}
progressMessage
():
string
|
undefined
{
progressMessage
():
string
|
undefined
{
return
this
.
status
.
progressMessage
;
return
this
.
status
.
progressMessage
;
}
}
...
@@ -178,6 +183,7 @@ export class Cube {
...
@@ -178,6 +183,7 @@ export class Cube {
this
.
key
=
app
.
key
;
this
.
key
=
app
.
key
;
this
.
trailer
=
app
.
trailer
||
[];
this
.
trailer
=
app
.
trailer
||
[];
this
.
achievements
=
app
.
achievements
||
[];
// { url: 'http://cdn.edgecast.steamstatic.com/steam/apps/2036126/movie480.webm', type: 'video', url2:''},
// { url: 'http://cdn.edgecast.steamstatic.com/steam/apps/2036126/movie480.webm', type: 'video', url2:''},
// {
// {
// url: 'http://cdn.edgecast.steamstatic.com/steam/apps/264710/ss_e41e71c05f3fcf08e54140bd9f1ffc9008706843.600x338.jpg',
// url: 'http://cdn.edgecast.steamstatic.com/steam/apps/264710/ss_e41e71c05f3fcf08e54140bd9f1ffc9008706843.600x338.jpg',
...
@@ -272,7 +278,7 @@ export class CubeLocal {
...
@@ -272,7 +278,7 @@ export class CubeLocal {
for
(
let
[
k
,
v
]
of
Object
.
entries
(
this
.
files
))
{
for
(
let
[
k
,
v
]
of
Object
.
entries
(
this
.
files
))
{
t
[
k
]
=
v
;
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