()
| 253 | } |
| 254 | |
| 255 | async function queryDataSourceTypes() { |
| 256 | const res: ApiResult<DataSourceTypeDataType[]> = |
| 257 | await Apis.datasource.types(); |
| 258 | if (res.ok) { |
| 259 | setTypes(res.data || []); |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | async function create(values: { name: string; description?: string }) { |
| 264 | const res = await Apis.project.create({ |