From 4f87ee7755ae78fb15d411815e0100e97d3b7bbf Mon Sep 17 00:00:00 2001 From: "yulai.li" Date: Wed, 6 Apr 2022 22:39:12 +0800 Subject: [PATCH 1/3] Add create directory and delete web UI features for filer --- weed/server/filer_ui/filer.html | 106 ++++++++++++++++++++++++-------- 1 file changed, 79 insertions(+), 27 deletions(-) diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html index 6f57c25d8..939f3f419 100644 --- a/weed/server/filer_ui/filer.html +++ b/weed/server/filer_ui/filer.html @@ -26,6 +26,7 @@ border-radius: 2px; border: 1px solid #ccc; float: right; + margin-left: 5px; } .button:hover { @@ -36,6 +37,13 @@ display: none; } + .danger { + color: red; + background: #fff; + border: 1px solid #fff; + border-radius: 2px; + } + @@ -54,6 +62,7 @@ {{ end }} + @@ -61,7 +70,7 @@
- +
{{$path := .Path }} {{ range $entry_index, $entry := .Entries }} @@ -89,9 +98,16 @@ {{ $entry.Size | humanizeBytes }}  {{end}} - + {{ end }} @@ -114,60 +130,96 @@ From 2454020a9236c8a9e3d249af0f7a486ed5d9e754 Mon Sep 17 00:00:00 2001 From: "yulai.li" Date: Thu, 7 Apr 2022 14:23:06 +0800 Subject: [PATCH 2/3] Add upload progress support --- weed/server/filer_ui/filer.html | 84 +++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 5 deletions(-) diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html index 939f3f419..e4dd32f50 100644 --- a/weed/server/filer_ui/filer.html +++ b/weed/server/filer_ui/filer.html @@ -44,6 +44,25 @@ border-radius: 2px; } + .footer { + position: absolute; + bottom: 10px; + right: 10%; + min-width: 30%; + } + + .progress-table { + width: 100%; + } + + .progress-table-file-name { + text-align: right; + } + + .progress-table-percent { + width: 60px; + text-align: right; + } @@ -62,7 +81,7 @@ {{ end }} - + @@ -125,12 +144,14 @@

- +
+ {{ $entry.Timestamp.Format "2006-01-02 15:04" }} + {{if $entry.IsDirectory}} + + {{else}} + + {{end}} +