42 lines
560 B
JavaScript
42 lines
560 B
JavaScript
import * as types from '../constants/types';
|
|
import { APP } from './actionsTypes';
|
|
|
|
export function appStart(root, text) {
|
|
return {
|
|
type: APP.START,
|
|
root,
|
|
text
|
|
};
|
|
}
|
|
|
|
export function appReady() {
|
|
return {
|
|
type: APP.READY
|
|
};
|
|
}
|
|
|
|
export function appInit() {
|
|
return {
|
|
type: APP.INIT
|
|
};
|
|
}
|
|
|
|
export function appInitLocalSettings() {
|
|
return {
|
|
type: APP.INIT_LOCAL_SETTINGS
|
|
};
|
|
}
|
|
|
|
export function setCurrentServer(server) {
|
|
return {
|
|
type: types.SET_CURRENT_SERVER,
|
|
payload: server
|
|
};
|
|
}
|
|
|
|
export function login() {
|
|
return {
|
|
type: 'LOGIN'
|
|
};
|
|
}
|