From 844c18d393034393ea898d536d02fad03a9f5619 Mon Sep 17 00:00:00 2001 From: heheer Date: Tue, 9 Dec 2025 14:25:43 +0800 Subject: [PATCH] bill detail modal --- packages/web/i18n/en/account.json | 1 + packages/web/i18n/zh-CN/account.json | 1 + packages/web/i18n/zh-Hant/account.json | 3 ++- .../src/pageComponents/account/bill/BillDetailModal.tsx | 7 +++++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/web/i18n/en/account.json b/packages/web/i18n/en/account.json index ec07e6f1b..062af0c68 100644 --- a/packages/web/i18n/en/account.json +++ b/packages/web/i18n/en/account.json @@ -9,6 +9,7 @@ "confirm_logout": "Confirm to log out?", "create_channel": "Add new channel", "create_model": "Add new model", + "custom_domain": "Custom Domain", "custom_model": "custom model", "default_model": "Default model", "default_model_config": "Default model configuration", diff --git a/packages/web/i18n/zh-CN/account.json b/packages/web/i18n/zh-CN/account.json index 6e6ff57be..f75ebbc79 100644 --- a/packages/web/i18n/zh-CN/account.json +++ b/packages/web/i18n/zh-CN/account.json @@ -14,6 +14,7 @@ "create_channel": "新增渠道", "create_model": "新增模型", "custom_config_details": "定制配置详情", + "custom_domain": "自定义域名", "custom_model": "自定义模型", "day": "天", "default_model": "预设模型", diff --git a/packages/web/i18n/zh-Hant/account.json b/packages/web/i18n/zh-Hant/account.json index 02c7c5204..a5991bcaf 100644 --- a/packages/web/i18n/zh-Hant/account.json +++ b/packages/web/i18n/zh-Hant/account.json @@ -14,6 +14,7 @@ "create_channel": "新增管道", "create_model": "新增模型", "custom_config_details": "定制配置詳情", + "custom_domain": "自定義域名", "custom_model": "自訂模型", "day": "天", "default_model": "預設模型", @@ -114,4 +115,4 @@ "website_sync_per_dataset": "站點同步最大頁數", "yes": "是", "yuan": "{{amount}}元" -} \ No newline at end of file +} diff --git a/projects/app/src/pageComponents/account/bill/BillDetailModal.tsx b/projects/app/src/pageComponents/account/bill/BillDetailModal.tsx index 5bc963ffd..67ac99b4b 100644 --- a/projects/app/src/pageComponents/account/bill/BillDetailModal.tsx +++ b/projects/app/src/pageComponents/account/bill/BillDetailModal.tsx @@ -109,6 +109,13 @@ const BillDetailModal = ({ billId, onClose }: BillDetailModalProps) => { unit: 'h' }); } + if (config.customDomain !== undefined) { + items.push({ + key: i18nT('account:custom_domain'), + value: config.customDomain, + unit: '' + }); + } return items; }, [bill?.couponDetail?.subscriptions]);