diff --git a/src/App.vue b/src/App.vue index 775335102c..5a1387a4a7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -56,6 +56,7 @@ const { message: toastMessage, visible: toastVisible, toast } = useToast(); const showConnectionDialog = ref(false); const showHistory = ref(false); +const showAiPanel = ref(false); const showUpdateDialog = ref(false); const dangerSql = ref(""); const pendingDangerSql = ref(""); @@ -353,13 +354,6 @@ function replaceActiveSql(sql: string) { queryStore.updateSql(tab.id, sql); } -function appendActiveSql(sql: string) { - const tab = activeTab.value; - if (!tab) return; - const current = tab.sql.trimEnd(); - queryStore.updateSql(tab.id, current ? `${current}\n\n${sql}` : sql); -} - function changeActiveDatabase(database: any) { const tab = activeTab.value; if (!tab || typeof database !== "string") return; @@ -667,6 +661,15 @@ async function setupFileDrop() { {{ t('history.title') }} + + + + + AI + +