From 8b0b744d98fe754d9cf7ed913da45fecd385d644 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Thu, 5 Jun 2025 21:36:52 +0300 Subject: [PATCH] Add option to completely disable videos thumbnail. --- ui/components/History.vue | 27 ++++++++----- ui/components/Queue.vue | 15 ++++++-- ui/components/Settings.vue | 77 ++++++++++++++++++-------------------- ui/pages/index.vue | 6 ++- 4 files changed, 70 insertions(+), 55 deletions(-) diff --git a/ui/components/History.vue b/ui/components/History.vue index 14d300fc..71d74be3 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -107,7 +107,7 @@ -
+
@@ -198,37 +198,36 @@
-
-
- +
- {{ item.title }} + {{ item.title }}
-
+
@@ -382,6 +381,14 @@ import { makeDownload, formatBytes, uri } from '~/utils/index' import { isEmbedable, getEmbedable } from '~/utils/embedable' const emitter = defineEmits(['getInfo', 'add_new']) + +const props = defineProps({ + thumbnails: { + type: Boolean, + default: true + } +}) + const config = useConfigStore() const stateStore = useStateStore() const socket = useSocketStore() @@ -401,6 +408,8 @@ const video_item = ref(null) const playVideo = item => video_item.value = item const closeVideo = () => video_item.value = null +const showThumbnails = computed(() => props.thumbnails && !hideThumbnail.value) + const bg_enable = useStorage('random_bg', true) const bg_opacity = useStorage('random_bg_opacity', 0.85) diff --git a/ui/components/Queue.vue b/ui/components/Queue.vue index a72fe52c..eff156c8 100644 --- a/ui/components/Queue.vue +++ b/ui/components/Queue.vue @@ -66,7 +66,7 @@ -
+
@@ -128,7 +128,7 @@
-
@@ -139,13 +139,13 @@ -
-
+
@@ -247,6 +247,12 @@ import { ucFirst } from '~/utils/index' import { isEmbedable, getEmbedable } from '~/utils/embedable' const emitter = defineEmits(['getInfo']) +const props = defineProps({ + thumbnails: { + type: Boolean, + default: true + } +}) const config = useConfigStore() const stateStore = useStateStore() const socket = useSocketStore() @@ -257,6 +263,7 @@ const masterSelectAll = ref(false) const showQueue = useStorage('showQueue', true) const hideThumbnail = useStorage('hideThumbnailQueue', false) const display_style = useStorage('display_style', 'cards') +const showThumbnails = computed(() => props.thumbnails && !hideThumbnail.value) const embed_url = ref('') diff --git a/ui/components/Settings.vue b/ui/components/Settings.vue index 184196c5..29ec989d 100644 --- a/ui/components/Settings.vue +++ b/ui/components/Settings.vue @@ -11,92 +11,87 @@
+
- +
-

- - Select the color scheme for the WebUI. -

- +
- +
-

- - - Use random background image. - - Reload - - - -

-
+ +
+ +
+ + +
+
+
- +
-

- - Reduce the usage of confirm boxes in the WebUI. -

- +
-

- - - Show notification toasts. If disabled, you will not see errors reported or anything else. - -

-
+
@@ -112,7 +107,7 @@
-
+
diff --git a/ui/pages/index.vue b/ui/pages/index.vue index b0e1f7ae..ba2170da 100644 --- a/ui/pages/index.vue +++ b/ui/pages/index.vue @@ -49,8 +49,8 @@ - - + +
@@ -68,6 +68,8 @@ const get_info = ref('') const bg_enable = useStorage('random_bg', true) const bg_opacity = useStorage('random_bg_opacity', 0.85) const display_style = useStorage('display_style', 'cards') +const show_thumbnail = useStorage('show_thumbnail', true) + const item_form = ref({}) onMounted(() => {