From e0a47e2fe355efd2156de417bac855bd456c80bb Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 14 Jan 2026 18:56:07 +0300 Subject: [PATCH] Refactor: facelift the WebUI --- ui/app/components/DLFields.vue | 18 +- ui/app/components/DeprecatedNotice.vue | 67 ---- ui/app/components/History.vue | 12 +- ui/app/components/Markdown.vue | 5 +- ui/app/components/Message.vue | 25 +- ui/app/components/NewVersion.vue | 2 +- ui/app/components/Queue.vue | 10 +- ui/app/components/TaskDefinitionEditor.vue | 13 +- ui/app/components/TaskForm.vue | 15 +- ui/app/components/TaskInspect.vue | 5 +- ui/app/layouts/default.vue | 2 +- ui/app/pages/browser/[...slug].vue | 19 +- ui/app/pages/changelog.vue | 41 +-- ui/app/pages/conditions.vue | 382 +++++++++++---------- ui/app/pages/console.vue | 2 +- ui/app/pages/notifications.vue | 204 ++++++----- ui/app/pages/presets.vue | 64 +++- ui/app/pages/task_definitions.vue | 16 +- ui/app/pages/tasks.vue | 27 +- 19 files changed, 475 insertions(+), 454 deletions(-) delete mode 100644 ui/app/components/DeprecatedNotice.vue diff --git a/ui/app/components/DLFields.vue b/ui/app/components/DLFields.vue index f84f4ef2..5e3b72a7 100644 --- a/ui/app/components/DLFields.vue +++ b/ui/app/components/DLFields.vue @@ -132,13 +132,9 @@
- - - - - - No custom fields found, you can add new fields using the button above. - + + + No custom fields found, you can add new fields using the button above.
@@ -250,7 +246,6 @@ const addNewField = () => items.value.push({ const deleteField = (index: number) => items.value.splice(index, 1) const validateItem = (item: DLField, index: number): boolean => { - const requiredFields = ['name', 'field', 'kind', 'description'] for (const field of requiredFields) { @@ -282,9 +277,10 @@ const validateItem = (item: DLField, index: number): boolean => { const sortedDLFields = computed(() => items.value.sort((a, b) => (a.order || 0) - (b.order || 0))) watch(() => config.ytdlp_options, newOptions => ytDlpOptions.value = newOptions - .filter(opt => !opt.ignored).flatMap(opt => opt.flags - .filter(flag => flag.startsWith('--')) - .map(flag => ({ value: flag, description: opt.description || '' }))), + .filter(opt => !opt.ignored) + .flatMap( + opt => opt.flags.filter(flag => flag.startsWith('--') + ).map(flag => ({ value: flag, description: opt.description || '' }))), { immediate: true } ) onMounted(async () => { diff --git a/ui/app/components/DeprecatedNotice.vue b/ui/app/components/DeprecatedNotice.vue deleted file mode 100644 index 9cad0fe1..00000000 --- a/ui/app/components/DeprecatedNotice.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - diff --git a/ui/app/components/History.vue b/ui/app/components/History.vue index 0a9aa013..2f0c0ee6 100644 --- a/ui/app/components/History.vue +++ b/ui/app/components/History.vue @@ -434,9 +434,9 @@
- - No results found for '{{ query }}'. + + No results found for: {{ query }}.

You can search using any value shown in the item’s source_name:task_name - items added by the specified task. - -

Your download history is empty. Once queued downloads are completed, they will appear here.

+ +

Download history is empty.

diff --git a/ui/app/components/Markdown.vue b/ui/app/components/Markdown.vue index 8d6197e5..53d83333 100644 --- a/ui/app/components/Markdown.vue +++ b/ui/app/components/Markdown.vue @@ -71,8 +71,9 @@ code {
- + + {{ error }} +
diff --git a/ui/app/components/Message.vue b/ui/app/components/Message.vue index 0368ebe5..87083862 100644 --- a/ui/app/components/Message.vue +++ b/ui/app/components/Message.vue @@ -1,16 +1,13 @@ @@ -36,24 +32,21 @@ withDefaults(defineProps<{ icon?: string | null /** Main message content */ message?: string | null - /** CSS class for the notification */ - message_class?: string /** If true, show toggle button */ useToggle?: boolean /** Current toggle state */ toggle?: boolean /** If true, show close button */ useClose?: boolean, - newStyle?: boolean + body_class?: string | null, }>(), { title: null, icon: null, message: null, - message_class: 'is-info', useToggle: false, toggle: false, useClose: false, - newStyle: false + body_class: null, }) defineEmits<{ diff --git a/ui/app/components/NewVersion.vue b/ui/app/components/NewVersion.vue index 28be65a5..ebf068e2 100644 --- a/ui/app/components/NewVersion.vue +++ b/ui/app/components/NewVersion.vue @@ -1,5 +1,5 @@