perf: 优化插件安装的文案

pull/56/head
moonrailgun 3 years ago
parent 74ff50ebaf
commit 6db55fcae2

@ -9,7 +9,6 @@
"k13ae6a93": "Copy", "k13ae6a93": "Copy",
"k13bea6d2": "User not found", "k13bea6d2": "User not found",
"k1596c75c": "Only allow specified users to speak", "k1596c75c": "Only allow specified users to speak",
"k162e37f1": "Plugin is successfully uninstalled, and it needs to be restarted to take effect",
"k1704ea49": "Install", "k1704ea49": "Install",
"k17777797": "The panel is provided by the plugin", "k17777797": "The panel is provided by the plugin",
"k18580d81": "Create a link and send it to external friends", "k18580d81": "Create a link and send it to external friends",
@ -117,6 +116,7 @@
"k68283d04": "Application sent", "k68283d04": "Application sent",
"k685a1e78": "Copied to clipboard", "k685a1e78": "Copied to clipboard",
"k6b5e7ffe": "The current panel has been opened in a separate window", "k6b5e7ffe": "The current panel has been opened in a separate window",
"k6b82e672": "The plugin is installed successfully, and it will take effect after refreshing the page",
"k6c29eece": "Allows members to send message in text channels", "k6c29eece": "Allows members to send message in text channels",
"k6c75d61f": "Modify group avatar success", "k6c75d61f": "Modify group avatar success",
"k6cc401b0": "No role groups are currently selected", "k6cc401b0": "No role groups are currently selected",
@ -175,7 +175,6 @@
"k9fc409ec": "Install Succeed", "k9fc409ec": "Install Succeed",
"ka01a00eb": "System language", "ka01a00eb": "System language",
"ka0451c97": "Cancel", "ka0451c97": "Cancel",
"ka14986f0": "Plugin install successed, need to be restarted to take effect",
"ka29e9508": "Send Image", "ka29e9508": "Send Image",
"ka2c48894": "Customize your group", "ka2c48894": "Customize your group",
"ka2ed2b61": "Are you sure you want to do this?", "ka2ed2b61": "Are you sure you want to do this?",
@ -264,6 +263,7 @@
"kdc3e5cf6": "No friend requests pending", "kdc3e5cf6": "No friend requests pending",
"kdc4b4f92": "Public", "kdc4b4f92": "Public",
"kdc8de4ff": "Auto", "kdc8de4ff": "Auto",
"kdce55773": "The plugin is uninstalled successfully, and it will take effect after refreshing the page",
"kdd4c838c": "Jump to Group", "kdd4c838c": "Jump to Group",
"kdd6c18f8": "Service exception", "kdd6c18f8": "Service exception",
"kdef84ee6": "Plugin", "kdef84ee6": "Plugin",

@ -9,7 +9,6 @@
"k13ae6a93": "复制", "k13ae6a93": "复制",
"k13bea6d2": "没有找到用户", "k13bea6d2": "没有找到用户",
"k1596c75c": "仅允许指定用户发言", "k1596c75c": "仅允许指定用户发言",
"k162e37f1": "插件卸载成功, 需要重启后生效",
"k1704ea49": "安装", "k1704ea49": "安装",
"k17777797": "该面板由插件提供", "k17777797": "该面板由插件提供",
"k18580d81": "创建链接并发送给外部好友", "k18580d81": "创建链接并发送给外部好友",
@ -117,6 +116,7 @@
"k68283d04": "已发送申请", "k68283d04": "已发送申请",
"k685a1e78": "已复制到剪切板", "k685a1e78": "已复制到剪切板",
"k6b5e7ffe": "当前面板已在独立窗口打开", "k6b5e7ffe": "当前面板已在独立窗口打开",
"k6b82e672": "插件安装成功, 刷新页面后生效",
"k6c29eece": "允许成员在文字频道发送消息", "k6c29eece": "允许成员在文字频道发送消息",
"k6c75d61f": "修改群组头像成功", "k6c75d61f": "修改群组头像成功",
"k6cc401b0": "当前没有选择任何角色组", "k6cc401b0": "当前没有选择任何角色组",
@ -175,7 +175,6 @@
"k9fc409ec": "安装成功", "k9fc409ec": "安装成功",
"ka01a00eb": "系统语言", "ka01a00eb": "系统语言",
"ka0451c97": "取消", "ka0451c97": "取消",
"ka14986f0": "插件安装成功, 需要重启后生效",
"ka29e9508": "发送图片", "ka29e9508": "发送图片",
"ka2c48894": "自定义你的群组", "ka2c48894": "自定义你的群组",
"ka2ed2b61": "确认要进行该操作么?", "ka2ed2b61": "确认要进行该操作么?",
@ -264,6 +263,7 @@
"kdc3e5cf6": "暂无待处理的好友请求", "kdc3e5cf6": "暂无待处理的好友请求",
"kdc4b4f92": "公共", "kdc4b4f92": "公共",
"kdc8de4ff": "自动", "kdc8de4ff": "自动",
"kdce55773": "插件卸载成功, 刷新页面后生效",
"kdd4c838c": "跳转到群组", "kdd4c838c": "跳转到群组",
"kdd6c18f8": "服务异常", "kdd6c18f8": "服务异常",
"kdef84ee6": "插件", "kdef84ee6": "插件",

@ -28,7 +28,7 @@ export const PluginStoreItem: React.FC<{
const [{ loading }, handleInstallPlugin] = useAsyncRequest(async () => { const [{ loading }, handleInstallPlugin] = useAsyncRequest(async () => {
await pluginManager.installPlugin(manifest); await pluginManager.installPlugin(manifest);
if (manifest.requireRestart === true) { if (manifest.requireRestart === true) {
showToasts(t('插件安装成功, 需要重启后生效'), 'success'); showToasts(t('插件安装成功, 刷新页面后生效'), 'success');
} else { } else {
showToasts(t('插件安装成功'), 'success'); showToasts(t('插件安装成功'), 'success');
} }
@ -40,7 +40,7 @@ export const PluginStoreItem: React.FC<{
message: t('是否要卸载插件'), message: t('是否要卸载插件'),
onConfirm: async () => { onConfirm: async () => {
await pluginManager.uninstallPlugin(manifest.name); await pluginManager.uninstallPlugin(manifest.name);
showToasts(t('插件卸载成功, 需要重启后生效'), 'success'); showToasts(t('插件卸载成功, 刷新页面后生效'), 'success');
}, },
}); });
}, [manifest]); }, [manifest]);

Loading…
Cancel
Save