diff options
author | Jonas Sulzer <jonas@violoncello.ch> | 2020-09-02 00:54:44 +0200 |
---|---|---|
committer | Jonas Sulzer <jonas@violoncello.ch> | 2020-09-02 10:05:22 +0200 |
commit | ff9224e4adbfc1aee8503a2104276173a6b77d94 (patch) | |
tree | 4c25db1d8d82a1b3197a2a0fb8032e2401584999 /src/ostatus.js | |
parent | 3aced1be96746606f27de50c202676ebc5b4a8c1 (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/ostatus.js')
-rw-r--r-- | src/ostatus.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostatus.js b/src/ostatus.js index e367b41c..8ac3ba6d 100644 --- a/src/ostatus.js +++ b/src/ostatus.js @@ -38,4 +38,4 @@ Vue.prototype.OCA = OCA new Vue({ render: h => h(OStatus), store: store -}).$mount('#vue-content') +}).$mount('#content') |