aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/index.html
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2018-05-17 14:59:45 +0200
committerJohannes Zellner <johannes@cloudron.io>2018-05-17 14:59:45 +0200
commitd0803a0432f50d6d32b498d50f37f4325984e85c (patch)
treedc295cae5976db802ada47ff7dc003a014e4249b /frontend/index.html
parentc248373641e65b585e0029176a608d6f4160642d (diff)
downloadSurfer-d0803a0432f50d6d32b498d50f37f4325984e85c.tar.gz
Surfer-d0803a0432f50d6d32b498d50f37f4325984e85c.tar.zst
Surfer-d0803a0432f50d6d32b498d50f37f4325984e85c.zip
Show upload progress
Diffstat (limited to 'frontend/index.html')
-rw-r--r--frontend/index.html62
1 files changed, 29 insertions, 33 deletions
diff --git a/frontend/index.html b/frontend/index.html
index 2e2e5e3..15e5d98 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -70,47 +70,43 @@
70 </el-header> 70 </el-header>
71 <el-main> 71 <el-main>
72 72
73 <!-- <div class="container" v-show="uploadStatus.busy" v-cloak>
74 <div class="row">
75 <div class="col-lg-12">
76 <p>Uploading... ({{ uploadStatus.done }} / {{ uploadStatus.count }}) </p>
77 <center>
78 <div class="progress">
79 <div class="progress-bar progress-bar-striped" role="progressbar" v-bind:style="{ width: uploadStatus.percentDone + '%' }">
80 <span class="sr-only">{{ uploadStatus.percentDone }}% Complete</span>
81 </div>
82 </div>
83 </center>
84 </div>
85 </div>
86 </div> -->
87
88 <div v-show="busy"> 73 <div v-show="busy">
89 <center><h1><i class="el-icon-loading"></i></h1></center> 74 <center><h1><i class="el-icon-loading"></i></h1></center>
90 </div> 75 </div>
91 76
92 <div v-show="!busy && session.valid" v-cloak> 77 <div v-show="!busy && session.valid" v-cloak>
93 <el-table :data="entries" style="width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open"> 78 <center>
94 <el-table-column prop="previewUrl" label="Type" width="100px" sortable> 79 <el-table :data="entries" style="max-width: 1280px;width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open">
95 <template slot-scope="scope"> 80 <el-table-column prop="previewUrl" label="Type" width="100px" sortable>
96 <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/> 81 <template slot-scope="scope">
97 </template> 82 <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/>
98 </el-table-column> 83 </template>
99 <el-table-column prop="filePath" label="Name" sortable></el-table-column> 84 </el-table-column>
100 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column> 85 <el-table-column prop="filePath" label="Name" sortable></el-table-column>
101 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column> 86 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column>
102 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions"> 87 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column>
103 <template slot-scope="scope"> 88 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions">
104 <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button> 89 <template slot-scope="scope">
105 <el-button size="small" icon="el-icon-edit" circle @click.stop="onRename(scope.row)"></el-button> 90 <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
106 <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button> 91 <el-button size="small" icon="el-icon-edit" circle @click.stop="onRename(scope.row)"></el-button>
107 </template> 92 <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button>
108 </el-table-column> 93 </template>
109 </el-table> 94 </el-table-column>
95 </el-table>
96 </center>
110 </div> 97 </div>
111 98
112 </el-main> 99 </el-main>
113 <el-footer style="height: 24px">Built by the <a href="https://cloudron.io" target="_blank">Cloudron.io</a> team. <a href="https://git.cloudron.io/cloudron/surfer" target="_blank">Get the code</a></el-footer> 100 <el-footer v-show="uploadStatus.busy">
101 <el-row>
102 <el-col :span="4">
103 Uploading files ({{ uploadStatus.done }} / {{ uploadStatus.count }})
104 </el-col>
105 <el-col :span="20">
106 <el-progress :text-inside="true" :stroke-width="18" :percentage="uploadStatus.percentDone"></el-progress>
107 </el-col>
108 </el-row>
109 </el-footer>
114</el-container> 110</el-container>
115 111
116</div> 112</div>