2023-12-11 09:25:05 +00:00
|
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
|
|
// root stores
|
|
|
|
import { AppRootStore } from "./application";
|
2023-12-11 14:54:46 +00:00
|
|
|
import { ProjectRootStore } from "./project";
|
|
|
|
import { CycleStore } from "./cycle.store";
|
|
|
|
import { ProjectViewsStore } from "./project-view.store";
|
|
|
|
import { ModulesStore } from "./module.store";
|
2023-12-11 14:45:07 +00:00
|
|
|
import { UserStore } from "./user";
|
2023-12-11 09:25:05 +00:00
|
|
|
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
|
|
|
|
export class RootStore {
|
2023-12-11 10:18:59 +00:00
|
|
|
app: AppRootStore;
|
2023-12-11 09:25:05 +00:00
|
|
|
user;
|
|
|
|
workspace;
|
|
|
|
project;
|
|
|
|
cycle;
|
|
|
|
module;
|
|
|
|
projectView;
|
|
|
|
|
|
|
|
constructor() {
|
2023-12-11 14:45:07 +00:00
|
|
|
this.app = new AppRootStore(this);
|
|
|
|
this.user = new UserStore(this);
|
2023-12-11 14:54:46 +00:00
|
|
|
// this.workspace = new WorkspaceRootStore();
|
|
|
|
this.project = new ProjectRootStore(this);
|
|
|
|
this.cycle = new CycleStore(this);
|
|
|
|
this.module = new ModulesStore(this);
|
|
|
|
this.projectView = new ProjectViewsStore(this);
|
|
|
|
// this.page = new PageRootStore();
|
|
|
|
// this.issue = new IssueRootStore();
|
|
|
|
// // independent stores
|
|
|
|
// this.label = new labelStore();
|
|
|
|
// this.state = new stateStore();
|
2023-12-11 09:25:05 +00:00
|
|
|
}
|
|
|
|
}
|