chore: add hint for creating backend

This commit is contained in:
jialin
2026-03-09 15:48:16 +08:00
parent cf521ad79e
commit 73e52fe334
5 changed files with 32 additions and 9 deletions
+3 -1
View File
@@ -44,5 +44,7 @@ export default {
'backend.filter.source': 'Filter by source', 'backend.filter.source': 'Filter by source',
'backend.add.custom': 'Custom', 'backend.add.custom': 'Custom',
'backend.add.community': 'Community', 'backend.add.community': 'Community',
'backend.community.title': 'Community Backend Marketplace' 'backend.community.title': 'Community Backend Marketplace',
'backend.form.add.hint':
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
}; };
+3 -1
View File
@@ -44,5 +44,7 @@ export default {
'backend.filter.source': 'Filter by source', 'backend.filter.source': 'Filter by source',
'backend.add.custom': 'Custom', 'backend.add.custom': 'Custom',
'backend.add.community': 'Community', 'backend.add.community': 'Community',
'backend.community.title': 'Community Backend Marketplace' 'backend.community.title': 'Community Backend Marketplace',
'backend.form.add.hint':
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
}; };
+4 -1
View File
@@ -44,7 +44,9 @@ export default {
'backend.filter.source': 'Filter by source', 'backend.filter.source': 'Filter by source',
'backend.add.custom': 'Custom', 'backend.add.custom': 'Custom',
'backend.add.community': 'Community', 'backend.add.community': 'Community',
'backend.community.title': 'Community Backend Marketplace' 'backend.community.title': 'Community Backend Marketplace',
'backend.form.add.hint':
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
}; };
// ========== To-Do: Translate Keys (Remove After Translation) ========== // ========== To-Do: Translate Keys (Remove After Translation) ==========
@@ -54,4 +56,5 @@ export default {
// 4. 'backend.add.custom': 'Custom', // 4. 'backend.add.custom': 'Custom',
// 5. 'backend.add.community': 'Community', // 5. 'backend.add.community': 'Community',
// 6. 'backend.community.title': 'Community Backend Marketplace' // 6. 'backend.community.title': 'Community Backend Marketplace'
// 7. 'backend.form.add.hint': 'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
// ========== End of To-Do List ========== // ========== End of To-Do List ==========
+3 -1
View File
@@ -41,5 +41,7 @@ export default {
'backend.filter.source': '按来源过滤', 'backend.filter.source': '按来源过滤',
'backend.add.custom': '自定义', 'backend.add.custom': '自定义',
'backend.add.community': '社区', 'backend.add.community': '社区',
'backend.community.title': '社区后端市场' 'backend.community.title': '社区后端市场',
'backend.form.add.hint':
'如果需要使用内置后端(如 vLLM、SGLang、MindIE)的其他版本,请在对应后端中添加新版本,而不是添加自定义后端。'
}; };
+19 -5
View File
@@ -1,3 +1,4 @@
import AlertBlockInfo from '@/components/alert-info/block';
import IconFont from '@/components/icon-font'; import IconFont from '@/components/icon-font';
import ModalFooter from '@/components/modal-footer'; import ModalFooter from '@/components/modal-footer';
import GSDrawer from '@/components/scroller-modal/gs-drawer'; import GSDrawer from '@/components/scroller-modal/gs-drawer';
@@ -244,11 +245,24 @@ const AddModal: React.FC<AddModalProps> = (props) => {
} }
}} }}
footer={ footer={
<ModalFooter <>
onCancel={onClose} {action === PageAction.CREATE && (
onOk={onOk} <div style={{ marginInline: 24, paddingTop: 8 }}>
style={ModalFooterStyle} <AlertBlockInfo
></ModalFooter> type="warning"
contentStyle={{ paddingInline: 0 }}
message={intl.formatMessage({
id: 'backend.form.add.hint'
})}
></AlertBlockInfo>
</div>
)}
<ModalFooter
onCancel={onClose}
onOk={onOk}
style={ModalFooterStyle}
></ModalFooter>
</>
} }
> >
<Tabs <Tabs