vn-verdnaturachat/app/actions/index.js

42 lines
560 B
JavaScript
Raw Normal View History

2017-08-13 01:35:09 +00:00
import * as types from '../constants/types';
import { APP } from './actionsTypes';
2017-08-13 01:35:09 +00:00
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
};
}
2017-08-13 01:35:09 +00:00
export function setCurrentServer(server) {
return {
type: types.SET_CURRENT_SERVER,
payload: server
};
}
2017-08-16 23:29:12 +00:00
export function login() {
return {
type: 'LOGIN'
};
}