Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
342
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
27
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Sharkey
Commits
6374ddfc
Commit
6374ddfc
authored
7 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
✌️
parent
fbc707a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/web/app/desktop/views/components/settings.drive.vue
+35
-0
35 additions, 0 deletions
src/web/app/desktop/views/components/settings.drive.vue
src/web/app/desktop/views/components/settings.vue
+4
-2
4 additions, 2 deletions
src/web/app/desktop/views/components/settings.vue
with
39 additions
and
2 deletions
src/web/app/desktop/views/components/settings.drive.vue
0 → 100644
+
35
−
0
View file @
6374ddfc
<
template
>
<div
class=
"root"
>
<template
v-if=
"!fetching"
>
<el-progress
:text-inside=
"true"
:stroke-width=
"18"
:percentage=
"Math.floor((usage / capacity) * 100)"
/>
<p><b>
{{
capacity
|
bytes
}}
</b>
中
<b>
{{
usage
|
bytes
}}
</b>
使用中
</p>
</
template
>
</div>
</template>
<
script
lang=
"ts"
>
import
Vue
from
'
vue
'
;
export
default
Vue
.
extend
({
data
()
{
return
{
fetching
:
true
,
usage
:
null
,
capacity
:
null
};
},
mounted
()
{
(
this
as
any
).
api
(
'
drive
'
).
then
(
info
=>
{
this
.
capacity
=
info
.
capacity
;
this
.
usage
=
info
.
usage
;
this
.
fetching
=
false
;
});
}
});
</
script
>
<
style
lang=
"stylus"
scoped
>
.root
> p
> b
margin 0 8px
</
style
>
This diff is collapsed.
Click to expand it.
src/web/app/desktop/views/components/settings.vue
+
4
−
2
View file @
6374ddfc
...
...
@@ -71,7 +71,7 @@
<section
class=
"drive"
v-show=
"page == 'drive'"
>
<h1>
%i18n:desktop.tags.mk-settings.drive%
</h1>
<
mk
-drive
-setting
/>
<
x
-drive/>
</section>
<section
class=
"mute"
v-show=
"page == 'mute'"
>
...
...
@@ -163,6 +163,7 @@ import X2fa from './settings.2fa.vue';
import
XApi
from
'
./settings.api.vue
'
;
import
XApps
from
'
./settings.apps.vue
'
;
import
XSignins
from
'
./settings.signins.vue
'
;
import
XDrive
from
'
./settings.drive.vue
'
;
import
{
docsUrl
,
license
,
lang
,
version
}
from
'
../../../config
'
;
import
checkForUpdate
from
'
../../../common/scripts/check-for-update
'
;
...
...
@@ -174,7 +175,8 @@ export default Vue.extend({
X2fa
,
XApi
,
XApps
,
XSignins
XSignins
,
XDrive
},
data
()
{
return
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment