Skip to content

A self-hosted media server and file management system

feat: update many components to use cedar-ui

aminnausinc1a4d34ed13e
diff --git a/resources/css/cedar-theme.css b/resources/css/cedar-theme.css
index 9e7e7886..6e81d5ef 100644
--- a/resources/css/cedar-theme.css
+++ b/resources/css/cedar-theme.css
@@ -92,12 +92,12 @@
--color-primary-dark-950: #101014;
/* Indicator Colors */
- --color-success: oklch(72.3% 0.219 149.579); /* green-500 */
- --color-info: oklch(62.3% 0.214 259.815); /* blue-500 */
- --color-warning: oklch(75% 0.183 55.934); /* orange-500 */
- --color-danger: oklch(64.5% 0.246 16.439); /* rose-500 */
- --color-danger-2: oklch(58.6% 0.253 17.585); /* rose-600 */
- --color-danger-3: oklch(51.4% 0.222 16.935); /* rose-700 */
+ --color-success: var(--color-green-500); /* green-500 */
+ --color-info: var(--color-blue-500); /* blue-500 */
+ --color-warning: var(--color-orange-500); /* orange-500 */
+ --color-danger: var(--color-rose-500); /* rose-500 */
+ --color-danger-2: var(--color-rose-600); /* rose-600 */
+ --color-danger-3: var(--color-rose-700); /* rose-700 */
/* Opacity */
--opacity-disabled: 0.6;
@@ -141,17 +141,17 @@
--color-r-button: var(--color-neutral-600); /* neutral-600 #525252 */
--color-r-input: transparent /* to transparent */;
--color-r-default: var(--color-gray-900) /* gray-900 #101828 */;
- --color-r-inverse: color-mix(in oklab, oklch(26.9% 0 0) 50%, transparent); /* neutral-800/50 */
+ --color-r-inverse: color-mix(in oklab, var(--color-neutral-800) 50%, transparent); /* neutral-800/50 */
/* Border Divide */
- --color-b: oklch(92.8% 0.006 264.531); /* gray-200 #e5e7eb */
- --color-border-1: oklch(43.9% 0 0); /* neutral-600 #525252 */
- --color-d: oklch(37.1% 0 0); /* neutral-700 #404040 */
+ --color-b: var(--color-gray-200); /* gray-200 #e5e7eb */
+ --color-border-1: var(--color-neutral-600); /* neutral-600 #525252 */
+ --color-d: var(--color-neutral-700); /* neutral-700 #404040 */
--color-hr: var(--color-neutral-500);
/* Indicator Colors */
- --color-success: oklch(62.7% 0.194 149.214); /* green-600 */
- --color-danger: oklch(58.6% 0.253 17.585); /* rose-600 */
+ --color-success: var(--color-green-600); /* green-600 */
+ --color-danger: var(--color-rose-600); /* rose-600 */
/* Toasts Menus Popovers Dropdowns */
--color-overlay: oklch(0.2739 0.0055 286.03) /* #26262a */; /* surface-3/70 */
diff --git a/resources/css/theme.css b/resources/css/theme.css
index 27495052..4af3c3bf 100644
--- a/resources/css/theme.css
+++ b/resources/css/theme.css
@@ -207,4 +207,8 @@
background: transparent;
height: calc(var(--thumb-size) * 0.25rem);
}
+
+ .data-card {
+ @apply bg-surface-2 hover:bg-surface-3 dark:hover:bg-primary-dark-600 dark:bg-surface-2/70;
+ }
}
diff --git a/resources/js/components/cards/HoverCard.vue b/resources/js/components/cards/HoverCard.vue
index 08929728..97dc3a84 100644
--- a/resources/js/components/cards/HoverCard.vue
+++ b/resources/js/components/cards/HoverCard.vue
@@ -87,7 +87,7 @@ watch(
</script>
<template>
- <div class="" @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">
+ <div @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">
<slot name="trigger">
<a href="#_" class="hover:underline"></a>
</slot>
@@ -100,7 +100,8 @@ watch(
v-cloak
:class="[
positionClasses,
- `absolute z-30 flex gap-2 rounded-md border border-neutral-200/70 bg-white p-3 text-sm shadow-md backdrop-blur-lg transition-opacity duration-200 ease-in-out dark:border-none dark:bg-neutral-800/70 dark:odd:bg-primary-dark-600/70 md:max-w-xl xl:max-w-3xl`,
+ `dark:odd:bg-primary-dark-600/70 absolute z-30 flex gap-2 rounded-md`,
+ `border border-neutral-200/70 bg-white p-3 text-sm shadow-md backdrop-blur-lg transition-opacity duration-200 ease-in-out md:max-w-xl xl:max-w-3xl dark:border-none dark:bg-neutral-800/70`,
]"
:style="tooltipStyles"
>
@@ -111,7 +112,7 @@ watch(
<slot name="content">
<div class="flex min-h-0 flex-col gap-2">
<h4 v-if="contentTitle">{{ contentTitle }}</h4>
- <p class="w-full whitespace-pre-wrap text-pretty dark:text-neutral-400" v-if="content">{{ content }}</p>
+ <p class="w-full text-pretty whitespace-pre-wrap dark:text-neutral-400" v-if="content">{{ content }}</p>
</div>
</slot>
</div>
diff --git a/resources/js/components/cards/LibraryCardMenu.vue b/resources/js/components/cards/LibraryCardMenu.vue
index 35c6d557..0096db17 100644
--- a/resources/js/components/cards/LibraryCardMenu.vue
+++ b/resources/js/components/cards/LibraryCardMenu.vue
@@ -1,8 +1,9 @@
<script setup lang="ts">
import type { CategoryResource, FolderResource } from '@/types/resources';
-import InputSelect from '@/components/pinesUI/InputSelect.vue';
-import ButtonText from '@/components/inputs/ButtonText.vue';
+import { InputSelect } from '@/components/cedar-ui/select';
+import { ButtonText } from '@/components/cedar-ui/button';
+
import InputLabel from '@/components/labels/InputLabel.vue';
import ProiconsArrowSync from '~icons/proicons/arrow-sync';
@@ -29,15 +30,15 @@ const props = withDefaults(
<div class="space-y-4" v-if="data">
<div class="space-y-2">
<h4 class="leading-none font-medium">Manage Library</h4>
- <p class="text-muted-foreground text-sm">Set Library Properties.</p>
+ <p class="text-foreground-1 text-sm">Set Library Properties.</p>
</div>
- <div class="flex flex-col gap-2 *:h-8 *:w-full disabled:*:opacity-60 dark:*:bg-neutral-900">
+ <div class="flex flex-col gap-2 *:h-8 dark:*:bg-neutral-900">
<div class="flex h-auto! flex-col gap-1 bg-transparent!">
<InputLabel text="Default Folder" name="Default Folder" class="font-normal" />
<InputSelect
id="default-folder"
- root-class="flex-1 rounded-l-none capitalize w-full! whitespace-nowrap! col-span-2 "
- :class="'h-8 dark:bg-neutral-900!'"
+ root-class="flex-1 rounded-l-none capitalize w-full! whitespace-nowrap! col-span-2"
+ class="h-8! py-0 ps-2! dark:bg-neutral-900!"
:placeholder="'Select Default Folder'"
:default-item="folders.findIndex((folder) => folder.id == defaultFolder?.id) ?? 0"
:disabled="processing || !folders.length"
@@ -52,26 +53,30 @@ const props = withDefaults(
/>
</div>
- <ButtonText :title="'Scan for Changes'" @click="handleStartScan(false)">
- <template #text> <p class="flex-1 text-start">Scan Files</p> </template>
- <template #icon> <ProiconsArrowSync class="h-4 w-4" /></template>
+ <ButtonText title="Scan for Changes" @click="handleStartScan(false)">
+ <p class="flex-1 text-start">Scan Files</p>
+ <template #icon> <ProiconsArrowSync class="size-4" /></template>
</ButtonText>
- <ButtonText :title="'Verify File Metadata'" @click="handleStartScan(true)">
- <template #text> <p class="flex-1 text-start">Verify Files</p> </template>
- <template #icon> <ProiconsArrowSync class="h-4 w-4" /></template>
+ <ButtonText title="Verify File Metadata" @click="handleStartScan(true)">
+ <p class="flex-1 text-start">Verify Files</p>
+ <template #icon> <ProiconsArrowSync class="size-4" /></template>
</ButtonText>
- <ButtonText :title="'Manage all Folders in Library'" :to="`/dashboard/libraries/${data?.id}`" target="">
- <template #text> <p class="flex-1 text-start">Manage Folders</p> </template>
- <template #icon> <CircumFolderOn class="order-1 h-4 w-4" /></template>
+ <ButtonText title="Manage all Folders in Library" :to="`/dashboard/libraries/${data?.id}`" target="">
+ <p class="flex-1 text-start">Manage Folders</p>
+ <template #icon> <CircumFolderOn class="order-1 size-4" /></template>
</ButtonText>
<ButtonText :title="'Toggle Privacy'" @click="handleTogglePrivacy(data.id, data.is_private ?? false)" :disabled="processing">
- <template #text>
- <p class="flex-1 text-start">{{ data.is_private ? 'Set to Public' : 'Set to Private' }}</p>
- </template>
- <template #icon> <ProiconsLock v-if="data.is_private" class="h-4 w-4" /> <ProiconsLockOpen v-else class="h-4 w-4" /></template>
+ <p class="flex-1 text-start">{{ data.is_private ? 'Set to Public' : 'Set to Private' }}</p>
+ <template #icon> <ProiconsLock v-if="data.is_private" class="size-4" /> <ProiconsLockOpen v-else class="size-4" /></template>
</ButtonText>
- <ButtonText class="text-rose-600 dark:bg-rose-700!" :title="'Remove From Server'" text="Remove Library" @click.stop.prevent="$emit('clickAction')" disabled>
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
+ <ButtonText
+ @click.stop.prevent="$emit('clickAction')"
+ class="text-danger dark:text-foreground-0 dark:bg-danger-3! dark:hocus:bg-danger!"
+ title="Remove From Server"
+ disabled
+ >
+ <p class="flex-1 text-start">Remove Library</p>
+ <template #icon> <ProiconsDelete class="size-4" /></template>
</ButtonText>
</div>
</div>
diff --git a/resources/js/components/cards/LibraryFolderCardMenu.vue b/resources/js/components/cards/LibraryFolderCardMenu.vue
index 81daf042..24feedcb 100644
--- a/resources/js/components/cards/LibraryFolderCardMenu.vue
+++ b/resources/js/components/cards/LibraryFolderCardMenu.vue
@@ -1,5 +1,5 @@
<script setup lang="ts">
-import ButtonText from '@/components/inputs/ButtonText.vue';
+import { ButtonText } from '@/components/cedar-ui/button';
import ProiconsDelete from '~icons/proicons/delete';
import ProiconsLock from '~icons/proicons/lock';
@@ -11,14 +11,13 @@ const props = withDefaults(defineProps<{ handleClosePopover?: () => void }>(), {
<template>
<div class="space-y-4">
<div class="space-y-2">
- <h4 class="font-medium leading-none">Manage Folder</h4>
- <p class="text-sm text-muted-foreground">Set Folder Properties.</p>
+ <h4 class="leading-none font-medium">Manage Folder</h4>
+ <p class="text-foreground-1 text-sm">Set Folder Properties.</p>
</div>
- <div class="*:w-full flex flex-col gap-2 dark:*:bg-neutral-900 *:h-8 disabled:*:opacity-60">
+ <div class="flex flex-col gap-2 dark:*:bg-neutral-900">
<ButtonText
- class="h-8 dark:bg-neutral-950! disabled:opacity-60"
- :title="'Edit Folder'"
+ title="Edit Folder"
@click.stop.prevent="
() => {
if (handleClosePopover) handleClosePopover();
@@ -26,16 +25,16 @@ const props = withDefaults(defineProps<{ handleClosePopover?: () => void }>(), {
}
"
>
- <template #text> <p class="flex-1 text-start">Edit Folder</p></template>
- <template #icon> <CircumEdit class="h-4 w-4" /></template>
+ <p class="flex-1 text-start">Edit Folder</p>
+ <template #icon> <CircumEdit class="size-4" /></template>
</ButtonText>
- <ButtonText :title="'Manage Metadata Settings'" disabled>
- <template #text> <p class="flex-1 text-start">Manage Metadata</p> </template>
- <template #icon> <ProiconsLock class="h-4 w-4" /></template>
+ <ButtonText title="Manage Metadata Settings" disabled>
+ <p class="flex-1 text-start">Manage Metadata</p>
+ <template #icon> <ProiconsLock class="size-4" /></template>
</ButtonText>
- <ButtonText class="text-rose-600 dark:bg-rose-700!" :title="'Remove From Server'" disabled>
- <template #text> <p class="flex-1 text-start">Remove Folder</p> </template>
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
+ <ButtonText class="text-danger dark:text-foreground-0 dark:bg-danger-3! dark:hocus:bg-danger! justify-between" title="Remove From Server" disabled>
+ <p class="flex-1 text-start">Remove Folder</p>
+ <template #icon> <ProiconsDelete class="size-4" /></template>
</ButtonText>
</div>
</div>
diff --git a/resources/js/components/cards/SubTaskCard.vue b/resources/js/components/cards/SubTaskCard.vue
deleted file mode 100644
index f5955723..00000000
--- a/resources/js/components/cards/SubTaskCard.vue
+++ /dev/null
@@ -1,101 +0,0 @@
-<script setup lang="ts">
-import type { SubTaskResource } from '@/types/resources';
-
-import { toFormattedDate, toFormattedDuration, toTimeSpan, within24Hrs } from '@/service/util';
-
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
-import HoverCard from '@/components/cards/HoverCard.vue';
-import ChipTag from '@/components/labels/ChipTag.vue';
-
-import ProiconsArrowReply from '~icons/proicons/arrow-reply';
-import ProiconsDelete from '~icons/proicons/delete';
-
-const props = defineProps<{ data: SubTaskResource; isScreenLarge?: boolean }>();
-const emit = defineEmits(['clickAction']);
-</script>
-
-<template>
- <span class="flex text-left rounded-xl dark:text-white w-full">
- <section
- class="flex flex-wrap flex-1 ring-1 truncate ring-inset ring-gray-900/5 hover:ring-purple-700 rounded-md shadow-xs w-full bg-white dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 p-3 gap-4 items-center"
- >
- <div class="relative group flex flex-col gap-1 flex-1 truncate">
- <HoverCard
- :content="data.summary ? `${data.name ? `${data.name}\n` : ''}` + data.summary.trim() : (data.name ?? '')"
- class="flex gap-x-4 gap-y-2 items-center truncate"
- >
- <template #trigger>
- <h2 class="truncate capitalize group">{{ data.id }} - {{ data.name }}</h2>
- <p v-if="data.summary" class="truncate text-neutral-600 dark:text-neutral-400 max-w-48 lg:max-w-20 xl:max-w-64 hidden md:block">
- {{ data.summary }}
- </p>
- </template>
- </HoverCard>
- <div class="flex gap-x-8 gap-y-2 p">
- <h4
- class="text-xs text-neutral-600 dark:text-neutral-400 truncate line-clamp-1 capitalize"
- :title="
- `Created: ${data.created_at}\n` +
- (data.started_at ? `Started: ${data.started_at} UTC\n` : '') +
- (data.ended_at ? `Finished: ${data.ended_at} UTC\n` : '')
- "
- >
- {{
- data.ended_at
- ? `Finished: ${toFormattedDate(new Date(data.ended_at + ' UTC'), true, within24Hrs(data.ended_at + ' UTC') ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
- : data.started_at
- ? `Started: ${toFormattedDate(new Date(data.started_at + ' UTC'), true, within24Hrs(data.started_at + ' UTC') ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
- : `Created: ${toFormattedDate(new Date(data.created_at), true, within24Hrs(data.created_at) ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
- }}
- </h4>
- <h4 class="text-xs text-neutral-600 dark:text-neutral-400 truncate line-clamp-1 capitalize w-20 lg:w-fit hidden sm:block" title="Duration">
- {{ data.duration || data.ended_at ? 'Duration:' : data.started_at ? 'Started: ' : 'Scheduled: ' }}
- {{
- data.duration || data.ended_at
- ? toFormattedDuration(data.duration, false)
- : toTimeSpan(data.started_at ?? data.created_at, data.started_at ? ' UTC' : '')
- }}
- </h4>
- </div>
- </div>
-
- <div class="px-2 text-xs hidden lg:flex flex-col gap-1 h-fit min-w-32">
- <p class="w-full text-left pe-8">{{ data.progress }}% Processed</p>
- <div class="rounded-full h-1 w-full bg-primary-dark-900 flex overflow-clip">
- <span
- :class="`h-1 ${data.status === 'completed' ? 'bg-purple-600' : data.status === 'failed' ? 'bg-rose-600' : 'bg-amber-500'} rounded-full`"
- :style="`width: ${data.progress}%;`"
- ></span>
- </div>
- </div>
-
- <div class="flex gap-1 items-center shrink-0 sm:flex-none">
- <ChipTag
- :class="`h-6 shadow-xs`"
- :colour="`${data.status === 'pending' ? 'bg-[#e4e4e4] dark:bg-white text-gray-900!' : 'text-white!'} ${
- data.status === 'processing'
- ? 'bg-purple-600 dark:bg-purple-700'
- : data.status === 'completed'
- ? 'bg-[#660099] '
- : data.status === 'incomplete' || data.status === 'cancelled'
- ? 'bg-amber-500 text-gray-900! '
- : 'bg-rose-600 dark:bg-rose-700 '
- }`"
- :label="data.status"
- />
- <ButtonCorner
- :disabled="data.status === 'pending' || data.status === 'processing'"
- positionClasses="w-7 h-7 p-1! ml-auto"
- textClasses="hover:text-rose-600 dark:hover:text-rose-500"
- colourClasses="dark:hover:bg-neutral-900 hover:bg-gray-100 hover:shadow-md"
- label="Remove Sub Task Record From Server"
- @click="$emit('clickAction', 'subTask')"
- >
- <template #text> Remove </template>
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
- </ButtonCorner>
- </div>
- </section>
- <ProiconsArrowReply class="hidden sm:block -scale-y-100 h-6 w-6 mx-2 my-auto shrink-0" />
- </span>
-</template>
diff --git a/resources/js/components/cards/sidebar/AppManifestCard.vue b/resources/js/components/cards/data/AppManifestCard.vue
similarity index 100%
rename from resources/js/components/cards/sidebar/AppManifestCard.vue
rename to resources/js/components/cards/data/AppManifestCard.vue
diff --git a/resources/js/components/cards/sidebar/FolderCard.vue b/resources/js/components/cards/data/FolderCard.vue
similarity index 100%
rename from resources/js/components/cards/sidebar/FolderCard.vue
rename to resources/js/components/cards/data/FolderCard.vue
diff --git a/resources/js/components/cards/LibraryCard.vue b/resources/js/components/cards/data/LibraryCard.vue
similarity index 94%
rename from resources/js/components/cards/LibraryCard.vue
rename to resources/js/components/cards/data/LibraryCard.vue
index c8749d78..861ed467 100644
--- a/resources/js/components/cards/LibraryCard.vue
+++ b/resources/js/components/cards/data/LibraryCard.vue
@@ -102,15 +102,15 @@ watch(
</script>
<template>
- <div class="dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 group flex w-full flex-col rounded-xl bg-white shadow-lg ring-1 ring-gray-900/5">
+ <div class="data-card group flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5">
<RouterLink :to="`/${data?.name}`" class="peer relative h-40 w-full">
<img
- class="peer mb-auto h-full w-full rounded-t-md object-cover shadow-xs ring-1 ring-gray-900/5 ring-inset hover:ring-4 hover:ring-red-500"
+ class="peer mb-auto h-full w-full rounded-t-md object-cover shadow-xs ring-1 ring-gray-900/5 ring-inset hover:ring-4"
:src="handleStorageURL(defaultFolder?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
alt="Folder Cover Art"
loading="lazy"
/>
- <span class="absolute top-0 left-0 h-full w-full rounded-t-md ring-purple-600/90 ring-inset hover:ring-2"></span>
+ <span class="ring-primary/90 absolute top-0 left-0 h-full w-full rounded-t-md transition duration-200 ease-in-out ring-inset hover:ring-2"></span>
</RouterLink>
<section class="flex h-full flex-1 flex-col gap-2 p-3">
<div class="flex flex-wrap items-start justify-between">
@@ -136,7 +136,7 @@ watch(
</BasePopover>
</span>
</div>
- <span class="mt-auto flex h-full w-full flex-col text-sm text-neutral-600 sm:gap-1 dark:text-neutral-400" v-if="data">
+ <span class="text-foreground-1 mt-auto flex h-full w-full flex-col text-sm sm:gap-1" v-if="data">
<span class="flex flex-wrap items-start justify-between">
<span class="flex flex-col gap-1 sm:gap-0">
<p class="">Videos: {{ data?.videos_count ?? '?' }}</p>
diff --git a/resources/js/components/cards/LibraryFolderCard.vue b/resources/js/components/cards/data/LibraryFolderCard.vue
similarity index 91%
rename from resources/js/components/cards/LibraryFolderCard.vue
rename to resources/js/components/cards/data/LibraryFolderCard.vue
index b07037db..8a34b44c 100644
--- a/resources/js/components/cards/LibraryFolderCard.vue
+++ b/resources/js/components/cards/data/LibraryFolderCard.vue
@@ -16,7 +16,7 @@ const popover = useTemplateRef('popover');
</script>
<template>
- <div class="dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 group flex w-full flex-col rounded-xl bg-white shadow-lg ring-1 ring-gray-900/5">
+ <div class="data-card group flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5">
<RouterLink :to="`/${encodeURI(data.path)}`" class="relative h-40 w-full">
<img
class="mb-auto h-full w-full rounded-t-md object-cover shadow-xs ring-1 ring-gray-900/5"
@@ -45,7 +45,7 @@ const popover = useTemplateRef('popover');
</BasePopover>
</span>
</div>
- <span class="mt-auto flex h-full w-full flex-col gap-1 text-sm text-neutral-600 dark:text-neutral-400" v-if="data">
+ <span class="text-foreground-1 mt-auto flex h-full w-full flex-col gap-1 text-sm" v-if="data">
<span class="mt-auto flex flex-wrap items-start justify-between">
<p class="">{{ data.is_majority_audio ? 'Tracks' : 'Videos' }}: {{ data?.file_count ?? '?' }}</p>
</span>
diff --git a/resources/js/components/cards/LrcLibCard.vue b/resources/js/components/cards/data/LrcLibCard.vue
similarity index 93%
rename from resources/js/components/cards/LrcLibCard.vue
rename to resources/js/components/cards/data/LrcLibCard.vue
index 2faae64c..bf1a56ca 100644
--- a/resources/js/components/cards/LrcLibCard.vue
+++ b/resources/js/components/cards/data/LrcLibCard.vue
@@ -34,9 +34,9 @@ const tags = computed(() => {
:class="[
'relative flex flex-wrap items-center justify-between gap-2',
'w-full rounded-lg p-3 shadow-sm transition',
- 'dark:bg-primary-dark-800/70 hover:bg-primary-800 bg-neutral-50 dark:hover:bg-violet-700/70',
- 'text-neutral-600 dark:text-neutral-100',
- `ring-2 ${data.id === dirtyLyric?.id ? 'ring-violet-700/60' : 'ring-transparent dark:ring-neutral-700/20'}`,
+ 'dark:bg-primary-dark-800/70 hover:bg-primary-800 dark:hover:bg-primary-active/70 bg-neutral-50',
+ 'text-foreground-1 dark:text-neutral-100',
+ `ring-2 ${data.id === dirtyLyric?.id ? 'ring-primary-active/60' : 'ring-transparent dark:ring-neutral-700/20'}`,
]"
>
<section class="flex w-full items-center justify-between gap-2">
diff --git a/resources/js/components/cards/sidebar/RecordCard.vue b/resources/js/components/cards/data/RecordCard.vue
similarity index 100%
rename from resources/js/components/cards/sidebar/RecordCard.vue
rename to resources/js/components/cards/data/RecordCard.vue
diff --git a/resources/js/components/cards/RecordCardDetails.vue b/resources/js/components/cards/data/RecordCardDetails.vue
old mode 100755
new mode 100644
similarity index 74%
rename from resources/js/components/cards/RecordCardDetails.vue
rename to resources/js/components/cards/data/RecordCardDetails.vue
index d33772e8..b465eaf2
--- a/resources/js/components/cards/RecordCardDetails.vue
+++ b/resources/js/components/cards/data/RecordCardDetails.vue
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { RecordResource } from '@/types/resources';
+import { ButtonCorner } from '@/components/cedar-ui/button';
import { toTimeSpan } from '@/service/util';
import { computed } from 'vue';
-import ButtonCorner from '../inputs/ButtonCorner.vue';
import CircumPlay1 from '~icons/circum/play-1';
const props = defineProps<{
@@ -21,38 +21,34 @@ const videoLink = computed(() => {
</script>
<template>
- <section
- class="dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 group bg-surface-2 relative flex w-full cursor-pointer flex-col flex-wrap gap-4 rounded-xl p-3 text-left shadow-sm ring-1 ring-gray-900/5 sm:flex-row"
- >
+ <section :class="['data-card', 'group relative flex w-full cursor-pointer flex-col flex-wrap gap-4 rounded-xl p-3 text-left shadow-sm ring-1 ring-gray-900/5 sm:flex-row']">
<RouterLink v-if="videoLink" :to="videoLink" class="absolute top-0 left-0 h-full w-full rounded-xl" title="Watch Video" />
- <section class="flex w-full justify-between gap-4">
+ <header class="flex w-full justify-between gap-4">
<h2 class="z-10 flex items-center truncate" :title="props.data.file_name">
{{ props.data.video_name }}
</h2>
<div class="z-10 flex cursor-auto justify-end gap-1" @click.stop.prevent="">
<ButtonCorner
v-if="videoLink"
- :positionClasses="'w-7 h-7'"
- :textClasses="'hover:text-violet-600 dark:hover:text-violet-500'"
- :colourClasses="'dark:hover:bg-neutral-800 hover:bg-gray-300'"
+ :useDefaultStyle="false"
:to="videoLink"
:label="'Watch Video'"
+ class="hover:text-primary dark:hover:text-primary-muted hover:dark:bg-surface-1 hover:bg-surface-6 size-7 transition-none"
>
<template #icon>
<CircumPlay1 width="20" height="20" />
</template>
</ButtonCorner>
<ButtonCorner
- :positionClasses="'w-7 h-7'"
- :textClasses="'text-rose-700'"
- :colourClasses="'dark:hover:bg-neutral-800 hover:bg-gray-300'"
- :label="'Delete'"
@click.stop.prevent="$emit('clickAction')"
+ :useDefaultStyle="false"
+ :label="'Delete'"
+ class="text-danger-3/80 hover:text-danger-2 hover:dark:bg-surface-1 hover:bg-surface-6 size-7 transition-none *:size-5"
/>
</div>
- </section>
- <section class="text-foreground-1 flex w-full flex-col text-sm sm:flex-row sm:justify-between">
+ </header>
+ <div class="text-foreground-1 flex w-full flex-col text-sm sm:flex-row sm:justify-between">
<h3
class="z-10 w-full cursor-auto truncate text-wrap sm:text-nowrap"
@click.stop.prevent=""
@@ -79,6 +75,6 @@ const videoLink = computed(() => {
})}`
}}
</h3>
- </section>
+ </div>
</section>
</template>
diff --git a/resources/js/components/cards/SessionCard.vue b/resources/js/components/cards/data/SessionCard.vue
similarity index 65%
rename from resources/js/components/cards/SessionCard.vue
rename to resources/js/components/cards/data/SessionCard.vue
index 2cdd280d..a8b37da3 100644
--- a/resources/js/components/cards/SessionCard.vue
+++ b/resources/js/components/cards/data/SessionCard.vue
@@ -22,26 +22,26 @@ const agent = computed(() => {
</script>
<template>
- <section class="flex items-center gap-2">
- <CircumMonitor v-if="agent.isDesktop" class="size-8 text-neutral-600 dark:text-neutral-400" />
- <IconMobile v-else class="size-8 text-neutral-600 dark:text-neutral-400" />
+ <div class="text-foreground-1 flex items-center gap-2 text-xs">
+ <CircumMonitor v-if="agent.isDesktop" class="size-8" />
+ <IconMobile v-else class="size-8" />
<section>
- <div class="text-sm">
+ <h4 class="text-foreground-0 text-sm">
{{ agent.os }} -
{{ agent.browser }}
- </div>
+ </h4>
- <div class="text-xs text-neutral-600 dark:text-neutral-400">
+ <div>
<span class="capitalize">{{ session.ip_address }},</span>
- <span v-if="session.is_current" class="font-semibold text-green-500 animate-pulse ms-1">
- <span class="recent rounded-sm bg-green-500 size-2 inline-block animate-pulse"></span>
+ <span v-if="session.is_current" class="text-success ms-1 animate-pulse font-semibold">
+ <span class="recent bg-success inline-block size-2 animate-pulse rounded-sm"></span>
This device
</span>
<span v-else>Last active {{ session.last_active }}</span>
</div>
</section>
- </section>
+ </div>
</template>
<style lang="css" scoped>
diff --git a/resources/js/components/cards/StatsCard.vue b/resources/js/components/cards/data/StatsCard.vue
similarity index 100%
rename from resources/js/components/cards/StatsCard.vue
rename to resources/js/components/cards/data/StatsCard.vue
diff --git a/resources/js/components/cards/data/SubTaskCard.vue b/resources/js/components/cards/data/SubTaskCard.vue
new file mode 100644
index 00000000..cd92e321
--- /dev/null
+++ b/resources/js/components/cards/data/SubTaskCard.vue
@@ -0,0 +1,105 @@
+<script setup lang="ts">
+import type { SubTaskResource } from '@/types/resources';
+
+import { toFormattedDate, toFormattedDuration, toTimeSpan, within24Hrs } from '@/service/util';
+import { ButtonIcon } from '@/components/cedar-ui/button';
+import { HoverCard } from '@/components/cedar-ui/hover-card';
+import { BadgeTag } from '@/components/cedar-ui/badge';
+import { cn } from '@aminnausin/cedar-ui';
+
+import ProiconsArrowReply from '~icons/proicons/arrow-reply';
+import ProiconsDelete from '~icons/proicons/delete';
+
+const props = defineProps<{ data: SubTaskResource; isScreenLarge?: boolean }>();
+const emit = defineEmits(['clickAction']);
+</script>
+
+<template>
+ <span class="flex w-full rounded-xl text-left">
+ <section class="data-card hover:ring-primary-active flex flex-1 flex-wrap items-center gap-4 truncate rounded-md p-3 shadow-xs ring-1 ring-gray-900/5 ring-inset">
+ <div class="group text-foreground-1 relative flex flex-1 flex-col gap-1 truncate">
+ <HoverCard
+ :content="data.summary ? `${data.name ? `${data.name}\n` : ''}` + data.summary.trim() : (data.name ?? '')"
+ class="flex items-center gap-x-4 gap-y-2 truncate"
+ >
+ <template #trigger>
+ <h2 class="group text-foreground-0 truncate capitalize">{{ data.id }} - {{ data.name }}</h2>
+ <p v-if="data.summary" class="hidden max-w-48 truncate md:block lg:max-w-20 xl:max-w-64">
+ {{ data.summary }}
+ </p>
+ </template>
+ </HoverCard>
+ <div class="flex gap-x-8 gap-y-2">
+ <h4
+ class="trunc"
+ :title="
+ `Created: ${data.created_at}\n` +
+ (data.started_at ? `Started: ${data.started_at} UTC\n` : '') +
+ (data.ended_at ? `Finished: ${data.ended_at} UTC\n` : '')
+ "
+ >
+ {{
+ data.ended_at
+ ? `Finished: ${toFormattedDate(new Date(data.ended_at + ' UTC'), true, within24Hrs(data.ended_at + ' UTC') ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
+ : data.started_at
+ ? `Started: ${toFormattedDate(new Date(data.started_at + ' UTC'), true, within24Hrs(data.started_at + ' UTC') ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
+ : `Created: ${toFormattedDate(new Date(data.created_at), true, within24Hrs(data.created_at) ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
+ }}
+ </h4>
+ <h4 class="sm:trunc hidden w-20 text-xs sm:block lg:w-fit" title="Duration">
+ {{ data.duration || data.ended_at ? 'Duration:' : data.started_at ? 'Started: ' : 'Scheduled: ' }}
+ {{
+ data.duration || data.ended_at
+ ? toFormattedDuration(data.duration, false)
+ : toTimeSpan(data.started_at ?? data.created_at, data.started_at ? ' UTC' : '')
+ }}
+ </h4>
+ </div>
+ </div>
+
+ <div class="hidden h-fit min-w-32 flex-col gap-1 px-2 text-xs lg:flex">
+ <p class="w-full pe-8 text-left">{{ data.progress }}% Processed</p>
+ <div class="bg-primary-dark-900 flex h-1 w-full overflow-clip rounded-full">
+ <span
+ :class="['h-1 rounded-full', { 'bg-primary': data.status === 'completed' }, data.status === 'failed' ? 'bg-danger-2' : 'bg-amber-500']"
+ :style="`width: ${data.progress}%;`"
+ ></span>
+ </div>
+ </div>
+
+ <div class="flex shrink-0 items-center gap-2 sm:flex-none">
+ <BadgeTag
+ :class="
+ cn(
+ 'flex h-6 items-center',
+ data.status === 'pending' ? 'bg-[#e4e4e4] text-gray-900 dark:bg-white' : 'text-white',
+ { 'bg-primary dark:bg-primary-dark': data.status === 'processing' },
+ { 'bg-amber-500 text-gray-900': data.status === 'incomplete' },
+ { 'bg-danger-2 dark:bg-rose-700': data.status === 'cancelled' },
+ { 'bg-[#660099]': data.status === 'completed' },
+ )
+ "
+ :label="data.status"
+ />
+ <ButtonIcon
+ :variant="'ghost'"
+ class="hover:dark:bg-surface-1 hover:bg-surface-6 text-foreground-1 hover:text-danger-2 hover:dark:text-danger-3 size-6 rounded-full p-0 transition-none"
+ label="Remove Sub Task Record From Server"
+ :useDefaultStyle="false"
+ @click="$emit('clickAction', 'subTask')"
+ >
+ <template #icon> <ProiconsDelete class="size-4" /></template>
+ </ButtonIcon>
+ </div>
+ </section>
+ <ProiconsArrowReply class="mx-2 my-auto hidden size-6 shrink-0 -scale-y-100 sm:block" />
+ </span>
+</template>
+
+<style lang="css" scoped>
+@reference '../../../../css/app.css';
+
+.trunc {
+ @apply line-clamp-1 truncate capitalize;
+}
+</style>
diff --git a/resources/js/components/cards/TaskCard.vue b/resources/js/components/cards/data/TaskCard.vue
similarity index 65%
rename from resources/js/components/cards/TaskCard.vue
rename to resources/js/components/cards/data/TaskCard.vue
index 3b9e3c5f..857e1a11 100644
--- a/resources/js/components/cards/TaskCard.vue
+++ b/resources/js/components/cards/data/TaskCard.vue
@@ -3,17 +3,16 @@ import type { SubTaskResource, TaskResource } from '@/types/resources';
import { toFormattedDate, toFormattedDuration, toTimeSpan, within24Hrs } from '@/service/util';
import { computed, ref, useTemplateRef, watch } from 'vue';
+import { ButtonIcon, ButtonText } from '@/components/cedar-ui/button';
import { getSubTasks } from '@/service/siteAPI';
import { TableBase } from '@/components/cedar-ui/table';
+import { BadgeTag } from '@/components/cedar-ui/badge';
+import { cn } from '@aminnausin/cedar-ui';
import PulseDoughnutChart from '@/components/charts/PulseDoughnutChart.vue';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
import BasePopover from '@/components/pinesUI/BasePopover.vue';
-import SubTaskCard from '@/components/cards/SubTaskCard.vue';
-import ButtonIcon from '@/components/inputs/ButtonIcon.vue';
-import ButtonText from '@/components/inputs/ButtonText.vue';
+import SubTaskCard from '@/components/cards/data/SubTaskCard.vue';
import HoverCard from '@/components/cards/HoverCard.vue';
-import ChipTag from '@/components/labels/ChipTag.vue';
import ProiconsMoreVertical from '~icons/proicons/more-vertical';
import ProiconsChevronDown from '~icons/proicons/chevron-down';
@@ -76,17 +75,13 @@ watch(
);
</script>
<template>
- <div
- class="dark:bg-primary-dark-800/50 bg-primary-800 flex w-full flex-col divide-gray-300 rounded-xl text-left shadow-sm ring-1 ring-gray-900/5 dark:divide-neutral-400 dark:text-white"
- >
- <section
- class="dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 flex w-full flex-wrap items-center gap-4 rounded-xl bg-white p-3 ring-1 ring-gray-900/5"
- >
- <div class="relative flex flex-1 flex-col gap-2 sm:gap-1">
+ <div class="dark:bg-primary-dark-800/50 bg-primary-800 flex w-full flex-col rounded-xl text-left text-xs shadow-sm ring-1 ring-gray-900/5">
+ <section class="data-card flex w-full flex-wrap items-center gap-4 rounded-xl p-3 ring-1 ring-gray-900/5">
+ <div class="text-foreground-1 relative flex flex-1 flex-col gap-2 sm:gap-1">
<HoverCard :content="data.description ?? ''" :content-title="data.summary" class="flex items-center gap-x-4 gap-y-2">
<template #trigger>
- <h2 class="group truncate capitalize">{{ data.id }} - {{ data.name }}</h2>
- <p v-if="data.summary" class="hidden max-w-64 truncate text-neutral-600 md:block dark:text-neutral-400">
+ <h2 class="group text-foreground-0 truncate text-base capitalize">{{ data.id }} - {{ data.name }}</h2>
+ <p v-if="data.summary" class="hidden max-w-64 truncate md:block">
{{ data.summary }}
</p>
</template>
@@ -98,14 +93,14 @@ watch(
:src="`https://ui-avatars.com/api/?name=${data.user[0]}&amp;color=7F9CF5&amp;background=random`"
alt="username"
/>
- <h4 class="line-clamp-1 truncate text-xs text-neutral-600 capitalize dark:text-neutral-400" title="">
+ <h4>
{{ data.user }}
</h4>
</div>
<span class="col-span-2 flex w-full flex-wrap gap-1 md:flex-nowrap">
<h4
- class="xs:truncate xs:flex-1 flex-auto text-xs wrap-break-word text-neutral-600 capitalize md:flex-auto dark:text-neutral-400"
+ class="xs:truncate xs:flex-1 flex-auto wrap-break-word md:flex-auto"
:title="
`Created: ${data.created_at}\n` +
(data.started_at ? `Started: ${data.started_at} UTC\n` : '') +
@@ -120,14 +115,10 @@ watch(
: `Created: ${toFormattedDate(new Date(data.created_at), true, within24Hrs(data.created_at) ? { hour: '2-digit', minute: '2-digit' } : undefined)}`
}}
</h4>
- <h4
- v-if="within24Hrs(data.started_at ?? data.created_at) || data.duration"
- class="truncate text-xs text-neutral-600 capitalize md:ml-auto dark:text-neutral-400"
- title="Time"
- >
+ <h4 v-if="within24Hrs(data.started_at ?? data.created_at) || data.duration" class="md:ml-auto" title="Time">
{{ data.duration ? 'Duration:' : data.started_at ? 'Started: ' : 'Scheduled: ' }}
</h4>
- <h4 class="line-clamp-1 text-xs text-neutral-600 capitalize md:me-auto dark:text-neutral-400" title="Time">
+ <h4 class="md:me-auto" title="Time">
{{ data.duration ? toFormattedDuration(data.duration, false) : toTimeSpan(data.started_at ?? data.created_at, data.started_at ? ' UTC' : '') }}
</h4>
</span>
@@ -136,11 +127,9 @@ watch(
:class="`xs:grid-cols-2 col-span-3 grid gap-x-4 md:col-span-2`"
:title="`Sub Tasks: ${data.sub_tasks_total}\n\nPending: ${data.sub_tasks_pending}\n\nCompleted: ${data.sub_tasks_complete}\n\nFailed: ${data.sub_tasks_failed}`"
>
- <h4 class="line-clamp-1 w-24 truncate text-xs text-neutral-600 capitalize dark:text-neutral-400">Sub Tasks: {{ data.sub_tasks_total }}</h4>
- <h4 class="line-clamp-1 truncate text-xs text-neutral-600 capitalize dark:text-neutral-400" v-if="data.sub_tasks_failed">
- Failed: {{ data.sub_tasks_failed }}
- </h4>
- <h4 class="line-clamp-1 truncate text-xs text-neutral-600 capitalize dark:text-neutral-400" v-else>Pending: {{ data.sub_tasks_pending }}</h4>
+ <h4 class="w-24">Sub Tasks: {{ data.sub_tasks_total }}</h4>
+ <h4 v-if="data.sub_tasks_failed">Failed: {{ data.sub_tasks_failed }}</h4>
+ <h4 v-else>Pending: {{ data.sub_tasks_pending }}</h4>
</span>
</div>
</div>
@@ -149,7 +138,7 @@ watch(
<PulseDoughnutChart
v-if="isScreenSmall ?? false"
v-cloak
- class="h-8! w-8! sm:hidden!"
+ class="size-6!"
:chart-options="{
borderWidth: 0,
plugins: {
@@ -178,56 +167,53 @@ watch(
],
}"
/>
- <p class="w-full text-left text-xs sm:hidden!">
- {{ Math.ceil((Math.max(data.sub_tasks_complete, 0) / (data.sub_tasks_total ? data.sub_tasks_total : 1)) * 100) }}%
- </p>
- <div class="hidden h-fit min-w-32 flex-1 flex-col gap-1 px-2 text-xs sm:flex">
+ <p class="w-full text-left sm:hidden">{{ Math.ceil((Math.max(data.sub_tasks_complete, 0) / (data.sub_tasks_total ? data.sub_tasks_total : 1)) * 100) }}%</p>
+ <div class="hidden h-fit min-w-32 flex-1 flex-col gap-1 px-2 sm:flex">
<p class="w-full text-left">{{ Math.ceil((Math.max(data.sub_tasks_complete, 0) / (data.sub_tasks_total ? data.sub_tasks_total : 1)) * 100) }}% Processed</p>
<div class="bg-primary-dark-900 flex h-1 w-full overflow-clip rounded-full">
<div
- :class="`${data.sub_tasks_failed + data.sub_tasks_pending == 0 ? 'rounded-full' : 'rounded-l-full'} bg-purple-600`"
+ :class="[data.sub_tasks_failed + data.sub_tasks_pending == 0 ? 'rounded-full' : 'rounded-l-full', 'bg-primary']"
:style="`width: ${progress.complete}%;`"
></div>
<div
- :class="`${data.sub_tasks_complete === 0 ? 'rounded-l-full' : ''} ${data.sub_tasks_failed === 0 ? 'rounded-r-full' : ''} bg-amber-500`"
+ :class="[{ 'rounded-l-full': data.sub_tasks_complete === 0 }, { 'rounded-r-full': data.sub_tasks_failed === 0 }, 'bg-amber-500']"
:style="`width: ${progress.pending}%;`"
></div>
<div
- :class="`${data.sub_tasks_complete + data.sub_tasks_pending == 0 ? 'rounded-full' : 'rounded-r-full'} bg-rose-600`"
+ :class="[data.sub_tasks_complete + data.sub_tasks_pending == 0 ? 'rounded-full' : 'rounded-r-full', 'bg-danger-2']"
:style="`width: ${progress.failed}%;`"
></div>
</div>
</div>
<div class="ml-auto flex items-center gap-1">
- <span class="flex w-24 items-center justify-end">
- <ChipTag
- :class="`h-6 shadow-xs`"
- :colour="`${data.status === 'pending' ? 'bg-[#e4e4e4] dark:bg-white text-gray-900!' : 'text-white!'} ${
- data.status === 'processing'
- ? 'bg-purple-600 dark:bg-purple-700'
- : data.status === 'completed'
- ? 'bg-[#660099] '
- : data.status === 'incomplete' || data.status === 'cancelled'
- ? 'bg-amber-500 text-gray-900! '
- : 'bg-rose-600 dark:bg-rose-700 '
- }`"
+ <span class="mr-1 flex w-24 items-center justify-end">
+ <BadgeTag
+ :class="
+ cn(
+ 'flex h-6 items-center',
+ data.status === 'pending' ? 'bg-[#e4e4e4] text-gray-900 dark:bg-white' : 'text-white',
+ { 'bg-primary dark:bg-primary-dark': data.status === 'processing' },
+ { 'bg-amber-500 text-gray-900!': data.status === 'incomplete' },
+ { 'bg-danger-2 dark:bg-rose-700': data.status === 'cancelled' },
+ { 'bg-[#660099]': data.status === 'completed' },
+ )
+ "
:label="data.status"
/>
</span>
<BasePopover
ref="popover"
popoverClass="w-40! rounded-lg mt-8"
- :buttonComponent="ButtonCorner"
+ :buttonComponent="ButtonIcon"
:button-attributes="{
- positionClasses: 'w-7 h-7 p-1! ml-auto',
- textClasses: 'hover:text-violet-600 dark:hover:text-violet-500',
- colourClasses: 'dark:hover:bg-neutral-900 hover:bg-gray-100 hover:shadow-md',
+ class: 'hocus:dark:bg-surface-1 hocus:bg-surface-6 hover:text-primary dark:hover:text-primary-muted size-6 rounded-xl p-1',
+ variant: 'ghost',
label: 'Manage Permissions',
}"
@click.stop="() => {}"
>
<template #buttonIcon>
- <ProiconsMoreVertical class="h-4 w-4" />
+ <ProiconsMoreVertical class="size-5" />
</template>
<template #content>
<div class="grid gap-4">
@@ -236,26 +222,19 @@ watch(
</div>
<div class="grid gap-2">
- <ButtonText class="h-8 dark:bg-neutral-950!" :title="'Run Again'" text="Run Again" disabled>
- <template #icon> <ProiconsArrowSync class="h-4 w-4" /></template>
- </ButtonText>
- <ButtonText
- v-if="data.status_key >= 0 && data.status_key <= 1"
- class="h-8 text-rose-600 disabled:opacity-60 dark:bg-rose-700!"
- text="Cancel Task"
- @click.stop.prevent="handleClick('cancel')"
- :title="'Cancel Task'"
- >
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
+ <ButtonText variant="form" title="Run Again" class="justify-between px-2 dark:bg-neutral-950" disabled>
+ Run Again
+ <template #icon> <ProiconsArrowSync class="size-4" /></template>
</ButtonText>
+
<ButtonText
- v-else
- class="h-8 text-rose-600 disabled:opacity-60 dark:bg-rose-700!"
- @click.stop.prevent="handleClick()"
- text="Remove"
- :title="'Remove Task\'s Record From Server'"
+ class="text-danger dark:text-foreground-0 dark:bg-danger-3 dark:hocus:bg-danger justify-between px-2"
+ variant="form"
+ :title="data.status_key >= 0 && data.status_key <= 1 ? 'Cancel Task' : 'Remove Task\'s Record From Server'"
+ @click.stop.prevent="handleClick(data.status_key >= 0 && data.status_key <= 1 ? 'cancel' : undefined)"
>
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
+ {{ data.status_key >= 0 && data.status_key <= 1 ? 'Cancel Task' : 'Remove' }}
+ <template #icon> <ProiconsDelete class="size-4" /></template>
</ButtonText>
</div>
</div>
@@ -263,12 +242,15 @@ watch(
</BasePopover>
<ButtonIcon
variant="ghost"
- :class="`h-fit w-fit rounded-xl p-1 transition-transform duration-200 ease-in-out hover:bg-gray-100 hover:shadow-md dark:hover:bg-neutral-900 ${expanded ? 'rotate-180' : 'rotate-0'}`"
+ :class="[
+ 'hocus:dark:bg-surface-1 hocus:bg-surface-6 hover:text-primary dark:hover:text-primary-muted size-6 rounded-xl p-1',
+ expanded ? 'rotate-180' : 'rotate-0',
+ ]"
@click="toggleExpanded"
:title="`${expanded ? 'Hide Sub Tasks' : 'Show Sub Tasks'}`"
>
<template #icon>
- <ProiconsChevronDown :class="`h-6 w-6 hover:text-violet-600 dark:hover:text-violet-500`" />
+ <ProiconsChevronDown :class="`size-6`" />
</template>
</ButtonIcon>
</div>
@@ -299,3 +281,11 @@ watch(
</section>
</div>
</template>
+
+<style lang="css" scoped>
+@reference '../../../../css/app.css';
+
+h4 {
+ @apply line-clamp-1 truncate capitalize;
+}
+</style>
diff --git a/resources/js/components/cards/UserCard.vue b/resources/js/components/cards/data/UserCard.vue
similarity index 60%
rename from resources/js/components/cards/UserCard.vue
rename to resources/js/components/cards/data/UserCard.vue
index 3ace4127..1f97d91e 100644
--- a/resources/js/components/cards/UserCard.vue
+++ b/resources/js/components/cards/data/UserCard.vue
@@ -2,10 +2,9 @@
import type { UserResource } from '@/types/resources';
import { toFormattedDate, toTimeSpan } from '@/service/util';
+import { ButtonCorner, ButtonText } from '@/components/cedar-ui/button';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
import BasePopover from '@/components/pinesUI/BasePopover.vue';
-import ButtonText from '@/components/inputs/ButtonText.vue';
import ProiconsMoreVertical from '~icons/proicons/more-vertical';
import ProiconsPersonCircle from '~icons/proicons/person-circle';
@@ -15,9 +14,7 @@ import ProiconsDelete from '~icons/proicons/delete';
const props = defineProps<{ data: UserResource }>();
</script>
<template>
- <div
- class="xs:flex-row xs:gap-4 xs:p-3 dark:bg-primary-dark-800/70 dark:hover:bg-primary-dark-600 hover:bg-primary-800 group relative flex w-full flex-col divide-gray-300 rounded-xl bg-white text-left shadow-sm ring-1 ring-gray-900/5 dark:divide-neutral-400 dark:text-white"
- >
+ <div class="xs:flex-row xs:gap-4 xs:p-3 group data-card relative flex w-full flex-col rounded-xl text-left shadow-sm ring-1 ring-gray-900/5">
<img
class="xs:max-h-16 xs:rounded-full my-auto aspect-square h-full max-h-28 rounded-t-xl object-cover"
:src="`https://ui-avatars.com/api/?name=${data.name[0]}&amp;color=7F9CF5&amp;background=random`"
@@ -34,61 +31,56 @@ const props = defineProps<{ data: UserResource }>();
popoverClass="w-64! rounded-lg "
:buttonComponent="ButtonCorner"
:button-attributes="{
- positionClasses: 'w-7 h-7 p-1! ml-auto sm:hidden',
- textClasses: 'hover:text-violet-600 dark:hover:text-violet-500',
+ positionClasses: 'size-7 p-1! ml-auto sm:hidden',
+ textClasses: 'hover:text-primary dark:hover:text-primary-muted',
colourClasses: 'dark:hover:bg-neutral-800 hover:bg-gray-200',
label: 'Manage Permissions',
}"
>
<template #buttonIcon>
- <ProiconsMoreVertical class="h-4 w-4" />
+ <ProiconsMoreVertical class="size-4" />
</template>
<template #content>
<div class="grid gap-4">
- <div class="space-y-2">
- <h4 class="leading-none font-medium">Manage User</h4>
- </div>
+ <h4 class="leading-none font-medium">Manage User</h4>
<div class="grid gap-2">
- <ButtonText class="h-8 dark:bg-neutral-950!" :title="'Scan for Folder Changes'" :to="'/profile'">
- <template #text> View Profile </template>
- <template #icon> <ProiconsPersonCircle class="h-4 w-4" /></template>
+ <ButtonText class="justify-between dark:bg-neutral-950" title="Scan for Folder Changes" to="/profile">
+ View Profile
+ <template #icon> <ProiconsPersonCircle class="size-4" /></template>
</ButtonText>
- <ButtonText class="h-8 disabled:opacity-60 dark:bg-neutral-950!" :title="'Set User Access Permissions'" :disabled="true">
- <template #text> Manage Permissions </template>
- <template #icon> <ProiconsLockOpen class="h-4 w-4" /></template>
+ <ButtonText class="justify-between dark:bg-neutral-950" title="Set User Access Permissions" disabled>
+ Manage Permissions
+ <template #icon> <ProiconsLockOpen class="size-4" /></template>
</ButtonText>
<ButtonText
- class="h-8 text-rose-600 disabled:opacity-60 dark:bg-rose-700!"
- :title="'Remove User From Server'"
+ class="text-danger dark:text-foreground-0 dark:bg-danger-3 dark:hocus:bg-danger justify-between"
+ title="Remove User From Server"
@click.stop.prevent="$emit('clickAction')"
disabled
>
- <template #text> Remove User </template>
- <template #icon> <ProiconsDelete class="h-4 w-4" /></template>
+ Remove User
+ <template #icon> <ProiconsDelete class="size-4" /></template>
</ButtonText>
</div>
</div>
</template>
</BasePopover>
<ButtonCorner
- :positionClasses="'w-7 h-7 sm:flex hidden'"
- :textClasses="'hover:text-violet-600 dark:hover:text-violet-500'"
- :colourClasses="'dark:hover:bg-neutral-800 hover:bg-gray-200'"
+ class="hover:text-primary dark:hover:text-primary-muted hover:dark:bg-surface-1 hover:bg-surface-6 size-7 transition-none"
:to="`/profile/${data.name}`"
:label="'View Profile'"
- @click.stop.prevent="() => {}"
+ :useDefaultStyle="false"
>
<template #icon>
<ProiconsPersonCircle width="20" height="20" />
</template>
</ButtonCorner>
+
<ButtonCorner
- :positionClasses="'w-7 h-7 sm:flex hidden'"
- :textClasses="'hover:text-violet-600 dark:hover:text-violet-500'"
- :colourClasses="'dark:hover:bg-neutral-800 hover:bg-gray-200'"
+ :useDefaultStyle="false"
:label="'Manage Permissions'"
- @click.stop.prevent="() => {}"
+ class="hover:text-primary dark:hover:text-primary-muted hover:dark:bg-surface-1 hover:bg-surface-6 size-7 transition-none"
disabled
>
<template #icon>
@@ -96,15 +88,14 @@ const props = defineProps<{ data: UserResource }>();
</template>
</ButtonCorner>
<ButtonCorner
- :positionClasses="'w-7 h-7 sm:flex hidden'"
- :textClasses="'text-rose-700 hover:text-rose-600'"
- :colourClasses="'dark:hover:bg-neutral-800 hover:bg-gray-200'"
- :label="'Remove User'"
@click.stop.prevent="$emit('clickAction')"
+ :useDefaultStyle="false"
+ :label="'Remove User'"
+ class="text-danger-3/80 hover:text-danger-2 hover:dark:bg-surface-1 hover:bg-surface-6 hidden size-7 transition-none *:size-5 sm:flex"
/>
</div>
</section>
- <section class="flex w-full flex-col text-sm text-neutral-600 sm:flex-row sm:justify-between dark:text-neutral-400">
+ <section class="text-foreground-1 flex w-full flex-col text-sm sm:flex-row sm:justify-between">
<h3 class="w-full truncate text-wrap sm:text-nowrap" :title="`Date joined`">
Date Joined:
{{ data.created_at ? toFormattedDate(new Date(data.created_at), false, { year: 'numeric', month: 'short', day: 'numeric' }) : 'Unknown' }}
diff --git a/resources/js/components/cards/VideoCard.vue b/resources/js/components/cards/data/VideoCard.vue
old mode 100755
new mode 100644
similarity index 97%
rename from resources/js/components/cards/VideoCard.vue
rename to resources/js/components/cards/data/VideoCard.vue
index 4b7a0673..cc8afeac
--- a/resources/js/components/cards/VideoCard.vue
+++ b/resources/js/components/cards/data/VideoCard.vue
@@ -59,7 +59,7 @@ const contextMenuItems = computed(() => {
<RouterLink
:class="{ 'ring-primary-active ring-2': currentID === videoData.id }"
:to="encodeURI(`/${stateDirectory.name}/${stateFolder.name}?video=${videoData.id}`)"
- class="dark:bg-primary-dark-800/70 dark:odd:bg-primary-dark-600 relative flex w-full cursor-pointer flex-col flex-wrap gap-x-8 gap-y-4 rounded-md bg-neutral-50 p-3 shadow-sm ring-inset odd:bg-neutral-100 hover:bg-violet-400/30 dark:hover:bg-violet-700/70"
+ class="dark:bg-primary-dark-800/70 dark:odd:bg-primary-dark-600 dark:hover:bg-primary-active/70 relative flex w-full cursor-pointer flex-col flex-wrap gap-x-8 gap-y-4 rounded-md bg-neutral-50 p-3 shadow-sm ring-inset odd:bg-neutral-100 hover:bg-violet-400/30"
:videoData-id="videoData.id"
:videoData-path="`../${videoData.path}`"
@contextmenu="
diff --git a/resources/js/components/cards/sidebar/SidebarCard.vue b/resources/js/components/cards/sidebar/SidebarCard.vue
index 661340f6..b5aebe57 100644
--- a/resources/js/components/cards/sidebar/SidebarCard.vue
+++ b/resources/js/components/cards/sidebar/SidebarCard.vue
@@ -31,8 +31,8 @@ const isCompleteElement = computed(() => !!slots.header && !!slots.body);
cn(
'relative flex flex-col flex-wrap sm:flex-row',
'group w-full cursor-pointer rounded-lg p-3 shadow-sm',
- 'bg-surface-2 hover:bg-surface-3',
- 'dark:hover:bg-primary-dark-600 dark:bg-surface-2/70',
+ 'data-card',
+
{ 'gap-4 lg:gap-2': isCompleteElement },
props.class,
)
diff --git a/resources/js/components/cedar-ui/button/ButtonBase.vue b/resources/js/components/cedar-ui/button/ButtonBase.vue
index b7934518..1364a838 100644
--- a/resources/js/components/cedar-ui/button/ButtonBase.vue
+++ b/resources/js/components/cedar-ui/button/ButtonBase.vue
@@ -28,6 +28,7 @@ const props = withDefaults(
);
const wrapper = computed(() => props.as ?? (props.to ? RouterLink : props.href ? 'a' : 'button')); // Component is set here but props are set 1 level above
+const wrapperProps = computed(() => (props.to ? { to: props.to } : { href: props.href }));
defineExpose({
$el: () => {
@@ -64,9 +65,8 @@ defineExpose({
:aria-disabled="wrapper !== 'button' ? disabled : undefined"
:data-disabled="disabled"
:aria-label="ariaLabel"
- :to="to"
- :href="href"
:type="type"
+ v-bind="wrapperProps"
>
<slot />
</component>
diff --git a/resources/js/components/cedar-ui/button/ButtonForm.vue b/resources/js/components/cedar-ui/button/ButtonForm.vue
index 399edaf5..287ec2e4 100644
--- a/resources/js/components/cedar-ui/button/ButtonForm.vue
+++ b/resources/js/components/cedar-ui/button/ButtonForm.vue
@@ -11,6 +11,7 @@ const props = withDefaults(
type?: ButtonType;
variant?: FormButtonVariant;
label?: string;
+ class?: string;
}>(),
{
disabled: false,
@@ -39,11 +40,10 @@ const variantClass = computed(() => {
<template>
<ButtonBase
:type="type"
- :class="cn('px-4', 'border-r-button ring-offset-surface-0 border', 'inline-flex', 'focus:ring-1 focus:ring-offset-1', ...variantClass)"
+ :class="cn('px-4', 'border-r-button ring-offset-surface-0 border', 'inline-flex', 'focus:ring-1 focus:ring-offset-1', ...variantClass, props.class)"
:disabled="disabled"
:aria-label="label"
>
- <slot name="text"></slot>
- <slot></slot>
+ <slot />
</ButtonBase>
</template>
diff --git a/resources/js/components/cedar-ui/button/ButtonText.vue b/resources/js/components/cedar-ui/button/ButtonText.vue
index bd283df1..169c7118 100644
--- a/resources/js/components/cedar-ui/button/ButtonText.vue
+++ b/resources/js/components/cedar-ui/button/ButtonText.vue
@@ -20,17 +20,16 @@ const props = withDefaults(
title: '',
type: 'button',
variant: 'default',
- target: '_blank',
},
);
const wrapperProps = computed(() => {
let wProps = {};
- if (props.to) wProps = { to: props.to, title: props.title ?? 'Link' };
- else if (props.href) wProps = { href: props.href, title: props.title ?? 'External Link' };
+ if (props.to) wProps = { to: props.to, title: props.title ?? 'Link', target: props.target ?? '_self' };
+ else if (props.href) wProps = { href: props.href, title: props.title ?? 'External Link', target: props.target ?? '_blank' };
- return { title: props.title ?? 'Button', target: props.target ?? '_blank', type: props.type, ...wProps };
+ return { title: props.title ?? 'Button', type: props.type, disabled: props.disabled, ...wProps };
});
const variantClass = computed(() => {
diff --git a/resources/js/components/cedar-ui/hover-card/HoverCard.vue b/resources/js/components/cedar-ui/hover-card/HoverCard.vue
index f0d94d8f..509a9878 100644
--- a/resources/js/components/cedar-ui/hover-card/HoverCard.vue
+++ b/resources/js/components/cedar-ui/hover-card/HoverCard.vue
@@ -76,7 +76,7 @@ watch(
</script>
<template>
- <div class="" @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">
+ <div @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">
<slot name="trigger">
<a href="#_" class="hover:underline"></a>
</slot>
@@ -91,10 +91,10 @@ watch(
cn(
'absolute z-30',
'transition-opacity duration-200 ease-in-out',
- 'flex h-fit max-h-[50vh] items-center gap-2 overflow-auto p-3',
+ 'flex gap-2 p-3',
'border border-neutral-200/70 dark:border-none',
- 'dark:odd:bg-primary-dark-600/70 bg-white dark:bg-neutral-800/70',
- 'scrollbar-minimal rounded-md text-sm shadow-md backdrop-blur-lg',
+ 'bg-white dark:bg-neutral-800/70',
+ 'rounded-md text-sm shadow-md backdrop-blur-lg',
'md:max-w-xl xl:max-w-3xl',
positionClasses,
)
@@ -103,15 +103,17 @@ watch(
>
<slot name="icon">
<template v-if="!iconHidden">
- <component class="mb-auto h-5 w-5 shrink-0" :is="icon" />
+ <component class="mb-auto size-5 shrink-0" :is="icon" />
</template>
</slot>
- <slot name="content">
- <div class="flex flex-col gap-2">
- <h4 v-if="contentTitle">{{ contentTitle }}</h4>
- <p class="w-full text-pretty whitespace-pre-wrap dark:text-neutral-400" v-if="content">{{ content }}</p>
- </div>
- </slot>
+ <div class="scrollbar-minimal h-full max-h-[50vh] w-full overflow-auto">
+ <slot name="content">
+ <div class="flex min-h-0 flex-col gap-2">
+ <h4 v-if="contentTitle">{{ contentTitle }}</h4>
+ <p class="dark:text-foreground-1 w-full text-pretty whitespace-pre-wrap" v-if="content">{{ content }}</p>
+ </div>
+ </slot>
+ </div>
</div>
</Transition>
</Teleport>
diff --git a/resources/js/components/cedar-ui/icons/CedarDelete2.vue b/resources/js/components/cedar-ui/icons/CedarDelete2.vue
index d8ba3d96..031a24ce 100644
--- a/resources/js/components/cedar-ui/icons/CedarDelete2.vue
+++ b/resources/js/components/cedar-ui/icons/CedarDelete2.vue
@@ -1,5 +1,5 @@
<template>
- <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
+ <svg class="h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
diff --git a/resources/js/components/cedar-ui/select/InputSelect.vue b/resources/js/components/cedar-ui/select/InputSelect.vue
index b9e30515..26806e42 100644
--- a/resources/js/components/cedar-ui/select/InputSelect.vue
+++ b/resources/js/components/cedar-ui/select/InputSelect.vue
@@ -5,7 +5,7 @@ import type { SelectItem, SelectProps } from '@aminnausin/cedar-ui';
import { onMounted, ref, useTemplateRef, watch } from 'vue';
import { CedarCheckMark, CedarChevronUpDown } from '../icons';
import { OnClickOutside } from '@vueuse/components';
-import { useSelect } from '@aminnausin/cedar-ui';
+import { cn, useSelect } from '@aminnausin/cedar-ui';
const props = withDefaults(defineProps<SelectProps>(), {
class: '',
@@ -119,19 +119,21 @@ watch(
:id="props.name"
:title="title ?? 'Make Selection'"
:disabled="disabled"
- :class="[
- 'transition duration-200 ease-in-out focus:outline-hidden', // Animation
- 'disabled:button-disabled disabled:button-disabled-pointer', // Disabled
- 'relative flex items-center justify-between gap-2', // Layout
- 'cursor-pointer rounded-md shadow-xs', // Style
- 'h-10 max-h-full w-full py-2 pr-10 pl-3', // Size
- 'bg-surface-2 hover:bg-surface-3',
- 'ring-r-button hocus:ring-2 ring-1',
- { 'hocus:ring-0': select.selectOpen },
- { 'text-foreground-3': placeholder && !select.selectedItem },
- 'hover:ring-primary-muted focus:ring-primary focus-within:ring-primary-muted',
- props.class,
- ]"
+ :class="
+ cn(
+ 'transition duration-200 ease-in-out focus:outline-hidden', // Animation
+ 'disabled:button-disabled disabled:button-disabled-pointer', // Disabled
+ 'relative flex items-center justify-between gap-2', // Layout
+ 'cursor-pointer rounded-md shadow-xs', // Style
+ 'h-10 max-h-full w-full py-2 pr-10 pl-3', // Size
+ 'bg-surface-2 hover:bg-surface-3',
+ 'ring-r-button hocus:ring-2 ring-1',
+ { 'hocus:ring-0': select.selectOpen },
+ { 'text-foreground-3': placeholder && !select.selectedItem },
+ 'hover:ring-primary-muted focus:ring-primary focus-within:ring-primary-muted',
+ props.class,
+ )
+ "
ref="selectButton"
type="button"
>
@@ -151,11 +153,7 @@ watch(
<Transition enter-from-class="opacity-0" enter-to-class="opacity-100" leave-from-class="opacity-100" leave-to-class="opacity-0">
<OnClickOutside
v-show="select.selectOpen"
- :class="[
- select.selectDropdownPosition == 'top'
- ? `bottom-0 ${menuMargin?.bottom ?? 'mb-11'}`
- : `top-0 ${menuMargin?.top ?? 'mt-11'}`,
- ]"
+ :class="[select.selectDropdownPosition == 'top' ? `bottom-0 ${menuMargin?.bottom ?? 'mb-11'}` : `top-0 ${menuMargin?.top ?? 'mt-11'}`]"
class="bg-overlay-t ring-r-button absolute z-30 mt-1 max-h-56 w-full overflow-clip rounded-md shadow-md ring-1 backdrop-blur-lg transition duration-200 ease-in-out"
@trigger="select.toggleSelect(false)"
@keydown.esc.stop="
diff --git a/resources/js/components/dashboard/DashboardActivity.vue b/resources/js/components/dashboard/DashboardActivity.vue
index 43cd02b0..efee6d15 100644
--- a/resources/js/components/dashboard/DashboardActivity.vue
+++ b/resources/js/components/dashboard/DashboardActivity.vue
@@ -7,7 +7,7 @@ import { sortObject } from '@/service/sort/baseSort';
import { TableBase } from '@/components/cedar-ui/table';
import { toast } from '@aminnausin/cedar-ui';
-import LibraryCard from '@/components/cards/LibraryCard.vue';
+import LibraryCard from '@/components/cards/data/LibraryCard.vue';
import ButtonText from '@/components/inputs/ButtonText.vue';
import ProiconsArrowSync from '~icons/proicons/arrow-sync';
diff --git a/resources/js/components/dashboard/DashboardLibraries.vue b/resources/js/components/dashboard/DashboardLibraries.vue
index 1067c6c3..141c806f 100644
--- a/resources/js/components/dashboard/DashboardLibraries.vue
+++ b/resources/js/components/dashboard/DashboardLibraries.vue
@@ -14,8 +14,8 @@ import { sortObject } from '@/service/sort/baseSort';
import { TableBase } from '@/components/cedar-ui/table';
import { toast } from '@aminnausin/cedar-ui';
-import LibraryFolderCard from '@/components/cards/LibraryFolderCard.vue';
-import LibraryCard from '@/components/cards/LibraryCard.vue';
+import LibraryFolderCard from '@/components/cards/data/LibraryFolderCard.vue';
+import LibraryCard from '@/components/cards/data/LibraryCard.vue';
import BreadCrumbs from '@/components/pinesUI/BreadCrumbs.vue';
import ButtonText from '@/components/inputs/ButtonText.vue';
import EditFolder from '@/components/forms/EditFolder.vue';
diff --git a/resources/js/components/dashboard/DashboardTasks.vue b/resources/js/components/dashboard/DashboardTasks.vue
index 9366e46b..b92d4744 100644
--- a/resources/js/components/dashboard/DashboardTasks.vue
+++ b/resources/js/components/dashboard/DashboardTasks.vue
@@ -19,7 +19,7 @@ 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';
-import TaskCard from '@/components/cards/TaskCard.vue';
+import TaskCard from '@/components/cards/data/TaskCard.vue';
import useModal from '@/composables/useModal';
import ProiconsArrowSync from '~icons/proicons/arrow-sync';
diff --git a/resources/js/components/dashboard/DashboardUsers.vue b/resources/js/components/dashboard/DashboardUsers.vue
index 1e38f30d..6deb6c53 100644
--- a/resources/js/components/dashboard/DashboardUsers.vue
+++ b/resources/js/components/dashboard/DashboardUsers.vue
@@ -14,7 +14,7 @@ import { toast } from '@aminnausin/cedar-ui';
import BreadCrumbs from '@/components/pinesUI/BreadCrumbs.vue';
import ButtonText from '@/components/inputs/ButtonText.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
-import UserCard from '@/components/cards/UserCard.vue';
+import UserCard from '@/components/cards/data/UserCard.vue';
import useModal from '@/composables/useModal';
import ProiconsArrowSync from '~icons/proicons/arrow-sync';
diff --git a/resources/js/components/forms/ChangeEmail.vue b/resources/js/components/forms/ChangeEmail.vue
index dc48b775..c7eb9aa2 100644
--- a/resources/js/components/forms/ChangeEmail.vue
+++ b/resources/js/components/forms/ChangeEmail.vue
@@ -71,7 +71,7 @@ const handleSubmit = async () => {
<template #content>
<SettingsHeader>
<h3 class="text-base font-medium">Update Email</h3>
- <p class="text-neutral-600 dark:text-neutral-400">Ensure you have secure access to this email.</p>
+ <p class="text-foreground-1">Ensure you have secure access to this email.</p>
</SettingsHeader>
<form class="flex w-full max-w-xl flex-col flex-wrap gap-4 sm:flex-row sm:justify-between" @submit.prevent="handleSubmit">
<div v-for="(field, index) in fields.filter((field) => !field.disabled)" :key="index" class="w-full" :class="field.class">
diff --git a/resources/js/components/forms/ChangePassword.vue b/resources/js/components/forms/ChangePassword.vue
index 2f72712e..7fc941f0 100644
--- a/resources/js/components/forms/ChangePassword.vue
+++ b/resources/js/components/forms/ChangePassword.vue
@@ -83,7 +83,7 @@ const handleSubmit = async () => {
<template #content>
<SettingsHeader>
<h3 class="text-base font-medium">Update password</h3>
- <p class="text-neutral-600 dark:text-neutral-400">Ensure your account is using a long, random password to stay secure.</p>
+ <p class="text-foreground-1">Ensure your account is using a long, random password to stay secure.</p>
</SettingsHeader>
<form class="flex w-full max-w-xl flex-col flex-wrap gap-4 sm:flex-row sm:justify-between" @submit.prevent="handleSubmit">
<div v-for="(field, index) in fields.filter((field) => !field.disabled)" :key="index" class="w-full" :class="field.class">
diff --git a/resources/js/components/forms/EditLyrics.vue b/resources/js/components/forms/EditLyrics.vue
index 3665680c..39b33beb 100644
--- a/resources/js/components/forms/EditLyrics.vue
+++ b/resources/js/components/forms/EditLyrics.vue
@@ -8,14 +8,14 @@ import { onMounted, reactive, watch } from 'vue';
import { toFormattedDuration } from '@/service/util';
import { useLyricStore } from '@/stores/LyricStore';
import { storeToRefs } from 'pinia';
+import { ButtonForm } from '@/components/cedar-ui/button';
import { toast } from '@aminnausin/cedar-ui';
import FormInputNumber from '@/components/inputs/FormInputNumber.vue';
import FormInputLabel from '@/components/labels/FormInputLabel.vue';
import FormErrorList from '@/components/labels/FormErrorList.vue';
import FormTextArea from '@/components/inputs/FormTextArea.vue';
-import ButtonForm from '@/components/inputs/ButtonForm.vue';
-import LrcLibCard from '@/components/cards/LrcLibCard.vue';
+import LrcLibCard from '@/components/cards/data/LrcLibCard.vue';
import DatePicker from '@/components/pinesUI/DatePicker.vue';
import FormInput from '@/components/inputs/FormInput.vue';
import useForm from '@/composables/useForm';
@@ -127,7 +127,7 @@ watch(
</script>
<template>
- <form class="flex flex-col flex-wrap gap-4 sm:flex-row sm:justify-between" @submit.prevent="handleSubmit">
+ <form class="flex flex-col flex-wrap gap-4 text-sm sm:flex-row sm:justify-between" @submit.prevent="handleSubmit">
<div v-for="(field, index) in fields.filter((field) => !field.disabled)" :key="index" class="w-full text-sm" :class="field.class">
<FormInputLabel :field="field" />
<FormInput v-if="field.name === 'duration'" :field="field" v-model="field.value" disabled title="Song Duration" />
@@ -138,20 +138,18 @@ watch(
<FormErrorList :errors="form.errors" :field-name="field.name" />
</div>
- <div class="xs:flex-nowrap flex w-full flex-wrap gap-4">
+ <div class="xs:flex-nowrap flex w-full flex-wrap items-center gap-4">
<div class="flex flex-wrap items-center gap-2">
<ButtonForm
- :class="'line-clamp-1 h-8 truncate rounded-full! hover:ring-2 hover:ring-violet-400! dark:hover:ring-violet-700!'"
+ class="focus:ring-primary dark:focus:ring-primary-muted line-clamp-1 overflow-clip rounded-full py-0"
:disabled="isLoadingLyrics"
@click="handleSearchSyncedLyrics(generateLyricsSearchQuery(video.metadata, form.fields.track, form.fields.album, form.fields.artist))"
>
- <template #text>Search for Lyrics</template>
- </ButtonForm>
- <ButtonForm :class="'h-8 rounded-full! hover:ring-2 hover:ring-violet-400! dark:hover:ring-violet-700!'" :disabled="isLoadingLyrics" @click="resetLyrics">
- <template #text>Reset</template>
+ Search for Lyrics
</ButtonForm>
+ <ButtonForm class="focus:ring-primary dark:focus:ring-primary-muted rounded-full py-0" :disabled="isLoadingLyrics" @click="resetLyrics"> Reset </ButtonForm>
</div>
- <p class="ml-auto flex h-8 min-w-fit items-center text-sm text-nowrap" v-show="hasSearchedForLyrics">Results: {{ searchResults.length }}</p>
+ <p class="ml-auto min-w-fit text-nowrap" v-show="hasSearchedForLyrics">Results: {{ searchResults.length }}</p>
</div>
<div class="flex w-full flex-col gap-2" v-if="isLoadingLyrics || hasSearchedForLyrics || searchResults.length !== 0">
@@ -159,10 +157,10 @@ watch(
<LrcLibCard v-for="result in searchResults" :key="result.id" :data="result" @preview="handlePreviewLyrics(result)" @select="handleSelectLyrics(result)" />
<div
v-if="isLoadingLyrics || (hasSearchedForLyrics && searchResults.length === 0)"
- class="col-span-full flex w-full items-center justify-center gap-2 text-center text-sm tracking-wider text-gray-500 uppercase dark:text-gray-400"
+ class="text-foreground-2 col-span-full flex w-full items-center justify-center gap-2 text-center text-sm tracking-wider uppercase"
>
<p>{{ isLoadingLyrics ? '...Loading' : 'No Results' }}</p>
- <SvgSpinners90RingWithBg v-show="isLoadingLyrics" />
+ <SvgSpinners90RingWithBg v-show="isLoadingLyrics" class="size-3.5" />
</div>
</div>
<ButtonForm
@@ -175,15 +173,15 @@ watch(
</ButtonForm>
</div>
- <p class="w-full text-center text-sm text-rose-600 dark:text-rose-400" v-if="form.fields.lyrics !== video.metadata?.lyrics && video.metadata?.lyrics">
+ <p class="text-danger-2 w-full text-center text-sm dark:text-rose-400" v-if="form.fields.lyrics !== video.metadata?.lyrics && video.metadata?.lyrics">
Overwriting Existing Lyrics!
</p>
- <p class="w-full text-center text-sm text-rose-600 dark:text-rose-400" v-if="form.fields.artist !== video.metadata?.artist && video.metadata?.artist">
+ <p class="text-danger-2 w-full text-center text-sm dark:text-rose-400" v-if="form.fields.artist !== video.metadata?.artist && video.metadata?.artist">
Overwriting Existing Artist Name!
</p>
- <p class="w-full text-center text-sm text-rose-600 dark:text-rose-400" v-if="form.fields.album !== video.metadata?.album && video.metadata?.album">
+ <p class="text-danger-2 w-full text-center text-sm dark:text-rose-400" v-if="form.fields.album !== video.metadata?.album && video.metadata?.album">
Overwriting Existing Album Name!
</p>
diff --git a/resources/js/components/forms/PasswordConfirm.vue b/resources/js/components/forms/PasswordConfirm.vue
index b78d495e..aebd1ba0 100644
--- a/resources/js/components/forms/PasswordConfirm.vue
+++ b/resources/js/components/forms/PasswordConfirm.vue
@@ -75,7 +75,7 @@ const handleSubmit = async () => {
<template #footer>
<ButtonForm variant="reset" type="button" :disabled="form.processing" class="capitalize!" @click="$emit('cancel')">{{ cancelText }}</ButtonForm>
- <ButtonForm variant="submit" type="button" @click="handleSubmit" :disabled="form.processing" class="bg-rose-600! capitalize! hover:bg-rose-500!">
+ <ButtonForm variant="submit" type="button" @click="handleSubmit" :disabled="form.processing" class="bg-danger-2! capitalize! hover:bg-rose-500!">
{{ confirmText }}
</ButtonForm>
</template>
diff --git a/resources/js/components/labels/FormErrorList.vue b/resources/js/components/labels/FormErrorList.vue
index fbc4a4e8..a1cc14ac 100644
--- a/resources/js/components/labels/FormErrorList.vue
+++ b/resources/js/components/labels/FormErrorList.vue
@@ -3,7 +3,7 @@ defineProps<{ errors: Record<string, any>; fieldName?: string }>();
</script>
<template>
- <ul class="text-rose-600 dark:text-rose-500 text-sm" v-if="fieldName ? !!errors[fieldName] : Object.keys(errors).length > 0">
+ <ul class="text-danger-2 text-sm dark:text-rose-500" v-if="fieldName ? !!errors[fieldName] : Object.keys(errors).length > 0">
<slot>
<li v-for="(item, index) in fieldName ? errors[fieldName] : errors" :key="index">{{ item }}</li>
</slot>
diff --git a/resources/js/components/panels/FolderSidebar.vue b/resources/js/components/panels/FolderSidebar.vue
index 1210e1a5..93f6a09f 100644
--- a/resources/js/components/panels/FolderSidebar.vue
+++ b/resources/js/components/panels/FolderSidebar.vue
@@ -13,7 +13,7 @@ import ButtonClipboard from '@/components/pinesUI/ButtonClipboard.vue';
import SidebarHeader from '@/components/headers/SidebarHeader.vue';
import ButtonIcon from '@/components/inputs/ButtonIcon.vue';
-import FolderCard from '@/components/cards/sidebar/FolderCard.vue';
+import FolderCard from '@/components/cards/data/FolderCard.vue';
import EditFolder from '@/components/forms/EditFolder.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
import useModal from '@/composables/useModal';
@@ -83,7 +83,7 @@ const handleSeriesUpdate = async (res: any) => {
<SidebarHeader>
<ButtonIcon
v-if="stateDirectory.folders.length > 10"
- class="size-8! p-0! *:size-6 dark:ring-transparent! dark:hover:bg-violet-700!"
+ class="dark:hover:bg-primary-active! size-8! p-0! *:size-6 dark:ring-transparent!"
@click="showFilters = !showFilters"
title="Toggle Filters"
>
diff --git a/resources/js/components/panels/HistorySidebar.vue b/resources/js/components/panels/HistorySidebar.vue
index afdf675f..35ba20c3 100644
--- a/resources/js/components/panels/HistorySidebar.vue
+++ b/resources/js/components/panels/HistorySidebar.vue
@@ -1,12 +1,12 @@
<script setup lang="ts">
import { useRecordsLimited } from '@/service/records/useRecords';
+import { ButtonText } from '@/components/cedar-ui/button';
import { ref } from 'vue';
import TableLoadingSpinner from '@/components/table/TableLoadingSpinner.vue';
import ButtonClipboard from '@/components/pinesUI/ButtonClipboard.vue';
import SidebarHeader from '@/components/headers/SidebarHeader.vue';
-import ButtonText from '@/components/inputs/ButtonText.vue';
-import RecordCard from '@/components/cards/sidebar/RecordCard.vue';
+import RecordCard from '@/components/cards/data/RecordCard.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
import useModal from '@/composables/useModal';
@@ -37,13 +37,11 @@ const handleShare = (link: string) => {
<RecordCard v-for="(record, index) in stateRecords.slice(0, 10)" :key="record.id" :record="record" :index="index" @clickAction="handleShare" />
<ButtonText
v-if="stateRecords.length > 0"
- to="/history"
+ :to="'/history'"
:title="'View All Watch History'"
- :class="'bg-primary-800! dark:bg-primary-dark-800/70! dark:hover:bg-primary-dark-600! mx-auto mt-2 mb-2 line-clamp-1 h-8 truncate rounded-full! text-sm hover:bg-white! hover:ring-2 hover:ring-violet-400! dark:hover:ring-violet-700!'"
- :variant="'form'"
- target=""
+ :class="'data-card mt-2 flex h-fit w-full items-center rounded-lg text-sm ring-transparent ring-inset'"
>
- <template #text>View More</template>
+ View More
</ButtonText>
</template>
</section>
diff --git a/resources/js/components/panels/NavBar.vue b/resources/js/components/panels/NavBar.vue
index 3a430ab5..567588d6 100755
--- a/resources/js/components/panels/NavBar.vue
+++ b/resources/js/components/panels/NavBar.vue
@@ -53,7 +53,7 @@ const toggleVideoSidebar = (sidebar: 'folders' | 'history') => {
<template #trigger>
<button
id="user-header"
- class="flex h-8 cursor-pointer items-center justify-center gap-2 text-2xl capitalize hover:text-violet-600 dark:hover:text-violet-500"
+ class="hover:text-primary dark:hover:text-primary-muted flex h-8 cursor-pointer items-center justify-center gap-2 text-2xl capitalize"
@click="toggleDropdown"
aria-haspopup="menu"
:aria-expanded="showDropdown ? 'true' : 'false'"
@@ -68,7 +68,11 @@ const toggleVideoSidebar = (sidebar: 'folders' | 'history') => {
{{ isLoadingUserData ? '' : userData?.name || 'Guest' }}
</h2>
- <img :src="userData?.avatar ?? '/storage/avatars/default.jpg'" class="aspect-square h-7 w-7 rounded-full object-cover ring ring-violet-700" alt="profile" />
+ <img
+ :src="userData?.avatar ?? '/storage/avatars/default.jpg'"
+ class="ring-primary-active aspect-square h-7 w-7 rounded-full object-cover ring"
+ alt="profile"
+ />
</button>
</template>
</DropdownMenu>
diff --git a/resources/js/components/pinesUI/BasePopover.vue b/resources/js/components/pinesUI/BasePopover.vue
index 5e03d404..56b1e337 100644
--- a/resources/js/components/pinesUI/BasePopover.vue
+++ b/resources/js/components/pinesUI/BasePopover.vue
@@ -126,7 +126,7 @@ onUnmounted(() => {
</template>
<template #icon>
<slot name="buttonIcon">
- <svg class="w-4 h-4" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" v-if="!hideDefaultIcon">
+ <svg class="h-4 w-4" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" v-if="!hideDefaultIcon">
<path
d="M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z"
fill="currentColor"
@@ -147,7 +147,7 @@ onUnmounted(() => {
>
<UseFocusTrap
v-if="popoverOpen"
- :class="`z-50 absolute w-[300px] max-w-lg p-4 bg-white dark:bg-neutral-800/90 backdrop-blur-xs border border-neutral-200/70 dark:border-neutral-700/10 rounded-md shadow-xs ${popoverClass} -translate-x-1/2 ${popoverAdjustment ? '' : 'left-1/2'} ${popoverPosition === 'bottom' ? 'top-0' : 'bottom-0'}`"
+ :class="`absolute z-50 w-[300px] max-w-lg rounded-md border border-neutral-200/70 bg-white p-4 shadow-xs backdrop-blur-xs dark:border-neutral-700/10 dark:bg-neutral-800/90 ${popoverClass} -translate-x-1/2 ${popoverAdjustment ? '' : 'left-1/2'} ${popoverPosition === 'bottom' ? 'top-0' : 'bottom-0'}`"
ref="popover"
:options="{ allowOutsideClick: true }"
>
@@ -166,48 +166,48 @@ onUnmounted(() => {
<div
v-show="popoverArrow && popoverPosition == 'bottom'"
ref="popoverArrowRef"
- :class="`absolute inline-block w-5 overflow-hidden -translate-x-2 left-1/2 ${popoverPosition === 'bottom' ? 'top-0 mt-px -translate-y-2.5' : 'bottom-0 mb-px translate-y-2.5'}`"
+ :class="`absolute left-1/2 inline-block w-5 -translate-x-2 overflow-hidden ${popoverPosition === 'bottom' ? 'top-0 mt-px -translate-y-2.5' : 'bottom-0 mb-px translate-y-2.5'}`"
>
<div
- :class="`w-2.5 h-2.5 transform bg-white dark:bg-neutral-800/90 border-l border-neutral-200/70 dark:border-neutral-700/10 rounded-xs ${popoverPosition === 'bottom' ? 'origin-bottom-left rotate-45 border-t' : 'origin-top-left -rotate-45 border-b'} `"
+ :class="`h-2.5 w-2.5 transform rounded-xs border-l border-neutral-200/70 bg-white dark:border-neutral-700/10 dark:bg-neutral-800/90 ${popoverPosition === 'bottom' ? 'origin-bottom-left rotate-45 border-t' : 'origin-top-left -rotate-45 border-b'} `"
></div>
</div>
<slot name="content">
<div class="grid gap-4">
<div class="space-y-2">
{{ popoverAdjustment }}
- <h4 class="font-medium leading-none">Dimensions</h4>
- <p class="text-sm text-muted-foreground">Set the dimensions for the layer.</p>
+ <h4 class="leading-none font-medium">Dimensions</h4>
+ <p class="text-foreground-1 text-sm">Set the dimensions for the layer.</p>
</div>
<div class="grid gap-2">
- <div class="grid items-center grid-cols-3 gap-4">
- <label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="width">Width</label
+ <div class="grid grid-cols-3 items-center gap-4">
+ <label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="width">Width</label
><input
- class="flex w-full h-8 col-span-2 px-3 py-2 text-sm bg-transparent border rounded-md border-input ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="width"
value="100%"
/>
</div>
- <div class="grid items-center grid-cols-3 gap-4">
- <label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxWidth">Max. width</label
+ <div class="grid grid-cols-3 items-center gap-4">
+ <label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxWidth">Max. width</label
><input
- class="flex w-full h-8 col-span-2 px-3 py-2 text-sm bg-transparent border rounded-md border-input ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="maxWidth"
value="300px"
/>
</div>
- <div class="grid items-center grid-cols-3 gap-4">
- <label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="height">Height</label
+ <div class="grid grid-cols-3 items-center gap-4">
+ <label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="height">Height</label
><input
- class="flex w-full h-8 col-span-2 px-3 py-2 text-sm bg-transparent border rounded-md border-input ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="height"
value="25px"
/>
</div>
- <div class="grid items-center grid-cols-3 gap-4">
- <label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxHeight">Max. height</label
+ <div class="grid grid-cols-3 items-center gap-4">
+ <label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxHeight">Max. height</label
><input
- class="flex w-full h-8 col-span-2 px-3 py-2 text-sm bg-transparent border rounded-md border-input ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="maxHeight"
value="none"
/>
diff --git a/resources/js/components/pinesUI/BreadCrumbs.vue b/resources/js/components/pinesUI/BreadCrumbs.vue
index ba4696c3..c4f0d98d 100644
--- a/resources/js/components/pinesUI/BreadCrumbs.vue
+++ b/resources/js/components/pinesUI/BreadCrumbs.vue
@@ -4,23 +4,23 @@ import type { BreadCrumbItem } from '@/types/types';
withDefaults(defineProps<{ breadCrumbs: BreadCrumbItem[] }>(), { breadCrumbs: () => [] });
</script>
<template>
- <nav class="flex justify-between flex-1">
+ <nav class="flex flex-1 justify-between">
<ol
- class="inline-flex items-center space-x-1 text-neutral-500 dark:text-neutral-300 [&_.active-breadcrumb]:text-neutral-600 dark:[&_.active-breadcrumb]:text-white [&_.active-breadcrumb]:font-medium sm:mb-0"
+ class="inline-flex items-center space-x-1 text-neutral-500 sm:mb-0 dark:text-neutral-300 [&_.active-breadcrumb]:font-medium [&_.active-breadcrumb]:text-neutral-600 dark:[&_.active-breadcrumb]:text-white"
>
<template v-for="(breadCrumb, index) in breadCrumbs" :key="index">
- <li class="flex items-center h-full">
+ <li class="flex h-full items-center">
<RouterLink
:to="breadCrumb.url"
- class="transition-colors inline-flex items-center p-2 py-1.5 space-x-1.5 rounded-md hover:text-neutral-900! dark:hover:text-white! hover:ring-2 ring-inset hover:ring-violet-400 hover:bg-white dark:hover:ring-violet-700 dark:hover:bg-primary-dark-800"
- :class="{ 'active-breadcrumb ': index === breadCrumbs.length - 1 }"
+ class="dark:hover:bg-primary-dark-800 inline-flex items-center space-x-1.5 rounded-md p-2 py-1.5 transition-colors ring-inset hover:bg-white hover:text-neutral-900! hover:ring-2 hover:ring-violet-400 dark:hover:text-white! dark:hover:ring-violet-700"
+ :class="{ 'active-breadcrumb': index === breadCrumbs.length - 1 }"
:title="breadCrumb.name"
>
- <component v-if="breadCrumb.icon" :is="breadCrumb.icon" class="w-3.5 h-3.5 shrink-0" />
- <span class="capitalize max-w-32 line-clamp-1 break-all">{{ breadCrumb.name }}</span>
+ <component v-if="breadCrumb.icon" :is="breadCrumb.icon" class="h-3.5 w-3.5 shrink-0" />
+ <span class="line-clamp-1 max-w-32 break-all capitalize">{{ breadCrumb.name }}</span>
</RouterLink>
</li>
- <svg class="w-5 h-5 text-gray-400 shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" v-if="index < breadCrumbs.length - 1">
+ <svg class="h-5 w-5 shrink-0 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" v-if="index < breadCrumbs.length - 1">
<g fill="none" stroke="none">
<path d="M10 8.013l4 4-4 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</g>
diff --git a/resources/js/components/pinesUI/ContextMenu.vue b/resources/js/components/pinesUI/ContextMenu.vue
index 50a6acda..b2c6ba24 100644
--- a/resources/js/components/pinesUI/ContextMenu.vue
+++ b/resources/js/components/pinesUI/ContextMenu.vue
@@ -139,40 +139,6 @@ defineExpose({ contextMenuToggle, contextMenuOpen });
}
"
/>
- <!-- Defaults (Not needed) -->
- <span v-if="!items">
- <div
- @click="(e: any) => contextMenuToggle(e, false)"
- class="group relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 pl-8 outline-hidden hover:bg-neutral-100 data-disabled:pointer-events-none data-disabled:opacity-50"
- >
- <span>Edit</span>
- <span class="ml-auto text-xs tracking-widest text-neutral-400 group-hover:text-neutral-600">⌘[</span>
- </div>
- <div
- @click="(e: any) => contextMenuToggle(e, false)"
- class="group relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 pl-8 outline-hidden hover:bg-purple-600 hover:text-white data-disabled:pointer-events-none data-disabled:opacity-50"
- >
- <svg class="absolute left-2 -mt-px h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75"
- />
- </svg>
- <span>Duplicate</span>
- </div>
- <div
- @click="(e: any) => contextMenuToggle(e, false)"
- class="group relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 pl-8 outline-hidden hover:bg-purple-600 hover:text-white data-disabled:pointer-events-none data-disabled:opacity-50"
- >
- <svg class="absolute left-2 -mt-px h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" />
- </svg>
- <span>Quick Look</span>
- </div>
- <ContextMenuItem text="Edit" class="hover:bg-purple-600 hover:text-white" />
- <ContextMenuItem text="Share" />
- </span>
</slot>
</OnClickOutside>
</Teleport>
diff --git a/resources/js/components/pinesUI/ToastNotification.vue b/resources/js/components/pinesUI/ToastNotification.vue
index 1b268dde..5db4147d 100755
--- a/resources/js/components/pinesUI/ToastNotification.vue
+++ b/resources/js/components/pinesUI/ToastNotification.vue
@@ -117,9 +117,9 @@ onBeforeUnmount(() => {
ref="toastEl"
:id="props.id"
:class="[
- `toast w-full absolute duration-300 transition-all ease-out`,
+ `toast absolute w-full transition-all duration-300 ease-out`,
{ 'toast-no-description': !description },
- { 'opacity-0 pointer-events-none': index >= maxVisibleToasts },
+ { 'pointer-events-none opacity-0': index >= maxVisibleToasts },
style,
]"
:style="{
@@ -150,12 +150,12 @@ onBeforeUnmount(() => {
<span
:class="[
{ 'p-4': !props.html, 'p-0': props.html },
- 'flex flex-col items-start backdrop-blur-lg rounded-md ',
+ 'flex flex-col items-start rounded-md backdrop-blur-lg',
'group relative select-text',
'transition-all duration-300 ease-out',
- 'bg-white dark:bg-primary-dark-700/70 text-gray-800 dark:text-neutral-100 shadow-[0_5px_15px_-3px_rgb(0_0_0/0.08)]',
- 'ring-inset ring-1 ring-gray-100 dark:ring-neutral-800/50',
- 'outline-hidden! focus:ring-gray-400 dark:focus:ring-indigo-500 focus:ring-2',
+ 'dark:bg-primary-dark-700/70 bg-white text-gray-800 shadow-[0_5px_15px_-3px_rgb(0_0_0/0.08)] dark:text-neutral-100',
+ 'ring-1 ring-gray-100 ring-inset dark:ring-neutral-800/50',
+ 'outline-hidden! focus:ring-2 focus:ring-gray-400 dark:focus:ring-indigo-500',
]"
v-show="isMounted"
>
@@ -167,10 +167,10 @@ onBeforeUnmount(() => {
'text-blue-500': props.type === 'info',
'text-orange-400': props.type === 'warning',
'text-rose-500': props.type === 'danger',
- 'dark:text-neutral-100 text-gray-800': props.type === 'default',
+ 'text-gray-800 dark:text-neutral-100': props.type === 'default',
}"
>
- <svg v-show="props.type === 'success'" class="w-[18px] h-[18px] mr-1.5 -ml-1" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <svg v-show="props.type === 'success'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
clip-rule="evenodd"
@@ -178,7 +178,7 @@ onBeforeUnmount(() => {
fill="currentColor"
></path>
</svg>
- <svg v-show="props.type === 'info'" class="w-[18px] h-[18px] mr-1.5 -ml-1" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <svg v-show="props.type === 'info'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
clip-rule="evenodd"
@@ -186,7 +186,7 @@ onBeforeUnmount(() => {
fill="currentColor"
></path>
</svg>
- <svg v-show="props.type === 'warning'" class="w-[18px] h-[18px] mr-1.5 -ml-1" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <svg v-show="props.type === 'warning'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
clip-rule="evenodd"
@@ -194,7 +194,7 @@ onBeforeUnmount(() => {
fill="currentColor"
></path>
</svg>
- <svg v-show="props.type === 'danger'" class="w-[18px] h-[18px] mr-1.5 -ml-1" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <svg v-show="props.type === 'danger'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
clip-rule="evenodd"
@@ -202,19 +202,19 @@ onBeforeUnmount(() => {
fill="currentColor"
></path>
</svg>
- <p class="text-[13px] font-medium leading-none" :title="props.title">{{ props.title }}</p>
+ <p class="text-[13px] leading-none font-medium" :title="props.title">{{ props.title }}</p>
</div>
<p
v-show="props.description"
:class="{ 'pl-5': props.type !== 'default' }"
- class="mt-1.5 text-xs leading-tight opacity-70 w-full whitespace-pre-wrap wrap-break-word overflow-y-auto scrollbar-minimal max-h-32 min-h-3 pe-2"
+ class="scrollbar-minimal mt-1.5 max-h-32 min-h-3 w-full overflow-y-auto pe-2 text-xs leading-tight wrap-break-word whitespace-pre-wrap opacity-70"
>
{{ description }}
</p>
<template v-if="!props.html">
<span
@click="onClose"
- class="absolute right-0 p-1.5 mr-2.5 text-gray-400 dark:text-rose-700 duration-100 ease-in-out rounded-full opacity-0 cursor-pointer hover:bg-gray-50 dark:bg-gray-800/50 hover:text-gray-500 dark:hover:text-rose-600"
+ class="dark:hover:text-danger-2 absolute right-0 mr-2.5 cursor-pointer rounded-full p-1.5 text-gray-400 opacity-0 duration-100 ease-in-out hover:bg-gray-50 hover:text-gray-500 dark:bg-gray-800/50 dark:text-rose-700"
:class="{
'top-1/2 -translate-y-1/2': !props.description && !props.html,
'top-0 mt-2.5': props.description || props.html,
@@ -222,7 +222,7 @@ onBeforeUnmount(() => {
'opacity-0': !toastHovered,
}"
>
- <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
+ <svg class="h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
diff --git a/resources/js/components/profile/ProfileHeader.vue b/resources/js/components/profile/ProfileHeader.vue
index 6e932e39..69734ee2 100644
--- a/resources/js/components/profile/ProfileHeader.vue
+++ b/resources/js/components/profile/ProfileHeader.vue
@@ -27,20 +27,20 @@ onMounted(async () => {
<section
id="banner"
style="background-image: url('https://s4.anilist.co/file/anilistcdn/user/banner/b6792701-mBLPRvzr3xPL.jpg')"
- class="bg-cover flex rounded-md overflow-clip h-52 lg:h-64 text-white items-end shadow-md"
+ class="flex h-52 items-end overflow-clip rounded-md bg-cover text-white shadow-md lg:h-64"
>
- <section id="profile-header" class="p-3 flex gap-4 bg-linear-to-b from-transparent to-neutral-950/40 w-full items-end flex-wrap text-center">
+ <section id="profile-header" class="flex w-full flex-wrap items-end gap-4 bg-linear-to-b from-transparent to-neutral-950/40 p-3 text-center">
<img
:src="
userProfile?.name[0] === 'a'
? '/storage/avatars/default.jpg'
: (userProfile?.avatar ?? `https://ui-avatars.com/api/?name=${userProfile?.name[0]}&amp;color=7F9CF5&amp;background=random`)
"
- class="md:h-32 md:w-32 w-24 min-w-24 rounded-full ring-2 ring-violet-700/70 object-cover aspect-square mx-auto"
+ class="ring-primary-active/70 mx-auto aspect-square w-24 min-w-24 rounded-full object-cover ring-2 md:h-32 md:w-32"
alt="profile"
/>
- <section class="text-centre flex flex-wrap flex-1 justify-center items-end sm:pb-2 xl:pb-4">
- <h2 class="text-2xl capitalize w-full sm:text-left sm:flex-1">{{ userProfile?.name }}</h2>
+ <section class="text-centre flex flex-1 flex-wrap items-end justify-center sm:pb-2 xl:pb-4">
+ <h2 class="w-full text-2xl capitalize sm:flex-1 sm:text-left">{{ userProfile?.name }}</h2>
<h3 class="text-sm">Member since: {{ toTimeSpan(userProfile?.created_at || '', '') }}</h3>
</section>
</section>
diff --git a/resources/js/components/settings/account/SettingsDeleteAccount.vue b/resources/js/components/settings/account/SettingsDeleteAccount.vue
index 7c1c45ee..182c9d37 100644
--- a/resources/js/components/settings/account/SettingsDeleteAccount.vue
+++ b/resources/js/components/settings/account/SettingsDeleteAccount.vue
@@ -14,7 +14,7 @@ const modal = useModalStore();
<template #content>
<SettingsHeader>
<h3 class="text-base font-medium">Account Management</h3>
- <p class="text-neutral-600 dark:text-neutral-400">Permanently delete your account.</p>
+ <p class="text-foreground-1">Permanently delete your account.</p>
</SettingsHeader>
<!-- Other Browser Sessions -->
@@ -22,7 +22,7 @@ const modal = useModalStore();
<div class="relative flex w-full flex-col-reverse gap-2 sm:flex-row sm:justify-end">
<ButtonForm
variant="submit"
- class="bg-rose-600 hover:bg-rose-700 dark:hover:bg-rose-500"
+ class="bg-danger-2 hover:bg-rose-700 dark:hover:bg-rose-500"
title="Delete your account permanently"
@click="modal.open(DeleteAccountModal)"
>
diff --git a/resources/js/components/settings/account/SettingsSessions.vue b/resources/js/components/settings/account/SettingsSessions.vue
index 0d936fcc..b6ce7c75 100644
--- a/resources/js/components/settings/account/SettingsSessions.vue
+++ b/resources/js/components/settings/account/SettingsSessions.vue
@@ -6,7 +6,7 @@ import { storeToRefs } from 'pinia';
import LogoutSessionsModal from '@/components/modals/LogoutSessionsModal.vue';
import SettingsHeader from '@/components/settings/SettingsHeader.vue';
import SettingsCard from '@/components/cards/layout/SettingsCard.vue';
-import SessionCard from '@/components/cards/SessionCard.vue';
+import SessionCard from '@/components/cards/data/SessionCard.vue';
import ButtonForm from '@/components/inputs/ButtonForm.vue';
import SvgSpinners90RingWithBg from '~icons/svg-spinners/90-ring-with-bg';
@@ -21,14 +21,14 @@ const modal = useModalStore();
<template #content>
<SettingsHeader>
<h3 class="text-base font-medium">Browser Sessions</h3>
- <p class="text-neutral-600 dark:text-neutral-400">Manage and log out your active sessions on other browsers and devices.</p>
+ <p class="text-foreground-1">Manage and log out your active sessions on other browsers and devices.</p>
</SettingsHeader>
<!-- Other Browser Sessions -->
<section class="flex w-full max-w-xl flex-col gap-4">
<div
v-if="isLoadingSessions || stateSessions.length === 0"
- class="col-span-full my-auto flex w-full items-center justify-center gap-2 text-center tracking-wider text-neutral-600 uppercase dark:text-neutral-400"
+ class="text-foreground-1 col-span-full my-auto flex w-full items-center justify-center gap-2 text-center tracking-wider uppercase"
>
<p>{{ isLoadingSessions ? '...Loading' : 'No Sessions' }}</p>
<SvgSpinners90RingWithBg v-show="isLoadingSessions" />
diff --git a/resources/js/components/settings/preferences/SettingsPlayerPreferences.vue b/resources/js/components/settings/preferences/SettingsPlayerPreferences.vue
index 42a357c7..3d3e8f62 100644
--- a/resources/js/components/settings/preferences/SettingsPlayerPreferences.vue
+++ b/resources/js/components/settings/preferences/SettingsPlayerPreferences.vue
@@ -15,7 +15,7 @@ const { ambientMode, playbackHeatmap, usingPlayerModernUI } = storeToRefs(useApp
<template #content>
<SettingsHeader>
<h3 class="text-base font-medium">Player Settings</h3>
- <p class="text-neutral-600 dark:text-neutral-400">Also available directly in the player</p>
+ <p class="text-foreground-1">Also available directly in the player</p>
</SettingsHeader>
<div class="flex w-full flex-col gap-4 sm:max-w-xs">
<span class="flex items-center justify-between">
diff --git a/resources/js/components/video/VideoPartyItem.vue b/resources/js/components/video/VideoPartyItem.vue
index f569ba85..34577caf 100644
--- a/resources/js/components/video/VideoPartyItem.vue
+++ b/resources/js/components/video/VideoPartyItem.vue
@@ -21,12 +21,12 @@ const emits = defineEmits<{
<template>
<section class="flex justify-between gap-2">
<p class="w-full flex-1 truncate">{{ user.name }}</p>
- <span class="flex gap-1 justify-end">
- <CircumStar v-if="leaderId === user.id" class="w-4 h-4" title="Party Leader" />
+ <span class="flex justify-end gap-1">
+ <CircumStar v-if="leaderId === user.id" class="h-4 w-4" title="Party Leader" />
<ButtonCorner
:title="'Kick from party'"
colour-classes="hover:bg-transparent"
- text-classes="hover:text-rose-600"
+ text-classes="hover:text-danger-2"
position-classes="w-4 h-4 p-0"
v-else-if="leaderId === userData?.id"
@click="emits('kickUser', user.id)"
@@ -34,7 +34,7 @@ const emits = defineEmits<{
<template #icon><ProiconsCancel /></template>
</ButtonCorner>
<img
- class="h-4 w-4 rounded-full object-cover aspect-square"
+ class="aspect-square h-4 w-4 rounded-full object-cover"
:src="`https://ui-avatars.com/api/?name=${user.name[0] ?? 'a'}&amp;color=7F9CF5&amp;background=random`"
:alt="'user profile'"
/>
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index e1dde9b4..9f5882d6 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -1167,7 +1167,7 @@ defineExpose({
:title="'Close Stats'"
@click="isShowingStats = false"
colour-classes="hover:bg-transparent"
- text-classes="hover:text-rose-600"
+ text-classes="hover:text-danger-2"
position-classes="w-4 h-4 p-0"
>
<template #icon><ProiconsCancel /></template>
@@ -1596,7 +1596,7 @@ defineExpose({
ref="contextMenu"
:items="contextMenuItems"
:style="contextMenuStyle"
- :itemStyle="contextMenuItemStyle ?? 'hover:bg-purple-600 hover:text-white'"
+ :itemStyle="contextMenuItemStyle ?? 'hover:bg-primary hover:text-white'"
scrollContainer="window"
teleport-disabled
/>
diff --git a/resources/js/components/video/VideoPopover.vue b/resources/js/components/video/VideoPopover.vue
index e2f6cc7e..5e4e7b11 100644
--- a/resources/js/components/video/VideoPopover.vue
+++ b/resources/js/components/video/VideoPopover.vue
@@ -165,13 +165,13 @@ onUnmounted(() => {
<div class="space-y-2">
{{ popoverAdjustment }}
<h4 class="leading-none font-medium">Dimensions</h4>
- <p class="text-muted-foreground text-sm">Set the dimensions for the layer.</p>
+ <p class="text-foreground-1 text-sm">Set the dimensions for the layer.</p>
</div>
<div class="grid gap-2">
<div class="grid grid-cols-3 items-center gap-4">
<label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="width">Width</label
><input
- class="border-input ring-offset-background placeholder:text-muted-foreground col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="width"
value="100%"
/>
@@ -179,7 +179,7 @@ onUnmounted(() => {
<div class="grid grid-cols-3 items-center gap-4">
<label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxWidth">Max. width</label
><input
- class="border-input ring-offset-background placeholder:text-muted-foreground col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="maxWidth"
value="300px"
/>
@@ -187,7 +187,7 @@ onUnmounted(() => {
<div class="grid grid-cols-3 items-center gap-4">
<label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="height">Height</label
><input
- class="border-input ring-offset-background placeholder:text-muted-foreground col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="height"
value="25px"
/>
@@ -195,7 +195,7 @@ onUnmounted(() => {
<div class="grid grid-cols-3 items-center gap-4">
<label class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="maxHeight">Max. height</label
><input
- class="border-input ring-offset-background placeholder:text-muted-foreground col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
+ class="border-input ring-offset-background placeholder:text-foreground-1 col-span-2 flex h-8 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
id="maxHeight"
value="none"
/>
diff --git a/resources/js/views/DashboardView.vue b/resources/js/views/DashboardView.vue
index c72d4b8b..6811491f 100644
--- a/resources/js/views/DashboardView.vue
+++ b/resources/js/views/DashboardView.vue
@@ -14,7 +14,7 @@ import DashboardSidebarCard from '@/components/cards/sidebar/DashboardSidebarCar
import DashboardAnalytics from '@/components/dashboard/DashboardAnalytics.vue';
import DashboardLibraries from '@/components/dashboard/DashboardLibraries.vue';
import DashboardActivity from '@/components/dashboard/DashboardActivity.vue';
-import AppManifestCard from '@/components/cards/sidebar/AppManifestCard.vue';
+import AppManifestCard from '@/components/cards/data/AppManifestCard.vue';
import DashboardUsers from '@/components/dashboard/DashboardUsers.vue';
import DashboardTasks from '@/components/dashboard/DashboardTasks.vue';
import SidebarHeader from '@/components/headers/SidebarHeader.vue';
diff --git a/resources/js/views/HistoryView.vue b/resources/js/views/HistoryView.vue
index ef18b0f7..cd1e2f23 100755
--- a/resources/js/views/HistoryView.vue
+++ b/resources/js/views/HistoryView.vue
@@ -11,7 +11,7 @@ import { sortObject } from '@/service/sort/baseSort';
import { TableBase } from '@/components/cedar-ui/table';
import { toast } from '@aminnausin/cedar-ui';
-import RecordCardDetails from '@/components/cards/RecordCardDetails.vue';
+import RecordCardDetails from '@/components/cards/data/RecordCardDetails.vue';
import LayoutBase from '@/layouts/LayoutBase.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
import useModal from '@/composables/useModal';
diff --git a/resources/js/views/ProfileView.vue b/resources/js/views/ProfileView.vue
index a0ffeef8..65b43156 100755
--- a/resources/js/views/ProfileView.vue
+++ b/resources/js/views/ProfileView.vue
@@ -23,10 +23,7 @@ onMounted(() => {
<template #content>
<section id="content-profile" class="flex flex-col gap-3">
<ProfileHeader />
- <section
- id="user-info"
- class="dark:bg-primary-dark-800/70 bg-primary-800 z-3 flex w-full justify-between gap-4 rounded-xl p-3 text-neutral-600 shadow-lg dark:text-neutral-400"
- >
+ <section id="user-info" class="dark:bg-primary-dark-800/70 bg-primary-800 text-foreground-1 z-3 flex w-full justify-between gap-4 rounded-xl p-3 shadow-lg">
<div class="flex flex-col gap-1">
<p class="whitespace-pre">
{{
diff --git a/resources/js/views/SettingsView.vue b/resources/js/views/SettingsView.vue
index 65517e8d..cccf931d 100755
--- a/resources/js/views/SettingsView.vue
+++ b/resources/js/views/SettingsView.vue
@@ -10,7 +10,7 @@ import { useRoute } from 'vue-router';
import DashboardSidebarCard from '@/components/cards/sidebar/DashboardSidebarCard.vue';
import SettingsPreferences from '@/components/settings/SettingsPreferences.vue';
import SettingsAccount from '@/components/settings/SettingsAccount.vue';
-import AppManifestCard from '@/components/cards/sidebar/AppManifestCard.vue';
+import AppManifestCard from '@/components/cards/data/AppManifestCard.vue';
import SidebarHeader from '@/components/headers/SidebarHeader.vue';
import LayoutBase from '@/layouts/LayoutBase.vue';
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index 6e9804a8..b5d55cb6 100755
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -16,7 +16,7 @@ import VideoAmbientPlayer from '@/components/video/VideoAmbientPlayer.vue';
import VideoInfoPanel from '@/components/video/VideoInfoPanel.vue';
import VideoSidebar from '@/components/panels/VideoSidebar.vue';
import LayoutBase from '@/layouts/LayoutBase.vue';
-import VideoCard from '@/components/cards/VideoCard.vue';
+import VideoCard from '@/components/cards/data/VideoCard.vue';
import ModalBase from '@/components/pinesUI/ModalBase.vue';
import EditVideo from '@/components/forms/EditVideo.vue';