A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
UI Updates
aminnausin907c1c2be264
diff --git a/resources/js/components/dashboard/DashboardActivity.vue b/resources/js/components/dashboard/DashboardActivity.vueindex a3a7a93e..cec9d435 100644--- a/resources/js/components/dashboard/DashboardActivity.vue+++ b/resources/js/components/dashboard/DashboardActivity.vue@@ -34,9 +34,7 @@ const filteredCategories = computed(() => {? categories.value.filter((category: CategoryResource) => {{try {- let strRepresentation = [category.name, category.folders_count, category.folders[0]?.name ?? '', category.created_at]- .join(' ')- .toLowerCase();+ let strRepresentation = [category.name, category.folders_count, category.folders[0]?.name ?? '', category.created_at].join(' ').toLowerCase();return strRepresentation.includes(searchQuery.value.toLowerCase());} catch (error) {console.log(error);@@ -82,18 +80,11 @@ const handleSearch = (query: string) => {<div class="flex items-center gap-2 justify-between flex-wrap"><p class="uppercase">Running: {{ categories?.length }}</p><div class="flex flex-wrap items-center gap-2 [&>*]:h-8">- <ButtonText- title="Start New Task"- @click="toast.add('Success', { type: 'success', description: 'Submitted Scan Request!', life: 3000 })"- disabled- >+ <ButtonText title="Start New Task" @click="toast.add('Success', { type: 'success', description: 'Submitted Scan Request!', life: 3000 })" disabled><template #text>New Task</template><template #icon><ProiconsAdd /></template></ButtonText>- <ButtonText- @click="toast.add('Success', { type: 'success', description: 'Submitted File Indexing Request!', life: 3000 })"- disabled- >+ <ButtonText @click="toast.add('Success', { type: 'success', description: 'Submitted File Indexing Request!', life: 3000 })" disabled><template #text>Run File Scan</template><template #icon><ProiconsArrowSync /></template></ButtonText>diff --git a/resources/js/components/dashboard/DashboardAnalytics.vue b/resources/js/components/dashboard/DashboardAnalytics.vueindex ddfd131e..98f67a41 100644--- a/resources/js/components/dashboard/DashboardAnalytics.vue+++ b/resources/js/components/dashboard/DashboardAnalytics.vue@@ -22,6 +22,7 @@ import ProiconsArrowSync from '~icons/proicons/arrow-sync';import LucideFolderTree from '~icons/lucide/folder-tree';import LucideFolderSync from '~icons/lucide/folder-sync';import ProiconsAdd from '~icons/proicons/add';+import ProiconsBolt from '~icons/proicons/bolt';const validPeriods: { key: string; value: string }[] = [{ key: '1h', value: '1_hour' },@@ -107,9 +108,11 @@ watch(<ButtonTextclass="h-8 text-rose-600 dark:!bg-rose-700 disabled:opacity-60":title="'Scan and Index All Files For Metadata'"- @click.stop.prevent="handleStartTask('scan').then(() => {+ @click.stop.prevent="+ handleStartTask('scan').then(() => {taskPopover?.handleClose();- })"+ })+ "><template #text> Scan All Files </template><template #icon> <LucideFolderTree class="-order-1 h-4 w-4" /></template>@@ -118,6 +121,10 @@ watch(</div></template></Popover>+ <ButtonText :to="'/pulse'">+ <template #text>Pulse</template>+ <template #icon><ProiconsBolt /></template>+ </ButtonText></div><div class="flex items-center flex-wrap gap-2 ml-auto text-sm font-medium"><h5>Time Period</h5>diff --git a/resources/js/components/dashboard/DashboardTasks.vue b/resources/js/components/dashboard/DashboardTasks.vueindex 533dd7a2..3d20527f 100644--- a/resources/js/components/dashboard/DashboardTasks.vue+++ b/resources/js/components/dashboard/DashboardTasks.vue@@ -269,10 +269,6 @@ onUnmounted(() => {</div></template></Popover>- <ButtonText @click.stop.prevent="handleStartTask('scan')">- <template #text>Run Full Scan</template>- <template #icon><ProiconsArrowSync /></template>- </ButtonText><ButtonText@click="() => {diff --git a/resources/js/components/icons/IconPulse.vue b/resources/js/components/icons/IconPulse.vuenew file mode 100644index 00000000..f4135a09--- /dev/null+++ b/resources/js/components/icons/IconPulse.vue@@ -0,0 +1,10 @@+<template>+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 32" stroke-width="1" stroke="currentColor">+ <path+ fill-rule="evenodd"+ clip-rule="evenodd"+ d="M15.4566 6.75005C15.9683 6.75596 16.4047 7.09621 16.5001 7.56364L18.8747 19.2038L19.999 17.1682C20.1832 16.8347 20.5526 16.625 20.9559 16.625H31.1744C31.7684 16.625 32.25 17.0727 32.25 17.625C32.25 18.1773 31.7684 18.625 31.1744 18.625H21.6127L19.3581 22.7068C19.1483 23.0867 18.7021 23.3008 18.2475 23.2397C17.7928 23.1786 17.4301 22.8559 17.3445 22.4363L15.376 12.7868L13.1334 22.4607C13.0282 22.9146 12.6007 23.2414 12.1013 23.2498C11.6019 23.2582 11.162 22.9458 11.0393 22.4957L9.30552 16.1378L8.19223 18.0929C8.00581 18.4202 7.64002 18.625 7.2416 18.625H1.32563C0.731576 18.625 0.25 18.1773 0.25 17.625C0.25 17.0727 0.731576 16.625 1.32563 16.625H6.59398L8.71114 12.9071C8.9193 12.5415 9.34805 12.3328 9.78979 12.3821C10.2315 12.4313 10.5951 12.7283 10.7044 13.1292L11.9971 17.8695L14.3918 7.53929C14.4996 7.07421 14.9449 6.74414 15.4566 6.75005Z"+ fill="url(#paint0_linear_4_31)"+ />+ </svg>+</template>