minimal sql console API and UI

This commit is contained in:
Gani Georgiev
2026-05-20 16:22:51 +03:00
parent db853850ab
commit b022e138d4
21 changed files with 984 additions and 21 deletions
+8 -1
View File
@@ -115,6 +115,13 @@ window.app.store = store({
label: "Import collections",
},
],
Debug: [
{
href: "#/settings/sql",
icon: "ri-terminal-box-line",
label: "SQL console",
},
],
},
predefinedAccentColors: [
@@ -205,7 +212,7 @@ window.app.store = store({
addOrUpdateCollection(collection) {
const index = app.store.collections.findIndex((c) => c.id == collection.id);
if (index >= 0) {
if (app.store.activeCollection.id == collection.id) {
if (app.store.activeCollection?.id == collection.id) {
app.store._activeCollectionIdOrName = collection.id;
}