diff --git a/src/components/status-tag/index.less b/src/components/status-tag/index.less index 90628479..ab3e2769 100644 --- a/src/components/status-tag/index.less +++ b/src/components/status-tag/index.less @@ -8,6 +8,7 @@ min-width: 76px; width: max-content; height: 24px; + line-height: 22px; font-size: var(--font-size-small); font-weight: 400; overflow: hidden; @@ -15,7 +16,6 @@ .txt { display: flex; align-items: center; - height: 20px; gap: 4px; &.err { diff --git a/src/locales/en-US/clusters.ts b/src/locales/en-US/clusters.ts index aedc8b2a..b409abe8 100644 --- a/src/locales/en-US/clusters.ts +++ b/src/locales/en-US/clusters.ts @@ -51,11 +51,14 @@ export default { 'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with hostname -I | xargs -n1.', 'clusters.addworker.nvidiaNotes-02': 'If a model directory already exists on the worker, you can specify the path to mount it.', - 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: ln -s /path/to/hyhal /opt/hyhal ln -s /path/to/dtk /opt/dtk.`, - 'clusters.addworker.corexNotes': `If the /lib/modules directory does not exist, create a symbolic link to the Iluvatar SDK installation path: -ln -s /path/to/corex /lib/modules. Same applies to the /usr/local/corex directory.`, - 'clusters.addworker.metaxNotes': `If the /opt/mxdriver directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: -ln -s /path/to/metax /opt/mxdriver. Same applies to the /opt/maca directory.`, + 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: + ln -s /path/to/hyhal /opt/hyhal + ln -s /path/to/dtk /opt/dtk.`, + 'clusters.addworker.corexNotes': `If the /usr/local/corex directory does not exist, create a symbolic link to the Iluvatar SDK installation path: +ln -s /path/to/corex /usr/local/corex.`, + 'clusters.addworker.metaxNotes': `If the /opt/mxdriver or /opt/maca directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: +ln -s /path/to/mxdriver /opt/mxdriver +ln -s /path/to/maca /opt/maca.`, 'clusters.addworker.cambriconNotes': `If the /usr/local/neuware directory does not exist, create a symbolic link to the Cambricon installation path: ln -s /path/to/neuware /usr/local/neuware.`, 'clusters.addworker.hygonNotes-02': diff --git a/src/locales/ja-JP/clusters.ts b/src/locales/ja-JP/clusters.ts index d5bf7be7..12004feb 100644 --- a/src/locales/ja-JP/clusters.ts +++ b/src/locales/ja-JP/clusters.ts @@ -51,11 +51,14 @@ export default { 'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with hostname -I | xargs -n1.', 'clusters.addworker.nvidiaNotes-02': 'If a model directory already exists on the worker, you can specify the path to mount it.', - 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: ln -s /path/to/hyhal /opt/hyhal ln -s /path/to/dtk /opt/dtk.`, - 'clusters.addworker.corexNotes': `If the /lib/modules directory does not exist, create a symbolic link to the Iluvatar SDK installation path: -ln -s /path/to/corex /lib/modules. Same applies to the /usr/local/corex directory.`, - 'clusters.addworker.metaxNotes': `If the /opt/mxdriver directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: -ln -s /path/to/metax /opt/mxdriver. Same applies to the /opt/maca directory.`, + 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: + ln -s /path/to/hyhal /opt/hyhal + ln -s /path/to/dtk /opt/dtk.`, + 'clusters.addworker.corexNotes': `If the /usr/local/corex directory does not exist, create a symbolic link to the Iluvatar SDK installation path: +ln -s /path/to/corex /usr/local/corex.`, + 'clusters.addworker.metaxNotes': `If the /opt/mxdriver or /opt/maca directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: +ln -s /path/to/mxdriver /opt/mxdriver +ln -s /path/to/maca /opt/maca.`, 'clusters.addworker.cambriconNotes': `If the /usr/local/neuware directory does not exist, create a symbolic link to the Cambricon installation path: ln -s /path/to/neuware /usr/local/neuware.`, 'clusters.addworker.hygonNotes-02': @@ -179,8 +182,8 @@ export default { // 44. 'clusters.addworker.nvidiaNotes-01': 'If multiple outbound IPs exist, specify the one you want the worker to use. Please double-check with hostname -I | xargs -n1.', // 45. 'clusters.addworker.nvidiaNotes-02': 'If a model directory already exists on the worker, you can specify the path to mount it.', // 46. 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: ln -s /path/to/hyhal /opt/hyhal ln -s /path/to/dtk /opt/dtk.`, -// 47. 'clusters.addworker.corexNotes': 'If the /lib/modules directory does not exist, create a symbolic link to the Iluvatar SDK installation path: ln -s /path/to/corex /lib/modules. Same applies to the /usr/local/corex directory.', -// 48. 'clusters.addworker.metaxNotes': 'If the /opt/mxdriver directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: ln -s /path/to/metax /opt/mxdriver. Same applies to the /opt/maca directory.', +// 47. 'clusters.addworker.corexNotes': `If the /usr/local/corex directory does not exist, create a symbolic link to the Iluvatar SDK installation path: ln -s /path/to/corex /usr/local/corex.`, +// 47. 'clusters.addworker.metaxNotes': `If the /opt/mxdriver or /opt/maca directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: ln -s /path/to/mxdriver /opt/mxdriverln -s /path/to/maca /opt/maca.`, // 49. 'clusters.addworker.cambriconNotes': 'If the /usr/local/neuware directory does not exist, create a symbolic link to the Cambricon installation path: ln -s /path/to/neuware /usr/local/neuware.' // 50. 'clusters.addworker.hygonNotes-02': 'If device detection fails, try removing --env ROCM_SMI_LIB_PATH=/opt/hyhal/lib.', // 51. 'clusters.addworker.selectCluster': 'Select Cluster', diff --git a/src/locales/ru-RU/clusters.ts b/src/locales/ru-RU/clusters.ts index 1f14a389..c82e1953 100644 --- a/src/locales/ru-RU/clusters.ts +++ b/src/locales/ru-RU/clusters.ts @@ -51,11 +51,14 @@ export default { 'Если существует несколько исходящих IP-адресов, укажите тот, который должен использовать воркер. Пожалуйста, перепроверьте с помощью hostname -I | xargs -n1.', 'clusters.addworker.nvidiaNotes-02': 'Если директория с моделями уже существует на воркере, вы можете указать путь для её монтирования.', - 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: ln -s /path/to/hyhal /opt/hyhal ln -s /path/to/dtk /opt/dtk.`, + 'clusters.addworker.hygonNotes': `If /opt/hyhal or /opt/dtk does not exist, create symbolic links pointing to the corresponding Hygon installation paths, for example: + ln -s /path/to/hyhal /opt/hyhal + ln -s /path/to/dtk /opt/dtk.`, 'clusters.addworker.corexNotes': - 'Если директория /lib/modules не существует, создайте символическую ссылку на путь установки Iluvatar SDK: ln -s /path/to/corex /lib/modules. Аналогично для директории /usr/local/corex.', - 'clusters.addworker.metaxNotes': - 'Если директория /opt/mxdriver не существует, создайте символическую ссылку на путь установки MetaX SDK: ln -s /path/to/metax /opt/mxdriver. Аналогично для директории /opt/maca.', + 'Если директория /usr/local/corex не существует, создайте символическую ссылку на путь установки Iluvatar SDK: ln -s /path/to/corex /usr/local/corex.', + 'clusters.addworker.metaxNotes': `If the /opt/mxdriver or /opt/maca directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: + ln -s /path/to/mxdriver /opt/mxdriver + ln -s /path/to/maca /opt/maca.`, 'clusters.addworker.cambriconNotes': 'Если директория /usr/local/neuware не существует, создайте символическую ссылку на путь установки Cambricon: ln -s /path/to/neuware /usr/local/neuware.', 'clusters.addworker.hygonNotes-02': @@ -145,4 +148,5 @@ export default { // 9. 'clusters.create.steps.configure': 'Configure', // 10. 'clusters.addworker.theadNotes': 'If the ln -s /path/to/PPU_SDK /usr/local/PPU_SDK', // 11. 'clusters.addworker.theadNotes-02': 'T-Head PPU uses the Container Device Interface (CDI) for device injection and requires the /var/run/cdi directory to be available for CDI generation.' +// 12. 'clusters.addworker.metaxNotes': `If the /opt/mxdriver or /opt/maca directory does not exist, create a symbolic link to the MetaX driver and SDK installation path: ln -s /path/to/mxdriver /opt/mxdriverln -s /path/to/maca /opt/maca.`, // ================================================================ diff --git a/src/locales/zh-CN/clusters.ts b/src/locales/zh-CN/clusters.ts index 208618c6..6f489c4c 100644 --- a/src/locales/zh-CN/clusters.ts +++ b/src/locales/zh-CN/clusters.ts @@ -52,12 +52,13 @@ export default { 'clusters.addworker.hygonNotes': `如果 /opt/hyhal/opt/dtk 不存在,请创建指向对应海光安装路径的符号链接,例如: ln -s /path/to/hyhal /opt/hyhal ln -s /path/to/dtk /opt/dtk`, - 'clusters.addworker.corexNotes': - '如果 /lib/modules 目录不存在,请创建指向天数智芯 SDK 安装路径的符号链接:ln -s /path/to/corex /lib/modules。与 /usr/local/corex 目录相同。', - 'clusters.addworker.metaxNotes': - '如果 /opt/mxdriver 目录不存在,请创建指向沐曦驱动和 SDK 安装路径的符号链接:ln -s /path/to/metax /opt/mxdriver。与 /opt/maca 目录相同。', - 'clusters.addworker.cambriconNotes': - '如果 /usr/local/neuware 目录不存在,请创建指向寒武纪安装路径的符号链接:ln -s /path/to/neuware /usr/local/neuware。', + 'clusters.addworker.corexNotes': `如果 /usr/local/corex 目录不存在,请创建指向天数智芯 SDK 安装路径的符号链接: + ln -s /path/to/corex /usr/local/corex。`, + 'clusters.addworker.metaxNotes': `如果 /opt/mxdriver/opt/maca 目录不存在,请创建指向沐曦驱动和 SDK 安装路径的符号链接: + ln -s /path/to/mxdriver /opt/mxdriver + ln -s /path/to/maca /opt/maca。`, + 'clusters.addworker.cambriconNotes': `如果 /usr/local/neuware 目录不存在,请创建指向寒武纪安装路径的符号链接: + ln -s /path/to/neuware /usr/local/neuware。`, 'clusters.addworker.hygonNotes-02': '如果未能检测到设备,请尝试移除 --env ROCM_SMI_LIB_PATH=/opt/hyhal/lib。', 'clusters.addworker.selectCluster': '选择集群', @@ -96,8 +97,8 @@ export default { 'clusters.addworker.vendorNotes.title': '{vendor}设备注意事项', 'clusters.button.genToken': '需要创建令牌?点击这里。', - 'clusters.addworker.amdNotes-01': - '如果 /opt/rocm 目录不存在,请创建一个指向已安装 ROCm 路径的符号链接:ln -s /path/to/rocm /opt/rocm。', + 'clusters.addworker.amdNotes-01': `如果 /opt/rocm 目录不存在,请创建一个指向已安装 ROCm 路径的符号链接: + ln -s /path/to/rocm /opt/rocm。`, 'clusters.addworker.message.success_single': '已将 {count} 个新节点添加到集群中。', 'clusters.addworker.message.success_multiple': diff --git a/src/pages/_components/scroll-spy-tabs/use-finish-failed.ts b/src/pages/_components/scroll-spy-tabs/use-finish-failed.ts index 6ed5bee4..16364163 100644 --- a/src/pages/_components/scroll-spy-tabs/use-finish-failed.ts +++ b/src/pages/_components/scroll-spy-tabs/use-finish-failed.ts @@ -14,6 +14,8 @@ const useFinishFailed = (options: FinishFailedOptions) => { const handleOnFinishFailed = (errorInfo: any) => { const { errorFields } = errorInfo; + console.log('Finish failed:', errorInfo); + if (errorFields && errorFields.length > 0) { const collapseKeys: { sort: number; key: string }[] = []; const names = errorFields.map((item: any) => item.name[0]); diff --git a/src/pages/dashboard/hooks/use-add-resource.tsx b/src/pages/dashboard/hooks/use-add-resource.tsx index 7b9f608c..2037b631 100644 --- a/src/pages/dashboard/hooks/use-add-resource.tsx +++ b/src/pages/dashboard/hooks/use-add-resource.tsx @@ -47,6 +47,7 @@ const Content = styled.div` width: 100%; padding: 0 16px; margin-top: 32px; + margin-bottom: 4px; display: flex; gap: 16px; justify-content: center; diff --git a/src/pages/maas-provider/forms/index.tsx b/src/pages/maas-provider/forms/index.tsx index 8b6cea5d..e80885ad 100644 --- a/src/pages/maas-provider/forms/index.tsx +++ b/src/pages/maas-provider/forms/index.tsx @@ -33,7 +33,7 @@ const TABKeysMap = { const requiredFields = { [TABKeysMap.BASIC]: { sort: 1, - fields: ['name', 'config.type', 'api_key'] + fields: ['name', 'config', 'api_key'] }, [TABKeysMap.SUPPORTEDMODELS]: { sort: 2,