forked from github/plane
6eb0bf4785
* feat: add mentions store to the space project * fix: added mentions highlights in read only comment cards * feat: added mention highlights in richtexteditor in space app
27 lines
826 B
TypeScript
27 lines
826 B
TypeScript
// mobx lite
|
|
import { enableStaticRendering } from "mobx-react-lite";
|
|
// store imports
|
|
import UserStore from "./user";
|
|
import IssueStore, { IIssueStore } from "./issue";
|
|
import ProjectStore, { IProjectStore } from "./project";
|
|
import IssueDetailStore, { IIssueDetailStore } from "./issue_details";
|
|
import { IMentionsStore, MentionsStore } from "./mentions.store";
|
|
|
|
enableStaticRendering(typeof window === "undefined");
|
|
|
|
export class RootStore {
|
|
user: UserStore;
|
|
issue: IIssueStore;
|
|
issueDetails: IIssueDetailStore;
|
|
project: IProjectStore;
|
|
mentionsStore: IMentionsStore;
|
|
|
|
constructor() {
|
|
this.user = new UserStore(this);
|
|
this.issue = new IssueStore(this);
|
|
this.project = new ProjectStore(this);
|
|
this.issueDetails = new IssueDetailStore(this);
|
|
this.mentionsStore = new MentionsStore(this);
|
|
}
|
|
}
|