mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 15:38:34 +08:00
fix: address mail state review comments
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
- test: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验
|
- fix: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验
|
||||||
- test: |E2E| 覆盖 D1 数据库大小响应、配置键隔离,以及数据库页面套餐选择的持久化与刷新恢复
|
- test: |E2E| 覆盖 D1 数据库大小响应、配置键隔离,以及数据库页面套餐选择的持久化与刷新恢复
|
||||||
- fix: |E2E| 覆盖发信页面草稿编辑、正文格式切换及 HTML 预览
|
- fix: |E2E| 覆盖发信页面草稿编辑、正文格式切换及 HTML 预览
|
||||||
- fix: |E2E| 覆盖用户 JWT 发信接口的地址归属、额度扣减、实际投递和发件箱操作,以及用户中心查看地址凭证、切换发件地址和按地址过滤发件箱的完整流程
|
- fix: |E2E| 覆盖用户 JWT 发信接口的地址归属、额度扣减、实际投递和发件箱操作,以及用户中心查看地址凭证、切换发件地址和按地址过滤发件箱的完整流程
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
- test: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation
|
- fix: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation
|
||||||
- test: |E2E| Cover the D1 database-size response, config-key isolation, and persistence of the database-page plan selection across reloads
|
- test: |E2E| Cover the D1 database-size response, config-key isolation, and persistence of the database-page plan selection across reloads
|
||||||
- fix: |E2E| Cover draft editing, content-format switching, and HTML preview in the send-mail composer
|
- fix: |E2E| Cover draft editing, content-format switching, and HTML preview in the send-mail composer
|
||||||
- fix: |E2E| Cover address ownership, balance decrement, delivery, and sent-item operations through the User JWT API, plus user-center credential display, sender switching, and sent-item filtering by address
|
- fix: |E2E| Cover address ownership, balance decrement, delivery, and sent-item operations through the User JWT API, plus user-center credential display, sender switching, and sent-item filtering by address
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ const openMail = async (mail) => {
|
|||||||
const markCurrentPageRead = async () => {
|
const markCurrentPageRead = async () => {
|
||||||
if (!await markMailsRead(rawData.value)) return
|
if (!await markMailsRead(rawData.value)) return
|
||||||
message.success(t("success"))
|
message.success(t("success"))
|
||||||
if (mailStateFilter.value === getReadStateValue(true)) await refresh()
|
if (mailStateFilter.value === getReadStateValue(true)) await backFirstPageAndRefresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
const canGoPrevMail = computed(() => {
|
const canGoPrevMail = computed(() => {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ offset = 0
|
|||||||
res = requests.get(
|
res = requests.get(
|
||||||
f"https://<your-worker-address>/api/mails?limit={limit}&offset={offset}",
|
f"https://<your-worker-address>/api/mails?limit={limit}&offset={offset}",
|
||||||
headers={
|
headers={
|
||||||
"Authorization": f"Bearer {your-JWT-password}",
|
"Authorization": "Bearer <your-JWT-password>",
|
||||||
# "x-custom-auth": "<your-website-password>", # If private site password is enabled
|
# "x-custom-auth": "<your-website-password>", # If private site password is enabled
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,7 @@ Use `PATCH /api/mails/state` to move the state of up to 100 mail IDs:
|
|||||||
```python
|
```python
|
||||||
requests.patch(
|
requests.patch(
|
||||||
"https://<your-worker-address>/api/mails/state",
|
"https://<your-worker-address>/api/mails/state",
|
||||||
headers={"Authorization": f"Bearer {your-JWT-password}"},
|
headers={"Authorization": "Bearer <your-JWT-password>"},
|
||||||
json={"ids": [1, 2], "state": "read"}
|
json={"ids": [1, 2], "state": "read"}
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ offset = 0
|
|||||||
res = requests.get(
|
res = requests.get(
|
||||||
f"https://<你的worker地址>/api/mails?limit={limit}&offset={offset}",
|
f"https://<你的worker地址>/api/mails?limit={limit}&offset={offset}",
|
||||||
headers={
|
headers={
|
||||||
"Authorization": f"Bearer {你的JWT密码}",
|
"Authorization": "Bearer <你的JWT密码>",
|
||||||
# "x-custom-auth": "<你的网站密码>", # 如果启用了私有站点密码
|
# "x-custom-auth": "<你的网站密码>", # 如果启用了私有站点密码
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,7 @@ res = requests.get(
|
|||||||
```python
|
```python
|
||||||
requests.patch(
|
requests.patch(
|
||||||
"https://<你的worker地址>/api/mails/state",
|
"https://<你的worker地址>/api/mails/state",
|
||||||
headers={"Authorization": f"Bearer {你的JWT密码}"},
|
headers={"Authorization": "Bearer <你的JWT密码>"},
|
||||||
json={"ids": [1, 2], "state": "read"}
|
json={"ids": [1, 2], "state": "read"}
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user