feat: song editor

This commit is contained in:
2026-09-08 09:52:40 +02:00
parent 6d9853f2c1
commit 047a3a8b29
16 changed files with 169 additions and 51 deletions
+27 -1
View File
@@ -1,16 +1,42 @@
<script setup lang="ts">
import {
type ComputedRef,
computed
} from 'vue';
import {
currentQueue,
currentQueueIdx
} from '@/ts/shared/state';
import CurrentSong from '@/components/player/CurrentSong.vue';
import SharedQueue from '@/components/shared/SharedQueue.vue';
import type {
Song
} from '@/ts/dtype/playlist';
import shared from '@/ts/shared';
shared.connect();
const song: ComputedRef<Song> = computed( () => {
if ( currentQueueIdx.value >= 0 )
return currentQueue.value[currentQueueIdx.value]!;
else
return {
'artist': 'No artist',
'duration': -1,
'name': 'Not playing',
'artwork': '',
'additional-info': '',
'identifier': 'nosong-ident',
'source': 'local'
};
} );
</script>
<template>
<div class="shared-view">
<div>
<div>
<CurrentSong />
<CurrentSong v-model="song" />
</div>
<div>
<SharedQueue />