|
|
|
@@ -1,3 +1,4 @@ |
|
|
|
import { ResourceSelectorResponse } from '@/components/ResourceSelectorModal'; |
|
|
|
import { ResourceInfoTabKeys } from '@/pages/Dataset/components/ResourceInfo'; |
|
|
|
import { |
|
|
|
DataSource, |
|
|
|
@@ -50,6 +51,14 @@ export const formatModel = (model: ModelData) => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
// 格式化镜像 |
|
|
|
export const formatMirror = (mirror: ResourceSelectorResponse) => { |
|
|
|
if (!mirror) { |
|
|
|
return undefined; |
|
|
|
} |
|
|
|
return mirror.path; |
|
|
|
}; |
|
|
|
|
|
|
|
// 格式化代码配置 |
|
|
|
export const formatCodeConfig = (project?: ProjectDependency | SelectedCodeConfig) => { |
|
|
|
if (!project) { |
|
|
|
|