A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
styling
aminnausin546c931d7837
diff --git a/resources/js/components/inputs/NavButton.vue b/resources/js/components/inputs/NavButton.vueindex bda7372a..9555c08e 100644--- a/resources/js/components/inputs/NavButton.vue+++ b/resources/js/components/inputs/NavButton.vue@@ -2,11 +2,11 @@import { ref } from 'vue';const props = defineProps(['label', 'colour','active'])-const activeColour = ref(`bg-neutral-200 dark:bg-violet-600/60`) ;+const activeColour = ref(`ring ring-inset ring-[0.1rem] dark:ring-0 ring-violet-500 dark:bg-violet-600/60 bg-white`) ;</script><template><button :id="'btn-nav-' + props.label"- :class="`${props.active ? activeColour : `bg-neutral-300 dark:bg-neutral-800 hover:bg-neutral-200 hover:dark:bg-violet-600/60 `} dark:text-neutral-200 flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg`"+ :class="`${props.active ? activeColour : `bg-neutral-100 dark:bg-neutral-800 hover:bg-neutral-200 hover:dark:bg-violet-600/60 `} dark:text-neutral-200 flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg`":aria-label="props.label"><slot name="icon"></slot><span :class="`hidden ${activeColour}`"></span>diff --git a/resources/js/components/layout/NavBar.vue b/resources/js/components/layout/NavBar.vueindex b4ed6a46..140e5115 100644--- a/resources/js/components/layout/NavBar.vue+++ b/resources/js/components/layout/NavBar.vue@@ -55,19 +55,19 @@ watch(userData, handleAuthEvent, { immediate: false });<nav id="navbar"><div class="flex p-1 gap-y-4 gap-2 flex-wrap sm:flex-nowrap justify-between"><span class="flex items-end sm:items-center gap-2 justify-between w-full">- <h1 id="title" class="text-2xl line-clamp-2 sm:line-clamp-1">{{ pageTitle }}</h1>+ <h1 id="title" class="text-2xl line-clamp-2 sm:line-clamp-1 capitalize">{{ pageTitle }}</h1><section id="user-options" class="group inline-block relative shrink-0" data-dropdown-toggle="user-dropdown"aria-haspopup="true"><button id="user-header"- class="flex gap-2 text-2xl text-slate-900 dark:text-white hover:text-accent-600 dark:hover:text-accent-600 items-center justify-center"+ class="flex gap-2 text-2xl text-slate-900 dark:text-white hover:text-violet-500 dark:hover:text-violet-500 items-center justify-center capitalize"@click="toggleDropdown"><span id="user-name" class="hidden sm:block" v-if="username">{{ username }}</span><span id="user-name-unauth" v-else class="text-right hidden sm:block">Guest</span><img :src="userData?.value?.avatar ?? '/storage/avatars/12345.jpg'"- class="h-7 w-7 rounded-full ring-2 ring-accent-600/60 object-cover aspect-square"+ class="h-7 w-7 rounded-full ring-2 ring-violet-600/60 object-cover aspect-square"alt="profile picture"></button><DropdownMenu :dropdownOpen="showDropdown" @toggleDropdown="dropdownOpen = false"/>diff --git a/resources/js/components/pinesUI/InputSelect.vue b/resources/js/components/pinesUI/InputSelect.vueindex de2b07c2..c52793aa 100644--- a/resources/js/components/pinesUI/InputSelect.vue+++ b/resources/js/components/pinesUI/InputSelect.vue@@ -101,7 +101,7 @@ watch(selectableItemsList, () => { select.selectableItemsList = selectableItemsL<ul v-show="select.selectOpen" ref="selectableItemsList":class="{ 'bottom-0 mb-10': select.selectDropdownPosition == 'top', 'top-0 mt-10': select.selectDropdownPosition == 'bottom' }"- class="absolute w-full mt-1 overflow-auto text-sm rounded-md shadow-md max-h-56 focus:outline-none ring-1 ring-opacity-5 ring-black dark:ring-neutral-700 bg-white dark:bg-neutral-800"+ class="z-30 absolute w-full mt-1 overflow-auto text-sm rounded-md shadow-md max-h-56 focus:outline-none ring-1 ring-opacity-5 ring-black dark:ring-neutral-700 bg-white dark:bg-neutral-800"v-cloak><template v-for="item in select.selectableItems" :key="item.value">diff --git a/resources/js/components/pinesUI/ModalBase.vue b/resources/js/components/pinesUI/ModalBase.vueindex 282baea1..39c39c82 100644--- a/resources/js/components/pinesUI/ModalBase.vue+++ b/resources/js/components/pinesUI/ModalBase.vue@@ -18,7 +18,6 @@ defineProps({})const submitModal = async (action, modalData) => {- console.log(action);await action();modalData.toggleModal(false);}diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vueindex a6fbdbbe..a31320a5 100644--- a/resources/js/components/video/VideoInfoPanel.vue+++ b/resources/js/components/video/VideoInfoPanel.vue@@ -58,42 +58,25 @@ watch(() => stateVideo.value, handlePropsUpdate, { immediate: true, deep: true }<template><divclass="p-6 w-full mx-auto dark:bg-primary-dark-800 bg-primary-800 rounded-xl shadow-lg flex justify-center sm:justify-between gap-4 flex-wrap sm:flex-nowrap overflow-hidden">- <div id="mp4-description" class="hidden sm:flex items-center gap-4 md:w-2/3 ">+ <div id="mp4-description" class="flex items-center gap-4 w-full md:w-2/3 "><img id="folder-thumbnail" class="h-28 object-contain rounded-md shadow-md":src="stateVideo?.attributes?.thumbnail?.url ?? 'https://m.media-amazon.com/images/M/MV5BMjVjZGU5ZTktYTZiNC00N2Q1LThiZjMtMDVmZDljN2I3ZWIwXkEyXkFqcGdeQXVyMTUzMTg2ODkz._V1_.jpg'"alt="Folder Cover Art"><div class="h-full flex flex-col gap-2">- <div id="mp4-title" class="text-xl font-medium line">{{ metaData?.fields.title ?? '[Video Name]' }}+ <div id="mp4-title" class="text-xl font-medium line capitalize">{{ metaData?.fields.title ?? '[Video Name]' }}</div><p class="dark:text-slate-400 text-slate-500 line-clamp-3 text-sm">{{ metaData?.fields?.description ?? defaultDescription }}</p></div></div>- <div id="mp4-description-mobile" class="flex sm:hidden items-center gap-4 flex-col w-full">- <div id="mp4-title" class="text-xl font-medium w-full">{{ metaData?.fields.title ?? '[Video Name]' }}</div>- <div class="flex items-start gap-4 w-full">- <img id="folder-thumbnail" class="h-28 object-contain rounded-md shadow-sm"- :src="stateVideo?.attributes?.thumbnail?.url ?? 'https://m.media-amazon.com/images/M/MV5BMjVjZGU5ZTktYTZiNC00N2Q1LThiZjMtMDVmZDljN2I3ZWIwXkEyXkFqcGdeQXVyMTUzMTg2ODkz._V1_.jpg'"- alt="Folder Cover Art">- <p class="dark:text-slate-400 text-slate-500 line-clamp-3 text-sm">{{ metaData?.fields?.description ?? 'No Description Yet' }}</p>- </div>- </div><div id="mp4-details"class="container flex sm:w-auto sm:flex-col justify-between lg:min-w-32 items-center sm:items-end gap-3 flex-wrap flex-1 w-full"role="group">- <section class="flex gap-2">+ <section class="flex gap-2 justify-end"><ButtonText aria-label="edit details" title="Edit Video Details" @click="editModal.toggleModal()"><template #text>- Edit Details+ <p class="text-nowrap">Edit Details</p></template></ButtonText>- <!-- <button- class="p-2 bg-button-100 dark:bg-button-900 rounded-lg ring-violet-500 hover:ring-violet-700 hover:bg-violet-400/50 ring-[0.125rem] ring-inset shadow">- Edit Details- </button> -->- <!-- <button aria-label="share" title="Share Video" @click="shareModal.toggleModal()"- class="p-2 bg-button-100 dark:bg-button-900 rounded-lg ring-neutral-700 hover:ring-violet-700 hover:bg-violet-400/50 dark:ring-[0.125rem] hover:ring-[0.125rem] ring-inset shadow">- <CircumShare1 height="24" width="24" />- </button> --><ButtonIcon aria-label="share" title="Share Video" @click="shareModal.toggleModal()"><template #icon><CircumShare1 height="24" width="24" />@@ -101,9 +84,9 @@ watch(() => stateVideo.value, handlePropsUpdate, { immediate: true, deep: true }</ButtonIcon></section><section- class="flex gap flex-col items-end text-sm dark:text-slate-400 text-slate-500 justify-between max-w-full">+ class="flex flex-1 sm:flex-none gap flex-col items-end text-sm dark:text-slate-400 text-slate-500 max-w-full"><p>{{ metaData?.fields.views }}</p>- <p class="line-clamp-1 truncate">{{ stateVideo?.tags ?? '#atmospheroc #sad #rocky' }}</p>+ <p class="line-clamp-1">{{ stateVideo?.tags ?? '#atmospheroc #sad #rocky' }}</p></section></div></div>