Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kitsukey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
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
Kio!
Kitsukey
Commits
89fd8b39
Commit
89fd8b39
authored
8 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
[Client:Mobile]
✌️
parent
3046d3e7
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/mobile/tags/drive.tag
+67
-38
67 additions, 38 deletions
src/web/app/mobile/tags/drive.tag
src/web/app/mobile/tags/drive/file.tag
+1
-3
1 addition, 3 deletions
src/web/app/mobile/tags/drive/file.tag
with
68 additions
and
41 deletions
src/web/app/mobile/tags/drive.tag
+
67
−
38
View file @
89fd8b39
...
...
@@ -16,6 +16,14 @@
</nav>
<mk-uploader ref="uploader"></mk-uploader>
<div class="browser { fetching: fetching }" if={ file == null }>
<div class="info" if={ info }>
<p if={ folder == null }>{ (info.usage / info.capacity * 100).toFixed(1) }%使用中</p>
<p if={ folder != null && (folder.folders_count > 0 || folder.files_count > 0) }>
<virtual if={ folder.folders_count > 0 }>{ folder.folders_count }フォルダ</virtual>
<virtual if={ folder.folders_count > 0 && folder.files_count > 0 }>、</virtual>
<virtual if={ folder.files_count > 0 }>{ folder.files_count }ファイル</virtual>
</p>
</div>
<div class="folders" if={ folders.length > 0 }>
<virtual each={ folder in folders }>
<mk-drive-folder folder={ folder }></mk-drive-folder>
...
...
@@ -32,11 +40,11 @@
<p if={ !folder == null }>ドライブには何もありません。</p>
<p if={ folder != null }>このフォルダーは空です</p>
</div>
<div
class="fetching" if={ fetching }
>
<div class="
spinner"
>
<div class="
dot1"></div
>
<div class="dot
2
"></div>
</div>
<
/
div>
<div class="
fetching" if={ fetching }
>
<div class="
spinner"
>
<div class="dot
1
"></div>
<div class="dot2">
</div>
</div>
</div>
<input ref="file" type="file" multiple="multiple" onchange={ changeLocalFile }/>
...
...
@@ -76,6 +84,20 @@
&.fetching
opacity 0.5
> .info
border-bottom solid 1px #eee
&:empty
display none
> p
display block
max-width 500px
margin 0 auto
padding 4px 16px
font-size 10px
color #777
> .folders
> mk-drive-folder
border-bottom solid 1px #eee
...
...
@@ -93,40 +115,40 @@
> p
margin 0
> .fetching
.spinner
margin 100px auto
width 40px
height 40px
text-align center
animation sk-rotate 2.0s infinite linear
.dot1, .dot2
width 60%
height 60%
display inline-block
position absolute
top 0
background-color rgba(0, 0, 0, 0.3)
border-radius 100%
animation sk-bounce 2.0s infinite ease-in-out
.dot2
top auto
bottom 0
animation-delay -1.0s
@keyframes sk-rotate { 100% { transform: rotate(360deg); }}
@keyframes sk-bounce {
0%, 100% {
transform: scale(0.0);
} 50% {
transform: scale(1.0);
}
> .fetching
.spinner
margin 100px auto
width 40px
height 40px
text-align center
animation sk-rotate 2.0s infinite linear
.dot1, .dot2
width 60%
height 60%
display inline-block
position absolute
top 0
background-color rgba(0, 0, 0, 0.3)
border-radius 100%
animation sk-bounce 2.0s infinite ease-in-out
.dot2
top auto
bottom 0
animation-delay -1.0s
@keyframes sk-rotate { 100% { transform: rotate(360deg); }}
@keyframes sk-bounce {
0%, 100% {
transform: scale(0.0);
} 50% {
transform: scale(1.0);
}
}
> [ref='file']
display none
...
...
@@ -361,6 +383,13 @@
this.trigger('fetch-mid');
}
};
if (this.folder == null) {
// Fetch addtional drive info
this.api('drive').then(info => {
this.update({ info });
});
}
};
this.fetchMoreFiles = () => {
...
...
This diff is collapsed.
Click to expand it.
src/web/app/mobile/tags/drive/file.tag
+
1
−
3
View file @
89fd8b39
...
...
@@ -10,9 +10,7 @@
li.tag(style={background: tag.color, color: contrast(tag.color)})= tag.name
-->
<footer>
<p class="type">
<mk-file-type-icon type={ file.type }></mk-file-type-icon>{ file.type }
</p>
<p class="type"><mk-file-type-icon type={ file.type }></mk-file-type-icon>{ file.type }</p>
<p class="separator"></p>
<p class="data-size">{ bytesToSize(file.datasize) }</p>
<p class="separator"></p>
...
...
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