mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Vuex (#8041)
* add vuex, cleanup client directory and create example components * disale sample unit test * disable import for non existing file * correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex * add line wrongly removed, update regexp
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
// TODO verify if it's needed, added because Vuex require Promise in the global scope
|
||||
// and babel-runtime doesn't affect external libraries
|
||||
require('babel-polyfill');
|
||||
|
||||
import Vue from 'vue';
|
||||
import App from './components/App';
|
||||
import VuexRouterSync from 'vuex-router-sync';
|
||||
import App from './components/app';
|
||||
import router from './router';
|
||||
import store from './vuex/store';
|
||||
|
||||
// Sync Vuex and Router
|
||||
VuexRouterSync.sync(store, router);
|
||||
|
||||
new Vue({ // eslint-disable-line no-new
|
||||
router,
|
||||
store,
|
||||
el: '#app',
|
||||
render: h => h(App),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user