2017-08-13 01:35:09 +00:00
|
|
|
import * as types from '../constants/types';
|
2017-08-21 03:00:41 +00:00
|
|
|
import { APP } from './actionsTypes';
|
2017-08-13 01:35:09 +00:00
|
|
|
|
2020-02-28 20:11:08 +00:00
|
|
|
export function appStart(root, text) {
|
2018-07-10 13:40:32 +00:00
|
|
|
return {
|
|
|
|
type: APP.START,
|
2020-02-28 20:11:08 +00:00
|
|
|
root,
|
|
|
|
text
|
2018-07-10 13:40:32 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-08-21 03:00:41 +00:00
|
|
|
export function appReady() {
|
|
|
|
return {
|
|
|
|
type: APP.READY
|
|
|
|
};
|
|
|
|
}
|
2017-09-01 19:42:50 +00:00
|
|
|
|
|
|
|
export function appInit() {
|
|
|
|
return {
|
|
|
|
type: APP.INIT
|
|
|
|
};
|
|
|
|
}
|
2018-07-10 13:40:32 +00:00
|
|
|
|
2019-12-04 16:50:22 +00:00
|
|
|
export function appInitLocalSettings() {
|
|
|
|
return {
|
|
|
|
type: APP.INIT_LOCAL_SETTINGS
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-08-13 01:35:09 +00:00
|
|
|
export function setCurrentServer(server) {
|
|
|
|
return {
|
|
|
|
type: types.SET_CURRENT_SERVER,
|
|
|
|
payload: server
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-12-27 15:22:06 +00:00
|
|
|
export function addSettings(settings) {
|
|
|
|
return {
|
|
|
|
type: types.ADD_SETTINGS,
|
|
|
|
payload: settings
|
|
|
|
};
|
|
|
|
}
|
2017-11-24 20:44:52 +00:00
|
|
|
|
2017-08-16 23:29:12 +00:00
|
|
|
export function login() {
|
|
|
|
return {
|
|
|
|
type: 'LOGIN'
|
|
|
|
};
|
|
|
|
}
|