A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: text colours and display user email
aminnausin80b1f20b21da
diff --git a/resources/js/components/cards/FolderCard.vue b/resources/js/components/cards/FolderCard.vueindex 7aafae55..53054f53 100755--- a/resources/js/components/cards/FolderCard.vue+++ b/resources/js/components/cards/FolderCard.vue@@ -65,7 +65,9 @@ const contextMenuItems = computed(() => {/><span class="w-full flex-1 text-left relative flex flex-col gap-4 lg:gap-2 sm:flex-row flex-wrap p-3 sm:p-0"><section class="flex justify-between gap-4 w-full items-center">- <h3 class="w-full truncate dark:text-white" :title="props.data.series?.title ?? props.data.name">{{ props.data.series?.title ?? props.data.name }}</h3>+ <h3 class="w-full truncate text-gray-900 dark:text-white" :title="props.data.series?.title ?? props.data.name">+ {{ props.data.series?.title ?? props.data.name }}+ </h3><div class="flex justify-end gap-1"><ButtonCorner:positionClasses="'w-7 h-7'"@@ -110,7 +112,7 @@ const contextMenuItems = computed(() => {v-for="(tag, index) in props.data.series.folder_tags"v-bind:key="index":label="tag.name"- :colour="'bg-neutral-200 leading-none shadow dark:bg-neutral-900 hover:bg-violet-600 hover:text-neutral-50 hover:dark:bg-violet-600/90 !max-h-[22px]'"+ :colour="'bg-neutral-200 leading-none shadow dark:bg-neutral-900 hover:bg-violet-600 text-neutral-500 hover:text-neutral-50 hover:dark:bg-violet-600/90 !max-h-[22px]'"/></section></RouterLink>diff --git a/resources/js/components/cards/RecordCard.vue b/resources/js/components/cards/RecordCard.vueindex ee4f850b..e2eebcc9 100755--- a/resources/js/components/cards/RecordCard.vue+++ b/resources/js/components/cards/RecordCard.vue@@ -40,7 +40,7 @@ watch(class="text-left relative flex flex-col gap-4 lg:gap-2 sm:flex-row flex-wrap rounded-lg dark:bg-primary-dark-800/70 bg-primary-800 dark:hover:bg-primary-dark-600 hover:bg-gray-200 text-neutral-500 dark:text-neutral-400 shadow p-3 w-full group cursor-pointer divide-gray-300 dark:divide-gray-400"><section class="flex justify-between gap-4 w-full items-center">- <h3 class="w-full truncate dark:text-white" :title="props.record.relationships.video_name">+ <h3 class="w-full truncate text-gray-900 dark:text-white" :title="props.record.relationships.video_name">{{ props.record.relationships.video_name }}</h3><div class="flex justify-end gap-1" v-if="videoLink">diff --git a/resources/js/components/pinesUI/DropdownMenu.vue b/resources/js/components/pinesUI/DropdownMenu.vueindex 624f93f8..6f6678f4 100755--- a/resources/js/components/pinesUI/DropdownMenu.vue+++ b/resources/js/components/pinesUI/DropdownMenu.vue@@ -186,88 +186,78 @@ onUnmounted(() => {><divv-show="props.dropdownOpen"- :class="`absolute top-0 z-50 mt-12 ${manualPosition ? '' : '-right-[0.25rem]'} `"+ :class="`absolute top-0 z-50 mt-12 w-56 max-w-[80vw] mx-auto ${manualPosition ? '' : '-right-[0.25rem]'} `"v-cloakid="user-dropdown"role="menu":style="manualPosition ? `left: ${manualPosition}px;` : ''"ref="dropdown">- <div class="w-56 max-w-[80vw] mx-auto">- <div- v-if="userData"- class="p-1 mt-1 bg-white dark:bg-neutral-800/70 backdrop-blur-lg border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100"- >- <div class="px-2 py-1.5 text-sm font-semibold">My Account</div>- <div class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"></div>- <section v-for="(group, groupIndex) in dropDownItemsAuth" :key="groupIndex">- <div- v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length && group.some((item) => !item.hidden)"- class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"- ></div>- <DropdownItem- v-for="(item, index) in dropDownItemsAuth[groupIndex].filter((item) => !item.hidden)"- :key="index"- :linkData="item"- :selected="item?.url && ($route.path === item.name || $route.path === item.url) ? true : false"- :external="item?.external ? true : false"- :disabled="item?.disabled ?? false"- @click="- () => {- $emit('toggleDropdown', false);- if (item.action) item.action();- }- "- >- <template #icon>- <component :is="item.icon" viewBox="0 0 24 24" stroke="currentColor" stroke-width="0.2" class="w-4 h-4 mr-2" />- </template>- </DropdownItem>- </section>- </div>- <div- v-else- class="p-1 mt-1 bg-white dark:bg-neutral-800/70 backdrop-blur-lg border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100"- >- <section v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">- <div- v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length && group.some((item) => !item.hidden)"- class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"- ></div>- <DropdownItem- v-for="(item, index) in dropDownItems[groupIndex]"- :key="index"- :linkData="item"- :selected="$route.name === item.name"- :external="item?.external"- >- <template #icon>- <component- :is="item.icon"- width="24"- height="24"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- class="w-4 h-4 mr-2"- />- </template>- </DropdownItem>- </section>- </div>+ <div+ v-if="userData"+ class="p-1 mt-1 bg-white dark:bg-neutral-800/70 backdrop-blur-lg border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100"+ >+ <div class="px-2 py-1.5 text-sm font-semibold">{{ userData.email }}</div>+ <div class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"></div>+ <section v-for="(group, groupIndex) in dropDownItemsAuth" :key="groupIndex">+ <div+ v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length && group.some((item) => !item.hidden)"+ class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"+ ></div>+ <DropdownItem+ v-for="(item, index) in dropDownItemsAuth[groupIndex].filter((item) => !item.hidden)"+ :key="index"+ :linkData="item"+ :selected="item?.url && ($route.path === item.name || $route.path === item.url) ? true : false"+ :external="item?.external ? true : false"+ :disabled="item?.disabled ?? false"+ @click="+ () => {+ $emit('toggleDropdown', false);+ if (item.action) item.action();+ }+ "+ >+ <template #icon>+ <component :is="item.icon" viewBox="0 0 24 24" stroke="currentColor" stroke-width="0.2" class="w-4 h-4 mr-2" />+ </template>+ </DropdownItem>+ </section>+ </div>+ <div+ v-else+ class="p-1 mt-1 bg-white dark:bg-neutral-800/70 backdrop-blur-lg border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100"+ >+ <section v-for="(group, groupIndex) in dropDownItems" :key="groupIndex">+ <div+ v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length && group.some((item) => !item.hidden)"+ class="h-px my-1 -mx-1 bg-neutral-200 dark:bg-neutral-500"+ ></div>+ <DropdownItem+ v-for="(item, index) in dropDownItems[groupIndex]"+ :key="index"+ :linkData="item"+ :selected="$route.name === item.name"+ :external="item?.external"+ >+ <template #icon>+ <component+ :is="item.icon"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="w-4 h-4 mr-2"+ />+ </template>+ </DropdownItem>+ </section></div></div></Transition></OnClickOutside></template>--<style>-.v-select.drop-up.vs--open .vs__dropdown-toggle {- border-radius: 0 0 4px 4px;- border-top-color: transparent;- border-bottom-color: rgba(60, 60, 60, 0.26);-}-</style>