From 3ebb6eadbfdbb827cdad782cf4edf7df4e003ae6 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 12 Jul 2020 15:20:37 -0600 Subject: [PATCH] Add upload button and drag&drop modal --- public/assets/svgs/file_upload.svg | 1 + .../server/files/FileManagerContainer.tsx | 2 + .../components/server/files/UploadButton.tsx | 60 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 public/assets/svgs/file_upload.svg create mode 100644 resources/scripts/components/server/files/UploadButton.tsx diff --git a/public/assets/svgs/file_upload.svg b/public/assets/svgs/file_upload.svg new file mode 100644 index 000000000..f11a922ff --- /dev/null +++ b/public/assets/svgs/file_upload.svg @@ -0,0 +1 @@ +going up \ No newline at end of file diff --git a/resources/scripts/components/server/files/FileManagerContainer.tsx b/resources/scripts/components/server/files/FileManagerContainer.tsx index 520365104..1e3e29ce6 100644 --- a/resources/scripts/components/server/files/FileManagerContainer.tsx +++ b/resources/scripts/components/server/files/FileManagerContainer.tsx @@ -16,6 +16,7 @@ import useServer from '@/plugins/useServer'; import { ServerContext } from '@/state/server'; import useFileManagerSwr from '@/plugins/useFileManagerSwr'; import MassActionsBar from '@/components/server/files/MassActionsBar'; +import UploadButton from '@/components/server/files/UploadButton'; const sortFiles = (files: FileObject[]): FileObject[] => { return files.sort((a, b) => a.name.localeCompare(b.name)) @@ -79,6 +80,7 @@ export default () => {
+ + + ); +};