refactor(icons): 迁移公共模块图标到 lucide-react

- constants/importanceLevels.js: 重要性等级图标
- constants/notificationTypes.js: 通知类型图标
- contexts/NotificationContext.js: 通知上下文图标
- layouts/components/BackToTopButton.js: 返回顶部按钮
- utils/priceFormatters.js: 价格格式化图标
- variables/general.js: 通用变量图标

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-25 12:25:54 +08:00
parent 2207a680b5
commit cab01c2cbc
6 changed files with 71 additions and 81 deletions

View File

@@ -34,17 +34,7 @@ import {
SlackLogo,
SpotifyLogo,
} from "components/Icons/Icons.js";
import { AiOutlineExclamation } from "react-icons/ai";
import {
FaArrowDown,
FaArrowUp,
FaBell,
FaCreditCard,
FaFilePdf,
FaHtml5,
FaShoppingCart,
} from "react-icons/fa";
import { SiDropbox } from "react-icons/si";
import { AlertCircle, ArrowDown, ArrowUp, Bell, CreditCard, FileText, Code, ShoppingCart, Box } from "lucide-react";
export const dashboardTableData = [
{
@@ -93,31 +83,31 @@ export const dashboardTableData = [
export const timelineData = [
{
logo: FaBell,
logo: Bell,
title: "$2400, Design changes",
date: "22 DEC 7:20 PM",
color: "blue.500",
},
{
logo: FaHtml5,
logo: Code,
title: "New order #4219423",
date: "21 DEC 11:21 PM",
color: "orange",
},
{
logo: FaShoppingCart,
logo: ShoppingCart,
title: "Server Payments for April",
date: "21 DEC 9:28 PM",
color: "blue.400",
},
{
logo: FaCreditCard,
logo: CreditCard,
title: "New card added for order #3210145",
date: "20 DEC 3:52 PM",
color: "orange.300",
},
{
logo: SiDropbox,
logo: Box,
title: "Unlock packages for Development",
date: "19 DEC 11:35 PM",
color: "purple",
@@ -131,13 +121,13 @@ export const timelineData = [
export const timelineProjectsData = [
{
logo: FaBell,
logo: Bell,
title: "$2400, Design changes",
titleColor: "#fff",
date: "22 DEC 7:20 PM",
color: "blue.500",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "blue.500",
@@ -146,13 +136,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaHtml5,
logo: Code,
title: "New order #4219423",
titleColor: "#fff",
date: "21 DEC 11:21 PM",
color: "red.500",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "red.500",
@@ -165,13 +155,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaShoppingCart,
logo: ShoppingCart,
title: "Server Payments for April",
titleColor: "#fff",
date: "21 DEC 9:28 PM",
color: "green.400",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "green.400",
@@ -184,13 +174,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaCreditCard,
logo: CreditCard,
title: "New card added for order #3210145",
titleColor: "#fff",
date: "20 DEC 3:52 PM",
color: "orange.300",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "orange.300",
@@ -207,13 +197,13 @@ export const timelineProjectsData = [
],
},
{
logo: SiDropbox,
logo: Box,
title: "Unlock packages for Development",
titleColor: "#fff",
date: "19 DEC 11:35 PM",
color: "purple.400",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "purple.400",
@@ -222,13 +212,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaBell,
logo: Bell,
title: "$2400, Design changes",
titleColor: "#fff",
date: "22 DEC 7:20 PM",
color: "green.400",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "green.400",
@@ -237,13 +227,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaHtml5,
logo: Code,
title: "New order #4219423",
titleColor: "#fff",
date: "21 DEC 11:21 PM",
color: "orange",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "red.500",
@@ -256,13 +246,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaShoppingCart,
logo: ShoppingCart,
title: "Server Payments for April",
titleColor: "#fff",
date: "21 DEC 9:28 PM",
color: "blue.400",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "blue.400",
@@ -275,13 +265,13 @@ export const timelineProjectsData = [
],
},
{
logo: FaCreditCard,
logo: CreditCard,
title: "New card added for order #3210145",
titleColor: "#fff",
date: "20 DEC 3:52 PM",
color: "orange.300",
description:
"People care about how you see the world, how you think, what motivates you, what youre struggling with or afraid of.",
"People care about how you see the world, how you think, what motivates you, what you're struggling with or afraid of.",
tags: [
{
bgTag: "orange.300",
@@ -346,31 +336,31 @@ export const rtlDashboardTableData = [
export const rtlTimelineData = [
{
logo: FaBell,
logo: Bell,
title: "$2400, تغييرات في التصميم",
date: "22 DEC 7:20 PM",
color: "blue.500",
},
{
logo: FaHtml5,
logo: Code,
title: "طلب جديد #4219423",
date: "21 DEC 11:21 PM",
color: "orange",
},
{
logo: FaShoppingCart,
logo: ShoppingCart,
title: "مدفوعات الخادم لشهر أبريل",
date: "21 DEC 9:28 PM",
color: "blue.400",
},
{
logo: FaCreditCard,
logo: CreditCard,
title: "تمت إضافة بطاقة جديدة للطلب #3210145",
date: "20 DEC 3:52 PM",
color: "orange.300",
},
{
logo: SiDropbox,
logo: Box,
title: "فتح الحزم من أجل التنمية",
date: "19 DEC 11:35 PM",
color: "purple",
@@ -482,35 +472,35 @@ export const invoicesData = [
date: "March, 01, 2020",
code: "#MS-415646",
price: "$180",
logo: FaFilePdf,
logo: FileText,
format: "PDF",
},
{
date: "February, 10, 2020",
code: "#RV-126749",
price: "$250",
logo: FaFilePdf,
logo: FileText,
format: "PDF",
},
{
date: "April, 05, 2020",
code: "#FB-212562",
price: "$560",
logo: FaFilePdf,
logo: FileText,
format: "PDF",
},
{
date: "June, 25, 2019",
code: "#QW-103578",
price: "$120",
logo: FaFilePdf,
logo: FileText,
format: "PDF",
},
{
date: "March, 01, 2019",
code: "#AR-803481",
price: "$300",
logo: FaFilePdf,
logo: FileText,
format: "PDF",
},
];
@@ -541,13 +531,13 @@ export const newestTransactions = [
name: "Netflix",
date: "27 March 2022, at 12:30 PM",
price: "- $2,500",
logo: FaArrowDown,
logo: ArrowDown,
},
{
name: "Apple",
date: "27 March 2022, at 12:30 PM",
price: "+ $2,500",
logo: FaArrowUp,
logo: ArrowUp,
},
];
@@ -556,25 +546,25 @@ export const olderTransactions = [
name: "Stripe",
date: "26 March 2022, at 13:45 PM",
price: "+ $800",
logo: FaArrowUp,
logo: ArrowUp,
},
{
name: "HubSpot",
date: "26 March 2022, at 12:30 PM",
price: "+ $1,700",
logo: FaArrowUp,
logo: ArrowUp,
},
{
name: "Webflow",
date: "26 March 2022, at 05:00 PM",
price: "Pending",
logo: AiOutlineExclamation,
logo: AlertCircle,
},
{
name: "Microsoft",
date: "25 March 2022, at 16:30 PM",
price: "- $987",
logo: FaArrowDown,
logo: ArrowDown,
},
];
@@ -583,19 +573,19 @@ export const transactionsCRM = [
name: "Netflix",
date: "26 March 2022, at 13:45 PM",
price: "- $2500",
logo: FaArrowDown,
logo: ArrowDown,
},
{
name: "Apple",
date: "26 March 2022, at 12:30 PM",
price: "+ $2500",
logo: FaArrowUp,
logo: ArrowUp,
},
{
name: "Stripe",
date: "26 March 2022, at 05:00 PM",
price: "+ $9900",
logo: FaArrowUp,
logo: ArrowUp,
},
];
@@ -604,19 +594,19 @@ export const revenueCRM = [
name: "via Paypal",
date: "27 March 2022, at 12:30 PM",
price: "+ $8700",
logo: FaArrowUp,
logo: ArrowUp,
},
{
name: "Partner #01424",
date: "27 March 2022, at 12:30 PM",
price: "+ $12000",
logo: FaArrowUp,
logo: ArrowUp,
},
{
name: "Services",
date: "26 March 2022, at 10:10 PM",
price: "- $1900",
logo: FaArrowDown,
logo: ArrowDown,
},
];