Use users module.

This commit is contained in:
Roger Braun 2016-10-27 18:03:25 +02:00
parent 945ea5e69f
commit e14e3e5ef5

View File

@ -4,14 +4,16 @@ import Vuex from 'vuex'
import App from './App.vue' import App from './App.vue'
import PublicTimeline from './components/public_timeline/public_timeline.vue' import PublicTimeline from './components/public_timeline/public_timeline.vue'
import statuses from './modules/statuses.js' import statusesModule from './modules/statuses.js'
import usersModule from './modules/users.js'
Vue.use(Vuex) Vue.use(Vuex)
Vue.use(VueRouter) Vue.use(VueRouter)
const store = new Vuex.Store({ const store = new Vuex.Store({
modules: { modules: {
statuses statuses: statusesModule,
users: usersModule
} }
}) })
@ -30,3 +32,9 @@ new Vue({
template: '<App/>', template: '<App/>',
components: { App } components: { App }
}) })
const statusesEx = require('../test/fixtures/statuses.json')
setTimeout(() => {
store.commit('addNewStatuses', { statuses: statusesEx, timeline: 'public', showImmediately: false })
}, 3000)