2023-12-14 11:56:16 +00:00
|
|
|
import { IProjectStore, ProjectStore } from "./project.store";
|
2023-12-12 10:20:14 +00:00
|
|
|
import { IProjectPublishStore, ProjectPublishStore } from "./project-publish.store";
|
2023-12-11 14:54:46 +00:00
|
|
|
import { RootStore } from "store/root.store";
|
|
|
|
|
2023-12-12 10:20:14 +00:00
|
|
|
export interface IProjectRootStore {
|
2023-12-14 11:56:16 +00:00
|
|
|
project: IProjectStore;
|
2023-12-12 10:20:14 +00:00
|
|
|
publish: IProjectPublishStore;
|
|
|
|
}
|
|
|
|
|
2023-12-11 14:54:46 +00:00
|
|
|
export class ProjectRootStore {
|
2023-12-14 11:56:16 +00:00
|
|
|
project: IProjectStore;
|
2023-12-12 10:20:14 +00:00
|
|
|
publish: IProjectPublishStore;
|
2023-12-11 14:54:46 +00:00
|
|
|
|
|
|
|
constructor(_root: RootStore) {
|
2023-12-14 11:56:16 +00:00
|
|
|
this.project = new ProjectStore(_root);
|
2023-12-11 14:54:46 +00:00
|
|
|
this.publish = new ProjectPublishStore(this);
|
|
|
|
}
|
|
|
|
}
|