From 1198b3cc6e0a96c180104a139d12aefc09d751db Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 12 Jun 2022 00:28:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E7=9A=84=E6=A3=80=E6=B5=8B=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/i18n/langs/en-US/translation.json | 6 +++++ shared/i18n/langs/zh-CN/translation.json | 6 +++++ .../components/modals/SettingsView/Status.tsx | 24 +++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/shared/i18n/langs/en-US/translation.json b/shared/i18n/langs/en-US/translation.json index 8ac2759a..59dc351b 100644 --- a/shared/i18n/langs/en-US/translation.json +++ b/shared/i18n/langs/en-US/translation.json @@ -3,6 +3,7 @@ "k10c018fe": "Teamwork", "k1141d649": "Version update", "k11cef91e": "There are some problems with the page", + "k1252f904": "Gateway", "k131598d0": "A new version is detected, whether to refresh immediately to upgrade to the latest content", "k13ae6a93": "Copy", "k1596c75c": "Only allow specified users to speak", @@ -17,6 +18,7 @@ "k1a377364": "Message List Virtualization", "k1a78e6f0": "Expiration", "k1b38bb5c": "Register Now", + "k1bc58056": "Private Message Service", "k1bd56481": "Close independent window", "k1cbe2507": "Confirm", "k206eff71": "Nickname can not be blank", @@ -99,6 +101,7 @@ "k6c29eece": "Allows members to send message in text channels", "k6c75d61f": "Modify group avatar success", "k6eac768d": "Add Members", + "k6ee71a71": "Global Configuration", "k6fb230da": "Pending friend request", "k6fc3abcd": "Enter now", "k7173d09e": "Account", @@ -119,6 +122,7 @@ "k81662255": "Create invitation code", "k821ff85a": "Common", "k8266bcf2": "New password", + "k83ede286": "Ack Service", "k8582af3f": "Refuse", "k87a609ad": "Please do not install plugins from unknown sources, it may steal your personal information in Tailchat", "k89df1d1e": "The network is abnormal", @@ -134,6 +138,7 @@ "k92a84117": "Claim account", "k979fc780": "Unable to join the room, you will not be able to get the latest information, please refresh the page and try again", "k9bb01902": "Show Detail", + "k9d5a843a": "Mail Service", "k9d901c20": "Meeting room", "k9dfa2c97": "never expires", "k9f3089ce": "Create", @@ -176,6 +181,7 @@ "kb55c8dba": "Invite Member", "kb5a17e73": "Leave group", "kb6f1c83f": "What do you want to call you?", + "kb7a57f24": "Plugin Registry Service", "kb8185132": "Or", "kbcb00ae5": "There is no further description for this plugin", "kbcf55e47": "User Service", diff --git a/shared/i18n/langs/zh-CN/translation.json b/shared/i18n/langs/zh-CN/translation.json index 6be3c9eb..ff513120 100644 --- a/shared/i18n/langs/zh-CN/translation.json +++ b/shared/i18n/langs/zh-CN/translation.json @@ -3,6 +3,7 @@ "k10c018fe": "工作协同", "k1141d649": "更新版本", "k11cef91e": "页面出现了一些问题", + "k1252f904": "服务网关", "k131598d0": "检测到有新版本, 是否立即刷新以升级到最新内容", "k13ae6a93": "复制", "k1596c75c": "仅允许指定用户发言", @@ -17,6 +18,7 @@ "k1a377364": "聊天列表虚拟化", "k1a78e6f0": "过期时间", "k1b38bb5c": "立即注册", + "k1bc58056": "私信服务", "k1bd56481": "关闭独立窗口", "k1cbe2507": "确认", "k206eff71": "昵称不能为空", @@ -99,6 +101,7 @@ "k6c29eece": "允许成员在文字频道发送消息", "k6c75d61f": "修改群组头像成功", "k6eac768d": "添加角色", + "k6ee71a71": "全局配置", "k6fb230da": "等待处理的好友请求", "k6fc3abcd": "立即进入", "k7173d09e": "账户信息", @@ -119,6 +122,7 @@ "k81662255": "创建邀请码", "k821ff85a": "通用", "k8266bcf2": "新密码", + "k83ede286": "已读服务", "k8582af3f": "拒绝", "k87a609ad": "请不要安装不明来源的插件,这可能会盗取你在 Tailchat 的个人信息", "k89df1d1e": "网络出现异常", @@ -134,6 +138,7 @@ "k92a84117": "认领账号", "k979fc780": "无法加入房间, 您将无法获取到最新的信息, 请刷新页面后重试", "k9bb01902": "显示详情", + "k9d5a843a": "邮件服务", "k9d901c20": "会议室", "k9dfa2c97": "永不过期", "k9f3089ce": "创建", @@ -176,6 +181,7 @@ "kb55c8dba": "邀请成员", "kb5a17e73": "退出群组", "kb6f1c83f": "想要让大家如何称呼你", + "kb7a57f24": "插件中心服务", "kb8185132": "或", "kbcb00ae5": "该插件没有更多描述", "kbcf55e47": "用户服务", diff --git a/web/src/components/modals/SettingsView/Status.tsx b/web/src/components/modals/SettingsView/Status.tsx index ac970a70..ea55f2f8 100644 --- a/web/src/components/modals/SettingsView/Status.tsx +++ b/web/src/components/modals/SettingsView/Status.tsx @@ -8,10 +8,22 @@ import { t, useAvailableServices } from 'tailchat-shared'; * 默认检查服务列表 */ const DEFAULT_SERVICES = [ + { + name: 'config', + label: t('全局配置'), + }, + { + name: 'gateway', + label: t('服务网关'), + }, { name: 'user', label: t('用户服务'), }, + { + name: 'user.dmlist', + label: t('私信服务'), + }, { name: 'chat.message', label: t('聊天服务'), @@ -20,6 +32,10 @@ const DEFAULT_SERVICES = [ name: 'chat.converse', label: t('会话服务'), }, + { + name: 'chat.ack', + label: t('已读服务'), + }, { name: 'friend', label: t('好友服务'), @@ -36,6 +52,14 @@ const DEFAULT_SERVICES = [ name: 'file', label: t('文件服务'), }, + { + name: 'mail', + label: t('邮件服务'), + }, + { + name: 'plugin.registry', + label: t('插件中心服务'), + }, ]; /**