sqlite-hub 0.8.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +11 -0
- package/frontend/index.html +1 -1
- package/frontend/js/api.js +67 -0
- package/frontend/js/app.js +1398 -999
- package/frontend/js/components/modal.js +208 -3
- package/frontend/js/components/queryEditor.js +9 -4
- package/frontend/js/components/queryHistoryDetail.js +20 -10
- package/frontend/js/components/queryHistoryPanel.js +4 -3
- package/frontend/js/components/rowEditorPanel.js +26 -5
- package/frontend/js/components/sidebar.js +49 -5
- package/frontend/js/components/structureGraph.js +614 -632
- package/frontend/js/components/tableDesignerSqlPreview.js +24 -25
- package/frontend/js/lib/mediaTaggingDefaults.js +27 -0
- package/frontend/js/router.js +81 -71
- package/frontend/js/store.js +3091 -2184
- package/frontend/js/views/charts.js +2 -2
- package/frontend/js/views/data.js +28 -14
- package/frontend/js/views/editor.js +172 -177
- package/frontend/js/views/mediaTagging.js +861 -0
- package/frontend/styles/base.css +11 -1
- package/frontend/styles/components.css +48 -6
- package/frontend/styles/views.css +796 -0
- package/package.json +1 -1
- package/server/routes/charts.js +4 -1
- package/server/routes/data.js +14 -0
- package/server/routes/mediaTagging.js +166 -0
- package/server/routes/sql.js +1 -0
- package/server/server.js +4 -0
- package/server/services/sqlite/dataBrowserService.js +25 -0
- package/server/services/sqlite/exportService.js +31 -1
- package/server/services/sqlite/mediaTaggingService.js +1689 -0
- package/server/services/storage/appStateStore.js +321 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# v0.9.0
|
|
2
|
+
|
|
3
|
+
- tagging view
|
|
4
|
+
- filtered out the create, update, delete queries from the chart section
|
|
5
|
+
|
|
6
|
+
# v0.8.8
|
|
7
|
+
|
|
8
|
+
- modal window fix in delete query
|
|
9
|
+
- csv export filename based on query name
|
|
10
|
+
- unsaved query history tab
|
|
11
|
+
|
|
1
12
|
# v0.8.7
|
|
2
13
|
|
|
3
14
|
- UX fixes
|
package/frontend/index.html
CHANGED
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.standard-checkbox {
|
|
139
|
-
@apply inline-flex items-center gap-3 min-h-[var(--control-height)] border border-outline-variant/10 bg-surface-container-lowest px-[var(--control-padding-inline)] text-sm text-on-surface;
|
|
139
|
+
@apply inline-flex w-full items-center gap-3 min-h-[var(--control-height)] border border-outline-variant/10 bg-surface-container-lowest px-[var(--control-padding-inline)] text-sm text-on-surface;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.standard-checkbox input[type="checkbox"] {
|
package/frontend/js/api.js
CHANGED
|
@@ -283,6 +283,66 @@ export function saveTableDesignerDraft(payload) {
|
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
export function getMediaTaggingState() {
|
|
287
|
+
return request("/api/media-tagging");
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export function previewMediaTaggingConfig(payload) {
|
|
291
|
+
return request("/api/media-tagging/preview", {
|
|
292
|
+
method: "POST",
|
|
293
|
+
body: payload,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export function saveMediaTaggingConfig(payload) {
|
|
298
|
+
return request("/api/media-tagging/config", {
|
|
299
|
+
method: "POST",
|
|
300
|
+
body: payload,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export function createMediaTaggingTagTable(payload) {
|
|
305
|
+
return request("/api/media-tagging/tag-table/create", {
|
|
306
|
+
method: "POST",
|
|
307
|
+
body: payload,
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export function createMediaTaggingMappingTable(payload) {
|
|
312
|
+
return request("/api/media-tagging/mapping-table/create", {
|
|
313
|
+
method: "POST",
|
|
314
|
+
body: payload,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export function createMediaTag(payload) {
|
|
319
|
+
return request("/api/media-tagging/tags", {
|
|
320
|
+
method: "POST",
|
|
321
|
+
body: payload,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export function deleteMediaTag(payload) {
|
|
326
|
+
return request("/api/media-tagging/tags/delete", {
|
|
327
|
+
method: "POST",
|
|
328
|
+
body: payload,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export function applyMediaTagging(payload) {
|
|
333
|
+
return request("/api/media-tagging/apply", {
|
|
334
|
+
method: "POST",
|
|
335
|
+
body: payload,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export function skipMediaTagging(payload) {
|
|
340
|
+
return request("/api/media-tagging/skip", {
|
|
341
|
+
method: "POST",
|
|
342
|
+
body: payload,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
286
346
|
export function getDataTables() {
|
|
287
347
|
return request("/api/data");
|
|
288
348
|
}
|
|
@@ -311,6 +371,13 @@ export function getDataTable(tableName, options = {}) {
|
|
|
311
371
|
return request(`/api/data/${encodeURIComponent(tableName)}${query ? `?${query}` : ""}`);
|
|
312
372
|
}
|
|
313
373
|
|
|
374
|
+
export function getDataTableRow(tableName, payload) {
|
|
375
|
+
return request(`/api/data/${encodeURIComponent(tableName)}/row`, {
|
|
376
|
+
method: "POST",
|
|
377
|
+
body: payload,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
|
|
314
381
|
export function updateDataTableRow(tableName, payload) {
|
|
315
382
|
return request(`/api/data/${encodeURIComponent(tableName)}/rows`, {
|
|
316
383
|
method: "PATCH",
|