A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
apply custom colour them variables
aminnausin83608d97a4f7
diff --git a/package-lock.json b/package-lock.jsonindex 771cae98..9d31d22a 100644--- a/package-lock.json+++ b/package-lock.json@@ -15,7 +15,7 @@"devDependencies": {"@eslint/js": "^9.7.0","@vitejs/plugin-vue": "^5.0.5",- "autoprefixer": "^10.4.17",+ "autoprefixer": "^10.4.19","axios": "^1.6.4","eslint": "^9.7.0","eslint-plugin-vue": "^9.27.0",@@ -1330,9 +1330,9 @@"dev": true},"node_modules/autoprefixer": {- "version": "10.4.17",- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.17.tgz",- "integrity": "sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==",+ "version": "10.4.19",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.19.tgz",+ "integrity": "sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==","dev": true,"funding": [{@@ -1349,8 +1349,8 @@}],"dependencies": {- "browserslist": "^4.22.2",- "caniuse-lite": "^1.0.30001578",+ "browserslist": "^4.23.0",+ "caniuse-lite": "^1.0.30001599","fraction.js": "^4.3.7","normalize-range": "^0.1.2","picocolors": "^1.0.0",@@ -1416,9 +1416,9 @@}},"node_modules/browserslist": {- "version": "4.22.3",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.3.tgz",- "integrity": "sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==",+ "version": "4.23.2",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz",+ "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==","funding": [{"type": "opencollective",@@ -1434,10 +1434,10 @@}],"dependencies": {- "caniuse-lite": "^1.0.30001580",- "electron-to-chromium": "^1.4.648",+ "caniuse-lite": "^1.0.30001640",+ "electron-to-chromium": "^1.4.820","node-releases": "^2.0.14",- "update-browserslist-db": "^1.0.13"+ "update-browserslist-db": "^1.1.0"},"bin": {"browserslist": "cli.js"@@ -1470,9 +1470,9 @@}},"node_modules/caniuse-lite": {- "version": "1.0.30001585",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz",- "integrity": "sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==",+ "version": "1.0.30001643",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz",+ "integrity": "sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==","funding": [{"type": "opencollective",@@ -1679,9 +1679,9 @@"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="},"node_modules/electron-to-chromium": {- "version": "1.4.665",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.665.tgz",- "integrity": "sha512-UpyCWObBoD+nSZgOC2ToaIdZB0r9GhqT2WahPKiSki6ckkSuKhQNso8V2PrFcHBMleI/eqbKgVQgVC4Wni4ilw=="+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.0.tgz",+ "integrity": "sha512-Vb3xHHYnLseK8vlMJQKJYXJ++t4u1/qJ3vykuVrVjvdiOEhYyT1AuP4x03G8EnPmYvYOhe9T+dADTmthjRQMkA=="},"node_modules/emoji-regex": {"version": "9.2.2",@@ -2882,9 +2882,9 @@}},"node_modules/picocolors": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",- "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",+ "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="},"node_modules/picomatch": {"version": "2.3.1",@@ -3696,9 +3696,9 @@"peer": true},"node_modules/update-browserslist-db": {- "version": "1.0.13",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",- "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==",+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz",+ "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==","funding": [{"type": "opencollective",@@ -3714,8 +3714,8 @@}],"dependencies": {- "escalade": "^3.1.1",- "picocolors": "^1.0.0"+ "escalade": "^3.1.2",+ "picocolors": "^1.0.1"},"bin": {"update-browserslist-db": "cli.js"diff --git a/package.json b/package.jsonindex 07b1774f..dbfa853b 100644--- a/package.json+++ b/package.json@@ -9,7 +9,7 @@"devDependencies": {"@eslint/js": "^9.7.0","@vitejs/plugin-vue": "^5.0.5",- "autoprefixer": "^10.4.17",+ "autoprefixer": "^10.4.19","axios": "^1.6.4","eslint": "^9.7.0","eslint-plugin-vue": "^9.27.0",diff --git a/resources/css/app.css b/resources/css/app.cssindex bd6213e1..fa47dc14 100644--- a/resources/css/app.css+++ b/resources/css/app.css@@ -1,3 +1,23 @@@tailwind base;@tailwind components;-@tailwind utilities;\ No newline at end of file+@tailwind utilities;++/* @layer base {+ input:-webkit-autofill,+ input:-webkit-autofill:enabled,+ input:-webkit-autofill:hover,+ input:-webkit-autofill:focus,+ textarea:-webkit-autofill,+ textarea:-webkit-autofill:enabled,+ textarea:-webkit-autofill:hover,+ textarea:-webkit-autofill:focus+ select:-webkit-autofill,+ select:-webkit-autofill:enabled,+ select:-webkit-autofill:hover,+ select:-webkit-autofill:focus {+ -webkit-text-fill-color: #fff;+ -webkit-box-shadow: 0 0 0px 1000px #837354c7 inset;+ box-shadow: 0 0 0px 1000px #8a8274c7 inset;+ background-color: #645c4cc7;+ }+} */\ No newline at end of filediff --git a/resources/js/components/FolderCard.vue b/resources/js/components/FolderCard.vueindex c281a7f0..84a6a52b 100644--- a/resources/js/components/FolderCard.vue+++ b/resources/js/components/FolderCard.vue@@ -9,7 +9,7 @@</script><template>- <RouterLink class="p-2 flex flex-wrap rounded-xl bg-neutral-100 dark:bg-neutral-800 dark:text-white shadow-md w-full divide-y divide-gray-300 group" :to="`/${stateDirectory.name}/${folderData?.folder_name}`">+ <RouterLink class="p-2 flex flex-wrap rounded-xl dark:bg-primary-dark-800 bg-primary-800 dark:text-white shadow-md w-full divide-y divide-gray-300 group" :to="`/${stateDirectory.name}/${folderData?.folder_name}`"><section class="flex justify-between items-baseline w-full"><h2 class="text-xl truncate">{{ folderData?.folder_name }}</h2></section>diff --git a/resources/js/components/RecordCard.vue b/resources/js/components/RecordCard.vueindex 29effe43..42e7197e 100644--- a/resources/js/components/RecordCard.vue+++ b/resources/js/components/RecordCard.vue@@ -3,7 +3,7 @@</script><template>- <div class="p-2 flex flex-wrap rounded-xl bg-neutral-100 dark:bg-neutral-800 dark:text-white shadow-md w-full divide-y divide-gray-300 group">+ <div class="p-2 flex flex-wrap rounded-xl dark:bg-primary-dark-800 bg-primary-800 dark:text-white shadow-md w-full divide-y divide-gray-300 group"><section class="flex justify-between items-baseline w-full"><h2 class="text-xl text-left truncate">{{ record.videoName}}</h2></section>diff --git a/resources/js/components/RecordFull.vue b/resources/js/components/RecordFull.vueindex f2e19d8c..ee739c1d 100644--- a/resources/js/components/RecordFull.vue+++ b/resources/js/components/RecordFull.vue@@ -4,7 +4,7 @@<template><div class="flex gap-12 group cursor-default">- <div class="flex rounded-xl items-center justify-center dark:bg-neutral-800 dark:hover:bg-neutral-700 hover:bg-slate-200 bg-slate-100 dark:text-white shadow p-3 w-full group flex-grow cursor-pointer">+ <div class="flex rounded-xl items-center justify-center dark:bg-primary-dark-800 bg-primary-800 dark:hover:bg-neutral-700 hover:bg-slate-200 dark:text-white shadow p-3 w-full group flex-grow cursor-pointer"><div class="w-full flex-wrap divide-y divide-gray-300"><section class="flex justify-between items-baseline w-full"><h2 class="text-xl text-left truncate">{{record.videoName}}</h2>diff --git a/resources/js/components/inputs/TextInput.vue b/resources/js/components/inputs/TextInput.vueindex 3b86ae7e..170ebcb6 100644--- a/resources/js/components/inputs/TextInput.vue+++ b/resources/js/components/inputs/TextInput.vue@@ -1,11 +1,11 @@<script setup>- const { name, type, required, placeholder, autoComplete } = defineProps(['name', 'type', 'required', 'placeholder', 'autocomplete']);+ const { name, type, required, placeholder, autocomplete } = defineProps(['name', 'type', 'required', 'placeholder', 'autocomplete']);const model = defineModel();</script><template><input- class="border-gray-300 dark:border-gray-700 dark:text-gray-300 dark:bg-gray-900 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm block mt-1 w-full"+ class="border-gray-300 dark:border-gray-600 dark:text-gray-300 dark:bg-input-900 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm block mt-1 w-full":name="name":type="type":required="required ? 'required' : ''"diff --git a/resources/js/components/layout/LayoutBase.vue b/resources/js/components/layout/LayoutBase.vueindex 0d01626c..7065fbcb 100644--- a/resources/js/components/layout/LayoutBase.vue+++ b/resources/js/components/layout/LayoutBase.vue@@ -10,10 +10,10 @@<template><main class="p-6 flex gap-6 flex-row-reverse flex-wrap-reverse lg:flex-nowrap snap-y">- <section id="list-card" :class="{ invisible: !selectedSideBar}" class="dark:bg-neutral-900 dark:text-[#e2e0e2] shadow-xl p-3 pb-6 rounded-2xl w-full lg:w-1/6 lg:max-w-72 shrink-0 space-y-2 scroll-mt-6">+ <section id="list-card" :class="{ invisible: !selectedSideBar}" class="bg-primary-900 dark:bg-primary-dark-900 dark:text-[#e2e0e2] shadow-xl p-3 pb-6 rounded-2xl w-full lg:w-1/6 lg:max-w-72 shrink-0 space-y-2 scroll-mt-6"><slot name="sidebar"></slot></section>- <section id="content-card" class="dark:bg-neutral-900 dark:text-[#e2e0e2] shadow-xl p-6 pt-3 rounded-2xl w-full">+ <section id="content-card" class="bg-primary-900 dark:bg-primary-dark-900 dark:text-[#e2e0e2] shadow-xl p-6 pt-3 rounded-2xl w-full"><NavBar/><slot name="content"></slot></section>diff --git a/resources/js/components/layout/NavBar.vue b/resources/js/components/layout/NavBar.vueindex 3aada597..8f43cada 100644--- a/resources/js/components/layout/NavBar.vue+++ b/resources/js/components/layout/NavBar.vue@@ -42,12 +42,12 @@<h1 id="title" class="text-2xl">{{ pageTitle }}</h1><span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-2 sm:shrink-0"><section id="user_options" class="group inline-block relative" 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-orange-600 dark:hover:text-orange-600 items-center justify-center" @click="toggleDropdown">+ <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" @click="toggleDropdown"><span id="user_name" v-if="username">{{ username }}</span><span id="user_name_unauth" v-else class="w-[10vw] text-right">Guest</span>- <img :src="userData?.value?.avatar ?? '/storage/avatars/12345.jpg'" class="h-7 w-7 rounded-full ring-2 ring-orange-600/60 object-cover aspect-square" alt="profile picture">+ <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" alt="profile picture"></button><UserDropdown v-if="showDropdown"/></section>diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vueindex 587ed42b..753720d2 100644--- a/resources/js/views/VideoView.vue+++ b/resources/js/views/VideoView.vue@@ -334,7 +334,7 @@<hr class="mt-4 mb-3">- <div class="p-6 my-4 w-full mx-auto dark:bg-neutral-800 bg-white rounded-xl shadow-lg flex justify-center sm:justify-between gap-4 flex-wrap sm:flex-nowrap">+ <div class="p-6 my-4 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"><div class="flex items-center space-x-4"><div class="shrink-0"><img id="folder-thumbnail" class="h-16 lg:h-24 object-contain rounded-md" src="https://app.test:8080/storage/thumbnails/folders/5.jpg" onerror='this.onerror=null;this.src="https\:\/\/app.test:8080/storage/thumbnails/folders/5.jpg";' alt="Folder Cover Art">diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.phpindex 8dfe49e3..d4260d88 100644--- a/resources/views/layouts/app.blade.php+++ b/resources/views/layouts/app.blade.php@@ -56,7 +56,7 @@</script></head>- <body class="dark:bg-[#121216] dark:text-[#e2e0e2] font-sans text-gray-900 antialiased" id="root">+ <body class="bg-primary-950 dark:bg-primary-dark-950 dark:text-[#e2e0e2] font-sans text-gray-900 antialiased" id="root"> <!-- dark:bg-[#121216] dark:text-[#e2e0e2] text-gray-900 -->@vite('resources/js/app.js')<div id='app' :user="{{ Auth::user() }}"></div>{{ $slot }}diff --git a/tailwind.config.js b/tailwind.config.jsindex eb1228b7..855ca951 100644--- a/tailwind.config.js+++ b/tailwind.config.js@@ -1,5 +1,4 @@import defaultTheme from 'tailwindcss/defaultTheme';-import forms from '@tailwindcss/forms';/** @type {import('tailwindcss').Config} */export default {@@ -16,6 +15,40 @@ export default {],theme: {extend: {+ // colors: {+ // 'primary': {+ // 800: '#e1e5eb',+ // 900: '#f4f1f0',+ // 950: '#FCF9F8',+ // },+ // 'primary-dark': {+ // 800: '#1D2128',//#1D2128 //#13171d //#121216+ // 900: '#211E1D',+ // 950: '#121216',//original: #121216 rtc: #161312 figma:+ // }++ // },+ colors: { // Default+ 'primary': {+ 800: '#f4f4f5',+ 900: '#fafafa',+ 950: '#FCF9F8',+ },+ 'primary-dark': {+ 800: '#27272a',+ 900: '#18181b',+ 950: '#101016',+ },+ 'secondary': {},+ 'accent': {+ 500: '#f59e0b',+ 600: '#ea580c'+ },+ 'text': {},+ 'input': {+ 900: '#212529'+ }+ },aspectRatio: {'video': '16 / 9','square': '1 / 1',@@ -32,7 +65,9 @@ export default {},},plugins: [+ // eslint-disable-next-line no-undefrequire('@tailwindcss/forms'),+ // eslint-disable-next-line no-undefrequire('@tailwindcss/aspect-ratio'),]}