summaryrefslogtreecommitdiffstats
path: root/src/App.vue
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-30 19:27:37 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-08-30 19:33:16 +0200
commit47cc783b637de75a72a6f8b721edb3cb34934ea0 (patch)
tree4fd983f9583a3770dbc98d20b66f9787d5f42f9d /src/App.vue
parent753e88793e0525cadd8a544e3f4093cc3cf7b331 (diff)
Import existing attempt to port to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
new file mode 100644
index 000000000..ad80f18d5
--- /dev/null
+++ b/src/App.vue
@@ -0,0 +1,25 @@
+<template>
+ <Content app-name="news">
+ <Sidebar />
+ <AppContent>
+ <router-view />
+ </AppContent>
+ </Content>
+</template>
+
+<script>
+import Content from '@nextcloud/vue/dist/Components/Content'
+import AppContent from '@nextcloud/vue/dist/Components/AppContent'
+import Sidebar from './components/Sidebar.vue'
+
+export default {
+ components: {
+ Content,
+ Sidebar,
+ AppContent,
+ },
+ created() {
+ this.$store.dispatch('loadFolder')
+ },
+}
+</script>