array to string for extensions, fix #102

This commit is contained in:
jb-alvarado 2023-06-11 20:45:03 +02:00
parent b690bcceff
commit bb15a8094e
3 changed files with 363 additions and 1835 deletions

2174
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "ffplayout-frontend", "name": "ffplayout-frontend",
"version": "0.3.3", "version": "0.3.4",
"description": "Web GUI for ffplayout", "description": "Web GUI for ffplayout",
"author": "Jonathan Baecker", "author": "Jonathan Baecker",
"private": true, "private": true,
@ -12,14 +12,14 @@
"postinstall": "nuxt prepare" "postinstall": "nuxt prepare"
}, },
"dependencies": { "dependencies": {
"@nuxt/types": "^2.16.3", "@nuxt/types": "^2.17.0",
"@pinia/nuxt": "^0.4.11", "@pinia/nuxt": "^0.4.11",
"@popperjs/core": "^2.11.8", "@popperjs/core": "^2.11.8",
"@vueuse/core": "^10.1.2", "@vueuse/core": "^10.1.2",
"bootstrap": "^5.3.0", "bootstrap": "^5.3.0",
"bootstrap-icons": "^1.10.5", "bootstrap-icons": "^1.10.5",
"cookie-universal-nuxt": "^2.2.2", "cookie-universal-nuxt": "^2.2.2",
"dayjs": "^1.11.7", "dayjs": "^1.11.8",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mpegts.js": "^1.7.3", "mpegts.js": "^1.7.3",
@ -36,10 +36,10 @@
"@types/lodash": "^4.14.195", "@types/lodash": "^4.14.195",
"@types/splitpanes": "^2.2.1", "@types/splitpanes": "^2.2.1",
"@types/video.js": "^7.3.52", "@types/video.js": "^7.3.52",
"eslint": "^8.41.0", "eslint": "^8.42.0",
"eslint-plugin-nuxt": "^4.0.0", "eslint-plugin-nuxt": "^4.0.0",
"nuxt": "3.5.2", "nuxt": "3.5.3",
"sass": "^1.62.1", "sass": "^1.63.3",
"sass-loader": "^13.3.1" "sass-loader": "^13.3.2"
} }
} }

View File

@ -62,10 +62,6 @@ export const useConfig = defineStore('config', {
this.playlistLength = sec this.playlistLength = sec
}, },
updatePlayoutConfig(config: any) {
this.configPlayout = config
},
setCurrentUser(user: string) { setCurrentUser(user: string) {
this.currentUser = user this.currentUser = user
}, },
@ -199,7 +195,11 @@ export const useConfig = defineStore('config', {
this.updatePlaylistLength(length) this.updatePlaylistLength(length)
} }
this.updatePlayoutConfig(data) if (data.storage.extensions) {
data.storage.extensions = data.storage.extensions.join(',')
}
this.configPlayout = data
}) })
.catch(() => { .catch(() => {
indexStore.alertMsg = 'No playout config found!' indexStore.alertMsg = 'No playout config found!'