@betterportal/config-manager 10.0.31 → 10.1.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/adminApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/adminApi.js +117 -31
- package/lib/plugins/service-betterportal-config-manager/adminApi.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.js +15 -13
- package/lib/plugins/service-betterportal-config-manager/bootstrapEndpoint.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js +121 -6
- package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js +36 -2
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts +6 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js +3 -0
- package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.js +114 -31
- package/lib/plugins/service-betterportal-config-manager/bp-routes/services/_theme.bootstrap1/GET.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js +9 -4
- package/lib/plugins/service-betterportal-config-manager/bp-routes/tenants/route.impl.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.d.ts +4 -0
- package/lib/plugins/service-betterportal-config-manager/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/index.js +45 -9
- package/lib/plugins/service-betterportal-config-manager/index.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/menuEditor.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js +7 -1
- package/lib/plugins/service-betterportal-config-manager/menuEditor.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/routeMounts.d.ts +8 -0
- package/lib/plugins/service-betterportal-config-manager/routeMounts.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/routeMounts.js +22 -0
- package/lib/plugins/service-betterportal-config-manager/routeMounts.js.map +1 -0
- package/lib/plugins/service-betterportal-config-manager/setupTokens.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/setupTokens.js +50 -0
- package/lib/plugins/service-betterportal-config-manager/setupTokens.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/storage/core.d.ts +2 -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 +67 -2
- package/lib/plugins/service-betterportal-config-manager/storage/core.js.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts +2 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-config-manager/syncApi.js +56 -1
- 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/GET.js
CHANGED
|
@@ -5,9 +5,106 @@ function permsScript(apiBase, serviceUrl, selectedAppId) {
|
|
|
5
5
|
return js(`(() => {
|
|
6
6
|
const apiBase = ${JSON.stringify(apiBase)};
|
|
7
7
|
const appId = ${JSON.stringify(selectedAppId ?? "")};
|
|
8
|
+
const PERMISSION_FLAGS = {
|
|
9
|
+
read: 1,
|
|
10
|
+
create: 2,
|
|
11
|
+
update: 4,
|
|
12
|
+
delete: 8
|
|
13
|
+
};
|
|
14
|
+
const ACTIONS = ["read", "create", "update", "delete"];
|
|
15
|
+
|
|
16
|
+
const permissionsToMask = (permission) => (
|
|
17
|
+
(permission?.read ? PERMISSION_FLAGS.read : 0) |
|
|
18
|
+
(permission?.create ? PERMISSION_FLAGS.create : 0) |
|
|
19
|
+
(permission?.update ? PERMISSION_FLAGS.update : 0) |
|
|
20
|
+
(permission?.delete ? PERMISSION_FLAGS.delete : 0)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const maskToPermissions = (mask) => ({
|
|
24
|
+
read: Boolean(mask & PERMISSION_FLAGS.read),
|
|
25
|
+
create: Boolean(mask & PERMISSION_FLAGS.create),
|
|
26
|
+
update: Boolean(mask & PERMISSION_FLAGS.update),
|
|
27
|
+
delete: Boolean(mask & PERMISSION_FLAGS.delete)
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const grantToPermission = (grant) => {
|
|
31
|
+
const permission = { read: false, create: false, update: false, delete: false };
|
|
32
|
+
for (const action of grant?.permissions ?? []) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(permission, action)) permission[action] = true;
|
|
34
|
+
}
|
|
35
|
+
return permission;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const syncGrantInputs = (select) => {
|
|
39
|
+
const serviceId = select.dataset.bpServiceId;
|
|
40
|
+
const viewId = select.dataset.bpViewId;
|
|
41
|
+
const holder = select.closest("[data-bp-permission-row]")?.querySelector("[data-bp-grant-inputs]");
|
|
42
|
+
if (!serviceId || !viewId || !holder) return;
|
|
43
|
+
holder.replaceChildren();
|
|
44
|
+
const permission = maskToPermissions(Number(select.value || "0"));
|
|
45
|
+
for (const action of ACTIONS) {
|
|
46
|
+
if (!permission[action]) continue;
|
|
47
|
+
const input = document.createElement("input");
|
|
48
|
+
input.type = "hidden";
|
|
49
|
+
input.name = "grant";
|
|
50
|
+
input.value = serviceId + "|" + viewId + "|" + action;
|
|
51
|
+
holder.appendChild(input);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const setRowMask = (select, mask) => {
|
|
56
|
+
select.value = String(mask);
|
|
57
|
+
syncGrantInputs(select);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const rowSelects = (root = document) => Array.from(root.querySelectorAll("[data-bp-permission-select]"));
|
|
61
|
+
|
|
62
|
+
const applyServiceMask = (serviceId, mask) => {
|
|
63
|
+
rowSelects().forEach((select) => {
|
|
64
|
+
if (select.dataset.bpServiceId === serviceId) setRowMask(select, mask);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const applyGlobalMask = (mask) => {
|
|
69
|
+
const serviceIds = new Set(rowSelects().map((select) => select.dataset.bpServiceId).filter(Boolean));
|
|
70
|
+
serviceIds.forEach((serviceId) => applyServiceMask(serviceId, mask));
|
|
71
|
+
};
|
|
8
72
|
|
|
9
73
|
if (!appId) return;
|
|
10
74
|
|
|
75
|
+
rowSelects().forEach((select) => {
|
|
76
|
+
if (select.dataset.bpPermissionReady) return;
|
|
77
|
+
select.dataset.bpPermissionReady = "true";
|
|
78
|
+
select.addEventListener("change", () => syncGrantInputs(select));
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
document.querySelectorAll("[data-bp-service-permission-bulk]").forEach((select) => {
|
|
82
|
+
if (select.dataset.bpPermissionReady) return;
|
|
83
|
+
select.dataset.bpPermissionReady = "true";
|
|
84
|
+
select.addEventListener("change", () => {
|
|
85
|
+
if (select.value === "") return;
|
|
86
|
+
const mask = Number(select.value);
|
|
87
|
+
const serviceId = select.dataset.bpServiceId;
|
|
88
|
+
if (!Number.isFinite(mask) || !serviceId) {
|
|
89
|
+
select.value = "";
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
applyServiceMask(serviceId, mask);
|
|
93
|
+
select.value = "";
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
document.querySelectorAll("[data-bp-global-permission-bulk]").forEach((select) => {
|
|
98
|
+
if (select.dataset.bpPermissionReady) return;
|
|
99
|
+
select.dataset.bpPermissionReady = "true";
|
|
100
|
+
select.addEventListener("change", () => {
|
|
101
|
+
if (select.value === "") return;
|
|
102
|
+
const mask = Number(select.value);
|
|
103
|
+
if (Number.isFinite(mask)) applyGlobalMask(mask);
|
|
104
|
+
select.value = "";
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
11
108
|
document.querySelectorAll("[data-bp-edit-role]").forEach((btn) => {
|
|
12
109
|
btn.addEventListener("click", () => {
|
|
13
110
|
const role = JSON.parse(btn.dataset.bpEditRole);
|
|
@@ -17,22 +114,40 @@ function permsScript(apiBase, serviceUrl, selectedAppId) {
|
|
|
17
114
|
form.querySelector("[name=roleId]").value = role.id;
|
|
18
115
|
form.querySelector("[name=title]").value = role.title;
|
|
19
116
|
form.querySelector("[name=description]").value = role.description || "";
|
|
20
|
-
form.querySelectorAll("[data-bp-
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
117
|
+
form.querySelectorAll("[data-bp-permission-select]").forEach((select) => {
|
|
118
|
+
const sid = select.dataset.bpServiceId;
|
|
119
|
+
const vid = select.dataset.bpViewId;
|
|
120
|
+
const grant = (role.permissions ?? []).find((p) => p.serviceId === sid && p.viewId === vid);
|
|
121
|
+
setRowMask(select, permissionsToMask(grantToPermission(grant)));
|
|
24
122
|
});
|
|
25
123
|
if (window.htmx) window.htmx.process(form);
|
|
26
124
|
});
|
|
27
125
|
});
|
|
28
126
|
})()`);
|
|
29
127
|
}
|
|
30
|
-
const
|
|
128
|
+
const PERMISSION_OPTIONS = [
|
|
129
|
+
[0, "No access"],
|
|
130
|
+
[1, "Read"],
|
|
131
|
+
[2, "Create"],
|
|
132
|
+
[4, "Update"],
|
|
133
|
+
[8, "Delete"],
|
|
134
|
+
[3, "Read + Create"],
|
|
135
|
+
[5, "Read + Update"],
|
|
136
|
+
[9, "Read + Delete"],
|
|
137
|
+
[6, "Create + Update"],
|
|
138
|
+
[10, "Create + Delete"],
|
|
139
|
+
[12, "Update + Delete"],
|
|
140
|
+
[7, "Read + Create + Update"],
|
|
141
|
+
[11, "Read + Create + Delete"],
|
|
142
|
+
[13, "Read + Update + Delete"],
|
|
143
|
+
[14, "Create + Update + Delete"],
|
|
144
|
+
[15, "Read + Create + Update + Delete"]
|
|
145
|
+
];
|
|
31
146
|
export function render(data) {
|
|
32
147
|
const serviceUrl = data.serviceBaseUrl ?? "";
|
|
33
148
|
const apiBase = serviceUrl + data.adminApiBase;
|
|
34
149
|
const authPath = `${serviceUrl}/auth`;
|
|
35
150
|
const selectedApp = data.apps.find((a) => a.id === data.selectedAppId);
|
|
36
|
-
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsxs("div", { children: [_jsx("h2", { class: "mb-1", children: data.title }), _jsx("p", { class: "text-secondary mb-0", children: "Define roles + permission grants per app. Services advertise per-view requirements via manifest." })] }), selectedApp && data.authConfigured ? (_jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-role-panel", children: "+ Add Role" })) : null] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label", children: "App" }), _jsxs("select", { class: "form-select", id: "bp-app-select", name: "appId", "hx-get": authPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Select app..." }), data.apps.map((a) => (_jsx("option", { value: a.id, selected: a.id === data.selectedAppId ? true : undefined, children: a.title })))] })] }), !selectedApp ? (_jsxs("div", { class: "alert alert-secondary", children: ["Select an app to manage its roles. No apps? Create one in ", _jsx("strong", { children: "Tenants & Apps" }), "."] })) : !data.authConfigured ? (_jsx("div", { class: "alert alert-warning", children: "Configure an auth provider for this app before creating roles." })) : (_jsxs("div", { class: "row g-4", children: [_jsx("div", { class: "col-lg-7", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsxs("h5", { class: "card-title mb-3", children: ["Roles for ", selectedApp.title, " (", data.currentRoles.length, ")"] }), data.currentRoles.length === 0 ? (_jsx("div", { class: "alert alert-secondary mb-0", children: "No roles defined. Click \"Add Role\" to create one." })) : (_jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "ID" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Grants" }), _jsx("th", {})] }) }), _jsx("tbody", { children: data.currentRoles.map((r) => (_jsxs("tr", { children: [_jsx("td", { class: "font-monospace small", children: r.id }), _jsxs("td", { children: [_jsx("div", { children: r.title }), r.description ? _jsx("div", { class: "small text-secondary", children: r.description }) : null] }), _jsx("td", { children: _jsxs("span", { class: "badge text-bg-secondary", children: [r.permissions.length, " grant", r.permissions.length === 1 ? "" : "s"] }) }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-role-panel", "data-bp-edit-role": JSON.stringify(r), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${apiBase}/apps/${selectedApp.id}/auth/roles/${r.id}`, "hx-confirm": `Delete role ${r.id}?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "x" })] }) })] }))) })] }) }))] }) }) }), _jsx("div", { class: "col-lg-5", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "card-title mb-3", children: "Available services & views" }), data.servicePermissions.length === 0 ? (_jsx("div", { class: "text-secondary small", children: "No services registered yet." })) : (data.servicePermissions.map((s) => (_jsxs("div", { class: "mb-3", children: [_jsx("div", { class: "fw-semibold", children: s.title }), _jsxs("div", { class: "font-monospace small text-secondary mb-1", children: [s.serviceId, s.manifestVersion ? ` - v${s.manifestVersion}` : " - manifest pending"] }), s.views.length === 0 ? (_jsx("div", { class: "small text-secondary fst-italic", children: "No views in manifest cache." })) : (_jsx("ul", { class: "list-unstyled small mb-0", children: s.views.map((v) => (_jsxs("li", { class: "ms-2", children: [_jsx("code", { children: v.viewId }), _jsxs("span", { class: "text-secondary", children: [" ", v.path] }), v.role ? _jsx("span", { class: "badge text-bg-info ms-1", children: v.role }) : null] }))) }))] }))))] }) }) })] })), selectedApp && data.authConfigured ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-role-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-role-form", "hx-post": `${apiBase}/apps/${selectedApp.id}/auth/roles`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "Administrator", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description (optional)" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-add-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create Role" }), _jsx("p", { class: "text-secondary small mt-2 mb-0", children: "Grants are set via the Edit panel after creation." })] }) })] })) : null, selectedApp && data.authConfigured ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-role-panel", style: "--bs-offcanvas-width: 600px;", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-role-form", "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "roleId" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("h6", { class: "mt-4 mb-2", children: "Permission grants" }), _jsx("p", { class: "small text-secondary", children: "
|
|
151
|
+
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsxs("div", { children: [_jsx("h2", { class: "mb-1", children: data.title }), _jsx("p", { class: "text-secondary mb-0", children: "Define roles + permission grants per app. Services advertise per-view requirements via manifest." })] }), selectedApp && data.authConfigured ? (_jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-role-panel", children: "+ Add Role" })) : null] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label", children: "App" }), _jsxs("select", { class: "form-select", id: "bp-app-select", name: "appId", "hx-get": authPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Select app..." }), data.apps.map((a) => (_jsx("option", { value: a.id, selected: a.id === data.selectedAppId ? true : undefined, children: a.title })))] })] }), !selectedApp ? (_jsxs("div", { class: "alert alert-secondary", children: ["Select an app to manage its roles. No apps? Create one in ", _jsx("strong", { children: "Tenants & Apps" }), "."] })) : !data.authConfigured ? (_jsx("div", { class: "alert alert-warning", children: "Configure an auth provider for this app before creating roles." })) : (_jsxs("div", { class: "row g-4", children: [_jsx("div", { class: "col-lg-7", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsxs("h5", { class: "card-title mb-3", children: ["Roles for ", selectedApp.title, " (", data.currentRoles.length, ")"] }), data.currentRoles.length === 0 ? (_jsx("div", { class: "alert alert-secondary mb-0", children: "No roles defined. Click \"Add Role\" to create one." })) : (_jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "ID" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Grants" }), _jsx("th", {})] }) }), _jsx("tbody", { children: data.currentRoles.map((r) => (_jsxs("tr", { children: [_jsx("td", { class: "font-monospace small", children: r.id }), _jsxs("td", { children: [_jsx("div", { children: r.title }), r.description ? _jsx("div", { class: "small text-secondary", children: r.description }) : null] }), _jsx("td", { children: _jsxs("span", { class: "badge text-bg-secondary", children: [r.permissions.length, " grant", r.permissions.length === 1 ? "" : "s"] }) }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-edit-role-panel", "data-bp-edit-role": JSON.stringify(r), children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${apiBase}/apps/${selectedApp.id}/auth/roles/${r.id}`, "hx-confirm": `Delete role ${r.id}?`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: "x" })] }) })] }))) })] }) }))] }) }) }), _jsx("div", { class: "col-lg-5", children: _jsx("div", { class: "card border-0 shadow-sm", children: _jsxs("div", { class: "card-body", children: [_jsx("h5", { class: "card-title mb-3", children: "Available services & views" }), data.servicePermissions.length === 0 ? (_jsx("div", { class: "text-secondary small", children: "No services registered yet." })) : (data.servicePermissions.map((s) => (_jsxs("div", { class: "mb-3", children: [_jsx("div", { class: "fw-semibold", children: s.title }), _jsxs("div", { class: "font-monospace small text-secondary mb-1", children: [s.serviceId, s.manifestVersion ? ` - v${s.manifestVersion}` : " - manifest pending"] }), s.views.length === 0 ? (_jsx("div", { class: "small text-secondary fst-italic", children: "No views in manifest cache." })) : (_jsx("ul", { class: "list-unstyled small mb-0", children: s.views.map((v) => (_jsxs("li", { class: "ms-2", children: [_jsx("code", { children: v.viewId }), _jsxs("span", { class: "text-secondary", children: [" ", v.path] }), v.role ? _jsx("span", { class: "badge text-bg-info ms-1", children: v.role }) : null] }))) }))] }))))] }) }) })] })), selectedApp && data.authConfigured ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-role-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-add-role-form", "hx-post": `${apiBase}/apps/${selectedApp.id}/auth/roles`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Role ID" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "id", placeholder: "admin", pattern: "[A-Za-z0-9][A-Za-z0-9._:-]{0,63}", required: true }), _jsx("div", { class: "form-text", children: "Must match the role value emitted by the auth provider. Reserved ids cannot be created here." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", placeholder: "Administrator", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description (optional)" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-add-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Create Role" }), _jsx("p", { class: "text-secondary small mt-2 mb-0", children: "Grants are set via the Edit panel after creation." })] }) })] })) : null, selectedApp && data.authConfigured ? (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-edit-role-panel", style: "--bs-offcanvas-width: 600px;", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Role" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { id: "bp-edit-role-form", "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("input", { type: "hidden", name: "roleId" }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", required: true })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Description" }), _jsx("textarea", { class: "form-control", name: "description", rows: 2 })] }), _jsx("h6", { class: "mt-4 mb-2", children: "Permission grants" }), _jsx("p", { class: "small text-secondary", children: "Choose the actions this role grants for each service view." }), data.servicePermissions.length === 0 || data.servicePermissions.every((s) => s.views.length === 0) ? (_jsx("div", { class: "alert alert-secondary small mb-3", children: "No services or views in manifest cache yet. Services will appear here once they push their manifest (next poll cycle)." })) : (_jsxs("div", { children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label small", for: "bp-global-permission-bulk", children: "Bulk permissions" }), _jsxs("select", { class: "form-select form-select-sm", id: "bp-global-permission-bulk", "data-bp-global-permission-bulk": "", children: [_jsx("option", { value: "", children: "- Change all service permissions -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), data.servicePermissions.map((s) => (s.views.length === 0 ? null : (_jsxs("div", { class: "mb-3", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center gap-2 mb-2", children: [_jsxs("div", { children: [_jsx("div", { class: "fw-semibold small", children: s.title }), _jsx("div", { class: "font-monospace text-secondary small", children: s.serviceId })] }), _jsxs("select", { class: "form-select form-select-sm w-auto", "aria-label": `Change all permissions for ${s.title}`, "data-bp-service-permission-bulk": "", "data-bp-service-id": s.serviceId, children: [_jsx("option", { value: "", children: "- Change all in this service -" }), PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label })))] })] }), _jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm align-middle mb-0", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { class: "small", children: "View" }), _jsx("th", { class: "small", children: "Permissions" })] }) }), _jsx("tbody", { children: s.views.map((v) => (_jsxs("tr", { "data-bp-permission-row": "", children: [_jsx("td", { class: "font-monospace small", children: v.viewId }), _jsxs("td", { children: [_jsx("select", { class: "form-select form-select-sm", "aria-label": `Permissions for ${v.viewId}`, "data-bp-permission-select": "", "data-bp-service-id": s.serviceId, "data-bp-view-id": v.viewId, children: PERMISSION_OPTIONS.map(([value, label]) => (_jsx("option", { value: String(value), children: label }))) }), _jsx("span", { "data-bp-grant-inputs": "" })] })] }))) })] }) })] }))))] })), _jsx("div", { class: "alert alert-danger d-none", id: "bp-edit-role-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save Role" })] }) })] })) : null, _jsx("script", { children: permsScript(apiBase, serviceUrl, data.selectedAppId) })] }));
|
|
37
152
|
}
|
|
38
153
|
//# sourceMappingURL=GET.js.map
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,WAAW,CAAC,OAAe,EAAE,UAAkB,EAAE,aAAiC;IACzF,OAAO,EAAE,CAAC;sBACU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/auth/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,SAAS,WAAW,CAAC,OAAe,EAAE,UAAkB,EAAE,aAAiC;IACzF,OAAO,EAAE,CAAC;sBACU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuHhD,CAAC,CAAC;AACT,CAAC;AAED,MAAM,kBAAkB,GAAG;IACzB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,eAAe,CAAC;IACpB,CAAC,CAAC,EAAE,eAAe,CAAC;IACpB,CAAC,CAAC,EAAE,eAAe,CAAC;IACpB,CAAC,CAAC,EAAE,iBAAiB,CAAC;IACtB,CAAC,EAAE,EAAE,iBAAiB,CAAC;IACvB,CAAC,EAAE,EAAE,iBAAiB,CAAC;IACvB,CAAC,CAAC,EAAE,wBAAwB,CAAC;IAC7B,CAAC,EAAE,EAAE,wBAAwB,CAAC;IAC9B,CAAC,EAAE,EAAE,wBAAwB,CAAC;IAC9B,CAA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,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/_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;
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/_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;AA0ZrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAiHzD"}
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.js
CHANGED
|
@@ -52,9 +52,11 @@ function manifestLoaderScript(services) {
|
|
|
52
52
|
|
|
53
53
|
for (const svc of byServiceId.values()) {
|
|
54
54
|
for (const routeView of svc.views) {
|
|
55
|
+
if (routeView.renderable === false && !(svc.id === selectedService && routeView.viewId === selectedView)) continue;
|
|
55
56
|
const option = new Option(routeView.title || routeView.viewId, routeView.viewId);
|
|
56
57
|
option.dataset.serviceId = svc.id;
|
|
57
58
|
option.dataset.renderable = routeView.renderable === false ? "false" : "true";
|
|
59
|
+
option.disabled = routeView.renderable === false && !(svc.id === selectedService && routeView.viewId === selectedView);
|
|
58
60
|
option.selected = svc.id === selectedService && routeView.viewId === selectedView;
|
|
59
61
|
view.appendChild(option);
|
|
60
62
|
}
|
|
@@ -170,7 +172,7 @@ function routeFormFields(prefix, services, route) {
|
|
|
170
172
|
})));
|
|
171
173
|
const selectedMeta = viewOptions.find((view) => view.serviceId === selectedService && view.viewId === selectedView);
|
|
172
174
|
const isRenderable = selectedMeta?.renderable !== false;
|
|
173
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Service" }), _jsxs("select", { class: "form-select", name: "serviceId", id: `${prefix}-service`, "data-bp-route-service": "", required: true, children: [_jsx("option", { value: "", children: "Select service..." }), services.map((svc) => (_jsx("option", { value: svc.id, selected: svc.id === selectedService, children: svc.title })))] })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "View" }), _jsxs("select", { class: "form-select", name: "viewId", id: `${prefix}-view`, "data-bp-route-view": "", "data-selected-view": selectedView, required: true, children: [_jsx("option", { value: "", children: "Select view..." }), viewOptions.map((view) => (_jsx("option", { value: view.viewId, "data-service-id": view.serviceId, "data-renderable": view.renderable === false ? "false" : "true", selected: view.serviceId === selectedService && view.viewId === selectedView, children: view.renderable === false ? `[API] ${view.title}` : view.title })))] }), _jsx("div", { class: "form-text", children: "Page views create navigation routes. API/dependency views are mounted for service access only." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Mount path" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "path", value: route?.path ?? "", placeholder: "/dashboard", required: isRenderable, disabled: !isRenderable, pattern: "/.*", "data-bp-ui-route-field": "" }), _jsx("div", { class: "form-text", children: "URL path users will see in this app. Service-side path is resolved from the view id at sync time." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Display Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", value: route?.title ?? "", placeholder: "Dashboard", required: isRenderable, disabled: !isRenderable, pattern: ".*\\S.*", "data-bp-ui-route-field": "" })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Query string (optional)" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "query", value: route?.query ?? "", placeholder: "filter=active", disabled: !isRenderable, "data-bp-ui-route-field": "" }), _jsx("div", { class: "form-text", children: "Appended to the service request. Use this to customize the same view, not to change paths." })] })] }));
|
|
175
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Service" }), _jsxs("select", { class: "form-select", name: "serviceId", id: `${prefix}-service`, "data-bp-route-service": "", required: true, children: [_jsx("option", { value: "", children: "Select service..." }), services.map((svc) => (_jsx("option", { value: svc.id, selected: svc.id === selectedService, children: svc.title })))] })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "View" }), _jsxs("select", { class: "form-select", name: "viewId", id: `${prefix}-view`, "data-bp-route-view": "", "data-selected-view": selectedView, required: true, children: [_jsx("option", { value: "", children: "Select view..." }), viewOptions.filter((view) => view.renderable !== false || view.viewId === selectedView).map((view) => (_jsx("option", { value: view.viewId, "data-service-id": view.serviceId, "data-renderable": view.renderable === false ? "false" : "true", disabled: view.renderable === false && view.viewId !== selectedView, selected: view.serviceId === selectedService && view.viewId === selectedView, children: view.renderable === false ? `[API] ${view.title}` : view.title })))] }), _jsx("div", { class: "form-text", children: "Page views create navigation routes. API/dependency views are mounted for service access only." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Mount path" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "path", value: route?.path ?? "", placeholder: "/dashboard", required: isRenderable, disabled: !isRenderable, pattern: "/.*", "data-bp-ui-route-field": "" }), _jsx("div", { class: "form-text", children: "URL path users will see in this app. Service-side path is resolved from the view id at sync time." })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Display Title" }), _jsx("input", { type: "text", class: "form-control", name: "title", value: route?.title ?? "", placeholder: "Dashboard", required: isRenderable, disabled: !isRenderable, pattern: ".*\\S.*", "data-bp-ui-route-field": "" })] }), _jsxs("div", { class: "mb-3", children: [_jsx("label", { class: "form-label", children: "Query string (optional)" }), _jsx("input", { type: "text", class: "form-control font-monospace", name: "query", value: route?.query ?? "", placeholder: "filter=active", disabled: !isRenderable, "data-bp-ui-route-field": "" }), _jsx("div", { class: "form-text", children: "Appended to the service request. Use this to customize the same view, not to change paths." })] })] }));
|
|
174
176
|
}
|
|
175
177
|
function serviceLabel(services, serviceId) {
|
|
176
178
|
const service = services.find((svc) => svc.id === serviceId);
|
|
@@ -181,6 +183,38 @@ function viewLabel(services, serviceId, viewId) {
|
|
|
181
183
|
const view = service?.views.find((candidate) => candidate.viewId === viewId);
|
|
182
184
|
return view?.title || viewId;
|
|
183
185
|
}
|
|
186
|
+
function methodsLabel(methods) {
|
|
187
|
+
return (methods && methods.length > 0 ? methods : ["GET"]).join(", ");
|
|
188
|
+
}
|
|
189
|
+
function pathDepth(path) {
|
|
190
|
+
return path.split("/").filter(Boolean).length;
|
|
191
|
+
}
|
|
192
|
+
function domId(value) {
|
|
193
|
+
return value.replace(/[^A-Za-z0-9_-]/g, "-");
|
|
194
|
+
}
|
|
195
|
+
function renderPageRoutes(data, apiBase) {
|
|
196
|
+
const pageRoutes = data.routes
|
|
197
|
+
.filter((route) => route.kind !== "api" && route.renderable !== false)
|
|
198
|
+
.sort((a, b) => a.path.localeCompare(b.path));
|
|
199
|
+
if (pageRoutes.length === 0) {
|
|
200
|
+
return _jsx("div", { class: "alert alert-secondary", children: "No visual routes for this app yet" });
|
|
201
|
+
}
|
|
202
|
+
return (_jsx("div", { class: "table-responsive", children: _jsxs("table", { class: "table table-sm table-hover align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Mount path" }), _jsx("th", { children: "Title" }), _jsx("th", { children: "Service" }), _jsx("th", { children: "View" }), _jsx("th", { children: "Query" }), _jsx("th", { children: "On" }), _jsx("th", {})] }) }), _jsx("tbody", { children: pageRoutes.map((route) => (_jsxs("tr", { class: route.enabled ? "" : "text-secondary", children: [_jsx("td", { class: "font-monospace small fw-semibold", children: _jsx("span", { style: `padding-left:${Math.max(0, pathDepth(route.path) - 1) * 1.25}rem`, children: route.path }) }), _jsx("td", { children: route.title ?? "" }), _jsx("td", { class: "small", "data-bp-route-service-label": route.serviceId, children: serviceLabel(data.availableServices, route.serviceId) }), _jsx("td", { class: "small", "data-bp-route-service-id": route.serviceId, "data-bp-route-view-label": route.viewId, children: viewLabel(data.availableServices, route.serviceId, route.viewId) }), _jsx("td", { class: "small font-monospace", children: route.query ?? "" }), _jsx("td", { children: _jsx("button", { class: `btn btn-sm ${route.enabled ? "btn-success" : "btn-outline-secondary"}`, "hx-put": `${apiBase}/apps/${data.selectedAppId}/routes/${route.id}`, "hx-vals": JSON.stringify({ enabled: !route.enabled }), "hx-target": "#bp-main", "hx-swap": "innerHTML", children: route.enabled ? "on" : "off" }) }), _jsx("td", { children: _jsxs("div", { class: "btn-group btn-group-sm", children: [_jsx("button", { class: "btn btn-outline-primary", "data-bs-toggle": "offcanvas", "data-bs-target": `#bp-edit-route-panel-${route.id}`, children: "Edit" }), _jsx("button", { class: "btn btn-outline-danger", "hx-delete": `${apiBase}/apps/${data.selectedAppId}/routes/${route.id}`, "hx-confirm": "Delete route?", "hx-target": "#bp-routes-alerts", "hx-swap": "innerHTML", children: "x" })] }) })] }))) })] }) }));
|
|
203
|
+
}
|
|
204
|
+
function renderApiRoutes(data, apiBase) {
|
|
205
|
+
const apiRoutes = data.routes
|
|
206
|
+
.filter((route) => route.kind === "api" || route.renderable === false)
|
|
207
|
+
.sort((a, b) => serviceLabel(data.availableServices, a.serviceId).localeCompare(serviceLabel(data.availableServices, b.serviceId)) || a.path.localeCompare(b.path));
|
|
208
|
+
if (apiRoutes.length === 0) {
|
|
209
|
+
return _jsx("div", { class: "alert alert-secondary", children: "No service/API routes mounted for this app" });
|
|
210
|
+
}
|
|
211
|
+
const serviceIds = [...new Set(apiRoutes.map((route) => route.serviceId))];
|
|
212
|
+
return (_jsx("div", { class: "accordion", id: "bp-api-routes-accordion", children: serviceIds.map((serviceId, index) => {
|
|
213
|
+
const routes = apiRoutes.filter((route) => route.serviceId === serviceId);
|
|
214
|
+
const panelId = `bp-api-routes-${domId(serviceId)}`;
|
|
215
|
+
return (_jsxs("div", { class: "accordion-item", children: [_jsx("h3", { class: "accordion-header", children: _jsxs("button", { class: `accordion-button ${index === 0 ? "" : "collapsed"}`, type: "button", "data-bs-toggle": "collapse", "data-bs-target": `#${panelId}`, children: [_jsx("span", { children: serviceLabel(data.availableServices, serviceId) }), _jsx("span", { class: "badge text-bg-secondary ms-2", children: routes.length })] }) }), _jsx("div", { id: panelId, class: `accordion-collapse collapse ${index === 0 ? "show" : ""}`, "data-bs-parent": "#bp-api-routes-accordion", children: _jsx("div", { class: "accordion-body p-0", children: _jsxs("table", { class: "table table-sm mb-0 align-middle", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "App allowlist path" }), _jsx("th", { children: "Service path" }), _jsx("th", { children: "View" }), _jsx("th", { children: "Methods" }), _jsx("th", { children: "On" }), _jsx("th", {})] }) }), _jsx("tbody", { children: routes.map((route) => (_jsxs("tr", { class: route.enabled ? "" : "text-secondary", children: [_jsx("td", { class: "font-monospace small", children: route.path }), _jsx("td", { class: "font-monospace small", children: route.targetPath ?? "" }), _jsx("td", { class: "small", children: viewLabel(data.availableServices, route.serviceId, route.viewId) }), _jsx("td", { class: "small font-monospace", children: methodsLabel(route.methods) }), _jsx("td", { children: _jsx("button", { class: `btn btn-sm ${route.enabled ? "btn-success" : "btn-outline-secondary"}`, "hx-put": `${apiBase}/apps/${data.selectedAppId}/routes/${route.id}`, "hx-vals": JSON.stringify({ enabled: !route.enabled }), "hx-target": "#bp-main", "hx-swap": "innerHTML", children: route.enabled ? "on" : "off" }) }), _jsx("td", { children: _jsx("button", { class: "btn btn-sm btn-outline-danger", "hx-delete": `${apiBase}/apps/${data.selectedAppId}/routes/${route.id}`, "hx-confirm": "Delete API route?", "hx-target": "#bp-routes-alerts", "hx-swap": "innerHTML", children: "x" }) })] }))) })] }) }) })] }));
|
|
216
|
+
}) }));
|
|
217
|
+
}
|
|
184
218
|
function noServicesBanner(serviceUrl) {
|
|
185
219
|
return (_jsxs("div", { class: "alert alert-warning mb-3", children: [_jsx("h6", { class: "alert-heading", children: "No services linked to this tenant" }), _jsx("p", { class: "mb-2", children: "Routes need a service to handle them. Register a service for this tenant first." }), _jsx("a", { href: `${serviceUrl}/services`, class: "btn btn-sm btn-warning", "hx-get": `${serviceUrl}/services`, "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "/settings/services", children: "Go to Service Registry ->" })] }));
|
|
186
220
|
}
|
|
@@ -189,6 +223,6 @@ export function render(data) {
|
|
|
189
223
|
const routesPath = `${data.serviceBaseUrl}/routes`;
|
|
190
224
|
const hasServices = data.availableServices.length > 0;
|
|
191
225
|
const canAddRoute = data.selectedAppId && hasServices;
|
|
192
|
-
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsx("h2", { class: "mb-0", children: data.title }), _jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-route-panel", disabled: !canAddRoute, children: "+ Add Route" })] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label fw-semibold", children: "App" }), _jsxs("select", { class: "form-select", name: "appId", "data-bp-app-select": "", "hx-get": routesPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Choose an app..." }), data.apps.map((app) => (_jsxs("option", { value: app.id, selected: app.id === data.selectedAppId, children: [app.title, " (", app.tenantId, ")"] })))] })] }), _jsx("div", { id: "bp-routes-alerts" }), data.selectedAppId && !hasServices ? noServicesBanner(data.serviceBaseUrl) : "", data.routes.length === 0 ? (_jsx("div", { class: "alert alert-secondary", children: data.selectedAppId ? "No routes for this app yet" : "Select an app to view routes" })) : (
|
|
226
|
+
return (_jsxs("div", { class: "container-fluid px-0", children: [_jsxs("div", { class: "d-flex justify-content-between align-items-center mb-4", children: [_jsx("h2", { class: "mb-0", children: data.title }), _jsx("button", { class: "btn btn-primary", "data-bs-toggle": "offcanvas", "data-bs-target": "#bp-add-route-panel", disabled: !canAddRoute, children: "+ Add Visual Route" })] }), _jsxs("div", { class: "mb-4", children: [_jsx("label", { class: "form-label fw-semibold", children: "App" }), _jsxs("select", { class: "form-select", name: "appId", "data-bp-app-select": "", "hx-get": routesPath, "hx-trigger": "change", "hx-target": "#bp-main", "hx-swap": "innerHTML", "hx-push-url": "true", children: [_jsx("option", { value: "", children: "Choose an app..." }), data.apps.map((app) => (_jsxs("option", { value: app.id, selected: app.id === data.selectedAppId, children: [app.title, " (", app.tenantId, ")"] })))] })] }), _jsx("div", { id: "bp-routes-alerts" }), data.selectedAppId && !hasServices ? noServicesBanner(data.serviceBaseUrl) : "", data.routes.length === 0 ? (_jsx("div", { class: "alert alert-secondary", children: data.selectedAppId ? "No routes for this app yet" : "Select an app to view routes" })) : (_jsxs("div", { class: "d-grid gap-4", children: [_jsxs("section", { children: [_jsx("div", { class: "d-flex justify-content-between align-items-center border-bottom pb-2 mb-3", children: _jsxs("div", { children: [_jsx("h3", { class: "h5 mb-0", children: "Visual Routes" }), _jsx("div", { class: "small text-secondary", children: "Routes rendered as app pages and eligible for menus" })] }) }), renderPageRoutes(data, apiBase)] }), _jsxs("section", { children: [_jsx("div", { class: "d-flex justify-content-between align-items-center border-bottom pb-2 mb-3", children: _jsxs("div", { children: [_jsx("h3", { class: "h5 mb-0", children: "Service/API Routes" }), _jsx("div", { class: "small text-secondary", children: "Service-locked app allowlist routes mounted under /_bp/service" })] }) }), renderApiRoutes(data, apiBase)] })] })), _jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: "bp-add-route-panel", children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Add Visual Route" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: hasServices ? (_jsxs("form", { id: "bp-add-route-form", "hx-post": `${apiBase}/apps/${data.selectedAppId}/routes`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("div", { "data-bp-route-form": "", children: routeFormFields("bp-add-route", data.availableServices) }), _jsx("div", { class: "alert alert-danger d-none", id: "bp-add-route-error" }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Add Route" })] })) : noServicesBanner(data.serviceBaseUrl) })] }), data.routes.filter((route) => route.kind !== "api" && route.renderable !== false).map((route) => (_jsxs("div", { class: "offcanvas offcanvas-end", tabindex: -1, id: `bp-edit-route-panel-${route.id}`, children: [_jsxs("div", { class: "offcanvas-header", children: [_jsx("h5", { class: "offcanvas-title", children: "Edit Route" }), _jsx("button", { type: "button", class: "btn-close", "data-bs-dismiss": "offcanvas" })] }), _jsx("div", { class: "offcanvas-body", children: _jsxs("form", { "hx-put": `${apiBase}/apps/${data.selectedAppId}/routes/${route.id}`, "hx-target": "#bp-main", "hx-swap": "innerHTML", children: [_jsx("div", { "data-bp-route-form": "", children: routeFormFields(`bp-edit-route-${route.id}`, data.availableServices, route) }), _jsx("button", { type: "submit", class: "btn btn-primary w-100", children: "Save Changes" })] }) })] }))), _jsx("script", { children: manifestLoaderScript(data.availableServices) })] }));
|
|
193
227
|
}
|
|
194
228
|
//# sourceMappingURL=GET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAIA,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;SACzB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC;SAC7B,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AACnC,CAAC;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C,IAAI,CAAC,iBAAiB,CAAC,GAAU,IAC3D,CACP,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAIA,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;SACzB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;SACxB,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC;SAC7B,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,oBAAoB,CAAC,QAA2C;IACvE,OAAO;;;;;qBAKY,UAAU,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJxC,CAAC;AACF,CAAC;AAED,SAAS,eAAe,CACtB,MAAc,EACd,QAA2C,EAC3C,KAAsC;IAEtC,MAAM,eAAe,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAC/C,MAAM,YAAY,GAAG,KAAK,EAAE,MAAM,IAAI,EAAE,CAAC;IACzC,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3C,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvB,SAAS,EAAE,GAAG,CAAC,EAAE;QACjB,YAAY,EAAE,GAAG,CAAC,KAAK;QACvB,GAAG,IAAI;KACR,CAAC,CAAC,CACJ,CAAC;IAC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EAAE,YACzB,eAAe,CAAC,iBAAiB,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,GACtE,EACN,iBAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,uBAAuB,6BAAsB,IACpE,GACH,IACF,CACP,CAAC,EACF,2BAAS,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAU,IAC3D,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -11,9 +11,12 @@ export declare const ResponseSchema: av.ObjectSchema<{
|
|
|
11
11
|
selectedAppId: av.OptionalSchema<av.StringSchema>;
|
|
12
12
|
routes: av.ArraySchema<av.ObjectSchema<{
|
|
13
13
|
id: av.StringSchema;
|
|
14
|
+
kind: av.EnumSchema<readonly ["page", "api"]>;
|
|
14
15
|
path: av.StringSchema;
|
|
15
16
|
serviceId: av.StringSchema;
|
|
16
17
|
viewId: av.StringSchema;
|
|
18
|
+
targetPath: av.OptionalSchema<av.StringSchema>;
|
|
19
|
+
methods: av.ArraySchema<av.StringSchema>;
|
|
17
20
|
query: av.OptionalSchema<av.StringSchema>;
|
|
18
21
|
title: av.OptionalSchema<av.StringSchema>;
|
|
19
22
|
renderable: av.BoolSchema;
|
|
@@ -51,11 +54,14 @@ export declare const handleGet: import("@betterportal/framework").RouteHandler<R
|
|
|
51
54
|
}[];
|
|
52
55
|
routes: {
|
|
53
56
|
id: string;
|
|
57
|
+
kind: "page" | "api";
|
|
54
58
|
path: string;
|
|
55
59
|
serviceId: string;
|
|
56
60
|
viewId: string;
|
|
61
|
+
methods: string[];
|
|
57
62
|
renderable: boolean;
|
|
58
63
|
enabled: boolean;
|
|
64
|
+
targetPath?: string | undefined;
|
|
59
65
|
query?: string | undefined;
|
|
60
66
|
title?: string | undefined;
|
|
61
67
|
}[];
|
package/lib/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/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;
|
|
1
|
+
{"version":3,"file":"route.impl.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/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;AAuCjC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQC,CAAC;AAC7B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,mBAAmB,CAAC;AACtC,eAAO,MAAM,WAAW,uCAAuC,CAAC;AAEhE,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"}
|
|
@@ -2,9 +2,12 @@ import * as av from "anyvali";
|
|
|
2
2
|
import { createHandler } from "@betterportal/framework";
|
|
3
3
|
const RouteItemSchema = av.object({
|
|
4
4
|
id: av.string().minLength(1),
|
|
5
|
+
kind: av.enum_(["page", "api"]).default("page"),
|
|
5
6
|
path: av.string().minLength(1),
|
|
6
7
|
serviceId: av.string().minLength(1),
|
|
7
8
|
viewId: av.string().minLength(1),
|
|
9
|
+
targetPath: av.optional(av.string()),
|
|
10
|
+
methods: av.array(av.string()).default([]),
|
|
8
11
|
query: av.optional(av.string()),
|
|
9
12
|
title: av.optional(av.string()),
|
|
10
13
|
renderable: av.bool().default(true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,eAAe,GAAG,EAAE,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAChC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IAC/B,UAAU,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,EAAE,CAAC,IAAI,EAAE;CACnB,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,CA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AE,iBAAiB,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;CACnL,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,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC7I,CAAC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-config-manager/bp-routes/routes/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAEjC,MAAM,eAAe,GAAG,EAAE,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,CAAU,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAChC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;IACpC,OAAO,EAAE,EAAE,CAAC,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C,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,EAAE,SAAS,EAAE,qCAAqC,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,CAAC,EAAE;KAC/H;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,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE;CACnL,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,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC7I,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/services/_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;AA8PrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-config-manager/bp-routes/services/_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;AA8PrD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA+WzD"}
|