fix: source map warning during build (#8148)

* [WEB-5473] fix: source map errors

* [WEB-5473] chore: run codemod

* fix: build errors in editor

---------

Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Aaron 2025-11-21 15:13:52 +07:00 committed by GitHub
parent 9611cd1e73
commit 2e15e4f786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
956 changed files with 778 additions and 2267 deletions

View file

@ -1,5 +1,3 @@
"use client";
import { redirect } from "react-router";
// plane imports
import { SitesProjectPublishService } from "@plane/services";

View file

@ -1,4 +1,3 @@
"use client";
import React from "react";
// Minimal shim so code using next/image compiles under React Router + Vite

View file

@ -1,4 +1,3 @@
"use client";
import React from "react";
import { Link as RRLink } from "react-router";
import { ensureTrailingSlash } from "./helper";

View file

@ -1,5 +1,3 @@
"use client";
import { useMemo } from "react";
import { useLocation, useNavigate, useParams as useParamsRR, useSearchParams as useSearchParamsRR } from "react-router";
import { ensureTrailingSlash } from "./helper";

View file

@ -1,4 +1,3 @@
"use client";
// ui
import { Button } from "@plane/propel/button";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { useParams, useSearchParams } from "next/navigation";
import useSWR from "swr";

View file

@ -1,4 +1,3 @@
"use client";
// assets
import SomethingWentWrongImage from "@/app/assets/something-went-wrong.svg?url";

View file

@ -1,4 +1,3 @@
"use client";
import { useEffect } from "react";
import { observer } from "mobx-react";
import { useSearchParams, useRouter } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import { ThemeProvider } from "next-themes";
// components
import { TranslationProvider } from "@plane/i18n";

View file

@ -1,5 +1,3 @@
"use client";
import { Info } from "lucide-react";
import { CloseIcon } from "@plane/propel/icons";
// helpers

View file

@ -1,5 +1,3 @@
"use client";
// helpers
import { EAuthModes } from "@/types/auth";

View file

@ -1,5 +1,3 @@
"use client";
import { useEffect, useState } from "react";
import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import type { FormEvent } from "react";
import { useMemo, useRef, useState } from "react";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useEffect, useMemo, useRef, useState } from "react";
import { observer } from "mobx-react";
import { Eye, EyeOff, XCircle } from "lucide-react";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useEffect, useState } from "react";
import { CircleCheck, XCircle } from "lucide-react";
// plane imports

View file

@ -1,5 +1,3 @@
"use client";
import Link from "next/link";
type Props = {

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { PlaneLockup } from "@plane/propel/icons";
// assets

View file

@ -1,5 +1,3 @@
"use client";
import { useTheme } from "next-themes";
// assets
import LogoSpinnerDark from "@/app/assets/images/logo-spinner-dark.gif?url";

View file

@ -1,5 +1,3 @@
"use client";
import { WEBSITE_URL } from "@plane/constants";
// assets
import { PlaneLogo } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useEffect, useState, useCallback } from "react";
// plane imports
import { TOOLBAR_ITEMS } from "@plane/editor";

View file

@ -1,5 +1,3 @@
"use client";
import { useTheme } from "next-themes";
import { Button } from "@plane/propel/button";
// assets

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { useTranslation } from "@plane/i18n";
import { CloseIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { CloseIcon } from "@plane/propel/icons";
// types
import type { IIssueLabel } from "@/types/issue";

View file

@ -1,5 +1,3 @@
"use client";
import { CloseIcon, PriorityIcon } from "@plane/propel/icons";
import type { TIssuePriorities } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { useCallback } from "react";
import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane imports
import { EIconSize } from "@plane/constants";

View file

@ -1,5 +1,3 @@
"use client";
import React, { Fragment, useState } from "react";
import type { Placement } from "@popperjs/core";
import { usePopper } from "react-popper";

View file

@ -1,4 +1,3 @@
"use client";
import React from "react";
// icons
import { ChevronDownIcon, ChevronUpIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import React from "react";
// lucide icons
import { Check } from "lucide-react";

View file

@ -1,4 +1,3 @@
"use client";
import React, { useState } from "react";
// plane imports
import { Loader } from "@plane/ui";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useState } from "react";
import { observer } from "mobx-react";
// plane imports

View file

@ -1,5 +1,3 @@
"use client";
import { useCallback } from "react";
import { cloneDeep } from "lodash-es";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useState } from "react";
import { observer } from "mobx-react";
import { Search } from "lucide-react";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useState } from "react";
import { observer } from "mobx-react";
// ui

