@betterportal/hello-view 10.0.0 → 10.0.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.
- 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 +43 -29
- package/lib/plugins/service-betterportal-hello-view/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.js +3 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.stream.d.ts +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.stream.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/index.d.ts +1 -33
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/index.js +1 -49
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/index.js.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.d.ts +34 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.js +50 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.js +3 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/{sse.d.ts → GET.sse.d.ts} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.sse.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/{sse.js → GET.sse.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/GET.sse.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/{_theme.embedded/index.d.ts → _theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.clock.d.ts → _nav.clock.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.clock.js → _nav.clock.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.clock.sse.d.ts → _nav.clock.GET.sse.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.sse.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.clock.sse.js → _nav.clock.GET.sse.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.sse.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-cards.d.ts → _nav.profile.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.profile.js → _nav.profile.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-elements.d.ts → showcase-cards.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-cards.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-cards.js → showcase-cards.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-cards.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-data.d.ts → showcase-data.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-data.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-data.js → showcase-data.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-data.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-elements.GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-elements.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-elements.js → showcase-elements.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-elements.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{_nav.profile.d.ts → showcase-forms.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-forms.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-forms.js → showcase-forms.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-forms.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-interactive.js → showcase-interactive.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-overlays.js → showcase-overlays.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/{showcase-patterns.js → showcase-patterns.GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/{_theme.bootstrap1/index.d.ts → _theme.embedded/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.embedded/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.embedded/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.embedded/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/index.d.ts +1 -22
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/index.js +1 -36
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/index.js.map +1 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/route.impl.d.ts +23 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/route.impl.js +37 -0
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/route.impl.js.map +1 -0
- package/lib/schemas/service-betterportal-hello-view.json +1 -1
- package/lib/schemas/service-betterportal-hello-view.plugin.json +1 -1
- package/package.json +3 -3
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.sse.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.sse.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-cards.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-cards.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-data.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-data.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-elements.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-elements.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-forms.d.ts +0 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-forms.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-forms.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.d.ts +0 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-interactive.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.d.ts +0 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-overlays.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.d.ts +0 -5
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/showcase-patterns.js.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.embedded/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.embedded/index.js.map +0 -1
- 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.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-hello-view/.bp-generated/registry.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,QAAQ,EAAE,oBAwEtB,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
// AUTO-GENERATED by BetterPortal codegen - DO NOT EDIT
|
|
2
2
|
import * as delayedRoute from "../bp-routes/delayed/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as delayedGETRoute from "../bp-routes/delayed/GET.js";
|
|
4
|
+
import * as delayedBootstrap1PageGET from "../bp-routes/delayed/_theme.bootstrap1/GET.js";
|
|
4
5
|
import * as delayedBootstrap1Stream from "../bp-routes/delayed/_theme.bootstrap1/index.stream.js";
|
|
5
6
|
import * as helloRoute from "../bp-routes/hello/index.js";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
7
|
+
import * as helloGETRoute from "../bp-routes/hello/GET.js";
|
|
8
|
+
import * as helloSse from "../bp-routes/hello/GET.sse.js";
|
|
9
|
+
import * as helloBootstrap1PageGET from "../bp-routes/hello/_theme.bootstrap1/GET.js";
|
|
10
|
+
import * as helloBootstrap1NavClockGET from "../bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.js";
|
|
11
|
+
import * as helloBootstrap1NavClockGETSse from "../bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.sse.js";
|
|
12
|
+
import * as helloBootstrap1NavProfileGET from "../bp-routes/hello/_theme.bootstrap1/_nav.profile.GET.js";
|
|
13
|
+
import * as helloBootstrap1ShowcaseCardsGET from "../bp-routes/hello/_theme.bootstrap1/showcase-cards.GET.js";
|
|
14
|
+
import * as helloBootstrap1ShowcaseDataGET from "../bp-routes/hello/_theme.bootstrap1/showcase-data.GET.js";
|
|
15
|
+
import * as helloBootstrap1ShowcaseElementsGET from "../bp-routes/hello/_theme.bootstrap1/showcase-elements.GET.js";
|
|
16
|
+
import * as helloBootstrap1ShowcaseFormsGET from "../bp-routes/hello/_theme.bootstrap1/showcase-forms.GET.js";
|
|
17
|
+
import * as helloBootstrap1ShowcaseInteractiveGET from "../bp-routes/hello/_theme.bootstrap1/showcase-interactive.GET.js";
|
|
18
|
+
import * as helloBootstrap1ShowcaseOverlaysGET from "../bp-routes/hello/_theme.bootstrap1/showcase-overlays.GET.js";
|
|
19
|
+
import * as helloBootstrap1ShowcasePatternsGET from "../bp-routes/hello/_theme.bootstrap1/showcase-patterns.GET.js";
|
|
20
|
+
import * as helloEmbeddedPageGET from "../bp-routes/hello/_theme.embedded/GET.js";
|
|
19
21
|
export const registry = {
|
|
20
22
|
routes: [
|
|
21
23
|
{
|
|
@@ -24,12 +26,18 @@ export const registry = {
|
|
|
24
26
|
methods: ["GET"],
|
|
25
27
|
paramNames: [],
|
|
26
28
|
schemas: {
|
|
27
|
-
response:
|
|
28
|
-
query:
|
|
29
|
-
item:
|
|
30
|
-
summary:
|
|
29
|
+
response: delayedGETRoute.default.responseSchema,
|
|
30
|
+
query: delayedGETRoute.QuerySchema,
|
|
31
|
+
item: delayedGETRoute.ItemSchema,
|
|
32
|
+
summary: delayedGETRoute.SummarySchema
|
|
31
33
|
},
|
|
32
|
-
|
|
34
|
+
methodRoutes: { GET: { method: "GET", schemas: {
|
|
35
|
+
response: delayedGETRoute.default.responseSchema,
|
|
36
|
+
query: delayedGETRoute.QuerySchema,
|
|
37
|
+
item: delayedGETRoute.ItemSchema,
|
|
38
|
+
summary: delayedGETRoute.SummarySchema
|
|
39
|
+
}, handler: delayedGETRoute.default } },
|
|
40
|
+
handlers: { GET: delayedGETRoute.default },
|
|
33
41
|
title: delayedRoute.title,
|
|
34
42
|
description: delayedRoute.description,
|
|
35
43
|
auth: delayedRoute.auth,
|
|
@@ -37,7 +45,7 @@ export const registry = {
|
|
|
37
45
|
demoScenarios: [],
|
|
38
46
|
themeRenderers: {
|
|
39
47
|
"bootstrap1": {
|
|
40
|
-
pages: [{ rendererId: "default", type: "page", render:
|
|
48
|
+
pages: [{ rendererId: "default", type: "page", method: "GET", render: delayedBootstrap1PageGET.render }],
|
|
41
49
|
components: [],
|
|
42
50
|
fragments: [],
|
|
43
51
|
stream: { renderShell: delayedBootstrap1Stream.renderShell, renderItem: delayedBootstrap1Stream.renderItem, renderSummary: delayedBootstrap1Stream.renderSummary, renderError: delayedBootstrap1Stream.renderError }
|
|
@@ -50,12 +58,18 @@ export const registry = {
|
|
|
50
58
|
methods: ["GET"],
|
|
51
59
|
paramNames: [],
|
|
52
60
|
schemas: {
|
|
53
|
-
response:
|
|
54
|
-
query:
|
|
55
|
-
headers:
|
|
56
|
-
request:
|
|
61
|
+
response: helloGETRoute.ResponseSchema,
|
|
62
|
+
query: helloGETRoute.QuerySchema,
|
|
63
|
+
headers: helloGETRoute.HeadersSchema,
|
|
64
|
+
request: helloGETRoute.RequestSchema
|
|
57
65
|
},
|
|
58
|
-
|
|
66
|
+
methodRoutes: { GET: { method: "GET", schemas: {
|
|
67
|
+
response: helloGETRoute.ResponseSchema,
|
|
68
|
+
query: helloGETRoute.QuerySchema,
|
|
69
|
+
headers: helloGETRoute.HeadersSchema,
|
|
70
|
+
request: helloGETRoute.RequestSchema
|
|
71
|
+
}, handler: helloGETRoute.default } },
|
|
72
|
+
handlers: { GET: helloGETRoute.default },
|
|
59
73
|
title: helloRoute.title,
|
|
60
74
|
description: helloRoute.description,
|
|
61
75
|
auth: helloRoute.auth,
|
|
@@ -63,12 +77,12 @@ export const registry = {
|
|
|
63
77
|
demoScenarios: helloRoute.demoScenarios,
|
|
64
78
|
themeRenderers: {
|
|
65
79
|
"bootstrap1": {
|
|
66
|
-
pages: [{ rendererId: "default", type: "page", render:
|
|
67
|
-
components: [{ rendererId: "showcase-cards", type: "component", render:
|
|
68
|
-
fragments: [{ rendererId: "nav.clock", type: "fragment", fragmentLocation: "nav", fragmentId: "clock", render:
|
|
80
|
+
pages: [{ rendererId: "default", type: "page", method: "GET", render: helloBootstrap1PageGET.render }],
|
|
81
|
+
components: [{ rendererId: "showcase-cards", type: "component", method: "GET", render: helloBootstrap1ShowcaseCardsGET.render }, { rendererId: "showcase-data", type: "component", method: "GET", render: helloBootstrap1ShowcaseDataGET.render }, { rendererId: "showcase-elements", type: "component", method: "GET", render: helloBootstrap1ShowcaseElementsGET.render }, { rendererId: "showcase-forms", type: "component", method: "GET", render: helloBootstrap1ShowcaseFormsGET.render }, { rendererId: "showcase-interactive", type: "component", method: "GET", render: helloBootstrap1ShowcaseInteractiveGET.render }, { rendererId: "showcase-overlays", type: "component", method: "GET", render: helloBootstrap1ShowcaseOverlaysGET.render }, { rendererId: "showcase-patterns", type: "component", method: "GET", render: helloBootstrap1ShowcasePatternsGET.render }],
|
|
82
|
+
fragments: [{ rendererId: "nav.clock", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "clock", render: helloBootstrap1NavClockGET.render, sseRender: helloBootstrap1NavClockGETSse.renderTick }, { rendererId: "nav.profile", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "profile", render: helloBootstrap1NavProfileGET.render }]
|
|
69
83
|
},
|
|
70
84
|
"embedded": {
|
|
71
|
-
pages: [{ rendererId: "default", type: "page", render:
|
|
85
|
+
pages: [{ rendererId: "default", type: "page", method: "GET", render: helloEmbeddedPageGET.render }],
|
|
72
86
|
components: [],
|
|
73
87
|
fragments: []
|
|
74
88
|
}
|
|
@@ -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,YAAY,MAAM,+BAA+B,CAAC;AAC9D,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,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../src/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { DelayedItem, DelayedSummary } from "../
|
|
3
|
+
import type { DelayedItem, DelayedSummary } from "../route.impl.js";
|
|
4
4
|
/**
|
|
5
5
|
* Buffered full-page render (spec/streaming.md section 4.2): the framework runs the
|
|
6
6
|
* stream to completion and hands the derived { items, summary } shape here.
|
|
@@ -10,4 +10,4 @@ export declare function render(data: {
|
|
|
10
10
|
items: DelayedItem[];
|
|
11
11
|
summary?: DelayedSummary;
|
|
12
12
|
}): HtmlRenderable;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=GET.d.ts.map
|
package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGpE;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,WAAW,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,GAAG,cAAc,CAW/F"}
|
|
@@ -8,4 +8,4 @@ import { renderItem, renderSummary } from "./index.stream.js";
|
|
|
8
8
|
export function render(data) {
|
|
9
9
|
return (_jsxs("section", { class: "container-fluid", children: [_jsx("h1", { class: "h4", children: "Delayed stream" }), _jsx("p", { class: "text-body-secondary", children: "Buffered render - the server waited for the full stream before responding." }), _jsx("ul", { class: "list-group", children: data.items.map((item) => renderItem(item)) }), data.summary ? renderSummary(data.summary) : null] }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=GET.js.map
|
package/lib/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,IAAwD;IAC7E,OAAO,CACL,mBAAS,KAAK,EAAC,iBAAiB,aAC9B,aAAI,KAAK,EAAC,IAAI,+BAAoB,EAClC,YAAG,KAAK,EAAC,qBAAqB,2FAE1B,EACJ,aAAI,KAAK,EAAC,YAAY,YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAM,EACvE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC1C,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable, StreamErrorFrame, StreamShellContext } from "@betterportal/framework";
|
|
3
|
-
import type { DelayedItem, DelayedSummary } from "../
|
|
3
|
+
import type { DelayedItem, DelayedSummary } from "../route.impl.js";
|
|
4
4
|
/**
|
|
5
5
|
* Streaming renderers (spec/streaming.md section 4). The shell returns instantly with
|
|
6
6
|
* SSE wiring; each frame is rendered server-side and swapped in as it arrives.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stream.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.stream.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.stream.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/_theme.bootstrap1/index.stream.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;GAGG;AAEH,wBAAgB,WAAW,CAAC,GAAG,EAAE,kBAAkB,GAAG,cAAc,CAmBnE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CAO5D;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAMrE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,cAAc,CAMnE"}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
-
export declare const QuerySchema: av.ObjectSchema<{
|
|
5
|
-
count: av.StringSchema;
|
|
6
|
-
delayMs: av.StringSchema;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const ItemSchema: av.ObjectSchema<{
|
|
9
|
-
id: av.StringSchema;
|
|
10
|
-
label: av.StringSchema;
|
|
11
|
-
elapsedMs: av.IntSchema;
|
|
12
|
-
}>;
|
|
13
|
-
export type DelayedItem = Infer<typeof ItemSchema>;
|
|
14
|
-
export declare const SummarySchema: av.ObjectSchema<{
|
|
15
|
-
total: av.IntSchema;
|
|
16
|
-
totalMs: av.IntSchema;
|
|
17
|
-
}>;
|
|
18
|
-
export type DelayedSummary = Infer<typeof SummarySchema>;
|
|
19
|
-
export declare const title = "Delayed Stream";
|
|
20
|
-
export declare const description = "Example streaming view: items arrive one by one as a slow data source produces them. JSON buffers, NDJSON streams frames, HTML streams rendered rows over SSE.";
|
|
21
|
-
export declare const auth: ApiAuthRequirement;
|
|
22
|
-
export declare const cacheHints: CacheHints;
|
|
23
|
-
export declare const handleGet: import("@betterportal/framework").BpStreamHandler<{
|
|
24
|
-
id: string;
|
|
25
|
-
label: string;
|
|
26
|
-
elapsedMs: number;
|
|
27
|
-
}, {
|
|
28
|
-
total: number;
|
|
29
|
-
totalMs: number;
|
|
30
|
-
}, Record<string, string>, {
|
|
31
|
-
count: string;
|
|
32
|
-
delayMs: string;
|
|
33
|
-
}, Record<string, string>>;
|
|
1
|
+
export { title, description, auth, cacheHints } from "./route.impl.js";
|
|
34
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createStreamHandler } from "@betterportal/framework";
|
|
3
|
-
// -- Schemas (spec/streaming.md - item is the canonical contract) ----
|
|
4
|
-
export const QuerySchema = av.object({
|
|
5
|
-
count: av.string().default("5"),
|
|
6
|
-
delayMs: av.string().default("400")
|
|
7
|
-
}, { unknownKeys: "strip" });
|
|
8
|
-
export const ItemSchema = av.object({
|
|
9
|
-
id: av.string().minLength(1),
|
|
10
|
-
label: av.string().minLength(1),
|
|
11
|
-
elapsedMs: av.int().min(0)
|
|
12
|
-
}, { unknownKeys: "strip" });
|
|
13
|
-
export const SummarySchema = av.object({
|
|
14
|
-
total: av.int().min(0),
|
|
15
|
-
totalMs: av.int().min(0)
|
|
16
|
-
}, { unknownKeys: "strip" });
|
|
17
|
-
// -- Metadata --------------------------------------------------------
|
|
18
|
-
export const title = "Delayed Stream";
|
|
19
|
-
export const description = "Example streaming view: items arrive one by one as a slow data source produces them. JSON buffers, NDJSON streams frames, HTML streams rendered rows over SSE.";
|
|
20
|
-
export const auth = {
|
|
21
|
-
required: false,
|
|
22
|
-
permissions: []
|
|
23
|
-
};
|
|
24
|
-
export const cacheHints = {
|
|
25
|
-
ttlSeconds: 0,
|
|
26
|
-
varyBy: ["accept", "origin"]
|
|
27
|
-
};
|
|
28
|
-
// -- Handler - async generator; the framework drives representation --
|
|
29
|
-
function clampInt(raw, min, max, fallback) {
|
|
30
|
-
const parsed = Number.parseInt(raw, 10);
|
|
31
|
-
if (!Number.isFinite(parsed))
|
|
32
|
-
return fallback;
|
|
33
|
-
return Math.min(max, Math.max(min, parsed));
|
|
34
|
-
}
|
|
35
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
36
|
-
export const handleGet = createStreamHandler({ item: ItemSchema, summary: SummarySchema, query: QuerySchema }, async function* (ctx) {
|
|
37
|
-
const count = clampInt(ctx.query.count, 1, 25, 5);
|
|
38
|
-
const delayMs = clampInt(ctx.query.delayMs, 0, 2000, 400);
|
|
39
|
-
const startedAt = Date.now();
|
|
40
|
-
for (let i = 1; i <= count; i++) {
|
|
41
|
-
await sleep(delayMs);
|
|
42
|
-
yield {
|
|
43
|
-
id: `item-${i}`,
|
|
44
|
-
label: `Slow record #${i} of ${count}`,
|
|
45
|
-
elapsedMs: Date.now() - startedAt
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return { total: count, totalMs: Date.now() - startedAt };
|
|
49
|
-
});
|
|
1
|
+
export { title, description, auth, cacheHints } from "./route.impl.js";
|
|
50
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import type { Infer } from "anyvali";
|
|
3
|
+
import { type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
+
export declare const QuerySchema: av.ObjectSchema<{
|
|
5
|
+
count: av.StringSchema;
|
|
6
|
+
delayMs: av.StringSchema;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const ItemSchema: av.ObjectSchema<{
|
|
9
|
+
id: av.StringSchema;
|
|
10
|
+
label: av.StringSchema;
|
|
11
|
+
elapsedMs: av.IntSchema;
|
|
12
|
+
}>;
|
|
13
|
+
export type DelayedItem = Infer<typeof ItemSchema>;
|
|
14
|
+
export declare const SummarySchema: av.ObjectSchema<{
|
|
15
|
+
total: av.IntSchema;
|
|
16
|
+
totalMs: av.IntSchema;
|
|
17
|
+
}>;
|
|
18
|
+
export type DelayedSummary = Infer<typeof SummarySchema>;
|
|
19
|
+
export declare const title = "Delayed Stream";
|
|
20
|
+
export declare const description = "Example streaming view: items arrive one by one as a slow data source produces them. JSON buffers, NDJSON streams frames, HTML streams rendered rows over SSE.";
|
|
21
|
+
export declare const auth: ApiAuthRequirement;
|
|
22
|
+
export declare const cacheHints: CacheHints;
|
|
23
|
+
export declare const handleGet: import("@betterportal/framework").BpStreamHandler<{
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
elapsedMs: number;
|
|
27
|
+
}, {
|
|
28
|
+
total: number;
|
|
29
|
+
totalMs: number;
|
|
30
|
+
}, Record<string, string>, {
|
|
31
|
+
count: string;
|
|
32
|
+
delayMs: string;
|
|
33
|
+
}, Record<string, string>>;
|
|
34
|
+
//# sourceMappingURL=route.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW;;;EAGI,CAAC;AAE7B,eAAO,MAAM,UAAU;;;;EAIK,CAAC;AAC7B,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,eAAO,MAAM,aAAa;;;EAGE,CAAC;AAC7B,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAIzD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,mKAAmK,CAAC;AAE5L,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAGxB,CAAC;AAYF,eAAO,MAAM,SAAS;;;;;;;;;;0BAkBrB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import { createStreamHandler } from "@betterportal/framework";
|
|
3
|
+
// -- Schemas (spec/streaming.md - item is the canonical contract) ----
|
|
4
|
+
export const QuerySchema = av.object({
|
|
5
|
+
count: av.string().default("5"),
|
|
6
|
+
delayMs: av.string().default("400")
|
|
7
|
+
}, { unknownKeys: "strip" });
|
|
8
|
+
export const ItemSchema = av.object({
|
|
9
|
+
id: av.string().minLength(1),
|
|
10
|
+
label: av.string().minLength(1),
|
|
11
|
+
elapsedMs: av.int().min(0)
|
|
12
|
+
}, { unknownKeys: "strip" });
|
|
13
|
+
export const SummarySchema = av.object({
|
|
14
|
+
total: av.int().min(0),
|
|
15
|
+
totalMs: av.int().min(0)
|
|
16
|
+
}, { unknownKeys: "strip" });
|
|
17
|
+
// -- Metadata --------------------------------------------------------
|
|
18
|
+
export const title = "Delayed Stream";
|
|
19
|
+
export const description = "Example streaming view: items arrive one by one as a slow data source produces them. JSON buffers, NDJSON streams frames, HTML streams rendered rows over SSE.";
|
|
20
|
+
export const auth = {
|
|
21
|
+
required: false,
|
|
22
|
+
permissions: []
|
|
23
|
+
};
|
|
24
|
+
export const cacheHints = {
|
|
25
|
+
ttlSeconds: 0,
|
|
26
|
+
varyBy: ["accept", "origin"]
|
|
27
|
+
};
|
|
28
|
+
// -- Handler - async generator; the framework drives representation --
|
|
29
|
+
function clampInt(raw, min, max, fallback) {
|
|
30
|
+
const parsed = Number.parseInt(raw, 10);
|
|
31
|
+
if (!Number.isFinite(parsed))
|
|
32
|
+
return fallback;
|
|
33
|
+
return Math.min(max, Math.max(min, parsed));
|
|
34
|
+
}
|
|
35
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
36
|
+
export const handleGet = createStreamHandler({ item: ItemSchema, summary: SummarySchema, query: QuerySchema }, async function* (ctx) {
|
|
37
|
+
const count = clampInt(ctx.query.count, 1, 25, 5);
|
|
38
|
+
const delayMs = clampInt(ctx.query.delayMs, 0, 2000, 400);
|
|
39
|
+
const startedAt = Date.now();
|
|
40
|
+
for (let i = 1; i <= count; i++) {
|
|
41
|
+
await sleep(delayMs);
|
|
42
|
+
yield {
|
|
43
|
+
id: `item-${i}`,
|
|
44
|
+
label: `Slow record #${i} of ${count}`,
|
|
45
|
+
elapsedMs: Date.now() - startedAt
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return { total: count, totalMs: Date.now() - startedAt };
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=route.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/delayed/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,mBAAmB,EAGpB,MAAM,yBAAyB,CAAC;AAEjC,uEAAuE;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC;IAC/B,OAAO,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,UAAU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cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.sse.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/GET.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;;;EAGK,CAAC;AAE7B,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAW5C,wBAAuB,SAAS,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc,CAAC,IAAI,CAAC,CAM9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.sse.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/GET.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,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAI7B,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=GET.d.ts.map
|
package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAkBrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAyGzD"}
|
|
@@ -5,4 +5,4 @@ function statCard(label, value, change, positive) {
|
|
|
5
5
|
export function render(data) {
|
|
6
6
|
return (_jsx("section", { class: "container-fluid px-0", children: _jsxs("div", { class: "d-flex flex-column gap-4", children: [_jsxs("div", { children: [_jsx("h1", { class: "h3 mb-1", children: data.greeting }), _jsx("p", { class: "text-body-secondary mb-0", children: "This HTML representation is rendered from the same validated API output." })] }), _jsxs("div", { class: "row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-3", children: [statCard("Total Users", "12,482", "14% vs last month", true), statCard("Revenue", "$48,290", "8.2% vs last month", true), statCard("Active Sessions", "1,847", "3.1% vs yesterday", false), statCard("Avg. Response", "124ms", "12% improvement", true)] }), _jsxs("div", { class: "row g-3", children: [_jsx("div", { class: "col-lg-8", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h2", { class: "h5 mb-3", children: "Platform Overview" }), _jsx("p", { class: "text-body-secondary", children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." }), _jsx("p", { class: "text-body-secondary", children: "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." }), _jsx("p", { class: "text-body-secondary mb-0", children: "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." })] }) }) }), _jsx("div", { class: "col-lg-4", children: _jsx("div", { class: "card border-0 shadow-sm h-100", children: _jsxs("div", { class: "card-body", children: [_jsx("h2", { class: "h5 mb-3", children: "Quick Actions" }), _jsxs("div", { class: "d-grid gap-2", children: [_jsx("button", { class: "btn btn-outline-primary btn-sm text-start", children: "View Analytics" }), _jsx("button", { class: "btn btn-outline-primary btn-sm text-start", children: "Manage Users" }), _jsx("button", { class: "btn btn-outline-primary btn-sm text-start", children: "System Settings" }), _jsx("button", { class: "btn btn-outline-primary btn-sm text-start", children: "Export Reports" })] })] }) }) })] }), _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h2", { class: "h5 mb-3", children: "Recent Activity" }), _jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm table-hover mb-0", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { class: "text-body-secondary fw-semibold", children: "Event" }), _jsx("th", { class: "text-body-secondary fw-semibold", children: "User" }), _jsx("th", { class: "text-body-secondary fw-semibold", children: "Status" }), _jsx("th", { class: "text-body-secondary fw-semibold text-end", children: "Time" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { children: "Deployment completed" }), _jsx("td", { children: "System" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-success", children: "Success" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "2 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "User login" }), _jsx("td", { children: "jane@example.com" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-primary", children: "Active" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "5 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "Config updated" }), _jsx("td", { children: "admin@example.com" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-warning text-dark", children: "Pending" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "12 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "Backup initiated" }), _jsx("td", { children: "System" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-info", children: "Running" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "18 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "Service restart" }), _jsx("td", { children: "ops@example.com" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-success", children: "Success" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "32 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "Alert triggered" }), _jsx("td", { children: "monitoring" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-danger", children: "Critical" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "45 min ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "User invited" }), _jsx("td", { children: "admin@example.com" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-primary", children: "Sent" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "1 hr ago" })] }), _jsxs("tr", { children: [_jsx("td", { children: "Schema migration" }), _jsx("td", { children: "System" }), _jsx("td", { children: _jsx("span", { class: "badge text-bg-success", children: "Success" }) }), _jsx("td", { class: "text-end text-body-secondary", children: "2 hr ago" })] })] })] }) })] }) }), _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h2", { class: "h5 mb-3", children: "Architecture Notes" }), _jsx("p", { class: "text-body-secondary", children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur. Donec sed odio dui. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus." }), _jsx("p", { class: "text-body-secondary", children: "Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Maecenas sed diam eget risus varius blandit sit amet non magna. Cras justo odio, dapibus ut facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo." }), _jsx("p", { class: "text-body-secondary", children: "Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla. Maecenas faucibus mollis interdum. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum." }), _jsx("p", { class: "text-body-secondary mb-0", children: "Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit." })] }) })] }) }));
|
|
7
7
|
}
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=GET.js.map
|
package/lib/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAIA,SAAS,QAAQ,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,QAAiB;IAC/E,OAAO,CACL,cAAK,KAAK,EAAC,KAAK,YACd,cAAK,KAAK,EAAC,+BAA+B,YACxC,eAAK,KAAK,EAAC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A,uBAAI,eAAM,KAAK,EAAC,uBAAuB,wBAAe,GAAK,EAAA,aAAI,KAAK,EAAC,8BAA8B,2BAAgB,IAAK,EAC5K,yBAAI,2CAAwB,EAAA,sCAAmB,EAAA,uBAAI,eAAM,KAAK,EAAC,sBAAsB,yBAAgB,GAAK,EAAA,aAAI,KAAK,EAAC,8BAA8B,2BAAgB,IAAK,EACvK,yBAAI,wCAAqB,EAAA,6CAA0B,EAAA,uBAAI,eAAM,KAAK,EAAC,uBAAuB,qBAAY,GAAK,EAAA,aAAI,KAAK,EAAC,8BAA8B,yBAAc,IAAK,EACtK,yBAAI,4CAAyB,EAAA,kCAAe,EAAA,uBAAI,eAAM,KAAK,EAAC,uBAAuB,wBAAe,GAAK,EAAA,aAAI,KAAK,EAAC,8BAA8B,yBAAc,IAAK,IAC5J,IACF,GACJ,IACF,GACF,EAGN,cAAK,KAAK,EAAC,yBAAyB,YAClC,eAAK,KAAK,EAAC,WAAW,aACpB,aAAI,KAAK,EAAC,SAAS,mCAAwB,EAC3C,YAAG,KAAK,EAAC,qBAAqB,oXAE1B,EACJ,YAAG,KAAK,EAAC,qBAAqB,uXAE1B,EACJ,YAAG,KAAK,EAAC,qBAAqB,iVAE1B,EACJ,YAAG,KAAK,EAAC,0BAA0B,oXAE/B,IACA,GACF,IAEF,GACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(_data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=_nav.clock.d.ts.map
|
|
5
|
+
//# sourceMappingURL=_nav.clock.GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,cAAc,CAW1D"}
|
|
@@ -2,4 +2,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "jsx-htmx/jsx-runtime";
|
|
|
2
2
|
export function render(_data) {
|
|
3
3
|
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", "hx-ext": "sse", "hx-sse:connect": "/hello/__sse?_f=nav.clock", children: "--:--:--" })] }));
|
|
4
4
|
}
|
|
5
|
-
//# sourceMappingURL=_nav.clock.js.map
|
|
5
|
+
//# sourceMappingURL=_nav.clock.GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,KAAmB;IACxC,OAAO,CACL,eAAK,KAAK,EAAC,uFAAuF,aAChG,eAAM,KAAK,EAAC,qCAAqC,EAAC,KAAK,EAAC,+BAA+B,GAAQ,EAC/F,eACE,KAAK,EAAC,sBAAsB,YACrB,KAAK,oBACG,2BAA2B,yBAC5B,IACZ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { Tick } from "../sse.js";
|
|
3
|
+
import type { Tick } from "../GET.sse.js";
|
|
4
4
|
export declare function renderTick(data: Tick): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=_nav.clock.sse.d.ts.map
|
|
5
|
+
//# sourceMappingURL=_nav.clock.GET.sse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.sse.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.sse.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAGrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.clock.GET.sse.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.clock.GET.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,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=_nav.profile.GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.profile.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAYrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA+BzD"}
|
|
@@ -12,4 +12,4 @@ export function render(data) {
|
|
|
12
12
|
const initials = greetingInitials(data.greeting);
|
|
13
13
|
return (_jsxs("div", { class: "dropdown", children: [_jsxs("button", { class: "btn btn-light border shadow-sm dropdown-toggle d-inline-flex align-items-center gap-2 rounded-pill px-2 py-1 text-start", type: "button", "data-bs-toggle": "dropdown", "aria-expanded": "false", children: [_jsx("span", { class: "rounded-circle bg-primary text-white d-inline-flex align-items-center justify-content-center fw-semibold flex-shrink-0", style: "width:2rem;height:2rem;font-size:0.78rem;", children: initials }), _jsx("span", { class: "d-none d-sm-inline fw-semibold text-body", children: name })] }), _jsxs("ul", { class: "dropdown-menu dropdown-menu-end shadow-sm", children: [_jsx("li", { children: _jsx("div", { class: "dropdown-item-text", children: _jsx("div", { class: "fw-semibold text-body", children: name }) }) }), _jsx("li", { children: _jsx("hr", { class: "dropdown-divider" }) }), _jsx("li", { children: _jsx("a", { class: "dropdown-item", href: "/config-admin", children: "Settings" }) })] })] }));
|
|
14
14
|
}
|
|
15
|
-
//# sourceMappingURL=_nav.profile.js.map
|
|
15
|
+
//# sourceMappingURL=_nav.profile.GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.profile.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-hello-view/bp-routes/hello/_theme.bootstrap1/_nav.profile.GET.tsx"],"names":[],"mappings":";AAIA,SAAS,YAAY,CAAC,QAAgB;IACpC,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,C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