chore: publish clean community baseline
Deploy / deploy (push) Failing after 2m16s
CI / Rust Checks (push) Successful in 5m29s
CI / UI Checks (push) Failing after 5s
CI / Frontend E2E (push) Has been skipped
CI / Deployment Manifests (push) Has been skipped

This commit is contained in:
github-ops
2026-06-17 06:15:46 +00:00
commit a25f87a459
312 changed files with 72021 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
(function() {
var allowedSlots = {
'settings.sso_panel': true,
'settings.totp_panel': true,
'settings.audit_panel': true,
'settings.billing_panel': true,
'wizard.protocol_cards.graphql': true,
'wizard.protocol_cards.grpc': true,
'wizard.protocol_cards.soap': true,
'wizard.protocol_cards.websocket': true,
};
var handlers = Object.create(null);
function noop() {}
function isAllowed(slotId) {
return !!allowedSlots[slotId];
}
function register(slotId, render) {
if (!isAllowed(slotId) || typeof render !== 'function') {
return false;
}
handlers[slotId] = render;
return true;
}
function renderInto(target, slotId, context) {
if (!(target && slotId && isAllowed(slotId))) {
return;
}
var handler = handlers[slotId] || noop;
handler(target, context || {});
}
function renderAll(root, context) {
var scope = root || document;
scope.querySelectorAll('[data-slot]').forEach(function(target) {
renderInto(target, target.getAttribute('data-slot'), context);
});
}
function knownSlots() {
return Object.keys(allowedSlots);
}
window.CrankUiSlots = {
isAllowed: isAllowed,
knownSlots: knownSlots,
register: register,
renderAll: renderAll,
renderInto: renderInto,
};
}());