blob: 076fed19cba78ca6504b1b6c793b37c816606d88 (
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
|
<template>
<NcContent app-name="news">
<Sidebar />
<NcAppContent>
<router-view />
</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)
},
})
</script>
|