@@ -180,7 +180,7 @@
v-model="item.start"
type="text"
class="input input-sm input-bordered join-item px-2 text-center"
- >
+ />
@@ -190,7 +190,7 @@
v-model="item.duration"
type="text"
class="input input-sm input-bordered join-item px-2 text-center"
- >
+ />
@@ -291,12 +291,14 @@ const advancedGenerator = ref(false)
const selectedFolders = ref([] as string[])
const generateFromAll = ref(false)
const template = ref({
- sources: [{
- start: configStore.configPlayout.playlist.day_start,
- duration: '02:00:00',
- shuffle: false,
- paths: [],
- }],
+ sources: [
+ {
+ start: configStore.playout.playlist.day_start,
+ duration: '02:00:00',
+ shuffle: false,
+ paths: [],
+ },
+ ],
} as Template)
const templateBrowserSortOptions = {
@@ -331,12 +333,7 @@ async function generatePlaylist() {
body,
})
.then((response: any) => {
- playlistStore.playlist = processPlaylist(
- configStore.startInSec,
- configStore.playlistLength,
- response.program,
- false
- )
+ playlistStore.playlist = processPlaylist(playlistStore.listDate, response.program, false)
indexStore.msgAlert('success', 'Generate Playlist done...', 2)
})
.catch((e: any) => {
@@ -379,7 +376,7 @@ function addFolderToTemplate(event: any, item: TemplateItem) {
event.item.remove()
- const storagePath = configStore.configPlayout.storage.path
+ const storagePath = configStore.playout.storage.path
const navPath = mediaStore.folderCrumbs[mediaStore.folderCrumbs.length - 1].path
const sourcePath = `${storagePath}/${navPath}/${mediaStore.folderList.folders[o].name}`.replace(/\/[/]+/g, '/')
@@ -404,7 +401,10 @@ function addTemplate() {
if (last) {
const t = $dayjs(`2000-01-01T${last.duration}`)
- start = $dayjs(`2000-01-01T${last.start}`).add(t.hour(), 'hour').add(t.minute(), 'minute').add(t.second(), 'second')
+ start = $dayjs(`2000-01-01T${last.start}`)
+ .add(t.hour(), 'hour')
+ .add(t.minute(), 'minute')
+ .add(t.second(), 'second')
}
template.value.sources.push({
diff --git a/components/PlaylistTable.vue b/components/PlaylistTable.vue
index e1ec5d50..be718f1a 100644
--- a/components/PlaylistTable.vue
+++ b/components/PlaylistTable.vue
@@ -72,6 +72,7 @@
playlistStore.playoutIsRunning &&
listDate === todayDate &&
index === playlistStore.currentClipIndex,
+ '!bg-amber-600/40': element.overtime,
}"
>
{{ secondsToTime(element.begin) }} |
@@ -96,7 +97,7 @@
type="checkbox"
:checked="element.category && element.category === 'advertisement' ? true : false"
@change="setCategory($event, element)"
- >
+ />
- |