cygnal/src/store/index.js
Phyks (Lucas Verney) 9d4842b44c Clicking on a report now shows more infos and let users dismiss it
You should update your database by running
```
ALTER TABLE report ADD COLUMN (upvotes INTEGER NOT NULL, downvotes INTEGER NOT NULL)
```

Fix issue #8.
2018-07-06 15:39:35 +02:00

23 lines
450 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import createLogger from 'vuex/dist/logger';
import * as actions from './actions';
import { initialState as state, mutations } from './mutations';
import * as getters from './getters';
const plugins = [];
if (process.NODE_ENV !== 'production') {
plugins.push(createLogger());
}
Vue.use(Vuex);
export default new Vuex.Store({
actions,
getters,
mutations,
plugins,
state,
});