@antelopejs/dms-api 0.1.5 → 0.1.7
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/dist/pages/logs/page.js +1 -1
- package/dist/pages/logs/page.js.map +1 -1
- package/dist/pages/routes/page.js +1 -1
- package/dist/pages/routes/page.js.map +1 -1
- package/frontend-vue/app/components/LogsView.vue +5 -5
- package/frontend-vue/app/components/RoutesView.vue +7 -10
- package/frontend-vue/package.json +3 -0
- package/package.json +7 -7
package/dist/pages/logs/page.js
CHANGED
|
@@ -16,7 +16,7 @@ let LogsPage = class LogsPage extends (0, page_1.PageController)("logs", {
|
|
|
16
16
|
icon: "i-ph-list-magnifying-glass",
|
|
17
17
|
module: "api",
|
|
18
18
|
order: 2,
|
|
19
|
-
}, (0, layouts_1.DefaultLayout)({ hideHeader: true, fullWidth: true })) {
|
|
19
|
+
}, (0, layouts_1.DefaultLayout)({ hideHeader: true, fullWidth: true, fillHeight: true })) {
|
|
20
20
|
static content = (0, custom_1.CustomComponent)("DmsApiLogsView").meta({
|
|
21
21
|
name: "$page.api.logs.title",
|
|
22
22
|
icon: "i-ph-list-magnifying-glass",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/pages/logs/page.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AAYhE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,IAAA,qBAAc,EAC1C,MAAM,EACN;IACE,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,CAAC;CACT,EACD,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/pages/logs/page.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AAYhE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,IAAA,qBAAc,EAC1C,MAAM,EACN;IACE,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,CAAC;CACT,EACD,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CACvE;IACC,MAAM,CAAC,OAAO,GAAG,IAAA,wBAAe,EAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;QACtD,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,4BAA4B;KACnC,CAAC,CAAC;;AAdQ,4BAAQ;mBAAR,QAAQ;IADpB,IAAA,mBAAY,GAAE;GACF,QAAQ,CAepB"}
|
|
@@ -16,7 +16,7 @@ let RoutesPage = class RoutesPage extends (0, page_1.PageController)("routes", {
|
|
|
16
16
|
icon: "i-ph-tree-structure",
|
|
17
17
|
module: "api",
|
|
18
18
|
order: 1,
|
|
19
|
-
}, (0, layouts_1.DefaultLayout)({ hideHeader: true, fullWidth: true })) {
|
|
19
|
+
}, (0, layouts_1.DefaultLayout)({ hideHeader: true, fullWidth: true, fillHeight: true })) {
|
|
20
20
|
static content = (0, custom_1.CustomComponent)("DmsApiRoutesView").meta({
|
|
21
21
|
name: "$page.api.routes.title",
|
|
22
22
|
icon: "i-ph-tree-structure",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/pages/routes/page.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AAYhE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,IAAA,qBAAc,EAC5C,QAAQ,EACR;IACE,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,qBAAqB;IAC3B,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,CAAC;CACT,EACD,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/pages/routes/page.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AAYhE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,IAAA,qBAAc,EAC5C,QAAQ,EACR;IACE,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,qBAAqB;IAC3B,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,CAAC;CACT,EACD,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CACvE;IACC,MAAM,CAAC,OAAO,GAAG,IAAA,wBAAe,EAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC;QACxD,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,qBAAqB;KAC5B,CAAC,CAAC;;AAdQ,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAY,GAAE;GACF,UAAU,CAetB"}
|
|
@@ -207,7 +207,9 @@ const counts = computed(() => {
|
|
|
207
207
|
</script>
|
|
208
208
|
|
|
209
209
|
<template>
|
|
210
|
-
|
|
210
|
+
<!-- The page fills the panel (`fillHeight` in src/pages/logs/page.ts): the
|
|
211
|
+
log list takes the height left and scrolls inside the card. -->
|
|
212
|
+
<div class="flex min-h-0 w-full flex-1 flex-col gap-5 p-6">
|
|
211
213
|
<header class="flex flex-wrap items-center gap-4">
|
|
212
214
|
<div
|
|
213
215
|
class="grid size-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary"
|
|
@@ -244,7 +246,7 @@ const counts = computed(() => {
|
|
|
244
246
|
</div>
|
|
245
247
|
</header>
|
|
246
248
|
|
|
247
|
-
<DmsCard :padded="false" class="flex flex-col overflow-hidden">
|
|
249
|
+
<DmsCard :padded="false" class="flex min-h-0 flex-1 flex-col overflow-hidden">
|
|
248
250
|
<!-- Filter toolbar -->
|
|
249
251
|
<div
|
|
250
252
|
class="flex flex-wrap items-center gap-2 border-b border-default px-4 py-3"
|
|
@@ -271,9 +273,7 @@ const counts = computed(() => {
|
|
|
271
273
|
|
|
272
274
|
<!-- Console-style log list. The row list scrolls internally so the
|
|
273
275
|
toolbar and footer stay pinned. -->
|
|
274
|
-
<div
|
|
275
|
-
class="flex max-h-[calc(100vh-24rem)] min-h-[360px] flex-col overflow-hidden font-mono text-xs"
|
|
276
|
-
>
|
|
276
|
+
<div class="flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-xs">
|
|
277
277
|
<div v-if="rows.length === 0 && !loading" class="p-8 text-center text-muted">
|
|
278
278
|
{{ $t('page.api.logs.empty') }}
|
|
279
279
|
</div>
|
|
@@ -22,7 +22,10 @@ function onRoute(id: string) {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
|
|
25
|
+
<!-- The page fills the panel (`fillHeight` in src/pages/routes/page.ts):
|
|
26
|
+
from `lg` up the tree and the detail share its height and scroll
|
|
27
|
+
inside; below, where they stack, the view scrolls as a whole. -->
|
|
28
|
+
<div class="flex min-h-0 w-full flex-1 flex-col gap-5 p-6 max-lg:overflow-y-auto">
|
|
26
29
|
<!-- page head -->
|
|
27
30
|
<header class="flex flex-wrap items-center gap-4">
|
|
28
31
|
<div
|
|
@@ -43,21 +46,15 @@ function onRoute(id: string) {
|
|
|
43
46
|
|
|
44
47
|
<!-- master-detail split -->
|
|
45
48
|
<div
|
|
46
|
-
class="grid
|
|
49
|
+
class="grid grid-cols-1 gap-5 lg:min-h-0 lg:flex-1 lg:grid-cols-[minmax(280px,340px)_1fr]"
|
|
47
50
|
>
|
|
48
51
|
<!-- left: tree -->
|
|
49
|
-
<DmsCard
|
|
50
|
-
:padded="false"
|
|
51
|
-
class="flex max-h-[calc(100vh-13rem)] flex-col overflow-hidden"
|
|
52
|
-
>
|
|
52
|
+
<DmsCard :padded="false" class="flex flex-col overflow-hidden lg:min-h-0">
|
|
53
53
|
<RouteTree :period="period" @select-route="onRoute" />
|
|
54
54
|
</DmsCard>
|
|
55
55
|
|
|
56
56
|
<!-- right: detail -->
|
|
57
|
-
<DmsCard
|
|
58
|
-
:padded="false"
|
|
59
|
-
class="max-h-[calc(100vh-13rem)] overflow-auto"
|
|
60
|
-
>
|
|
57
|
+
<DmsCard :padded="false" class="lg:min-h-0 lg:overflow-auto">
|
|
61
58
|
<RouteDetailTabs
|
|
62
59
|
v-if="selectedRouteId && period"
|
|
63
60
|
:key="selectedRouteId"
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dms.frontend.ts",
|
|
7
7
|
"packageManager": "pnpm@10.6.5",
|
|
8
|
+
"engines": {
|
|
9
|
+
"@antelopejs/dms-frontend": ">=0.2.8 <0.4.0"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"dev": "pnpm --dir ../playground frontend:dev",
|
|
10
13
|
"build": "pnpm --dir ../playground exec ajs dms build",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build": "rimraf dist && tsc",
|
|
21
21
|
"dev": "ajs project run -w -p playground",
|
|
22
22
|
"lint:fix": "oxlint --fix --max-warnings=1000000 && oxfmt . && pnpm --dir frontend-vue lint:fix",
|
|
23
|
-
"lint": "oxlint && oxfmt --check . && pnpm --dir frontend-vue lint",
|
|
23
|
+
"lint": "oxlint && oxfmt --check . && pnpm --dir frontend-vue lint && antelopejs-check-interface-ranges",
|
|
24
24
|
"typecheck": "tsc --noEmit && tsc -p tests",
|
|
25
25
|
"test": "vitest run && pnpm --dir frontend-vue test",
|
|
26
26
|
"format": "oxfmt . && pnpm --dir frontend-vue format",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"@antelopejs/interface-api": ">=0.0.13 <1.0.0",
|
|
35
35
|
"@antelopejs/interface-api-util": ">=0.1.2 <1.0.0",
|
|
36
36
|
"@antelopejs/interface-core": ">=0.1.1 <1.0.0",
|
|
37
|
-
"@antelopejs/interface-database": ">=0.1.
|
|
38
|
-
"@antelopejs/interface-database-decorators": ">=0.1.
|
|
39
|
-
"@antelopejs/interface-dms": ">=0.2.
|
|
37
|
+
"@antelopejs/interface-database": ">=0.1.8 <1.0.0",
|
|
38
|
+
"@antelopejs/interface-database-decorators": ">=0.1.7 <1.0.0",
|
|
39
|
+
"@antelopejs/interface-dms": ">=0.2.8 <1.0.0",
|
|
40
40
|
"defu": "^6.1.4",
|
|
41
41
|
"node-cron": "^4.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@antelopejs/core": "1.
|
|
45
|
-
"@antelopejs/tooling-configs": ">=0.0.
|
|
44
|
+
"@antelopejs/core": "1.10.1",
|
|
45
|
+
"@antelopejs/tooling-configs": ">=0.0.7 <1.0.0",
|
|
46
46
|
"@types/node": "^24.0.0",
|
|
47
47
|
"@types/node-cron": "^3.0.11",
|
|
48
48
|
"knip": "^6.34.0",
|