mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
31 lines
762 B
TypeScript
31 lines
762 B
TypeScript
import { enableStaticRendering } from "mobx-react-lite";
|
|
// root stores
|
|
import { AppRootStore } from "./application";
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
export class RootStore {
|
|
app;
|
|
user;
|
|
workspace;
|
|
project;
|
|
cycle;
|
|
module;
|
|
projectView;
|
|
|
|
constructor() {
|
|
this.app = new AppRootStore();
|
|
this.user = new UserRootStore();
|
|
this.workspace = new WorkspaceRootStore();
|
|
this.project = new ProjectRootStore();
|
|
this.cycle = new CycleRootStore();
|
|
this.module = new ModuleRootStore();
|
|
this.projectView = new ProjectViewRootStore();
|
|
this.page = new PageRootStore();
|
|
this.issue = new IssueRootStore();
|
|
// independent stores
|
|
this.label = new labelStore();
|
|
this.state = new stateStore();
|
|
}
|
|
}
|