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
f401a953
Commit
f401a953
authored
Sep 07, 2016
by
h3remi7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chage app struct
parent
1d10647c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
18 deletions
+61
-18
app/app.ts
app/app.ts
+12
-5
apps.json
apps.json
+49
-13
No files found.
app/app.ts
View file @
f401a953
import
{
AppLocal
}
from
"
./app-local
"
;
enum
Reference_Type
{
/*
export enum Reference_Type {
runtime, // directx
emulator, // wine, np2
dependency, //
optional, // fxtz
language
}
enum
App_Category
{
*/
/*
export enum App_Category {
game,
music,
book,
runtime, // directx
emulator, // wine, np2
language
}
*/
export
class
App
{
id
:
string
;
...
...
@@ -21,7 +28,7 @@ export class App {
homepage
:
string
;
category
:
string
;
actions
:
{[
platform
:
string
]:
{[
action
:
string
]:
{
execute
:
string
,
args
:
string
[],
env
:
{},
open
:
string
}}};
references
:
{
id
:
string
,
type
:
Reference_Type
}[]
;
references
:
{
[
platform
:
string
]:
{
id
:
string
,
type
:
string
}[]}
;
locales
:
string
[];
download
:
string
;
// meta4 url
news
:
{
title
:
string
,
url
:
string
,
image
:
string
}[];
...
...
@@ -34,7 +41,7 @@ export class App {
this
.
description
=
app
.
description
;
this
.
author
=
app
.
author
;
this
.
homepage
=
app
.
homepage
;
this
.
category
=
app
.
category
;
this
.
category
=
app
.
category
;
this
.
actions
=
app
.
actions
;
this
.
references
=
app
.
references
;
this
.
locales
=
app
.
locales
;
...
...
apps.json
View file @
f401a953
...
...
@@ -10,7 +10,7 @@
},
"author"
:
"ZUN"
,
"homepage"
:
"http://www.myacg.cc"
,
"category"
:
"
ACT
"
,
"category"
:
"
game
"
,
"actions"
:
{
"darwin"
:
{
"main"
:
{
...
...
@@ -28,12 +28,17 @@
"locales"
:
[
"zh-CN"
],
"download"
:
""
,
"news"
:
[{
"title"
:
"title"
,
"url"
:
""
,
"image"
:
""
"title"
:
"News Title"
,
"url"
:
"#"
,
"image"
:
"http://www.myacg.cc/wp-content/uploads/2000/01/newBanner51.jpg"
},
{
"title"
:
"News Title"
,
"url"
:
"#"
,
"image"
:
"http://www.myacg.cc/wp-content/uploads/2000/01/newBanner51.jpg"
}
],
"tags"
:
[
"
ACT
"
],
"tags"
:
[
"
game
"
],
"local"
:
{
"path"
:
""
,
"version"
:
""
...
...
@@ -50,7 +55,43 @@
},
"author"
:
"ZUN"
,
"homepage"
:
"http://www.myacg.cc"
,
"category"
:
"ACT"
,
"category"
:
"game"
,
"actions"
:
{
"darwin"
:
{
"main"
:
{
"execute"
:
""
,
"args"
:
[],
"env"
:
""
,
"open"
:
""
}
}
},
"references"
:
{
"id"
:
"th12_mod1"
,
"type"
:
"language"
},
"locales"
:
[
"zh-CN"
],
"download"
:
""
,
"news"
:
[],
"tags"
:
[
"STG"
],
"local"
:
{
"path"
:
"/foo/bar"
,
"version"
:
"10.3"
}
},
{
"id"
:
"th12_mod1"
,
"name"
:
{
"zh-CN"
:
"th12_mod1"
},
"description"
:
{
"zh-CN"
:
"th12 desc"
},
"author"
:
"ZUN"
,
"homepage"
:
"http://www.myacg.cc"
,
"category"
:
"language"
,
"actions"
:
{
"darwin"
:
{
"main"
:
{
...
...
@@ -67,13 +108,8 @@
},
"locales"
:
[
"zh-CN"
],
"download"
:
""
,
"news"
:
[{
"title"
:
"title"
,
"url"
:
""
,
"image"
:
""
}
],
"tags"
:
[
"ACT"
],
"news"
:
[],
"tags"
:
[
"STG"
],
"local"
:
{
"path"
:
"/foo/bar"
,
"version"
:
"10.3"
...
...
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