@betterportal/config-manager 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/.bsb/clients/service-betterportal-config-manager.d.ts +1 -1
- package/lib/.bsb/clients/service-betterportal-config-manager.js +1 -1
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js +96 -45
- package/lib/plugins/service-betterportal-config-manager/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts +1 -95
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js +1 -77
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts +96 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js +78 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{routes/_theme.bootstrap1/index.d.ts → config/_theme.embedded/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/{_theme.embedded.js → _theme.embedded/GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts +1 -42
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js +1 -67
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts +43 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js +68 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{services/_theme.bootstrap1/index.d.ts → fragments/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts +1 -31
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js +1 -31
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts +32 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js +32 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts +1 -59
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js +1 -47
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts +60 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js +48 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts +1 -47
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js +1 -39
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts +48 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js +40 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{settings/_theme.bootstrap1/index.d.ts → routes/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts +1 -79
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js +1 -58
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +80 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +59 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/{fragments/_theme.bootstrap1/index.d.ts → services/_theme.bootstrap1/GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts +1 -127
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js +1 -88
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts +128 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js +89 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts +5 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts +1 -88
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js +1 -92
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts +89 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js +93 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/DELETE.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/POST.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/PUT.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts +4 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts +1 -179
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js +1 -404
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts +180 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js +405 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.js +52 -0
- package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +4 -0
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/syncApi.js.map +1 -1
- package/lib/schemas/service-betterportal-config-manager.json +1 -1
- package/lib/schemas/service-betterportal-config-manager.plugin.json +1 -1
- package/package.json +3 -3
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts +0 -5
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/config/_theme.embedded.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/settings/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts +0 -4
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/_theme.bootstrap1/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/_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;AAErD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAsCzD"}
|
|
@@ -8,4 +8,4 @@ export function render(data) {
|
|
|
8
8
|
? _jsx("div", { class: "text-secondary", children: "Loading editor..." })
|
|
9
9
|
: _jsx("div", { class: "alert alert-secondary", children: "Select an app to manage its fragments" }) })] }));
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,MAAM,UAAU,GAAG,wCAAwC,CAAC;IAC5D,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,UAAU,UAAU,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7G,OAAO,CACL,eAAK,KAAK,EAAC,sBAAsB,aAC/B,eAAK,KAAK,EAAC,MAAM,aACf,aAAI,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAM,EAClC,YAAG,KAAK,EAAC,qBAAqB,oFAAwE,IAClG,EAEN,eAAK,KAAK,EAAC,MAAM,aACf,gBAAO,KAAK,EAAC,wBAAwB,oBAAY,EACjD,kBAAQ,KAAK,EAAC,aAAa,EAAC,IAAI,EAAC,OAAO,YAC9B,UAAU,eACR,sBAAsB,aACxB,WAAW,gBACR,QAAQ,gBACR,MAAM,aACjB,iBAAQ,KAAK,EAAC,EAAE,iCAA0B,EACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACtB,kBAAQ,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,aAAa,aAC3D,GAAG,CAAC,KAAK,QAAI,GAAG,CAAC,QAAQ,SACnB,CACV,CAAC,IACK,IACL,EAEN,cAAK,EAAE,EAAC,qBAAqB,KACvB,CAAC,IAAI,CAAC,aAAa;oBACrB,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE;oBACxE,CAAC,CAAC,EAAE,CAAC,YACN,IAAI,CAAC,aAAa;oBACjB,CAAC,CAAC,cAAK,KAAK,EAAC,gBAAgB,kCAAwB;oBACrD,CAAC,CAAC,cAAK,KAAK,EAAC,uBAAuB,sDAA4C,GAC9E,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
-
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
-
title: av.StringSchema;
|
|
6
|
-
apps: av.ArraySchema<av.ObjectSchema<{
|
|
7
|
-
id: av.StringSchema;
|
|
8
|
-
title: av.StringSchema;
|
|
9
|
-
tenantId: av.StringSchema;
|
|
10
|
-
}>>;
|
|
11
|
-
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
12
|
-
adminApiBase: av.StringSchema;
|
|
13
|
-
serviceBaseUrl: av.StringSchema;
|
|
14
|
-
}>;
|
|
15
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
16
|
-
export declare const title = "Fragments";
|
|
17
|
-
export declare const description = "Manage topbar/footer fragments per app.";
|
|
18
|
-
export declare const auth: ApiAuthRequirement;
|
|
19
|
-
export declare const cacheHints: CacheHints;
|
|
20
|
-
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
21
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
22
|
-
title: string;
|
|
23
|
-
apps: {
|
|
24
|
-
id: string;
|
|
25
|
-
title: string;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
}[];
|
|
28
|
-
adminApiBase: string;
|
|
29
|
-
serviceBaseUrl: string;
|
|
30
|
-
selectedAppId?: string | undefined;
|
|
31
|
-
}, unknown, Record<string, unknown>>;
|
|
1
|
+
export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
|
|
32
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createHandler } from "@betterportal/framework";
|
|
3
|
-
const AppSummarySchema = av.object({
|
|
4
|
-
id: av.string().minLength(1),
|
|
5
|
-
title: av.string().minLength(1),
|
|
6
|
-
tenantId: av.string().minLength(1)
|
|
7
|
-
}, { unknownKeys: "strip" });
|
|
8
|
-
export const ResponseSchema = av.object({
|
|
9
|
-
title: av.string().minLength(1),
|
|
10
|
-
apps: av.array(AppSummarySchema),
|
|
11
|
-
selectedAppId: av.optional(av.string()),
|
|
12
|
-
adminApiBase: av.string().minLength(1),
|
|
13
|
-
serviceBaseUrl: av.string().minLength(1)
|
|
14
|
-
}, { unknownKeys: "strip" });
|
|
15
|
-
export const title = "Fragments";
|
|
16
|
-
export const description = "Manage topbar/footer fragments per app.";
|
|
17
|
-
export const auth = {
|
|
18
|
-
required: true,
|
|
19
|
-
permissions: [
|
|
20
|
-
{ serviceId: "service.betterportal.config-manager", viewId: "fragments.index", permissions: ["read", "create", "update", "delete"] }
|
|
21
|
-
]
|
|
22
|
-
};
|
|
23
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
24
|
-
export const demoScenarios = [
|
|
25
|
-
{ id: "default", title: "Default", response: { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
|
|
26
|
-
];
|
|
27
|
-
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
28
|
-
if (ctx.responseModel)
|
|
29
|
-
return ctx.responseModel;
|
|
30
|
-
return { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
|
|
31
|
-
});
|
|
1
|
+
export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
|
|
32
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import type { Infer } from "anyvali";
|
|
3
|
+
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
+
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
+
title: av.StringSchema;
|
|
6
|
+
apps: av.ArraySchema<av.ObjectSchema<{
|
|
7
|
+
id: av.StringSchema;
|
|
8
|
+
title: av.StringSchema;
|
|
9
|
+
tenantId: av.StringSchema;
|
|
10
|
+
}>>;
|
|
11
|
+
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
12
|
+
adminApiBase: av.StringSchema;
|
|
13
|
+
serviceBaseUrl: av.StringSchema;
|
|
14
|
+
}>;
|
|
15
|
+
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
16
|
+
export declare const title = "Fragments";
|
|
17
|
+
export declare const description = "Manage topbar/footer fragments per app.";
|
|
18
|
+
export declare const auth: ApiAuthRequirement;
|
|
19
|
+
export declare const cacheHints: CacheHints;
|
|
20
|
+
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
21
|
+
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
22
|
+
title: string;
|
|
23
|
+
apps: {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
}[];
|
|
28
|
+
adminApiBase: string;
|
|
29
|
+
serviceBaseUrl: string;
|
|
30
|
+
selectedAppId?: string | undefined;
|
|
31
|
+
}, unknown, Record<string, unknown>>;
|
|
32
|
+
//# sourceMappingURL=route.impl.d.ts.map
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/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,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAQjC,eAAO,MAAM,cAAc;;;;;;;;;;EAMC,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,cAAc,CAAC;AACjC,eAAO,MAAM,WAAW,4CAA4C,CAAC;AAErE,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAA4D,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAErD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;oCAMrB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import { createHandler } from "@betterportal/framework";
|
|
3
|
+
const AppSummarySchema = av.object({
|
|
4
|
+
id: av.string().minLength(1),
|
|
5
|
+
title: av.string().minLength(1),
|
|
6
|
+
tenantId: av.string().minLength(1)
|
|
7
|
+
}, { unknownKeys: "strip" });
|
|
8
|
+
export const ResponseSchema = av.object({
|
|
9
|
+
title: av.string().minLength(1),
|
|
10
|
+
apps: av.array(AppSummarySchema),
|
|
11
|
+
selectedAppId: av.optional(av.string()),
|
|
12
|
+
adminApiBase: av.string().minLength(1),
|
|
13
|
+
serviceBaseUrl: av.string().minLength(1)
|
|
14
|
+
}, { unknownKeys: "strip" });
|
|
15
|
+
export const title = "Fragments";
|
|
16
|
+
export const description = "Manage topbar/footer fragments per app.";
|
|
17
|
+
export const auth = {
|
|
18
|
+
required: true,
|
|
19
|
+
permissions: [
|
|
20
|
+
{ serviceId: "service.betterportal.config-manager", viewId: "fragments.index", permissions: ["read", "create", "update", "delete"] }
|
|
21
|
+
]
|
|
22
|
+
};
|
|
23
|
+
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
24
|
+
export const demoScenarios = [
|
|
25
|
+
{ id: "default", title: "Default", response: { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
|
|
26
|
+
];
|
|
27
|
+
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
28
|
+
if (ctx.responseModel)
|
|
29
|
+
return ctx.responseModel;
|
|
30
|
+
return { title: "Fragments", apps: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=route.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/fragments/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACnC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChC,aAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACvC,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACzC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAG7B,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,MAAM,WAAW,GAAG,yCAAyC,CAAC;AAErE,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,EAAE,SAAS,EAAE,qCAAqC,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,EAAE;KAClI;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAe,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;AAEtF,MAAM,CAAC,MAAM,aAAa,GAAiC;IACzD,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;CAC3I,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CACpC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,IAAI,GAAG,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC,aAA6B,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AACrG,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
2
|
-
import type { ResponseData } from "../
|
|
2
|
+
import type { ResponseData } from "../route.impl.js";
|
|
3
3
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgKrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAwCzD"}
|
|
@@ -167,4 +167,4 @@ export function render(data) {
|
|
|
167
167
|
? _jsx("div", { class: "text-secondary", children: "Loading editor..." })
|
|
168
168
|
: _jsx("div", { class: "alert alert-secondary", children: "Select an app to design its menu" }) }), _jsx("script", { children: dragScript() })] }));
|
|
169
169
|
}
|
|
170
|
-
//# sourceMappingURL=
|
|
170
|
+
//# sourceMappingURL=GET.js.map
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,UAAU;IACjB,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0JR,CAAC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,MAAM,UAAU,GAAG,mCAAmC,CAAC;IACvD,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,UAAU,UAAU,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7G,OAAO,CACL,eAAK,KAAK,EAAC,sBAAsB,aAC/B,eAAK,KAAK,EAAC,MAAM,aACf,aAAI,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAM,EAClC,YAAG,KAAK,EAAC,qBAAqB,2HAA+G,IACzI,EAEN,eAAK,KAAK,EAAC,MAAM,aACf,gBAAO,KAAK,EAAC,wBAAwB,oBAAY,EACjD,kBAAQ,KAAK,EAAC,aAAa,EAAC,IAAI,EAAC,OAAO,YAC9B,UAAU,eACR,iBAAiB,aACnB,WAAW,gBACR,QAAQ,gBACR,MAAM,aACjB,iBAAQ,KAAK,EAAC,EAAE,iCAA0B,EACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACtB,kBAAQ,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,aAAa,aAC3D,GAAG,CAAC,KAAK,QAAI,GAAG,CAAC,QAAQ,SACnB,CACV,CAAC,IACK,IACL,EAEN,cAAK,EAAE,EAAC,gBAAgB,KAClB,CAAC,IAAI,CAAC,aAAa;oBACrB,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE;oBACxE,CAAC,CAAC,EAAE,CAAC,YACN,IAAI,CAAC,aAAa;oBACjB,CAAC,CAAC,cAAK,KAAK,EAAC,gBAAgB,kCAAwB;oBACrD,CAAC,CAAC,cAAK,KAAK,EAAC,uBAAuB,iDAAuC,GACzE,EAEN,2BAAS,UAAU,EAAE,GAAU,IAC3B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
-
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
-
title: av.StringSchema;
|
|
6
|
-
apps: av.ArraySchema<av.ObjectSchema<{
|
|
7
|
-
id: av.StringSchema;
|
|
8
|
-
title: av.StringSchema;
|
|
9
|
-
tenantId: av.StringSchema;
|
|
10
|
-
}>>;
|
|
11
|
-
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
12
|
-
menu: av.ArraySchema<av.ObjectSchema<{
|
|
13
|
-
id: av.StringSchema;
|
|
14
|
-
type: av.StringSchema;
|
|
15
|
-
title: av.OptionalSchema<av.StringSchema>;
|
|
16
|
-
routeId: av.OptionalSchema<av.StringSchema>;
|
|
17
|
-
href: av.OptionalSchema<av.StringSchema>;
|
|
18
|
-
enabled: av.BoolSchema;
|
|
19
|
-
defaultExpanded: av.OptionalSchema<av.BoolSchema>;
|
|
20
|
-
}>>;
|
|
21
|
-
routes: av.ArraySchema<av.ObjectSchema<{
|
|
22
|
-
id: av.StringSchema;
|
|
23
|
-
path: av.StringSchema;
|
|
24
|
-
title: av.StringSchema;
|
|
25
|
-
}>>;
|
|
26
|
-
adminApiBase: av.StringSchema;
|
|
27
|
-
serviceBaseUrl: av.StringSchema;
|
|
28
|
-
}>;
|
|
29
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
30
|
-
export declare const title = "Menu Designer";
|
|
31
|
-
export declare const description = "Design app navigation menu.";
|
|
32
|
-
export declare const auth: ApiAuthRequirement;
|
|
33
|
-
export declare const cacheHints: CacheHints;
|
|
34
|
-
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
35
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
36
|
-
title: string;
|
|
37
|
-
apps: {
|
|
38
|
-
id: string;
|
|
39
|
-
title: string;
|
|
40
|
-
tenantId: string;
|
|
41
|
-
}[];
|
|
42
|
-
menu: {
|
|
43
|
-
id: string;
|
|
44
|
-
type: string;
|
|
45
|
-
enabled: boolean;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
routeId?: string | undefined;
|
|
48
|
-
href?: string | undefined;
|
|
49
|
-
defaultExpanded?: boolean | undefined;
|
|
50
|
-
}[];
|
|
51
|
-
routes: {
|
|
52
|
-
id: string;
|
|
53
|
-
path: string;
|
|
54
|
-
title: string;
|
|
55
|
-
}[];
|
|
56
|
-
adminApiBase: string;
|
|
57
|
-
serviceBaseUrl: string;
|
|
58
|
-
selectedAppId?: string | undefined;
|
|
59
|
-
}, unknown, Record<string, unknown>>;
|
|
1
|
+
export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
|
|
60
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createHandler } from "@betterportal/framework";
|
|
3
|
-
const RouteOptionSchema = av.object({
|
|
4
|
-
id: av.string().minLength(1),
|
|
5
|
-
path: av.string().minLength(1),
|
|
6
|
-
title: av.string()
|
|
7
|
-
}, { unknownKeys: "strip" });
|
|
8
|
-
const MenuItemSchema = av.object({
|
|
9
|
-
id: av.string().minLength(1),
|
|
10
|
-
type: av.string().minLength(1),
|
|
11
|
-
title: av.optional(av.string()),
|
|
12
|
-
routeId: av.optional(av.string()),
|
|
13
|
-
href: av.optional(av.string()),
|
|
14
|
-
enabled: av.bool(),
|
|
15
|
-
defaultExpanded: av.optional(av.bool())
|
|
16
|
-
}, { unknownKeys: "strip" });
|
|
17
|
-
const AppSummarySchema = av.object({
|
|
18
|
-
id: av.string().minLength(1),
|
|
19
|
-
title: av.string().minLength(1),
|
|
20
|
-
tenantId: av.string().minLength(1)
|
|
21
|
-
}, { unknownKeys: "strip" });
|
|
22
|
-
export const ResponseSchema = av.object({
|
|
23
|
-
title: av.string().minLength(1),
|
|
24
|
-
apps: av.array(AppSummarySchema),
|
|
25
|
-
selectedAppId: av.optional(av.string()),
|
|
26
|
-
menu: av.array(MenuItemSchema).default([]),
|
|
27
|
-
routes: av.array(RouteOptionSchema).default([]),
|
|
28
|
-
adminApiBase: av.string().minLength(1),
|
|
29
|
-
serviceBaseUrl: av.string().minLength(1)
|
|
30
|
-
}, { unknownKeys: "strip" });
|
|
31
|
-
export const title = "Menu Designer";
|
|
32
|
-
export const description = "Design app navigation menu.";
|
|
33
|
-
export const auth = {
|
|
34
|
-
required: true,
|
|
35
|
-
permissions: [
|
|
36
|
-
{ serviceId: "service.betterportal.config-manager", viewId: "menu.index", permissions: ["read", "create", "update", "delete"] }
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
40
|
-
export const demoScenarios = [
|
|
41
|
-
{ id: "default", title: "Default", response: { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
|
|
42
|
-
];
|
|
43
|
-
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
44
|
-
if (ctx.responseModel)
|
|
45
|
-
return ctx.responseModel;
|
|
46
|
-
return { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
|
|
47
|
-
});
|
|
1
|
+
export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
|
|
48
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import type { Infer } from "anyvali";
|
|
3
|
+
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
+
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
+
title: av.StringSchema;
|
|
6
|
+
apps: av.ArraySchema<av.ObjectSchema<{
|
|
7
|
+
id: av.StringSchema;
|
|
8
|
+
title: av.StringSchema;
|
|
9
|
+
tenantId: av.StringSchema;
|
|
10
|
+
}>>;
|
|
11
|
+
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
12
|
+
menu: av.ArraySchema<av.ObjectSchema<{
|
|
13
|
+
id: av.StringSchema;
|
|
14
|
+
type: av.StringSchema;
|
|
15
|
+
title: av.OptionalSchema<av.StringSchema>;
|
|
16
|
+
routeId: av.OptionalSchema<av.StringSchema>;
|
|
17
|
+
href: av.OptionalSchema<av.StringSchema>;
|
|
18
|
+
enabled: av.BoolSchema;
|
|
19
|
+
defaultExpanded: av.OptionalSchema<av.BoolSchema>;
|
|
20
|
+
}>>;
|
|
21
|
+
routes: av.ArraySchema<av.ObjectSchema<{
|
|
22
|
+
id: av.StringSchema;
|
|
23
|
+
path: av.StringSchema;
|
|
24
|
+
title: av.StringSchema;
|
|
25
|
+
}>>;
|
|
26
|
+
adminApiBase: av.StringSchema;
|
|
27
|
+
serviceBaseUrl: av.StringSchema;
|
|
28
|
+
}>;
|
|
29
|
+
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
30
|
+
export declare const title = "Menu Designer";
|
|
31
|
+
export declare const description = "Design app navigation menu.";
|
|
32
|
+
export declare const auth: ApiAuthRequirement;
|
|
33
|
+
export declare const cacheHints: CacheHints;
|
|
34
|
+
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
35
|
+
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
36
|
+
title: string;
|
|
37
|
+
apps: {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
tenantId: string;
|
|
41
|
+
}[];
|
|
42
|
+
menu: {
|
|
43
|
+
id: string;
|
|
44
|
+
type: string;
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
routeId?: string | undefined;
|
|
48
|
+
href?: string | undefined;
|
|
49
|
+
defaultExpanded?: boolean | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
routes: {
|
|
52
|
+
id: string;
|
|
53
|
+
path: string;
|
|
54
|
+
title: string;
|
|
55
|
+
}[];
|
|
56
|
+
adminApiBase: string;
|
|
57
|
+
serviceBaseUrl: string;
|
|
58
|
+
selectedAppId?: string | undefined;
|
|
59
|
+
}, unknown, Record<string, unknown>>;
|
|
60
|
+
//# sourceMappingURL=route.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/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,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAwBjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAQC,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,kBAAkB,CAAC;AACrC,eAAO,MAAM,WAAW,gCAAgC,CAAC;AAEzD,eAAO,MAAM,IAAI,EAAE,kBAKlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAA4D,CAAC;AAEtF,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,EAErD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;oCAMrB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as av from "anyvali";
|
|
2
|
+
import { createHandler } from "@betterportal/framework";
|
|
3
|
+
const RouteOptionSchema = av.object({
|
|
4
|
+
id: av.string().minLength(1),
|
|
5
|
+
path: av.string().minLength(1),
|
|
6
|
+
title: av.string()
|
|
7
|
+
}, { unknownKeys: "strip" });
|
|
8
|
+
const MenuItemSchema = av.object({
|
|
9
|
+
id: av.string().minLength(1),
|
|
10
|
+
type: av.string().minLength(1),
|
|
11
|
+
title: av.optional(av.string()),
|
|
12
|
+
routeId: av.optional(av.string()),
|
|
13
|
+
href: av.optional(av.string()),
|
|
14
|
+
enabled: av.bool(),
|
|
15
|
+
defaultExpanded: av.optional(av.bool())
|
|
16
|
+
}, { unknownKeys: "strip" });
|
|
17
|
+
const AppSummarySchema = av.object({
|
|
18
|
+
id: av.string().minLength(1),
|
|
19
|
+
title: av.string().minLength(1),
|
|
20
|
+
tenantId: av.string().minLength(1)
|
|
21
|
+
}, { unknownKeys: "strip" });
|
|
22
|
+
export const ResponseSchema = av.object({
|
|
23
|
+
title: av.string().minLength(1),
|
|
24
|
+
apps: av.array(AppSummarySchema),
|
|
25
|
+
selectedAppId: av.optional(av.string()),
|
|
26
|
+
menu: av.array(MenuItemSchema).default([]),
|
|
27
|
+
routes: av.array(RouteOptionSchema).default([]),
|
|
28
|
+
adminApiBase: av.string().minLength(1),
|
|
29
|
+
serviceBaseUrl: av.string().minLength(1)
|
|
30
|
+
}, { unknownKeys: "strip" });
|
|
31
|
+
export const title = "Menu Designer";
|
|
32
|
+
export const description = "Design app navigation menu.";
|
|
33
|
+
export const auth = {
|
|
34
|
+
required: true,
|
|
35
|
+
permissions: [
|
|
36
|
+
{ serviceId: "service.betterportal.config-manager", viewId: "menu.index", permissions: ["read", "create", "update", "delete"] }
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
export const cacheHints = { ttlSeconds: 0, varyBy: ["accept", "origin"] };
|
|
40
|
+
export const demoScenarios = [
|
|
41
|
+
{ id: "default", title: "Default", response: { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" } }
|
|
42
|
+
];
|
|
43
|
+
export const handleGet = createHandler({ response: ResponseSchema }, (ctx) => {
|
|
44
|
+
if (ctx.responseModel)
|
|
45
|
+
return ctx.responseModel;
|
|
46
|
+
return { title: "Menu Designer", apps: [], menu: [], routes: [], adminApiBase: "/.well-known/bp/admin", serviceBaseUrl: "" };
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=route.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/menu/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,iBAAiB,GAAG,EAAE,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE;CACnB,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACjC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC9B,OAAO,EAAE,EAAE,CAAC,IAAI,EAAE;IAClB,eAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACnC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAChC,aAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACvC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/C,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;CACzC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;AAG7B,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,6BAA6B,CAAC;AAEzD,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,EAAE,SAAS,EAAE,qCAAqC,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,EAAE;KAC7H;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAe,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;AAEtF,MAAM,CAAC,MAAM,aAAa,GAAiC;IACzD,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;CACrK,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CACpC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,CAAC,GAAG,EAAE,EAAE;IACN,IAAI,GAAG,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC,aAA6B,CAAC;IAChE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC/H,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
2
|
-
import type { ResponseData } from "../
|
|
2
|
+
import type { ResponseData } from "../route.impl.js";
|
|
3
3
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAwBrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAmEzD"}
|
|
@@ -25,4 +25,4 @@ function previewScript() {
|
|
|
25
25
|
export function render(data) {
|
|
26
26
|
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsx("h2", { class: "mb-4", children: data.title }), data.services.length === 0 ? (_jsx("div", { class: "alert alert-secondary", children: "No services with views discovered" })) : (_jsxs("div", { class: "row", children: [_jsx("div", { class: "col-lg-4", children: _jsx("div", { class: "card border-0 shadow-sm mb-3", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "mb-3", children: "Views" }), data.services.map((service) => (_jsxs("div", { class: "mb-3", children: [_jsx("div", { class: "fw-semibold text-secondary small text-uppercase mb-1", children: service.serviceId }), service.views.map((view) => (_jsxs("div", { class: "mb-2", children: [_jsx("div", { class: "fw-semibold", children: view.title || view.viewId }), _jsx("div", { class: "small text-secondary mb-1", children: view.path }), _jsxs("div", { class: "d-flex flex-wrap gap-1 mb-1", children: [_jsx("button", { class: "btn btn-sm btn-outline-primary", "data-bp-preview-btn": "", "data-bp-preview-url": `${service.endpointBaseUrl}${view.path}`, "data-bp-preview-mode": "page", children: "Page" }), view.components.map((comp) => (_jsx("button", { class: "btn btn-sm btn-outline-secondary", "data-bp-preview-btn": "", "data-bp-preview-url": `${service.endpointBaseUrl}${view.path}?_c=${comp}`, "data-bp-preview-mode": "fragment", children: comp }))), view.hasFragments ? (_jsx("span", { class: "badge text-bg-info", children: "has fragments" })) : ""] }), view.demoScenarios.length > 0 ? (_jsxs("div", { class: "small text-secondary", children: ["Demos: ", view.demoScenarios.map((d) => d.title).join(", ")] })) : ""] })))] })))] }) }) }), _jsx("div", { class: "col-lg-8", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "mb-3", children: "Preview" }), _jsx("div", { id: "bp-preview-frame", class: "border rounded p-3 bg-body-tertiary", style: "min-height:300px", children: _jsx("div", { class: "text-secondary text-center py-5", children: "Select a view or component to preview" }) })] }) }) })] })), _jsx("script", { children: previewScript() })] }));
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,aAAa;IACpB,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;OAkBL,CAAC,CAAC;AACT,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,OAAO,CACL,eAAK,KAAK,EAAC,sBAAsB,aAC/B,aAAI,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,KAAK,GAAM,EAEjC,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC5B,cAAK,KAAK,EAAC,uBAAuB,kDAAwC,CAC3E,CAAC,CAAC,CAAC,CACF,eAAK,KAAK,EAAC,KAAK,aACd,cAAK,KAAK,EAAC,UAAU,YACnB,cAAK,KAAK,EAAC,8BAA8B,YACvC,eAAK,KAAK,EAAC,WAAW,aACpB,aAAI,KAAK,EAAC,MAAM,sBAAW,EAC1B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAC9B,eAAK,KAAK,EAAC,MAAM,aACf,cAAK,KAAK,EAAC,sDAAsD,YAAE,OAAO,CAAC,SAAS,GAAO,EAC1F,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC3B,eAAK,KAAK,EAAC,MAAM,aACf,cAAK,KAAK,EAAC,aAAa,YAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,GAAO,EAC1D,cAAK,KAAK,EAAC,2BAA2B,YAAE,IAAI,CAAC,IAAI,GAAO,EACxD,eAAK,KAAK,EAAC,6BAA6B,aACtC,iBACE,KAAK,EAAC,gCAAgC,yBAClB,EAAE,yBACD,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,IAAI,EAAE,0BACxC,MAAM,qBACf,EACb,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC7B,iBACE,KAAK,EAAC,kCAAkC,yBACpB,EAAE,yBACD,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,IAAI,OAAO,IAAI,EAAE,0BACnD,UAAU,YAC/B,IAAI,GAAU,CACjB,CAAC,EACD,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CACnB,eAAM,KAAK,EAAC,oBAAoB,8BAAqB,CACtD,CAAC,CAAC,CAAC,EAAE,IACF,EACL,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/B,eAAK,KAAK,EAAC,sBAAsB,wBACvB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IACrD,CACP,CAAC,CAAC,CAAC,EAAE,IACF,CACP,CAAC,IACE,CACP,CAAC,IACE,GACF,GACF,EACN,cAAK,KAAK,EAAC,UAAU,YACnB,cAAK,KAAK,EAAC,yBAAyB,YAClC,eAAK,KAAK,EAAC,WAAW,aACpB,aAAI,KAAK,EAAC,MAAM,wBAAa,EAC7B,cAAK,EAAE,EAAC,kBAAkB,EAAC,KAAK,EAAC,qCAAqC,EAAC,KAAK,EAAC,kBAAkB,YAC7F,cAAK,KAAK,EAAC,iCAAiC,sDAA4C,GACpF,IACF,GACF,GACF,IACF,CACP,EAED,2BAAS,aAAa,EAAE,GAAU,IAC9B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type DemoScenario, type ApiAuthRequirement, type CacheHints } from "@betterportal/framework";
|
|
4
|
-
export declare const ResponseSchema: av.ObjectSchema<{
|
|
5
|
-
title: av.StringSchema;
|
|
6
|
-
services: av.ArraySchema<av.ObjectSchema<{
|
|
7
|
-
serviceId: av.StringSchema;
|
|
8
|
-
endpointBaseUrl: av.StringSchema;
|
|
9
|
-
views: av.ArraySchema<av.ObjectSchema<{
|
|
10
|
-
viewId: av.StringSchema;
|
|
11
|
-
title: av.StringSchema;
|
|
12
|
-
path: av.StringSchema;
|
|
13
|
-
themes: av.ArraySchema<av.StringSchema>;
|
|
14
|
-
components: av.ArraySchema<av.StringSchema>;
|
|
15
|
-
hasFragments: av.BoolSchema;
|
|
16
|
-
demoScenarios: av.ArraySchema<av.ObjectSchema<{
|
|
17
|
-
id: av.StringSchema;
|
|
18
|
-
title: av.StringSchema;
|
|
19
|
-
}>>;
|
|
20
|
-
}>>;
|
|
21
|
-
}>>;
|
|
22
|
-
}>;
|
|
23
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
24
|
-
export declare const title = "Component Preview";
|
|
25
|
-
export declare const description = "Browse and preview service views, components, and fragments.";
|
|
26
|
-
export declare const auth: ApiAuthRequirement;
|
|
27
|
-
export declare const cacheHints: CacheHints;
|
|
28
|
-
export declare const demoScenarios: DemoScenario<ResponseData>[];
|
|
29
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, Record<string, unknown>, Record<string, string>, Record<string, unknown>, {
|
|
30
|
-
title: string;
|
|
31
|
-
services: {
|
|
32
|
-
serviceId: string;
|
|
33
|
-
endpointBaseUrl: string;
|
|
34
|
-
views: {
|
|
35
|
-
viewId: string;
|
|
36
|
-
title: string;
|
|
37
|
-
path: string;
|
|
38
|
-
themes: string[];
|
|
39
|
-
components: string[];
|
|
40
|
-
hasFragments: boolean;
|
|
41
|
-
demoScenarios: {
|
|
42
|
-
id: string;
|
|
43
|
-
title: string;
|
|
44
|
-
}[];
|
|
45
|
-
}[];
|
|
46
|
-
}[];
|
|
47
|
-
}, unknown, Record<string, unknown>>;
|
|
1
|
+
export { title, description, auth, cacheHints, demoScenarios } from "./route.impl.js";
|
|
48
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/preview/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|