plugin architecture

This commit is contained in:
Cássio Zen
2016-08-17 09:52:17 -03:00
parent dea734ec21
commit a0a24ebf72
5 changed files with 59 additions and 7 deletions

View File

@ -1,4 +1,5 @@
export const SWITCH_VISUAL_MODE = 'SWITCH_VISUAL_MODE';
export const REGISTER_COMPONENT = 'REGISTER_COMPONENT';
export function switchVisualMode(useVisualMode) {
return {
@ -6,3 +7,10 @@ export function switchVisualMode(useVisualMode) {
payload: useVisualMode
};
}
export function registerComponent(options) {
return {
type: REGISTER_COMPONENT,
payload: options
};
}