mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
// mobx lite
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
// store imports
|
|
import UserStore from "./user";
|
|
import ThemeStore from "./theme";
|
|
import ProjectStore, { IProjectStore } from "./project";
|
|
import ProjectPublishStore, { IProjectPublishStore } from "./project-publish";
|
|
import IssuesStore from "./issues";
|
|
// issues views and filters
|
|
import IssueFilterStore from "./issue-views/issue_filters";
|
|
import IssueViewStore from "./issue-views/Issues";
|
|
import IssueViewDetailStore from "./issue-views/issue_detail";
|
|
import IssueKanBanViewStore from "./issue-views/kanban-view";
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
export class RootStore {
|
|
user;
|
|
theme;
|
|
project: IProjectStore;
|
|
projectPublish: IProjectPublishStore;
|
|
issues: IssuesStore;
|
|
issueFilters: IssueFilterStore;
|
|
issueView: IssueViewStore;
|
|
issueDetail: IssueViewDetailStore;
|
|
issueKanBanView: IssueKanBanViewStore;
|
|
|
|
constructor() {
|
|
this.user = new UserStore(this);
|
|
this.theme = new ThemeStore(this);
|
|
this.project = new ProjectStore(this);
|
|
this.projectPublish = new ProjectPublishStore(this);
|
|
this.issues = new IssuesStore(this);
|
|
this.issueFilters = new IssueFilterStore(this);
|
|
this.issueView = new IssueViewStore(this);
|
|
this.issueDetail = new IssueViewDetailStore(this);
|
|
this.issueKanBanView = new IssueKanBanViewStore(this);
|
|
}
|
|
}
|