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
a93fb0a8
Commit
a93fb0a8
authored
Apr 19, 2017
by
2breakegg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/moecube/moecube
into dev
parents
1e2e0ed1
a297980c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
app/cube.ts
app/cube.ts
+11
-0
tsconfig.json
tsconfig.json
+1
-1
No files found.
app/cube.ts
View file @
a93fb0a8
...
@@ -33,6 +33,9 @@ export class Cube {
...
@@ -33,6 +33,9 @@ export class Cube {
price
:
{
[
currency
:
string
]:
string
};
price
:
{
[
currency
:
string
]:
string
};
key
?:
string
;
key
?:
string
;
// 宣传片
trailer
:
{
url
:
string
,
type
:
'
video
'
|
'
image
'
}[];
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
'
)
{
return
`https://api.moecube.com/metalinks/
${
app
.
id
}
-
${
process
.
platform
}
-
${
locale
}
/
${
app
.
version
}
`
;
return
`https://api.moecube.com/metalinks/
${
app
.
id
}
-
${
process
.
platform
}
-
${
locale
}
/
${
app
.
version
}
`
;
...
@@ -173,6 +176,14 @@ export class Cube {
...
@@ -173,6 +176,14 @@ export class Cube {
this
.
price
=
app
.
price
;
this
.
price
=
app
.
price
;
this
.
key
=
app
.
key
;
this
.
key
=
app
.
key
;
this
.
trailer
=
[
{
url
:
'
http://cdn.edgecast.steamstatic.com/steam/apps/2036126/movie480.webm
'
,
type
:
'
video
'
},
{
url
:
'
http://cdn.edgecast.steamstatic.com/steam/apps/264710/ss_e41e71c05f3fcf08e54140bd9f1ffc9008706843.600x338.jpg
'
,
type
:
'
image
'
}
];
}
}
findDependencies
():
Cube
[]
{
findDependencies
():
Cube
[]
{
...
...
tsconfig.json
View file @
a93fb0a8
{
{
"compilerOptions"
:
{
"compilerOptions"
:
{
"target"
:
"es
2017
"
,
"target"
:
"es
6
"
,
"module"
:
"commonjs"
,
"module"
:
"commonjs"
,
"moduleResolution"
:
"node"
,
"moduleResolution"
:
"node"
,
"sourceMap"
:
true
,
"sourceMap"
:
true
,
...
...
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