feat: Enhance backend with request/SQL logging via morgan/winston and fix frontend by correctly rendering email Markdown content using the 'marked' library.

This commit is contained in:
2025-07-29 12:44:56 +08:00
parent c38a4f0f62
commit 8c649adf93
19 changed files with 859 additions and 246 deletions

View File

@@ -24,6 +24,20 @@ const messages = {
selectMail: '请从选择一封邮件查看',
from: '发件人',
to: '收件人',
attachments: '附件',
delete: '删除',
clearInbox: '清空收件箱',
alerts: {
enterEmail: '请输入一个邮箱地址',
fetchFailed: '无法获取邮件,请检查后端服务和 Nginx 配置是否正常。',
confirmDelete: '确定要删除这封邮件吗?',
deleteFailed: '删除邮件失败。',
confirmClearAll: '确定要清空这个收件箱的所有邮件吗?此操作不可恢复。',
clearFailed: '清空收件箱失败。',
copyFailed: '复制失败!',
actionCancelled: '操作已取消',
},
newMailNotification: '收到新邮件!',
}
},
en: {
@@ -49,6 +63,20 @@ const messages = {
selectMail: 'Please select an email to view',
from: 'From',
to: 'To',
attachments: 'Attachments',
delete: 'Delete',
clearInbox: 'Clear Inbox',
alerts: {
enterEmail: 'Please enter an email address',
fetchFailed: 'Failed to fetch emails. Please check if the backend service and Nginx configuration are normal.',
confirmDelete: 'Are you sure you want to delete this email?',
deleteFailed: 'Failed to delete email.',
confirmClearAll: 'Are you sure you want to clear all emails in this inbox? This action cannot be undone.',
clearFailed: 'Failed to clear inbox.',
copyFailed: 'Copy failed!',
actionCancelled: 'Action cancelled',
},
newMailNotification: 'New mail received!',
}
},
};