mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: making changes
This commit is contained in:
parent
d0688e5287
commit
2c043b24de
@ -1,6 +1,6 @@
|
|||||||
import { observable, action, makeObservable, runInAction } from "mobx";
|
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||||
// types
|
// types
|
||||||
import { RootStore } from "./root";
|
import { RootStore } from "../root.store";
|
||||||
import { IAppConfig } from "types/app";
|
import { IAppConfig } from "types/app";
|
||||||
// services
|
// services
|
||||||
import { AppConfigService } from "services/app_config.service";
|
import { AppConfigService } from "services/app_config.service";
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import { RootStore } from "../root.store";
|
||||||
|
|
||||||
export class AppRootStore {
|
export class AppRootStore {
|
||||||
config;
|
config;
|
||||||
commandPalette;
|
commandPalette;
|
||||||
@ -5,11 +7,11 @@ export class AppRootStore {
|
|||||||
instance;
|
instance;
|
||||||
theme;
|
theme;
|
||||||
|
|
||||||
constructor() {
|
constructor(rootStore: RootStore) {
|
||||||
this.config = new ConfigStore();
|
this.config = new ConfigStore(rootStore);
|
||||||
this.commandPalette = new CommandPaletteStore();
|
this.commandPalette = new CommandPaletteStore(rootStore);
|
||||||
this.eventTracker = new EventTrackerStore();
|
this.eventTracker = new EventTrackerStore(rootStore);
|
||||||
this.instance = new InstanceStore();
|
this.instance = new InstanceStore(rootStore);
|
||||||
this.theme = new ThemeStore();
|
this.theme = new ThemeStore(rootStore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import { AppRootStore } from "./application";
|
|||||||
enableStaticRendering(typeof window === "undefined");
|
enableStaticRendering(typeof window === "undefined");
|
||||||
|
|
||||||
export class RootStore {
|
export class RootStore {
|
||||||
app;
|
app: AppRootStore;
|
||||||
user;
|
user;
|
||||||
workspace;
|
workspace;
|
||||||
project;
|
project;
|
||||||
|
Loading…
Reference in New Issue
Block a user