feat: UI authTip to accessTip && worker / path return OK (#158)

This commit is contained in:
Dream Hunter
2024-04-23 12:50:20 +08:00
committed by GitHub
parent 58dcdc65f8
commit a3edb09305
8 changed files with 44 additions and 19 deletions

View File

@@ -1,5 +1,20 @@
# CHANGE LOG
## v0.2.8
- 允许用户删除邮件
- admin 修改发件权限时邮件通知用户
- 发件权限默认 1 条
- 添加 RATE_LIMITER 限流 发送邮件 和 新建地址
- 一些 bug 修复
---
- feat: allow user delete mail && notify when send access changed by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/132
- feat: requset_send_mail_access default 1 balance by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/143
- fix: RATE_LIMITER not call jwt by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/146
- fix: delete_address not delete address_sender by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/153
- fix: send_balance not update when click sendmail by @dreamhunter2333 in https://github.com/dreamhunter2333/cloudflare_temp_email/pull/155
## v0.2.7
- Added user interface installation documentation

View File

@@ -45,7 +45,7 @@
- [x] 使用 password 重新登录之前的邮箱
- [x] 获取自定义名字的邮箱
- [x] 支持多语言
- [x] 增加访问授权,可作为私人站点
- [x] 增加访问密码,可作为私人站点
- [x] 增加自动回复功能
- [x] 增加查看附件功能
- [x] 使用 rust wasm 解析邮件

View File

@@ -29,24 +29,26 @@ const { t } = useI18n({
locale: localeCache.value || 'zh',
messages: {
en: {
auth: 'Admin Auth',
authTip: 'Please enter the correct auth code',
accessHeader: 'Admin Password',
accessTip: 'Please enter the admin password',
mails: 'Emails',
account: 'Account',
unknow: 'Mails with unknow receiver',
senderAccess: 'Sender Access Control',
sendBox: 'Send Box',
maintenance: 'Maintenance',
ok: 'OK',
},
zh: {
auth: 'Admin 授权',
authTip: '请输入正确的授权码',
accessHeader: 'Admin 密码',
accessTip: '请输入 Admin 密码',
mails: '邮件',
account: '账号',
unknow: '无收件人邮件',
senderAccess: '发件权限控制',
sendBox: '发件箱',
maintenance: '维护',
ok: '确定',
}
}
});
@@ -64,13 +66,13 @@ onMounted(async () => {
<n-modal v-model:show="showAdminAuth" :closable="false" :closeOnEsc="false" :maskClosable="false" preset="dialog"
title="Dialog">
<template #header>
<div>{{ t('auth') }}</div>
<div>{{ t('accessHeader') }}</div>
</template>
<p>{{ t('authTip') }}</p>
<p>{{ t('accessTip') }}</p>
<n-input v-model:value="adminAuth" type="textarea" :autosize="{ minRows: 3 }" />
<template #action>
<n-button @click="authFunc" size="small" tertiary round type="primary">
{{ t('auth') }}
<n-button @click="authFunc" type="primary">
{{ t('ok') }}
</n-button>
</template>
</n-modal>

View File

@@ -67,8 +67,8 @@ const { t } = useI18n({
logoutConfirm: 'Are you sure to logout?',
delteAccount: "Delete Account",
delteAccountConfirm: "Are you sure to delete your account and all emails for this account?",
auth: 'Auth',
authTip: 'Please enter the correct auth code',
accessHeader: 'Access Password',
accessTip: 'Please enter the correct password',
settings: 'Settings',
home: 'Home',
menu: 'Menu',
@@ -100,8 +100,8 @@ const { t } = useI18n({
logoutConfirm: '确定要登出吗?',
delteAccount: "删除账户",
delteAccountConfirm: "确定要删除你的账户和其中的所有邮件吗?",
auth: '授权',
authTip: '请输入正确的授权码',
accessHeader: '访问密码',
accessTip: '请输入站点访问密码',
settings: '设置',
home: '主页',
menu: '菜单',
@@ -513,15 +513,15 @@ onMounted(async () => {
<n-modal v-model:show="showAuth" :closable="false" :closeOnEsc="false" :maskClosable="false" preset="dialog"
title="Dialog">
<template #header>
<div>{{ t('auth') }}</div>
<div>{{ t('accessHeader') }}</div>
</template>
<p>{{ t('authTip') }}</p>
<p>{{ t('accessTip') }}</p>
<n-input v-model:value="auth" type="textarea" :autosize="{
minRows: 3
}" />
<template #action>
<n-button @click="authFunc" size="small" tertiary round type="primary">
{{ t('auth') }}
<n-button @click="authFunc" type="primary">
{{ t('ok') }}
</n-button>
</template>
</n-modal>

View File

@@ -20,7 +20,7 @@ features:
- title: 免费托管在 CloudFlare无需服务器
details: Cloudflare D1 数据库Cloudflare Pages 前端Cloudflare Workers 后端, Cloudflare Email Routing
- title: 仅需域名即可私有部署
details: 支持 password 登录邮箱,访问授权可作为私人站点,支持附件功能
details: 支持 password 登录邮箱,使用访问密码可作为私人站点,支持附件功能
- title: 使用 rust wasm 解析邮件
details: 使用 rust wasm 解析邮件支持邮件各种RFC标准支持附件, 速度极快
- title: 支持发送邮件

View File

@@ -59,3 +59,6 @@ pnpm run deploy
部署成功之后再路由中可以看到 `worker``url`,控制台也会输出 `worker``url`
![worker](/readme_assets/worker.png)
> [!NOTE]
> 打开 `worker` 的 `url`,如果显示 `OK` 说明部署成功

View File

@@ -14,7 +14,10 @@
![worker2](/ui_install/worker-2.png)
5. 点击 `Settings` -> `Trggers`, 这里可以添加自己的域名,你也可以使用自动生成的 `*.workers.dev` 的域名。能打开域名说明部署成功,记录下这个域名,后面部署前端会用到。
5. 点击 `Settings` -> `Trggers`, 这里可以添加自己的域名,你也可以使用自动生成的 `*.workers.dev` 的域名。记录下这个域名,后面部署前端会用到。
> [!NOTE]
> 打开 `worker` 的 `url`,如果显示 `OK` 说明部署成功
![worker3](/ui_install/worker-3.png)

View File

@@ -57,6 +57,8 @@ app.route('/', adminApi)
app.route('/', apiV1)
app.route('/', apiSendMail)
app.get('/', async c => c.text("OK"))
app.get('/health_check', async c => c.text("OK"))
app.all('/*', async c => c.text("Not Found", 404))