mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +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,7 +1,7 @@
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import Hello from './components/Hello';
|
||||
import Sub from './components/Sub';
|
||||
import Home from './components/home';
|
||||
import Page from './components/page';
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
@@ -9,7 +9,7 @@ export default new VueRouter({
|
||||
mode: 'history',
|
||||
base: __dirname,
|
||||
routes: [
|
||||
{ path: '/', component: Hello },
|
||||
{ path: '/sub', component: Sub },
|
||||
{ path: '/', component: Home },
|
||||
{ path: '/page', component: Page },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user