]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Show webdav endpoint in settings and welcome page
authorJohannes Zellner <johannes@cloudron.io>
Mon, 25 Feb 2019 14:27:54 +0000 (15:27 +0100)
committerJohannes Zellner <johannes@cloudron.io>
Mon, 25 Feb 2019 14:27:54 +0000 (15:27 +0100)
frontend/index.html
frontend/js/app.js
frontend/welcome.html

index 8cea7b9bdd32563e7f2c8bb5b208124b08b31b9d..76b10e1ffd92c2a395a13631acba00edf1325601 100644 (file)
             <el-dropdown-item disabled>Public Folder Listing</el-dropdown-item>
             <el-dropdown-item command="folderListing">
               <el-switch v-model="folderListingEnabled" active-text="Enabled" inactive-text="Disabled">
-            </el-switch>
+              </el-switch>
             </el-dropdown-item>
+            <el-dropdown-item disabled divided>WebDAV Endpoint</el-dropdown-item>
+            <el-dropdown-item><a href="/_webdav/" target="_blank">{{ origin }}/_webdav/</a></el-dropdown-item>
             <el-dropdown-item command="about" divided><i class="el-icon-info"></i> About</el-dropdown-item>
             <el-dropdown-item command="logout" id="logoutButton"><i class="el-icon-circle-close"></i> Logout</el-dropdown-item>
           </el-dropdown-menu>
index 22d203be9ee0251c9f08142e9841fa687313de14..9a6251b37d036e1d84427d22a6748ce27c16430a 100644 (file)
@@ -259,6 +259,7 @@ var app = new Vue({
     data: {
         ready: false,
         busy: false,
+        origin: window.location.origin,
         uploadStatus: {
             busy: false,
             count: 0,
index f125c1bdc9063ee9275b6b3b6587479c1d2f1279..3523c49e3cb2d6c379330880cc51ffb38f4d1852 100644 (file)
@@ -13,7 +13,7 @@
     <img src="/_admin/img/logo.png"/>
     <h2> Surfer </h2>
     <p>
-      <a href="/_admin">Manage your files in your browser</a> or use the <a href="https://www.npmjs.com/package/cloudron-surfer">commandline tool</a>.
+      <a href="/_admin">Manage your files in your browser</a>, use the <a href="https://www.npmjs.com/package/cloudron-surfer">commandline tool</a> or connect via <a href="/_webdav/">WebDAV</a>.
     </p>
     <br/>
     <br/>