forked from github/plane
cd5e5b96da
* feat: init mobx and issue filter * feat: Implemented list and kanban views in plane space and integrated mobx. * feat: updated store type check
26 lines
667 B
TypeScript
26 lines
667 B
TypeScript
// mobx lite
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
// store imports
|
|
import UserStore from "./user";
|
|
import ThemeStore from "./theme";
|
|
import IssueStore from "./issue";
|
|
import ProjectStore from "./project";
|
|
// types
|
|
import { IIssueStore, IProjectStore, IThemeStore, IUserStore } from "./types";
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
export class RootStore {
|
|
user: IUserStore;
|
|
theme: IThemeStore;
|
|
issue: IIssueStore;
|
|
project: IProjectStore;
|
|
|
|
constructor() {
|
|
this.user = new UserStore(this);
|
|
this.theme = new ThemeStore(this);
|
|
this.issue = new IssueStore(this);
|
|
this.project = new ProjectStore(this);
|
|
}
|
|
}
|