feat: 添加 cad.js 文件,用于集中管理CAD软件和API配置。
This commit is contained in:
parent
1b02c46e19
commit
3417462710
@ -147,7 +147,8 @@ const CAD_SOFTWARE_DEFINITIONS = {
|
||||
priority: 4,
|
||||
description: '连接和模型管理',
|
||||
features: [],
|
||||
endpoints: {}
|
||||
endpoints: {},
|
||||
hidden: true
|
||||
},
|
||||
SOLIDWORKS: {
|
||||
id: 'solidworks',
|
||||
@ -161,7 +162,8 @@ const CAD_SOFTWARE_DEFINITIONS = {
|
||||
priority: 5,
|
||||
description: '装配体管理',
|
||||
features: [],
|
||||
endpoints: {}
|
||||
endpoints: {},
|
||||
hidden: true
|
||||
},
|
||||
CATIA: {
|
||||
id: 'catia',
|
||||
@ -175,7 +177,8 @@ const CAD_SOFTWARE_DEFINITIONS = {
|
||||
priority: 6,
|
||||
description: '连接和模型管理',
|
||||
features: [],
|
||||
endpoints: {}
|
||||
endpoints: {},
|
||||
hidden: true
|
||||
}
|
||||
}
|
||||
|
||||
@ -183,6 +186,7 @@ const CAD_SOFTWARE_DEFINITIONS = {
|
||||
// 获取所有CAD软件定义
|
||||
export const getAllCADDefinitions = () => {
|
||||
return Object.values(CAD_SOFTWARE_DEFINITIONS)
|
||||
.filter(cad => !cad.hidden)
|
||||
.sort((a, b) => a.priority - b.priority)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user