Initial commit

This commit is contained in:
Mindboost
2025-07-01 10:53:26 +00:00
commit 38050e5c69
416 changed files with 48708 additions and 0 deletions

36
plugins/player.ts Normal file
View File

@@ -0,0 +1,36 @@
/** Dieses Plugin deckt die Applikationslogik für den Player ab. Dadurch soll verhindert werden, dass Logik in Componenten verbaut ist,
* die durch die mount und unmount Mechanismen durcheinander kommen würden. Das Plugin arbeitet eng mit dem audio-Store zusammen.
*
* Die benötigten Funktionen für die Navigationbar sowie das PlayerControls-Composable sind changeTrack zum Wechseln des Soundscapes
* inklusive der Interaktion mit dem Backend.
*
**/
export default defineNuxtPlugin(async () => {
const play = async () => {
}
const pause = async () => {
}
const next = async () => {
}
const previous = async () => {
}
// Expose methods to components
return {
provide: {
play,
pause,
next,
previous,
stop
}
}
})