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
56b61486
Commit
56b61486
authored
Oct 20, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ygopro
parent
a2adc47c
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1091 additions
and
1042 deletions
+1091
-1042
app/app-detail.component.html
app/app-detail.component.html
+23
-10
app/app-detail.component.ts
app/app-detail.component.ts
+0
-4
app/apps.service.ts
app/apps.service.ts
+4
-0
app/mycard.module.ts
app/mycard.module.ts
+3
-1
app/ygopro.component.css
app/ygopro.component.css
+0
-0
app/ygopro.component.html
app/ygopro.component.html
+23
-0
app/ygopro.component.ts
app/ygopro.component.ts
+15
-0
apps.json
apps.json
+1023
-1027
No files found.
app/app-detail.component.html
View file @
56b61486
...
@@ -15,12 +15,13 @@
...
@@ -15,12 +15,13 @@
</progress>
</progress>
</div>
</div>
</div>
</div>
<div
*ngIf=
"isInstalled"
>
<div
*ngIf=
"isInstalled
&& (routingService.app != 'ygopro')
"
>
<button
(click)=
"startApp(routingService.app)"
type=
"button"
class=
"btn btn-primary"
>
运行
</button>
<button
(click)=
"startApp(routingService.app)"
type=
"button"
class=
"btn btn-primary"
>
运行
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
设置
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
设置
</button>
<button
(click)=
"
openDir
(routingService.app)"
type=
"button"
class=
"btn btn-secondary"
>
游览本地文件
</button>
<button
(click)=
"
appsService.browse
(routingService.app)"
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>
<ygopro
*ngIf=
"isInstalled && (routingService.app == 'ygopro')"
></ygopro>
<br>
<br>
...
@@ -65,12 +66,22 @@
...
@@ -65,12 +66,22 @@
<td>
{{'app.' + mod.id + '.name' | translate}}
</td>
<td>
{{'app.' + mod.id + '.name' | translate}}
</td>
<td>
{{mod.type}}
</td>
<td>
{{mod.type}}
</td>
<td
*ngIf=
"checkInstall(mod.id)"
>
<td
*ngIf=
"checkInstall(mod.id)"
>
<button
type=
"button"
class=
"btn btn-danger btn-sm"
>
卸载
</button></td>
<button
type=
"button"
class=
"btn btn-danger btn-sm"
>
卸载
</button>
</td>
<td
*ngIf=
"!checkInstall(mod.id)"
>
<td
*ngIf=
"!checkInstall(mod.id)"
>
<button
*ngIf=
"!appsService.getDownloadInfo(mod.id)"
(click)=
"install(mod.id)"
type=
"button"
class=
"btn btn-primary btn-sm"
>
安装
</button>
<button
*ngIf=
"!appsService.getDownloadInfo(mod.id)"
(click)=
"install(mod.id)"
type=
"button"
<progress
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'active'"
class=
"progress progress-striped progress-animated"
value=
"{{appsService.getDownloadInfo(mod.id).progress}}"
max=
"100"
></progress>
class=
"btn btn-primary btn-sm"
>
安装
<div
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'wait'"
>
等待安装...
</div>
</button>
<div
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'install'"
>
正在安装...
</div>
<progress
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'active'"
class=
"progress progress-striped progress-animated"
value=
"{{appsService.getDownloadInfo(mod.id).progress}}"
max=
"100"
></progress>
<div
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'wait'"
>
等待安装...
</div>
<div
*ngIf=
"appsService.getDownloadInfo(mod.id) && appsService.getDownloadInfo(mod.id).status === 'install'"
>
正在安装...
</div>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -84,7 +95,7 @@
...
@@ -84,7 +95,7 @@
{{appsService.tarQueue | json}}
{{appsService.tarQueue | json}}
{{appsService.waitInstallQueue | json}}
{{appsService.waitInstallQueue | json}}
</pre>
</pre>
<button
(click)=
"appsService.doTar()"
>
DOTAR
</button>
<button
(click)=
"appsService.doTar()"
>
DOTAR
</button>
<!-- Modal -->
<!-- Modal -->
<div
class=
"modal fade"
id=
"install-modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
<div
class=
"modal fade"
id=
"install-modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
...
@@ -103,7 +114,8 @@
...
@@ -103,7 +114,8 @@
<h4>
安装位置
</h4>
<h4>
安装位置
</h4>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"text"
[(ngModel)]=
"appsService.installConfig.installDir"
name=
"installDir"
class=
"form-control"
placeholder=
"安装位置"
>
<input
type=
"text"
[(ngModel)]=
"appsService.installConfig.installDir"
name=
"installDir"
class=
"form-control"
placeholder=
"安装位置"
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
(click)=
"selectDir()"
class=
"btn btn-secondary"
type=
"button"
>
浏览
</button>
<button
(click)=
"selectDir()"
class=
"btn btn-secondary"
type=
"button"
>
浏览
</button>
</span>
</span>
...
@@ -112,7 +124,8 @@
...
@@ -112,7 +124,8 @@
<h4>
快捷方式
</h4>
<h4>
快捷方式
</h4>
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<input
type=
"checkbox"
[(ngModel)]=
"appsService.installConfig.shortcut.application"
name=
"application"
>
<input
type=
"checkbox"
[(ngModel)]=
"appsService.installConfig.shortcut.application"
name=
"application"
>
创建应用程序快捷方式
创建应用程序快捷方式
</label>
</label>
</div>
</div>
...
...
app/app-detail.component.ts
View file @
56b61486
...
@@ -134,10 +134,6 @@ export class AppDetailComponent {
...
@@ -134,10 +134,6 @@ export class AppDetailComponent {
return
dir
[
0
];
return
dir
[
0
];
}
}
openDir
(
id
)
{
this
.
electron
.
remote
.
shell
.
showItemInFolder
(
this
.
appsService
.
searchApp
(
id
).
local
.
path
);
}
startApp
(
id
)
{
startApp
(
id
)
{
let
execute
=
this
.
path
.
join
(
this
.
appsService
.
searchApp
(
id
).
local
.
path
,
this
.
appsService
.
searchApp
(
id
).
actions
[
process
.
platform
][
"
main
"
].
execute
);
let
execute
=
this
.
path
.
join
(
this
.
appsService
.
searchApp
(
id
).
local
.
path
,
this
.
appsService
.
searchApp
(
id
).
actions
[
process
.
platform
][
"
main
"
].
execute
);
let
args
=
this
.
appsService
.
searchApp
(
id
).
actions
[
process
.
platform
][
"
main
"
].
args
;
let
args
=
this
.
appsService
.
searchApp
(
id
).
actions
[
process
.
platform
][
"
main
"
].
args
;
...
...
app/apps.service.ts
View file @
56b61486
...
@@ -430,4 +430,8 @@ export class AppsService {
...
@@ -430,4 +430,8 @@ export class AppsService {
return
!
1
;
return
!
1
;
return
!
0
return
!
0
}
}
browse
(
id
)
{
this
.
electron
.
remote
.
shell
.
showItemInFolder
(
this
.
searchApp
(
id
).
local
.
path
);
}
}
}
app/mycard.module.ts
View file @
56b61486
...
@@ -13,6 +13,8 @@ import {RosterComponent} from './roster.component';
...
@@ -13,6 +13,8 @@ import {RosterComponent} from './roster.component';
import
{
CandyComponent
}
from
'
./candy.component
'
;
import
{
CandyComponent
}
from
'
./candy.component
'
;
import
{
CommunityComponent
}
from
'
./community.component
'
;
import
{
CommunityComponent
}
from
'
./community.component
'
;
import
{
YGOProComponent
}
from
'
./ygopro.component
'
;
import
{
RoutingService
}
from
'
./routing.service
'
;
import
{
RoutingService
}
from
'
./routing.service
'
;
import
{
AppsService
}
from
'
./apps.service
'
;
import
{
AppsService
}
from
'
./apps.service
'
;
...
@@ -20,7 +22,7 @@ import {TranslateModule} from 'ng2-translate';
...
@@ -20,7 +22,7 @@ import {TranslateModule} from 'ng2-translate';
@
NgModule
({
@
NgModule
({
imports
:
[
BrowserModule
,
FormsModule
,
HttpModule
,
TranslateModule
.
forRoot
()],
imports
:
[
BrowserModule
,
FormsModule
,
HttpModule
,
TranslateModule
.
forRoot
()],
declarations
:
[
MyCardComponent
,
LoginComponent
,
StoreComponent
,
LobbyComponent
,
CommunityComponent
,
AppsComponent
,
AppDetailComponent
,
RosterComponent
,
CandyComponent
],
declarations
:
[
MyCardComponent
,
LoginComponent
,
StoreComponent
,
LobbyComponent
,
CommunityComponent
,
AppsComponent
,
AppDetailComponent
,
RosterComponent
,
CandyComponent
,
YGOProComponent
],
bootstrap
:
[
MyCardComponent
],
bootstrap
:
[
MyCardComponent
],
providers
:
[
RoutingService
,
AppsService
],
providers
:
[
RoutingService
,
AppsService
],
schemas
:
[
NO_ERRORS_SCHEMA
]
schemas
:
[
NO_ERRORS_SCHEMA
]
...
...
app/ygopro.component.css
0 → 100644
View file @
56b61486
app/ygopro.component.html
0 → 100644
View file @
56b61486
<form
class=
"form-inline"
>
<div
class=
"form-group"
>
<label
for=
"exampleSelect1"
>
卡组
</label>
<select
class=
"form-control"
id=
"exampleSelect1"
>
<option>
1
</option>
<option>
2
</option>
<option>
3
</option>
<option>
4
</option>
<option>
5
</option>
</select>
</div>
<button
type=
"submit"
class=
"btn btn-secondary"
>
编辑
</button>
<button
type=
"submit"
class=
"btn btn-secondary"
>
删除
</button>
</form>
<div>
<button
type=
"button"
class=
"btn btn-primary"
>
竞技匹配
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
娱乐匹配
</button>
<!--<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-create-modal">创建房间</button>-->
<button
type=
"button"
class=
"btn btn-secondary"
data-toggle=
"modal"
data-target=
"#game-list-modal"
>
房间列表
</button>
<button
type=
"button"
class=
"btn btn-secondary"
data-toggle=
"modal"
data-target=
"#game-create-windbot"
>
单人模式
</button>
<button
(click)=
"appsService.browse(routingService.app)"
type=
"button"
class=
"btn btn-secondary"
>
浏览本地文件
</button>
</div>
\ No newline at end of file
app/ygopro.component.ts
0 → 100644
View file @
56b61486
/**
* Created by zh99998 on 16/9/2.
*/
import
{
Component
}
from
'
@angular/core
'
;
import
{
AppsService
}
from
"
./apps.service
"
;
import
{
RoutingService
}
from
"
./routing.service
"
;
@
Component
({
selector
:
'
ygopro
'
,
templateUrl
:
'
app/ygopro.component.html
'
,
styleUrls
:
[
'
app/ygopro.component.css
'
],
})
export
class
YGOProComponent
{
constructor
(
private
appsService
:
AppsService
,
private
routingService
:
RoutingService
)
{
}
}
apps.json
View file @
56b61486
This diff is collapsed.
Click to expand it.
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