refactoring: move files around

This commit is contained in:
Géry Debongnie
2019-03-04 17:00:29 +01:00
parent 0e31798459
commit b15761de8b
12 changed files with 10 additions and 15 deletions
-5
View File
@@ -16,8 +16,3 @@ export class Registry<T> {
return this.map[key]; return this.map[key];
} }
} }
//------------------------------------------------------------------------------
// Main registry instance
//------------------------------------------------------------------------------
export const registry = new Registry();
+1 -1
View File
@@ -1,6 +1,6 @@
import { Registry } from "./core/registry"; import { Registry } from "./core/registry";
import { ActionWidget } from "./store/store"; import { ActionWidget } from "./store/store";
import { Discuss } from "./ui/discuss/discuss"; import { Discuss } from "./discuss/discuss";
export const actionRegistry: Registry<ActionWidget> = new Registry(); export const actionRegistry: Registry<ActionWidget> = new Registry();
@@ -1,7 +1,7 @@
import { Type } from "../core/component"; import { Type } from "../core/component";
import { rpcMixin } from "./rpc_mixin"; import { rpcMixin } from "./rpc_mixin";
import { Widget } from "../ui/widget"; import { Widget } from "../widget";
import { View } from "../ui/view"; import { View } from "../views/view";
export type Context = { [key: string]: any }; export type Context = { [key: string]: any };
+1 -1
View File
@@ -1,5 +1,5 @@
import { MenuInfo, MenuItem } from "../store/store"; import { MenuInfo, MenuItem } from "../store/store";
import { Widget } from "./widget"; import { Widget } from "../widget";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Types // Types
+1 -1
View File
@@ -1,5 +1,5 @@
import { MenuItem } from "../store/store"; import { MenuItem } from "../store/store";
import { PureWidget } from "./widget"; import { PureWidget } from "../widget";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Types // Types
+1 -1
View File
@@ -1,5 +1,5 @@
import { Notification as INotification } from "../store/store"; import { Notification as INotification } from "../store/store";
import { Widget } from "./widget"; import { Widget } from "../widget";
export class Notification extends Widget<INotification, {}> { export class Notification extends Widget<INotification, {}> {
template = "web.notification"; template = "web.notification";
+1 -1
View File
@@ -4,7 +4,7 @@ import { State, Store } from "../store/store";
import { HomeMenu } from "./home_menu"; import { HomeMenu } from "./home_menu";
import { Navbar } from "./navbar"; import { Navbar } from "./navbar";
import { Notification } from "./notification"; import { Notification } from "./notification";
import { Widget } from "./widget"; import { Widget } from "../widget";
import { Action } from "../store/action_manager_mixin"; import { Action } from "../store/action_manager_mixin";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@@ -1,4 +1,4 @@
import { Widget } from "./widget"; import { Widget } from "../widget";
export class View extends Widget<{}, { info: any }> { export class View extends Widget<{}, { info: any }> {
inlineTemplate = `<div>some view: <span t-esc="props.info"/></div>`; inlineTemplate = `<div>some view: <span t-esc="props.info"/></div>`;
@@ -1,5 +1,5 @@
import { Component, PureComponent } from "../core/component"; import { Component, PureComponent } from "./core/component";
import { Env } from "../env"; import { Env } from "./env";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Widget classes // Widget classes