fix: do not show billing menu in ent
This commit is contained in:
@@ -346,6 +346,7 @@ const baseRoutes = [
|
|||||||
icon: 'icon-billing-outlined',
|
icon: 'icon-billing-outlined',
|
||||||
selectedIcon: 'icon-billing-filled',
|
selectedIcon: 'icon-billing-filled',
|
||||||
defaultIcon: 'icon-billing-outlined',
|
defaultIcon: 'icon-billing-outlined',
|
||||||
|
hideInMenu: process.env.ENABLE_ENTERPRISE === 'true',
|
||||||
// OSS exposes the menu as a teaser for the enterprise billing
|
// OSS exposes the menu as a teaser for the enterprise billing
|
||||||
// module. The page itself just renders an upsell notice — the real
|
// module. The page itself just renders an upsell notice — the real
|
||||||
// billing UI lives in the enterprise plugin and shadows this route
|
// billing UI lives in the enterprise plugin and shadows this route
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'billing.upsell.title': 'Billing is an Enterprise feature',
|
'billing.upsell.title': 'Billing is an Enterprise feature',
|
||||||
'billing.upsell.subtitle':
|
'billing.upsell.subtitle':
|
||||||
'Upgrade to GPUStack Enterprise to manage billing.',
|
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
|
||||||
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
||||||
'billing.upsell.feature.usage':
|
'billing.upsell.feature.usage':
|
||||||
'See cost breakdowns by organization, user, and model',
|
'See cost breakdowns by organization, user, and model',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'billing.upsell.title': 'Billing is an Enterprise feature',
|
'billing.upsell.title': 'Billing is an Enterprise feature',
|
||||||
'billing.upsell.subtitle':
|
'billing.upsell.subtitle':
|
||||||
'Upgrade to GPUStack Enterprise to manage billing.',
|
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
|
||||||
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
||||||
'billing.upsell.feature.usage':
|
'billing.upsell.feature.usage':
|
||||||
'See cost breakdowns by organization, user, and model',
|
'See cost breakdowns by organization, user, and model',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'billing.upsell.title': 'Billing is an Enterprise feature',
|
'billing.upsell.title': 'Billing is an Enterprise feature',
|
||||||
'billing.upsell.subtitle':
|
'billing.upsell.subtitle':
|
||||||
'Upgrade to GPUStack Enterprise to manage billing.',
|
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
|
||||||
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
||||||
'billing.upsell.feature.usage':
|
'billing.upsell.feature.usage':
|
||||||
'See cost breakdowns by organization, user, and model',
|
'See cost breakdowns by organization, user, and model',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'billing.upsell.title': 'Billing is an Enterprise feature',
|
'billing.upsell.title': 'Billing is an Enterprise feature',
|
||||||
'billing.upsell.subtitle':
|
'billing.upsell.subtitle':
|
||||||
'Upgrade to GPUStack Enterprise to manage billing.',
|
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
|
||||||
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
'billing.upsell.featuresTitle': 'What you get in Enterprise',
|
||||||
'billing.upsell.feature.usage':
|
'billing.upsell.feature.usage':
|
||||||
'See cost breakdowns by organization, user, and model',
|
'See cost breakdowns by organization, user, and model',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'billing.upsell.title': '计费是企业版功能',
|
'billing.upsell.title': '计费是企业版功能',
|
||||||
'billing.upsell.subtitle': '升级到 GPUStack 企业版即可管理计费。',
|
'billing.upsell.subtitle':
|
||||||
|
'在团队间跟踪花费、生成账单并执行预算。升级到 GPUStack 企业版即可管理计费。',
|
||||||
'billing.upsell.featuresTitle': '企业版包含的能力',
|
'billing.upsell.featuresTitle': '企业版包含的能力',
|
||||||
'billing.upsell.feature.usage': '按组织、用户与模型查看成本明细',
|
'billing.upsell.feature.usage': '按组织、用户与模型查看成本明细',
|
||||||
'billing.upsell.feature.invoices': '生成账单并导出计费报表',
|
'billing.upsell.feature.invoices': '生成账单并导出计费报表',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { IconFont } from '@gpustack/core-ui';
|
import { IconFont } from '@gpustack/core-ui';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import { Button, Result } from 'antd';
|
import { Button, Result, Typography } from 'antd';
|
||||||
import PageBox from '../_components/page-box';
|
import PageBox from '../_components/page-box';
|
||||||
|
|
||||||
// OSS-only upsell page for the billing module. The real Billing UI ships
|
// OSS-only upsell page for the billing module. The real Billing UI ships
|
||||||
@@ -47,7 +47,7 @@ const Billing: React.FC = () => {
|
|||||||
textAlign: 'left'
|
textAlign: 'left'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* <Typography.Title level={5} style={{ marginBottom: 12 }}>
|
<Typography.Title level={5} style={{ marginBottom: 12 }}>
|
||||||
{intl.formatMessage({
|
{intl.formatMessage({
|
||||||
id: 'billing.upsell.featuresTitle'
|
id: 'billing.upsell.featuresTitle'
|
||||||
})}
|
})}
|
||||||
@@ -58,7 +58,7 @@ const Billing: React.FC = () => {
|
|||||||
{intl.formatMessage({ id })}
|
{intl.formatMessage({ id })}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul> */}
|
</ul>
|
||||||
<div style={{ textAlign: 'center', marginTop: 56 }}>
|
<div style={{ textAlign: 'center', marginTop: 56 }}>
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user