From a181384ce5dcc5b1749a5c94cd2beea0b1e6c224 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:45:27 +0800 Subject: [PATCH] refactor: delete templateLibrary.ts (#1899 #1900) --- .../templates/constants/templateLibrary.ts | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 apps/web/src/pages/templates/constants/templateLibrary.ts diff --git a/apps/web/src/pages/templates/constants/templateLibrary.ts b/apps/web/src/pages/templates/constants/templateLibrary.ts deleted file mode 100644 index 5206045f6..000000000 --- a/apps/web/src/pages/templates/constants/templateLibrary.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { EditTemplateType } from "../types/templateLibrary" - -export const TEMPLATE_TYPES: Array<{ - type: EditTemplateType | "全部" - label: string - icon: string - color: string -}> = [ - { type: "全部", label: "全部", icon: "📋", color: "#6366f1" }, - { type: "口播", label: "口播", icon: "🎙️", color: "#6366f1" }, - { type: "种草", label: "种草", icon: "🌱", color: "#10b981" }, - { type: "产品", label: "产品", icon: "📦", color: "#0ea5e9" }, - { type: "品牌", label: "品牌", icon: "🏷️", color: "#f59e0b" }, - { type: "混剪", label: "混剪", icon: "🎬", color: "#8b5cf6" }, - { type: "Vlog", label: "Vlog", icon: "📹", color: "#ec4899" }, -] - -export const MATERIAL_TYPE_LABELS: Record = { - video: "视频", - image: "图片", - audio: "音频", - voiceover: "配音", - subtitle: "字幕", - null: "不限", -} - -export const DEFAULT_PAGE_SIZE = 12 -export const CATEGORY_GRADIENT_MAP: Record = { - 口播: "linear-gradient(135deg, #6366f1, #8b5cf6)", - 种草: "linear-gradient(135deg, #10b981, #059669)", - 产品: "linear-gradient(135deg, #0ea5e9, #0284c7)", - 品牌: "linear-gradient(135deg, #f59e0b, #d97706)", - 混剪: "linear-gradient(135deg, #8b5cf6, #6d28d9)", - Vlog: "linear-gradient(135deg, #ec4899, #db2777)", -} -export const DEFAULT_GRADIENT = "linear-gradient(135deg, #6366f1, #8b5cf6)"