|
|
@ -8,8 +8,8 @@ import { |
|
|
|
ClientType, |
|
|
|
ClientType, |
|
|
|
ProjectIdInj, |
|
|
|
ProjectIdInj, |
|
|
|
SSLUsage, |
|
|
|
SSLUsage, |
|
|
|
|
|
|
|
clientTypes as _clientTypes, |
|
|
|
baseTitleValidator, |
|
|
|
baseTitleValidator, |
|
|
|
clientTypes, |
|
|
|
|
|
|
|
computed, |
|
|
|
computed, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
fieldRequiredValidator, |
|
|
|
fieldRequiredValidator, |
|
|
@ -57,6 +57,12 @@ const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
const editingSource = ref(false) |
|
|
|
const editingSource = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const clientTypes = computed(() => { |
|
|
|
|
|
|
|
return _clientTypes.filter((type) => { |
|
|
|
|
|
|
|
return ![ClientType.SNOWFLAKE, ClientType.DATABRICKS].includes(type.value) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const formState = ref<ProjectCreateForm>({ |
|
|
|
const formState = ref<ProjectCreateForm>({ |
|
|
|
title: '', |
|
|
|
title: '', |
|
|
|
dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) }, |
|
|
|
dataSource: { ...getDefaultConnectionConfig(ClientType.MYSQL) }, |
|
|
|