From 0657c80a5cbab5df3a1acdb0d5411ea8db9aae1b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 25 Aug 2024 00:21:09 +0200 Subject: [PATCH] [#333] Enhanced file browser component. - Added support for file/directory add/copy/move/rename/remove operations. - Added automatic detection of MIME types. - Added support for file view/download. - Added file uploader component. - Added custom sorting and other visualization options. - Added custom `Home` component to show configurable bookmarks above the filesystem root level. - Added file editor with automatic syntax highlight. --- .../webapp/src/components/File/Browser.vue | 778 ++++++++++++++++-- .../src/components/File/Browser/Options.vue | 117 +++ .../webapp/src/components/File/Editor.vue | 387 +++++++++ .../src/components/File/EditorModal.vue | 179 ++++ .../src/components/File/Highlighter.vue | 389 +++++++++ .../http/webapp/src/components/File/Home.vue | 152 ++++ .../http/webapp/src/components/File/Info.vue | 126 +++ .../webapp/src/components/File/Uploader.vue | 268 ++++++ .../src/components/File/UploaderModal.vue | 35 + 9 files changed, 2382 insertions(+), 49 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/File/Browser/Options.vue create mode 100644 platypush/backend/http/webapp/src/components/File/Editor.vue create mode 100644 platypush/backend/http/webapp/src/components/File/EditorModal.vue create mode 100644 platypush/backend/http/webapp/src/components/File/Highlighter.vue create mode 100644 platypush/backend/http/webapp/src/components/File/Home.vue create mode 100644 platypush/backend/http/webapp/src/components/File/Info.vue create mode 100644 platypush/backend/http/webapp/src/components/File/Uploader.vue create mode 100644 platypush/backend/http/webapp/src/components/File/UploaderModal.vue diff --git a/platypush/backend/http/webapp/src/components/File/Browser.vue b/platypush/backend/http/webapp/src/components/File/Browser.vue index 5b17faf212..ae47e28fc9 100644 --- a/platypush/backend/http/webapp/src/components/File/Browser.vue +++ b/platypush/backend/http/webapp/src/components/File/Browser.vue @@ -3,21 +3,51 @@ -
+ + +
@@ -27,38 +57,182 @@
+
+
+ + <Select This Directory> +
+
+
- + {{ file.name }}
-
- - +
+ +
+ + + + + +
+ +
+ +
+ + + +
+ + + The following warnings were raised: + +
    +
  • + {{ warning }} +
  • +
+ + Are you sure you that you want to edit the file? +
+ + + Are you sure you that you want to delete this file?

+ {{ fileToRemove }} +
+ + + Are you sure you that you want to delete this directory?

+ {{ directoryToRemove }} +
+ + + This directory is not empty. Are you sure you that you want to delete it?

+ {{ directoryToRemove }} +
+ + + + + Enter the name of the new directory: + + + + Enter the name of the new file: + + + + Enter a new name for this file:

+ {{ fileToRename }} +
+ +
+ + + +
diff --git a/platypush/backend/http/webapp/src/components/File/Browser/Options.vue b/platypush/backend/http/webapp/src/components/File/Browser/Options.vue new file mode 100644 index 0000000000..57356855ca --- /dev/null +++ b/platypush/backend/http/webapp/src/components/File/Browser/Options.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/platypush/backend/http/webapp/src/components/File/Editor.vue b/platypush/backend/http/webapp/src/components/File/Editor.vue new file mode 100644 index 0000000000..8b6e3df88b --- /dev/null +++ b/platypush/backend/http/webapp/src/components/File/Editor.vue @@ -0,0 +1,387 @@ +