aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-05 01:17:41 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-05 01:17:41 +0200
commitd34561d155e99a263bf8874318a91e0161518e4a (patch)
tree44bd1442ea74514d533f8bab6d93360820f98e3d /frontend
parent0ac3ab8ea976f580ff68b6c003436fb536020c5c (diff)
downloadSurfer-d34561d155e99a263bf8874318a91e0161518e4a.tar.gz
Surfer-d34561d155e99a263bf8874318a91e0161518e4a.tar.zst
Surfer-d34561d155e99a263bf8874318a91e0161518e4a.zip
Add raw/tar/zip endpoints
Diffstat (limited to 'frontend')
-rw-r--r--frontend/index.html11
-rw-r--r--frontend/public.html9
2 files changed, 20 insertions, 0 deletions
diff --git a/frontend/index.html b/frontend/index.html
index 3a2f7f7..20f2c8d 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -67,6 +67,17 @@
67 </div> 67 </div>
68 <div align="right" v-show="session.valid"> 68 <div align="right" v-show="session.valid">
69 <el-button-group> 69 <el-button-group>
70 <a v-bind:href="'/raw' + path">
71 <el-button type="primary" icon="el-icon-download" size="small">Raw (curl/wget friendly)</el-button>
72 </a>
73 <a v-bind:href="'/tar' + path">
74 <el-button type="primary" icon="el-icon-download" size="small">Download Tar.gz</el-button>
75 </a>
76 <a v-bind:href="'/zip' + path">
77 <el-button type="primary" icon="el-icon-download" size="small">Download Zip</el-button>
78 </a>
79 </el-button-group>
80 <el-button-group>
70 <el-button type="primary" icon="el-icon-upload2" size="small" @click="onUpload">Upload File</el-button> 81 <el-button type="primary" icon="el-icon-upload2" size="small" @click="onUpload">Upload File</el-button>
71 <el-button type="primary" icon="el-icon-upload" size="small" @click="onUploadFolder">Upload Folder</el-button> 82 <el-button type="primary" icon="el-icon-upload" size="small" @click="onUploadFolder">Upload Folder</el-button>
72 <el-button type="primary" icon="el-icon-plus" size="small" @click="onNewFolder">New Folder</el-button> 83 <el-button type="primary" icon="el-icon-plus" size="small" @click="onNewFolder">New Folder</el-button>
diff --git a/frontend/public.html b/frontend/public.html
index 2ddf543..b31401f 100644
--- a/frontend/public.html
+++ b/frontend/public.html
@@ -28,6 +28,15 @@
28 <p style="font-size: 24px; margin: 4px 0;">{{ path }}</p> 28 <p style="font-size: 24px; margin: 4px 0;">{{ path }}</p>
29 </div> 29 </div>
30 <div> 30 <div>
31 <a v-bind:href="'/raw' + path">
32 <el-button type="primary" icon="el-icon-download" size="small">Raw (curl/wget friendly)</el-button>
33 </a>
34 <a v-bind:href="'/tar' + path">
35 <el-button type="primary" icon="el-icon-download" size="small">Download Tar.gz</el-button>
36 </a>
37 <a v-bind:href="'/zip' + path">
38 <el-button type="primary" icon="el-icon-download" size="small">Download Zip</el-button>
39 </a>
31 <a href="/_admin"> 40 <a href="/_admin">
32 <el-button type="primary" icon="el-icon-user" size="small">Login</el-button> 41 <el-button type="primary" icon="el-icon-user" size="small">Login</el-button>
33 </a> 42 </a>