mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 07:09:34 +01:00
* [WEB-5134] refactor: update `web` ESLint configuration and refactor imports to use type imports - Enhanced ESLint configuration by adding new rules for import consistency and type imports. - Refactored multiple files to replace regular imports with type imports for better clarity and performance. - Ensured consistent use of type imports across the application to align with TypeScript best practices. * refactor: standardize type imports across components - Updated multiple files to replace regular imports with type imports for improved clarity and consistency. - Ensured adherence to TypeScript best practices in the rich filters and issue layouts components.
119 lines
1.9 KiB
TypeScript
119 lines
1.9 KiB
TypeScript
import type { TCalendarLayouts } from "@plane/types";
|
|
import { EStartOfTheWeek } from "@plane/types";
|
|
|
|
export const MONTHS_LIST: {
|
|
[monthNumber: number]: {
|
|
shortTitle: string;
|
|
title: string;
|
|
};
|
|
} = {
|
|
1: {
|
|
shortTitle: "Jan",
|
|
title: "January",
|
|
},
|
|
2: {
|
|
shortTitle: "Feb",
|
|
title: "February",
|
|
},
|
|
3: {
|
|
shortTitle: "Mar",
|
|
title: "March",
|
|
},
|
|
4: {
|
|
shortTitle: "Apr",
|
|
title: "April",
|
|
},
|
|
5: {
|
|
shortTitle: "May",
|
|
title: "May",
|
|
},
|
|
6: {
|
|
shortTitle: "Jun",
|
|
title: "June",
|
|
},
|
|
7: {
|
|
shortTitle: "Jul",
|
|
title: "July",
|
|
},
|
|
8: {
|
|
shortTitle: "Aug",
|
|
title: "August",
|
|
},
|
|
9: {
|
|
shortTitle: "Sep",
|
|
title: "September",
|
|
},
|
|
10: {
|
|
shortTitle: "Oct",
|
|
title: "October",
|
|
},
|
|
11: {
|
|
shortTitle: "Nov",
|
|
title: "November",
|
|
},
|
|
12: {
|
|
shortTitle: "Dec",
|
|
title: "December",
|
|
},
|
|
};
|
|
|
|
export const DAYS_LIST: {
|
|
[dayIndex: number]: {
|
|
shortTitle: string;
|
|
title: string;
|
|
value: EStartOfTheWeek;
|
|
};
|
|
} = {
|
|
1: {
|
|
shortTitle: "Sun",
|
|
title: "Sunday",
|
|
value: EStartOfTheWeek.SUNDAY,
|
|
},
|
|
2: {
|
|
shortTitle: "Mon",
|
|
title: "Monday",
|
|
value: EStartOfTheWeek.MONDAY,
|
|
},
|
|
3: {
|
|
shortTitle: "Tue",
|
|
title: "Tuesday",
|
|
value: EStartOfTheWeek.TUESDAY,
|
|
},
|
|
4: {
|
|
shortTitle: "Wed",
|
|
title: "Wednesday",
|
|
value: EStartOfTheWeek.WEDNESDAY,
|
|
},
|
|
5: {
|
|
shortTitle: "Thu",
|
|
title: "Thursday",
|
|
value: EStartOfTheWeek.THURSDAY,
|
|
},
|
|
6: {
|
|
shortTitle: "Fri",
|
|
title: "Friday",
|
|
value: EStartOfTheWeek.FRIDAY,
|
|
},
|
|
7: {
|
|
shortTitle: "Sat",
|
|
title: "Saturday",
|
|
value: EStartOfTheWeek.SATURDAY,
|
|
},
|
|
};
|
|
|
|
export const CALENDAR_LAYOUTS: {
|
|
[layout in TCalendarLayouts]: {
|
|
key: TCalendarLayouts;
|
|
title: string;
|
|
};
|
|
} = {
|
|
month: {
|
|
key: "month",
|
|
title: "Month layout",
|
|
},
|
|
week: {
|
|
key: "week",
|
|
title: "Week layout",
|
|
},
|
|
};
|