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
7af45124
Commit
7af45124
authored
Nov 25, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安装时显示依赖列表
parent
b3ba1dce
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
22 deletions
+27
-22
app/app-detail.component.css
app/app-detail.component.css
+4
-0
app/app-detail.component.html
app/app-detail.component.html
+11
-5
app/app.ts
app/app.ts
+4
-0
apps.json
apps.json
+8
-17
No files found.
app/app-detail.component.css
View file @
7af45124
...
@@ -17,6 +17,10 @@ progress {
...
@@ -17,6 +17,10 @@ progress {
width
:
100%
;
width
:
100%
;
}
}
.dependency
{
margin-right
:
0.8em
;
}
#news
h3
{
#news
h3
{
font-size
:
1.5rem
;
font-size
:
1.5rem
;
}
}
...
...
app/app-detail.component.html
View file @
7af45124
...
@@ -12,8 +12,10 @@
...
@@ -12,8 +12,10 @@
class=
"progress progress-striped progress-animated"
class=
"progress progress-striped progress-animated"
value=
"{{currentApp.status.progress}}"
max=
"{{currentApp.status.total}}"
></progress>
value=
"{{currentApp.status.progress}}"
max=
"{{currentApp.status.total}}"
></progress>
<div
*ngIf=
"currentApp.status.status==='ready' && (currentApp.id != 'ygopro')"
>
<div
*ngIf=
"currentApp.status.status==='ready' && (currentApp.id != 'ygopro')"
>
<button
(click)=
"runApp(currentApp)"
type=
"button"
class=
"btn btn-primary"
>
运行
</button>
<button
*ngIf=
"currentApp.runable()"
(click)=
"runApp(currentApp)"
type=
"button"
class=
"btn btn-primary"
>
<button
*ngIf=
"currentApp.actions.get('custom')"
(click)=
"custom(currentApp)"
type=
"button"
运行
</button>
<button
*ngIf=
"currentApp.runable() && currentApp.actions.get('custom')"
(click)=
"custom(currentApp)"
type=
"button"
class=
"btn btn-secondary"
>
设置
class=
"btn btn-secondary"
>
设置
</button>
</button>
...
@@ -53,7 +55,7 @@
...
@@ -53,7 +55,7 @@
<br>
<br>
<h2
*ngIf=
"news.length"
>
新闻
</h2>
<h2
*ngIf=
"news
&& news
.length"
>
新闻
</h2>
<div
id=
"news"
*ngFor=
"let item of news"
>
<div
id=
"news"
*ngFor=
"let item of news"
>
<h3>
{{item.title}}
</h3>
<h3>
{{item.title}}
</h3>
...
@@ -75,7 +77,7 @@
...
@@ -75,7 +77,7 @@
<div
*ngIf=
"currentApp.isInstalled()"
>
<div
*ngIf=
"currentApp.isInstalled()"
>
<div
*ngIf=
"mods"
>
<div
*ngIf=
"mods
&& mods.length
"
>
<h2>
{{'mods'|translate}}
</h2>
<h2>
{{'mods'|translate}}
</h2>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<thead
class=
"thead-inverse"
>
<thead
class=
"thead-inverse"
>
...
@@ -150,7 +152,7 @@
...
@@ -150,7 +152,7 @@
{{'create_desktop_shortcut'|translate}}
{{'create_desktop_shortcut'|translate}}
</label>
</label>
</div>
</div>
<h4>
{{'additions'|translate}}
</h4>
<h4
*ngIf=
"installConfig.references.length"
>
{{'additions'|translate}}
</h4>
<div
*ngFor=
"let reference of installConfig.references"
>
<div
*ngFor=
"let reference of installConfig.references"
>
<label>
<label>
<input
type=
"checkbox"
[(ngModel)]=
"reference.install"
name=
"references"
<input
type=
"checkbox"
[(ngModel)]=
"reference.install"
name=
"references"
...
@@ -158,6 +160,10 @@
...
@@ -158,6 +160,10 @@
{{reference.app.name}}
{{reference.app.name}}
</label>
</label>
</div>
</div>
<div>
依赖:
<span
class=
"dependency"
*ngFor=
"let dependency of currentApp.findDependencies()"
>
{{dependency.name}}
</span>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
{{'cancel'|translate}}
</button>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
{{'cancel'|translate}}
</button>
...
...
app/app.ts
View file @
7af45124
...
@@ -65,6 +65,10 @@ export class App {
...
@@ -65,6 +65,10 @@ export class App {
return
!!
this
.
local
;
return
!!
this
.
local
;
}
}
runable
()
{
return
[
Category
.
game
].
includes
(
this
.
category
);
}
constructor
(
app
)
{
constructor
(
app
)
{
this
.
id
=
app
.
id
;
this
.
id
=
app
.
id
;
this
.
name
=
app
.
name
;
this
.
name
=
app
.
name
;
...
...
apps.json
View file @
7af45124
...
@@ -69,22 +69,13 @@
...
@@ -69,22 +69,13 @@
"darwin"
:
"1.06"
"darwin"
:
"1.06"
},
},
"news"
:
[
"news"
:
[
{
"url"
:
"#"
,
"title"
:
"红魔乡新闻"
,
"text"
:
"周刊照片杂志(写真週刊誌)「FLASH」的吉祥物「写写丸」(しゃしゃまる)。该杂志的记者也常以「写写丸」的名义进行体验取材、突击取材等。"
},
{
"url"
:
"#"
,
"title"
:
"红魔乡新闻2"
}
],
],
"conference"
:
"touhou"
"conference"
:
"touhou"
},
},
{
{
"id"
:
"th06-lang-zh-TW"
,
"id"
:
"th06-lang-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方红魔乡 语言包(繁体中文)"
"zh-CN"
:
"东方红魔乡 语言包
(繁体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -225,7 +216,7 @@
...
@@ -225,7 +216,7 @@
{
{
"id"
:
"th07-lang-zh-TW"
,
"id"
:
"th07-lang-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方妖妖梦 语言包(繁体中文)"
"zh-CN"
:
"东方妖妖梦 语言包
(繁体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -366,7 +357,7 @@
...
@@ -366,7 +357,7 @@
{
{
"id"
:
"th075-lang-zh-TW"
,
"id"
:
"th075-lang-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方萃梦想 语言包(繁体中文)"
"zh-CN"
:
"东方萃梦想 语言包
(繁体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -508,7 +499,7 @@
...
@@ -508,7 +499,7 @@
{
{
"id"
:
"th08-lang-zh-CN"
,
"id"
:
"th08-lang-zh-CN"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方永夜抄 语言包(简体中文)"
"zh-CN"
:
"东方永夜抄 语言包
(简体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -649,7 +640,7 @@
...
@@ -649,7 +640,7 @@
{
{
"id"
:
"th09-lang-zh-TW"
,
"id"
:
"th09-lang-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方花映冢 (繁体中文)"
"zh-CN"
:
"东方花映冢
语言包
(繁体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -790,7 +781,7 @@
...
@@ -790,7 +781,7 @@
{
{
"id"
:
"th095-lang-zh-TW"
,
"id"
:
"th095-lang-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方文花帖 (繁体中文)"
"zh-CN"
:
"东方文花帖
语言包
(繁体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -931,7 +922,7 @@
...
@@ -931,7 +922,7 @@
{
{
"id"
:
"th10-lang-zh-CN-zh-TW"
,
"id"
:
"th10-lang-zh-CN-zh-TW"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"东方风神录 语言包 (简体中文
, 繁体中文
)"
"zh-CN"
:
"东方风神录 语言包 (简体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"fxt desc"
"zh-CN"
:
"fxt desc"
...
@@ -2206,7 +2197,7 @@
...
@@ -2206,7 +2197,7 @@
{
{
"id"
:
"ghost_trick-lang-zh-CN"
,
"id"
:
"ghost_trick-lang-zh-CN"
,
"name"
:
{
"name"
:
{
"zh-CN"
:
"幽灵诡计 语言包(简体中文)"
"zh-CN"
:
"幽灵诡计 语言包
(简体中文)"
},
},
"description"
:
{
"description"
:
{
"zh-CN"
:
"A script engine for
\"
yu-gi-oh!
\"
and sample gui."
"zh-CN"
:
"A script engine for
\"
yu-gi-oh!
\"
and sample gui."
...
...
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