From 0bfd6cee55c65402a95fdac2ec06bfa3581f2e18 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 29 Jun 2017 19:12:05 +0100 Subject: [PATCH] New File and New DIr working :D Former-commit-id: 76264ae6d176b8806b1a2fac4e50250486be9463 [formerly ad5a3d0565ca78adb58c303eb3c62523faea27ac] [formerly 47bd2f1043b61ac235effab6a81335a9d7c8c0c7 [formerly 59912e1dda3112fb8c1b3c3037b392e959051c73]] Former-commit-id: 1435f0a891e5f551e9d2eb35ebd05b9828fe6c73 [formerly 7a2d24d974d9c1f1a77ff58c9eedf9f2796138f7] Former-commit-id: 23a8cb3738ce9dfa22358f31820f5f14085d7f92 --- _assets/_old/js/listing.js | 20 -------------------- _assets/src/App.vue | 14 ++++++++++++-- _assets/src/css/styles.css | 5 +++++ 3 files changed, 17 insertions(+), 22 deletions(-) diff --git a/_assets/_old/js/listing.js b/_assets/_old/js/listing.js index ebb7de44..85bbbdbe 100644 --- a/_assets/_old/js/listing.js +++ b/_assets/_old/js/listing.js @@ -17,26 +17,6 @@ listing.redefineDownloadURLs = function () { }) } -listing.newFilePrompt = function (event) { - event.preventDefault() - buttons.setLoading('new') - - let name = event.currentTarget.querySelector('input').value - - webdav.new(window.location.pathname + name) - .then(() => { - buttons.setDone('new') - listing.reload() - }) - .catch(e => { - console.log(e) - buttons.setDone('new', false) - }) - - closePrompt(event) - return false -} - listing.addDoubleTapEvent = function () { let items = document.getElementsByClassName('item'), touches = { diff --git a/_assets/src/App.vue b/_assets/src/App.vue index 8794ba3e..6b560621 100644 --- a/_assets/src/App.vue +++ b/_assets/src/App.vue @@ -21,10 +21,20 @@ folder My Files -
+
+ + +
+
+
diff --git a/_assets/src/css/styles.css b/_assets/src/css/styles.css index efcad9a5..9a5b4062 100644 --- a/_assets/src/css/styles.css +++ b/_assets/src/css/styles.css @@ -372,6 +372,11 @@ fieldset h3, padding: .5em; } +#sidebar > div { + border-top: 1px solid rgba(0, 0, 0, 0.05); + border-bottom: 1px solid rgba(0, 0, 0, 0.05); +} + #sidebar .action>* { vertical-align: middle; }