From 827fccba61fe87a598102e9d9531e436b8e36441 Mon Sep 17 00:00:00 2001
From: cyfung1031 <44498510+cyfung1031@users.noreply.github.com>
Date: Wed, 19 Nov 2025 18:15:28 +0900
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Typography=20=E5=BC=95?=
=?UTF-8?q?=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/options/routes/Logger.tsx | 7 +++----
.../options/routes/ScriptList/ScriptTable.tsx | 5 ++---
.../options/routes/ScriptList/components.tsx | 7 +++----
src/pages/options/routes/SubscribeList.tsx | 18 ++++++++++++++----
src/pages/options/routes/Tools.tsx | 10 +++++-----
5 files changed, 27 insertions(+), 20 deletions(-)
diff --git a/src/pages/options/routes/Logger.tsx b/src/pages/options/routes/Logger.tsx
index f08ced2a8..0702f8f8c 100644
--- a/src/pages/options/routes/Logger.tsx
+++ b/src/pages/options/routes/Logger.tsx
@@ -1,7 +1,6 @@
import React, { useEffect } from "react";
-import { BackTop, Button, Card, DatePicker, Input, List, Message, Space } from "@arco-design/web-react";
+import { BackTop, Button, Card, DatePicker, Input, List, Message, Space, Typography } from "@arco-design/web-react";
import dayjs from "dayjs";
-import Text from "@arco-design/web-react/es/Typography/text";
import type { Logger } from "@App/app/repo/logger";
import { LoggerDAO } from "@App/app/repo/logger";
import type { Labels, Query } from "@App/pages/components/LogLabel";
@@ -289,12 +288,12 @@ function LoggerPage() {
boxSizing: "border-box",
}}
>
-
+
{formatUnixTime(startTime)} {t("to")} {formatUnixTime(endTime)} {t("total_logs", { length: logs.length })}
{init === 4
? `, ${t("filtered_logs", { length: queryLogs.length })}`
: `, ${t("enter_filter_conditions")}`}
-
+
textDecoration: "none",
}}
>
-
))}
)}
-
+
);
diff --git a/src/pages/options/routes/ScriptList/components.tsx b/src/pages/options/routes/ScriptList/components.tsx
index 2bfc63d10..08e214f6c 100644
--- a/src/pages/options/routes/ScriptList/components.tsx
+++ b/src/pages/options/routes/ScriptList/components.tsx
@@ -1,9 +1,8 @@
import type { SCRIPT_STATUS } from "@App/app/repo/scripts";
import { SCRIPT_STATUS_ENABLE } from "@App/app/repo/scripts";
import { scriptClient, type ScriptLoading } from "@App/pages/store/features/script";
-import { Avatar, Message, Switch, Tag, Tooltip } from "@arco-design/web-react";
+import { Avatar, Message, Switch, Tag, Tooltip, Typography } from "@arco-design/web-react";
import React from "react";
-import Text from "@arco-design/web-react/es/Typography/text";
import { TbWorldWww } from "react-icons/tb";
import { semTime } from "@App/pkg/utils/dayjs";
import { useTranslation } from "react-i18next";
@@ -165,7 +164,7 @@ export const UpdateTimeCell = React.memo(({ className, script }: { className?: s
return (
-
{script.updatetime && semTime(new Date(script.updatetime))}
-
+
);
});
diff --git a/src/pages/options/routes/SubscribeList.tsx b/src/pages/options/routes/SubscribeList.tsx
index 8643f564b..953f81f96 100644
--- a/src/pages/options/routes/SubscribeList.tsx
+++ b/src/pages/options/routes/SubscribeList.tsx
@@ -1,6 +1,16 @@
import { useEffect, useRef, useState } from "react";
-import Text from "@arco-design/web-react/es/Typography/text";
-import { Button, Card, Input, Message, Popconfirm, Switch, Table, Tag, Tooltip } from "@arco-design/web-react";
+import {
+ Button,
+ Card,
+ Input,
+ Message,
+ Popconfirm,
+ Switch,
+ Table,
+ Tag,
+ Tooltip,
+ Typography,
+} from "@arco-design/web-react";
import type { Subscribe } from "@App/app/repo/subscribe";
import { SUBSCRIBE_STATUS_DISABLE, SUBSCRIBE_STATUS_ENABLE, SubscribeDAO } from "@App/app/repo/subscribe";
import type { ColumnProps } from "@arco-design/web-react/es/Table";
@@ -134,7 +144,7 @@ function SubscribeList() {
render: (col) => {
return (
-
{col}
-
+
);
},
diff --git a/src/pages/options/routes/Tools.tsx b/src/pages/options/routes/Tools.tsx
index 0283ffe0b..4016ab775 100644
--- a/src/pages/options/routes/Tools.tsx
+++ b/src/pages/options/routes/Tools.tsx
@@ -11,8 +11,8 @@ import {
Modal,
Popconfirm,
Space,
+ Typography,
} from "@arco-design/web-react";
-import Title from "@arco-design/web-react/es/Typography/title";
import { formatUnixTime } from "@App/pkg/utils/day_format";
import FileSystemParams from "@App/pages/components/FileSystemParams";
import { IconQuestionCircleFill } from "@arco-design/web-react/icon";
@@ -51,7 +51,7 @@ function Tools() {
{contextHolder}
- {t("local")}
+ {t("local")}
- {t("cloud")}
+ {t("cloud")}
{
@@ -255,7 +255,7 @@ function Tools() {
)}
/>
- {t("backup_strategy")}
+ {t("backup_strategy")}
- {t("vscode_url")}
+ {t("vscode_url")}