A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
Set Up Icons
aminnausinde75f704cbdd
diff --git a/.gitignore b/.gitignoreindex 695b2249..12af397f 100644--- a/.gitignore+++ b/.gitignore@@ -18,4 +18,5 @@ yarn-error.log/.idea/.vscode/media/*-/.vite/*\ No newline at end of file+/.vite/*+/reference_headlessUI_2diff --git a/package-lock.json b/package-lock.jsonindex 88986e57..6ddfc39b 100644--- a/package-lock.json+++ b/package-lock.json@@ -15,6 +15,9 @@},"devDependencies": {"@eslint/js": "^9.7.0",+ "@iconify-json/circum": "^1.1.11",+ "@iconify-json/lucide": "^1.1.202",+ "@iconify-json/material-symbols-light": "^1.1.25","@vitejs/plugin-vue": "^5.0.5","autoprefixer": "^10.4.19","axios": "^1.6.4",@@ -23,6 +26,7 @@"laravel-vite-plugin": "^1.0.0","postcss": "^8.4.35","tailwindcss": "^3.4.1",+ "unplugin-icons": "^0.19.0","vite": "^5.0.0"}},@@ -37,6 +41,27 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/@antfu/install-pkg": {+ "version": "0.3.3",+ "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-0.3.3.tgz",+ "integrity": "sha512-nHHsk3NXQ6xkCfiRRC8Nfrg8pU5kkr3P3Y9s9dKqiuRmBD0Yap7fymNDjGFKeWhZQHqqbCS5CfeMy9wtExM24w==",+ "dev": true,+ "dependencies": {+ "@jsdevtools/ez-spawn": "^3.0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/@antfu/utils": {+ "version": "0.7.10",+ "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.10.tgz",+ "integrity": "sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },"node_modules/@babel/parser": {"version": "7.24.7","resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz",@@ -591,6 +616,67 @@"url": "https://github.com/sponsors/nzakas"}},+ "node_modules/@iconify-json/circum": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@iconify-json/circum/-/circum-1.1.11.tgz",+ "integrity": "sha512-L8W22uUaPP/oczYqAX2jAx/LHYO5Ti1nEi3aj8+mbcZsyIj6fTb4ssuUFMRJtZQ0hHLb42N1n5RvPXRU1nC0iQ==",+ "dev": true,+ "dependencies": {+ "@iconify/types": "*"+ }+ },+ "node_modules/@iconify-json/lucide": {+ "version": "1.1.202",+ "resolved": "https://registry.npmjs.org/@iconify-json/lucide/-/lucide-1.1.202.tgz",+ "integrity": "sha512-1qvuylRBiruk1/zS2mvFjM8jn+pAIKsoWeRC5Q36oEkU+59G+PxVu1naRGWw3fLmbG2TE5l39FW6ppFug8XN/Q==",+ "dev": true,+ "dependencies": {+ "@iconify/types": "*"+ }+ },+ "node_modules/@iconify-json/material-symbols-light": {+ "version": "1.1.25",+ "resolved": "https://registry.npmjs.org/@iconify-json/material-symbols-light/-/material-symbols-light-1.1.25.tgz",+ "integrity": "sha512-Ld+biDaXRY1Yrko0BtzGkidwt2MsNFyaql9Mpkfl2wfUfbK0/CCrJCMclRz5+VtGHWkfd5iv1EYqEvceLK805A==",+ "dev": true,+ "dependencies": {+ "@iconify/types": "*"+ }+ },+ "node_modules/@iconify/types": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",+ "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",+ "dev": true+ },+ "node_modules/@iconify/utils": {+ "version": "2.1.25",+ "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-2.1.25.tgz",+ "integrity": "sha512-Y+iGko8uv/Fz5bQLLJyNSZGOdMW0G7cnlEX1CiNcKsRXX9cq/y/vwxrIAtLCZhKHr3m0VJmsjVPsvnM4uX8YLg==",+ "dev": true,+ "dependencies": {+ "@antfu/install-pkg": "^0.1.1",+ "@antfu/utils": "^0.7.7",+ "@iconify/types": "^2.0.0",+ "debug": "^4.3.4",+ "kolorist": "^1.8.0",+ "local-pkg": "^0.5.0",+ "mlly": "^1.6.1"+ }+ },+ "node_modules/@iconify/utils/node_modules/@antfu/install-pkg": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-0.1.1.tgz",+ "integrity": "sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==",+ "dev": true,+ "dependencies": {+ "execa": "^5.1.1",+ "find-up": "^5.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },"node_modules/@isaacs/cliui": {"version": "8.0.2","resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",@@ -660,6 +746,21 @@"@jridgewell/sourcemap-codec": "^1.4.14"}},+ "node_modules/@jsdevtools/ez-spawn": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@jsdevtools/ez-spawn/-/ez-spawn-3.0.4.tgz",+ "integrity": "sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==",+ "dev": true,+ "dependencies": {+ "call-me-maybe": "^1.0.1",+ "cross-spawn": "^7.0.3",+ "string-argv": "^0.3.1",+ "type-detect": "^4.0.8"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/@nodelib/fs.scandir": {"version": "2.1.5","resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",@@ -1260,9 +1361,9 @@"peer": true},"node_modules/acorn": {- "version": "8.12.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz",- "integrity": "sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==",+ "version": "8.12.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz",+ "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==","bin": {"acorn": "bin/acorn"},@@ -1491,6 +1592,12 @@"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==","peer": true},+ "node_modules/call-me-maybe": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz",+ "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==",+ "dev": true+ },"node_modules/callsites": {"version": "3.1.0","resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",@@ -1641,6 +1748,12 @@"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==","dev": true},+ "node_modules/confbox": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.7.tgz",+ "integrity": "sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==",+ "dev": true+ },"node_modules/cross-spawn": {"version": "7.0.3","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",@@ -2085,6 +2198,35 @@"node": ">=0.8.x"}},+ "node_modules/execa": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",+ "dev": true,+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.0",+ "human-signals": "^2.1.0",+ "is-stream": "^2.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^4.0.1",+ "onetime": "^5.1.2",+ "signal-exit": "^3.0.3",+ "strip-final-newline": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },+ "node_modules/execa/node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true+ },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -2276,6 +2418,18 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/get-stream": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",+ "dev": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/glob": {"version": "10.3.10","resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",@@ -2354,6 +2508,15 @@"node": ">= 0.4"}},+ "node_modules/human-signals": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",+ "dev": true,+ "engines": {+ "node": ">=10.17.0"+ }+ },"node_modules/ignore": {"version": "5.3.1","resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",@@ -2454,6 +2617,18 @@"node": ">=8"}},+ "node_modules/is-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "dev": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",@@ -2557,6 +2732,12 @@"json-buffer": "3.0.1"}},+ "node_modules/kolorist": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz",+ "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",+ "dev": true+ },"node_modules/laravel-vite-plugin": {"version": "1.0.1","resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.1.tgz",@@ -2611,6 +2792,22 @@"node": ">=6.11.5"}},+ "node_modules/local-pkg": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz",+ "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==",+ "dev": true,+ "dependencies": {+ "mlly": "^1.4.2",+ "pkg-types": "^1.0.3"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },"node_modules/locate-path": {"version": "6.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",@@ -2657,8 +2854,7 @@"node_modules/merge-stream": {"version": "2.0.0","resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",- "peer": true+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="},"node_modules/merge2": {"version": "1.4.1",@@ -2699,6 +2895,15 @@"node": ">= 0.6"}},+ "node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },"node_modules/mini-svg-data-uri": {"version": "1.4.4","resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz",@@ -2729,6 +2934,18 @@"node": ">=16 || 14 >=14.17"}},+ "node_modules/mlly": {+ "version": "1.7.1",+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz",+ "integrity": "sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==",+ "dev": true,+ "dependencies": {+ "acorn": "^8.11.3",+ "pathe": "^1.1.2",+ "pkg-types": "^1.1.1",+ "ufo": "^1.5.3"+ }+ },"node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",@@ -2796,6 +3013,18 @@"node": ">=0.10.0"}},+ "node_modules/npm-run-path": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "dev": true,+ "dependencies": {+ "path-key": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/nth-check": {"version": "2.1.1","resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",@@ -2824,6 +3053,21 @@"node": ">= 6"}},+ "node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/optionator": {"version": "0.9.4","resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",@@ -2920,6 +3164,12 @@"url": "https://github.com/sponsors/isaacs"}},+ "node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true+ },"node_modules/picocolors": {"version": "1.0.1","resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",@@ -3002,6 +3252,17 @@"node": ">= 6"}},+ "node_modules/pkg-types": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.3.tgz",+ "integrity": "sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==",+ "dev": true,+ "dependencies": {+ "confbox": "^0.1.7",+ "mlly": "^1.7.1",+ "pathe": "^1.1.2"+ }+ },"node_modules/postcss": {"version": "8.4.38","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",@@ -3417,6 +3678,15 @@"source-map": "^0.6.0"}},+ "node_modules/string-argv": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",+ "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",+ "dev": true,+ "engines": {+ "node": ">=0.6.19"+ }+ },"node_modules/string-width": {"version": "5.1.2","resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",@@ -3505,6 +3775,15 @@"node": ">=8"}},+ "node_modules/strip-final-newline": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },"node_modules/strip-json-comments": {"version": "3.1.1","resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",@@ -3716,6 +3995,15 @@"node": ">= 0.8.0"}},+ "node_modules/type-detect": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",+ "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },"node_modules/type-fest": {"version": "0.20.2","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",@@ -3728,12 +4016,75 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/ufo": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",+ "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==",+ "dev": true+ },"node_modules/undici-types": {"version": "5.26.5","resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz","integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==","peer": true},+ "node_modules/unplugin": {+ "version": "1.12.0",+ "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.12.0.tgz",+ "integrity": "sha512-KeczzHl2sATPQUx1gzo+EnUkmN4VmGBYRRVOZSGvGITE9rGHRDGqft6ONceP3vgXcyJ2XjX5axG5jMWUwNCYLw==",+ "dev": true,+ "dependencies": {+ "acorn": "^8.12.1",+ "chokidar": "^3.6.0",+ "webpack-sources": "^3.2.3",+ "webpack-virtual-modules": "^0.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/unplugin-icons": {+ "version": "0.19.0",+ "resolved": "https://registry.npmjs.org/unplugin-icons/-/unplugin-icons-0.19.0.tgz",+ "integrity": "sha512-u5g/gIZPZEj1wUGEQxe9nzftOSqmblhusc+sL3cawIRoIt/xWpE6XYcPOfAeFTYNjSbRrX/3QiX89PFiazgU1w==",+ "dev": true,+ "dependencies": {+ "@antfu/install-pkg": "^0.3.3",+ "@antfu/utils": "^0.7.7",+ "@iconify/utils": "^2.1.23",+ "debug": "^4.3.4",+ "kolorist": "^1.8.0",+ "local-pkg": "^0.5.0",+ "unplugin": "^1.10.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ },+ "peerDependencies": {+ "@svgr/core": ">=7.0.0",+ "@svgx/core": "^1.0.1",+ "@vue/compiler-sfc": "^3.0.2 || ^2.7.0",+ "vue-template-compiler": "^2.6.12",+ "vue-template-es2015-compiler": "^1.9.0"+ },+ "peerDependenciesMeta": {+ "@svgr/core": {+ "optional": true+ },+ "@svgx/core": {+ "optional": true+ },+ "@vue/compiler-sfc": {+ "optional": true+ },+ "vue-template-compiler": {+ "optional": true+ },+ "vue-template-es2015-compiler": {+ "optional": true+ }+ }+ },"node_modules/update-browserslist-db": {"version": "1.1.0","resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz",@@ -4037,11 +4388,16 @@"version": "3.2.3","resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz","integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",- "peer": true,"engines": {"node": ">=10.13.0"}},+ "node_modules/webpack-virtual-modules": {+ "version": "0.6.2",+ "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",+ "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==",+ "dev": true+ },"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",diff --git a/package.json b/package.jsonindex 2c8cc616..a7b093bb 100644--- a/package.json+++ b/package.json@@ -8,6 +8,9 @@},"devDependencies": {"@eslint/js": "^9.7.0",+ "@iconify-json/circum": "^1.1.11",+ "@iconify-json/lucide": "^1.1.202",+ "@iconify-json/material-symbols-light": "^1.1.25","@vitejs/plugin-vue": "^5.0.5","autoprefixer": "^10.4.19","axios": "^1.6.4",@@ -16,6 +19,7 @@"laravel-vite-plugin": "^1.0.0","postcss": "^8.4.35","tailwindcss": "^3.4.1",+ "unplugin-icons": "^0.19.0","vite": "^5.0.0"},"dependencies": {diff --git a/resources/js/components/inputs/NavBarButton.vue b/resources/js/components/inputs/NavBarButton.vuedeleted file mode 100644index 40f31bbd..00000000--- a/resources/js/components/inputs/NavBarButton.vue+++ /dev/null@@ -1,10 +0,0 @@-<script setup>- const {action, label, colour} = defineProps({action, label, colour});-</script>-<template>- <button :id="'btn-nav-' + label" @click="action" :class="`hidden justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-${colour}-300 hover:bg-${colour}-200`" :aria-label="label">- <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">- <path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />- </svg>- </button>-</template>\ No newline at end of filediff --git a/resources/js/components/inputs/NavBarLink.vue b/resources/js/components/inputs/NavBarLink.vuedeleted file mode 100644index 512d56aa..00000000--- a/resources/js/components/inputs/NavBarLink.vue+++ /dev/null@@ -1,11 +0,0 @@-<script setup>- import { RouterLink } from 'vue-router';- const {action, label, colour, icon} = defineProps({action, label, colour, icon});-</script>-<template>- <router-link :id="'btn-nav-' + label" @click="action" :class="`hidden justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-${colour}-300 hover:bg-${colour}-200`" :aria-label="label">- <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">- <path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />- </svg>- </router-link>-</template>\ No newline at end of filediff --git a/resources/js/components/inputs/NavButton.vue b/resources/js/components/inputs/NavButton.vuenew file mode 100644index 00000000..0fb6e765--- /dev/null+++ b/resources/js/components/inputs/NavButton.vue@@ -0,0 +1,8 @@+<script setup>+ const {label, colour} = defineProps(['label', 'colour']);+</script>+<template>+ <button :id="'btn-nav-' + label" :class="`flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg dark:text-neutral-200 bg-neutral-300 dark:bg-neutral-700 hover:bg-neutral-200 hover:dark:bg-${colour ?? 'violet'}-600/60`" :aria-label="label">+ <slot name="icon"></slot>+ </button>+</template>\ No newline at end of filediff --git a/resources/js/components/inputs/NavLink.vue b/resources/js/components/inputs/NavLink.vuenew file mode 100644index 00000000..ad157bbc--- /dev/null+++ b/resources/js/components/inputs/NavLink.vue@@ -0,0 +1,11 @@+<script setup>+ import { RouterLink } from 'vue-router';+ const {label, colour, URL} = defineProps(['label', 'colour', 'URL']);+</script>++<template>+ <router-link :id="'btn-nav-' + label" :to="URL" :class="`flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg dark:text-neutral-200 bg-neutral-300 dark:bg-neutral-700 hover:bg-neutral-200 hover:dark:bg-${colour ?? 'violet'}-600/60`" :aria-label="label">+ <slot name="icon"></slot>+ </router-link>+</template>+diff --git a/resources/js/components/layout/NavBar.vue b/resources/js/components/layout/NavBar.vueindex cc848259..00e6eaea 100644--- a/resources/js/components/layout/NavBar.vue+++ b/resources/js/components/layout/NavBar.vue@@ -1,47 +1,54 @@<script setup>- import UserDropdown from '../user/UserDropdown.vue';- import LightModeToggle from '../inputs/LightModeToggle.vue';+import LightModeToggle from '../inputs/LightModeToggle.vue';+import UserDropdown from '../user/UserDropdown.vue';+import NavButton from '../inputs/NavButton.vue';+import NavLink from '../inputs/NavLink.vue';- import { ref, onMounted, watch } from 'vue';- import { storeToRefs } from 'pinia';- import { useAuthStore } from '../../stores/AuthStore'- import { useAppStore } from '../../stores/AppStore';- import { RouterLink } from 'vue-router';+import CircumFolderOn from '~icons/circum/folder-on';+import MaterialSymbolsLightHistory from '~icons/material-symbols-light/history';+import CircumMonitor from '~icons/circum/monitor';+import CircumInboxIn from '~icons/circum/inbox-in';+import { ref, onMounted, watch } from 'vue';+import { storeToRefs } from 'pinia';+import { useAuthStore } from '../../stores/AuthStore'+import { useAppStore } from '../../stores/AppStore';- const appStore = useAppStore();- const authStore = useAuthStore();- const { pageTitle } = storeToRefs(appStore);- const { userData } = storeToRefs(authStore);- const { cycleSideBar } = appStore;- const { auth } = authStore;- const showDropdown = ref(false);- const username = ref('')+const appStore = useAppStore();+const authStore = useAuthStore();+const { pageTitle } = storeToRefs(appStore);+const { userData } = storeToRefs(authStore);+const { cycleSideBar } = appStore;+const { auth } = authStore;- const toggleDropdown = () => {- showDropdown.value = !showDropdown.value;- }+const showDropdown = ref(false);+const username = ref('')- window.addEventListener('click', function(e){- try {- if (!this.document.querySelector("#user_options")?.contains(e.target)){- showDropdown.value = false;- }- } catch (error) {- console.log(error);- }- });- const handleAuthEvent = (newUserData) => {- username.value = newUserData?.name ?? '';+const toggleDropdown = () => {+ showDropdown.value = !showDropdown.value;+}++window.addEventListener('click', function (e) {+ try {+ if (!this.document.querySelector("#user_options")?.contains(e.target)) {+ showDropdown.value = false;+ }+ } catch (error) {+ console.log(error);}+});++const handleAuthEvent = (newUserData) => {+ username.value = newUserData?.name ?? '';+}- onMounted(async () => {- if(await auth()) handleAuthEvent(userData.value)- })+onMounted(async () => {+ if (await auth()) handleAuthEvent(userData.value)+})- watch(userData, handleAuthEvent, {immediate: false});+watch(userData, handleAuthEvent, { immediate: false });</script><template>@@ -49,44 +56,49 @@<div class="flex p-1 gap-y-3 flex-wrap justify-between"><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-accent-600 dark:hover:text-accent-600 items-center justify-center" @click="toggleDropdown">-+ <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-accent-600 dark:hover:text-accent-600 items-center justify-center"+ @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" alt="profile picture">- </button>- <UserDropdown v-if="showDropdown"/>- </section>- <section id="navbar-video" class="flex items-center gap-1">- <button v-if="$route.name === 'home'" id="btn-nav-folders" @click="cycleSideBar('folders')" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200" aria-label="folders">- <svg xmlns="https://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" height="24" width="24" class="stroke-slate-900">- <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" />- </svg>- </button>- <button v-if="username && $route.name === 'home'" id="btn-nav-history" @click="cycleSideBar('history')" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-purple-300 hover:bg-purple-200" aria-label="watch history">- <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">- <path d="M0 0h24v24H0z" fill="none" />- <path fill-rule="evenodd" d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z" />- </svg>- </button>- <button v-if="username" id="btn-nav-notifications" @click="cycleSideBar('notifications')" class="hidden justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-red-300 hover:bg-red-200" aria-label="notifications">- <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">- <path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />- </svg>+ <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>- <RouterLink v-if="$route.name === 'history'" id="btn-nav-home" class="flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-purple-300 hover:bg-purple-200" aria-label="home" to="/">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="stroke-slate-900">- <path stroke-linecap="round" stroke-linejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- </RouterLink>+ <UserDropdown v-if="showDropdown" />+ </section>++ <section id="navbar-video" class="flex items-center gap-1 text-slate-900 antialiased">+ <NavButton v-if="username" @click="cycleSideBar('notifications')" :label="'notifications'">+ <template #icon>+ <CircumInboxIn height="24" width="24" />+ </template>+ </NavButton>+ <NavButton v-if="$route.name === 'home'" @click="cycleSideBar('folders')" :label="'folders'">+ <template #icon>+ <CircumFolderOn height="24" width="24" />+ </template>+ </NavButton>+ <NavButton v-if="username && $route.name === 'home'" @click="cycleSideBar('history')"+ :label="'history'">+ <template #icon>+ <MaterialSymbolsLightHistory height="24" width="24" />+ </template>+ </NavButton>+ <NavLink v-if="$route.name === 'history'" :label="'home'" :URL="'/'">+ <template #icon>+ <CircumMonitor height="24" width="24" />+ </template>+ </NavLink></section>- <LightModeToggle/>+ <LightModeToggle /></span></div>- <hr class="mt-2"/>+ <hr class="mt-2" /></nav></template>\ No newline at end of filediff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex ca411d11..a8b2bb96 100644--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -84,7 +84,7 @@ const heatMap = computed(() => {const pastFirst = ref(false);const ContentStore = useContentStore();const { stateVideo } = storeToRefs(ContentStore);-const { addRecord } = ContentStore;+const { createRecord } = ContentStore;const initVideoPlayer = () => {let vidSource = document.getElementById('vid-source');@@ -97,7 +97,7 @@ const initVideoPlayer = () => {const playVideo = () => {pastFirst.value = true;- addRecord(stateVideo.value.id)+ createRecord(stateVideo.value.id)}watch(stateVideo, initVideoPlayer)diff --git a/resources/js/components/video/VideoTable.vue b/resources/js/components/video/VideoTable.vueindex 47909f6b..4e676df0 100644--- a/resources/js/components/video/VideoTable.vue+++ b/resources/js/components/video/VideoTable.vue@@ -1,11 +1,11 @@<script setup>-import VideoCard from '../cards/VideoCard.vue';import LabelledTextInput from '../inputs/LabelledTextInput.vue';+import TablePagination from '../table/TablePagination.vue';+import VideoCard from '../cards/VideoCard.vue';import { useContentStore } from '../../stores/ContentStore';import { storeToRefs } from 'pinia';import { computed, ref } from 'vue';-import TablePagination from '../table/TablePagination.vue';const ContentStore = useContentStore();@@ -46,11 +46,10 @@ const tableColumnGroups = [<span v-for="(column, idx) in tableColumnGroups[0]" :key="idx" :class="column.minWidth">{{column.name }}</span></th>- <th class="px-3 flex gap-12 w-full justify-end items-center">+ <th class="px-3 flex gap-12 w-full justify-end text-right items-center"><span v-for="(column, idx) in tableColumnGroups[1]" :key="idx" :class="column.minWidth">{{column.name }}</span></th>- <!-- <th v-for="(column, index) in tableColumns" :key="index" :class="column.minWidth" class="px-3 flex items-center justify-start">{{ column.name }}</th> --></tr></thead><tbody@@ -58,22 +57,7 @@ const tableColumnGroups = [<VideoCard v-for="(video, index) in filteredPage" :key="index" :video="video" :index="index":currentID="stateVideo?.id" @playByID="playlistFind" /></tbody>- <hr >- <!-- <section class="w-full justify-between flex">- <div class="">- <p>{{ `Showing ${stateFilteredPlaylist.length} of ${stateFolder.videos.length}- Result${stateFolder.videos.length > 1 ? 's' : ''} ${searchQuery ? '(Filtered)' : ''}` }}</p>- <p>{{ `Showing ${stateFilteredPlaylist.slice(videosPerPage * currentPage - videosPerPage, Math.min(videosPerPage * currentPage, stateFilteredPlaylist.length)).length} of ${stateFolder.videos.length}- Result${stateFolder.videos.length > 1 ? 's' : ''} ${searchQuery ? '(Filtered)' : ''}`}}</p>- </div>- <div class="gap-2 items-center">- <button v-for="index in Math.ceil(stateFilteredPlaylist?.length / videosPerPage)" :key="index"- class="aspect-square bg-button-100 dark:bg-button-900 rounded-lg hover:ring-indigo-500 hover:ring-[0.125rem] ring-inset"- @click="handlePageChange(index)">- {{ index }}- </button>- </div>- </section> -->+ <hr><TablePagination :listLength="stateFilteredPlaylist?.length ?? 0" :itemsPerPage="itemsPerPage" :currentPage="currentPage" @setPage="handlePageChange"/></table></template>\ No newline at end of filediff --git a/resources/js/stores/ContentStore.js b/resources/js/stores/ContentStore.jsindex 597e3f7e..3daea8e5 100644--- a/resources/js/stores/ContentStore.js+++ b/resources/js/stores/ContentStore.js@@ -43,8 +43,7 @@ export const useContentStore = defineStore('Content', () => {//parseHistory(data.data);}- // rename to createRecord- async function addRecord(id, limit = 10){+ async function createRecord(id, limit = 10){if(!userData.value) return;const { data, error } = await recordsAPI.createRecord({ 'video_id': id });@@ -52,8 +51,8 @@ export const useContentStore = defineStore('Content', () => {console.log(error ?? data?.message);return Promise.reject([]);}-- records.value = [data?.data, ...records.value.slice(0, Math.max(limit - data?.length, 0))];+ console.log(Math.max(limit - 1, records.value.length - 1));+ records.value = [data?.data, ...records.value.slice(0, Math.max(limit, records.value.length - 1))];return Promise.resolve(records.value)//parseHistory([data.data], 10, false);}@@ -171,7 +170,7 @@ export const useContentStore = defineStore('Content', () => {folders, videos, records,stateDirectory, stateFolder, stateVideo,searchQuery, filterQuery, stateFilteredPlaylist,- getRecords, addRecord, deleteRecord,+ getRecords, createRecord, deleteRecord,getCategory, getFolder, playlistSeek, playlistFind};});\ No newline at end of filediff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vueindex 3b7247f9..d41cf0ee 100644--- a/resources/js/views/VideoView.vue+++ b/resources/js/views/VideoView.vue@@ -1,43 +1,46 @@<script setup>- import VideoSidebar from '../components/panels/VideoSidebar.vue';- import LayoutBase from '../components/layout/LayoutBase.vue';- import VideoPlayer from '../components/video/VideoPlayer.vue';- import VideoTable from '../components/video/VideoTable.vue';+import VideoSidebar from '../components/panels/VideoSidebar.vue';+import LayoutBase from '../components/layout/LayoutBase.vue';+import VideoPlayer from '../components/video/VideoPlayer.vue';+import VideoTable from '../components/video/VideoTable.vue';- import { ref, onMounted, watch } from 'vue';- import { useContentStore } from '../stores/ContentStore';- import { useAppStore } from '../stores/AppStore';- import { storeToRefs } from 'pinia';- import { useRoute } from 'vue-router'+import LucideShare from '~icons/lucide/share';+import CircumShare1 from '~icons/circum/share-1';-- const route = useRoute();- const appStore = useAppStore();- const ContentStore = useContentStore();- const { selectedSideBar } = storeToRefs(appStore);- const { stateVideo} = storeToRefs(ContentStore);- const { getFolder, getCategory, getRecords, playlistSeek } = ContentStore;+import { onMounted, watch } from 'vue';+import { useContentStore } from '../stores/ContentStore';+import { useAppStore } from '../stores/AppStore';+import { storeToRefs } from 'pinia';+import { useRoute } from 'vue-router'+++const route = useRoute();+const appStore = useAppStore();+const ContentStore = useContentStore();+const { selectedSideBar } = storeToRefs(appStore);+const { stateVideo } = storeToRefs(ContentStore);+const { getFolder, getCategory, getRecords } = ContentStore;-- async function cycleSideBar(state){- if(state === "history"){- getRecords(10);- }- }- async function reload(nextFolderName){- await getFolder(nextFolderName);+async function cycleSideBar(state) {+ if (state === "history") {+ getRecords(10);}+}- onMounted(async () => {- const URL_CATEGORY = route.params.category;- const URL_FOLDER = route.params.folder;+async function reload(nextFolderName) {+ await getFolder(nextFolderName);+}- getCategory(URL_CATEGORY, URL_FOLDER);- })+onMounted(async () => {+ const URL_CATEGORY = route.params.category;+ const URL_FOLDER = route.params.folder;- watch(() => route.params.folder, reload, {immediate: false});- watch(() => selectedSideBar.value, cycleSideBar, {immediate: false});+ getCategory(URL_CATEGORY, URL_FOLDER);+})++watch(() => route.params.folder, reload, { immediate: false });+watch(() => selectedSideBar.value, cycleSideBar, { immediate: false });</script><template>@@ -45,45 +48,94 @@<template v-slot:content><section id="content-video" class="flex flex-col gap-3"><div id="video-container" class="flex flex-col gap-3">- <VideoPlayer/>+ <VideoPlayer /><!-- <hr class=""> -->- <div class="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+ class="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 ">- <img id="folder-thumbnail" class="h-28 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">+ <img id="folder-thumbnail" class="h-28 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"><div class="h-full flex flex-col gap-2">- <div id="mp4-title" class="text-xl font-medium line">{{ stateVideo?.attributes ? stateVideo.attributes.name : ''}}</div>- <p class="dark:text-slate-400 text-slate-400 line-clamp-3 text-sm">After defeating the Demon Lord, Himmel the Hero, priest Heiter, dwarf warrior Eisen, and elf mage Frieren return to the royal capital. After their procession, they view a meteor shower and discuss their future plans. Himmel, Heiter, and Eisen are ready to retire from adventuring after their ten-year quest. Frieren, whose lifespan is much longer, considers the ten years to be trivially short and plans to travel and learn new spells. To her colleagues' amusement, she promises to show them a better site to observe the meteor shower at its next occurrence in 50 years. Frieren keeps her word and returns 50 years later to find that Himmel and Heiter have become elderly, and Eisen is middle-aged. The week-long journey to Frieren's viewing site reminds the party of their past adventures. Himmel the Hero dies of old age shortly after the expedition. At his funeral, Frieren tearfully realizes she did not adequately get to know him and decides to learn as much about humans as possible. 20 years later, she visits Heiter to find that he has adopted a war orphan, nine year old Fern. Heiter, suffering from death anxiety in his advanced age, asks Frieren to research life-extending magic and tutor Fern in magic in her spare time. She agrees after seeing Fern is already remarkably skilled despite her youth.</p>+ <div id="mp4-title" class="text-xl font-medium line">{{ stateVideo?.attributes ?+ stateVideo.attributes.name : ''}}</div>+ <p class="dark:text-slate-400 text-slate-500 line-clamp-3 text-sm">After defeating the+ Demon Lord, Himmel the Hero, priest Heiter, dwarf warrior Eisen, and elf mage+ Frieren return to the royal capital. After their procession, they view a meteor+ shower and discuss their future plans. Himmel, Heiter, and Eisen are ready to retire+ from adventuring after their ten-year quest. Frieren, whose lifespan is much longer,+ considers the ten years to be trivially short and plans to travel and learn new+ spells. To her colleagues' amusement, she promises to show them a better site to+ observe the meteor shower at its next occurrence in 50 years. Frieren keeps her word+ and returns 50 years later to find that Himmel and Heiter have become elderly, and+ Eisen is middle-aged. The week-long journey to Frieren's viewing site reminds the+ party of their past adventures. Himmel the Hero dies of old age shortly after the+ expedition. At his funeral, Frieren tearfully realizes she did not adequately get to+ know him and decides to learn as much about humans as possible. 20 years later, she+ visits Heiter to find that he has adopted a war orphan, nine year old Fern. Heiter,+ suffering from death anxiety in his advanced age, asks Frieren to research+ life-extending magic and tutor Fern in magic in her spare time. She agrees after+ seeing Fern is already remarkably skilled despite her youth.</p></div></div><div id="mp4-description-mobile" class="flex sm:hidden items-center gap-4 flex-col ">- <div id="mp4-title" class="text-xl font-medium w-full">{{ stateVideo?.attributes ? stateVideo.attributes.name : ''}}</div>+ <div id="mp4-title" class="text-xl font-medium w-full">{{ stateVideo?.attributes ?+ stateVideo.attributes.name : ''}}</div><div class="flex items-start gap-4 md:w-2/3">- <img id="folder-thumbnail" class="h-28 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">- <p class="dark:text-slate-400 text-slate-400 line-clamp-3 text-sm">After defeating the Demon Lord, Himmel the Hero, priest Heiter, dwarf warrior Eisen, and elf mage Frieren return to the royal capital. After their procession, they view a meteor shower and discuss their future plans. Himmel, Heiter, and Eisen are ready to retire from adventuring after their ten-year quest. Frieren, whose lifespan is much longer, considers the ten years to be trivially short and plans to travel and learn new spells. To her colleagues' amusement, she promises to show them a better site to observe the meteor shower at its next occurrence in 50 years. Frieren keeps her word and returns 50 years later to find that Himmel and Heiter have become elderly, and Eisen is middle-aged. The week-long journey to Frieren's viewing site reminds the party of their past adventures. Himmel the Hero dies of old age shortly after the expedition. At his funeral, Frieren tearfully realizes she did not adequately get to know him and decides to learn as much about humans as possible. 20 years later, she visits Heiter to find that he has adopted a war orphan, nine year old Fern. Heiter, suffering from death anxiety in his advanced age, asks Frieren to research life-extending magic and tutor Fern in magic in her spare time. She agrees after seeing Fern is already remarkably skilled despite her youth.</p>+ <img id="folder-thumbnail" class="h-28 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">+ <p class="dark:text-slate-400 text-slate-500 line-clamp-3 text-sm">After defeating the+ Demon Lord, Himmel the Hero, priest Heiter, dwarf warrior Eisen, and elf mage+ Frieren return to the royal capital. After their procession, they view a meteor+ shower and discuss their future plans. Himmel, Heiter, and Eisen are ready to retire+ from adventuring after their ten-year quest. Frieren, whose lifespan is much longer,+ considers the ten years to be trivially short and plans to travel and learn new+ spells. To her colleagues' amusement, she promises to show them a better site to+ observe the meteor shower at its next occurrence in 50 years. Frieren keeps her word+ and returns 50 years later to find that Himmel and Heiter have become elderly, and+ Eisen is middle-aged. The week-long journey to Frieren's viewing site reminds the+ party of their past adventures. Himmel the Hero dies of old age shortly after the+ expedition. At his funeral, Frieren tearfully realizes she did not adequately get to+ know him and decides to learn as much about humans as possible. 20 years later, she+ visits Heiter to find that he has adopted a war orphan, nine year old Fern. Heiter,+ suffering from death anxiety in his advanced age, asks Frieren to research+ life-extending magic and tutor Fern in magic in her spare time. She agrees after+ seeing Fern is already remarkably skilled despite her youth.</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" role="group">+ <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"+ role="group"><section class="flex gap-2">- <button class="p-2 bg-button-100 dark:bg-button-900 rounded-lg ring-violet-500 hover:ring-violet-800 hover:bg-violet-400/50 ring-[0.125rem] ring-inset">Edit Details</button>- <button class="p-2 bg-button-100 dark:bg-button-900 rounded-lg hover:ring-violet-500 hover:bg-violet-400/50 hover:ring-[0.125rem] ring-inset">s</button>+ <button+ class="p-2 bg-button-100 dark:bg-button-900 rounded-lg ring-violet-500 hover:ring-violet-800 hover:bg-violet-400/50 ring-[0.125rem] ring-inset">Edit+ Details</button>+ <button+ class="p-2 bg-button-100 dark:bg-button-900 rounded-lg hover:ring-violet-500 hover:bg-violet-400/50 hover:ring-[0.125rem] ring-inset">+ <CircumShare1 height="24" width="24"/>+ </button></section>- <section class="flex gap flex-col items-end text-sm text-slate-400 justify-between">+ <section+ class="flex gap flex-col items-end text-sm dark:text-slate-400 text-slate-500 justify-between"><p>20 views</p><p class="line-clamp-1 truncate">#atmospheroc #sad #rocky</p>- </section>+ </section></div></div></div><!-- <hr id='preData'> -->- <VideoTable/>+ <VideoTable /></section></template><template v-slot:sidebar>- <VideoSidebar/>+ <VideoSidebar /></template></LayoutBase></template>\ No newline at end of filediff --git a/vite.config.js b/vite.config.jsindex f41d158c..943da9bd 100644--- a/vite.config.js+++ b/vite.config.js@@ -1,6 +1,8 @@import { defineConfig } from 'vite';import laravel from 'laravel-vite-plugin';import vue from '@vitejs/plugin-vue'+import Icons from 'unplugin-icons/vite'+export default defineConfig({// server: {// port: 2771,@@ -17,5 +19,9 @@ export default defineConfig({refresh: true,}),vue(),+ Icons({+ // experimental+ autoInstall: true,+ })],});