summaryrefslogtreecommitdiffstats
path: root/settings/src/App.vue
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-05-23 00:32:46 +0200
committerGitHub <noreply@github.com>2018-05-23 00:32:46 +0200
commita2c518ee5a3d452973052a627e15bcb3bb812dd3 (patch)
tree51732ffcac6d5c445dfd0f3773d27fbfdb36d522 /settings/src/App.vue
parentb40bae816a5515b6420c0d82bf64eb187b2cd894 (diff)
parent760b01e8dbad054919fe766112b52d0b9cfb2d32 (diff)
downloadnextcloud-server-a2c518ee5a3d452973052a627e15bcb3bb812dd3.tar.gz
nextcloud-server-a2c518ee5a3d452973052a627e15bcb3bb812dd3.zip
Merge pull request #8824 from nextcloud/settings-vue
Vue migration: settings
Diffstat (limited to 'settings/src/App.vue')
-rw-r--r--settings/src/App.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/settings/src/App.vue b/settings/src/App.vue
new file mode 100644
index 00000000000..4e1708bed4f
--- /dev/null
+++ b/settings/src/App.vue
@@ -0,0 +1,16 @@
+<template>
+ <router-view></router-view>
+</template>
+
+<script>
+export default {
+ name: 'App',
+ beforeMount: function() {
+ // importing server data into the store
+ const serverDataElmt = document.getElementById('serverData');
+ if (serverDataElmt !== null) {
+ this.$store.commit('setServerData', JSON.parse(document.getElementById('serverData').dataset.server));
+ }
+ }
+}
+</script>