@antelopejs/dms-database 0.0.2 → 0.0.4
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { DropdownMenuItem } from "@nuxt/ui";
|
|
3
3
|
import type { QueryScope, SavedQuery } from "../composables/useQueryStore";
|
|
4
|
-
import {
|
|
4
|
+
import { formatDatabaseRelativeTime } from "../utils/relativeTime";
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
items: SavedQuery[];
|
|
@@ -101,7 +101,7 @@ function menuItems(item: SavedQuery): DropdownMenuItem[][] {
|
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
103
|
<span class="text-dimmed font-mono text-[10.5px] shrink-0">
|
|
104
|
-
{{
|
|
104
|
+
{{ formatDatabaseRelativeTime(item.createdAt) }}
|
|
105
105
|
</span>
|
|
106
106
|
<UDropdownMenu :items="menuItems(item)" :content="{ align: 'end' }">
|
|
107
107
|
<UButton
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HistoryEntry } from "../composables/useQueryStore";
|
|
3
|
-
import {
|
|
3
|
+
import { formatDatabaseRelativeTime } from "../utils/relativeTime";
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
6
6
|
items: HistoryEntry[];
|
|
@@ -41,7 +41,7 @@ function meta(item: HistoryEntry): string {
|
|
|
41
41
|
{ count: item.rowCount },
|
|
42
42
|
item.rowCount,
|
|
43
43
|
);
|
|
44
|
-
return `${
|
|
44
|
+
return `${formatDatabaseRelativeTime(item.executedAt)} · ${count}`;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
function prev() {
|
|
@@ -4,7 +4,10 @@ const relativeFormatter = new Intl.RelativeTimeFormat(undefined, {
|
|
|
4
4
|
|
|
5
5
|
// Human "3 minutes ago" style label for an ISO timestamp, relative to now.
|
|
6
6
|
// Shared by the query history and favorites panels.
|
|
7
|
-
|
|
7
|
+
// Deliberately not named `formatRelativeTime`: the DMS core layer exports a
|
|
8
|
+
// translation-aware helper under that name, and auto-imports across layers
|
|
9
|
+
// would shadow one with the other.
|
|
10
|
+
export function formatDatabaseRelativeTime(iso: string): string {
|
|
8
11
|
const diffMs = new Date(iso).getTime() - Date.now();
|
|
9
12
|
const minutes = Math.round(diffMs / 60_000);
|
|
10
13
|
if (Math.abs(minutes) < 60) return relativeFormatter.format(minutes, "minute");
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"test": "vitest run"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@antelopejs/interface-core": ">=0.0.
|
|
18
|
+
"@antelopejs/interface-core": ">=0.0.13 <1.0.0",
|
|
19
19
|
"@antelopejs/interface-database": ">=0.1.7 <1.0.0",
|
|
20
20
|
"@codemirror/autocomplete": "^6.18.6",
|
|
21
21
|
"@codemirror/commands": "^6.8.1",
|
|
@@ -9,11 +9,11 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@antelopejs/interface-core':
|
|
12
|
-
specifier: '>=0.0.
|
|
13
|
-
version: 0.0.
|
|
12
|
+
specifier: '>=0.0.13 <1.0.0'
|
|
13
|
+
version: 0.0.13
|
|
14
14
|
'@antelopejs/interface-database':
|
|
15
15
|
specifier: '>=0.1.7 <1.0.0'
|
|
16
|
-
version: 0.1.7(@antelopejs/interface-core@0.0.
|
|
16
|
+
version: 0.1.7(@antelopejs/interface-core@0.0.13)
|
|
17
17
|
'@codemirror/autocomplete':
|
|
18
18
|
specifier: ^6.18.6
|
|
19
19
|
version: 6.20.3
|
|
@@ -50,7 +50,7 @@ importers:
|
|
|
50
50
|
devDependencies:
|
|
51
51
|
'@nuxt/ui':
|
|
52
52
|
specifier: 4.10.0
|
|
53
|
-
version: 4.10.0(
|
|
53
|
+
version: 4.10.0(0da953304c977944307a6d86bab47f79)
|
|
54
54
|
'@typescript-eslint/parser':
|
|
55
55
|
specifier: ^8.0.0
|
|
56
56
|
version: 8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3)
|
|
@@ -79,8 +79,8 @@ packages:
|
|
|
79
79
|
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
|
|
80
80
|
engines: {node: '>=10'}
|
|
81
81
|
|
|
82
|
-
'@antelopejs/interface-core@0.0.
|
|
83
|
-
resolution: {integrity: sha512-
|
|
82
|
+
'@antelopejs/interface-core@0.0.13':
|
|
83
|
+
resolution: {integrity: sha512-zMVhW5OefmVNRLHvd3rPQTaShy+k9w6+cOhqOryyfxgVyRZ18nBlV8VSq9TuPkFIo5OGNAXFybOf54DRSnPVsw==}
|
|
84
84
|
|
|
85
85
|
'@antelopejs/interface-database@0.1.7':
|
|
86
86
|
resolution: {integrity: sha512-2rXQZ0ynLInKxk++2XUPH1fHqd5Sj6k0QC2UxqOzsdfUSoyCyhsfnbELEV/i6jenUHeXGZ2vESkwxXTS9KJpbg==}
|
|
@@ -495,15 +495,9 @@ packages:
|
|
|
495
495
|
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
|
|
496
496
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
|
497
497
|
|
|
498
|
-
'@floating-ui/core@1.7.5':
|
|
499
|
-
resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}
|
|
500
|
-
|
|
501
498
|
'@floating-ui/core@1.8.0':
|
|
502
499
|
resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
|
|
503
500
|
|
|
504
|
-
'@floating-ui/dom@1.7.6':
|
|
505
|
-
resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}
|
|
506
|
-
|
|
507
501
|
'@floating-ui/dom@1.8.0':
|
|
508
502
|
resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==}
|
|
509
503
|
|
|
@@ -2663,10 +2657,6 @@ packages:
|
|
|
2663
2657
|
resolution: {integrity: sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==}
|
|
2664
2658
|
engines: {node: '>=18.12.0'}
|
|
2665
2659
|
|
|
2666
|
-
unplugin@3.0.0:
|
|
2667
|
-
resolution: {integrity: sha512-0Mqk3AT2TZCXWKdcoaufeXNukv2mTrEZExeXlHIOZXdqYoHHr4n51pymnwV8x2BOVxwXbK2HLlI7usrqMpycdg==}
|
|
2668
|
-
engines: {node: ^20.19.0 || >=22.12.0}
|
|
2669
|
-
|
|
2670
2660
|
unplugin@3.3.0:
|
|
2671
2661
|
resolution: {integrity: sha512-qa66K+crbfyE6JK10GjvbJeRrOsuC/JpbnHctfyp/i4oBTxWOzJfRZyDiOk1PtErMFRu8JhsU/wPvOdBNWe5Rg==}
|
|
2672
2662
|
engines: {node: ^20.19.0 || >=22.12.0}
|
|
@@ -2949,13 +2939,13 @@ snapshots:
|
|
|
2949
2939
|
|
|
2950
2940
|
'@alloc/quick-lru@5.2.0': {}
|
|
2951
2941
|
|
|
2952
|
-
'@antelopejs/interface-core@0.0.
|
|
2942
|
+
'@antelopejs/interface-core@0.0.13':
|
|
2953
2943
|
dependencies:
|
|
2954
2944
|
reflect-metadata: 0.2.2
|
|
2955
2945
|
|
|
2956
|
-
'@antelopejs/interface-database@0.1.7(@antelopejs/interface-core@0.0.
|
|
2946
|
+
'@antelopejs/interface-database@0.1.7(@antelopejs/interface-core@0.0.13)':
|
|
2957
2947
|
dependencies:
|
|
2958
|
-
'@antelopejs/interface-core': 0.0.
|
|
2948
|
+
'@antelopejs/interface-core': 0.0.13
|
|
2959
2949
|
|
|
2960
2950
|
'@antfu/install-pkg@2.0.1':
|
|
2961
2951
|
dependencies:
|
|
@@ -3253,19 +3243,10 @@ snapshots:
|
|
|
3253
3243
|
'@eslint/core': 0.17.0
|
|
3254
3244
|
levn: 0.4.1
|
|
3255
3245
|
|
|
3256
|
-
'@floating-ui/core@1.7.5':
|
|
3257
|
-
dependencies:
|
|
3258
|
-
'@floating-ui/utils': 0.2.11
|
|
3259
|
-
|
|
3260
3246
|
'@floating-ui/core@1.8.0':
|
|
3261
3247
|
dependencies:
|
|
3262
3248
|
'@floating-ui/utils': 0.2.12
|
|
3263
3249
|
|
|
3264
|
-
'@floating-ui/dom@1.7.6':
|
|
3265
|
-
dependencies:
|
|
3266
|
-
'@floating-ui/core': 1.7.5
|
|
3267
|
-
'@floating-ui/utils': 0.2.11
|
|
3268
|
-
|
|
3269
3250
|
'@floating-ui/dom@1.8.0':
|
|
3270
3251
|
dependencies:
|
|
3271
3252
|
'@floating-ui/core': 1.8.0
|
|
@@ -3509,7 +3490,7 @@ snapshots:
|
|
|
3509
3490
|
pkg-types: 2.3.1
|
|
3510
3491
|
std-env: 4.2.0
|
|
3511
3492
|
|
|
3512
|
-
'@nuxt/ui@4.10.0(
|
|
3493
|
+
'@nuxt/ui@4.10.0(0da953304c977944307a6d86bab47f79)':
|
|
3513
3494
|
dependencies:
|
|
3514
3495
|
'@floating-ui/dom': 1.8.0
|
|
3515
3496
|
'@iconify/vue': 5.0.1(vue@3.5.34(typescript@5.9.3))
|
|
@@ -3578,7 +3559,7 @@ snapshots:
|
|
|
3578
3559
|
optionalDependencies:
|
|
3579
3560
|
'@internationalized/date': 3.12.1
|
|
3580
3561
|
'@internationalized/number': 3.6.6
|
|
3581
|
-
vue-router: 5.0.6(@vue/compiler-sfc@3.5.34)(vue@3.5.34(typescript@5.9.3))
|
|
3562
|
+
vue-router: 5.0.6(@vue/compiler-sfc@3.5.34)(esbuild@0.28.0)(rollup@4.60.3)(vite@7.3.3(@types/node@25.7.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0))(vue@3.5.34(typescript@5.9.3))
|
|
3582
3563
|
transitivePeerDependencies:
|
|
3583
3564
|
- '@azure/app-configuration'
|
|
3584
3565
|
- '@azure/cosmos'
|
|
@@ -3726,7 +3707,7 @@ snapshots:
|
|
|
3726
3707
|
eslint-visitor-keys: 4.2.1
|
|
3727
3708
|
espree: 10.4.0
|
|
3728
3709
|
estraverse: 5.3.0
|
|
3729
|
-
picomatch: 4.0.
|
|
3710
|
+
picomatch: 4.0.7
|
|
3730
3711
|
transitivePeerDependencies:
|
|
3731
3712
|
- supports-color
|
|
3732
3713
|
- typescript
|
|
@@ -3840,7 +3821,7 @@ snapshots:
|
|
|
3840
3821
|
|
|
3841
3822
|
'@tiptap/extension-bubble-menu@3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1)':
|
|
3842
3823
|
dependencies:
|
|
3843
|
-
'@floating-ui/dom': 1.
|
|
3824
|
+
'@floating-ui/dom': 1.8.0
|
|
3844
3825
|
'@tiptap/core': 3.23.1(@tiptap/pm@3.23.1)
|
|
3845
3826
|
'@tiptap/pm': 3.23.1
|
|
3846
3827
|
|
|
@@ -3877,7 +3858,7 @@ snapshots:
|
|
|
3877
3858
|
|
|
3878
3859
|
'@tiptap/extension-drag-handle@3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/extension-collaboration@3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1)(@tiptap/y-tiptap@3.0.3(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.8)(y-protocols@1.0.7(yjs@13.6.30))(yjs@13.6.30))(yjs@13.6.30))(@tiptap/extension-node-range@3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1)(@tiptap/y-tiptap@3.0.3(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.8)(y-protocols@1.0.7(yjs@13.6.30))(yjs@13.6.30))':
|
|
3879
3860
|
dependencies:
|
|
3880
|
-
'@floating-ui/dom': 1.
|
|
3861
|
+
'@floating-ui/dom': 1.8.0
|
|
3881
3862
|
'@tiptap/core': 3.23.1(@tiptap/pm@3.23.1)
|
|
3882
3863
|
'@tiptap/extension-collaboration': 3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1)(@tiptap/y-tiptap@3.0.3(prosemirror-model@1.25.4)(prosemirror-state@1.4.4)(prosemirror-view@1.41.8)(y-protocols@1.0.7(yjs@13.6.30))(yjs@13.6.30))(yjs@13.6.30)
|
|
3883
3864
|
'@tiptap/extension-node-range': 3.23.1(@tiptap/core@3.23.1(@tiptap/pm@3.23.1))(@tiptap/pm@3.23.1)
|
|
@@ -4201,7 +4182,7 @@ snapshots:
|
|
|
4201
4182
|
dependencies:
|
|
4202
4183
|
'@vue/compiler-sfc': 3.5.34
|
|
4203
4184
|
ast-kit: 2.2.0
|
|
4204
|
-
local-pkg: 1.1
|
|
4185
|
+
local-pkg: 1.2.1
|
|
4205
4186
|
magic-string-ast: 1.0.3
|
|
4206
4187
|
unplugin-utils: 0.3.1
|
|
4207
4188
|
optionalDependencies:
|
|
@@ -5600,13 +5581,6 @@ snapshots:
|
|
|
5600
5581
|
picomatch: 4.0.4
|
|
5601
5582
|
webpack-virtual-modules: 0.6.2
|
|
5602
5583
|
|
|
5603
|
-
unplugin@3.0.0:
|
|
5604
|
-
dependencies:
|
|
5605
|
-
'@jridgewell/remapping': 2.3.5
|
|
5606
|
-
picomatch: 4.0.4
|
|
5607
|
-
webpack-virtual-modules: 0.6.2
|
|
5608
|
-
optional: true
|
|
5609
|
-
|
|
5610
5584
|
unplugin@3.3.0(esbuild@0.28.0)(rollup@4.60.3)(vite@7.3.3(@types/node@25.7.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0)):
|
|
5611
5585
|
dependencies:
|
|
5612
5586
|
'@jridgewell/remapping': 2.3.5
|
|
@@ -5747,11 +5721,11 @@ snapshots:
|
|
|
5747
5721
|
eslint-visitor-keys: 5.0.1
|
|
5748
5722
|
espree: 11.2.0
|
|
5749
5723
|
esquery: 1.7.0
|
|
5750
|
-
semver: 7.8.
|
|
5724
|
+
semver: 7.8.5
|
|
5751
5725
|
transitivePeerDependencies:
|
|
5752
5726
|
- supports-color
|
|
5753
5727
|
|
|
5754
|
-
vue-router@5.0.6(@vue/compiler-sfc@3.5.34)(vue@3.5.34(typescript@5.9.3)):
|
|
5728
|
+
vue-router@5.0.6(@vue/compiler-sfc@3.5.34)(esbuild@0.28.0)(rollup@4.60.3)(vite@7.3.3(@types/node@25.7.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0))(vue@3.5.34(typescript@5.9.3)):
|
|
5755
5729
|
dependencies:
|
|
5756
5730
|
'@babel/generator': 7.29.1
|
|
5757
5731
|
'@vue-macros/common': 3.1.2(vue@3.5.34(typescript@5.9.3))
|
|
@@ -5759,20 +5733,30 @@ snapshots:
|
|
|
5759
5733
|
ast-walker-scope: 0.8.3
|
|
5760
5734
|
chokidar: 5.0.0
|
|
5761
5735
|
json5: 2.2.3
|
|
5762
|
-
local-pkg: 1.1
|
|
5736
|
+
local-pkg: 1.2.1
|
|
5763
5737
|
magic-string: 0.30.21
|
|
5764
5738
|
mlly: 1.8.2
|
|
5765
5739
|
muggle-string: 0.4.1
|
|
5766
5740
|
pathe: 2.0.3
|
|
5767
|
-
picomatch: 4.0.
|
|
5741
|
+
picomatch: 4.0.7
|
|
5768
5742
|
scule: 1.3.0
|
|
5769
|
-
tinyglobby: 0.2.
|
|
5770
|
-
unplugin: 3.0.0
|
|
5743
|
+
tinyglobby: 0.2.17
|
|
5744
|
+
unplugin: 3.3.0(esbuild@0.28.0)(rollup@4.60.3)(vite@7.3.3(@types/node@25.7.0)(jiti@2.7.0)(lightningcss@1.32.0)(terser@5.47.1)(yaml@2.9.0))
|
|
5771
5745
|
unplugin-utils: 0.3.1
|
|
5772
5746
|
vue: 3.5.34(typescript@5.9.3)
|
|
5773
5747
|
yaml: 2.9.0
|
|
5774
5748
|
optionalDependencies:
|
|
5775
5749
|
'@vue/compiler-sfc': 3.5.34
|
|
5750
|
+
transitivePeerDependencies:
|
|
5751
|
+
- '@farmfe/core'
|
|
5752
|
+
- '@rspack/core'
|
|
5753
|
+
- bun-types-no-globals
|
|
5754
|
+
- esbuild
|
|
5755
|
+
- rolldown
|
|
5756
|
+
- rollup
|
|
5757
|
+
- unloader
|
|
5758
|
+
- vite
|
|
5759
|
+
- webpack
|
|
5776
5760
|
optional: true
|
|
5777
5761
|
|
|
5778
5762
|
vue@3.5.34(typescript@5.9.3):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms-database",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antelopejs/interface-api": ">=0.0.13 <1.0.0",
|
|
46
46
|
"@antelopejs/interface-api-util": ">=0.1.2 <1.0.0",
|
|
47
|
-
"@antelopejs/interface-core": ">=0.0.
|
|
47
|
+
"@antelopejs/interface-core": ">=0.0.13 <1.0.0",
|
|
48
48
|
"@antelopejs/interface-database": ">=0.1.7 <1.0.0",
|
|
49
49
|
"@antelopejs/interface-database-decorators": ">=0.1.6 <1.0.0",
|
|
50
50
|
"@antelopejs/interface-dms": ">=0.0.1 <1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@antelopejs/core": "^1.4.11",
|
|
54
|
-
"@antelopejs/tooling-configs": "
|
|
54
|
+
"@antelopejs/tooling-configs": ">=0.0.6 <1.0.0",
|
|
55
55
|
"@types/chai": "^5.2.3",
|
|
56
56
|
"@types/mocha": "^10.0.10",
|
|
57
57
|
"@types/node": "^24.0.0",
|