Skip to content

Commit

Permalink
enhancement: application text adjust (#4316)
Browse files Browse the repository at this point in the history
Signed-off-by: leioy <[email protected]>
  • Loading branch information
Leioy authored Sep 25, 2024
1 parent 75df2ae commit 5cc554f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
APP_PL: 'Apps',
APP_TYPES_Q: 'What app types does KubeSphere support?',
APP_TYPES_A:
'KubeSphere supports templated-based apps and composed apps. Template-based apps are created from You can deploy apps from the KubeSphere App Store or an app template. Composed apps are customized by users.',
'KubeSphere supports templated-based apps. Template-based apps are created from You can deploy apps from the KubeSphere App Store or an app template.',
HOW_TO_USE_APP_GOVERN_Q: 'How do I use Application Governance?',
HOW_TO_USE_APP_GOVERN_A: 'You can enable Application Governance when you create a composed app.',
DEPLOY_SAMPLE_APP: 'Deploy Sample App',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module.exports = {
APPLICATIONS_DESC: '應用為用戶提供完整的業務功能,由一個或多個特定功能的組件組成。',
APP_PL: '應用',
APP_TYPES_Q: '應用類型',
APP_TYPES_A:
'KubeSphere 支持來自於應用商店和應用倉庫的應用部署(基於 Helm),同樣也支持自制應用(Application CRD)。',
APP_TYPES_A: 'KubeSphere 支持來自於應用商店和應用倉庫的應用部署(基於 Helm)。',
HOW_TO_USE_APP_GOVERN_Q: '如何使用應用治理?',
HOW_TO_USE_APP_GOVERN_A: '使用應用治理需要創建自制應用並對每項服務開啟服務治理功能',
DEPLOY_SAMPLE_APP: '部署範例應用',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
APP_PL: '应用',
APP_TYPES_Q: 'KubeSphere 支持哪些应用类型?',
APP_TYPES_A:
'KubeSphere 支持基于模板的应用和自制应用。基于模板的应用创建自 KubeSphere 应用商店或应用模板,自制应用由用户自定义。',
'KubeSphere 支持基于模板的应用。基于模板的应用创建自 KubeSphere 应用商店或应用模板。',
HOW_TO_USE_APP_GOVERN_Q: '如何使用应用治理功能?',
HOW_TO_USE_APP_GOVERN_A: '您可以在创建自制应用时启用应用治理功能。',
DEPLOY_SAMPLE_APP: '部署示例应用',
Expand Down
15 changes: 0 additions & 15 deletions packages/shared/src/components/Apps/Applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ import { OPAppTable } from './AppTypeTable';
import type { OPAppTableProps } from './AppTypeTable';

export function Applications(props: OPAppTableProps): JSX.Element {
const navigate = useNavigate();
const { appType } = useParams();
const [urlPrefix] = useStore('wujieUrlPrefix');
const navs = [
{
value: 'template',
label: t('TEMPLATE_BASED_APP_PL'),
},
];

function handleNavChange(nav: string): void {
navigate(`${urlPrefix}/applications/${nav}`);
}

return (
<>
<Banner
Expand All @@ -35,7 +21,6 @@ export function Applications(props: OPAppTableProps): JSX.Element {
title={t(`APP_PL`)}
description={t('APPLICATIONS_DESC')}
>
<Navs value={appType} data={navs} onChange={handleNavChange} />
<BannerTip title={t('APP_TYPES_Q')} key="app-type">
{t('APP_TYPES_A')}
</BannerTip>
Expand Down

0 comments on commit 5cc554f

Please sign in to comment.