[WEB-5027] fix: replace lodash package with lodash-es (#7856)

* fix: replace lodash pacakge with lodash-es

* fix: lint errors

* fix: import fixes
This commit is contained in:
sriram veeraghanta 2025-09-26 17:59:31 +05:30 committed by GitHub
parent c05a5eb5ee
commit bedc1fae1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
199 changed files with 261 additions and 396 deletions

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const CycleModuleBoardLayoutLoader = () => (
<div className="h-full w-full animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const CycleModuleListLayoutLoader = () => (
<div className="h-full overflow-y-auto animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { getRandomInt } from "../utils";
const CalendarDay = () => {

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { Row } from "@plane/ui";
import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants";
import { getRandomLength } from "../utils";

View file

@ -1,5 +1,5 @@
import { forwardRef } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
// plane ui
import { ContentWrapper } from "@plane/ui";
// plane utils

View file

@ -1,5 +1,5 @@
import { Fragment, forwardRef } from "react";
import range from "lodash/range";
import { range } from "lodash-es";
// plane ui
import { Row } from "@plane/ui";
// plane utils

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const MembersLayoutLoader = () => (
<div className="flex gap-5 py-1.5 overflow-x-auto">
{range(5).map((columnIndex) => (

View file

@ -1,5 +1,5 @@
import React from "react";
import range from "lodash/range";
import { range } from "lodash-es";
export const InboxSidebarLoader = () => (
<div className="flex flex-col">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { Row } from "@plane/ui";
import { getRandomLength } from "../utils";

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const NotificationsLoader = () => (
<div className="divide-y divide-custom-border-100 animate-pulse overflow-hidden">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const PagesLoader = () => (
<div className="flex h-full flex-col space-y-5 overflow-hidden p-6">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ProjectsLoader = () => (
<div className="h-full w-full overflow-y-auto p-8 animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { getRandomLength } from "../utils";
export const ActivitySettingsLoader = () => (

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
import { useTranslation } from "@plane/i18n";
export const APITokenSettingsLoader = () => {
const { t } = useTranslation();

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const EmailSettingsLoader = () => (
<div className="mx-auto mt-8 h-full w-full overflow-y-auto px-6 lg:px-20 pb- animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ImportExportSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-200 animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const IntegrationsSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-100 animate-pulse">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const MembersSettingsLoader = () => (
<div className="divide-y-[0.5px] divide-custom-border-100">

View file

@ -1,4 +1,4 @@
import range from "lodash/range";
import { range } from "lodash-es";
export const ViewListLoader = () => (
<div className="flex h-full w-full flex-col animate-pulse">