plane/web/store/view/root.store.ts
2024-01-30 14:26:59 +05:30

24 lines
956 B
TypeScript

// services
import { WorkspaceViewService } from "services/view/workspace.service";
import { WorkspaceMeViewService } from "services/view/workspace_me.service";
import { ProjectViewService } from "services/view/project.service";
import { ProjectViewMeService } from "services/view/project_me.service";
// stores
import { ViewRoot } from "./view-root.store";
// types
import { RootStore } from "store/root.store";
export class ViewRootStore {
workspaceViewStore: ViewRoot;
workspaceViewMeStore: ViewRoot;
projectViewStore: ViewRoot;
projectViewMeStore: ViewRoot;
constructor(private store: RootStore) {
this.workspaceViewStore = new ViewRoot(this.store, new WorkspaceViewService());
this.workspaceViewMeStore = new ViewRoot(this.store, new WorkspaceMeViewService());
this.projectViewStore = new ViewRoot(this.store, new ProjectViewService());
this.projectViewMeStore = new ViewRoot(this.store, new ProjectViewMeService());
}
}