Skip to content

A self-hosted media server and file management system

fix: ring-[0.125rem] can become ring-2

aminnausindf833f9e4214
diff --git a/resources/js/components/cards/AppManifestCard.vue b/resources/js/components/cards/AppManifestCard.vue
index 6cb5d2d8..65a2bb45 100644
--- a/resources/js/components/cards/AppManifestCard.vue
+++ b/resources/js/components/cards/AppManifestCard.vue
@@ -15,19 +15,19 @@ const { appManifest } = storeToRefs(useAppStore());
target="_blank"
:class="[
'items-center justify-between',
- 'capitalize overflow-hidden bg-white hover:bg-primary-800',
- 'ring-inset ring-purple-600 hover:ring-purple-600/50 hover:ring-[0.125rem]',
- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60',
+ 'hover:bg-primary-800 overflow-hidden bg-white capitalize',
+ 'ring-purple-600 ring-inset hover:ring-2 hover:ring-purple-600/50',
+ 'aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700',
]"
:aria-disabled="false"
>
<template #header>
<h3 class="text-gray-900 dark:text-white" :title="'Source Code'">MediaServer</h3>
- <ProiconsGithub class="ml-auto w-6 h-6" />
+ <ProiconsGithub class="ml-auto h-6 w-6" />
</template>
<template #body>
- <h4 title="App Version" class="w-full text-wrap truncate sm:text-nowrap flex-1">V{{ appManifest.version ?? '0.1.15b' }}</h4>
- <h4 v-if="appManifest.commit" title="Information" class="truncate text-nowrap sm:text-right w-fit">#{{ appManifest.commit }}</h4>
+ <h4 title="App Version" class="w-full flex-1 truncate text-wrap sm:text-nowrap">V{{ appManifest.version ?? '0.1.15b' }}</h4>
+ <h4 v-if="appManifest.commit" title="Information" class="w-fit truncate text-nowrap sm:text-right">#{{ appManifest.commit }}</h4>
</template>
</SidebarCard>
</template>
diff --git a/resources/js/components/cards/LibraryCard.vue b/resources/js/components/cards/LibraryCard.vue
index 3af1bbe3..fda059ae 100644
--- a/resources/js/components/cards/LibraryCard.vue
+++ b/resources/js/components/cards/LibraryCard.vue
@@ -102,22 +102,22 @@ watch(
</script>
<template>
- <div class="flex flex-col rounded-xl shadow-lg dark:bg-primary-dark-800/70 bg-white dark:hover:bg-primary-dark-600 hover:bg-primary-800 ring-1 ring-gray-900/5 w-full group">
- <RouterLink :to="`/${data?.name}`" class="w-full h-40 relative peer">
+ <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">
+ <RouterLink :to="`/${data?.name}`" class="peer relative h-40 w-full">
<img
- class="w-full h-full object-cover rounded-t-md shadow-xs mb-auto ring-1 ring-gray-900/5 hover:ring-4 hover:ring-red-500 ring-inset peer"
+ 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"
:src="handleStorageURL(defaultFolder?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
alt="Folder Cover Art"
loading="lazy"
/>
- <span class="w-full h-full hover:ring-[0.125rem] ring-inset ring-purple-600/90 absolute top-0 left-0 rounded-t-md"></span>
+ <span class="absolute top-0 left-0 h-full w-full rounded-t-md ring-purple-600/90 ring-inset hover:ring-2"></span>
</RouterLink>
- <section class="flex flex-1 h-full flex-col p-3 gap-2">
- <div class="flex items-start justify-between flex-wrap">
+ <section class="flex h-full flex-1 flex-col gap-2 p-3">
+ <div class="flex flex-wrap items-start justify-between">
<h3 class="capitalize group-hover:text-purple-600">
{{ data?.name }}
</h3>
- <span class="flex gap-2 *:h-6 text-sm">
+ <span class="flex gap-2 text-sm *:h-6">
<BasePopover popoverClass="max-w-56! rounded-lg mt-8" :buttonClass="'p-1! ml-auto'" ref="popover">
<template #buttonIcon>
<ProiconsMoreVertical class="h-4 w-4" />
@@ -136,8 +136,8 @@ watch(
</BasePopover>
</span>
</div>
- <span class="w-full text-sm text-neutral-600 dark:text-neutral-400 flex flex-col sm:gap-1 h-full mt-auto" v-if="data">
- <span class="flex items-start justify-between flex-wrap">
+ <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="flex flex-wrap items-start justify-between">
<span class="flex flex-col gap-1 sm:gap-0">
<p class="">Videos: {{ data?.videos_count ?? '?' }}</p>
@@ -148,13 +148,13 @@ watch(
</p>
<p class="sm:hidden">{{ defaultFolder ? `Default Folder: ${defaultFolder.name}` : 'No Default Folder' }}</p>
</span>
- <span class="hidden sm:flex items-center justify-between gap-x-2 mt-auto truncate">
+ <span class="mt-auto hidden items-center justify-between gap-x-2 truncate sm:flex">
<p class="">{{ defaultFolder ? `Default: ${defaultFolder.name}` : 'No Default Folder' }}</p>
<p class="truncate" :title="`Date Added ${data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A'}`">
{{ data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A' }}
</p>
</span>
- <span class="sm:hidden flex items-center justify-between gap-x-2 flex-wrap pt-1 sm:pt-0">
+ <span class="flex flex-wrap items-center justify-between gap-x-2 pt-1 sm:hidden sm:pt-0">
<p class="" :title="`Date Added ${data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A'}`">
{{ data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A' }}
</p>
diff --git a/resources/js/components/cards/LibraryFolderCard.vue b/resources/js/components/cards/LibraryFolderCard.vue
index e5e70ab1..300ee4d4 100644
--- a/resources/js/components/cards/LibraryFolderCard.vue
+++ b/resources/js/components/cards/LibraryFolderCard.vue
@@ -16,22 +16,22 @@ const popover = useTemplateRef('popover');
</script>
<template>
- <div class="flex flex-col rounded-xl shadow-lg dark:bg-primary-dark-800/70 bg-white dark:hover:bg-primary-dark-600 hover:bg-primary-800 ring-1 ring-gray-900/5 w-full group">
- <RouterLink :to="`/${data?.path}`" class="w-full h-40 relative">
+ <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">
+ <RouterLink :to="`/${data?.path}`" class="relative h-40 w-full">
<img
- class="w-full h-full object-cover rounded-t-md shadow-xs mb-auto ring-1 ring-gray-900/5"
+ class="mb-auto h-full w-full rounded-t-md object-cover shadow-xs ring-1 ring-gray-900/5"
:src="handleStorageURL(data?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
alt="Folder Cover Art"
loading="lazy"
/>
- <span class="w-full h-full hover:ring-[0.125rem] ring-inset ring-purple-600/90 absolute top-0 left-0 rounded-t-md"></span>
+ <span class="absolute top-0 left-0 h-full w-full rounded-t-md ring-purple-600/90 ring-inset hover:ring-2"></span>
</RouterLink>
- <section class="flex flex-1 h-full flex-col p-3 gap-2">
- <div class="flex items-start justify-between gap-1 flex-wrap xs:flex-nowrap">
+ <section class="flex h-full flex-1 flex-col gap-2 p-3">
+ <div class="xs:flex-nowrap flex flex-wrap items-start justify-between gap-1">
<h3 class="capitalize group-hover:text-purple-600">
{{ data?.series?.title ?? data?.name }}
</h3>
- <span class="flex gap-2 *:h-6 text-sm">
+ <span class="flex gap-2 text-sm *:h-6">
<ButtonIcon :title="'Open Folder In New Tab'" :to="`/${data?.path}`" :class="`aspect-auto!`">
<template #icon><CircumShare1 class="h-4 w-4" /></template>
</ButtonIcon>
@@ -45,12 +45,12 @@ const popover = useTemplateRef('popover');
</BasePopover>
</span>
</div>
- <span class="w-full text-sm text-neutral-600 dark:text-neutral-400 flex flex-col gap-1 h-full mt-auto" v-if="data">
- <span class="flex items-start justify-between flex-wrap mt-auto">
+ <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="mt-auto flex flex-wrap items-start justify-between">
<p class="">Videos: {{ data?.file_count ?? '?' }}</p>
</span>
- <span class="flex items-center justify-between gap-x-2 flex-wrap">
+ <span class="flex flex-wrap items-center justify-between gap-x-2">
<p class="" :title="`Date Added ${data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A'}`">
{{ data?.created_at ? toFormattedDate(new Date(data?.created_at + ' EST')) : 'N/A' }}
</p>
diff --git a/resources/js/components/cards/LrcLibCard.vue b/resources/js/components/cards/LrcLibCard.vue
index 02e2f32f..2faae64c 100644
--- a/resources/js/components/cards/LrcLibCard.vue
+++ b/resources/js/components/cards/LrcLibCard.vue
@@ -32,19 +32,19 @@ const tags = computed(() => {
<template>
<div
:class="[
- 'relative flex flex-wrap justify-between items-center gap-2',
- 'rounded-lg shadow-sm p-3 w-full transition',
- 'bg-neutral-50 dark:bg-primary-dark-800/70 dark:hover:bg-violet-700/70 hover:bg-primary-800',
+ '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-[0.125rem] ${data.id === dirtyLyric?.id ? 'ring-violet-700/60' : 'ring-transparent dark:ring-neutral-700/20'}`,
+ `ring-2 ${data.id === dirtyLyric?.id ? 'ring-violet-700/60' : 'ring-transparent dark:ring-neutral-700/20'}`,
]"
>
- <section class="flex justify-between gap-2 w-full items-center">
- <h3 class="flex-1 truncate min-w-[30%] text-gray-900 dark:text-white" :title="data.trackName">
+ <section class="flex w-full items-center justify-between gap-2">
+ <h3 class="min-w-[30%] flex-1 truncate text-gray-900 dark:text-white" :title="data.trackName">
{{ data.trackName }}
</h3>
<ButtonIcon
- class="h-6! w-6! ring-0 transition p-1! rounded-md"
+ class="h-6! w-6! rounded-md p-1! ring-0 transition"
type="button"
:variant="'transparent'"
:title="data.id === dirtyLyric?.id ? 'Already Selected' : 'Select'"
@@ -52,36 +52,36 @@ const tags = computed(() => {
@click="$emit('select')"
>
<template #icon>
- <PrimeSave class="w-4 h-4" />
+ <PrimeSave class="h-4 w-4" />
</template>
</ButtonIcon>
<ButtonIcon
v-if="data.syncedLyrics"
- class="h-6! w-6! ring-0 transition p-1! rounded-md"
+ class="h-6! w-6! rounded-md p-1! ring-0 transition"
type="button"
:variant="'transparent'"
:title="'Preview'"
@click="$emit('preview')"
>
<template #icon>
- <ProiconsEye class="w-4 h-4" />
+ <ProiconsEye class="h-4 w-4" />
</template>
</ButtonIcon>
</section>
- <section class="flex flex-wrap justify-between gap-x-4 gap-y-2 w-full items-start text-sm">
- <span class="flex gap-2 items-center w-full flex-1">
- <span class="flex gap-1 truncate flex-1">
- <h4 class="text-nowrap text-start truncate" title="Album">
+ <section class="flex w-full flex-wrap items-start justify-between gap-x-4 gap-y-2 text-sm">
+ <span class="flex w-full flex-1 items-center gap-2">
+ <span class="flex flex-1 gap-1 truncate">
+ <h4 class="truncate text-start text-nowrap" title="Album">
{{ data.albumName }}
</h4>
<h4>-</h4>
- <h4 class="text-ellipsis text-wrap line-clamp-1 min-w-fit" title="Artist">
+ <h4 class="line-clamp-1 min-w-fit text-wrap text-ellipsis" title="Artist">
{{ data.artistName }}
</h4>
</span>
- <span class="hidden sm:flex gap-1 max-h-[22px] justify-end overflow-clip [overflow-clip-margin:4px]">
+ <span class="hidden max-h-[22px] justify-end gap-1 overflow-clip [overflow-clip-margin:4px] sm:flex">
<ChipTag
v-for="(tag, index) in tags"
:key="index"
@@ -95,14 +95,15 @@ const tags = computed(() => {
</span>
</span>
- <span class="sm:hidden w-full flex flex-wrap gap-1 overflow-clip [overflow-clip-margin:4px]">
+ <span class="flex w-full flex-wrap gap-1 overflow-clip [overflow-clip-margin:4px] sm:hidden">
<ChipTag
v-for="(tag, index) in tags"
:key="index"
:label="tag.name"
:textClass="'text-xs'"
:colour="
- tag.class ?? 'bg-neutral-200 leading-none text-neutral-500 shadow-sm dark:bg-neutral-900 hover:bg-violet-600 hover:text-neutral-50 dark:hover:bg-violet-600/90'
+ tag.class ??
+ 'bg-neutral-200 leading-none text-neutral-500 shadow-sm dark:bg-neutral-900 hover:bg-violet-600 hover:text-neutral-50 dark:hover:bg-violet-600/90'
"
/>
</span>
diff --git a/resources/js/components/cards/VideoCard.vue b/resources/js/components/cards/VideoCard.vue
index 8c67cfdb..c5e2e56c 100755
--- a/resources/js/components/cards/VideoCard.vue
+++ b/resources/js/components/cards/VideoCard.vue
@@ -57,9 +57,9 @@ const contextMenuItems = computed(() => {
<template>
<RouterLink
- :class="{ 'ring-[0.125rem] ring-violet-700': currentID === videoData.id }"
+ :class="{ 'ring-2 ring-violet-700': currentID === videoData.id }"
:to="encodeURI(`/${stateDirectory.name}/${stateFolder.name}?video=${videoData.id}`)"
- class="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:bg-primary-dark-800/70 dark:odd:bg-primary-dark-600 dark:hover:bg-violet-700/70"
+ 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"
:videoData-id="videoData.id"
:videoData-path="`../${videoData.path}`"
@contextmenu="
@@ -97,15 +97,11 @@ const contextMenuItems = computed(() => {
:hover-card-leave-delay="300"
>
<template #trigger>
- <TablerMicrophone2
- class="h-5 w-5 shrink-0 opacity-100 transition-opacity duration-300 hover:opacity-20 *:stroke-[1.4px]"
- title="Has Lyrics"
- v-if="isAudio"
- />
+ <TablerMicrophone2 class="h-5 w-5 shrink-0 opacity-100 transition-opacity duration-300 *:stroke-[1.4px] hover:opacity-20" title="Has Lyrics" v-if="isAudio" />
</template>
</HoverCard>
- <span class="flex min-w-fit gap-1 truncate text-sm uppercase text-neutral-600 dark:text-neutral-400">
+ <span class="flex min-w-fit gap-1 truncate text-sm text-neutral-600 uppercase dark:text-neutral-400">
<h4 v-if="videoData.file_size" class="truncate text-nowrap" :title="`File Size: ${formatFileSize(videoData.file_size)}`">
{{ formatFileSize(videoData.file_size) }}
</h4>
@@ -122,7 +118,7 @@ const contextMenuItems = computed(() => {
</h4>
</span>
</section>
- <section class="group flex w-full flex-wrap items-start justify-between gap-x-4 gap-y-2 text-sm text-neutral-600 dark:text-neutral-400 sm:w-auto">
+ <section class="group flex w-full flex-wrap items-start justify-between gap-x-4 gap-y-2 text-sm text-neutral-600 sm:w-auto dark:text-neutral-400">
<span class="flex w-full flex-1 items-center gap-2">
<span class="flex gap-1">
<h4 class="min-w-fit" :title="`View Count: ${views}`">
@@ -130,7 +126,7 @@ const contextMenuItems = computed(() => {
</h4>
<h4>|</h4>
- <h4 class="line-clamp-1 text-ellipsis text-wrap" :title="`Duration: ${videoData.metadata?.duration}`">
+ <h4 class="line-clamp-1 text-wrap text-ellipsis" :title="`Duration: ${videoData.metadata?.duration}`">
{{ duration }}
</h4>
</span>
diff --git a/resources/js/components/panels/VideoSidebar.vue b/resources/js/components/panels/VideoSidebar.vue
index 2c06a1b7..e151bd9a 100755
--- a/resources/js/components/panels/VideoSidebar.vue
+++ b/resources/js/components/panels/VideoSidebar.vue
@@ -108,7 +108,7 @@ watch(
</h2>
<ButtonIcon
v-if="stateDirectory.folders.length > 10 && selectedSideBar === 'folders'"
- class="size-8! p-0! dark:ring-transparent! dark:hover:bg-violet-700! *:size-6"
+ class="size-8! p-0! *:size-6 dark:ring-transparent! dark:hover:bg-violet-700!"
@click="showFilters = !showFilters"
title="Toggle Filters"
>
@@ -150,7 +150,7 @@ watch(
v-if="stateRecords.length > 0"
to="/history"
:title="'View All Watch History'"
- :class="'mx-auto mb-2 mt-2 line-clamp-1 h-8 truncate rounded-full! bg-primary-800! text-sm hover:bg-white! hover:ring-[0.125rem] hover:ring-violet-400! dark:bg-primary-dark-800/70! dark:hover:bg-primary-dark-600! dark:hover:ring-violet-700!'"
+ :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=""
>
diff --git a/resources/js/components/pinesUI/DatePicker.vue b/resources/js/components/pinesUI/DatePicker.vue
index 274b5703..0eed7b03 100644
--- a/resources/js/components/pinesUI/DatePicker.vue
+++ b/resources/js/components/pinesUI/DatePicker.vue
@@ -39,12 +39,12 @@ const {
<input
ref="datePickerInput"
:class="[
- 'h-10 px-3 py-2 rounded-md shadow-xs block mt-1 w-full text-sm',
- 'focus:outline-hidden border-none',
+ 'mt-1 block h-10 w-full rounded-md px-3 py-2 text-sm shadow-xs',
+ 'border-none focus:outline-hidden',
'disabled:cursor-not-allowed disabled:opacity-50',
- 'text-gray-900 dark:text-neutral-100 bg-white dark:bg-neutral-700 placeholder:text-neutral-400',
- 'ring-inset focus:ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700',
- 'focus:ring-[0.125rem] focus:ring-indigo-400 dark:focus:ring-indigo-500',
+ 'bg-white text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',
+ 'ring-1 ring-neutral-200 ring-inset focus:ring-inset dark:ring-neutral-700',
+ 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',
]"
@click="toggleDatePicker()"
@keydown.esc="toggleDatePicker(false)"
@@ -64,9 +64,9 @@ const {
datePickerInput?.focus();
}
"
- class="absolute top-0 right-0 px-3 py-2 cursor-pointer text-neutral-400 hover:text-neutral-500"
+ class="absolute top-0 right-0 cursor-pointer px-3 py-2 text-neutral-400 hover:text-neutral-500"
>
- <svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
</div>
@@ -81,22 +81,22 @@ const {
<div
v-if="datePickerOpen"
:class="[
- 'absolute left-0 rounded-md shadow-xs z-30 text-sm',
- 'p-4 antialiased max-w-68 w-full',
- 'focus:outline-hidden border shadow-sm border-neutral-200/70 dark:border-neutral-600',
+ 'absolute left-0 z-30 rounded-md text-sm shadow-xs',
+ 'w-full max-w-68 p-4 antialiased',
+ 'border border-neutral-200/70 shadow-sm focus:outline-hidden dark:border-neutral-600',
'disabled:cursor-not-allowed disabled:opacity-50',
- 'text-gray-900 dark:text-neutral-100 bg-white dark:bg-neutral-700 placeholder:text-neutral-400',
- 'ring-inset focus:ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700',
- 'focus:ring-[0.125rem] focus:ring-indigo-400 dark:focus:ring-indigo-500',
+ 'bg-white text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',
+ 'ring-1 ring-neutral-200 ring-inset focus:ring-inset dark:ring-neutral-700',
+ 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',
`${datePickerPosition === 'top' ? 'bottom-0 mb-12' : 'top-0 mt-12'}`,
]"
ref="datePickerCalendar"
>
- <div class="flex items-center justify-between mb-2">
+ <div class="mb-2 flex items-center justify-between">
<div class="flex text-lg *:px-2">
<button
v-if="datePickerPanel === 'D'"
- class="font-bold dark:text-neutral-100 transition duration-100 ease-in-out rounded-lg cursor-pointer focus:outline-hidden focus:shadow-outline hover:bg-gray-100 dark:hover:bg-neutral-900"
+ class="focus:shadow-outline cursor-pointer rounded-lg font-bold transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:text-neutral-100 dark:hover:bg-neutral-900"
type="button"
@click="showDatePickerPanel('M')"
>
@@ -109,7 +109,7 @@ const {
v-else
@click="showDatePickerPanel('Y')"
type="button"
- class="font-normal text-gray-600 dark:text-neutral-200 transition duration-100 ease-in-out rounded-lg cursor-pointer focus:outline-hidden focus:shadow-outline hover:bg-gray-100 dark:hover:bg-neutral-900"
+ class="focus:shadow-outline cursor-pointer rounded-lg font-normal text-gray-600 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:text-neutral-200 dark:hover:bg-neutral-900"
>
{{ datePickerYear }}
</button>
@@ -118,40 +118,40 @@ const {
<button
@click="datePickerPrevious()"
type="button"
- class="inline-flex p-1 transition duration-100 ease-in-out rounded-full cursor-pointer focus:outline-hidden focus:shadow-outline hover:bg-gray-100 dark:hover:bg-neutral-900"
+ class="focus:shadow-outline inline-flex cursor-pointer rounded-full p-1 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:hover:bg-neutral-900"
>
- <svg class="inline-flex w-6 h-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <svg class="inline-flex h-6 w-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
</svg>
</button>
<button
@click="datePickerNext()"
type="button"
- class="inline-flex p-1 transition duration-100 ease-in-out rounded-full cursor-pointer focus:outline-hidden focus:shadow-outline hover:bg-gray-100 dark:hover:bg-neutral-900"
+ class="focus:shadow-outline inline-flex cursor-pointer rounded-full p-1 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:hover:bg-neutral-900"
>
- <svg class="inline-flex w-6 h-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <svg class="inline-flex h-6 w-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</button>
</div>
</div>
- <div class="grid grid-cols-7 mb-3" v-if="datePickerPanel === 'D'">
+ <div class="mb-3 grid grid-cols-7" v-if="datePickerPanel === 'D'">
<div v-for="(day, index) in datePickerDays" :key="index" class="px-0.5">
- <div class="text-xs font-medium text-center text-gray-800 dark:text-neutral-300">{{ day }}</div>
+ <div class="text-center text-xs font-medium text-gray-800 dark:text-neutral-300">{{ day }}</div>
</div>
</div>
<div class="grid grid-cols-7 text-sm" v-if="datePickerPanel === 'D'">
- <div v-for="(blankDay, index) in datePickerBlankDaysInMonth" :key="index" class="p-1 text-center border border-transparent"></div>
- <div v-for="(day, dayIndex) in datePickerDaysInMonth" :key="dayIndex" class="px-0.5 mb-1 aspect-square leading-none">
+ <div v-for="(blankDay, index) in datePickerBlankDaysInMonth" :key="index" class="border border-transparent p-1 text-center"></div>
+ <div v-for="(day, dayIndex) in datePickerDaysInMonth" :key="dayIndex" class="mb-1 aspect-square px-0.5 leading-none">
<div
@click="datePickerValueClicked(day)"
:class="{
'bg-neutral-200 dark:bg-neutral-800/70 dark:hover:bg-neutral-900': datePickerIsToday(day) == true,
- 'text-gray-600 dark:text-neutral-300 hover:bg-neutral-200 dark:hover:text-neutral-100 dark:hover:bg-neutral-900':
+ 'text-gray-600 hover:bg-neutral-200 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-neutral-100':
datePickerIsToday(day) == false && datePickerIsSelectedDate(day) == false,
- 'bg-neutral-800 dark:bg-violet-700 text-white hover:bg-opacity-75 dark:bg-opacity-60': datePickerIsSelectedDate(day) == true,
+ 'hover:bg-opacity-75 dark:bg-opacity-60 bg-neutral-800 text-white dark:bg-violet-700': datePickerIsSelectedDate(day) == true,
}"
- class="flex items-center justify-center text-center rounded-full cursor-pointer h-7 w-7"
+ class="flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-center"
>
{{ day }}
</div>
diff --git a/resources/js/components/pinesUI/InputSelect.vue b/resources/js/components/pinesUI/InputSelect.vue
index ff43744a..be447983 100755
--- a/resources/js/components/pinesUI/InputSelect.vue
+++ b/resources/js/components/pinesUI/InputSelect.vue
@@ -139,11 +139,11 @@ watch(
:class="[
{ 'hocus:ring-0': select.selectOpen },
{ 'text-neutral-400!': placeholder && !select.selectedItem },
- 'relative h-10 flex items-center justify-between w-full py-2 pl-3 pr-10',
- 'text-left rounded-md shadow-xs cursor-pointer text-sm border-none focus:outline-hidden',
- 'ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700 hocus:ring-[0.125rem] hover:ring-violet-400 dark:hover:ring-violet-700 focus:ring-indigo-400 dark:focus:ring-indigo-500',
- 'text-gray-900 dark:text-neutral-100 bg-white dark:bg-primary-dark-800',
- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:opacity-60',
+ 'relative flex h-10 w-full items-center justify-between py-2 pr-10 pl-3',
+ 'cursor-pointer rounded-md border-none text-left text-sm shadow-xs focus:outline-hidden',
+ 'hocus:ring-2 ring-1 ring-neutral-200 ring-inset hover:ring-violet-400 focus:ring-indigo-400 dark:ring-neutral-700 dark:hover:ring-violet-700 dark:focus:ring-indigo-500',
+ 'dark:bg-primary-dark-800 bg-white text-gray-900 dark:text-neutral-100',
+ 'disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700',
props.class,
]"
:disabled="disabled"
@@ -156,9 +156,9 @@ watch(
select.selectedItem ? `${prefix}${select.selectedItem.title}` : placeholder
}}
</span>
- <span class="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
+ <span class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
<slot name="selectButtonIcon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="w-5 h-5 text-gray-400">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="h-5 w-5 text-gray-400">
<path
fill-rule="evenodd"
d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z"
@@ -174,7 +174,7 @@ watch(
v-cloak
v-if="select.selectOpen"
:class="[select.selectDropdownPosition == 'top' ? `bottom-0 ${menuMargin?.bottom ?? 'mb-11'}` : `top-0 ${menuMargin?.top ?? 'mt-11'}`]"
- class="z-30 absolute w-full mt-1 overflow-clip text-sm rounded-md shadow-md max-h-56 ring-1 ring-opacity-5 ring-black dark:ring-neutral-700 bg-white dark:bg-neutral-800/70 backdrop-blur-lg"
+ class="ring-opacity-5 absolute z-30 mt-1 max-h-56 w-full overflow-clip rounded-md bg-white text-sm shadow-md ring-1 ring-black backdrop-blur-lg dark:bg-neutral-800/70 dark:ring-neutral-700"
@trigger="select.toggleSelect(false)"
@keydown.esc.stop="
(event: Event) => {
@@ -211,7 +211,7 @@ watch(
"
@keydown.stop="select.selectKeydown($event)"
>
- <ul ref="selectableItemsList" class="w-full overflow-auto max-h-56 scrollbar-thin focus:outline-hidden" tabindex="-1" role="listbox">
+ <ul ref="selectableItemsList" class="scrollbar-thin max-h-56 w-full overflow-auto focus:outline-hidden" tabindex="-1" role="listbox">
<template v-for="item in select.selectableItems" :key="item.value">
<li
@click="handleItemClick(item)"
@@ -224,10 +224,10 @@ watch(
:data-disabled="item.disabled ? item.disabled : ''"
:tabindex="select.selectableItemIsActive(item) ? 0 : -1"
:class="{
- 'bg-neutral-100 dark:bg-neutral-900/70 text-gray-900 dark:text-neutral-100': select.selectableItemIsActive(item),
+ 'bg-neutral-100 text-gray-900 dark:bg-neutral-900/70 dark:text-neutral-100': select.selectableItemIsActive(item),
'text-gray-700 dark:text-neutral-300': !select.selectableItemIsActive(item),
}"
- class="focus:rounded-md relative flex items-center h-full py-2 pl-8 cursor-pointer data-[disabled=true]:opacity-50 data-[disabled=true]:pointer-events-none"
+ class="relative flex h-full cursor-pointer items-center py-2 pl-8 focus:rounded-md data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"
role="option"
:aria-selected="select.selectableItemIsActive(item) ? 'true' : 'false'"
>
@@ -236,7 +236,7 @@ watch(
//@ts-ignore
select.selectedItem.value == item.value
"
- class="absolute left-0 w-4 h-4 ml-2 stroke-current text-neutral-400"
+ class="absolute left-0 ml-2 h-4 w-4 stroke-current text-neutral-400"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
@@ -247,7 +247,7 @@ watch(
>
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
- <span class="block font-medium truncate">{{ item.title }}</span>
+ <span class="block truncate font-medium">{{ item.title }}</span>
</li>
</template>
</ul>
diff --git a/resources/js/views/DashboardView.vue b/resources/js/views/DashboardView.vue
index 655e7863..1090ca82 100644
--- a/resources/js/views/DashboardView.vue
+++ b/resources/js/views/DashboardView.vue
@@ -103,7 +103,7 @@ watch(
<template>
<LayoutBase>
<template v-slot:content>
- <section id="content-dashboard" class="lg:min-h-[80vh] 3xl:min-h-[60vh] text-sm flex flex-col gap-4">
+ <section id="content-dashboard" class="3xl:min-h-[60vh] flex flex-col gap-4 text-sm lg:min-h-[80vh]">
<DashboardAnalytics v-if="dashboardTab?.name == 'overview'" />
<DashboardLibraries v-if="dashboardTab?.name == 'libraries'" />
<DashboardActivity v-if="dashboardTab?.name == 'activity'" />
@@ -112,20 +112,20 @@ watch(
</section>
</template>
<template v-slot:leftSidebar>
- <div class="flex py-1 flex-col gap-2">
- <h2 id="sidebar-title" class="text-2xl h-8 w-full capitalize dark:text-white">{{ selectedSideBar }}</h2>
+ <div class="flex flex-col gap-2 py-1">
+ <h2 id="sidebar-title" class="h-8 w-full text-2xl capitalize dark:text-white">{{ selectedSideBar }}</h2>
<hr class="" />
</div>
- <section class="flex flex-col gap-2 flex-1">
+ <section class="flex flex-1 flex-col gap-2">
<SidebarCard
v-for="(tab, index) in dashboardTabs.filter((tab) => !tab.disabled)"
:key="index"
:link="tab.disabled ? '' : `/dashboard/${tab.name}`"
:class="[
'items-center justify-between gap-2!',
- 'capitalize overflow-hidden bg-white hover:bg-primary-800',
- `ring-inset ring-purple-600 hover:ring-purple-600/50 hover:ring-[0.125rem] ${dashboardTab?.name == tab.name && 'ring-[0.125rem]'}`,
- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60',
+ 'hover:bg-primary-800 overflow-hidden bg-white capitalize',
+ `ring-purple-600 ring-inset hover:ring-2 hover:ring-purple-600/50 ${dashboardTab?.name == tab.name && 'ring-2'}`,
+ 'aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700',
]"
@click="
() => {
@@ -136,14 +136,14 @@ watch(
:aria-disabled="tab.disabled"
>
<template #header>
- <h3 class="w-full flex-1 text-gray-900 dark:text-white line-clamp-1" :title="tab.title ?? tab.name">{{ tab.title ?? tab.name }}</h3>
- <component v-if="tab.icon" :is="tab.icon" class="ml-auto w-6 h-6" />
+ <h3 class="line-clamp-1 w-full flex-1 text-gray-900 dark:text-white" :title="tab.title ?? tab.name">{{ tab.title ?? tab.name }}</h3>
+ <component v-if="tab.icon" :is="tab.icon" class="ml-auto h-6 w-6" />
</template>
<template #body>
- <h4 v-if="tab.description" title="Description" class="w-full text-wrap truncate sm:text-nowrap flex-1">
+ <h4 v-if="tab.description" title="Description" class="w-full flex-1 truncate text-wrap sm:text-nowrap">
{{ tab.description }}
</h4>
- <h4 v-if="tab.info" title="Information" class="truncate text-nowrap sm:text-right w-fit">
+ <h4 v-if="tab.info" title="Information" class="w-fit truncate text-nowrap sm:text-right">
{{ tab.info.value }}
</h4>
</template>
@@ -153,18 +153,18 @@ watch(
:link="`/settings`"
:class="[
'items-center justify-between',
- 'capitalize overflow-hidden bg-white hover:bg-primary-800',
- 'ring-inset ring-purple-600 hover:ring-purple-600/50 hover:ring-[0.125rem]',
- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60',
+ 'hover:bg-primary-800 overflow-hidden bg-white capitalize',
+ 'ring-purple-600 ring-inset hover:ring-2 hover:ring-purple-600/50',
+ 'aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700',
]"
:aria-disabled="false"
>
<template #header>
<h3 class="text-gray-900 dark:text-white" :title="'Settings'">Settings</h3>
- <ProiconsSettings class="ml-auto w-6 h-6" />
+ <ProiconsSettings class="ml-auto h-6 w-6" />
</template>
<template #body>
- <h4 title="App Version" class="w-full text-wrap truncate sm:text-nowrap flex-1">Configurable Options</h4>
+ <h4 title="App Version" class="w-full flex-1 truncate text-wrap sm:text-nowrap">Configurable Options</h4>
</template>
</SidebarCard>
<AppManifestCard />
diff --git a/resources/js/views/SettingsView.vue b/resources/js/views/SettingsView.vue
index 8c5698eb..bae284e8 100755
--- a/resources/js/views/SettingsView.vue
+++ b/resources/js/views/SettingsView.vue
@@ -85,39 +85,39 @@ watch(
<template>
<LayoutBase>
<template v-slot:content>
- <section id="content-settings" class="lg:min-h-[80vh] 3xl:min-h-[60vh] text-sm flex flex-col gap-4">
+ <section id="content-settings" class="3xl:min-h-[60vh] flex flex-col gap-4 text-sm lg:min-h-[80vh]">
<SettingsPreferences v-if="settingsTab?.name == 'preferences'" />
<SettingsAccount v-if="settingsTab?.name == 'account'" />
</section>
</template>
<template v-slot:leftSidebar>
- <div class="flex py-1 flex-col gap-2">
- <h2 id="sidebar-title" class="text-2xl h-8 w-full capitalize dark:text-white">{{ selectedSideBar }}</h2>
+ <div class="flex flex-col gap-2 py-1">
+ <h2 id="sidebar-title" class="h-8 w-full text-2xl capitalize dark:text-white">{{ selectedSideBar }}</h2>
<hr class="" />
</div>
- <section class="flex flex-col gap-2 flex-1">
+ <section class="flex flex-1 flex-col gap-2">
<SidebarCard
v-for="(tab, index) in settingsTabs.filter((tab) => !tab.disabled)"
:key="index"
:link="tab.disabled ? '' : `/settings/${tab.name}`"
:class="[
'items-center justify-between gap-2!',
- 'capitalize overflow-hidden bg-white hover:bg-primary-800',
- `ring-inset ring-purple-600 hover:ring-purple-600/50 hover:ring-[0.125rem] ${settingsTab?.name == tab.name && 'ring-[0.125rem]'}`,
- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60',
+ 'hover:bg-primary-800 overflow-hidden bg-white capitalize',
+ `ring-purple-600 ring-inset hover:ring-2 hover:ring-purple-600/50 ${settingsTab?.name == tab.name && 'ring-2'}`,
+ 'aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700',
]"
@click="settingsTab = tab"
:aria-disabled="tab.disabled"
>
<template #header>
- <h3 class="w-full flex-1 text-gray-900 dark:text-white line-clamp-1" :title="tab.title ?? tab.name">{{ tab.title ?? tab.name }}</h3>
- <component v-if="tab.icon" :is="tab.icon" class="ml-auto w-6 h-6" />
+ <h3 class="line-clamp-1 w-full flex-1 text-gray-900 dark:text-white" :title="tab.title ?? tab.name">{{ tab.title ?? tab.name }}</h3>
+ <component v-if="tab.icon" :is="tab.icon" class="ml-auto h-6 w-6" />
</template>
<template #body>
- <h4 v-if="tab.description" title="Description" class="w-full text-wrap truncate sm:text-nowrap flex-1">
+ <h4 v-if="tab.description" title="Description" class="w-full flex-1 truncate text-wrap sm:text-nowrap">
{{ tab.description }}
</h4>
- <h4 v-if="tab.info" title="Information" class="truncate text-nowrap sm:text-right w-fit">
+ <h4 v-if="tab.info" title="Information" class="w-fit truncate text-nowrap sm:text-right">
{{ tab.info.value }}
</h4>
</template>
@@ -126,18 +126,18 @@ watch(
:link="`/dashboard`"
:class="[
'items-center justify-between',
- 'capitalize overflow-hidden bg-white hover:bg-primary-800',
- 'ring-inset ring-purple-600 hover:ring-purple-600/50 hover:ring-[0.125rem]',
- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60',
+ 'hover:bg-primary-800 overflow-hidden bg-white capitalize',
+ 'ring-purple-600 ring-inset hover:ring-2 hover:ring-purple-600/50',
+ 'aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700',
]"
:aria-disabled="false"
>
<template #header>
<h3 class="text-gray-900 dark:text-white" :title="'Dashboard'">Dashboard</h3>
- <CircumGrid31 class="ml-auto w-6 h-6" />
+ <CircumGrid31 class="ml-auto h-6 w-6" />
</template>
<template #body>
- <h4 title="App Dashboard" class="w-full text-wrap truncate sm:text-nowrap flex-1">Server Analytics</h4>
+ <h4 title="App Dashboard" class="w-full flex-1 truncate text-wrap sm:text-nowrap">Server Analytics</h4>
</template>
</SidebarCard>
<AppManifestCard />