mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* fix: leave project mutation (#5175) * [WEB-1982] chore: sidebar navigation item refactor (#5184) * chore: sidebar navigation item refactor * chore: module and cycle sidebar padding adjustment * chore: issue load more text color updated (#5174) * chore: add missing headings to the rich text editor (#5135) * [WEB-1255] chore: Required Spaces refactor (#5177) * Changes required to enable Publish Views * default views to not found page * refactor exports * remove uncessary view service * fix review comments --------- Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Co-authored-by: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Co-authored-by: rahulramesha <71900764+rahulramesha@users.noreply.github.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
62 lines
2.1 KiB
TypeScript
62 lines
2.1 KiB
TypeScript
import { TPublishViewSettings } from "@plane/types";
|
|
import { EViewAccess } from "@/constants/views";
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
import { ViewService as CoreViewService } from "@/services/view.service";
|
|
|
|
export class ViewService extends CoreViewService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async updateViewAccess(workspaceSlug: string, projectId: string, viewId: string, access: EViewAccess) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async lockView(workspaceSlug: string, projectId: string, viewId: string) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async unLockView(workspaceSlug: string, projectId: string, viewId: string) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async getPublishDetails(workspaceSlug: string, projectId: string, viewId: string): Promise<any> {
|
|
return Promise.resolve({});
|
|
}
|
|
|
|
async publishView(
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
workspaceSlug: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
projectId: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
viewId: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
data: TPublishViewSettings
|
|
): Promise<any> {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
async updatePublishedView(
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
workspaceSlug: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
projectId: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
viewId: string,
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
data: Partial<TPublishViewSettings>
|
|
): Promise<void> {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async unPublishView(workspaceSlug: string, projectId: string, viewId: string): Promise<void> {
|
|
return Promise.resolve();
|
|
}
|
|
}
|