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
edbbf8ac
Commit
edbbf8ac
authored
Sep 08, 2016
by
h3remi7
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
bbec5216
f706d542
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
86 additions
and
6 deletions
+86
-6
app/app-detail.component.html
app/app-detail.component.html
+56
-2
app/app-detail.component.ts
app/app-detail.component.ts
+1
-0
app/lobby.component.html
app/lobby.component.html
+1
-1
app/lobby.component.ts
app/lobby.component.ts
+6
-2
apps.json
apps.json
+16
-1
index.html
index.html
+5
-0
package.json
package.json
+1
-0
No files found.
app/app-detail.component.html
View file @
edbbf8ac
<h1>
{{name}}
</h1>
<h1>
{{name}}
</h1>
<div
*ngIf=
"!isInstalled"
>
<div
*ngIf=
"!isInstalled"
>
<button
type=
"button"
class=
"btn btn-primary"
>
安装
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
"#install-modal"
>
安装
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
导入
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
导入
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
正版代购
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
正版代购
</button>
</div>
</div>
...
@@ -54,7 +54,8 @@
...
@@ -54,7 +54,8 @@
<th
scope=
"row"
>
{{i + 1}}
</th>
<th
scope=
"row"
>
{{i + 1}}
</th>
<td>
{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}
</td>
<td>
{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}
</td>
<td>
{{mod.type}}
</td>
<td>
{{mod.type}}
</td>
<td
*ngIf=
"checkInstall(mod.id)"
><button
type=
"button"
class=
"btn btn-danger btn-sm"
>
卸载
</button></td>
<td
*ngIf=
"checkInstall(mod.id)"
>
<button
type=
"button"
class=
"btn btn-danger btn-sm"
>
卸载
</button></td>
<td
*ngIf=
"!checkInstall(mod.id)"
>
<td
*ngIf=
"!checkInstall(mod.id)"
>
<button
(click)=
"install(mod.id)"
type=
"button"
class=
"btn btn-primary btn-sm"
>
安装
</button>
<button
(click)=
"install(mod.id)"
type=
"button"
class=
"btn btn-primary btn-sm"
>
安装
</button>
<progress
class=
"progress progress-striped progress-animated"
value=
"25"
max=
"100"
></progress>
<progress
class=
"progress progress-striped progress-animated"
value=
"25"
max=
"100"
></progress>
...
@@ -65,3 +66,56 @@
...
@@ -65,3 +66,56 @@
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<!-- Modal -->
<div
class=
"modal fade"
id=
"install-modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<form
class=
"modal-content"
(ngSubmit)=
"install()"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
安装 {{name}}
</h4>
</div>
<div
class=
"modal-body"
>
<p>
即将开始安装 {{name}}
</p>
<!-- 安装位置选择只在 windows 下存在, 为了方便调试暂时不加ngif -->
<h4>
安装位置
</h4>
<div
class=
"form-group"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"安装位置"
>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-secondary"
type=
"button"
>
浏览
</button>
</span>
</div>
</div>
<h4>
快捷方式
</h4>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
(ngModel)=
"shortcut.application"
>
创建应用程序快捷方式
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
(ngModel)=
"shortcut.desktop"
>
创建桌面快捷方式
</label>
</div>
<h4>
附加内容
</h4>
<div
*ngFor=
"let mod of currentApp.references[platform]"
>
<label>
<input
type=
"checkbox"
(ngModel)=
"__todo__"
[disabled]=
"['dependency', 'runtime'].includes(mod.type)"
>
{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}
</label>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
>
安装
</button>
</div>
</form>
</div>
</div>
app/app-detail.component.ts
View file @
edbbf8ac
...
@@ -11,6 +11,7 @@ declare var process;
...
@@ -11,6 +11,7 @@ declare var process;
styleUrls
:
[
'
app/app-detail.component.css
'
],
styleUrls
:
[
'
app/app-detail.component.css
'
],
})
})
export
class
AppDetailComponent
{
export
class
AppDetailComponent
{
platform
=
process
.
platform
;
constructor
(
private
appsService
:
AppsService
,
private
routingService
:
RoutingService
)
{
constructor
(
private
appsService
:
AppsService
,
private
routingService
:
RoutingService
)
{
}
}
...
...
app/lobby.component.html
View file @
edbbf8ac
<!-- Begin page content -->
<!-- Begin page content -->
<div
id=
"main"
>
<div
id=
"main"
>
<apps></apps>
<apps></apps>
<app-detail></app-detail>
<app-detail
*ngIf=
"routingService.app"
></app-detail>
<roster></roster>
<roster></roster>
</div>
</div>
<webview
id=
"candy"
src=
"https://dev.openflex.net/candy"
></webview>
<webview
id=
"candy"
src=
"https://dev.openflex.net/candy"
></webview>
\ No newline at end of file
app/lobby.component.ts
View file @
edbbf8ac
/**
/**
* Created by zh99998 on 16/9/2.
* Created by zh99998 on 16/9/2.
*/
*/
import
{
Component
}
from
'
@angular/core
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
RoutingService
}
from
"
./routing.service
"
;
@
Component
({
@
Component
({
selector
:
'
lobby
'
,
selector
:
'
lobby
'
,
templateUrl
:
'
app/lobby.component.html
'
,
templateUrl
:
'
app/lobby.component.html
'
,
styleUrls
:
[
'
app/lobby.component.css
'
],
styleUrls
:
[
'
app/lobby.component.css
'
],
})
})
export
class
LobbyComponent
{
}
export
class
LobbyComponent
{
constructor
(
private
routingService
:
RoutingService
)
{
}
}
apps.json
View file @
edbbf8ac
...
@@ -20,7 +20,22 @@
...
@@ -20,7 +20,22 @@
}
}
}
}
},
},
"references"
:
{},
"references"
:
{
"darwin"
:
[
{
"id"
:
"th105"
,
"type"
:
"optional"
},
{
"id"
:
"th12_mod1"
,
"type"
:
"language"
},
{
"id"
:
"th12_mod2"
,
"type"
:
"runtime"
}
]
},
"locales"
:
[
"locales"
:
[
"zh-CN"
"zh-CN"
],
],
...
...
index.html
View file @
edbbf8ac
...
@@ -11,6 +11,11 @@
...
@@ -11,6 +11,11 @@
<script
src=
"node_modules/zone.js/dist/zone.js"
></script>
<script
src=
"node_modules/zone.js/dist/zone.js"
></script>
<script
src=
"node_modules/reflect-metadata/Reflect.js"
></script>
<script
src=
"node_modules/reflect-metadata/Reflect.js"
></script>
<script
src=
"node_modules/systemjs/dist/system.src.js"
></script>
<script
src=
"node_modules/systemjs/dist/system.src.js"
></script>
<script>
delete
module
.
exports
</script>
<script
src=
"node_modules/jquery/dist/jquery.min.js"
></script>
<script
src=
"node_modules/tether/dist/js/tether.min.js"
></script>
<script
src=
"node_modules/bootstrap/dist/js/bootstrap.min.js"
></script>
<!-- 2. Configure SystemJS -->
<!-- 2. Configure SystemJS -->
<script
src=
"systemjs.config.js"
></script>
<script
src=
"systemjs.config.js"
></script>
<script>
<script>
...
...
package.json
View file @
edbbf8ac
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
"
reflect-metadata
"
:
"
latest
"
,
"
reflect-metadata
"
:
"
latest
"
,
"
rxjs
"
:
"
latest
"
,
"
rxjs
"
:
"
latest
"
,
"
systemjs
"
:
"
latest
"
,
"
systemjs
"
:
"
latest
"
,
"
tether
"
:
"
latest
"
,
"
zone.js
"
:
"
latest
"
"
zone.js
"
:
"
latest
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
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