summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorJonas Sulzer <jonas@violoncello.ch>2020-09-02 00:54:44 +0200
committerJonas Sulzer <jonas@violoncello.ch>2020-09-02 10:05:22 +0200
commitff9224e4adbfc1aee8503a2104276173a6b77d94 (patch)
tree4c25db1d8d82a1b3197a2a0fb8032e2401584999 /src/main.js
parent3aced1be96746606f27de50c202676ebc5b4a8c1 (diff)
👌 IMPROVE: use vue Content components and transmit serverData over initialState
- use vue components `Content` and `AppContent` with it's respective styling to be independent from server styling - use OCP\IInitialStateService and @nextcloud/initial-state to transmit the serverData instead of using a hidden span element and jsonEncode/Decode this is needed to use the `Content` component, so the vue instance can be mounted to #content directly (otherwise server styling for #content interfers with the vue styling) - also improves some general styling (mostly widths and margins/paddings) Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index 273e84cd..da4d28d5 100644
--- a/src/main.js
+++ b/src/main.js
@@ -64,4 +64,4 @@ new Vue({
router: router,
render: h => h(App),
store: store
-}).$mount('#vue-content')
+}).$mount('#content')