diff --git a/frontend/.env.example b/frontend/.env.example index bebb3f1..bf9ee5d 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,8 +1,8 @@ # 邮箱域名配置 -VITE_EMAIL_DOMAIN=mdzz.uk +VITE_EMAIL_DOMAIN=example.com # API地址配置 -VITE_API_BASE_URL=https://api.mail.mdzz.uk +VITE_API_BASE_URL=https://api.example.com # 其他配置 VITE_API_URL=/api \ No newline at end of file diff --git a/frontend/i18n/locales/en.json b/frontend/i18n/locales/en.json index 0c22cfc..dc321cc 100644 --- a/frontend/i18n/locales/en.json +++ b/frontend/i18n/locales/en.json @@ -21,7 +21,8 @@ "unknown": "Unknown", "empty": "No data", "blog": "Blog", - "youtube": "YouTube" + "youtube": "YouTube", + "xugouMonitor": "Xugou Monitor" }, "mailbox": { "createRandom": "Create Random Mailbox", diff --git a/frontend/i18n/locales/zh-CN.json b/frontend/i18n/locales/zh-CN.json index 7b2dbd5..9b7fe81 100644 --- a/frontend/i18n/locales/zh-CN.json +++ b/frontend/i18n/locales/zh-CN.json @@ -21,7 +21,8 @@ "unknown": "未知", "empty": "暂无数据", "blog": "博客", - "youtube": "油管频道" + "youtube": "油管频道", + "xugouMonitor": "xugou监控" }, "mailbox": { "createRandom": "创建随机邮箱", diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/Footer.tsx index 623145a..a249784 100644 --- a/frontend/src/components/Footer.tsx +++ b/frontend/src/components/Footer.tsx @@ -30,6 +30,15 @@ const Footer: React.FC = () => { {t('common.youtube')} + + + {t('common.xugouMonitor')} + diff --git a/frontend/src/config.ts b/frontend/src/config.ts index b7a2415..dc747d5 100644 --- a/frontend/src/config.ts +++ b/frontend/src/config.ts @@ -1,10 +1,10 @@ // 配置文件,用于管理域名和API地址设置 // 邮箱域名配置 -export const EMAIL_DOMAIN = import.meta.env.VITE_EMAIL_DOMAIN || 'mdzz.uk'; +export const EMAIL_DOMAIN = import.meta.env.VITE_EMAIL_DOMAIN; // API地址配置 -export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'https://api.mail.mdzz.uk'; +export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; // 其他配置 export const DEFAULT_AUTO_REFRESH = false;