@betterportal/hello-view 10.3.0 → 10.5.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/lib/bp-contracts/org.betterportal.hello-view.json +1 -1
- package/lib/plugins/service-betterportal-hello-view/.bp-generated/registry.d.ts +2 -24
- package/lib/plugins/service-betterportal-hello-view/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/.bp-generated/registry.js +2 -5
- package/lib/plugins/service-betterportal-hello-view/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.d.ts +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.js +3 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.js.map +1 -1
- package/lib/schemas/service-betterportal-hello-view.json +1 -1
- package/lib/schemas/service-betterportal-hello-view.plugin.json +1 -1
- package/package.json +5 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.d.ts +0 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.js +0 -6
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/sse.d.ts +0 -10
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/sse.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/sse.js +0 -20
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/sse.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"pluginId": "org.betterportal.hello-view",
|
|
5
5
|
"title": "BetterPortal Hello View Example",
|
|
6
6
|
"description": "Example business service showing API-first view negotiation.",
|
|
7
|
-
"version": "10.
|
|
7
|
+
"version": "10.5.0",
|
|
8
8
|
"category": "service",
|
|
9
9
|
"deploymentModes": [
|
|
10
10
|
"self-hosted"
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as aboutBootstrap5PageGET from "../bp-routes/about/_renderer.bootstrap5/GET.js";
|
|
2
2
|
import * as delayedBootstrap5PageGET from "../bp-routes/delayed/_renderer.bootstrap5/GET.js";
|
|
3
3
|
import * as delayedBootstrap5Stream from "../bp-routes/delayed/_renderer.bootstrap5/index.stream.js";
|
|
4
|
-
import * as helloSse from "../bp-routes/hello/sse.js";
|
|
5
4
|
import * as helloBootstrap5PageGET from "../bp-routes/hello/_renderer.bootstrap5/GET.js";
|
|
6
5
|
import * as helloBootstrap5NavClockGET from "../bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.js";
|
|
7
|
-
import * as helloBootstrap5NavClockGETSse from "../bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.js";
|
|
8
|
-
import * as helloBootstrap5NavProfileGET from "../bp-routes/hello/_renderer.bootstrap5/_nav.profile.GET.js";
|
|
9
6
|
import * as helloBootstrap5ShowcaseDataGET from "../bp-routes/hello/_renderer.bootstrap5/showcase-data.GET.js";
|
|
10
7
|
import * as helloEmbeddedPageGET from "../bp-routes/hello/_renderer.embedded/GET.js";
|
|
11
8
|
import * as landingBootstrap5PageGET from "../bp-routes/landing/_renderer.bootstrap5/GET.js";
|
|
@@ -95,7 +92,6 @@ export declare const registry: {
|
|
|
95
92
|
};
|
|
96
93
|
embedded?: undefined;
|
|
97
94
|
};
|
|
98
|
-
sse?: undefined;
|
|
99
95
|
} | {
|
|
100
96
|
viewId: string;
|
|
101
97
|
path: string;
|
|
@@ -180,7 +176,6 @@ export declare const registry: {
|
|
|
180
176
|
};
|
|
181
177
|
embedded?: undefined;
|
|
182
178
|
};
|
|
183
|
-
sse?: undefined;
|
|
184
179
|
} | {
|
|
185
180
|
viewId: string;
|
|
186
181
|
path: string;
|
|
@@ -244,23 +239,14 @@ export declare const registry: {
|
|
|
244
239
|
method: "GET";
|
|
245
240
|
render: typeof helloBootstrap5ShowcaseDataGET.render;
|
|
246
241
|
}[];
|
|
247
|
-
fragments:
|
|
242
|
+
fragments: {
|
|
248
243
|
rendererId: string;
|
|
249
244
|
type: "fragment";
|
|
250
245
|
method: "GET";
|
|
251
246
|
fragmentLocation: string;
|
|
252
247
|
fragmentId: string;
|
|
253
248
|
render: typeof helloBootstrap5NavClockGET.render;
|
|
254
|
-
|
|
255
|
-
} | {
|
|
256
|
-
rendererId: string;
|
|
257
|
-
type: "fragment";
|
|
258
|
-
method: "GET";
|
|
259
|
-
fragmentLocation: string;
|
|
260
|
-
fragmentId: string;
|
|
261
|
-
render: typeof helloBootstrap5NavProfileGET.render;
|
|
262
|
-
sseRender?: undefined;
|
|
263
|
-
})[];
|
|
249
|
+
}[];
|
|
264
250
|
stream?: undefined;
|
|
265
251
|
};
|
|
266
252
|
embedded: {
|
|
@@ -274,13 +260,6 @@ export declare const registry: {
|
|
|
274
260
|
fragments: never[];
|
|
275
261
|
};
|
|
276
262
|
};
|
|
277
|
-
sse: {
|
|
278
|
-
handler: typeof helloSse.handleSSE;
|
|
279
|
-
tickSchema: import("anyvali").ObjectSchema<{
|
|
280
|
-
time: import("anyvali").StringSchema;
|
|
281
|
-
iso: import("anyvali").StringSchema;
|
|
282
|
-
}>;
|
|
283
|
-
};
|
|
284
263
|
} | {
|
|
285
264
|
viewId: string;
|
|
286
265
|
path: string;
|
|
@@ -387,7 +366,6 @@ export declare const registry: {
|
|
|
387
366
|
};
|
|
388
367
|
embedded?: undefined;
|
|
389
368
|
};
|
|
390
|
-
sse?: undefined;
|
|
391
369
|
})[];
|
|
392
370
|
shellFragments: never[];
|
|
393
371
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AAGzF,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,uBAAuB,MAAM,2DAA2D,CAAC;AAGrG,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AAGzF,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,uBAAuB,MAAM,2DAA2D,CAAC;AAGrG,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,0BAA0B,MAAM,2DAA2D,CAAC;AAGxG,OAAO,KAAK,8BAA8B,MAAM,8DAA8D,CAAC;AAM/G,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAC;AAGrF,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAG7F,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGW,CAAC"}
|
|
@@ -8,10 +8,8 @@ import * as delayedBootstrap5PageGET from "../bp-routes/delayed/_renderer.bootst
|
|
|
8
8
|
import * as delayedBootstrap5Stream from "../bp-routes/delayed/_renderer.bootstrap5/index.stream.js";
|
|
9
9
|
import * as helloRoute from "../bp-routes/hello/index.js";
|
|
10
10
|
import * as helloGETRoute from "../bp-routes/hello/GET.js";
|
|
11
|
-
import * as helloSse from "../bp-routes/hello/sse.js";
|
|
12
11
|
import * as helloBootstrap5PageGET from "../bp-routes/hello/_renderer.bootstrap5/GET.js";
|
|
13
12
|
import * as helloBootstrap5NavClockGET from "../bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.js";
|
|
14
|
-
import * as helloBootstrap5NavClockGETSse from "../bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.js";
|
|
15
13
|
import * as helloBootstrap5NavProfileGET from "../bp-routes/hello/_renderer.bootstrap5/_nav.profile.GET.js";
|
|
16
14
|
import * as helloBootstrap5ShowcaseCardsGET from "../bp-routes/hello/_renderer.bootstrap5/showcase-cards.GET.js";
|
|
17
15
|
import * as helloBootstrap5ShowcaseDataGET from "../bp-routes/hello/_renderer.bootstrap5/showcase-data.GET.js";
|
|
@@ -92,15 +90,14 @@ export const registry = {
|
|
|
92
90
|
"bootstrap5": {
|
|
93
91
|
pages: [{ rendererId: "default", type: "page", method: "GET", render: helloBootstrap5PageGET.render }],
|
|
94
92
|
components: [{ rendererId: "showcase-cards", type: "component", method: "GET", render: helloBootstrap5ShowcaseCardsGET.render }, { rendererId: "showcase-data", type: "component", method: "GET", render: helloBootstrap5ShowcaseDataGET.render }, { rendererId: "showcase-elements", type: "component", method: "GET", render: helloBootstrap5ShowcaseElementsGET.render }, { rendererId: "showcase-forms", type: "component", method: "GET", render: helloBootstrap5ShowcaseFormsGET.render }, { rendererId: "showcase-interactive", type: "component", method: "GET", render: helloBootstrap5ShowcaseInteractiveGET.render }, { rendererId: "showcase-overlays", type: "component", method: "GET", render: helloBootstrap5ShowcaseOverlaysGET.render }, { rendererId: "showcase-patterns", type: "component", method: "GET", render: helloBootstrap5ShowcasePatternsGET.render }],
|
|
95
|
-
fragments: [{ rendererId: "nav.clock", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "clock", render: helloBootstrap5NavClockGET.render
|
|
93
|
+
fragments: [{ rendererId: "nav.clock", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "clock", render: helloBootstrap5NavClockGET.render }, { rendererId: "nav.profile", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "profile", render: helloBootstrap5NavProfileGET.render }]
|
|
96
94
|
},
|
|
97
95
|
"embedded": {
|
|
98
96
|
pages: [{ rendererId: "default", type: "page", method: "GET", render: helloEmbeddedPageGET.render }],
|
|
99
97
|
components: [],
|
|
100
98
|
fragments: []
|
|
101
99
|
}
|
|
102
|
-
}
|
|
103
|
-
sse: { handler: helloSse.handleSSE, tickSchema: helloSse.tickSchema }
|
|
100
|
+
}
|
|
104
101
|
},
|
|
105
102
|
{
|
|
106
103
|
viewId: "landing.index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,uBAAuB,MAAM,2DAA2D,CAAC;AACrG,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,uBAAuB,MAAM,2DAA2D,CAAC;AACrG,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,sBAAsB,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,0BAA0B,MAAM,2DAA2D,CAAC;AACxG,OAAO,KAAK,4BAA4B,MAAM,6DAA6D,CAAC;AAC5G,OAAO,KAAK,+BAA+B,MAAM,+DAA+D,CAAC;AACjH,OAAO,KAAK,8BAA8B,MAAM,8DAA8D,CAAC;AAC/G,OAAO,KAAK,kCAAkC,MAAM,kEAAkE,CAAC;AACvH,OAAO,KAAK,+BAA+B,MAAM,+DAA+D,CAAC;AACjH,OAAO,KAAK,qCAAqC,MAAM,qEAAqE,CAAC;AAC7H,OAAO,KAAK,kCAAkC,MAAM,kEAAkE,CAAC;AACvH,OAAO,KAAK,kCAAkC,MAAM,kEAAkE,CAAC;AACvH,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAG7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AAK,EAAE,WAAW,EAAE,eAAe,CAAC,WAAW,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE;wBAC/J,QAAQ,EAAE,eAAe,CAAC,cAAc;wBACxC,KAAK,EAAE,eAAe,CAAC,WAAW;wBAClC,OAAO,EAAE,eAAe,CAAC,aAAa;wBACtC,OAAO,EAAE,eAAe,CAAC,aAAa;qBACvC,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,EAAE;YAC9J,QAAQ,EAAE,EAAE,GAAG,EAAE,eAAe,CAAC,OAAO,EAAE;YAC1C,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,WAAW,EAAE,YAAY,CAAC,WAAW;YACrC,SAAS,EAAE;gBACT,YAAY,EAAE;oBACZ,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAG,wBAAwB,CAAC,MAAiE,EAAE,CAAC;oBACpK,UAAU,EAAE,EAAE;oBACd,SAAS,EAAE,EAAE;iBACd;aACF;SACF;KACF;IACD,cAAc,EAAE,EACf;CAC6B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
|
-
import type { HtmlRenderable
|
|
2
|
+
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
3
|
import type { ResponseData } from "../GET.js";
|
|
4
|
-
export declare function render(_data: ResponseData
|
|
4
|
+
export declare function render(_data: ResponseData): HtmlRenderable;
|
|
5
5
|
//# sourceMappingURL=_nav.clock.GET.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_nav.clock.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,cAAc,CAQ1D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "jsx-htmx/jsx-runtime";
|
|
2
|
-
export function render(_data
|
|
3
|
-
|
|
2
|
+
export function render(_data) {
|
|
3
|
+
const iso = new Date().toISOString();
|
|
4
|
+
return (_jsxs("div", { class: "d-inline-flex align-items-center gap-2 px-3 py-1 rounded-pill bg-body-tertiary border", children: [_jsx("span", { class: "badge bg-success rounded-circle p-1", style: "width:0.55rem;height:0.55rem;" }), _jsx("span", { class: "font-monospace small", title: iso, children: iso.slice(11, 19) })] }));
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=_nav.clock.GET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_nav.clock.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,KAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,KAAmB;IACxC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACrC,OAAO,CACL,eAAK,KAAK,EAAC,uFAAuF,aAChG,eAAM,KAAK,EAAC,qCAAqC,EAAC,KAAK,EAAC,+BAA+B,GAAQ,EAC/F,eAAM,KAAK,EAAC,sBAAsB,EAAC,KAAK,EAAE,GAAG,YAAG,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,GAAQ,IACrE,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterportal/hello-view",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"description": "BetterPortal v10 example service plugin for Node.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"license": "(AGPL-3.0-only OR Commercial)",
|
|
29
29
|
"type": "module",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@bsb/tests": "^9.6.
|
|
31
|
+
"@bsb/tests": "^9.6.76",
|
|
32
32
|
"@types/node": "^26.0.0",
|
|
33
33
|
"tsx": "^4.21.0",
|
|
34
34
|
"typescript": "^6.0.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@betterportal/framework": "10.
|
|
38
|
-
"@betterportal/plugin-bsb": "10.
|
|
39
|
-
"@bsb/base": "^9.6.
|
|
37
|
+
"@betterportal/framework": "10.5.0",
|
|
38
|
+
"@betterportal/plugin-bsb": "10.5.0",
|
|
39
|
+
"@bsb/base": "^9.6.76",
|
|
40
40
|
"anyvali": "^1.0.7",
|
|
41
41
|
"jsx-htmx": "4.0.0-beta6"
|
|
42
42
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_nav.clock.sse.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_nav.clock.sse.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_renderer.bootstrap5/_nav.clock.sse.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,UAAU,CAAC,IAAU;IACnC,0BAA0B;IAC1B,OAAO,eAAM,KAAK,EAAE,IAAI,CAAC,GAAG,YAAG,IAAI,CAAC,IAAI,GAAQ,CAAC;AACnD,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as av from "anyvali";
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import type { SSEHandlerContext } from "@betterportal/framework";
|
|
4
|
-
export declare const tickSchema: av.ObjectSchema<{
|
|
5
|
-
time: av.StringSchema;
|
|
6
|
-
iso: av.StringSchema;
|
|
7
|
-
}>;
|
|
8
|
-
export type Tick = Infer<typeof tickSchema>;
|
|
9
|
-
export declare function handleSSE(_ctx: SSEHandlerContext): AsyncGenerator<Tick>;
|
|
10
|
-
//# sourceMappingURL=sse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/sse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,eAAO,MAAM,UAAU;;;EAGrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAW5C,wBAAuB,SAAS,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc,CAAC,IAAI,CAAC,CAM9E"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as av from "anyvali";
|
|
2
|
-
// -- Tick schema (validated per yielded value) ------------------------
|
|
3
|
-
export const tickSchema = av.object({
|
|
4
|
-
time: av.string().minLength(1),
|
|
5
|
-
iso: av.string().minLength(1)
|
|
6
|
-
});
|
|
7
|
-
// -- Helpers ----------------------------------------------------------
|
|
8
|
-
function formatTime(d) {
|
|
9
|
-
const pad = (n) => String(n).padStart(2, "0");
|
|
10
|
-
return `${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
|
|
11
|
-
}
|
|
12
|
-
// -- Handler - async generator. Framework drives the SSE stream ------
|
|
13
|
-
export async function* handleSSE(_ctx) {
|
|
14
|
-
while (true) {
|
|
15
|
-
const now = new Date();
|
|
16
|
-
yield { time: formatTime(now), iso: now.toISOString() };
|
|
17
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=sse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/sse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAI9B,wEAAwE;AAExE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,GAAG,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAIH,wEAAwE;AAExE,SAAS,UAAU,CAAC,CAAO;IACzB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACtD,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,uEAAuE;AAEvE,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,SAAS,CAAC,IAAuB;IACtD,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;QACxD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC"}
|