Skip to content

Commit 9675148

Browse files
authored
[app-builder] remove deprecated online help redirection (#575)
1 parent 25f497d commit 9675148

5 files changed

Lines changed: 1 addition & 30 deletions

File tree

frontend/src/pages/appDev/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,6 @@ const AppDev: React.FC = () => {
243243
</div>
244244
};
245245

246-
// 联机帮助
247-
const onlineHelp = () => {
248-
window.open(`${window.parent.location.origin}/help${getCookie('locale').toLocaleLowerCase() === 'en-us' ? '/en' : '/zh'}/application_development.html`, '_blank');
249-
}
250-
251246
useEffect(() => {
252247
const fetchTab = async () => {
253248
const newTab = await queryAppCategories(tenantId, false);
@@ -260,7 +255,6 @@ const AppDev: React.FC = () => {
260255
<div className={setSpaClassName('apps_root')}>
261256
<div className='apps_header'>
262257
<div className='apps_title'>{t('appDevelopment')}</div>
263-
{ process.env.PACKAGE_MODE === 'spa' && <QuestionCircleOutlined onClick={onlineHelp} />}
264258
</div>
265259
<div className='apps_main'>
266260
<div className='apps-haeader-content'>

frontend/src/pages/apps/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,13 @@ const Apps: React.FC = () => {
9999
}
100100
}
101101

102-
// 联机帮助
103-
const onlineHelp = () => {
104-
window.open(`${window.parent.location.origin}/help${getCookie('locale').toLocaleLowerCase() === 'en-us' ? '/en' : '/zh'}/application_market.html`, '_blank');
105-
}
106-
107102
useEffect(() => {
108103
queryApps();
109104
}, [page, pageSize, search]);
110105
return (
111106
<div className={setSpaClassName('apps_root')}>
112107
<div className='apps_header'>
113108
<div className='apps_title'>{t('applicationMarket')}</div>
114-
{ process.env.PACKAGE_MODE === 'spa' && <QuestionCircleOutlined onClick={onlineHelp} />}
115109
</div>
116110
<div className='apps_main_market'>
117111
<div className='operatorArea'>

frontend/src/pages/intelligent-form/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,10 @@ import './index.scss';
2121
const IntelligentForm = () => {
2222
const { t } = useTranslation();
2323

24-
// 联机帮助
25-
const onlineHelp = () => {
26-
window.open(`${window.parent.location.origin}/help${getCookie('locale').toLocaleLowerCase() === 'en-us' ? '/en' : '/zh'}/smart_forms.html`, '_blank');
27-
}
28-
2924
return <div className={setSpaClassName('app-fullpage')}>
3025
<div className='aui-header-1'>
3126
<div className='aui-title-1'>
3227
{t('intelligentForm')}
33-
{ process.env.PACKAGE_MODE === 'spa' && <QuestionCircleOutlined onClick={onlineHelp} style={{ marginLeft: '8px', fontSize: '18px' }} />}
3428
</div>
3529
</div>
3630
<div className='aui-block'>
@@ -39,4 +33,4 @@ const IntelligentForm = () => {
3933
</div>
4034
};
4135

42-
export default IntelligentForm;
36+
export default IntelligentForm;

frontend/src/pages/plugin/detail/plugin-list.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ const PliginList = (props) => {
4949
}
5050
};
5151

52-
// 联机帮助
53-
const onlineHelp = () => {
54-
window.open(`${window.parent.location.origin}/help${getCookie('locale').toLocaleLowerCase() === 'en-us' ? '/en' : '/zh'}/application_plug-in.html`, '_blank');
55-
}
56-
5752
useEffect(() => {
5853
getPluginList();
5954
}, []);
@@ -64,7 +59,6 @@ const PliginList = (props) => {
6459
<div className='aui-header-1 '>
6560
<div className='aui-title-1'>
6661
{t('pluginManagement')}
67-
{ process.env.PACKAGE_MODE === 'spa' && <QuestionCircleOutlined onClick={onlineHelp} style={{ marginLeft: '8px', fontSize: '18px' }} />}
6862
</div>
6963
{ !readOnly && <Button type='primary' onClick={() => setOpen(true)}>{t('deploying')}</Button> }
7064
</div>

frontend/src/pages/plugin/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,11 @@ const Plugin = () => {
3636
setOpen(true);
3737
setReload(!reload);
3838
}
39-
// 联机帮助
40-
const onlineHelp = () => {
41-
window.open(`${window.parent.location.origin}/help${getCookie('locale').toLocaleLowerCase() === 'en-us' ? '/en' : '/zh'}/application_plug-in.html`, '_blank');
42-
}
4339
return (
4440
<div className={setSpaClassName('app-fullpage')} style={{ display: 'flex', flexDirection: 'column' }}>
4541
<div className='aui-header-1 '>
4642
<div className='aui-title-1'>
4743
{t('pluginManagement')}
48-
{ process.env.PACKAGE_MODE === 'spa' && <QuestionCircleOutlined onClick={onlineHelp} style={{ marginLeft: '8px', fontSize: '18px' }} /> }
4944
</div>
5045
{ !readOnly && <Button type='primary' onClick={setDeployOpen}>{t('deploying')}</Button> }
5146
</div>

0 commit comments

Comments
 (0)