From c61fd133d8fc03d9589150a99f9cf296b4c7ed37 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 14 Dec 2024 14:57:23 +0300 Subject: [PATCH] more updates for new UI --- .vscode/launch.json | 2 +- ui/components/History.vue | 2 - ui/components/NewDownload.vue | 39 ++++--- ui/components/Queue.vue | 5 +- ui/error.vue | 1 - ui/layouts/default.vue | 140 ++++++++++++------------- ui/nuxt.config.ts | 2 +- ui/pages/console.vue | 157 ++++++++++++++++++++++++++++ ui/pages/index.vue | 93 +--------------- ui/{store => stores}/ConfigStore.js | 8 +- ui/stores/SocketStore.js | 97 +++++++++++++++++ ui/{store => stores}/StateStore.js | 2 - 12 files changed, 351 insertions(+), 197 deletions(-) create mode 100644 ui/pages/console.vue rename ui/{store => stores}/ConfigStore.js (92%) create mode 100644 ui/stores/SocketStore.js rename ui/{store => stores}/StateStore.js (96%) diff --git a/.vscode/launch.json b/.vscode/launch.json index a79728f3..866a9b9b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -84,7 +84,7 @@ "--port", "8082" ], - "runtimeExecutable": "npm", + "runtimeExecutable": "yarn", "type": "node", "cwd": "${workspaceFolder}/ui", "env": { diff --git a/ui/components/History.vue b/ui/components/History.vue index 9573bbe1..b335b489 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -224,8 +224,6 @@ import moment from "moment"; import { useStorage } from '@vueuse/core' import LazyLoader from './LazyLoader' import { makeDownload, formatBytes, ucFirst } from '~/utils/index' -import { useConfigStore } from '~/store/ConfigStore'; -import { useStateStore } from '~/store/StateStore'; const emits = defineEmits(['deleteItem', 'addItem', 'playItem', 'archiveItem']) const config = useConfigStore() diff --git a/ui/components/NewDownload.vue b/ui/components/NewDownload.vue index 7ca8c00c..2fa6d5d3 100644 --- a/ui/components/NewDownload.vue +++ b/ui/components/NewDownload.vue @@ -6,7 +6,7 @@
+ :disabled="!socket.isConnected || addInProgress" v-model="url"> @@ -19,9 +19,9 @@
- +
@@ -35,27 +35,23 @@
+ :disabled="!socket.isConnected" list="directories">
@@ -84,7 +80,7 @@
+ :disabled="!socket.isConnected">
Some config fields are ignored like cookiefile, path, and output_format etc. @@ -101,7 +97,7 @@
+ :disabled="!socket.isConnected">
Use something like flagCookies @@ -112,7 +108,7 @@
-