2023-08-11 11:48:33 +00:00
|
|
|
// mobx lite
|
|
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
|
|
// store imports
|
|
|
|
import UserStore from "./user";
|
2023-09-01 11:12:30 +00:00
|
|
|
import IssueStore, { IIssueStore } from "./issue";
|
|
|
|
import ProjectStore, { IProjectStore } from "./project";
|
|
|
|
import IssueDetailStore, { IIssueDetailStore } from "./issue_details";
|
2023-11-06 15:12:24 +00:00
|
|
|
import { IMentionsStore, MentionsStore } from "./mentions.store";
|
2023-08-11 11:48:33 +00:00
|
|
|
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
|
|
|
|
export class RootStore {
|
2023-09-01 11:12:30 +00:00
|
|
|
user: UserStore;
|
2023-08-11 11:48:33 +00:00
|
|
|
issue: IIssueStore;
|
2023-09-01 11:12:30 +00:00
|
|
|
issueDetails: IIssueDetailStore;
|
2023-08-11 11:48:33 +00:00
|
|
|
project: IProjectStore;
|
2023-11-06 15:12:24 +00:00
|
|
|
mentionsStore: IMentionsStore;
|
2023-08-11 11:48:33 +00:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.user = new UserStore(this);
|
|
|
|
this.issue = new IssueStore(this);
|
|
|
|
this.project = new ProjectStore(this);
|
2023-09-01 11:12:30 +00:00
|
|
|
this.issueDetails = new IssueDetailStore(this);
|
2023-11-06 15:12:24 +00:00
|
|
|
this.mentionsStore = new MentionsStore(this);
|
2023-08-11 11:48:33 +00:00
|
|
|
}
|
|
|
|
}
|