BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Added a send queue page
zdm0078d4c3c6ab
diff --git a/core/frontend/.gitignore b/core/frontend/.gitignoreindex ce561610..fc7ce961 100644--- a/core/frontend/.gitignore+++ b/core/frontend/.gitignore@@ -2,6 +2,7 @@.DS_Store*.local*.log*+!logs# Distnode_modulesdiff --git a/core/frontend/build-for-git.js b/core/frontend/build-for-git.jsindex 1bf2555c..5bee5ba7 100644--- a/core/frontend/build-for-git.js+++ b/core/frontend/build-for-git.js@@ -1,3 +1,4 @@+import { execSync } from 'child_process'import fs from 'fs'import path from 'path'import ora from 'ora'@@ -82,8 +83,22 @@ function deleteFolderRecursive(folderPath) {}}+async function getPull() {+ try {+ // 在当前目录执行git pull命令,并同步输出结果+ const spinner = ora(chalk.cyan('正在拉取git...')).start()+ execSync('git pull', { stdio: 'inherit', cwd: process.cwd() })+ spinner.succeed(chalk.green('git pull 执行成功'))+ return true+ } catch (error) {+ console.error('git pull 执行失败:', error.message)+ process.exit(1)+ }+}+// 主执行逻辑async function main() {+ await getPull()// 再执行文件复制await copyLocalFiles('../public/dist')}diff --git a/core/frontend/build/config.ts b/core/frontend/build/config.tsindex eddd1ee6..9218d274 100644--- a/core/frontend/build/config.ts+++ b/core/frontend/build/config.ts@@ -4,7 +4,7 @@ interface ServerConfig {host: string}-const serverConfig: Record<string, ServerConfig> = {+const serverConfig: Record<string, ServerConfig> = {'192.168.66.66': {https: false,address: 'http://192.168.66.66:64325',@@ -20,6 +20,11 @@ const serverConfig: Record<string, ServerConfig> = {address: 'https://192.168.10.35',host: '192.168.10.35',},+ '103.179.242.193': {+ https: true,+ address: 'https://103.179.242.193',+ host: '103.179.242.193',+ },}export default serverConfigdiff --git a/core/frontend/git-pull.js b/core/frontend/git-pull.jsdeleted file mode 100644index 95bcc5b3..00000000--- a/core/frontend/git-pull.js+++ /dev/null@@ -1,18 +0,0 @@-import { execSync } from 'child_process'-import chalk from 'chalk'-import ora from 'ora'--async function getPull() {- try {- // 在当前目录执行git pull命令,并同步输出结果- const spinner = ora(chalk.cyan('正在拉取git...')).start()- execSync('git pull', { stdio: 'inherit', cwd: process.cwd() })- spinner.succeed(chalk.green('git pull 执行成功'))- return true- } catch (error) {- console.error('git pull 执行失败:', error.message)- process.exit(1)- }-}--getPull()diff --git a/core/frontend/src/api/modules/contacts/suspend.ts b/core/frontend/src/api/modules/contacts/suspend.tsindex aaa293a9..b3e5092c 100644--- a/core/frontend/src/api/modules/contacts/suspend.ts+++ b/core/frontend/src/api/modules/contacts/suspend.ts@@ -1,6 +1,9 @@import { instance } from '@/api'+import i18n from '@/i18n'import type { SuspendParams } from '@/views/contacts/suspend/types/base'+const { t } = i18n.global+export const getSuspendList = (params: SuspendParams) => {return instance.get('/abnormal_recipient/list', { params })}@@ -12,7 +15,7 @@ export const getAutoScan = () => {export const deleteSuspend = (params: { id: number }) => {return instance.post('/abnormal_recipient/delete', params, {fetchOptions: {- loading: 'Deleting, please wait...',+ loading: t('contacts.suspend.api.loading.deleting'),successMessage: true,},})@@ -25,7 +28,7 @@ export const getScanLogs = () => {export const scanGroup = (params: { group_id: number; oper: number }) => {return instance.post('/abnormal_recipient/check_group', params, {fetchOptions: {- loading: 'Scanning, please wait...',+ loading: t('contacts.suspend.api.loading.scanning'),successMessage: true,},})@@ -37,7 +40,7 @@ export const clearSuspend = () => {{},{fetchOptions: {- loading: 'Clearing, please wait...',+ loading: t('contacts.suspend.api.loading.clearing'),successMessage: true,},}@@ -47,7 +50,7 @@ export const clearSuspend = () => {export const setAutoScan = (params: { oper: number }) => {return instance.post('/abnormal_recipient/set_check_switch', params, {fetchOptions: {- loading: 'Setting, please wait...',+ loading: t('contacts.suspend.api.loading.setting'),successMessage: true,},})diff --git a/core/frontend/src/api/modules/overview.ts b/core/frontend/src/api/modules/overview.tsindex 382bc549..6e34129a 100644--- a/core/frontend/src/api/modules/overview.ts+++ b/core/frontend/src/api/modules/overview.ts@@ -1,4 +1,7 @@import { instance } from '@/api'+ import i18n from '@/i18n'++const { t } = i18n.globalexport const getOverviewInfo = (params: {domain: string@@ -11,3 +14,47 @@ export const getOverviewInfo = (params: {export const getFailedList = (params: { domain: string; start_time: number; end_time: number }) => {return instance.get('/overview/failed', { params })}++export const getSendQueueList = () => {+ return instance.get('/postfix_queue/list')+}++export const resendQueue = (params: { queue_ids: string[] }) => {+ return instance.post('/postfix_queue/flush_by_id', params, {+ fetchOptions: {+ loading: t('overview.api.loading.resendQueue'),+ successMessage: true,+ },+ })+}++export const deleteSendQueue = (params: { queue_ids: string[] }) => {+ return instance.post('/postfix_queue/delete_by_id', params, {+ fetchOptions: {+ loading: t('overview.api.loading.deleteQueue'),+ successMessage: true,+ },+ })+}++export const getSendQueueConfig = () => {+ return instance.get('/postfix_queue/get_config')+}++export const setSendQueueConfig = (params: Record<string, string>) => {+ return instance.post('/postfix_queue/set_all_config', params, {+ fetchOptions: {+ loading: t('overview.api.loading.setQueueConfig'),+ successMessage: true,+ },+ })+}++export const clearSendQueue = (params = {}) => {+ return instance.post('/postfix_queue/delete', params, {+ fetchOptions: {+ loading: t('overview.api.loading.clearQueue'),+ successMessage: true,+ },+ })+}diff --git a/core/frontend/src/components/base/bt-table-batch/index.vue b/core/frontend/src/components/base/bt-table-batch/index.vuenew file mode 100644index 00000000..951f4513--- /dev/null+++ b/core/frontend/src/components/base/bt-table-batch/index.vue@@ -0,0 +1,77 @@+<template>+ <div class="flex gap-10px">+ <div class="flex-center w-40px">+ <n-checkbox+ v-model:checked="checked"+ :disabled="checkedDisabled"+ :indeterminate="indeterminate">+ </n-checkbox>+ </div>+ <n-button+ v-for="item in options"+ :key="item.value"+ :disabled="btnDisabled"+ @click="onClick(item.value as string)">+ {{ item.label }}+ </n-button>+ </div>+</template>++<script lang="ts" setup>+import { DataTableCreateRowKey, DataTableRowData, DataTableRowKey, SelectOption } from 'naive-ui'++const { data, checkedRowKeys, rowKey } = defineProps({+ data: {+ type: Array as PropType<DataTableRowData[]>,+ default: () => [],+ },+ rowKey: {+ type: Function as PropType<DataTableCreateRowKey<any>>,+ required: true,+ },+ options: {+ type: Array as PropType<SelectOption[]>,+ default: () => [],+ },+ checkedRowKeys: {+ type: Array as PropType<DataTableRowKey[]>,+ default: () => [],+ },+})++const emit = defineEmits(['updateCheckedRowKeys', 'select'])++const checked = computed({+ get() {+ return checkedRowKeys.length > 0 && checkedRowKeys.length === data.length+ },+ set(val) {+ if (val) {+ emit(+ 'updateCheckedRowKeys',+ data.map(item => rowKey(item))+ )+ } else {+ emit('updateCheckedRowKeys', [])+ }+ },+})++const checkedDisabled = computed(() => {+ return data.length === 0+})++const indeterminate = computed(() => {+ return checkedRowKeys.length > 0 && checkedRowKeys.length < data.length+})++const btnDisabled = computed(() => {+ return checkedRowKeys.length === 0+})++const onClick = (val: string) => {+ emit('select', val, checkedRowKeys)+}+</script>++<style lang="scss" scoped></style>diff --git a/core/frontend/src/hooks/useDataTable.ts b/core/frontend/src/hooks/useDataTable.tsindex a8c901a1..13047e27 100644--- a/core/frontend/src/hooks/useDataTable.ts+++ b/core/frontend/src/hooks/useDataTable.ts@@ -6,19 +6,19 @@ type TableParams = {[key: string]: any}-interface UseDataTableOptions<T> {- params: T+interface UseDataTableOptions<T, K> {+ params: Kloading?: booleanimmediate?: booleanautoRefresh?: booleanrefreshInterval?: number- rowKey?: DataTableCreateRowKey+ rowKey?: DataTableCreateRowKey<T>fetchFn: (params: any) => Promise<unknown>- useParams?: (params: T) => TableParams+ useParams?: (params: K) => TableParams}export const useDataTable = <T = DataTableRowData, K = TableParams>(- options: UseDataTableOptions<K>+ options: UseDataTableOptions<T, K>) => {const {params,@@ -26,7 +26,7 @@ export const useDataTable = <T = DataTableRowData, K = TableParams>(useParams,loading = true,immediate = true,- rowKey = row => row.id as DataTableRowKey,+ rowKey = (row: any) => row.id,} = optionsconst loadingRef = ref(loading)@@ -70,10 +70,6 @@ export const useDataTable = <T = DataTableRowData, K = TableParams>(const fetchTable = (resetPage = false) => debouncedFetch(resetPage)const resetTable = () => fetchTable(true)- const onUpdateCheckedRowKeys = (keys: DataTableRowKey[]) => {- tableKeys.value = keys- }-const onUpdatePage = (page: number) => {tableParams.value.page = page}@@ -104,7 +100,18 @@ export const useDataTable = <T = DataTableRowData, K = TableParams>(data: tableData.value,loading: loadingRef.value,checkedRowKeys: tableKeys.value,- onUpdateCheckedRowKeys,+ onUpdateCheckedRowKeys: (keys: DataTableRowKey[]) => {+ tableKeys.value = keys+ },+ })),++ batchProps: computed(() => ({+ rowKey,+ data: tableData.value,+ checkedRowKeys: tableKeys.value,+ onUpdateCheckedRowKeys: (keys: DataTableRowKey[]) => {+ tableKeys.value = keys+ },})),pageProps: computed(() => ({diff --git a/core/frontend/src/i18n/lang/en.json b/core/frontend/src/i18n/lang/en.jsonindex d8705ba2..4d4f617d 100644--- a/core/frontend/src/i18n/lang/en.json+++ b/core/frontend/src/i18n/lang/en.json@@ -132,6 +132,7 @@"opened": "Opened","clicked": "Clicked","bounced": "Bounced",+ "delayedQueue": "Delayed Queue","mailProviders": "Mail Providers","sendStats": "Send Statistics","provider": {@@ -164,6 +165,68 @@"relay": "Relay","details": "Details"}+ },+ "sendQueue": {+ "title": "Send Queue",+ "breadcrumb": "Send Queue",+ "buttons": {+ "refresh": "Refresh Queue",+ "quickClear": "Quick Clear",+ "paramConfig": "Queue Parameter Configuration",+ "resend": "Resend",+ "batchDelete": "Batch Delete",+ "batchResend": "Resend"+ },+ "table": {+ "columns": {+ "sender": "Sender",+ "recipient": "Recipient",+ "arrivalTime": "Arrival Time",+ "messageSize": "Message Size",+ "action": "Action"+ }+ },+ "confirm": {+ "quickClear": {+ "title": "Quick Clear",+ "content": "Are you sure you want to quickly clear the queue?"+ },+ "resend": {+ "title": "Resend",+ "content": "Are you sure you want to resend the queue?"+ },+ "delete": {+ "title": "Delete Queue",+ "content": "Are you sure you want to delete this queue?"+ },+ "batchDelete": {+ "title": "Batch Delete",+ "content": "Are you sure you want to delete {count} send queues?"+ },+ "batchResend": {+ "title": "Batch Resend",+ "content": "Are you sure you want to resend {count} send queues?"+ }+ },+ "paramConfig": {+ "title": "Queue Parameter Configuration",+ "fields": {+ "bounceQueueLifetime": "Bounce Queue Lifetime",+ "maximalQueueLifetime": "Maximal Queue Lifetime",+ "minimalBackoffTime": "Minimal Backoff Time",+ "maximalBackoffTime": "Maximal Backoff Time",+ "queueRunDelay": "Queue Run Delay",+ "triggerTimeout": "Trigger Timeout"+ }+ }+ },+ "api": {+ "loading": {+ "resendQueue": "Resending queue, please wait...",+ "deleteQueue": "Deleting queue, please wait...",+ "setQueueConfig": "Setting queue parameters, please wait...",+ "clearQueue": "Clearing queue, please wait..."+ }}},"market": {@@ -337,7 +400,7 @@"createTpl": {"sourceUrl": "Source Url","useAiTools": "Use AI tools to help you automatically generate email content and improve your work efficiency.",- "create":"Create"+ "create": "Create"},"ai": {"title": "AI Template",@@ -350,7 +413,7 @@"edit": "Edit","copy": "Copy","copied": "Copied",- "apply":"Apply"+ "apply": "Apply"},"tips": {"saveShortcut": "[Ctrl + s] to save your change"@@ -358,7 +421,7 @@"loading": {"message": "Loading... Please wait."},- "send":"Send"+ "send": "Send"}},"contacts": {@@ -540,6 +603,63 @@"redirectLink": "Already Subscribed Redirect Link"}}+ },+ "suspend": {+ "title": "Suspended Emails",+ "buttons": {+ "scanInvalidDomains": "Scan Invalid Domains",+ "scanLogs": "Scan Logs",+ "autoBlockFailedEmails": "Auto block failed emails"+ },+ "search": {+ "emailPlaceholder": "Please enter email"+ },+ "columns": {+ "email": "Email",+ "description": "Description",+ "status": "Status",+ "addTime": "Add Time"+ },+ "status": {+ "invalid": "Invalid",+ "checking": "Checking"+ },+ "confirm": {+ "clear": {+ "title": "Clear",+ "content": "This will clear all data under that type, do you continue?"+ },+ "delete": {+ "title": "Delete",+ "content": "Are you sure you want to delete [{email}]"+ }+ },+ "scan": {+ "title": "Scan Invalid Domains",+ "confirmText": "Scan",+ "form": {+ "group": "Group",+ "method": "Method",+ "groupRequired": "Please select group"+ },+ "methods": {+ "noOperation": "no-operation",+ "addToExceptionTable": "Added to the exception prevention table",+ "deleteFromGroup": "The abnormal mailbox is deleted from the group"+ }+ },+ "scanLogs": {+ "title": "Scan Logs",+ "none": "None"+ },+ "api": {+ "loading": {+ "deleting": "Deleting, please wait...",+ "scanning": "Scanning, please wait...",+ "clearing": "Clearing, please wait...",+ "setting": "Setting, please wait..."+ }+ }}},"domain": {@@ -585,8 +705,8 @@"dnsSetup": "You need to add an A record in your DNS provider's console","cloudflare": "If using CloudFlare, please select [DNS only] when adding records"},- "createBrandInfo":"Automatically create brand information",- "modelNotice":"To use this feature, you need to integrate an AI model first.",+ "createBrandInfo": "Automatically create brand information",+ "modelNotice": "To use this feature, you need to integrate an AI model first.","integrateImmediately": "Integrate immediately","modelDescription": "AI-driven information import automatically analyzes and creates brand information from email domains. After creation, you can modify it at your discretion.","extractBrand": "Extract brand and color",@@ -595,7 +715,7 @@"customLogo": "Use a custom logo (optional)","specifyDomain": "Specify a domain name","addMoreUrls": "Add more URLs",- "maxUrl":"Maximum of 3 URLs can be filled in."+ "maxUrl": "Maximum of 3 URLs can be filled in."},"dns": {"title": "DNS Records",@@ -686,11 +806,11 @@},"specifyDomain": "Specify a domain name","addMoreUrls": "Add more URLs",- "createNow":"Create Immediately",- "brandInfo":"Brand information",- "noBrandInfo":"No brand information available.",- "fillDomain":"Please fill in the domain name",- "fillValidDomain":"Please fill in a valid domain name"+ "createNow": "Create Immediately",+ "brandInfo": "Brand information",+ "noBrandInfo": "No brand information available.",+ "fillDomain": "Please fill in the domain name",+ "fillValidDomain": "Please fill in a valid domain name"},"projectDetails": {"title": "Project Details",@@ -768,7 +888,7 @@},"common": {"daysAgo": "days ago",- "noBrandInfo":"There is no brand information for the current domain."+ "noBrandInfo": "There is no brand information for the current domain."}},"api": {@@ -1063,24 +1183,24 @@"clearing": "Clearing, please wait..."}},- "aiModel":{- "modelId":"Model ID",- "modelAlias":"Model Alias",- "modelFeature":"Model Feature",- "contentLength":"Maximum Context Length",- "supplierTitle":"Supplier Title",- "supplierName":"Supplier Name",- "cancel":"Cancel",- "confirm":"Confirm",- "aPIKey":"API Key",- "apiPath":"Base Url",- "check":"Check",- "getKey":"Click to Get Key",- "example":"Example",- "saveAPI":"Save API",- "model":"Model",- "byDefault":"By default, all models are retrieved from /models",- "addModel":"Add Model"+ "aiModel": {+ "modelId": "Model ID",+ "modelAlias": "Model Alias",+ "modelFeature": "Model Feature",+ "contentLength": "Maximum Context Length",+ "supplierTitle": "Supplier Title",+ "supplierName": "Supplier Name",+ "cancel": "Cancel",+ "confirm": "Confirm",+ "aPIKey": "API Key",+ "apiPath": "Base Url",+ "check": "Check",+ "getKey": "Click to Get Key",+ "example": "Example",+ "saveAPI": "Save API",+ "model": "Model",+ "byDefault": "By default, all models are retrieved from /models",+ "addModel": "Add Model"}},"api": {@@ -1142,4 +1262,4 @@"testing": "Testing, please wait..."}}-}\ No newline at end of file+}diff --git a/core/frontend/src/i18n/lang/ja.json b/core/frontend/src/i18n/lang/ja.jsonindex bf43c690..a5bf9d0b 100644--- a/core/frontend/src/i18n/lang/ja.json+++ b/core/frontend/src/i18n/lang/ja.json@@ -1,705 +1,825 @@{- "common": {- "all": {- "text": "すべて",- "domain": "すべてのドメイン"- },- "time": {- "today": "今日",- "yesterday": "昨日",- "last7days": "過去7日間",- "custom": "カスタム"- },- "columns": {- "actions": "操作"- },- "actions": {- "view": "閲覧",- "edit": "編集",- "delete": "削除",- "add": "追加",- "create": "作成",- "update": "更新",- "save": "保存",- "cancel": "キャンセル",- "confirm": "確認",- "back": "戻る",- "search": "検索",- "reset": "リセット",- "more": "その他",- "refresh": "再読み込み",- "copy": "コピー",- "restart": "再起動",- "import": "インポート",- "export": "エクスポート",- "download": "ダウンロード",- "upload": "アップロード",- "apply": "適用",- "test": "テスト",- "rename": "名前変更",- "preview": "プレビュー",- "modify": "修正",- "config": "設定",- "help": "ヘルプ"- },- "useCopy": {- "noText": "コピーするテキストがありません",- "success": "コピーに成功しました",- "failed": "コピーに失敗しました"- }- },- "components": {- "tableHelp": {- "text1": "質問や提案は {issues} に投稿し、プロジェクトを応援するために Github で {star} を付けてください。",- "text2": "皆様の積極的な参加を高く評価しています。ありがとうございます。"- },- "upload": {- "error": {- "fileSizeExceeded": "ファイル [{fileName}] のサイズは {maxSize}MB を超えることはできません",- "uploadFailed": "ファイルのアップロードに失敗しました。もう一度お試しください"- },- "prompt": {- "dragText": "クリックまたはファイルをドラッグしてこのエリアに追加",- "supportedFiles": "{suffix} 形式のファイルのみ対応"- }- }- },- "layout": {- "header": {- "submit": "リクエストを送信"- },- "menu": {- "overview": "概要",- "market": "マーケティング",- "task": "タスク",- "template": "テンプレート",- "contacts": "連絡先",- "subscribers": "購読者",- "group": "グループ",- "domain": "ドメイン",- "mailboxes": "メールボックス",- "settings": "設定",- "common": "共通設定",- "bcc": "BCC",- "forward": "メール転送",- "logout": "ログアウト"- }- },- "login": {- "title": "BillionMail",- "form": {- "usernamePlaceholder": "ユーザー名",- "passwordPlaceholder": "パスワード",- "loginButton": "ログイン",- "captchaPlaceholder": "認証コード",- "changeCaptcha": "クリックして変更",- "captcha": "認証コード"- },- "validation": {- "usernameRequired": "ユーザー名を入力してください!",- "passwordRequired": "パスワードを入力してください!",- "captchaRequired": "認証コードを入力してください"- },- "messages": {- "loginSuccess": "ログインに成功しました",- "loginFailed": "ログインに失敗しました",- "networkError": "ネットワークエラーです。後で再試行してください"- }- },- "user": {- "logout": {- "title": "確認",- "content": "ログアウトしてもよろしいですか?"- },- "api": {- "loading": {- "logout": "ログアウト中です。お待ちください..."- }- }- },- "overview": {- "delivered": "配信済み",- "opened": "開封済み",- "clicked": "クリック済み",- "bounced": "バウンス(送信失敗)",- "mailProviders": "メールプロバイダー",- "sendStats": "送信統計",- "provider": {- "mailProvider": "メールプロバイダー",- "delivered": "配信",- "open": "開封",- "click": "クリック",- "bounce": "バウンス"- },- "send": {- "successRate": "成功率",- "success": "成功",- "fail": "失敗",- "sendSuccess": "送信成功",- "sendFail": "送信失敗"- },- "rate": {- "openRate": "開封率",- "clickRate": "クリック率",- "bounceRate": "バウンス率"- },- "sendFailDetails": {- "title": "送信失敗の詳細",- "columns": {- "recipient": "受信者",- "dsn": "DSN",- "delay": "遅延",- "delays": "遅延数",- "status": "ステータス",- "relay": "リレー",- "details": "詳細"- }- }- },- "market": {- "task": {- "title": "タスク",- "actions": {- "add": "タスク追加",- "detail": "表示",- "export": "エクスポート",- "send": "送信",- "pause": "一時停止"- },- "columns": {- "time": "時間",- "subject": "件名",- "sender": "送信者",- "recipients": "宛先",- "success": "成功",- "failed": "失敗",- "status": "ステータス",- "remark": "備考",- "progress": "進捗",- "email": "メール",- "errorMsg": "エラーメッセージ"- },- "status": {- "pending": "保留中",- "processing": "処理中",- "done": "完了"- },- "search": {- "subjectPlaceholder": "件名で検索"- },- "changeStatus": {- "title": "タスクステータス変更 [{subject}]",- "startConfirm": "今すぐタスクを開始しますか?",- "pauseConfirm": "タスクを一時停止後、再開できます!"- },- "delete": {- "title": "タスク削除",- "confirm": "タスク「{subject}」を削除してもよろしいですか?"- },- "detail": {- "title": "タスク詳細",- "displayName": "表示名",- "sender": "送信者",- "subject": "メール件名",- "groups": "グループ",- "sendTime": "送信時間",- "unsubscribeLink": "購読解除リンク",- "threads": "スレッド数",- "remark": "備考",- "yes": "はい",- "no": "いいえ",- "auto": "自動"- },- "edit": {- "addTitle": "タスク追加",- "from": "送信元",- "to": "宛先",- "displayName": "表示名",- "displayNamePlaceholder": "表示名を入力してください",- "subject": "件名",- "subjectPlaceholder": "メール件名を入力してください",- "recipients": "受信者",- "recipientsPlaceholder": "受信者グループを選択してください",- "recipientsCount": "メール送信({count} 件)",- "template": "メールテンプレート",- "saveOutbox": "送信済みに保存",- "unsubscribeLink": "購読解除リンク",- "threads": "スレッド数",- "threadsAuto": "自動",- "threadsCustom": "カスタム",- "sendTime": "送信時間",- "sendTimeNow": "今すぐ送信",- "sendTimeSchedule": "スケジュール",- "remark": "備考",- "remarkPlaceholder": "備考を入力してください",- "testEmail": "テストメール",- "testEmailPlaceholder": "テストメールを入力してください",- "sendTest": "テストメール送信",- "viewCase": "ケースを見る",- "preview": {- "empty": "プレビューするメールテンプレートを選択してください"- },- "validation": {- "displayNameRequired": "表示名を入力してください",- "subjectRequired": "メール件名を入力してください",- "recipientsRequired": "連絡先を選択してください",- "sendTimeRequired": "送信時間を選択してください",- "testEmailRequired": "テストメールを入力してください",- "templateRequired": "メールテンプレートを選択してください"- },- "discard": {- "title": "確認",- "content": "現在の編集を破棄しますか?"- }- },- "createGroup": {- "title": "グループ作成",- "groupName": "グループ名",- "email": "メール",- "groupNamePlaceholder": "グループ名を入力してください",- "validation": {- "groupNameRequired": "グループ名を入力してください"- }- }- },- "template": {- "title": "テンプレート",- "name": "テンプレート名",- "content": "テンプレート内容",- "uploadHtml": "HTML ファイルをアップロード",- "file": "テンプレートファイル",- "actions": {- "add": "テンプレート追加",- "preview": "プレビュー",- "duplicate": "複製",- "export": "エクスポート",- "import": "インポート"- },- "columns": {- "name": "テンプレート名",- "type": "タイプ",- "createdAt": "作成日"- },- "search": {- "namePlaceholder": "テンプレート名で検索"- },- "delete": {- "title": "テンプレート削除",- "confirm": "テンプレート {name} を削除してもよろしいですか?"- },- "form": {- "name": "テンプレート名",- "type": "テンプレートタイプ",- "content": "テンプレート内容"- },- "add": {- "title": "テンプレート追加",- "namePlaceholder": "テンプレート名を入力してください",- "validation": {- "nameRequired": "テンプレート名を入力してください",- "uploadRequired": "HTML ファイルをアップロードしてください"- }- },- "preview": {- "title": "テンプレートプレビュー"- }- }- },- "contacts": {- "subscribers": {- "search": {- "emailPlaceholder": "メールアドレスを入力して検索"- },- "columns": {- "email": "メール",- "name": "グループ名",- "createdAt": "作成日時"- },- "status": {- "subscribed": "購読中",- "unsubscribed": "購読解除"- },- "actions": {- "changeGroup": "グループ変更"- },- "delete": {- "title": "購読者削除",- "confirm": "購読者 {email} を削除してもよろしいですか?"- },- "select": {- "prefix": "グループ: "- },- "edit": {- "title": "グループ変更",- "email": "メール",- "group": "グループ",- "validation": {- "emailRequired": "メールを入力してください",- "groupRequired": "グループを選択してください"- }- },- "import": {- "title": "連絡先インポート",- "group": "グループ",- "data": "データ",- "pasteData": "データを貼り付け",- "uploadFile": "ファイルをアップロード",- "pastePlaceholder": "1行につき1メールでデータを貼り付けてください",- "fileTypeHint": "ファイル形式: txt、1行につき1メール、5MB以内",- "validation": {- "groupRequired": "グループを選択してください",- "dataRequired": "1行につき1メールでデータを貼り付けてください",- "fileRequired": "ファイルをアップロードしてください"- }- },- "loading": {- "importSubscribers": "連絡先をインポート中... お待ちください",- "updateSubscriberGroup": "グループを更新中... お待ちください",- "deleteSubscriber": "連絡先を削除中... お待ちください"- }- },- "group": {- "search": {- "namePlaceholder": "グループ名で検索"- },- "columns": {- "name": "グループ名",- "subscribers": "購読者数",- "unsubscribe": "解除数",- "createdAt": "作成日"- },- "form": {- "name": "グループ名",- "file": "ファイル",- "nameRequired": "グループ名を入力してください"- },- "add": {- "title": "グループ追加"- },- "rename": {- "title": "グループ名変更"- },- "delete": {- "title": "グループ削除",- "confirm": "グループ {name} を削除してもよろしいですか?"- },- "fileUpload": {- "hint": "ファイル形式: txt、1行につき1メール、5MB以内",- "emptyHint": "ファイルをアップロードしない場合は空のグループが作成されます"- },- "loading": {- "createGroup": "グループ作成中... お待ちください",- "updateGroup": "グループ更新中... お待ちください",- "deleteGroup": "グループ削除中... お待ちください"- }- }- },- "domain": {- "title": "メールドメイン",- "addDomain": "ドメイン追加",- "help": "メール送信に使用するドメインを追加してください",- "columns": {- "domain": "ドメイン",- "quota": "クォータ",- "mailboxes": "メールボックス",- "defaultMailboxSize": "デフォルトメールボックスサイズ",- "actions": "操作"- },- "actions": {- "dnsRecord": "DNS レコード"- },- "delete": {- "title": "ドメイン削除",- "confirm": "ドメイン [{domain}] を削除してもよろしいですか?"- },- "waitAndCheckDomainStatus":{- "success":"ブランド情報の初期化が成功しました。",- "error":"ブランド情報の初期化が失敗しました。",- "loading":"ブランド情報を初期化中です、しばらくお待ちください..."- },- "form": {- "addTitle": "ドメイン追加",- "editTitle": "ドメイン編集",- "domain": "ドメイン",- "domainPlaceholder": "例: aapanel.com",- "urlsPlacement": "例: https://aapanel.com",- "aRecord": "A レコード",- "aRecordPlaceholder": "例: mail.aapanel.com",- "quota": "ドメインクォータ",- "mailboxCount": "メールボックス数",- "globalCatch": "Catch All",- "globalCatchPlaceholder": "存在しないメールをこのアドレスへ転送",- "validation": {- "domainRequired": "ドメイン名は空にできません!"- },- "tips": {- "aRecordFailed": "A レコードの解決に失敗しました。A レコードが正しくサーバーIPに向いているか確認してください",- "dnsSetup": "DNS プロバイダーのコンソールで A レコードを追加する必要があります",- "cloudflare": "CloudFlare を使用している場合、レコード追加時に [DNS only] を選択してください"- }- },- "dns": {- "title": "DNS レコード",- "verify": "レコードを設定したら、DNS 解決を検証",- "status": {- "ok": "OK",- "notSet": "未設定"- },- "columns": {- "domain": "ドメイン"- },- "table": {- "recordType": "レコードタイプ",- "host": "ホスト",- "value": "値",- "mxPriority": "MX 優先度"- },- "step1": {- "title": "ステップ1: A レコードを追加"- },- "step2": {- "title": "ステップ2: MX レコードを追加",- "description": "ドメインサービスプロバイダーにログインし、メールサービス用の MX レコードを追加してください(以下のパラメータをコピーして使用してください)"- },- "step3": {- "title": "ステップ3: TXT レコードを追加",- "description": "メールスパム対策の TXT レコードを追加してください(以下のパラメータをコピーして使用してください)"- },- "step4": {- "title": "ステップ4: PTR レコードを追加",- "description1": "(任意)PTR レコードは逆引きDNSに使用されます",- "description2": "IP プロバイダーに連絡して PTR レコードを作成してください"- }- },- "ssl": {- "expired": "期限切れ",- "daysLeft": "{days} 日",- "notSet": "未設定",- "title": "ドメイン SSL",- "tabs": {- "otherCertificate": "他の証明書"- },- "cert": {- "brand": "ブランド",- "domains": "証明書対象ドメイン",- "privateKey": "秘密鍵 (KEY)",- "certificate": "証明書 (CRT/PEM)",- "keyPlaceholder": "秘密鍵を入力",- "certPlaceholder": "証明書を入力"- },- "actions": {- "applyFree": "無料証明書を申請"- },- "tips": {- "paste": "KEY と CRT の内容を貼り付けて保存してください",- "chainCheck": "ブラウザで証明書チェーンの不備が表示された場合、PEM 証明書が正しく連結されているか確認してください",- "pemFormat": "PEM 形式証明書 = ドメイン証明書 .crt + ルート証明書 (root_bundle).crt",- "defaultSite": "SSL デフォルトサイトが指定されていない場合、SSL 未設定サイトは SSL 設定済みサイトの HTTPS を使用します"- }- },- "api": {- "loading": {- "creating": "ドメインを作成中... お待ちください",- "updating": "ドメインを更新中... お待ちください",- "deleting": "ドメインを削除中... お待ちください",- "settingSSL": "SSL を設定中... お待ちください",- "applyingCert": "SSL 証明書を申請中... お待ちください",- "refreshingDns": "DNS レコードを更新中... お待ちください"- }- }- },- "mailbox": {- "title": "メールボックス管理",- "actions": {- "add": "メールボックス追加"- },- "search": {- "usernamePlaceholder": "ユーザー名検索"- },- "domain": {- "selectPlaceholder": "ドメイン選択"- },- "columns": {- "username": "ユーザー名",- "password": "パスワード",- "loginInfo": "ログイン情報",- "quota": "クォータ",- "type": "タイプ",- "status": "ステータス"- },- "userType": {- "admin": "管理者",- "general": "一般ユーザー"- },- "form": {- "addTitle": "メールボックス追加",- "editTitle": "メールボックス編集",- "emailAddress": "メールアドレス",- "password": "パスワード",- "passwordPlaceholder": "メールボックスのパスワードを入力",- "quota": "クォータ",- "userType": "ユーザータイプ",- "status": "ステータス"- },- "validation": {- "emailRequired": "メールアドレスを入力してください",- "passwordLength": "パスワードは8文字以上である必要があります",- "passwordFormat": "パスワードは大文字・小文字・数字をそれぞれ1文字以上含む必要があります"- },- "delete": {- "title": "メールボックス削除",- "confirm": "メールボックス [{name}] を削除してもよろしいですか?"- },- "loginInfo": {- "template": "WebMail: {webmail}\nユーザー名: {username}\nパスワード: {password}\nPOP サービス [ アドレス: {mx} ポート: 110/995 ]\nIMAP サービス [ アドレス: {mx} ポート: 143/993 ]\nSMTP サービス [ アドレス: {mx} ポート: 25/465/587 ]"- },- "api": {- "loading": {- "creating": "メールボックスを作成中... お待ちください",- "updating": "メールボックスを更新中... お待ちください",- "deleting": "メールボックスを削除中... お待ちください"- }- }- },- "smtp": {- "title": "SMTP リレーサービス管理",- "description": "複数のサービスプロバイダーに対応した SMTP リレーサービスを管理",- "empty": "SMTP リレーサービスがありません",- "providers": {- "gmail": "Gmail",- "mailgun": "Mailgun",- "aws": "AWS SES",- "sendgrid": "SendGrid",- "custom": "カスタム SMTP"- },- "delete": {- "title": "リレー削除",- "confirm": "リレーサービス [{name}] を削除してもよろしいですか?"- },- "card": {- "domain": "紐付けドメイン",- "server": "サーバー",- "port": "ポート",- "username": "ユーザー名"- },- "form": {- "addTitle": "SMTP 追加",- "editTitle": "SMTP 編集",- "remark": "備考",- "domain": "紐付けドメイン",- "server": "SMTP サーバー",- "port": "SMTP ポート",- "username": "ユーザー名",- "password": "パスワード",- "testConnection": "接続テスト",- "bind": " [紐付け済み]",- "validation": {- "nameRequired": "リレー名を入力してください",- "domainRequired": "紐付けドメインを選択してください",- "serverRequired": "SMTP サーバーを入力してください",- "portRequired": "SMTP ポートを入力してください",- "usernameRequired": "ユーザー名を入力してください",- "passwordRequired": "パスワードを入力してください"- }- },- "status": {- "online": "オンライン",- "offline": "オフライン"- },- "api": {- "loading": {- "adding": "SMTP を追加中... お待ちください",- "editing": "SMTP を編集中... お待ちください",- "testing": "SMTP 接続をテスト中... お待ちください",- "deleting": "SMTP を削除中... お待ちください"- }- }- },- "settings": {- "title": "設定",- "service": {- "title": "サービス状態",- "tips": "ヒント: Ctrl+F で検索、Ctrl+S で保存、Ctrl+H で検索置換",- "editTitle": "{name} をオンライン編集",- "columns": {- "name": "サービス名",- "status": "状態"- },- "status": {- "running": "稼働中",- "stopped": "停止中"- },- "actions": {- "restart": "再起動"- },- "restart": {- "title": "サービス再起動",- "confirm": "[{name}] を再起動してもよろしいですか?"- }- },- "bcc": {- "title": "BCC 管理",- "add": "BCC 追加",- "edit": "BCC 編集",- "needCopy": "コピー元",- "copyTo": "コピー先",- "domain": "ドメイン",- "type": "BCC タイプ",- "status": "状態",- "active": "有効",- "types": {- "sender": "送信時",- "recipient": "受信時"- },- "delete": {- "title": "BCC [{address}] を削除",- "content": "BCC 設定を削除しますか?"- },- "placeholders": {- "needCopy": "BCC 対象ユーザーを入力",- "copyTo": "BCC 受信メールを入力"- },- "loading": {- "adding": "BCC を追加中... お待ちください",- "saving": "BCC を保存中... お待ちください",- "deleting": "BCC を削除中... お待ちください"- }- },- "forward": {- "add": "転送追加",- "edit": "転送編集",- "columns": {- "address": "アドレス",- "goto": "転送先",- "domain": "ドメイン",- "created": "作成日",- "modified": "更新日",- "status": "状態"- },- "form": {- "status": "状態",- "forwardedUsers": "転送元ユーザー",- "forwardedUsersPlaceholder": "転送元メールを入力",- "domain": "ドメイン",- "domainPlaceholder": "転送元ユーザーのドメイン名",- "receivingUser": "受信ユーザー",- "receivingUserPlaceholder": "転送メール受信者。複数ある場合は改行区切り"- },- "delete": {- "title": "メール転送削除",- "content": "メール転送 [{address}] を削除してもよろしいですか?"- },- "loading": {- "adding": "メール転送を追加中... お待ちください",- "editing": "メール転送を編集中... お待ちください",- "deleting": "メール転送を削除中... お待ちください"- }- },- "api": {- "loading": {- "restarting": "サービスを再起動中... お待ちください",- "saving": "設定を保存中... お待ちください"- }- }- }+ "common": {+ "all": {+ "text": "すべて",+ "domain": "すべてのドメイン"+ },+ "time": {+ "today": "今日",+ "yesterday": "昨日",+ "last7days": "過去7日間",+ "custom": "カスタム"+ },+ "columns": {+ "actions": "操作"+ },+ "actions": {+ "view": "閲覧",+ "edit": "編集",+ "delete": "削除",+ "add": "追加",+ "create": "作成",+ "update": "更新",+ "save": "保存",+ "cancel": "キャンセル",+ "confirm": "確認",+ "back": "戻る",+ "search": "検索",+ "reset": "リセット",+ "more": "その他",+ "refresh": "再読み込み",+ "copy": "コピー",+ "restart": "再起動",+ "import": "インポート",+ "export": "エクスポート",+ "download": "ダウンロード",+ "upload": "アップロード",+ "apply": "適用",+ "test": "テスト",+ "rename": "名前変更",+ "preview": "プレビュー",+ "modify": "修正",+ "config": "設定",+ "help": "ヘルプ"+ },+ "useCopy": {+ "noText": "コピーするテキストがありません",+ "success": "コピーに成功しました",+ "failed": "コピーに失敗しました"+ }+ },+ "components": {+ "tableHelp": {+ "text1": "質問や提案は {issues} に投稿し、プロジェクトを応援するために Github で {star} を付けてください。",+ "text2": "皆様の積極的な参加を高く評価しています。ありがとうございます。"+ },+ "upload": {+ "error": {+ "fileSizeExceeded": "ファイル [{fileName}] のサイズは {maxSize}MB を超えることはできません",+ "uploadFailed": "ファイルのアップロードに失敗しました。もう一度お試しください"+ },+ "prompt": {+ "dragText": "クリックまたはファイルをドラッグしてこのエリアに追加",+ "supportedFiles": "{suffix} 形式のファイルのみ対応"+ }+ }+ },+ "layout": {+ "header": {+ "submit": "リクエストを送信"+ },+ "menu": {+ "overview": "概要",+ "market": "マーケティング",+ "task": "タスク",+ "template": "テンプレート",+ "contacts": "連絡先",+ "subscribers": "購読者",+ "group": "グループ",+ "domain": "ドメイン",+ "mailboxes": "メールボックス",+ "settings": "設定",+ "common": "共通設定",+ "bcc": "BCC",+ "forward": "メール転送",+ "logout": "ログアウト"+ }+ },+ "login": {+ "title": "BillionMail",+ "form": {+ "usernamePlaceholder": "ユーザー名",+ "passwordPlaceholder": "パスワード",+ "loginButton": "ログイン",+ "captchaPlaceholder": "認証コード",+ "changeCaptcha": "クリックして変更",+ "captcha": "認証コード"+ },+ "validation": {+ "usernameRequired": "ユーザー名を入力してください!",+ "passwordRequired": "パスワードを入力してください!",+ "captchaRequired": "認証コードを入力してください"+ },+ "messages": {+ "loginSuccess": "ログインに成功しました",+ "loginFailed": "ログインに失敗しました",+ "networkError": "ネットワークエラーです。後で再試行してください"+ }+ },+ "user": {+ "logout": {+ "title": "確認",+ "content": "ログアウトしてもよろしいですか?"+ },+ "api": {+ "loading": {+ "logout": "ログアウト中です。お待ちください..."+ }+ }+ },+ "overview": {+ "delivered": "配信済み",+ "opened": "開封済み",+ "clicked": "クリック済み",+ "bounced": "バウンス(送信失敗)",+ "delayedQueue": "遅延キュー",+ "mailProviders": "メールプロバイダー",+ "sendStats": "送信統計",+ "provider": {+ "mailProvider": "メールプロバイダー",+ "delivered": "配信",+ "open": "開封",+ "click": "クリック",+ "bounce": "バウンス"+ },+ "send": {+ "successRate": "成功率",+ "success": "成功",+ "fail": "失敗",+ "sendSuccess": "送信成功",+ "sendFail": "送信失敗"+ },+ "rate": {+ "openRate": "開封率",+ "clickRate": "クリック率",+ "bounceRate": "バウンス率"+ },+ "sendFailDetails": {+ "title": "送信失敗の詳細",+ "columns": {+ "recipient": "受信者",+ "dsn": "DSN",+ "delay": "遅延",+ "delays": "遅延数",+ "status": "ステータス",+ "relay": "リレー",+ "details": "詳細"+ }+ },+ "sendQueue": {+ "title": "送信キュー",+ "breadcrumb": "送信キュー",+ "buttons": {+ "refresh": "キューを更新",+ "quickClear": "クイッククリア",+ "paramConfig": "キューパラメータ設定",+ "resend": "再送信",+ "batchDelete": "一括削除",+ "batchResend": "再送信"+ },+ "table": {+ "columns": {+ "sender": "送信者",+ "recipient": "受信者",+ "arrivalTime": "キュー追加時間",+ "messageSize": "メールサイズ",+ "action": "操作"+ }+ },+ "confirm": {+ "quickClear": {+ "title": "クイッククリア",+ "content": "キューをクイッククリアしますか?"+ },+ "resend": {+ "title": "再送信",+ "content": "キューを再送信しますか?"+ },+ "delete": {+ "title": "キューを削除",+ "content": "このキューを削除しますか?"+ },+ "batchDelete": {+ "title": "一括削除",+ "content": "{count}個の送信キューを削除しますか?"+ },+ "batchResend": {+ "title": "一括再送信",+ "content": "{count}個の送信キューを再送信しますか?"+ }+ },+ "paramConfig": {+ "title": "キューパラメータ設定",+ "fields": {+ "bounceQueueLifetime": "バウンスキューライフタイム",+ "maximalQueueLifetime": "最大キューライフタイム",+ "minimalBackoffTime": "最小バックオフ時間",+ "maximalBackoffTime": "最大バックオフ時間",+ "queueRunDelay": "キュー実行遅延",+ "triggerTimeout": "トリガータイムアウト"+ }+ }+ },+ "api": {+ "loading": {+ "resendQueue": "キューを再送信中です。しばらくお待ちください...",+ "deleteQueue": "キューを削除中です。しばらくお待ちください...",+ "setQueueConfig": "キューパラメータを設定中です。しばらくお待ちください...",+ "clearQueue": "キューをクリア中です。しばらくお待ちください..."+ }+ }+ },+ "market": {+ "task": {+ "title": "タスク",+ "actions": {+ "add": "タスク追加",+ "detail": "表示",+ "export": "エクスポート",+ "send": "送信",+ "pause": "一時停止"+ },+ "columns": {+ "time": "時間",+ "subject": "件名",+ "sender": "送信者",+ "recipients": "宛先",+ "success": "成功",+ "failed": "失敗",+ "status": "ステータス",+ "remark": "備考",+ "progress": "進捗",+ "email": "メール",+ "errorMsg": "エラーメッセージ"+ },+ "status": {+ "pending": "保留中",+ "processing": "処理中",+ "done": "完了"+ },+ "search": {+ "subjectPlaceholder": "件名で検索"+ },+ "changeStatus": {+ "title": "タスクステータス変更 [{subject}]",+ "startConfirm": "今すぐタスクを開始しますか?",+ "pauseConfirm": "タスクを一時停止後、再開できます!"+ },+ "delete": {+ "title": "タスク削除",+ "confirm": "タスク「{subject}」を削除してもよろしいですか?"+ },+ "detail": {+ "title": "タスク詳細",+ "displayName": "表示名",+ "sender": "送信者",+ "subject": "メール件名",+ "groups": "グループ",+ "sendTime": "送信時間",+ "unsubscribeLink": "購読解除リンク",+ "threads": "スレッド数",+ "remark": "備考",+ "yes": "はい",+ "no": "いいえ",+ "auto": "自動"+ },+ "edit": {+ "addTitle": "タスク追加",+ "from": "送信元",+ "to": "宛先",+ "displayName": "表示名",+ "displayNamePlaceholder": "表示名を入力してください",+ "subject": "件名",+ "subjectPlaceholder": "メール件名を入力してください",+ "recipients": "受信者",+ "recipientsPlaceholder": "受信者グループを選択してください",+ "recipientsCount": "メール送信({count} 件)",+ "template": "メールテンプレート",+ "saveOutbox": "送信済みに保存",+ "unsubscribeLink": "購読解除リンク",+ "threads": "スレッド数",+ "threadsAuto": "自動",+ "threadsCustom": "カスタム",+ "sendTime": "送信時間",+ "sendTimeNow": "今すぐ送信",+ "sendTimeSchedule": "スケジュール",+ "remark": "備考",+ "remarkPlaceholder": "備考を入力してください",+ "testEmail": "テストメール",+ "testEmailPlaceholder": "テストメールを入力してください",+ "sendTest": "テストメール送信",+ "viewCase": "ケースを見る",+ "preview": {+ "empty": "プレビューするメールテンプレートを選択してください"+ },+ "validation": {+ "displayNameRequired": "表示名を入力してください",+ "subjectRequired": "メール件名を入力してください",+ "recipientsRequired": "連絡先を選択してください",+ "sendTimeRequired": "送信時間を選択してください",+ "testEmailRequired": "テストメールを入力してください",+ "templateRequired": "メールテンプレートを選択してください"+ },+ "discard": {+ "title": "確認",+ "content": "現在の編集を破棄しますか?"+ }+ },+ "createGroup": {+ "title": "グループ作成",+ "groupName": "グループ名",+ "email": "メール",+ "groupNamePlaceholder": "グループ名を入力してください",+ "validation": {+ "groupNameRequired": "グループ名を入力してください"+ }+ }+ },+ "template": {+ "title": "テンプレート",+ "name": "テンプレート名",+ "content": "テンプレート内容",+ "uploadHtml": "HTML ファイルをアップロード",+ "file": "テンプレートファイル",+ "actions": {+ "add": "テンプレート追加",+ "preview": "プレビュー",+ "duplicate": "複製",+ "export": "エクスポート",+ "import": "インポート"+ },+ "columns": {+ "name": "テンプレート名",+ "type": "タイプ",+ "createdAt": "作成日"+ },+ "search": {+ "namePlaceholder": "テンプレート名で検索"+ },+ "delete": {+ "title": "テンプレート削除",+ "confirm": "テンプレート {name} を削除してもよろしいですか?"+ },+ "form": {+ "name": "テンプレート名",+ "type": "テンプレートタイプ",+ "content": "テンプレート内容"+ },+ "add": {+ "title": "テンプレート追加",+ "namePlaceholder": "テンプレート名を入力してください",+ "validation": {+ "nameRequired": "テンプレート名を入力してください",+ "uploadRequired": "HTML ファイルをアップロードしてください"+ }+ },+ "preview": {+ "title": "テンプレートプレビュー"+ }+ }+ },+ "contacts": {+ "subscribers": {+ "search": {+ "emailPlaceholder": "メールアドレスを入力して検索"+ },+ "columns": {+ "email": "メール",+ "name": "グループ名",+ "createdAt": "作成日時"+ },+ "status": {+ "subscribed": "購読中",+ "unsubscribed": "購読解除"+ },+ "actions": {+ "changeGroup": "グループ変更"+ },+ "delete": {+ "title": "購読者削除",+ "confirm": "購読者 {email} を削除してもよろしいですか?"+ },+ "select": {+ "prefix": "グループ: "+ },+ "edit": {+ "title": "グループ変更",+ "email": "メール",+ "group": "グループ",+ "validation": {+ "emailRequired": "メールを入力してください",+ "groupRequired": "グループを選択してください"+ }+ },+ "import": {+ "title": "連絡先インポート",+ "group": "グループ",+ "data": "データ",+ "pasteData": "データを貼り付け",+ "uploadFile": "ファイルをアップロード",+ "pastePlaceholder": "1行につき1メールでデータを貼り付けてください",+ "fileTypeHint": "ファイル形式: txt、1行につき1メール、5MB以内",+ "validation": {+ "groupRequired": "グループを選択してください",+ "dataRequired": "1行につき1メールでデータを貼り付けてください",+ "fileRequired": "ファイルをアップロードしてください"+ }+ },+ "loading": {+ "importSubscribers": "連絡先をインポート中... お待ちください",+ "updateSubscriberGroup": "グループを更新中... お待ちください",+ "deleteSubscriber": "連絡先を削除中... お待ちください"+ }+ },+ "group": {+ "search": {+ "namePlaceholder": "グループ名で検索"+ },+ "columns": {+ "name": "グループ名",+ "subscribers": "購読者数",+ "unsubscribe": "解除数",+ "createdAt": "作成日"+ },+ "form": {+ "name": "グループ名",+ "file": "ファイル",+ "nameRequired": "グループ名を入力してください"+ },+ "add": {+ "title": "グループ追加"+ },+ "rename": {+ "title": "グループ名変更"+ },+ "delete": {+ "title": "グループ削除",+ "confirm": "グループ {name} を削除してもよろしいですか?"+ },+ "fileUpload": {+ "hint": "ファイル形式: txt、1行につき1メール、5MB以内",+ "emptyHint": "ファイルをアップロードしない場合は空のグループが作成されます"+ },+ "loading": {+ "createGroup": "グループ作成中... お待ちください",+ "updateGroup": "グループ更新中... お待ちください",+ "deleteGroup": "グループ削除中... お待ちください"+ }+ },+ "suspend": {+ "title": "異常メールボックス",+ "buttons": {+ "scanInvalidDomains": "無効ドメインをスキャン",+ "scanLogs": "スキャンログ",+ "autoBlockFailedEmails": "失敗メールを自動ブロック"+ },+ "search": {+ "emailPlaceholder": "メールアドレスを入力してください"+ },+ "columns": {+ "email": "メール",+ "description": "説明",+ "status": "ステータス",+ "addTime": "追加時間"+ },+ "status": {+ "invalid": "無効",+ "checking": "チェック中"+ },+ "confirm": {+ "clear": {+ "title": "クリア",+ "content": "このタイプのすべてのデータをクリアします。続行しますか?"+ },+ "delete": {+ "title": "削除",+ "content": "[{email}] を削除してもよろしいですか"+ }+ },+ "scan": {+ "title": "無効ドメインをスキャン",+ "confirmText": "スキャン",+ "form": {+ "group": "グループ",+ "method": "方法",+ "groupRequired": "グループを選択してください"+ },+ "methods": {+ "noOperation": "操作なし",+ "addToExceptionTable": "例外防止テーブルに追加",+ "deleteFromGroup": "グループから異常メールボックスを削除"+ }+ },+ "scanLogs": {+ "title": "スキャンログ",+ "none": "なし"+ },+ "api": {+ "loading": {+ "deleting": "削除中です。しばらくお待ちください...",+ "scanning": "スキャン中です。しばらくお待ちください...",+ "clearing": "クリア中です。しばらくお待ちください...",+ "setting": "設定中です。しばらくお待ちください..."+ }+ }+ }+ },+ "domain": {+ "title": "メールドメイン",+ "addDomain": "ドメイン追加",+ "help": "メール送信に使用するドメインを追加してください",+ "columns": {+ "domain": "ドメイン",+ "quota": "クォータ",+ "mailboxes": "メールボックス",+ "defaultMailboxSize": "デフォルトメールボックスサイズ",+ "actions": "操作"+ },+ "actions": {+ "dnsRecord": "DNS レコード"+ },+ "delete": {+ "title": "ドメイン削除",+ "confirm": "ドメイン [{domain}] を削除してもよろしいですか?"+ },+ "waitAndCheckDomainStatus": {+ "success": "ブランド情報の初期化が成功しました。",+ "error": "ブランド情報の初期化が失敗しました。",+ "loading": "ブランド情報を初期化中です、しばらくお待ちください..."+ },+ "form": {+ "addTitle": "ドメイン追加",+ "editTitle": "ドメイン編集",+ "domain": "ドメイン",+ "domainPlaceholder": "例: aapanel.com",+ "urlsPlacement": "例: https://aapanel.com",+ "aRecord": "A レコード",+ "aRecordPlaceholder": "例: mail.aapanel.com",+ "quota": "ドメインクォータ",+ "mailboxCount": "メールボックス数",+ "globalCatch": "Catch All",+ "globalCatchPlaceholder": "存在しないメールをこのアドレスへ転送",+ "validation": {+ "domainRequired": "ドメイン名は空にできません!"+ },+ "tips": {+ "aRecordFailed": "A レコードの解決に失敗しました。A レコードが正しくサーバーIPに向いているか確認してください",+ "dnsSetup": "DNS プロバイダーのコンソールで A レコードを追加する必要があります",+ "cloudflare": "CloudFlare を使用している場合、レコード追加時に [DNS only] を選択してください"+ }+ },+ "dns": {+ "title": "DNS レコード",+ "verify": "レコードを設定したら、DNS 解決を検証",+ "status": {+ "ok": "OK",+ "notSet": "未設定"+ },+ "columns": {+ "domain": "ドメイン"+ },+ "table": {+ "recordType": "レコードタイプ",+ "host": "ホスト",+ "value": "値",+ "mxPriority": "MX 優先度"+ },+ "step1": {+ "title": "ステップ1: A レコードを追加"+ },+ "step2": {+ "title": "ステップ2: MX レコードを追加",+ "description": "ドメインサービスプロバイダーにログインし、メールサービス用の MX レコードを追加してください(以下のパラメータをコピーして使用してください)"+ },+ "step3": {+ "title": "ステップ3: TXT レコードを追加",+ "description": "メールスパム対策の TXT レコードを追加してください(以下のパラメータをコピーして使用してください)"+ },+ "step4": {+ "title": "ステップ4: PTR レコードを追加",+ "description1": "(任意)PTR レコードは逆引きDNSに使用されます",+ "description2": "IP プロバイダーに連絡して PTR レコードを作成してください"+ }+ },+ "ssl": {+ "expired": "期限切れ",+ "daysLeft": "{days} 日",+ "notSet": "未設定",+ "title": "ドメイン SSL",+ "tabs": {+ "otherCertificate": "他の証明書"+ },+ "cert": {+ "brand": "ブランド",+ "domains": "証明書対象ドメイン",+ "privateKey": "秘密鍵 (KEY)",+ "certificate": "証明書 (CRT/PEM)",+ "keyPlaceholder": "秘密鍵を入力",+ "certPlaceholder": "証明書を入力"+ },+ "actions": {+ "applyFree": "無料証明書を申請"+ },+ "tips": {+ "paste": "KEY と CRT の内容を貼り付けて保存してください",+ "chainCheck": "ブラウザで証明書チェーンの不備が表示された場合、PEM 証明書が正しく連結されているか確認してください",+ "pemFormat": "PEM 形式証明書 = ドメイン証明書 .crt + ルート証明書 (root_bundle).crt",+ "defaultSite": "SSL デフォルトサイトが指定されていない場合、SSL 未設定サイトは SSL 設定済みサイトの HTTPS を使用します"+ }+ },+ "api": {+ "loading": {+ "creating": "ドメインを作成中... お待ちください",+ "updating": "ドメインを更新中... お待ちください",+ "deleting": "ドメインを削除中... お待ちください",+ "settingSSL": "SSL を設定中... お待ちください",+ "applyingCert": "SSL 証明書を申請中... お待ちください",+ "refreshingDns": "DNS レコードを更新中... お待ちください"+ }+ }+ },+ "mailbox": {+ "title": "メールボックス管理",+ "actions": {+ "add": "メールボックス追加"+ },+ "search": {+ "usernamePlaceholder": "ユーザー名検索"+ },+ "domain": {+ "selectPlaceholder": "ドメイン選択"+ },+ "columns": {+ "username": "ユーザー名",+ "password": "パスワード",+ "loginInfo": "ログイン情報",+ "quota": "クォータ",+ "type": "タイプ",+ "status": "ステータス"+ },+ "userType": {+ "admin": "管理者",+ "general": "一般ユーザー"+ },+ "form": {+ "addTitle": "メールボックス追加",+ "editTitle": "メールボックス編集",+ "emailAddress": "メールアドレス",+ "password": "パスワード",+ "passwordPlaceholder": "メールボックスのパスワードを入力",+ "quota": "クォータ",+ "userType": "ユーザータイプ",+ "status": "ステータス"+ },+ "validation": {+ "emailRequired": "メールアドレスを入力してください",+ "passwordLength": "パスワードは8文字以上である必要があります",+ "passwordFormat": "パスワードは大文字・小文字・数字をそれぞれ1文字以上含む必要があります"+ },+ "delete": {+ "title": "メールボックス削除",+ "confirm": "メールボックス [{name}] を削除してもよろしいですか?"+ },+ "loginInfo": {+ "template": "WebMail: {webmail}\nユーザー名: {username}\nパスワード: {password}\nPOP サービス [ アドレス: {mx} ポート: 110/995 ]\nIMAP サービス [ アドレス: {mx} ポート: 143/993 ]\nSMTP サービス [ アドレス: {mx} ポート: 25/465/587 ]"+ },+ "api": {+ "loading": {+ "creating": "メールボックスを作成中... お待ちください",+ "updating": "メールボックスを更新中... お待ちください",+ "deleting": "メールボックスを削除中... お待ちください"+ }+ }+ },+ "smtp": {+ "title": "SMTP リレーサービス管理",+ "description": "複数のサービスプロバイダーに対応した SMTP リレーサービスを管理",+ "empty": "SMTP リレーサービスがありません",+ "providers": {+ "gmail": "Gmail",+ "mailgun": "Mailgun",+ "aws": "AWS SES",+ "sendgrid": "SendGrid",+ "custom": "カスタム SMTP"+ },+ "delete": {+ "title": "リレー削除",+ "confirm": "リレーサービス [{name}] を削除してもよろしいですか?"+ },+ "card": {+ "domain": "紐付けドメイン",+ "server": "サーバー",+ "port": "ポート",+ "username": "ユーザー名"+ },+ "form": {+ "addTitle": "SMTP 追加",+ "editTitle": "SMTP 編集",+ "remark": "備考",+ "domain": "紐付けドメイン",+ "server": "SMTP サーバー",+ "port": "SMTP ポート",+ "username": "ユーザー名",+ "password": "パスワード",+ "testConnection": "接続テスト",+ "bind": " [紐付け済み]",+ "validation": {+ "nameRequired": "リレー名を入力してください",+ "domainRequired": "紐付けドメインを選択してください",+ "serverRequired": "SMTP サーバーを入力してください",+ "portRequired": "SMTP ポートを入力してください",+ "usernameRequired": "ユーザー名を入力してください",+ "passwordRequired": "パスワードを入力してください"+ }+ },+ "status": {+ "online": "オンライン",+ "offline": "オフライン"+ },+ "api": {+ "loading": {+ "adding": "SMTP を追加中... お待ちください",+ "editing": "SMTP を編集中... お待ちください",+ "testing": "SMTP 接続をテスト中... お待ちください",+ "deleting": "SMTP を削除中... お待ちください"+ }+ }+ },+ "settings": {+ "title": "設定",+ "service": {+ "title": "サービス状態",+ "tips": "ヒント: Ctrl+F で検索、Ctrl+S で保存、Ctrl+H で検索置換",+ "editTitle": "{name} をオンライン編集",+ "columns": {+ "name": "サービス名",+ "status": "状態"+ },+ "status": {+ "running": "稼働中",+ "stopped": "停止中"+ },+ "actions": {+ "restart": "再起動"+ },+ "restart": {+ "title": "サービス再起動",+ "confirm": "[{name}] を再起動してもよろしいですか?"+ }+ },+ "bcc": {+ "title": "BCC 管理",+ "add": "BCC 追加",+ "edit": "BCC 編集",+ "needCopy": "コピー元",+ "copyTo": "コピー先",+ "domain": "ドメイン",+ "type": "BCC タイプ",+ "status": "状態",+ "active": "有効",+ "types": {+ "sender": "送信時",+ "recipient": "受信時"+ },+ "delete": {+ "title": "BCC [{address}] を削除",+ "content": "BCC 設定を削除しますか?"+ },+ "placeholders": {+ "needCopy": "BCC 対象ユーザーを入力",+ "copyTo": "BCC 受信メールを入力"+ },+ "loading": {+ "adding": "BCC を追加中... お待ちください",+ "saving": "BCC を保存中... お待ちください",+ "deleting": "BCC を削除中... お待ちください"+ }+ },+ "forward": {+ "add": "転送追加",+ "edit": "転送編集",+ "columns": {+ "address": "アドレス",+ "goto": "転送先",+ "domain": "ドメイン",+ "created": "作成日",+ "modified": "更新日",+ "status": "状態"+ },+ "form": {+ "status": "状態",+ "forwardedUsers": "転送元ユーザー",+ "forwardedUsersPlaceholder": "転送元メールを入力",+ "domain": "ドメイン",+ "domainPlaceholder": "転送元ユーザーのドメイン名",+ "receivingUser": "受信ユーザー",+ "receivingUserPlaceholder": "転送メール受信者。複数ある場合は改行区切り"+ },+ "delete": {+ "title": "メール転送削除",+ "content": "メール転送 [{address}] を削除してもよろしいですか?"+ },+ "loading": {+ "adding": "メール転送を追加中... お待ちください",+ "editing": "メール転送を編集中... お待ちください",+ "deleting": "メール転送を削除中... お待ちください"+ }+ },+ "api": {+ "loading": {+ "restarting": "サービスを再起動中... お待ちください",+ "saving": "設定を保存中... お待ちください"+ }+ }+ }}diff --git a/core/frontend/src/i18n/lang/zh.json b/core/frontend/src/i18n/lang/zh.jsonindex 7edd74b2..ccc97a14 100644--- a/core/frontend/src/i18n/lang/zh.json+++ b/core/frontend/src/i18n/lang/zh.json@@ -134,6 +134,7 @@"opened": "已打开","clicked": "已点击","bounced": "已退回",+ "delayedQueue": "延迟队列","mailProviders": "邮件提供商","sendStats": "发送统计","provider": {@@ -166,6 +167,68 @@"relay": "中继","details": "详情"}+ },+ "sendQueue": {+ "title": "发送队列",+ "breadcrumb": "发送队列",+ "buttons": {+ "refresh": "刷新队列",+ "quickClear": "快速清理",+ "paramConfig": "队列参数配置",+ "resend": "重新发送",+ "batchDelete": "批量删除",+ "batchResend": "重新发送"+ },+ "table": {+ "columns": {+ "sender": "发件人",+ "recipient": "收件人",+ "arrivalTime": "入队时间",+ "messageSize": "邮件大小",+ "action": "操作"+ }+ },+ "confirm": {+ "quickClear": {+ "title": "快速清理",+ "content": "确认快速清理队列吗?"+ },+ "resend": {+ "title": "重新发送",+ "content": "确认重新发送队列吗?"+ },+ "delete": {+ "title": "删除队列",+ "content": "确认删除该队列吗?"+ },+ "batchDelete": {+ "title": "批量删除",+ "content": "确认删除 {count} 个发送队列吗?"+ },+ "batchResend": {+ "title": "批量重新发送",+ "content": "确认重新发送 {count} 个发送队列吗?"+ }+ },+ "paramConfig": {+ "title": "队列参数配置",+ "fields": {+ "bounceQueueLifetime": "Bounce Queue Lifetime",+ "maximalQueueLifetime": "Maximal Queue Lifetime",+ "minimalBackoffTime": "Minimal Backoff Time",+ "maximalBackoffTime": "Maximal Backoff Time",+ "queueRunDelay": "Queue Run Delay",+ "triggerTimeout": "Trigger Timeout"+ }+ }+ },+ "api": {+ "loading": {+ "resendQueue": "正在重新发送队列中,请稍候...",+ "deleteQueue": "正在删除队列中,请稍候...",+ "setQueueConfig": "正在设置队列参数中,请稍候...",+ "clearQueue": "正在清理队列中,请稍候..."+ }}},"market": {@@ -341,7 +404,7 @@"createTpl": {"sourceUrl": "引用域名","useAiTools": "使用人工智能工具帮您自动生成邮件内容,提升工作您的效率",- "create":"创建"+ "create": "创建"},"ai": {"title": "AI 模板",@@ -354,7 +417,7 @@"edit": "编辑","copy": "复制","copied": "已复制",- "apply":"应用模板"+ "apply": "应用模板"},"tips": {"saveShortcut": "通过 [Ctrl + s] 保存您的修改"@@ -362,7 +425,7 @@"loading": {"message": "加载中... 请稍后"},- "send":"发送"+ "send": "发送"}},"contacts": {@@ -539,6 +602,63 @@"redirectLink": "订阅已存在的跳转链接"}}+ },+ "suspend": {+ "title": "异常邮箱",+ "buttons": {+ "scanInvalidDomains": "扫描无效域名",+ "scanLogs": "扫描日志",+ "autoBlockFailedEmails": "自动阻止失败邮件"+ },+ "search": {+ "emailPlaceholder": "请输入邮箱地址"+ },+ "columns": {+ "email": "邮箱",+ "description": "描述",+ "status": "状态",+ "addTime": "添加时间"+ },+ "status": {+ "invalid": "无效",+ "checking": "检查中"+ },+ "confirm": {+ "clear": {+ "title": "清空",+ "content": "这将清空该类型下的所有数据,是否继续?"+ },+ "delete": {+ "title": "删除",+ "content": "确定要删除 [{email}] 吗?"+ }+ },+ "scan": {+ "title": "扫描无效域名",+ "confirmText": "扫描",+ "form": {+ "group": "分组",+ "method": "方法",+ "groupRequired": "请选择分组"+ },+ "methods": {+ "noOperation": "无操作",+ "addToExceptionTable": "添加到异常防护表",+ "deleteFromGroup": "从分组中删除异常邮箱"+ }+ },+ "scanLogs": {+ "title": "扫描日志",+ "none": "无"+ },+ "api": {+ "loading": {+ "deleting": "正在删除,请稍候...",+ "scanning": "正在扫描,请稍候...",+ "clearing": "正在清理,请稍候...",+ "setting": "正在设置,请稍候..."+ }+ }}},"domain": {@@ -573,7 +693,7 @@"urlsPlacement": "请输入域名,例如:http://billionmail.com","aRecord": "A记录","aRecordPlaceholder": "请输入A记录,例如:mailAapanelCom",- "quota": "域名配额",+ "quota": "域名配额","mailboxCount": "邮箱数量","globalCatch": "Catch All","globalCatchPlaceholder": "捕获不存在的邮件,转发至此邮件",@@ -585,8 +705,8 @@"dnsSetup": "需要在您的DNS服务提供商控制台添加A记录","cloudflare": "如果使用CloudFlare,请在添加记录时选择【仅DNS】"},- "createBrandInfo":"自动创建品牌信息",- "modelNotice":"要使用此功能,您需要先进行大模型配置",+ "createBrandInfo": "自动创建品牌信息",+ "modelNotice": "要使用此功能,您需要先进行大模型配置","integrateImmediately": "立即配置","modelDescription": "AI驱动的信息导入会自动分析并从邮件域名创建品牌信息。创建后,您可以根据需要进行修改","extractBrand": "提取品牌和颜色",@@ -595,12 +715,12 @@"customLogo": "使用自定义徽标(可选)","specifyDomain": "指定域名","addMoreUrls": "添加更多URL",- "maxUrl":"最多只能填写3个URL",- "createImmediately":"立即创建",- "brandInfo":"品牌信息",- "noBrandInfo":"暂无品牌信息",- "fillDomain":"请填写域名",- "fillValidDomain":"请填写正确的域名"+ "maxUrl": "最多只能填写3个URL",+ "createImmediately": "立即创建",+ "brandInfo": "品牌信息",+ "noBrandInfo": "暂无品牌信息",+ "fillDomain": "请填写域名",+ "fillValidDomain": "请填写正确的域名"},"dns": {"title": "DNS 记录",@@ -769,7 +889,7 @@},"common": {"daysAgo": "天前",- "noBrandInfo":"当前域名没有品牌信息."+ "noBrandInfo": "当前域名没有品牌信息."}},"api": {@@ -1057,24 +1177,24 @@"clearing": "正在清空,请稍候..."}},- "aiModel":{- "modelId":"模型ID",- "modelAlias":"模型别名",- "modelFeature":"模型功能",- "contentLength":"最大上下文长度",- "supplierTitle":"服务商标题",- "supplierName":"服务商名称",- "cancel":"取消",- "confirm":"确认",- "aPIKey":"API密钥",- "apiPath":"API地址",- "check":"检查",- "getKey":"点击获取API密钥",- "example":"示例",- "saveAPI":"保存API",- "model":"模型",- "byDefault":"默认从/models获取所有模型",- "addModel":"添加模型"+ "aiModel": {+ "modelId": "模型ID",+ "modelAlias": "模型别名",+ "modelFeature": "模型功能",+ "contentLength": "最大上下文长度",+ "supplierTitle": "服务商标题",+ "supplierName": "服务商名称",+ "cancel": "取消",+ "confirm": "确认",+ "aPIKey": "API密钥",+ "apiPath": "API地址",+ "check": "检查",+ "getKey": "点击获取API密钥",+ "example": "示例",+ "saveAPI": "保存API",+ "model": "模型",+ "byDefault": "默认从/models获取所有模型",+ "addModel": "添加模型"}},"api": {@@ -1136,4 +1256,4 @@"testing": "正在测试,请稍候..."}}-}\ No newline at end of file+}diff --git a/core/frontend/src/layout/components/Sidebar.vue b/core/frontend/src/layout/components/Sidebar.vueindex a52ebfaa..bb010c3f 100644--- a/core/frontend/src/layout/components/Sidebar.vue+++ b/core/frontend/src/layout/components/Sidebar.vue@@ -112,7 +112,7 @@ const iconMap: Record<string, VNodeChild> = {smtp: <i class="i-custom:smtp"></i>,settings: <i class="i-mdi-settings-outline"></i>,template: <i class="i-mdi-settings-outline"></i>,- rspamd: <i class="i-mdi-settings-outline"></i>,+ logs: <i class="i-mdi-settings-outline"></i>,logout: <i class="i-mdi-logout"></i>,}diff --git a/core/frontend/src/router/modules/logs.ts b/core/frontend/src/router/modules/logs.tsnew file mode 100644index 00000000..9cb979d0--- /dev/null+++ b/core/frontend/src/router/modules/logs.ts@@ -0,0 +1,18 @@+import { RouteRecordRaw } from 'vue-router'+import { isDev } from '@/utils'+import { Layout } from '@/router/constant'++const route: RouteRecordRaw = {+ path: '/logs',+ component: Layout,+ meta: { key: 'logs', title: 'Logs', hidden: !isDev, titleKey: '' },+ children: [+ {+ path: '/logs',+ name: 'Logs',+ component: () => import('@/views/logs/index.vue'),+ },+ ],+}++export default routediff --git a/core/frontend/src/router/modules/overview.ts b/core/frontend/src/router/modules/overview.tsindex c3ee867d..b142a016 100644--- a/core/frontend/src/router/modules/overview.ts+++ b/core/frontend/src/router/modules/overview.ts@@ -11,6 +11,11 @@ const route: RouteRecordRaw = {name: 'Overview',component: () => import('@/views/overview/index.vue'),},+ {+ path: '/overview/send-queue',+ name: 'SendQueue',+ component: () => import('@/views/overview/pages/send-queue/index.vue'),+ },],}diff --git a/core/frontend/src/router/router.ts b/core/frontend/src/router/router.tsindex 52ba71c6..2a4c83a1 100644--- a/core/frontend/src/router/router.ts+++ b/core/frontend/src/router/router.ts@@ -11,6 +11,7 @@ const routesReflectList = ['MailDomain','MailBoxes','SMTP',+ 'Logs','Settings','Automation',]diff --git a/core/frontend/src/views/contacts/suspend/components/Scan.vue b/core/frontend/src/views/contacts/suspend/components/Scan.vueindex bc60c10e..baa5151e 100644--- a/core/frontend/src/views/contacts/suspend/components/Scan.vue+++ b/core/frontend/src/views/contacts/suspend/components/Scan.vue@@ -1,5 +1,5 @@<template>- <modal title="Scan Invalid Domains" width="480" confirm-text="Scan">+ <modal :title="$t('contacts.suspend.scan.title')" width="480" confirm-text="Scan"><div class="pt-12px"><bt-form ref="formRef" :form="form" :rules="rules"><n-form-item label="Group" path="group_id">@@ -8,13 +8,17 @@<n-form-item label="Method"><n-radio-group v-model:value="form.oper"><div class="h-32px flex items-center">- <n-radio :value="1">no-operation</n-radio>+ <n-radio :value="1">{{ $t('contacts.suspend.scan.methods.noOperation') }}</n-radio></div><div class="h-32px flex items-center">- <n-radio :value="2">Added to the exception prevention table</n-radio>+ <n-radio :value="2">{{+ $t('contacts.suspend.scan.methods.addToExceptionTable')+ }}</n-radio></div><div class="h-32px flex items-center">- <n-radio :value="3">The abnormal mailbox is deleted from the group</n-radio>+ <n-radio :value="3">{{+ $t('contacts.suspend.scan.methods.deleteFromGroup')+ }}</n-radio></div></n-radio-group></n-form-item>@@ -27,9 +31,11 @@import { FormRules, SelectOption } from 'naive-ui'import { isObject } from '@/utils'import { useModal } from '@/hooks/modal/useModal'+import { scanGroup } from '@/api/modules/contacts/suspend'import { getGroupAll } from '@/api/modules/contacts/group'import type { Group } from '../../group/types/base'-import { scanGroup } from '@/api/modules/contacts/suspend'++const { t } = useI18n()const formRef = useTemplateRef('formRef')@@ -43,7 +49,7 @@ const rules: FormRules = {trigger: 'change',validator: () => {if (!form.group_id) {- return new Error('Please select group')+ return new Error(t('contacts.suspend.scan.form.groupRequired'))}return true},diff --git a/core/frontend/src/views/contacts/suspend/components/ScanLogs.vue b/core/frontend/src/views/contacts/suspend/components/ScanLogs.vueindex ad0af887..42d225cc 100644--- a/core/frontend/src/views/contacts/suspend/components/ScanLogs.vue+++ b/core/frontend/src/views/contacts/suspend/components/ScanLogs.vue@@ -1,5 +1,5 @@<template>- <modal title="Scan Logs" width="820" :footer="false">+ <modal :title="$t('contacts.suspend.scanLogs.title')" width="820" :footer="false"><div class="pt-12px mb-8px"><n-button type="primary" @click="getLogs(true)">{{ $t('common.actions.refresh') }}@@ -12,13 +12,15 @@</template><script lang="ts" setup>-import { getScanLogs } from '@/api/modules/contacts/suspend'-import { useModal } from '@/hooks/modal/useModal'import { isString } from '@/utils'+import { useModal } from '@/hooks/modal/useModal'+import { getScanLogs } from '@/api/modules/contacts/suspend'++const { t } = useI18n()const loading = ref(false)-const content = ref(`None`)+const content = ref(t('contacts.suspend.scanLogs.none'))let timer: number | null = null@@ -98,7 +100,7 @@ const [Modal] = useModal({if (isOpen) {getLogs(true)} else {- content.value = `None`+ content.value = t('contacts.suspend.scanLogs.none')stopAutoRefresh()}},diff --git a/core/frontend/src/views/contacts/suspend/index.vue b/core/frontend/src/views/contacts/suspend/index.vueindex 3cbbb5c6..35e403cc 100644--- a/core/frontend/src/views/contacts/suspend/index.vue+++ b/core/frontend/src/views/contacts/suspend/index.vue@@ -2,11 +2,11 @@<div><bt-table-layout><template #toolsLeft>- <n-button type="primary" @click="handleShowScan">Scan Invalid Domains</n-button>- <n-button @click="handleShowScanLogs">Scan Logs</n-button>+ <n-button type="primary" @click="handleShowScan">{{ $t('contacts.suspend.buttons.scanInvalidDomains') }}</n-button>+ <n-button @click="handleShowScanLogs">{{ $t('contacts.suspend.buttons.scanLogs') }}</n-button><n-button @click="handleClear">{{ $t('common.actions.clear') }}</n-button><div class="ml-8px">- <span class="mr-12px">Auto block failed emails</span>+ <span class="mr-12px">{{ $t('contacts.suspend.buttons.autoBlockFailedEmails') }}</span><n-switch v-model:value="autoScan" @update:value="handleUpdateAutoScan"></n-switch></div></template>@@ -14,7 +14,7 @@<bt-searchv-model:value="tableParams.keyword":width="240"- placeholder="Please enter email"+ :placeholder="$t('contacts.suspend.search.emailPlaceholder')"@search="resetTable"></bt-search></template>@@ -89,8 +89,8 @@ const handleShowScanLogs = () => {const handleClear = () => {confirm({- title: 'Clear',- content: `This will clear all data under that type, do you continue?`,+ title: t('contacts.suspend.confirm.clear.title'),+ content: t('contacts.suspend.confirm.clear.content'),onConfirm: async () => {await clearSuspend()fetchTable()@@ -114,20 +114,20 @@ const { tableParams, tableProps, pageProps, fetchTable, resetTable } = useDataTaconst columns = ref<DataTableColumns<Suspend>>([{key: 'recipient',- title: 'Email',+ title: t('contacts.suspend.columns.email'),},{key: 'description',- title: 'Description',+ title: t('contacts.suspend.columns.description'),},{key: 'state',- title: 'Status',- render: row => (row.state || row.count >= 3 ? 'Invalid' : 'Checking'),+ title: t('contacts.suspend.columns.status'),+ render: row => (row.state || row.count >= 3 ? t('contacts.suspend.status.invalid') : t('contacts.suspend.status.checking')),},{key: 'create_time',- title: 'Add Time',+ title: t('contacts.suspend.columns.addTime'),render: row => formatTime(row.create_time),},{@@ -152,8 +152,8 @@ const columns = ref<DataTableColumns<Suspend>>([const handleDelete = (row: Suspend) => {confirm({- title: 'Delete',- content: `Are you sure you want to delete [${row.recipient}]`,+ title: t('contacts.suspend.confirm.delete.title'),+ content: t('contacts.suspend.confirm.delete.content', { email: row.recipient }),onConfirm: async () => {await deleteSuspend({ id: row.id })fetchTable()diff --git a/core/frontend/src/views/domain/pages/editDomain/controller/projectDetail.controller.ts b/core/frontend/src/views/domain/pages/editDomain/controller/projectDetail.controller.tsindex fa00238b..e426c328 100644--- a/core/frontend/src/views/domain/pages/editDomain/controller/projectDetail.controller.ts+++ b/core/frontend/src/views/domain/pages/editDomain/controller/projectDetail.controller.ts@@ -18,10 +18,9 @@ export async function getProjectDetail(domainStr: string) {} = getEditDomainStoreData()if (hasGotProjectDetail.value) returntry {- const res = (await instance.post(- '/askai/project/get_base_info',- { domain: domainStr }- )) as Record<string, any>+ const res = (await instance.post('/askai/project/get_base_info', {+ domain: domainStr,+ })) as Record<string, any>project_name.value = res.project_nameprimary_logo.value = res.primary_logofavicon.value = res.favicon@@ -170,7 +169,7 @@ export async function uploadImage(image_tag: string) {try {- const res = await instance.post(+ await instance.post('/askai/project/upload_image',{domain,@@ -181,7 +180,7 @@ export async function uploadImage(},instanceOptions)- console.log(res)+ // console.log(res)} catch (error) {console.warn(error)return ''diff --git a/core/frontend/src/views/domain/pages/editDomain/controller/typography.controller.ts b/core/frontend/src/views/domain/pages/editDomain/controller/typography.controller.tsindex 6e076b16..3fb5ddf6 100644--- a/core/frontend/src/views/domain/pages/editDomain/controller/typography.controller.ts+++ b/core/frontend/src/views/domain/pages/editDomain/controller/typography.controller.ts@@ -1,21 +1,18 @@-import { instance } from "@/api"-import { getEditDomainStoreData } from "../store"-import { instanceOptions } from "./companyProfile.controller"+import { instance } from '@/api'+import { getEditDomainStoreData } from '../store'+// import { instanceOptions } from "./companyProfile.controller"/*** @description Update typography info*/export async function updateTypography(domain: string) {- const {- heading_font,- body_font,- } = getEditDomainStoreData()- try {- await instance.post("/askai/project/modify_style_config", {- domain,- heading_font: heading_font.value,- body_font: body_font.value- })- } catch (error) {- console.warn(error)- }-}\ No newline at end of file+ const { heading_font, body_font } = getEditDomainStoreData()+ try {+ await instance.post('/askai/project/modify_style_config', {+ domain,+ heading_font: heading_font.value,+ body_font: body_font.value,+ })+ } catch (error) {+ console.warn(error)+ }+}diff --git a/core/frontend/src/views/domain/pages/editDomain/index.vue b/core/frontend/src/views/domain/pages/editDomain/index.vueindex 73b9ba86..082acb24 100644--- a/core/frontend/src/views/domain/pages/editDomain/index.vue+++ b/core/frontend/src/views/domain/pages/editDomain/index.vue@@ -7,7 +7,10 @@<!-- Content tabs --><div class="content-tabs">- <div v-for="(item, index) in menuList" :key="index" :class="['tab-item', { active: activeTab == item }]"+ <div+ v-for="(item, index) in menuList"+ :key="index"+ :class="['tab-item', { active: activeTab == item }]"@click="switchToTab(item)"><span>{{ getTabLabel(item) }}</span></div>@@ -65,13 +68,13 @@ const menuList = ref([// 'AI Settings',])-const dynamicMenuList = computed(() => {- if (createdBrandInfo.value) {- return menuList.value- } else {- return menuList.value.filter(item => item == 'Domain Configuration')- }-})+// const dynamicMenuList = computed(() => {+// if (createdBrandInfo.value) {+// return menuList.value+// } else {+// return menuList.value.filter(item => item == 'Domain Configuration')+// }+// })const activeTab = ref('Domain Configuration')@@ -144,13 +147,13 @@ onBeforeRouteLeave(resetAllApiStatus)* @description Switch to tab*/function switchToTab(tab: string) {- if(tab == "Domain Configuration"){+ if (tab == 'Domain Configuration') {activeTab.value = tab} else {- if(createdBrandInfo.value){+ if (createdBrandInfo.value) {activeTab.value = tab- }else{- Message.info(t("domain.edit.common.noBrandInfo"))+ } else {+ Message.info(t('domain.edit.common.noBrandInfo'))}}}diff --git a/core/frontend/src/views/logs/controller/index.ts b/core/frontend/src/views/logs/controller/index.tsnew file mode 100644index 00000000..77419957--- /dev/null+++ b/core/frontend/src/views/logs/controller/index.ts@@ -0,0 +1,9 @@+import { instance } from '@/api'++export const getLogsList = async (params: { page: number; page_size: number; keyword: string }) => {+ return await instance.get('/operation_log/list', { params })+}++export const getLogsType = async () => {+ return await instance.get('/operation_log//type_list')+}diff --git a/core/frontend/src/views/logs/index.vue b/core/frontend/src/views/logs/index.vuenew file mode 100644index 00000000..0c0bff85--- /dev/null+++ b/core/frontend/src/views/logs/index.vue@@ -0,0 +1,73 @@+<template>+ <div class="p-24px">+ <bt-table-layout>+ <template #toolsLeft>+ <div class="w-240px">+ <n-select :filterable="true" :options="typeOptions"></n-select>+ </div>+ <n-button type="primary">{{ $t('common.actions.refresh') }}</n-button>+ </template>+ <template #table>+ <n-data-table v-bind="tableProps" :columns="columns"></n-data-table>+ </template>+ <template #pageRight>+ <bt-table-page v-bind="pageProps" @refresh="fetchTable"> </bt-table-page>+ </template>+ </bt-table-layout>+ </div>+</template>++<script lang="ts" setup>+import { DataTableColumns, SelectOption } from 'naive-ui'+import { formatTime, isObject } from '@/utils'+import { useDataTable } from '@/hooks/useDataTable'+import { getLogsList, getLogsType } from './controller'+import type { Logs } from './types'++const columns = ref<DataTableColumns<Logs>>([+ {+ key: 'username',+ title: 'Username',+ },+ {+ key: 'type',+ title: 'Type',+ },+ {+ key: 'log',+ title: 'Details',+ },+ {+ key: 'addtime',+ title: 'Operating time',+ render: row => {+ return formatTime(row.addtime)+ },+ },+])++const { tableProps, pageProps, fetchTable } = useDataTable<Logs>({+ params: {+ page: 1,+ page_size: 10,+ },+ immediate: true,+ fetchFn: getLogsList,+})++const typeOptions = ref<SelectOption[]>([])++const getTypeOptions = async () => {+ const res = await getLogsType()+ if (isObject<Record<string, string>>(res)) {+ typeOptions.value = Object.entries(res).map(([, value]) => ({+ label: value,+ value: value,+ }))+ }+}++getTypeOptions()+</script>++<style lang="scss" scoped></style>diff --git a/core/frontend/src/views/logs/types/index.ts b/core/frontend/src/views/logs/types/index.tsnew file mode 100644index 00000000..41f74af6--- /dev/null+++ b/core/frontend/src/views/logs/types/index.ts@@ -0,0 +1,10 @@+export type Logs = {+ id: number+ user_id: number+ type: string+ log: string+ ip: string+ info: string+ addtime: number+ username: string+}diff --git a/core/frontend/src/views/market/task/edit.vue b/core/frontend/src/views/market/task/edit.vueindex b557d063..ac3abb0b 100644--- a/core/frontend/src/views/market/task/edit.vue+++ b/core/frontend/src/views/market/task/edit.vue@@ -160,11 +160,11 @@ import { useGlobalStore } from '@/store'import { useElementBounding } from '@vueuse/core'import { confirm, Message } from '@/utils'import { addTask, sendTestEmail } from '@/api/modules/market/task'+import { Template } from '../template/interface'import FromSelect from './components/FromSelect.vue'import GroupSelect from './components/GroupSelect.vue'import TemplateSelect from './components/TemplateSelect.vue'-import { Template } from '../template/interface'const { t } = useI18n()const globalStore = useGlobalStore()diff --git a/core/frontend/src/views/overview/components/MetricCard.vue b/core/frontend/src/views/overview/components/MetricCard.vueindex 1f127cb5..32c0dbb3 100644--- a/core/frontend/src/views/overview/components/MetricCard.vue+++ b/core/frontend/src/views/overview/components/MetricCard.vue@@ -1,7 +1,7 @@<template><n-card class="metric-card" :bordered="false"><div class="title">{{ title }}</div>- <div class="value">{{ value }}%</div>+ <div class="value">{{ value }}{{ unit }}</div></n-card></template>@@ -15,10 +15,14 @@ defineProps({type: Number,default: 0,},+ unit: {+ type: String,+ default: '',+ },})</script>-<style scoped>+<style lang="scss" scoped>.metric-card {--n-padding-top: 24px;--n-padding-bottom: 24px;diff --git a/core/frontend/src/views/overview/components/ProviderTable.vue b/core/frontend/src/views/overview/components/ProviderTable.vueindex 98019cf2..3ba55e19 100644--- a/core/frontend/src/views/overview/components/ProviderTable.vue+++ b/core/frontend/src/views/overview/components/ProviderTable.vue@@ -6,7 +6,7 @@<script setup lang="ts">import { DataTableColumns, NDataTable } from 'naive-ui'-import { MailProvider } from '../interface'+import { MailProvider } from '../types'const { t } = useI18n()diff --git a/core/frontend/src/views/overview/components/RateChartPanel.vue b/core/frontend/src/views/overview/components/RateChartPanel.vueindex a205ef69..9f89f068 100644--- a/core/frontend/src/views/overview/components/RateChartPanel.vue+++ b/core/frontend/src/views/overview/components/RateChartPanel.vue@@ -28,7 +28,7 @@<script setup lang="ts">import { PropType } from 'vue'import { formatTime } from '@/utils'-import { MailOverview } from '../interface'+import { MailOverview } from '../types'import LineChart from './LineChart.vue'diff --git a/core/frontend/src/views/overview/components/SendFailDetails.vue b/core/frontend/src/views/overview/components/SendFailDetails.vueindex f2745bba..91fedce7 100644--- a/core/frontend/src/views/overview/components/SendFailDetails.vue+++ b/core/frontend/src/views/overview/components/SendFailDetails.vue@@ -15,7 +15,7 @@ import { DataTableColumns, DataTableCreateRowProps, NEllipsis } from 'naive-ui'import { isArray } from '@/utils'import { useModal } from '@/hooks/modal/useModal'import { getFailedList } from '@/api/modules/overview'-import type { Failed } from '../interface'+import type { Failed } from '../types'const { t } = useI18n()diff --git a/core/frontend/src/views/overview/components/SendTodayStats.vue b/core/frontend/src/views/overview/components/SendTodayStats.vueindex 8ab9496c..92777b8a 100644--- a/core/frontend/src/views/overview/components/SendTodayStats.vue+++ b/core/frontend/src/views/overview/components/SendTodayStats.vue@@ -27,7 +27,7 @@<script setup lang="ts">import { PropType } from 'vue'import { formatTime } from '@/utils'-import type { SendMail } from '../interface'+import type { SendMail } from '../types'import BarChart from './BarChart.vue'diff --git a/core/frontend/src/views/overview/index.vue b/core/frontend/src/views/overview/index.vueindex 501878e2..97725bc2 100644--- a/core/frontend/src/views/overview/index.vue+++ b/core/frontend/src/views/overview/index.vue@@ -11,9 +11,19 @@<!-- Main Metric Cards --><div class="metrics-cards">- <template v-for="(item, key) in rateData" :key="key">- <metric-card :title="item.label" :value="item.value" />- </template>+ <metric-card+ v-for="(item, key) in rateData"+ :key="key"+ :title="item.label"+ :value="item.value"+ :unit="item.unit">+ </metric-card>+ <metric-card+ class="cursor-pointer"+ :title="$t('overview.delayedQueue')"+ :value="delayedQueue"+ @click="onClickDelayedQueue">+ </metric-card></div><!-- Data Details Area -->@@ -43,7 +53,7 @@ import { useDebounceFn } from '@vueuse/core'import { getDayTimeRange, isArray, isObject } from '@/utils'import { useModal } from '@/hooks/modal/useModal'import { getOverviewInfo } from '@/api/modules/overview'-import type { MailOverview, MailProvider, RateData, RateKey } from './interface'+import type { MailOverview, MailProvider, RateData } from './types'import FilterBar from './components/FilterBar.vue'import MetricCard from './components/MetricCard.vue'@@ -61,12 +71,14 @@ const dateRange = ref(getDayTimeRange())const providers = ref<MailProvider[]>([])const rateData = reactive<RateData>({- delivery: { label: t('overview.delivered'), value: 0 },- open: { label: t('overview.opened'), value: 0 },- click: { label: t('overview.clicked'), value: 0 },- bounce: { label: t('overview.bounced'), value: 0 },+ delivery_rate: { label: t('overview.delivered'), value: 0, unit: '%' },+ open_rate: { label: t('overview.opened'), value: 0, unit: '%' },+ click_rate: { label: t('overview.clicked'), value: 0, unit: '%' },+ bounce_rate: { label: t('overview.bounced'), value: 0, unit: '%' },})+const delayedQueue = ref(0)+const sendMail = ref<MailOverview['send_mail_chart']>({column_type: 'hourly',dashboard: {@@ -94,6 +106,12 @@ const openRate = ref<MailOverview['open_rate_chart']>({data: [],})+const router = useRouter()++const onClickDelayedQueue = () => {+ router.push('/overview/send-queue')+}+const [FailModal, failModalApi] = useModal({component: SendFailDetails,})@@ -113,11 +131,11 @@ const handleDataUpdate = useDebounceFn(fetchOverviewData, 300)// Function to update rate dataconst updateRateData = (dashboard: MailOverview['dashboard']) => {Object.entries(dashboard).forEach(([key, value]) => {- const rateKey = key.replace('_rate', '') as RateKey- if (rateKey in rateData) {- rateData[rateKey].value = value+ if (key in rateData) {+ rateData[key].value = value}})+ delayedQueue.value = dashboard.delayed_queue}// Function to fetch overview datadiff --git a/core/frontend/src/views/overview/pages/send-queue/components/param-config.vue b/core/frontend/src/views/overview/pages/send-queue/components/param-config.vuenew file mode 100644index 00000000..1708d36c--- /dev/null+++ b/core/frontend/src/views/overview/pages/send-queue/components/param-config.vue@@ -0,0 +1,66 @@+<template>+ <bt-modal+ v-model:show="show"+ :width="520"+ :title="$t('overview.sendQueue.buttons.paramConfig')"+ @confirm="onConfirm">+ <bt-form class="pt-8px">+ <n-form-item label="Bounce Queue Lifetime">+ <n-input v-model:value="form.bounce_queue_lifetime" />+ </n-form-item>+ <n-form-item label="Maximal Queue Lifetime">+ <n-input v-model:value="form.maximal_queue_lifetime" />+ </n-form-item>+ <n-form-item label="Minimal Backoff Time">+ <n-input v-model:value="form.minimal_backoff_time" />+ </n-form-item>+ <n-form-item label="Maximal Backoff Time">+ <n-input v-model:value="form.maximal_backoff_time" />+ </n-form-item>+ <n-form-item label="Queue Run Delay">+ <n-input v-model:value="form.queue_run_delay" />+ </n-form-item>+ <n-form-item label="Trigger Timeout">+ <n-input v-model:value="form.trigger_timeout" />+ </n-form-item>+ </bt-form>+ </bt-modal>+</template>++<script lang="ts" setup>+import { isObject } from '@/utils'+import { getSendQueueConfig, setSendQueueConfig } from '@/api/modules/overview'++const show = ref(false)++const form = reactive({+ bounce_queue_lifetime: '',+ maximal_queue_lifetime: '',+ minimal_backoff_time: '',+ maximal_backoff_time: '',+ queue_run_delay: '',+ trigger_timeout: '',+})++const getConfig = async () => {+ const res = await getSendQueueConfig()+ if (isObject(res)) {+ Object.assign(form, res)+ }+}++const onConfirm = async () => {+ await setSendQueueConfig(toRaw(form))+}++const open = () => {+ show.value = true+ getConfig()+}++defineExpose({+ open,+})+</script>++<style lang="scss" scoped></style>diff --git a/core/frontend/src/views/overview/pages/send-queue/index.vue b/core/frontend/src/views/overview/pages/send-queue/index.vuenew file mode 100644index 00000000..f80b17d0--- /dev/null+++ b/core/frontend/src/views/overview/pages/send-queue/index.vue@@ -0,0 +1,193 @@+<template>+ <div class="p-20px">+ <n-breadcrumb class="mb-16px">+ <n-breadcrumb-item>+ <router-link to="/overview">{{ $t('layout.menu.overview') }}</router-link>+ </n-breadcrumb-item>+ <n-breadcrumb-item>{{ $t('overview.sendQueue.title') }}</n-breadcrumb-item>+ </n-breadcrumb>+ <bt-table-layout>+ <template #toolsLeft>+ <n-button type="primary" @click="fetchTable()">{{+ $t('overview.sendQueue.buttons.refresh')+ }}</n-button>+ <n-button @click="onClear">{{ $t('overview.sendQueue.buttons.quickClear') }}</n-button>+ <n-button @click="onShowConfig">{{+ $t('overview.sendQueue.buttons.paramConfig')+ }}</n-button>+ </template>+ <template #table>+ <n-data-table v-bind="tableProps" :columns="columns"></n-data-table>+ </template>+ <template #pageLeft>+ <bt-table-batch v-bind="batchProps" :options="batchOptions" @select="onSelectBatch">+ </bt-table-batch>+ </template>+ <template #modal>+ <param-config-modal ref="configModalRef"></param-config-modal>+ </template>+ </bt-table-layout>+ </div>+</template>++<script lang="tsx" setup>+import { DataTableColumns, NButton, NFlex, SelectOption } from 'naive-ui'+import { confirm, formatTime, getByteUnit } from '@/utils'+import { useDataTable } from '@/hooks/useDataTable'+import {+ getSendQueueList,+ deleteSendQueue,+ resendQueue,+ clearSendQueue,+} from '@/api/modules/overview'+import type { SendQueue } from './types'++import ParamConfigModal from './components/param-config.vue'++const { t } = useI18n()++const configModalRef = useTemplateRef('configModalRef')++const onShowConfig = () => {+ configModalRef.value?.open()+}++const onClear = () => {+ confirm({+ title: t('overview.sendQueue.confirm.quickClear.title'),+ content: t('overview.sendQueue.confirm.quickClear.content'),+ confirmType: 'error',+ onConfirm: async () => {+ await clearSendQueue()+ fetchTable()+ },+ })+}++const { tableProps, batchProps, fetchTable } = useDataTable<SendQueue>({+ params: {},+ fetchFn: getSendQueueList,+ rowKey: row => row.queue_id,+})++const columns = ref<DataTableColumns<SendQueue>>([+ {+ width: 40,+ type: 'selection',+ },+ {+ key: 'sender',+ title: t('overview.sendQueue.table.columns.sender'),+ },+ {+ key: 'recipient',+ title: t('overview.sendQueue.table.columns.recipient'),+ },+ {+ key: 'arrival_time',+ title: t('overview.sendQueue.table.columns.arrivalTime'),+ render: row => formatTime(row.arrival_time),+ },+ {+ key: 'message_size',+ title: t('overview.sendQueue.table.columns.messageSize'),+ render: row => getByteUnit(row.message_size),+ },+ {+ key: 'action',+ title: t('overview.sendQueue.table.columns.action'),+ align: 'right',+ width: 120,+ render: row => (+ <NFlex inline={true}>+ <NButton+ type="primary"+ text={true}+ onClick={() => {+ handleResend(row)+ }}>+ {t('overview.sendQueue.buttons.resend')}+ </NButton>+ <NButton+ type="error"+ text={true}+ onClick={() => {+ handleDelete(row)+ }}>+ {t('common.actions.delete')}+ </NButton>+ </NFlex>+ ),+ },+])++const handleResend = async (row: SendQueue) => {+ confirm({+ title: t('overview.sendQueue.confirm.resend.title'),+ content: t('overview.sendQueue.confirm.resend.content'),+ onConfirm: async () => {+ await resendQueue({ queue_ids: [row.queue_id] })+ fetchTable()+ },+ })+}++const handleDelete = async (row: SendQueue) => {+ confirm({+ title: t('overview.sendQueue.confirm.delete.title'),+ content: t('overview.sendQueue.confirm.delete.content'),+ confirmType: 'error',+ onConfirm: async () => {+ await deleteSendQueue({ queue_ids: [row.queue_id] })+ fetchTable()+ },+ })+}++const batchOptions: SelectOption[] = [+ {+ label: t('overview.sendQueue.buttons.batchDelete'),+ value: 'delete',+ },+ {+ label: t('overview.sendQueue.buttons.batchResend'),+ value: 'resend',+ },+]++const onSelectBatch = (key: string, keys: string[]) => {+ switch (key) {+ case 'delete':+ handleBatchDelete(keys)+ break+ case 'resend':+ handleBatchResend(keys)+ break+ }+}++const handleBatchDelete = async (keys: string[]) => {+ confirm({+ title: t('overview.sendQueue.confirm.batchDelete.title'),+ content: t('overview.sendQueue.confirm.batchDelete.content', { count: keys.length }),+ confirmType: 'error',+ onConfirm: async () => {+ await deleteSendQueue({ queue_ids: keys })+ fetchTable()+ },+ })+}++const handleBatchResend = async (keys: string[]) => {+ confirm({+ title: t('overview.sendQueue.confirm.batchResend.title'),+ content: t('overview.sendQueue.confirm.batchResend.content', { count: keys.length }),+ onConfirm: async () => {+ await resendQueue({ queue_ids: keys })+ fetchTable()+ },+ })+}+</script>++<style lang="scss" scoped></style>diff --git a/core/frontend/src/views/overview/pages/send-queue/types/index.ts b/core/frontend/src/views/overview/pages/send-queue/types/index.tsnew file mode 100644index 00000000..06ab7998--- /dev/null+++ b/core/frontend/src/views/overview/pages/send-queue/types/index.ts@@ -0,0 +1,11 @@+export type SendQueue = {+ queue_id: string+ sender: string+ recipients: any+ arrival_time: number+ delay_reason: string+ message_size: number+ queue_name: string+ forced_expire: boolean+ recipient: string+}diff --git a/core/frontend/src/views/overview/interface.ts b/core/frontend/src/views/overview/types/index.tssimilarity index 92%rename from core/frontend/src/views/overview/interface.tsrename to core/frontend/src/views/overview/types/index.tsindex 9360e2a9..5e00f2fa 100644--- a/core/frontend/src/views/overview/interface.ts+++ b/core/frontend/src/views/overview/types/index.ts@@ -17,6 +17,7 @@ export type MailDashboard = {open_rate: numberopened: numbersends: number+ delayed_queue: number}export type MailProvider = {@@ -75,13 +76,11 @@ export type OpenRateData = {interface RateItem {label: stringvalue: number+ unit: string}-// 定义rateKey-export type RateKey = 'delivery' | 'open' | 'click' | 'bounce'-// 定义rate数据-export type RateData = Record<RateKey, RateItem>+export type RateData = Record<string, RateItem>export type Failed = {postfix_message_id: stringdiff --git a/core/frontend/types/components.d.ts b/core/frontend/types/components.d.tsindex 32bf4ef3..ab6a964e 100644--- a/core/frontend/types/components.d.ts+++ b/core/frontend/types/components.d.ts@@ -21,6 +21,7 @@ declare module 'vue' {BtPreview: typeof import('./../src/components/base/bt-preview/index.vue')['default']BtRouteTabs: typeof import('./../src/components/base/bt-route-tabs/index.vue')['default']BtSearch: typeof import('./../src/components/base/bt-search/index.vue')['default']+ BtTableBatch: typeof import('./../src/components/base/bt-table-batch/index.vue')['default']BtTableHelp: typeof import('./../src/components/base/bt-table-help/index.vue')['default']BtTableLayout: typeof import('./../src/components/base/bt-table-layout/index.vue')['default']BtTablePage: typeof import('./../src/components/ui/bt-table-page/index.vue')['default']@@ -38,8 +39,7 @@ declare module 'vue' {NButton: typeof import('naive-ui')['NButton']NButtonGroup: typeof import('naive-ui')['NButtonGroup']NCard: typeof import('naive-ui')['NCard']- NCollapse: typeof import('naive-ui')['NCollapse']- NCollapseItem: typeof import('naive-ui')['NCollapseItem']+ NCheckbox: typeof import('naive-ui')['NCheckbox']NColorPicker: typeof import('naive-ui')['NColorPicker']NConfigProvider: typeof import('naive-ui')['NConfigProvider']NDataTable: typeof import('naive-ui')['NDataTable']@@ -54,13 +54,11 @@ declare module 'vue' {NForm: typeof import('naive-ui')['NForm']NFormItem: typeof import('naive-ui')['NFormItem']NFormItemGi: typeof import('naive-ui')['NFormItemGi']- NGi: typeof import('naive-ui')['NGi']NGrid: typeof import('naive-ui')['NGrid']NIcon: typeof import('naive-ui')['NIcon']NImage: typeof import('naive-ui')['NImage']NInput: typeof import('naive-ui')['NInput']NInputGroup: typeof import('naive-ui')['NInputGroup']- NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']NInputNumber: typeof import('naive-ui')['NInputNumber']NLayout: typeof import('naive-ui')['NLayout']NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']@@ -78,7 +76,6 @@ declare module 'vue' {NScrollbar: typeof import('naive-ui')['NScrollbar']NSelect: typeof import('naive-ui')['NSelect']NSkeleton: typeof import('naive-ui')['NSkeleton']- NSlider: typeof import('naive-ui')['NSlider']NSpin: typeof import('naive-ui')['NSpin']NSwitch: typeof import('naive-ui')['NSwitch']NTable: typeof import('naive-ui')['NTable']@@ -92,6 +89,4 @@ declare module 'vue' {UploadError: typeof import('./../src/components/base/bt-file-upload/UploadError.vue')['default']UploadProgress: typeof import('./../src/components/base/bt-file-upload/UploadProgress.vue')['default']UploadPrompt: typeof import('./../src/components/base/bt-file-upload/UploadPrompt.vue')['default']- UploadSuccess: typeof import('./../src/components/base/bt-file-upload/UploadSuccess.vue')['default']- }-}+ UploadSuccess: typeof import('./../src/components/bas\ No newline at end of file