[web] Fix for playback not working in the Files page #1946

This commit is contained in:
Alain Nussbaumer
2025-11-23 14:41:34 +01:00
parent 50588df996
commit 1f19ea9a66
3 changed files with 422 additions and 415 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -16,14 +16,14 @@
"@mdi/js": "^7.4.47", "@mdi/js": "^7.4.47",
"@spotify/web-api-ts-sdk": "^1.2.0", "@spotify/web-api-ts-sdk": "^1.2.0",
"@ts-pro/vue-eternal-loading": "^1.3.1", "@ts-pro/vue-eternal-loading": "^1.3.1",
"axios": "^1.12.2", "axios": "^1.13.2",
"bulma": "^1.0.4", "bulma": "^1.0.4",
"luxon": "^3.7.2", "luxon": "^3.7.2",
"mdi-vue": "^3.0.13", "mdi-vue": "^3.0.13",
"pinia": "^3.0.3", "pinia": "^3.0.4",
"reconnectingwebsocket": "^1.0.0", "reconnectingwebsocket": "^1.0.0",
"vue": "^3.5.22", "vue": "^3.5.24",
"vue-i18n": "^11.1.12", "vue-i18n": "^11.2.1",
"vue-router": "^4.6.3", "vue-router": "^4.6.3",
"vue3-click-away": "^1.2.4", "vue3-click-away": "^1.2.4",
"vue3-lazyload": "^0.3.8", "vue3-lazyload": "^0.3.8",
@@ -31,12 +31,12 @@
}, },
"devDependencies": { "devDependencies": {
"@intlify/unplugin-vue-i18n": "^11.0.1", "@intlify/unplugin-vue-i18n": "^11.0.1",
"@vitejs/plugin-vue": "^6.0.1", "@vitejs/plugin-vue": "^6.0.2",
"eslint": "^9.38.0", "eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-vue": "^10.5.1", "eslint-plugin-vue": "^10.6.0",
"prettier": "^3.6.2", "prettier": "^3.6.2",
"sass": "^1.93.2", "sass": "^1.94.2",
"vite": "^7.1.11" "vite": "^7.2.4"
} }
} }

View File

@@ -73,6 +73,9 @@ export default {
current() { current() {
return this.$route.query?.directory || '/' return this.$route.query?.directory || '/'
}, },
expression() {
return `path starts with "${this.current}" order by path asc`
},
name() { name() {
if (this.current !== '/') { if (this.current !== '/') {
return this.current?.slice(this.current.lastIndexOf('/') + 1) return this.current?.slice(this.current.lastIndexOf('/') + 1)
@@ -81,7 +84,7 @@ export default {
}, },
playable() { playable() {
return { return {
expression: `path starts with "${this.current}" order by path asc`, expression: this.expression,
name: this.current, name: this.current,
properties: [ properties: [
{ key: 'property.folders', value: this.directories.length }, { key: 'property.folders', value: this.directories.length },