refactoring, work on environment

This commit is contained in:
Géry Debongnie
2019-01-23 14:28:41 +01:00
parent 08938d2334
commit 76fedae5a9
18 changed files with 138 additions and 63 deletions
@@ -0,0 +1,24 @@
import { Action } from "./actions";
// export interface Action {
// id: number;
// title: string;
// Widget: Type<Widget<Env>>;
// default?: boolean;
// }
// const actions: Action[] = [
// { id: 1, title: "Discuss", Widget: Discuss, default: true },
// { id: 2, title: "CRM", Widget: CRM }
// ];
export default class ActionManager {
doAction(action: Action) {
console.log(action);
// load data (??)
// trigger action somewhere
// upload url with router
}
}