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
b1aeea39
Commit
b1aeea39
authored
Dec 08, 2016
by
wudizhanche1000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新
parent
ff7bf7d1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
172 additions
and
39 deletions
+172
-39
app/app-detail.component.html
app/app-detail.component.html
+1
-1
app/app-detail.component.ts
app/app-detail.component.ts
+4
-0
app/apps.service.ts
app/apps.service.ts
+166
-37
app/download.service.ts
app/download.service.ts
+1
-1
No files found.
app/app-detail.component.html
View file @
b1aeea39
...
...
@@ -76,7 +76,7 @@
</div>
<h2
i18n
>
本地文件
</h2>
<button
i18n
(click)=
"appsService.browse(currentApp)"
type=
"button"
class=
"btn btn-secondary"
>
浏览本地文件
</button>
<button
i18n
type=
"button"
class=
"btn btn-secondary"
>
校验完整性
</button>
<button
i18n
type=
"button"
(click)=
"verifyFiles(currentApp)"
class=
"btn btn-secondary"
>
校验完整性
</button>
<button
i18n
(click)=
"uninstall(currentApp)"
type=
"button"
class=
"btn btn-secondary"
>
卸载
</button>
</div>
...
...
app/app-detail.component.ts
View file @
b1aeea39
...
...
@@ -145,6 +145,10 @@ export class AppDetailComponent implements OnInit {
this
.
appsService
.
runApp
(
app
,
'
custom
'
);
}
verifyFiles
(
app
:
App
)
{
this
.
appsService
.
verifyFiles
(
app
);
}
copy
(
text
:
string
)
{
clipboard
.
writeText
(
text
);
}
...
...
app/apps.service.ts
View file @
b1aeea39
This diff is collapsed.
Click to expand it.
app/download.service.ts
View file @
b1aeea39
...
...
@@ -23,7 +23,7 @@ export class DownloadStatus {
downloadSpeed
:
number
;
get
downloadSpeedText
():
string
{
if
(
!
isNaN
(
this
.
downloadSpeed
))
{
if
(
!
isNaN
(
this
.
downloadSpeed
)
&&
this
.
downloadSpeed
!==
0
)
{
const
speedUnit
=
[
"
Byte/s
"
,
"
KB/s
"
,
"
MB/s
"
,
"
GB/s
"
,
"
TB/s
"
];
let
currentUnit
=
Math
.
floor
(
Math
.
log
(
this
.
downloadSpeed
)
/
Math
.
log
(
1024
));
return
(
this
.
downloadSpeed
/
1024
**
currentUnit
).
toFixed
(
1
)
+
"
"
+
speedUnit
[
currentUnit
];
...
...
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