From e7186dffef7d079c4d62e13825cffc4c4d8e53ef Mon Sep 17 00:00:00 2001 From: jiann Date: Fri, 25 Apr 2025 21:44:05 +0800 Subject: [PATCH] fix: remove tip in plugin page --- packages/core/client/src/locale/en-US.json | 3 +- packages/core/client/src/locale/zh-CN.json | 4 +- packages/core/client/src/pm/PluginManager.tsx | 1 - .../src/pm/PluginManagerAccountAlert.tsx | 45 ------------------- 4 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 packages/core/client/src/pm/PluginManagerAccountAlert.tsx diff --git a/packages/core/client/src/locale/en-US.json b/packages/core/client/src/locale/en-US.json index f64e39e3a6..b3b42c43e2 100644 --- a/packages/core/client/src/locale/en-US.json +++ b/packages/core/client/src/locale/en-US.json @@ -893,6 +893,5 @@ "Full permissions": "Full permissions", "Refresh data blocks": "Refresh data blocks", "Select data blocks to refresh": "Select data blocks to refresh", - "After successful submission, the selected data blocks will be automatically refreshed.": "After successful submission, the selected data blocks will be automatically refreshed.", - "You currently manage plugins using your account password. This has now been updated to an license-based management system. Please refer to the relevant documentation.": "You currently manage plugins using your account password. This has now been updated to an license-based management system. Please refer to the relevant documentation." + "After successful submission, the selected data blocks will be automatically refreshed.": "After successful submission, the selected data blocks will be automatically refreshed." } diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index bf38f24ade..ba082807f2 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -1102,8 +1102,6 @@ "Response record":"响应结果记录", "Colon":"冒号", "After successful submission, the selected data blocks will be automatically refreshed.": "提交成功后,会自动刷新这里选中的数据区块。", - "You currently manage plugins using your account password. This has now been updated to an license-based management system. Please refer to the relevant documentation.": "您目前使用账号密码管理插件,现已调整为授权管理模式。请查阅相关文档。", "No pages yet, please configure first": "暂无页面,请先配置", - "Click the \"UI Editor\" icon in the upper right corner to enter the UI Editor mode": "点击右上角的“界面配置”图标,进入界面配置模式", - "After successful submission, the selected data blocks will be automatically refreshed.": "提交成功后,会自动刷新这里选中的数据区块。" + "Click the \"UI Editor\" icon in the upper right corner to enter the UI Editor mode": "点击右上角的“界面配置”图标,进入界面配置模式" } diff --git a/packages/core/client/src/pm/PluginManager.tsx b/packages/core/client/src/pm/PluginManager.tsx index a374e82b6a..4a373320b9 100644 --- a/packages/core/client/src/pm/PluginManager.tsx +++ b/packages/core/client/src/pm/PluginManager.tsx @@ -271,7 +271,6 @@ const LocalPlugins = () => { }} />
-
{ - const { t } = useTranslation(); - const navigate = useNavigateNoUpdate(); - const { data, loading, refresh } = useRequest({ - url: 'pm:useMethod', - }); - if (data?.data?.method !== 'account') { - return null; - } - return ( - - {t( - 'You currently manage plugins using your account password. This has now been updated to an license-based management system. Please refer to the relevant documentation.', - )}{' '} -
- } - action={ - - } - /> - ); -};