2019-06-23 00:07:28 +00:00
|
|
|
import { createStore } from 'easy-peasy';
|
2019-06-22 23:45:51 +00:00
|
|
|
import { ApplicationState } from '@/state/types';
|
2019-06-23 00:07:28 +00:00
|
|
|
import flashes from '@/state/models/flashes';
|
|
|
|
import user from '@/state/models/user';
|
2019-06-29 23:14:32 +00:00
|
|
|
import server from '@/state/models/server';
|
2019-06-22 23:45:51 +00:00
|
|
|
|
|
|
|
const state: ApplicationState = {
|
2019-06-23 00:07:28 +00:00
|
|
|
flashes,
|
|
|
|
user,
|
2019-06-29 23:14:32 +00:00
|
|
|
server,
|
2019-06-22 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const store = createStore(state);
|