feat: add SQL library panel with folder/file management, rename, and sync support

This commit is contained in:
t8y2 committed 2026-06-10 02:46:10 +08:00
1 parent d7a8f5d285
commit 9ffa4c41d9
26 files changed
+711 -352

No files matched your search

@@ -13,6 +13,7 @@ import {
Bot,
ArrowLeftRight,
FileCode,
FileStack,
GitCompareArrows,
TableProperties,
Settings,
@@ -34,6 +35,7 @@ const props = defineProps<{
themeMode: AppThemeMode;
showAiPanel: boolean;
showHistory: boolean;
showSqlLibrary: boolean;
showDriverStore: boolean;
checkingUpdates: boolean;
hasUpdateAvailable: boolean;
@@ -48,6 +50,7 @@ const emit = defineEmits<{
"set-theme-mode": [mode: AppThemeMode];
"toggle-ai": [];
"toggle-history": [];
"toggle-sql-library": [];
"open-github": [];
"open-settings": [];
"open-driver-store": [];
@@ -196,6 +199,21 @@ function onToolbarDblClick(e: MouseEvent) {
<ExportProgressPopover />
<Tooltip>
<TooltipTrigger as-child>
<Button
variant="ghost"
size="icon"
class="h-8 w-8"
:class="{ 'bg-accent': showSqlLibrary }"
@click="emit('toggle-sql-library')"
>
<FileStack class="h-4 w-4" />
</Button>
</TooltipTrigger>
<TooltipContent>{{ t("sqlLibrary.title") }}</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger as-child>
<Button