summaryrefslogtreecommitdiffstats
path: root/src/App.vue
blob: 98c3e393c2909d52673cb5b752d3146353ab62d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template>
	<NcContent app-name="news">
		<Sidebar />
		<NcAppContent>
			<RouterView />
		</NcAppContent>
	</NcContent>
</template>

<script lang="ts">

import Vue from 'vue'
import NcContent from '@nextcloud/vue/dist/Components/NcContent.js'
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js'
import Sidebar from './components/Sidebar.vue'
import { ACTIONS } from './store'

export default Vue.extend({
	components: {
		NcContent,
		Sidebar,
		NcAppContent,
	},
	async created() {
		await this.$store.dispatch(ACTIONS.FETCH_FOLDERS)
		await this.$store.dispatch(ACTIONS.FETCH_FEEDS)
		await this.$store.dispatch(ACTIONS.FETCH_STARRED)
	},
})
</script>