|
|
|
@ -114,65 +114,4 @@ function openQuickImportDialog(type: string) {
|
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-sub-menu> |
|
|
|
|
|
|
|
|
|
<!-- Connect to new datasource --> |
|
|
|
|
<!-- <a-menu-divider v-if="false" class="my-0" /> |
|
|
|
|
<a-sub-menu> |
|
|
|
|
<template #title> |
|
|
|
|
<div class="nc-project-menu-item group"> |
|
|
|
|
<GeneralIcon icon="datasource" class="group-hover:text-black" /> |
|
|
|
|
Connect to new datasource |
|
|
|
|
<div class="flex-1" /> |
|
|
|
|
|
|
|
|
|
<MaterialSymbolsChevronRightRounded class="transform group-hover:(scale-115 text-accent) text-xl text-gray-400" /> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #expandIcon></template> |
|
|
|
|
<a-menu-item key="connect-new-source" @click="toggleDialog(true, 'dataSources', ClientType.MYSQL, project.id)"> |
|
|
|
|
<div class="color-transition nc-project-menu-item group"> |
|
|
|
|
<LogosMysqlIcon class="group-hover:text-black" /> |
|
|
|
|
MySQL |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
<a-menu-item key="connect-new-source" @click="toggleDialog(true, 'dataSources', ClientType.PG, project.id)"> |
|
|
|
|
<div class="color-transition nc-project-menu-item group"> |
|
|
|
|
<LogosPostgresql class="group-hover:text-black" /> |
|
|
|
|
Postgres |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
<a-menu-item key="connect-new-source" @click="toggleDialog(true, 'dataSources', ClientType.SQLITE, project.id)"> |
|
|
|
|
<div class="color-transition nc-project-menu-item group"> |
|
|
|
|
<VscodeIconsFileTypeSqlite class="group-hover:text-black" /> |
|
|
|
|
SQLite |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
<a-menu-item key="connect-new-source" @click="toggleDialog(true, 'dataSources', ClientType.MSSQL, project.id)"> |
|
|
|
|
<div class="color-transition nc-project-menu-item group"> |
|
|
|
|
<SimpleIconsMicrosoftsqlserver class="group-hover:text-black" /> |
|
|
|
|
MSSQL |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
<a-menu-item |
|
|
|
|
v-if="appInfo.ee" |
|
|
|
|
key="connect-new-source" |
|
|
|
|
@click="toggleDialog(true, 'dataSources', ClientType.SNOWFLAKE, project.id)" |
|
|
|
|
> |
|
|
|
|
<div class="color-transition nc-project-menu-item group"> |
|
|
|
|
<LogosSnowflakeIcon class="group-hover:text-black" /> |
|
|
|
|
Snowflake |
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
<a-menu-item v-if="isUIAllowed('importRequest', false, projectRole)" key="add-new-table" class="py-1 rounded-b"> |
|
|
|
|
<a |
|
|
|
|
v-e="['e:datasource:import-request']" |
|
|
|
|
href="https://github.com/nocodb/nocodb/issues/2052" |
|
|
|
|
target="_blank" |
|
|
|
|
class="prose-sm hover:(!text-primary !opacity-100) color-transition nc-project-menu-item group after:(!rounded-b)" |
|
|
|
|
> |
|
|
|
|
<GeneralIcon icon="openInNew" class="group-hover:text-black" /> |
|
|
|
|
{{ $t('labels.requestDataSource') }} |
|
|
|
|
</a> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-sub-menu> --> |
|
|
|
|
</template> |
|
|
|
|