mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix build errors
This commit is contained in:
parent
97ca2a4f26
commit
540e78deb7
@ -132,7 +132,7 @@ export class ModuleService extends APIService {
|
|||||||
workspaceSlug: string,
|
workspaceSlug: string,
|
||||||
projectId: string,
|
projectId: string,
|
||||||
moduleId: string,
|
moduleId: string,
|
||||||
data: ModuleLink
|
data: Partial<ModuleLink>
|
||||||
): Promise<ILinkDetails> {
|
): Promise<ILinkDetails> {
|
||||||
return this.post(`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-links/`, data)
|
return this.post(`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-links/`, data)
|
||||||
.then((response) => response?.data)
|
.then((response) => response?.data)
|
||||||
@ -146,7 +146,7 @@ export class ModuleService extends APIService {
|
|||||||
projectId: string,
|
projectId: string,
|
||||||
moduleId: string,
|
moduleId: string,
|
||||||
linkId: string,
|
linkId: string,
|
||||||
data: ModuleLink
|
data: Partial<ModuleLink>
|
||||||
): Promise<ILinkDetails> {
|
): Promise<ILinkDetails> {
|
||||||
return this.patch(
|
return this.patch(
|
||||||
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-links/${linkId}/`,
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-links/${linkId}/`,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
// types
|
// types
|
||||||
import { ICycle, TCycleView, CycleDateCheckData } from "types";
|
import { ICycle, TCycleView, CycleDateCheckData } from "types";
|
||||||
// mobx
|
// mobx
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { makeObservable, observable, action, runInAction, computed } from "mobx";
|
import { makeObservable, observable, action, runInAction, computed } from "mobx";
|
||||||
import keyBy from "lodash/keyBy";
|
import keyBy from "lodash/keyBy";
|
||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
// services
|
// services
|
||||||
import { IssueLabelService } from "services/issue";
|
import { IssueLabelService } from "services/issue";
|
||||||
// types
|
// types
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
// services
|
// services
|
||||||
import { ProjectService } from "services/project";
|
import { ProjectService } from "services/project";
|
||||||
import { ModuleService } from "services/module.service";
|
import { ModuleService } from "services/module.service";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
import { observable, action, makeObservable, runInAction } from "mobx";
|
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||||
// services
|
// services
|
||||||
import { ViewService } from "services/view.service";
|
import { ViewService } from "services/view.service";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { observable, action, makeObservable, runInAction } from "mobx";
|
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
// types
|
// types
|
||||||
import { ProjectRootStore } from "./";
|
import { ProjectRootStore } from "./";
|
||||||
// services
|
// services
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
import { observable, action, computed, makeObservable, runInAction } from "mobx";
|
import { observable, action, computed, makeObservable, runInAction } from "mobx";
|
||||||
//types
|
//types
|
||||||
import { RootStore } from "../root.store";
|
import { RootStore } from "../root.store";
|
||||||
@ -54,7 +54,7 @@ export class ProjectsStore implements IProjectsStore {
|
|||||||
[workspaceSlug: string]: {
|
[workspaceSlug: string]: {
|
||||||
[projectId: string]: IProject; // projectId: project Info
|
[projectId: string]: IProject; // projectId: project Info
|
||||||
};
|
};
|
||||||
};
|
} = {};
|
||||||
|
|
||||||
// root store
|
// root store
|
||||||
rootStore: RootStore;
|
rootStore: RootStore;
|
||||||
@ -129,7 +129,7 @@ export class ProjectsStore implements IProjectsStore {
|
|||||||
|
|
||||||
get currentProjectDetails() {
|
get currentProjectDetails() {
|
||||||
if (!this.rootStore.app.router.projectId || !this.rootStore.app.router.workspaceSlug) return;
|
if (!this.rootStore.app.router.projectId || !this.rootStore.app.router.workspaceSlug) return;
|
||||||
return this.projectMap[this.rootStore.app.router.workspaceSlug][this.projectId];
|
return this.projectMap[this.rootStore.app.router.workspaceSlug][this.rootStore.app.router.projectId];
|
||||||
}
|
}
|
||||||
|
|
||||||
get joinedProjects() {
|
get joinedProjects() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { makeObservable, observable, computed, action, runInAction } from "mobx";
|
import { makeObservable, observable, computed, action, runInAction } from "mobx";
|
||||||
import groupBy from "lodash/groupBy";
|
import groupBy from "lodash/groupBy";
|
||||||
import keyBy from "lodash/keyBy";
|
import keyBy from "lodash/keyBy";
|
||||||
import { set } from "lodash";
|
import set from "lodash/set";
|
||||||
// store
|
// store
|
||||||
import { RootStore } from "./root.store";
|
import { RootStore } from "./root.store";
|
||||||
// types
|
// types
|
||||||
|
@ -87,33 +87,33 @@ export class UserMembershipStore implements IUserMembershipStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get currentWorkspaceMemberInfo() {
|
get currentWorkspaceMemberInfo() {
|
||||||
if (!this.router.query?.workspaceSlug) return;
|
if (!this.router.workspaceSlug) return;
|
||||||
return this.workspaceMemberInfo[this.router.query?.workspaceSlug];
|
return this.workspaceMemberInfo[this.router.workspaceSlug];
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentWorkspaceRole() {
|
get currentWorkspaceRole() {
|
||||||
if (!this.router.query?.workspaceSlug) return;
|
if (!this.router.workspaceSlug) return;
|
||||||
return this.workspaceMemberInfo[this.router.query?.workspaceSlug]?.role;
|
return this.workspaceMemberInfo[this.router.workspaceSlug]?.role;
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentProjectMemberInfo() {
|
get currentProjectMemberInfo() {
|
||||||
if (!this.router.query?.projectId) return;
|
if (!this.router.projectId) return;
|
||||||
return this.projectMemberInfo[this.router.query?.projectId];
|
return this.projectMemberInfo[this.router.projectId];
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentProjectRole() {
|
get currentProjectRole() {
|
||||||
if (!this.router.query?.projectId) return;
|
if (!this.router.projectId) return;
|
||||||
return this.projectMemberInfo[this.router.query?.projectId]?.role;
|
return this.projectMemberInfo[this.router.projectId]?.role;
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasPermissionToCurrentWorkspace() {
|
get hasPermissionToCurrentWorkspace() {
|
||||||
if (!this.router.query?.workspaceSlug) return;
|
if (!this.router.workspaceSlug) return;
|
||||||
return this.hasPermissionToWorkspace[this.router.query?.workspaceSlug];
|
return this.hasPermissionToWorkspace[this.router.workspaceSlug];
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasPermissionToCurrentProject() {
|
get hasPermissionToCurrentProject() {
|
||||||
if (!this.router.query?.projectId) return;
|
if (!this.router.projectId) return;
|
||||||
return this.hasPermissionToProject[this.router.query?.projectId];
|
return this.hasPermissionToProject[this.router.projectId];
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchUserWorkspaceInfo = async (workspaceSlug: string) => {
|
fetchUserWorkspaceInfo = async (workspaceSlug: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user