sqlite-hub 0.8.7 → 0.9.1

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.
Files changed (34) hide show
  1. package/changelog.md +16 -0
  2. package/frontend/index.html +1 -1
  3. package/frontend/js/api.js +67 -0
  4. package/frontend/js/app.js +1554 -999
  5. package/frontend/js/components/modal.js +208 -3
  6. package/frontend/js/components/queryEditor.js +9 -4
  7. package/frontend/js/components/queryHistoryDetail.js +34 -12
  8. package/frontend/js/components/queryHistoryPanel.js +8 -11
  9. package/frontend/js/components/rowEditorPanel.js +26 -5
  10. package/frontend/js/components/sidebar.js +49 -5
  11. package/frontend/js/components/structureGraph.js +614 -632
  12. package/frontend/js/components/tableDesignerSqlPreview.js +24 -25
  13. package/frontend/js/lib/mediaTaggingDefaults.js +27 -0
  14. package/frontend/js/router.js +81 -71
  15. package/frontend/js/store.js +3140 -2179
  16. package/frontend/js/views/charts.js +2 -2
  17. package/frontend/js/views/data.js +28 -14
  18. package/frontend/js/views/editor.js +172 -177
  19. package/frontend/js/views/mediaTagging.js +931 -0
  20. package/frontend/styles/base.css +11 -1
  21. package/frontend/styles/components.css +54 -6
  22. package/frontend/styles/views.css +910 -0
  23. package/package.json +1 -1
  24. package/server/routes/charts.js +4 -1
  25. package/server/routes/data.js +14 -0
  26. package/server/routes/mediaTagging.js +166 -0
  27. package/server/routes/sql.js +1 -0
  28. package/server/server.js +4 -0
  29. package/server/services/sqlite/dataBrowserService.js +25 -0
  30. package/server/services/sqlite/exportService.js +31 -1
  31. package/server/services/sqlite/mediaTaggingService.js +1689 -0
  32. package/server/services/storage/appStateStore.js +325 -3
  33. package/server/services/storage/queryHistoryUtils.js +165 -2
  34. package/shortkeys.md +5 -0
package/changelog.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v0.9.1
2
+
3
+ - Improvements in tagging queue
4
+ - rotate right, rotate left
5
+
6
+ # v0.9.0
7
+
8
+ - tagging view
9
+ - filtered out the create, update, delete queries from the chart section
10
+
11
+ # v0.8.8
12
+
13
+ - modal window fix in delete query
14
+ - csv export filename based on query name
15
+ - unsaved query history tab
16
+
1
17
  # v0.8.7
2
18
 
3
19
  - UX fixes
@@ -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"] {
@@ -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",