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