fix: update root store import in space app. (#4883)

This commit is contained in:
Prateek Shourya 2024-06-20 13:32:42 +05:30 committed by GitHub
parent 418ca92f36
commit 268c35a584
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 28 additions and 29 deletions

View file

@ -2,10 +2,10 @@ import set from "lodash/set";
import { observable, action, makeObservable, runInAction } from "mobx";
// types
import { IInstance, IInstanceConfig } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import { InstanceService } from "@/services/instance.service";
// store
import { CoreRootStore } from "@/store/root.store";
type TError = {
status: string;
@ -35,7 +35,7 @@ export class InstanceStore implements IInstanceStore {
// services
instanceService;
constructor(private store: RootStore) {
constructor(private store: CoreRootStore) {
makeObservable(this, {
// observable
isLoading: observable.ref,

View file

@ -1,9 +1,9 @@
import { makeObservable, observable, action, runInAction } from "mobx";
import { v4 as uuidv4 } from "uuid";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import IssueService from "@/services/issue.service";
// store
import { CoreRootStore } from "@/store/root.store";
// types
import { IIssue, IPeekMode, IVote } from "@/types/issue";
@ -45,11 +45,11 @@ export class IssueDetailStore implements IIssueDetailStore {
[key: string]: IIssue;
} = {};
// root store
rootStore: RootStore;
rootStore: CoreRootStore;
// services
issueService: IssueService;
constructor(_rootStore: RootStore) {
constructor(_rootStore: CoreRootStore) {
makeObservable(this, {
loader: observable.ref,
error: observable.ref,

View file

@ -5,8 +5,8 @@ import { action, makeObservable, observable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// store
import { CoreRootStore } from "@/store/root.store";
// types
import {
TIssueLayoutOptions,
@ -47,7 +47,7 @@ export class IssueFilterStore implements IIssueFilterStore {
};
filters: { [anchor: string]: TIssueFilters } | undefined = undefined;
constructor(private store: RootStore) {
constructor(private store: CoreRootStore) {
makeObservable(this, {
// observables
layoutOptions: observable,

View file

@ -2,10 +2,10 @@ import { observable, action, makeObservable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
// types
import { IStateLite } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import IssueService from "@/services/issue.service";
// store
import { CoreRootStore } from "@/store/root.store";
// types
import { IIssue, IIssueLabel } from "@/types/issue";
@ -39,11 +39,11 @@ export class IssueStore implements IIssueStore {
filteredLabels: string[] = [];
filteredPriorities: string[] = [];
// root store
rootStore: RootStore;
rootStore: CoreRootStore;
// services
issueService: IssueService;
constructor(_rootStore: RootStore) {
constructor(_rootStore: CoreRootStore) {
makeObservable(this, {
loader: observable.ref,
error: observable,

View file

@ -1,8 +1,8 @@
import { computed, makeObservable } from "mobx";
// editor
import { IMentionHighlight } from "@plane/lite-text-editor";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// store
import { CoreRootStore } from "@/store/root.store";
export interface IMentionsStore {
// mentionSuggestions: IMentionSuggestion[];
@ -13,7 +13,7 @@ export class MentionsStore implements IMentionsStore {
// root store
rootStore;
constructor(_rootStore: RootStore) {
constructor(_rootStore: CoreRootStore) {
// rootStore
this.rootStore = _rootStore;

View file

@ -2,10 +2,10 @@ import set from "lodash/set";
import { action, makeObservable, observable, runInAction } from "mobx";
// types
import { TUserProfile } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import { UserService } from "@/services/user.service";
// store
import { CoreRootStore } from "@/store/root.store";
type TError = {
status: string;
@ -59,7 +59,7 @@ export class ProfileStore implements IProfileStore {
// services
userService: UserService;
constructor(public store: RootStore) {
constructor(public store: CoreRootStore) {
makeObservable(this, {
// observables
isLoading: observable.ref,

View file

@ -7,8 +7,8 @@ import {
TProjectPublishSettings,
TProjectPublishViewProps,
} from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// store
import { CoreRootStore } from "../root.store";
export interface IPublishStore extends TProjectPublishSettings {
// computed
@ -39,7 +39,7 @@ export class PublishStore implements IPublishStore {
workspace_detail: IWorkspaceLite | undefined;
constructor(
private store: RootStore,
private store: CoreRootStore,
publishSettings: TProjectPublishSettings
) {
this.anchor = publishSettings.anchor;

View file

@ -2,12 +2,11 @@ import set from "lodash/set";
import { makeObservable, observable, runInAction, action } from "mobx";
// types
import { TProjectPublishSettings } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import PublishService from "@/services/publish.service";
// store
import { PublishStore } from "@/store/publish/publish.store";
import { CoreRootStore } from "@/store/root.store";
export interface IPublishListStore {
// observables
@ -22,7 +21,7 @@ export class PublishListStore implements IPublishListStore {
// service
publishService;
constructor(private rootStore: RootStore) {
constructor(private rootStore: CoreRootStore) {
makeObservable(this, {
// observables
publishMap: observable,

View file

@ -2,13 +2,13 @@ import set from "lodash/set";
import { action, computed, makeObservable, observable, runInAction } from "mobx";
// types
import { IUser } from "@plane/types";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";
// services
import { AuthService } from "@/services/auth.service";
import { UserService } from "@/services/user.service";
// store types
import { ProfileStore, IProfileStore } from "@/store/profile.store";
// store
import { CoreRootStore } from "@/store/root.store";
// types
import { ActorDetail } from "@/types/issue";
@ -47,7 +47,7 @@ export class UserStore implements IUserStore {
userService: UserService;
authService: AuthService;
constructor(private store: RootStore) {
constructor(private store: CoreRootStore) {
// stores
this.profile = new ProfileStore(store);
// service