chore: format files using prettier (#7364)

* chore: format files using prettier

* chore: api server files formatted
This commit is contained in:
sriram veeraghanta 2025-07-08 20:41:11 +05:30 committed by GitHub
parent 0225d806cc
commit 6ce700fd5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
149 changed files with 1518 additions and 919 deletions

View file

@ -96,7 +96,6 @@ export const checkIfArraysHaveSameElements = (arr1: any[] | null, arr2: any[] |
return arr1.length === arr2.length && arr1.every((e) => arr2.includes(e));
};
type GroupedItems<T> = { [key: string]: T[] };
/**

View file

@ -1,7 +1,7 @@
// plane imports
import { EStartOfTheWeek, ICalendarDate, ICalendarPayload } from "@plane/types";
// local imports
import { getWeekNumberOfDate, renderFormattedPayloadDate } from "./datetime";
import { getWeekNumberOfDate, renderFormattedPayloadDate } from "./datetime";
/**
* @returns {ICalendarPayload} calendar payload to render the calendar
@ -66,8 +66,9 @@ export const getOrderedDays = <T>(
items: T[],
getDayIndex: (item: T) => number,
startOfWeek: EStartOfTheWeek = EStartOfTheWeek.SUNDAY
): T[] => [...items].sort((a, b) => {
): T[] =>
[...items].sort((a, b) => {
const dayA = (7 + getDayIndex(a) - startOfWeek) % 7;
const dayB = (7 + getDayIndex(b) - startOfWeek) % 7;
return dayA - dayB;
})
});

View file

@ -6,8 +6,8 @@ import uniqBy from "lodash/uniqBy";
// plane imports
import { ICycle, TCycleFilters } from "@plane/types";
// local imports
import { findTotalDaysInRange, generateDateArray, getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
import { findTotalDaysInRange, generateDateArray, getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
/**
* Orders cycles based on their status

View file

@ -2,8 +2,8 @@ import sortBy from "lodash/sortBy";
// plane imports
import { IModule, TModuleDisplayFilters, TModuleFilters, TModuleOrderByOptions } from "@plane/types";
// local imports
import { getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
import { getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
/**
* @description orders modules based on their status

View file

@ -2,8 +2,8 @@ import sortBy from "lodash/sortBy";
// plane imports
import { TPage, TPageFilterProps, TPageFiltersSortBy, TPageFiltersSortKey, TPageNavigationTabs } from "@plane/types";
// local imports
import { getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
import { getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
/**
* @description filters pages based on the page type
@ -84,4 +84,3 @@ export const getPageName = (name: string | undefined) => {
if (!name || name.trim() === "") return "Untitled";
return name;
};

View file

@ -4,7 +4,7 @@ import orderBy from "lodash/orderBy";
import { SPACE_BASE_PATH, SPACE_BASE_URL } from "@plane/constants";
import { IProjectView, TViewFilterProps, TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
// local imports
import { getDate } from "./datetime";
import { getDate } from "./datetime";
import { satisfiesDateFilter } from "./filter";
/**

View file

@ -319,7 +319,6 @@ export const copyTextToClipboard = async (text: string): Promise<void> => {
await navigator.clipboard.writeText(text);
};
/**
* @description Joins URL path segments properly, removing duplicate slashes using URL encoding
* @param {...string} segments - URL path segments to join
@ -371,4 +370,4 @@ export const joinUrlPath = (...segments: string[]): string => {
const pathParts = joined.split("/").filter((part) => part !== "");
return pathParts.length > 0 ? `/${pathParts.join("/")}` : "";
}
};
};

View file

@ -33,7 +33,6 @@ export const convertWorkItemDataToSearchResponse = (
workspace__slug: workspaceSlug,
});
export function getChangedIssuefields(formData: Partial<TIssue>, dirtyFields: { [key: string]: boolean | undefined }) {
const changedFields = {};