build: 引入 ESLint 防回潮基建 + 清理存量未使用 import
This commit is contained in:
@@ -26,15 +26,8 @@ import {
|
||||
} from "@ant-design/icons";
|
||||
import {
|
||||
ArrowsCounterClockwise,
|
||||
Fire,
|
||||
FrameCorners,
|
||||
Gift,
|
||||
MagicWand,
|
||||
Mountains,
|
||||
PaperPlaneRight,
|
||||
ShoppingBag,
|
||||
User,
|
||||
VideoCamera,
|
||||
} from "@phosphor-icons/react";
|
||||
import { Fragment, useEffect, useMemo, useRef, useState, type CSSProperties, type ChangeEvent, type DragEvent, type KeyboardEvent as ReactKeyboardEvent, type MouseEvent as ReactMouseEvent, type PointerEvent as ReactPointerEvent, type ReactNode } from "react";
|
||||
import { createPortal } from "react-dom";
|
||||
@@ -58,43 +51,25 @@ import EcommerceCopywritingPanel from "./panels/EcommerceCopywritingPanel";
|
||||
import { ecommerceOssScopes, saveUnifiedEcommerceGenerationRecord, deleteEcommerceGenerationRecord } from "./ecommerceGenerationPersistence";
|
||||
import { downloadResultAsset } from "../workbench/workbenchDownload";
|
||||
import {
|
||||
appendEnglish,
|
||||
defaultCloneOutput,
|
||||
defaultEcommercePlatform,
|
||||
defaultMarketLanguageOption,
|
||||
defaultPlatformSpec,
|
||||
defaultProductSetOutput,
|
||||
domesticPlatformLabels,
|
||||
domesticPlatformLanguages,
|
||||
formatUploadedImageRatio,
|
||||
getMarketLanguageOptions,
|
||||
getPlatformDefaultLanguage,
|
||||
getPlatformDefaultRatio,
|
||||
getPlatformLanguageOptions,
|
||||
getPlatformRatioGroup,
|
||||
getPlatformRatioOptions,
|
||||
getPlatformSpec,
|
||||
getUniqueRatioOptions,
|
||||
isDomesticPlatform,
|
||||
languageAliases,
|
||||
legacyPlatformAliases,
|
||||
marketLanguageOptions,
|
||||
marketOptions,
|
||||
normalizeLanguage,
|
||||
normalizeLanguageForPlatform,
|
||||
normalizeMarket,
|
||||
normalizePlatform,
|
||||
normalizeRatioForPlatform,
|
||||
platformOptions,
|
||||
platformSpecOptions,
|
||||
uniqueLanguages,
|
||||
} from "./utils/platformRules";
|
||||
import type {
|
||||
CloneOutputKey,
|
||||
PlatformRatioModeKey,
|
||||
ProductSetOutputKey,
|
||||
} from "./utils/platformRules";
|
||||
import type { EcommercePlatformSpec, PlatformRatioGroup } from "./utils/platformRules";
|
||||
import {
|
||||
buildHistoryTurnFromRecord,
|
||||
cloneLatestSettingStorageKey,
|
||||
@@ -102,15 +77,9 @@ import {
|
||||
defaultCloneSetCounts,
|
||||
ecommerceHistoryStorageKey,
|
||||
getTurnResults,
|
||||
isCloneImageItem,
|
||||
isCloneResult,
|
||||
isCloneSavedSetting,
|
||||
isEcommerceHistoryRecord,
|
||||
normalizeEcommerceHistoryRecord,
|
||||
normalizeEcommerceHistoryTurn,
|
||||
readCloneLatestSetting,
|
||||
readEcommerceHistoryRecords,
|
||||
removeFilePayloadFromImages,
|
||||
writeCloneLatestSetting,
|
||||
writeEcommerceHistoryRecords,
|
||||
} from "./utils/clonePersistence";
|
||||
@@ -275,18 +244,13 @@ import {
|
||||
rgbToHex,
|
||||
} from "./utils/colorUtils";
|
||||
import {
|
||||
formatAspectRatio,
|
||||
formatRatioDisplayValue,
|
||||
getQuickSetRatioValue,
|
||||
getRatioDisplayParts,
|
||||
greatestCommonDivisor,
|
||||
normalizeRatioForApi,
|
||||
normalizeRatioToken,
|
||||
parseRatioToAspectCss,
|
||||
quickSetRatioOptions,
|
||||
supportedImageApiRatios,
|
||||
toSupportedImageApiRatio,
|
||||
type SupportedImageApiRatio,
|
||||
} from "./utils/ratioUtils";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user