Skip to content

A self-hosted media server and file management system

feat: add horizon button to tasks page

aminnausincf365885a0ca
diff --git a/resources/js/components/dashboard/DashboardAnalytics.vue b/resources/js/components/dashboard/DashboardAnalytics.vue
index 2dcca5bf..7b4d9b90 100644
--- a/resources/js/components/dashboard/DashboardAnalytics.vue
+++ b/resources/js/components/dashboard/DashboardAnalytics.vue
@@ -81,7 +81,7 @@ watch(
</button>
</div>
<div class="flex flex-wrap items-center gap-2 [&>*]:h-fit [&>*]:xs:h-8 w-full">
- <ButtonText @click.stop.prevent="handleStartTask('scan')" :text="'Run Full Scan'" class="flex-1 xs:flex-initial">
+ <ButtonText @click.stop.prevent="handleStartTask('scan')" :text="'Run Full Scan'" title="Scan All Files" class="flex-1 xs:flex-initial">
<template #icon><ProiconsArrowSync /></template>
</ButtonText>
<BasePopover popoverClass="!w-52 rounded-lg mt-10 " :button-attributes="{ title: 'Start New Task', text: 'New Task', class: 'h-full' }" ref="taskPopover" class="">
@@ -92,7 +92,7 @@ watch(
<DashboardTaskMenu @handle-close="taskPopover?.handleClose" :show-scan-all="false" />
</template>
</BasePopover>
- <ButtonText :to="'/pulse'" text="Pulse" class="flex-1 xs:flex-initial">
+ <ButtonText :to="'/pulse'" text="Pulse" title="Detailed Analytics" class="flex-1 xs:flex-initial">
<template #icon><ProiconsBolt /></template>
</ButtonText>
</div>
diff --git a/resources/js/components/dashboard/DashboardTasks.vue b/resources/js/components/dashboard/DashboardTasks.vue
index cea4fbd6..a8cd06c2 100644
--- a/resources/js/components/dashboard/DashboardTasks.vue
+++ b/resources/js/components/dashboard/DashboardTasks.vue
@@ -14,6 +14,7 @@ import { toast } from '@/service/toaster/toastService';
import DashboardTaskMenu from '@/components/dashboard/DashboardTaskMenu.vue';
import BasePopover from '@/components/pinesUI/BasePopover.vue';
+import IconHorizon from '@/components/icons/IconHorizon.vue';
import BreadCrumbs from '@/components/pinesUI/BreadCrumbs.vue';
import ButtonText from '@/components/inputs/ButtonText.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
@@ -227,10 +228,13 @@ onUnmounted(async () => {
<DashboardTaskMenu @handle-close="taskPopover?.handleClose" />
</template>
</BasePopover>
- <ButtonText @click="loadData(true)">
+ <ButtonText @click="loadData(true)" title="Refresh Task List">
<template #text>Refresh</template>
<template #icon><ProiconsArrowSync /></template>
</ButtonText>
+ <ButtonText :to="'/horizon'" text="Horizon" class="flex-1 xs:flex-initial" :title="'Redis task management (Linux/Docker Only)'">
+ <template #icon><IconHorizon class="aspect-1 h-full" /></template>
+ </ButtonText>
</div>
</div>
<TableBase
diff --git a/resources/js/components/dashboard/DashboardUsers.vue b/resources/js/components/dashboard/DashboardUsers.vue
index 89e5db0b..7e1ec414 100644
--- a/resources/js/components/dashboard/DashboardUsers.vue
+++ b/resources/js/components/dashboard/DashboardUsers.vue
@@ -136,7 +136,7 @@ onMounted(() => {
<template #text>New User</template>
<template #icon><ProiconsAdd /></template>
</ButtonText>
- <ButtonText @click="loadData">
+ <ButtonText @click="loadData" title="Refresh User List">
<template #text>Refresh</template>
<template #icon><ProiconsArrowSync /></template>
</ButtonText>
diff --git a/resources/js/components/icons/IconHorizon.vue b/resources/js/components/icons/IconHorizon.vue
new file mode 100644
index 00000000..8e531847
--- /dev/null
+++ b/resources/js/components/icons/IconHorizon.vue
@@ -0,0 +1,7 @@
+<template>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="currentcolor">
+ <path
+ d="M5.26176342 26.4094389C2.04147988 23.6582233 0 19.5675182 0 15c0-4.1421356 1.67893219-7.89213562 4.39339828-10.60660172C7.10786438 1.67893219 10.8578644 0 15 0c8.2842712 0 15 6.71572875 15 15 0 8.2842712-6.7157288 15-15 15-3.716753 0-7.11777662-1.3517984-9.73823658-3.5905611zM4.03811305 15.9222506C5.70084247 14.4569342 6.87195416 12.5 10 12.5c5 0 5 5 10 5 3.1280454 0 4.2991572-1.9569336 5.961887-3.4222502C25.4934253 8.43417206 20.7645408 4 15 4 8.92486775 4 4 8.92486775 4 15c0 .3105915.01287248.6181765.03811305.9222506z"
+ ></path>
+ </svg>
+</template>