View file

@ -1,5 +1,3 @@
"use client";
import { useCallback, useMemo, useRef } from "react";
import { debounce } from "lodash-es";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import type { MutableRefObject } from "react";
import { observer } from "mobx-react";
import Link from "next/link";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { Circle } from "lucide-react";
// types

View file

@ -1,5 +1,3 @@
"use client";
import type { MutableRefObject } from "react";
import { forwardRef, useCallback, useRef, useState } from "react";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import { useRef } from "react";
import { observer } from "mobx-react";
import Link from "next/link";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { CircleDashed } from "lucide-react";

View file

@ -1,5 +1,3 @@
"use client";
import type { MutableRefObject } from "react";
import { Fragment, forwardRef, useRef, useState } from "react";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { Link, Paperclip } from "lucide-react";
import { ViewsIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane ui
import { CycleIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { DueDatePropertyIcon } from "@plane/propel/icons";
import { Tooltip } from "@plane/propel/tooltip";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { LabelPropertyIcon } from "@plane/propel/icons";
// plane imports

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// icons
import type { LucideIcon } from "lucide-react";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane ui
import { ModuleIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { SignalHigh } from "lucide-react";
import { useTranslation } from "@plane/i18n";
// types

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane ui
import { StateGroupIcon } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { useEffect } from "react";
import { observer } from "mobx-react";
import useSWR from "swr";

View file

@ -1,5 +1,3 @@
"use client";
import { isNil } from "lodash-es";
// types
import { EIconSize, ISSUE_PRIORITIES } from "@plane/constants";

View file

@ -1,5 +1,3 @@
"use client";
import { useEffect } from "react";
import { observer } from "mobx-react";
import { useRouter, useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { useRouter, useSearchParams } from "next/navigation";
// ui

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { ProjectIcon } from "@plane/propel/icons";
// components

View file

@ -1,5 +1,3 @@
"use client";
// next theme
import { useEffect, useState } from "react";
import { observer } from "mobx-react";

View file

@ -1,5 +1,3 @@
"use client";
import { Fragment, useEffect, useState } from "react";
import { observer } from "mobx-react";
import Link from "next/link";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useRef, useState } from "react";
import { observer } from "mobx-react";
import { useForm, Controller } from "react-hook-form";

View file

@ -1,5 +1,3 @@
"use client";
import React, { useMemo, useState } from "react";
import { observer } from "mobx-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane imports
import { Loader } from "@plane/ui";

View file

@ -1,5 +1,3 @@
"use client";
import React from "react";
import { observer } from "mobx-react";
import { Link2, MoveRight } from "lucide-react";

View file

@ -1,5 +1,3 @@
"use client";
import React from "react";
import { observer } from "mobx-react";
import Link from "next/link";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports

View file

@ -1,5 +1,3 @@
"use client";
import { Fragment, useEffect } from "react";
import { observer } from "mobx-react";
import { useRouter, useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
// plane imports
import { Loader } from "@plane/ui";

View file

@ -1,5 +1,3 @@
"use client";
import { useMemo, useState } from "react";
import { observer } from "mobx-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
import { useState } from "react";
import { observer } from "mobx-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation";

View file

@ -1,5 +1,3 @@
"use client";
// images
import Image404 from "@/app/assets/404.svg?url";

View file

@ -1,5 +1,3 @@
"use client";
// components
import { AuthRoot } from "@/components/account/auth-forms";
import { PoweredBy } from "@/components/common/powered-by";

View file

@ -1,5 +1,3 @@
"use client";
import React from "react";
import Link from "next/link";
import { PlaneLockup } from "@plane/propel/icons";

View file

@ -1,5 +1,3 @@
"use client";
import { useEffect, useRef } from "react";
import { BProgress } from "@bprogress/core";
import { useNavigation } from "react-router";

View file

@ -1,5 +1,3 @@
"use client";
import { observer } from "mobx-react";
import Link from "next/link";
import { useTheme } from "next-themes";

View file

@ -1,5 +1,3 @@
"use client";
import { createContext } from "react";
// plane web store
import { RootStore } from "@/plane-web/store/root.store";

View file

@ -1,5 +1,3 @@
"use client";
import { useTheme } from "next-themes";
// plane imports
import { Toast } from "@plane/propel/toast";