From 0aa562f6ee5c20385f3ccbd63519b9aeda222b0d Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Tue, 5 May 2026 23:51:07 +0800 Subject: [PATCH] fix: replace crypto.randomUUID with polyfill for HTTP contexts crypto.randomUUID() is only available in secure contexts (HTTPS/localhost). Add uuid() utility with fallback for HTTP deployments. --- src/components/connection/ConnectionDialog.vue | 5 +++-- src/components/editor/AiAssistant.vue | 5 +++-- src/components/import/TableImportDialog.vue | 3 ++- src/components/mongo/JsonEditNode.vue | 3 ++- src/components/mongo/MongoDocBrowser.vue | 7 ++++--- src/components/search/DatabaseSearchDialog.vue | 3 ++- src/components/sql-file/SqlFileExecutionDialog.vue | 3 ++- .../structure/TableStructureEditorDialog.vue | 5 +++-- src/components/transfer/DataTransferDialog.vue | 3 ++- src/composables/useFileDrop.ts | 5 +++-- src/lib/ai.ts | 3 ++- src/lib/sidebarLayout.ts | 3 ++- src/lib/utils.ts | 10 ++++++++++ src/stores/connectionStore.ts | 3 ++- src/stores/historyStore.ts | 3 ++- src/stores/queryStore.ts | 7 ++++--- 16 files changed, 48 insertions(+), 23 deletions(-) diff --git a/src/components/connection/ConnectionDialog.vue b/src/components/connection/ConnectionDialog.vue index 82d4f32587..e745668a6f 100644 --- a/src/components/connection/ConnectionDialog.vue +++ b/src/components/connection/ConnectionDialog.vue @@ -1,5 +1,6 @@