chore: preps (#9994)

* chore: preps

Signed-off-by: mertmit <mertmit99@gmail.com>

* test: fix unit

Signed-off-by: mertmit <mertmit99@gmail.com>

---------

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
Mert E.
2024-12-09 11:15:36 +03:00
committed by GitHub
parent f4d27c01dd
commit 818d9344e9
72 changed files with 1636 additions and 278 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { IntegrationCategoryType, type SyncDataType } from '#imports'
import type { IntegrationCategoryType, SyncDataType } from '#imports'
import { clientTypes as _clientTypes } from '#imports'
const props = defineProps<{
@@ -22,8 +22,6 @@ const {
updateIntegration,
} = useIntegrationStore()
const { loadAiIntegrations } = useNocoAi()
const isEditMode = computed(() => pageMode.value === IntegrationsPageMode.EDIT)
const initState = ref({
@@ -43,10 +41,6 @@ const { form, formState, isLoading, initialState, submit } = useProvideFormBuild
try {
if (pageMode.value === IntegrationsPageMode.ADD) {
await saveIntegration(formState.value)
if (props.integrationType === IntegrationCategoryType.AI) {
loadAiIntegrations()
}
} else {
await updateIntegration({
id: activeIntegration.value?.id,

View File

@@ -658,12 +658,12 @@ watch(
>
<NcButton
type="text"
size="xsmall"
class="nc-extdb-btn-import-url !rounded-md !h-6 !px-2 flex-none"
size="small"
class="nc-extdb-btn-import-url !rounded-md !px-2 flex-none -my-1.5"
@click.stop="importURLDlg = true"
>
<div class="flex items-center gap-2">
<GeneralIcon icon="magic" class="flex-none text-yellow-500" />
<GeneralIcon icon="ncLink" class="flex-none" />
{{ $t('activity.useConnectionUrl') }}
</div>
</NcButton>
@@ -672,7 +672,13 @@ watch(
<div class="text-sm text-gray-700">
Auto populate connection configuration using database connection URL
</div>
<a-textarea
:ref="
(el) => {
el?.$el?.focus()
}
"
v-model:value="importURL"
class="!rounded-lg !min-h-[120px] !max-h-[250px] nc-scrollbar-thin"
></a-textarea>