mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import { enableStaticRendering } from "mobx-react-lite";
|
|
// root stores
|
|
import { AppRootStore, IAppRootStore } from "./application";
|
|
import { IProjectRootStore, ProjectRootStore } from "./project";
|
|
import { CycleStore, ICycleStore } from "./cycle.store";
|
|
import { IProjectViewsStore, ProjectViewsStore } from "./project-view.store";
|
|
import { IModuleStore, ModulesStore } from "./module.store";
|
|
import { IUserStore, UserStore } from "./user";
|
|
import { IWorkspaceRootStore, WorkspaceRootStore } from "./workspace";
|
|
import { IssueRootStore, IIssueRootStore } from "./issue/root.store";
|
|
import { IStateStore, StateStore } from "./state.store";
|
|
import { IPageStore, PageStore } from "./page.store";
|
|
import { ILabelRootStore, LabelRootStore } from "./label";
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
export class RootStore {
|
|
app: IAppRootStore;
|
|
user: IUserStore;
|
|
workspaceRoot: IWorkspaceRootStore;
|
|
projectRoot: IProjectRootStore;
|
|
labelRoot: ILabelRootStore;
|
|
cycle: ICycleStore;
|
|
module: IModuleStore;
|
|
projectView: IProjectViewsStore;
|
|
page: IPageStore;
|
|
issue: IIssueRootStore;
|
|
state: IStateStore;
|
|
|
|
constructor() {
|
|
this.app = new AppRootStore(this);
|
|
this.user = new UserStore(this);
|
|
this.workspaceRoot = new WorkspaceRootStore(this);
|
|
this.projectRoot = new ProjectRootStore(this);
|
|
this.labelRoot = new LabelRootStore(this);
|
|
// independent stores
|
|
this.state = new StateStore(this);
|
|
this.issue = new IssueRootStore(this);
|
|
this.cycle = new CycleStore(this);
|
|
this.module = new ModulesStore(this);
|
|
this.projectView = new ProjectViewsStore(this);
|
|
this.page = new PageStore(this);
|
|
}
|
|
}
|