diff --git a/apps/frontend/src/components/ui/servers/FilesUploadDragAndDrop.vue b/apps/frontend/src/components/ui/servers/FilesUploadDragAndDrop.vue new file mode 100644 index 000000000..68fd5c92e --- /dev/null +++ b/apps/frontend/src/components/ui/servers/FilesUploadDragAndDrop.vue @@ -0,0 +1,75 @@ + + + diff --git a/apps/frontend/src/components/ui/servers/FilesUploadDropdown.vue b/apps/frontend/src/components/ui/servers/FilesUploadDropdown.vue new file mode 100644 index 000000000..4841ea53c --- /dev/null +++ b/apps/frontend/src/components/ui/servers/FilesUploadDropdown.vue @@ -0,0 +1,306 @@ + + + + + diff --git a/apps/frontend/src/composables/pyroServers.ts b/apps/frontend/src/composables/pyroServers.ts index 95ca9d5b1..943ccb0b2 100644 --- a/apps/frontend/src/composables/pyroServers.ts +++ b/apps/frontend/src/composables/pyroServers.ts @@ -198,14 +198,16 @@ interface Startup { jdk_build: "corretto" | "temurin" | "graal"; } -interface Mod { +export interface Mod { filename: string; - project_id: string; - version_id: string; - name: string; - version_number: string; - icon_url: string; + project_id: string | undefined; + version_id: string | undefined; + name: string | undefined; + version_number: string | undefined; + icon_url: string | undefined; + owner: string | undefined; disabled: boolean; + installing: boolean; } interface Backup { @@ -1364,7 +1366,7 @@ type ContentModule = { data: Mod[] } & ContentFunctions; type BackupsModule = { data: Backup[] } & BackupFunctions; type NetworkModule = { allocations: Allocation[] } & NetworkFunctions; type StartupModule = Startup & StartupFunctions; -type FSModule = { auth: JWTAuth } & FSFunctions; +export type FSModule = { auth: JWTAuth } & FSFunctions; type ModulesMap = { general: GeneralModule; diff --git a/apps/frontend/src/pages/servers/manage/[id]/content/index.vue b/apps/frontend/src/pages/servers/manage/[id]/content/index.vue index d2f24957b..8161fa97c 100644 --- a/apps/frontend/src/pages/servers/manage/[id]/content/index.vue +++ b/apps/frontend/src/pages/servers/manage/[id]/content/index.vue @@ -15,12 +15,11 @@
-
+
@@ -57,9 +56,9 @@
-
-
-
+
+
+
@@ -88,7 +87,7 @@ { id: 'disabled', action: () => (filterMethod = 'disabled') }, ]" > - +
- - - - Add {{ type.toLocaleLowerCase() }} - - +
+ + + + + + + Add {{ type.toLocaleLowerCase() }} + + +
-
-
-
-
-