diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-07 11:56:14 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-07 11:56:14 +0100 |
| commit | cf972e968cd1e059c4a7a05a9a3d42f3da05414b (patch) | |
| tree | 2d7d9ee5408397f1ac5d36fa98943158d5a105c4 /src/main.js | |
| parent | acc439f26684d3d188542e904190532ac781c936 (diff) | |
| parent | 83e7add2c7cd3d7b878c82ffb86e09479bff3500 (diff) | |
Merge branch 'master' of ssh.gitgud.io:lambadalambda/pleroma-fe
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/main.js b/src/main.js index 6ce2ca1b..de3b2af1 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,7 @@ import VueRouter from 'vue-router' import Vuex from 'vuex' import App from './App.vue' import PublicTimeline from './components/public_timeline/public_timeline.vue' +import PublicAndExternalTimeline from './components/public_and_external_timeline/public_and_external_timeline.vue' import FriendsTimeline from './components/friends_timeline/friends_timeline.vue' import statusesModule from './modules/statuses.js' @@ -19,12 +20,16 @@ const store = new Vuex.Store({ }) const routes = [ - { path: '/', redirect: '/main/public' }, + { path: '/', redirect: '/main/all' }, + { path: '/main/all', component: PublicAndExternalTimeline }, { path: '/main/public', component: PublicTimeline }, { path: '/main/friends', component: FriendsTimeline } ] -const router = new VueRouter({routes}) +const router = new VueRouter({ + mode: 'history', + routes +}) /* eslint-disable no-new */ new Vue({ @@ -34,9 +39,3 @@ new Vue({ template: '<App/>', components: { App } }) - -const statusesEx = require('../test/fixtures/statuses.json') - -setTimeout(() => { - store.commit('addNewStatuses', { statuses: statusesEx, timeline: 'public', showImmediately: false }) -}, 3000) |
