summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-23 15:38:03 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-23 22:12:28 +0200
commit29e34e8fea5c957c30e54847a3d3ed0cf6b7e5eb (patch)
tree8418539e87e28915d7d20264caf783a8fd57213c /src/main.js
parent35cc3588080279c0fea116100a5f1016c8b6212c (diff)
Add basic routing and profile info page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/main.js b/src/main.js
index 892e527b..5f9d65a0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -19,12 +19,25 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+import "@babel/polyfill";
import Vue from 'vue'
-import App from './App'
+import {sync} from 'vuex-router-sync';
+import App from './App'
import store from './store';
+import router from './router';
+
+sync(store, router);
+
+// CSP config for webpack dynamic chunk loading
+// eslint-disable-next-line
+__webpack_nonce__ = btoa(OC.requestToken)
+// Correct the root of the app for chunk loading
+// OC.linkTo matches the apps folders
+// eslint-disable-next-line
+__webpack_public_path__ = OC.linkTo('social', 'js/')
Vue.prototype.t = t
Vue.prototype.n = n
@@ -33,6 +46,7 @@ Vue.prototype.OCA = OCA
/* eslint-disable-next-line no-new */
new Vue({
- render: h => h(App),
+ router: router,
+ render: h => h(App),
store: store
-}).$mount('#content')
+}).$mount('#vue-content')