This commit is contained in:
jb-alvarado 2024-02-09 11:21:52 +01:00
parent e75c86360c
commit bf22712a8d
6 changed files with 326 additions and 1000 deletions

2
.gitignore vendored
View File

@ -37,3 +37,5 @@ live1
live1/
Musik
Musik/
test.vue

View File

@ -3,7 +3,7 @@
<NuxtPage />
<div
v-if="indexStore.showAlert"
class="alert show alert-dismissible fade media-alert"
class="alert show alert-dismissible fade media-alert position-fixed"
:class="indexStore.alertVariant"
role="alert"
>

View File

@ -45,7 +45,7 @@ export default defineNuxtConfig({
},
},
modules: ['@pinia/nuxt'],
modules: ['@pinia/nuxt', '@vueuse/nuxt'],
css: ['@/assets/scss/main.scss'],
vite: {

1282
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@
"@nuxt/types": "^2.17.3",
"@pinia/nuxt": "^0.5.1",
"@popperjs/core": "^2.11.8",
"@vueuse/core": "^10.7.2",
"@vueuse/nuxt": "^10.7.2",
"bootstrap": "^5.3.2",
"bootstrap-icons": "^1.11.3",
"cookie-universal-nuxt": "^2.2.2",
@ -24,12 +24,13 @@
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"mpegts.js": "^1.7.3",
"nuxt": "3.10.1",
"pinia": "^2.1.7",
"sortablejs": "^1.15.2",
"sortablejs-vue3": "^1.2.11",
"splitpanes": "^3.1.5",
"video.js": "^8.10.0",
"vuedraggable": "^4.1.0"
"vue": "^3.4.18",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^12.0.0",
@ -39,8 +40,6 @@
"@types/video.js": "^7.3.56",
"eslint": "^8.56.0",
"eslint-plugin-nuxt": "^4.0.0",
"fibers": "^5.0.3",
"nuxt": "3.10.1",
"postcss": "^8.4.35",
"postcss-loader": "^8.1.0",
"sass": "^1.70.0",

View File

@ -22,10 +22,7 @@
:active="index === mediaStore.crumbs.length - 1"
@click="getPath(crumb.path)"
>
<a
v-if="mediaStore.crumbs.length > 1 && mediaStore.crumbs.length - 1 > index"
href="#"
>
<a v-if="mediaStore.crumbs.length > 1 && mediaStore.crumbs.length - 1 > index" href="#">
{{ crumb.text }}
</a>
<span v-else>{{ crumb.text }}</span>
@ -199,12 +196,7 @@
</splitpanes>
<div class="btn-group media-button mb-3">
<div
class="btn btn-primary"
title="Copy Playlist"
data-bs-toggle="modal"
data-bs-target="#copyModal"
>
<div class="btn btn-primary" title="Copy Playlist" data-bs-toggle="modal" data-bs-target="#copyModal">
<i class="bi-files" />
</div>
<div
@ -247,12 +239,7 @@
<div class="btn btn-primary" title="Save Playlist" @click="savePlaylist(listDate)">
<i class="bi-download" />
</div>
<div
class="btn btn-primary"
title="Delete Playlist"
data-bs-toggle="modal"
data-bs-target="#deleteModal"
>
<div class="btn btn-primary" title="Delete Playlist" data-bs-toggle="modal" data-bs-target="#deleteModal">
<i class="bi-trash" />
</div>
</div>
@ -469,7 +456,7 @@
aria-controls="v-pills-playout"
aria-selected="false"
@click="
advancedGenerator = true;
advancedGenerator = true,
resetCheckboxes()
"
>
@ -738,7 +725,7 @@
class="btn btn-primary"
data-bs-dismiss="modal"
@click="
resetCheckboxes();
resetCheckboxes(),
resetTemplate()
"
>
@ -978,7 +965,9 @@ function setPreviewData(path: string) {
if (path.match(/^http/)) {
previewUrl.value = path
} else {
previewUrl.value = encodeURIComponent(`/file/${configStore.configGui[configStore.configID].id}${fullPath}`).replace(/%2F/g, '/')
previewUrl.value = encodeURIComponent(
`/file/${configStore.configGui[configStore.configID].id}${fullPath}`
).replace(/%2F/g, '/')
}
const ext = previewName.value.split('.').slice(-1)[0].toLowerCase()
@ -1367,7 +1356,7 @@ function addTemplate() {
}
.list-row {
height: calc(100% - 400px);
height: calc(100% - 480px);
min-height: 300px;
}