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
14ab6ac3
Commit
14ab6ac3
authored
May 05, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update verify progress tip
parent
fe1f5b74
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
app/app-detail.component.html
app/app-detail.component.html
+2
-0
app/app.ts
app/app.ts
+8
-0
app/apps.service.ts
app/apps.service.ts
+3
-1
No files found.
app/app-detail.component.html
View file @
14ab6ac3
...
...
@@ -28,6 +28,8 @@
<span
i18n
*ngIf=
"currentApp.isUninstalling()"
>
正在卸载...
</span>
<span
i18n
*ngIf=
"currentApp.isWaiting()"
>
等待安装...
</span>
<span
i18n
*ngIf=
"currentApp.isUpdating()"
>
正在更新...
</span>
<span
i18n
*ngIf=
"currentApp.isGettingFileList()"
>
正在获取文件列表...
</span>
<span
i18n
*ngIf=
"currentApp.isVerifying()"
>
正在校验...
</span>
<span
*ngIf=
"currentApp.status.total"
>
{{(currentApp.status.progress/currentApp.status.total * 100).toFixed()}}%
</span>
<span>
{{currentApp.progressMessage()}}
</span>
</div>
...
...
app/app.ts
View file @
14ab6ac3
...
...
@@ -188,6 +188,14 @@ export class App {
return
this
.
status
.
status
===
'
updating
'
;
}
isGettingFileList
():
boolean
{
return
this
.
status
.
status
===
'
gettingFileList
'
;
}
isVerifying
():
boolean
{
return
this
.
status
.
status
===
'
verifying
'
;
}
runnable
():
boolean
{
return
[
Category
.
game
].
includes
(
this
.
category
);
}
...
...
app/apps.service.ts
View file @
14ab6ac3
...
...
@@ -501,12 +501,13 @@ export class AppsService {
readyToUpdate
=
app
.
isReady
()
&&
mods
.
every
((
mod
)
=>
mod
.
isReady
());
}
if
(
readyToUpdate
&&
(
verify
||
app
.
local
!
.
version
!==
app
.
version
))
{
app
.
status
.
status
=
'
updating
'
;
app
.
status
.
status
=
'
gettingFileList
'
;
try
{
Logger
.
info
(
'
Checking updating:
'
,
app
);
let
latestFiles
=
await
this
.
getChecksumFile
(
app
);
let
localFiles
:
Map
<
string
,
string
>
|
undefined
;
if
(
verify
)
{
app
.
status
.
status
=
'
verifying
'
;
// 刷新进度条
let
interval
=
setInterval
(()
=>
{
},
500
);
...
...
@@ -527,6 +528,7 @@ export class AppsService {
}
else
{
localFiles
=
app
.
local
!
.
files
;
}
app
.
status
.
status
=
'
updating
'
;
let
addedFiles
:
Set
<
string
>
=
new
Set
<
string
>
();
let
changedFiles
:
Set
<
string
>
=
new
Set
<
string
>
();
let
deletedFiles
:
Set
<
string
>
=
new
Set
<
string
>
();
...
...
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