feat: add manual install warning

release/desktop
moonrailgun 3 years ago
parent e1204766a9
commit f5a5b0c03d

@ -22,6 +22,7 @@
"k2a8031e": "Homepage",
"k2d6cfb27": "Chat Channel",
"k2ec4966c": "Selected {{num}} items",
"k3081870c": "More",
"k3172297b": "This feature is not yet open",
"k31a9d6a3": "The connect to the server is broken",
"k323b5cc7": "Recall",
@ -90,6 +91,7 @@
"k814bdc7a": "Is not a valid JSON string",
"k821ff85a": "Common",
"k8582af3f": "Refuse",
"k87a609ad": "Please do not install plugins from unknown sources, it may steal your personal information in Tailchat",
"k89df1d1e": "The network is abnormal",
"k8abdba5c": "Has been sent",
"k8acbe00": "Current service available",

@ -22,6 +22,7 @@
"k2a8031e": "个人主页",
"k2d6cfb27": "聊天频道",
"k2ec4966c": "已选择 {{num}} 项",
"k3081870c": "更多",
"k3172297b": "该功能暂未开放",
"k31a9d6a3": "与服务器的链接已断开",
"k323b5cc7": "撤回",
@ -90,6 +91,7 @@
"k814bdc7a": "不是一个合法的JSON字符串",
"k821ff85a": "通用",
"k8582af3f": "拒绝",
"k87a609ad": "请不要安装不明来源的插件,这可能会盗取你在 Tailchat 的个人信息",
"k89df1d1e": "网络出现异常",
"k8abdba5c": "已发送",
"k8acbe00": "当前服务可用",

@ -1,4 +1,4 @@
import { Button, Input } from 'antd';
import { Button, Input, Typography } from 'antd';
import React, { useMemo, useState } from 'react';
import { isValidJson, showToasts, t, useAsyncRequest } from 'tailchat-shared';
import { pluginManager } from '../manager';
@ -19,6 +19,10 @@ export const ManualInstall: React.FC = React.memo(() => {
return (
<div className="p-2">
<Typography.Paragraph>
{t('请不要安装不明来源的插件,这可能会盗取你在 Tailchat 的个人信息')}
</Typography.Paragraph>
<Input.TextArea
placeholder={t(
'请手动输入JSON信息如果你不明确你在做什么请不要使用该功能'

Loading…
Cancel
Save