Skip to content

A self-hosted media server and file management system

styling

aminnausin9bd841366735
diff --git a/resources/js/components/dashboard/DashboardAnalytics.vue b/resources/js/components/dashboard/DashboardAnalytics.vue
index e3712cee..ee31ab77 100644
--- a/resources/js/components/dashboard/DashboardAnalytics.vue
+++ b/resources/js/components/dashboard/DashboardAnalytics.vue
@@ -50,7 +50,7 @@ watch(
v-for="(validPeriod, index) in validPeriods"
:key="index"
@click="setPeriod(validPeriod.value)"
- :class="`font-semibold sm:text-lg ${period === validPeriod.value ? 'text-gray-700 dark:text-gray-300' : 'text-gray-300 dark:text-gray-600'} hover:text-gray-400 dark:hover:text-gray-500`"
+ :class="`font-semibold ${period === validPeriod.value ? 'text-gray-700 dark:text-gray-300' : 'text-gray-300 dark:text-gray-600'} hover:text-gray-400 dark:hover:text-gray-500`"
>
{{ validPeriod.key }}
</button>
diff --git a/resources/js/components/panels/NavBar.vue b/resources/js/components/panels/NavBar.vue
index fad4c944..b26dd005 100755
--- a/resources/js/components/panels/NavBar.vue
+++ b/resources/js/components/panels/NavBar.vue
@@ -42,84 +42,84 @@ watch(userData, handleAuthEvent, { immediate: false });
</script>
<template>
- <nav id="navbar">
- <div class="flex p-1 gap-y-4 gap-2 flex-wrap justify-between">
- <span class="flex items-end sm:items-center gap-2 justify-between w-full flex-1 min-w-fit">
- <h1 id="title" class="text-2xl truncate capitalize">{{ pageTitle }}</h1>
- <section
- id="user-options"
- class="group inline-block relative shrink-0"
- data-dropdown-toggle="user-dropdown"
- aria-haspopup="true"
- >
- <DropdownMenu :dropdownOpen="showDropdown" @toggleDropdown="showDropdown = false">
- <template #trigger
- ><button
- id="user-header"
- class="flex gap-2 text-2xl text-slate-900 dark:text-white hover:text-violet-600 items-center justify-center capitalize h-8"
- @click="toggleDropdown"
- >
- <span id="user-name" class="hidden sm:block truncate" v-if="username">{{ username }}</span>
- <span id="user-name-unauth" v-else class="text-right hidden sm:block">Guest</span>
+ <nav id="navbar" class="flex py-1 gap-2 flex-wrap justify-between">
+ <span class="flex items-end sm:items-center gap-2 justify-between w-full flex-1 min-w-fit">
+ <h1 id="title" class="text-2xl truncate capitalize">{{ pageTitle }}</h1>
+ <section
+ id="user-options"
+ class="group inline-block relative shrink-0"
+ data-dropdown-toggle="user-dropdown"
+ aria-haspopup="true"
+ >
+ <DropdownMenu :dropdownOpen="showDropdown" @toggleDropdown="showDropdown = false">
+ <template #trigger
+ ><button
+ id="user-header"
+ class="flex gap-2 text-2xl text-slate-900 dark:text-white hover:text-violet-600 items-center justify-center capitalize h-8"
+ @click="toggleDropdown"
+ >
+ <span id="user-name" class="hidden sm:block truncate" v-if="username">{{ username }}</span>
+ <span id="user-name-unauth" v-else class="text-right hidden sm:block">Guest</span>
- <img
- :src="userData?.value?.avatar ?? '/storage/avatars/12345.jpg'"
- class="h-7 w-7 rounded-full ring-2 ring-violet-600/80 object-cover aspect-square"
- alt="profile picture"
- /></button
- ></template>
- </DropdownMenu>
- </section>
- </span>
- <span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-1 sm:shrink-0 justify-end sm:justify-normal sm:w-auto">
- <section id="navbar-video" class="flex items-center gap-1 text-slate-900 antialiased">
- <NavLink v-if="$route.name != 'home'" :label="'home'" :URL="'/'" :class="`ring-1 ring-gray-900/5`">
- <template #icon>
- <CircumMonitor height="24" width="24" />
- </template>
- </NavLink>
- <NavButton v-if="username" @click="cycleSideBar('notifications')" :label="'notifications'" class="hidden">
- <template #icon>
- <CircumInboxIn height="24" width="24" />
- </template>
- </NavButton>
- <NavButton
- v-if="$route.name === 'home'"
- @click="cycleSideBar('folders', '#list-card')"
- :label="'folders'"
- :active="selectedSideBar === 'folders'"
- :class="`ring-1 ring-gray-900/5`"
- >
- <template #icon>
- <CircumFolderOn height="24" width="24" />
- </template>
- </NavButton>
- <NavButton
- v-if="username && $route.name === 'home'"
- @click="cycleSideBar('history', '#list-card')"
- :label="'history'"
- :active="selectedSideBar === 'history'"
- :class="`ring-1 ring-gray-900/5`"
- >
- <template #icon>
- <MaterialSymbolsLightHistory height="24" width="24" />
- </template>
- </NavButton>
- <NavButton
- v-if="username && $route.name === 'dashboard'"
- @click="cycleSideBar('dashboard', '#left-card')"
- :label="'dashboard'"
- :active="selectedSideBar === 'dashboard'"
- :class="`ring-1 ring-gray-900/5`"
- >
- <template #icon>
- <MaterialSymbolsLightMenu height="26" width="26" />
- </template>
- </NavButton>
- </section>
- <ToggleLightMode />
- </span>
- </div>
- <hr class="mt-2" />
+ <img
+ :src="userData?.value?.avatar ?? '/storage/avatars/12345.jpg'"
+ class="h-7 w-7 rounded-full ring-2 ring-violet-600/80 object-cover aspect-square"
+ alt="profile picture"
+ /></button
+ ></template>
+ </DropdownMenu>
+ </section>
+ </span>
+ <span
+ class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-1 sm:shrink-0 justify-end sm:justify-normal sm:w-auto ml-auto"
+ >
+ <section id="navbar-video" class="flex items-center gap-1 text-slate-900 antialiased">
+ <NavLink v-if="$route.name != 'home'" :label="'home'" :URL="'/'" :class="`ring-1 ring-gray-900/5`">
+ <template #icon>
+ <CircumMonitor height="24" width="24" />
+ </template>
+ </NavLink>
+ <NavButton v-if="username" @click="cycleSideBar('notifications')" :label="'notifications'" class="hidden">
+ <template #icon>
+ <CircumInboxIn height="24" width="24" />
+ </template>
+ </NavButton>
+ <NavButton
+ v-if="$route.name === 'home'"
+ @click="cycleSideBar('folders', '#list-card')"
+ :label="'folders'"
+ :active="selectedSideBar === 'folders'"
+ :class="`ring-1 ring-gray-900/5`"
+ >
+ <template #icon>
+ <CircumFolderOn height="24" width="24" />
+ </template>
+ </NavButton>
+ <NavButton
+ v-if="username && $route.name === 'home'"
+ @click="cycleSideBar('history', '#list-card')"
+ :label="'history'"
+ :active="selectedSideBar === 'history'"
+ :class="`ring-1 ring-gray-900/5`"
+ >
+ <template #icon>
+ <MaterialSymbolsLightHistory height="24" width="24" />
+ </template>
+ </NavButton>
+ <NavButton
+ v-if="username && $route.name === 'dashboard'"
+ @click="cycleSideBar('dashboard', '#left-card')"
+ :label="'dashboard'"
+ :active="selectedSideBar === 'dashboard'"
+ :class="`ring-1 ring-gray-900/5`"
+ >
+ <template #icon>
+ <MaterialSymbolsLightMenu height="26" width="26" />
+ </template>
+ </NavButton>
+ </section>
+ <ToggleLightMode />
+ </span>
+ <hr class="block w-full shrink-0" />
</nav>
</template>
diff --git a/resources/js/components/panels/VideoSidebar.vue b/resources/js/components/panels/VideoSidebar.vue
index bf5645f4..f6443eee 100755
--- a/resources/js/components/panels/VideoSidebar.vue
+++ b/resources/js/components/panels/VideoSidebar.vue
@@ -32,13 +32,13 @@ watch(selectedSideBar, () => {
</script>
<template>
- <div class="p-3">
- <div class="flex p-1 text-ri">
- <h1 id="sidebar-title" class="text-xl h-8 w-full capitalize dark:text-white">{{ selectedSideBar }}</h1>
+ <div class="p-3 flex flex-col gap-3">
+ <div class="flex py-1 flex-col gap-2">
+ <h1 id="sidebar-title" class="text-2xl h-8 w-full capitalize dark:text-white">{{ selectedSideBar }}</h1>
+ <hr class="" />
</div>
- <hr class="mt-2 mb-3" />
- <section v-if="selectedSideBar === 'folders'" id="list-content-folders" class="flex space-y-2 flex-wrap">
+ <section v-if="selectedSideBar === 'folders'" id="list-content-folders" class="flex gap-2 flex-wrap">
<FolderCard
v-for="folder in stateDirectory.folders"
:key="folder.id"
@@ -48,7 +48,7 @@ watch(selectedSideBar, () => {
@clickAction="handleShare"
/>
</section>
- <section v-if="selectedSideBar === 'history'" id="list-content-history" class="flex space-y-2 flex-wrap">
+ <section v-if="selectedSideBar === 'history'" id="list-content-history" class="flex gap-2 flex-wrap">
<RecordCard v-for="record in stateRecords.slice(0, 10)" :key="record.id" :record="record" @clickAction="handleShare" />
<RouterLink
v-if="stateRecords.length != 0"
@@ -60,7 +60,7 @@ watch(selectedSideBar, () => {
</section>
<ModalBase :modalData="shareModal">
<template #content>
- <div class="py-3">Copy link to clipboard to share it.</div>
+ <div class="pb-2">Copy link to clipboard to share it.</div>
</template>
<template #controls>
<ButtonClipboard :text="shareLink" />
diff --git a/resources/js/components/pinesUI/ToastController.vue b/resources/js/components/pinesUI/ToastController.vue
index 1f5ec18e..368bf94e 100755
--- a/resources/js/components/pinesUI/ToastController.vue
+++ b/resources/js/components/pinesUI/ToastController.vue
@@ -252,9 +252,9 @@ export default {
'right-0 top-0 sm:mt-6 sm:mr-6': positionRoot == 'top-right',
'left-0 top-0 sm:mt-6 sm:ml-6': positionRoot == 'top-left',
'left-1/2 -translate-x-1/2 top-0 sm:mt-6': positionRoot == 'top-center',
- 'right-0 bottom-0 sm:mr-6 sm:mb-6': positionRoot == 'bottom-right',
- 'left-0 bottom-0 sm:ml-6 sm:mb-6': positionRoot == 'bottom-left',
- 'left-1/2 -translate-x-1/2 bottom-0 sm:mb-6': positionRoot == 'bottom-center',
+ 'right-0 sm:mr-6 top-0 md:top-auto md:bottom-0 sm:mt-6 md:mb-6': positionRoot == 'bottom-right',
+ 'left-0 sm:ml-6 top-0 md:top-auto md:bottom-0 sm:mt-6 md:mb-6': positionRoot == 'bottom-left',
+ 'left-1/2 -translate-x-1/2 top-0 md:top-auto md:bottom-0 sm:mt-6 md:mb-6': positionRoot == 'bottom-center',
}"
v-cloak
ref="container"
diff --git a/resources/js/components/pinesUI/ToastNotification.vue b/resources/js/components/pinesUI/ToastNotification.vue
index 63f97b2d..73035ca0 100755
--- a/resources/js/components/pinesUI/ToastNotification.vue
+++ b/resources/js/components/pinesUI/ToastNotification.vue
@@ -1,4 +1,4 @@
-<script setup>
+<script setup lang="ts">
import { onBeforeUnmount, onMounted, ref } from 'vue';
const emit = defineEmits(['close']);
@@ -9,7 +9,7 @@ const props = defineProps({
},
position: {
type: String,
- default: 'bottom-right',
+ default: 'bottom-center',
},
life: {
type: Number,
@@ -46,13 +46,13 @@ const props = defineProps({
const toastHovered = ref(false);
const mounted = ref(false);
-const animateTimeout = ref(null);
-const closeTimeout = ref(null);
-const stackTimeout = ref(null);
+const animateTimeout = ref<null | number>(null);
+const closeTimeout = ref<null | number>(null);
+const stackTimeout = ref<null | number>(null);
onMounted(() => {
mounted.value = true;
- if (stackTimeout.value) clearTimeout(stackTimeout);
+ if (stackTimeout.value) clearTimeout(stackTimeout.value);
stackTimeout.value = setTimeout(() => {
props.stack();
@@ -67,7 +67,7 @@ onBeforeUnmount(() => {
clearCloseTimeout();
});
-function close(params) {
+function close(params: any) {
emit('close', params);
}
@@ -79,15 +79,15 @@ function onCloseClick() {
}
function clearCloseTimeout() {
if (stackTimeout.value) {
- clearTimeout(stackTimeout);
+ clearTimeout(stackTimeout.value);
stackTimeout.value = null;
}
if (animateTimeout.value) {
- clearTimeout(animateTimeout);
+ clearTimeout(animateTimeout.value);
animateTimeout.value = null;
}
if (closeTimeout.value) {
- clearTimeout(closeTimeout);
+ clearTimeout(closeTimeout.value);
closeTimeout.value = null;
}
}
@@ -102,11 +102,11 @@ function animateClose() {
<template>
<Transition
enter-active-class="ease-out duration-300"
- :enter-from-class="`opacity-0 ${props.position.includes('bottom') ? 'translate-y-full' : '-translate-y-full'}`"
+ :enter-from-class="`opacity-0 ${props.position.includes('bottom') ? '-translate-y-full md:translate-y-full' : '-translate-y-full'}`"
:enter-to-class="`opacity-100 translate-y-0`"
leave-active-class="ease-out duration-300"
:leave-from-class="`opacity-100 translate-y-0`"
- :leave-to-class="`opacity-0 ${props.count == 1 ? (props.position.includes('bottom') ? 'translate-y-full' : '-translate-y-full') : 'translate-y-0'}`"
+ :leave-to-class="`opacity-0 ${props.count == 1 ? (props.position.includes('bottom') ? '-translate-y-full md:translate-y-full' : '-translate-y-full') : 'translate-y-0'}`"
>
<li
v-show="mounted"
diff --git a/resources/js/components/pulseCards/PulseQueues.vue b/resources/js/components/pulseCards/PulseQueues.vue
index cbc5b3bb..394006a1 100644
--- a/resources/js/components/pulseCards/PulseQueues.vue
+++ b/resources/js/components/pulseCards/PulseQueues.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { PulseQueueResponse, PulseResponse, PulseServerResponse } from '@/types/types';
-import { periodForHumans, pulseFormatDate } from '@/service/util';
+import { format_number, periodForHumans, pulseFormatDate } from '@/service/util';
import { ref, watch } from 'vue';
import IconQueueList from '../icons/IconQueueList.vue';
@@ -184,7 +184,7 @@ watch(
:rows="rows"
:class="props.class"
name="Queues"
- :title="`Time: ${Intl.NumberFormat().format(pulseData?.queues?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
+ :title="`Time: ${format_number(pulseData?.queues?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
:details="`past ${periodForHumans(period)}`"
>
<template #icon>
@@ -235,15 +235,13 @@ watch(
>
<span
v-if="pulseData?.queues?.config.sample_rate && pulseData.queues.config.sample_rate < 1"
- :title="`Sample rate: ${pulseData.queues.config.sample_rate}, Raw value: ${Intl.NumberFormat().format(getMaxReading(queues[queue]))}`"
+ :title="`Sample rate: ${pulseData.queues.config.sample_rate}, Raw value: ${format_number(getMaxReading(queues[queue]))}`"
>~{{
- Intl.NumberFormat().format(
- getMaxReading(queues[queue]) * (1 / pulseData.queues.config.sample_rate),
- )
+ format_number(getMaxReading(queues[queue]) * (1 / pulseData.queues.config.sample_rate))
}}</span
>
<template v-else>
- {{ Intl.NumberFormat().format(getMaxReading(queues[queue])) }}
+ {{ format_number(getMaxReading(queues[queue])) }}
</template>
</div>
diff --git a/resources/js/components/pulseCards/PulseServers.vue b/resources/js/components/pulseCards/PulseServers.vue
index 701a47ff..3f23469b 100644
--- a/resources/js/components/pulseCards/PulseServers.vue
+++ b/resources/js/components/pulseCards/PulseServers.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { PulseResponse, PulseServerResponse } from '@/types/types.ts';
-import { toTimeSpan } from '@/service/util';
+import { format_number, toTimeSpan } from '@/service/util';
import { ref, watch } from 'vue';
import IconSignalSlash from '../icons/IconSignalSlash.vue';
@@ -281,7 +281,7 @@ watch(
<IconServer class="w-6 h-6 mr-2 stroke-gray-500 dark:stroke-gray-400" />
<span
class="text-base font-bold text-gray-600 dark:text-gray-300"
- :title="`Time: ${Intl.NumberFormat().format(pulseData?.servers?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
+ :title="`Time: ${format_number(pulseData?.servers?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
>
{{ servers[server]?.name }}
</span>
@@ -290,7 +290,7 @@ watch(
:id="`${server}-cpu`"
:class="`flex items-center ${(Object.keys(servers).length ?? 0) > 1 ? 'py-2' : ''} ${!servers[server].recently_reported ? 'opacity-25 animate-pulse' : ''}`"
>
- <div class="text-xl font-bold text-gray-700 dark:text-gray-200 w-14 whitespace-nowrap tabular-nums">
+ <div class="text-lg font-bold text-gray-700 dark:text-gray-200 w-14 whitespace-nowrap tabular-nums">
{{ servers[server].cpu_current }}%
</div>
</div>
@@ -361,7 +361,7 @@ watch(
:class="`flex items-center ${(Object.keys(servers).length ?? 0) > 1 ? 'py-2' : ''} ${!servers[server].recently_reported ? 'opacity-25 animate-pulse' : ''}`"
>
<div class="w-36 flex-shrink-0 whitespace-nowrap tabular-nums">
- <span class="text-xl font-bold text-gray-700 dark:text-gray-200">
+ <span class="text-lg font-bold text-gray-700 dark:text-gray-200">
{{ friendlySize(servers[server].memory_current, 1) }}
</span>
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">
@@ -442,7 +442,7 @@ watch(
:title="`Directory: ${storage.directory}`"
>
<div class="whitespace-nowrap tabular-nums">
- <span class="text-xl font-bold text-gray-700 dark:text-gray-200">{{ friendlySize(storage.used) }}</span>
+ <span class="text-lg font-bold text-gray-700 dark:text-gray-200">{{ friendlySize(storage.used) }}</span>
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">/ {{ friendlySize(storage.total) }}</span>
</div>
diff --git a/resources/js/components/pulseCards/PulseUsage.vue b/resources/js/components/pulseCards/PulseUsage.vue
index 06405422..4b18f815 100644
--- a/resources/js/components/pulseCards/PulseUsage.vue
+++ b/resources/js/components/pulseCards/PulseUsage.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { PulseQueueResponse, PulseResponse, PulseServerResponse, PulseUsageResponse } from '@/types/types';
-import { periodForHumans, pulseFormatDate } from '@/service/util';
+import { format_number, periodForHumans, pulseFormatDate } from '@/service/util';
import { ref, watch } from 'vue';
import IconQueueList from '../icons/IconQueueList.vue';
@@ -17,9 +17,9 @@ import InputSelect from '../pinesUI/InputSelect.vue';
import PulseUserCard from '../pulse/PulseUserCard.vue';
const requestOptions = [
- { value: 'requests', title: 'making requests' },
- { value: 'slow_requests', title: 'experiencing slow endpoints' },
- { value: 'jobs', title: 'dispatching jobs' },
+ { value: 'requests', title: 'making requests', key: 'userRequestsConfig' },
+ { value: 'slow_requests', title: 'experiencing slow endpoints', key: 'slowRequestsCounts' },
+ { value: 'jobs', title: 'dispatching jobs', key: 'jobsCounts' },
];
const props = withDefaults(
@@ -38,14 +38,18 @@ const props = withDefaults(
);
const userRequestCounts = ref<PulseUsageResponse[]>();
-const type = ref<'requests' | 'slow_requests' | 'jobs'>('requests');
+const type = ref<{ value: 'requests' | 'slow_requests' | 'jobs'; title: string; key: string }>({
+ value: 'requests',
+ title: 'making requests',
+ key: 'userRequestsConfig',
+});
-const handleSetType = (newType: 'requests' | 'slow_requests' | 'jobs') => {
+const handleSetType = (newType: { value: 'requests' | 'slow_requests' | 'jobs'; title: string; key: string }) => {
type.value = newType;
};
const sampleRate = () => {
- switch (type.value) {
+ switch (type.value.value) {
case 'requests':
return props.pulseData?.usage.userRequestsConfig.sample_rate ?? 1;
case 'slow_requests':
@@ -55,37 +59,30 @@ const sampleRate = () => {
}
};
-watch(
- () => props.pulseData,
- () => {
- if (props.pulseData?.usage) {
- console.log(props?.pulseData?.usage.userRequestCounts);
- userRequestCounts.value = props.pulseData.usage.userRequestCounts;
- }
- },
-);
+watch([() => props.pulseData, type], () => {
+ if (props.pulseData?.usage) {
+ userRequestCounts.value =
+ type.value.value === 'requests'
+ ? (props.pulseData.usage.userRequestCounts ?? [])
+ : type.value.value === 'slow_requests'
+ ? (props.pulseData.usage.slowRequestsCounts ?? [])
+ : (props.pulseData.usage.jobsCounts ?? []);
+ }
+});
</script>
<template>
<DashboardCard
:cols="cols"
:rows="rows"
:class="`${props.class} col-span-2 md:col-span-4`"
- :name="`${
- type === 'requests'
- ? 'Top 10 Users Making Requests'
- : type === 'slow_requests'
- ? 'Top 10 Users Experiencing Slow Endpoints'
- : type === 'jobs'
- ? 'Top 10 Users Dispatching Jobs'
- : 'Application Usage'
- }`"
- :title="`Time: ${Intl.NumberFormat().format(pulseData?.queues?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
+ :name="`${'Application Usage'}`"
+ :title="`Time: ${format_number(pulseData?.queues?.time ?? 0)}ms; Run at: ${pulseData?.servers?.runAt ? new Date(pulseData?.servers?.runAt).toLocaleDateString() : ''};`"
:details="`past ${periodForHumans(period)}`"
>
<template #icon>
- <IconArrowTrendingUp v-if="type === 'requests'" />
- <IconClock v-else-if="type === 'slow_requests'" />
- <IconScale v-else-if="type === 'jobs'" />
+ <IconArrowTrendingUp v-if="type.value === 'requests'" />
+ <IconClock v-else-if="type.value === 'slow_requests'" />
+ <IconScale v-else-if="type.value === 'jobs'" />
<IconCursorArrowRays v-else />
</template>
<template #actions>
@@ -113,10 +110,10 @@ watch(
<span
v-if="sampleRate() < 1"
title="Sample rate: {{ $sampleRate }}, Raw value: {{ number_format($userRequestCount->count) }}"
- >~{{ Intl.NumberFormat().format(userRequestCount.count * (1 / sampleRate())) }}</span
+ >~{{ format_number(userRequestCount.count * (1 / sampleRate())) }}</span
>
<template v-else>
- {{ Intl.NumberFormat().format(userRequestCount.count) }}
+ {{ format_number(userRequestCount.count) }}
</template>
</template>
</PulseUserCard>
diff --git a/resources/js/service/util.ts b/resources/js/service/util.ts
index 1ca8eaf8..0de64e70 100644
--- a/resources/js/service/util.ts
+++ b/resources/js/service/util.ts
@@ -85,3 +85,7 @@ export function periodForHumans(period: string) {
if (period === '1_hour') return 'hour';
return period.replace('_', ' ');
}
+
+export function format_number(value: any) {
+ return Intl.NumberFormat().format(value);
+}
diff --git a/resources/js/views/DashboardView.vue b/resources/js/views/DashboardView.vue
index 45cd4bc0..b63af9d0 100644
--- a/resources/js/views/DashboardView.vue
+++ b/resources/js/views/DashboardView.vue
@@ -43,14 +43,12 @@ onMounted(async () => {
</section>
</template>
<template v-slot:leftSidebar>
- <!-- <HistorySidebar /> -->
- <div class="p-3">
- <div class="flex p-1">
+ <div class="p-3 flex flex-col gap-3">
+ <div class="flex py-1 flex-col">
<h1 id="sidebar-title" class="text-2xl h-8 w-full capitalize dark:text-white">{{ 'Management' }}</h1>
+ <hr />
</div>
- <hr class="mt-2 mb-3" />
-
<section class="sm:text-lg flex flex-col gap-2">
<div
v-for="(page, index) in dashboardPages"