feat: add Cloudflare email sending to system settings

This commit is contained in:
eoao
2026-05-10 17:23:12 +08:00
parent 23b1d5e6be
commit f227bd75ca
4 changed files with 8 additions and 2 deletions

View File

@@ -149,6 +149,7 @@ const en = {
autoRefreshDesc: 'Automatically fetch the latest emails from the server',
sendEmail: 'Send Email',
resendToken: 'Resend Token',
cloudflareEmailSending: 'Cloudflare Email Sending',
blackList: 'Blocklist',
codeRecognition: 'Verification Code Recognition',
codeRecognitionRules: 'Recognition Rules',

View File

@@ -149,6 +149,7 @@ const zh = {
autoRefreshDesc: '轮询请求服务器获取最新邮件',
sendEmail: '邮件发送',
resendToken: 'Resend Token',
cloudflareEmailSending: 'Cloudflare 邮件发送',
blackList: '邮件黑名单',
codeRecognition: '识别验证码',
codeRecognitionRules: '识别规则',

View File

@@ -177,8 +177,11 @@
</div>
</div>
<div class="setting-item">
<div><span>{{ $t('resendToken') }}</span></div>
<div>
<div><span>{{ setting.hasCfEmail ? $t('cloudflareEmailSending') : $t('resendToken') }}</span></div>
<div v-if="setting.hasCfEmail">
<span>{{ $t('enabled') }}</span>
</div>
<div v-else>
<el-button class="opt-button" style="margin-top: 0" @click="openResendList" size="small"
type="primary">
<Icon icon="ic:round-list" width="18" height="18"/>