Skip to content

Commit

Permalink
feat: add alpha warning for gatewayapi integration
Browse files Browse the repository at this point in the history
  • Loading branch information
iendi committed Dec 23, 2024
1 parent 7b1b43a commit 55f5ffb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion frontend/src/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@
"ingressMode": "Ingress Mode",
"fetchError": "Failed to fetch Higress Work Mode",
"updateSuccess": "Successfully updated Higress Work Mode",
"updateError": "Failed to update Higress Work Mode"
"updateError": "Failed to update Higress Work Mode",
"alertTitle": "Gateway API Mode Notes",
"alertDescription": "Gateway API Mode is currently in Alpha stage. The following features are still being adapted: CORS (Cross-Origin Resource Sharing), request retry policy, case-insensitive URL paths, and HTTPS forced redirection."
}
}
4 changes: 3 additions & 1 deletion frontend/src/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@
"ingressMode": "ingress模式",
"fetchError": "获取 Higress 工作模式失败",
"updateSuccess": "更新 Higress 工作模式成功",
"updateError": "更新 Higress 工作模式失败"
"updateError": "更新 Higress 工作模式失败",
"alertTitle": "Gateway API 模式功能适配说明",
"alertDescription": "Gateway API 模式目前处于 Alpha 阶段,以下功能仍在适配中:CORS(跨域资源共享)、请求重试策略、URL 路径忽略大小写、HTTPS 强制跳转。"
}
}
9 changes: 8 additions & 1 deletion frontend/src/pages/higress-configs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @ts-nocheck
import React from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Form, Select, Button, message } from 'antd';
import { Form, Select, Button, message, Alert } from 'antd';
import { useTranslation } from 'react-i18next';
import { useRequest } from 'ahooks';
import { getIngressWorkMode, setIngressWorkMode } from '@/services';
Expand Down Expand Up @@ -51,6 +51,13 @@ const HigressConfig: React.FC = () => {
padding: 16,
}}
>
<Alert
message={t('higressConfig.alertTitle')}
description={t('higressConfig.alertDescription')}
type="info"
showIcon
style={{ marginBottom: 24 }}
/>
<Form
form={form}
onFinish={onFinish}
Expand Down

0 comments on commit 55f5ffb

Please sign in to comment.