From 450bbbe20a35e1eaa769d569d0342977567dffce Mon Sep 17 00:00:00 2001 From: oiov Date: Fri, 31 May 2024 18:43:45 +0800 Subject: [PATCH] =?UTF-8?q?upd:=20=E8=B0=83=E6=95=B4=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E8=BD=AE=E8=AF=A2=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/remix/app/components/MailList.tsx | 14 +++++++++----- apps/remix/app/components/icons/Refresh.tsx | 21 ++++++++------------- apps/remix/public/locales/zh/common.json | 8 ++++---- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/apps/remix/app/components/MailList.tsx b/apps/remix/app/components/MailList.tsx index 1a4eab6..febb6aa 100644 --- a/apps/remix/app/components/MailList.tsx +++ b/apps/remix/app/components/MailList.tsx @@ -59,7 +59,7 @@ export function MailList(props: { mails: Email[] }) { queryKey: ["mails"], queryFn: fetchMails, initialData: props.mails, - refetchInterval: 10000, + refetchInterval: 20000, // refetch every 20 seconds }); return ( @@ -83,10 +83,14 @@ export function MailList(props: { mails: Email[] }) { queryKey: ["mails"], }) }> - {data.length === 0 && } - {data.length > 0 && ( - - )} + diff --git a/apps/remix/app/components/icons/Refresh.tsx b/apps/remix/app/components/icons/Refresh.tsx index 7950bff..841c86a 100644 --- a/apps/remix/app/components/icons/Refresh.tsx +++ b/apps/remix/app/components/icons/Refresh.tsx @@ -3,23 +3,18 @@ import { SVGProps } from "react"; export default function Refresh(props: SVGProps) { return ( - - - - - + fill="none" + stroke="currentColor" + strokeWidth="2" + strokeLinecap="round" + strokeLinejoin="round"> + + ); } diff --git a/apps/remix/public/locales/zh/common.json b/apps/remix/public/locales/zh/common.json index 3c12ada..a1dfc19 100644 --- a/apps/remix/public/locales/zh/common.json +++ b/apps/remix/public/locales/zh/common.json @@ -1,10 +1,10 @@ { "Donate": "打赏", "Virtual Temporary Email": "虚拟临时邮箱", - "Privacy friendly": "隐私友好", - "Valid for 1 Day": "有效期 1 天", - "AD friendly": "无内置广告", - "100% Run on Cloudflare": "运行在 Cloudflare", + "Privacy friendly": "免费创建无限邮箱", + "Valid for 1 Day": "有效期 1 天 (可密码找回)", + "AD friendly": "多域名后缀收发邮件", + "100% Run on Cloudflare": "稳定接收 20k+ 邮件", "Email address": "电子邮件地址", "Stop": "停止", "Validater": "人机验证",