fix: remove tip in plugin page

This commit is contained in:
jiann 2025-04-25 21:44:05 +08:00
parent f1a88e2a89
commit e7186dffef
4 changed files with 2 additions and 51 deletions

View File

@ -893,6 +893,5 @@
"Full permissions": "Full permissions", "Full permissions": "Full permissions",
"Refresh data blocks": "Refresh data blocks", "Refresh data blocks": "Refresh data blocks",
"Select data blocks to refresh": "Select data blocks to refresh", "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.", "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."
} }

View File

@ -1102,8 +1102,6 @@
"Response record":"响应结果记录", "Response record":"响应结果记录",
"Colon":"冒号", "Colon":"冒号",
"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.": "您目前使用账号密码管理插件,现已调整为授权管理模式。请查阅相关文档。",
"No pages yet, please configure first": "暂无页面,请先配置", "No pages yet, please configure first": "暂无页面,请先配置",
"Click the \"UI Editor\" icon in the upper right corner to enter the UI Editor mode": "点击右上角的“界面配置”图标,进入界面配置模式", "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.": "提交成功后,会自动刷新这里选中的数据区块。"
} }

View File

@ -271,7 +271,6 @@ const LocalPlugins = () => {
}} }}
/> />
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
<PluginManagerAccountAlert />
<div <div
style={{ marginBottom: theme.marginLG }} style={{ marginBottom: theme.marginLG }}
className={css` className={css`

View File

@ -1,45 +0,0 @@
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { ApiOutlined, SettingOutlined } from '@ant-design/icons';
import { Button, Alert, Tooltip } from 'antd';
import React, { useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import { useApp, useNavigateNoUpdate } from '../application';
import { useRequest } from '../api-client';
export const PluginManagerAccountAlert = () => {
const { t } = useTranslation();
const navigate = useNavigateNoUpdate();
const { data, loading, refresh } = useRequest<any>({
url: 'pm:useMethod',
});
if (data?.data?.method !== 'account') {
return null;
}
return (
<Alert
type="warning"
style={{ marginBottom: '1.2em', alignItems: 'center', marginLeft: 200 }}
description={
<div>
{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.',
)}{' '}
</div>
}
action={
<Button size="middle" type="link">
{t('Docs')}
</Button>
}
/>
);
};