2023-06-22 20:10:30 +02:00
|
|
|
<template>
|
2023-06-24 17:18:27 +02:00
|
|
|
<NcContent app-name="repod">
|
2023-12-24 00:24:46 +01:00
|
|
|
<GPodder v-if="!gpodder" />
|
|
|
|
<Subscriptions v-if="gpodder" />
|
|
|
|
<router-view v-if="gpodder" :key="$route.path" />
|
2023-08-30 19:59:20 +02:00
|
|
|
<Bar />
|
2023-06-24 17:18:27 +02:00
|
|
|
</NcContent>
|
2023-06-22 20:10:30 +02:00
|
|
|
</template>
|
|
|
|
|
2024-09-13 16:33:48 +02:00
|
|
|
<script lang="ts">
|
2024-08-08 22:39:43 +02:00
|
|
|
import 'toastify-js/src/toastify.css'
|
2024-08-09 22:21:07 +02:00
|
|
|
import { mapActions, mapState } from 'pinia'
|
2023-08-24 23:59:55 +02:00
|
|
|
import Bar from './components/Player/Bar.vue'
|
2023-07-04 17:43:58 +02:00
|
|
|
import GPodder from './views/GPodder.vue'
|
|
|
|
import { NcContent } from '@nextcloud/vue'
|
2023-08-28 21:18:14 +02:00
|
|
|
import Subscriptions from './components/Sidebar/Subscriptions.vue'
|
2023-12-24 00:24:46 +01:00
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
2024-09-13 08:56:04 +02:00
|
|
|
import { usePlayer } from './store/player.ts'
|
2023-06-22 20:10:30 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'App',
|
|
|
|
components: {
|
2023-08-24 23:59:55 +02:00
|
|
|
Bar,
|
2023-07-04 17:43:58 +02:00
|
|
|
GPodder,
|
2023-06-25 00:34:02 +02:00
|
|
|
NcContent,
|
2023-08-28 21:18:14 +02:00
|
|
|
Subscriptions,
|
2023-06-22 20:10:30 +02:00
|
|
|
},
|
2023-12-24 00:24:46 +01:00
|
|
|
computed: {
|
2024-08-09 22:21:07 +02:00
|
|
|
...mapState(usePlayer, ['paused']),
|
2023-12-24 00:24:46 +01:00
|
|
|
gpodder() {
|
|
|
|
return loadState('repod', 'gpodder', false)
|
|
|
|
},
|
|
|
|
},
|
2024-08-09 16:50:24 +02:00
|
|
|
mounted() {
|
|
|
|
this.init()
|
|
|
|
},
|
|
|
|
methods: {
|
2024-10-24 00:46:04 +02:00
|
|
|
...mapActions(usePlayer, ['init']),
|
2024-08-09 16:50:24 +02:00
|
|
|
},
|
2023-06-22 20:10:30 +02:00
|
|
|
}
|
|
|
|
</script>
|