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
9ddb7a45
Commit
9ddb7a45
authored
Dec 14, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
progress
parent
103864ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/app-detail.component.html
app/app-detail.component.html
+2
-2
app/ygopro.component.ts
app/ygopro.component.ts
+1
-2
No files found.
app/app-detail.component.html
View file @
9ddb7a45
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<span
*ngIf=
"currentApp.status.total"
>
{{(currentApp.status.progress/currentApp.status.total * 100).toFixed()}}%
</span>
<span
*ngIf=
"currentApp.status.total"
>
{{(currentApp.status.progress/currentApp.status.total * 100).toFixed()}}%
</span>
<span>
{{currentApp.progressMessage()}}
</span>
<span>
{{currentApp.progressMessage()}}
</span>
</div>
</div>
<progress
class=
"progress"
[class.progress-striped]=
"!currentApp.status.total"
[class.progress-animated]=
"!currentApp.status.total"
value=
"{{currentApp.status.
progress
}}"
max=
"{{currentApp.status.total}}"
></progress>
<progress
class=
"progress"
[class.progress-striped]=
"!currentApp.status.total"
[class.progress-animated]=
"!currentApp.status.total"
value=
"{{currentApp.status.
total ? currentApp.status.progress : 1
}}"
max=
"{{currentApp.status.total}}"
></progress>
</div>
</div>
<!--应用ready-->
<!--应用ready-->
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<button
i18n
(click)=
"installMod(mod)"
[disabled]=
"mod.isInstalled()&&!appsService.allReady(mod)"
type=
"button"
*ngIf=
"!mod.isInstalled()"
class=
"btn btn-primary btn-sm"
>
安装
</button>
<button
i18n
(click)=
"installMod(mod)"
[disabled]=
"mod.isInstalled()&&!appsService.allReady(mod)"
type=
"button"
*ngIf=
"!mod.isInstalled()"
class=
"btn btn-primary btn-sm"
>
安装
</button>
</td>
</td>
<td
*ngIf=
"mod.isInstalled()&&!mod.isReady()"
>
<td
*ngIf=
"mod.isInstalled()&&!mod.isReady()"
>
<progress
class=
"progress progress-striped progress-animated"
value=
"{{mod.status.
progress
}}"
max=
"{{mod.status.total}}"
></progress>
<progress
class=
"progress progress-striped progress-animated"
value=
"{{mod.status.
total ? mod.status.progress : 1
}}"
max=
"{{mod.status.total}}"
></progress>
<!--<div i18n *ngIf="mod.isWaiting()">等待安装...</div>-->
<!--<div i18n *ngIf="mod.isWaiting()">等待安装...</div>-->
</td>
</td>
</tr>
</tr>
...
...
app/ygopro.component.ts
View file @
9ddb7a45
...
@@ -14,7 +14,6 @@ import {App} from "./app";
...
@@ -14,7 +14,6 @@ import {App} from "./app";
import
{
Http
,
Headers
,
URLSearchParams
}
from
"
@angular/http
"
;
import
{
Http
,
Headers
,
URLSearchParams
}
from
"
@angular/http
"
;
import
"
rxjs/Rx
"
;
import
"
rxjs/Rx
"
;
import
{
ISubscription
}
from
"
rxjs/Subscription
"
;
import
{
ISubscription
}
from
"
rxjs/Subscription
"
;
import
{
SettingsService
}
from
"
./settings.sevices
"
;
import
{
AppsService
}
from
"
./apps.service
"
;
import
{
AppsService
}
from
"
./apps.service
"
;
declare
const
$
:
any
;
declare
const
$
:
any
;
...
@@ -167,7 +166,7 @@ export class YGOProComponent implements OnInit {
...
@@ -167,7 +166,7 @@ export class YGOProComponent implements OnInit {
async
refresh
()
{
async
refresh
()
{
let
decks
=
await
this
.
get_decks
();
let
decks
=
await
this
.
get_decks
();
this
.
decks
=
decks
;
this
.
decks
=
decks
;
if
(
!
(
this
.
current_deck
in
this
.
decks
))
{
if
(
!
(
this
.
decks
.
includes
(
this
.
current_deck
)
))
{
this
.
current_deck
=
decks
[
0
];
this
.
current_deck
=
decks
[
0
];
}
}
};
};
...
...
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