community: trim premium wizard surface

This commit is contained in:
a.tolmachev
2026-05-07 20:34:32 +00:00
parent 796def4cfd
commit 202c886793
11 changed files with 16 additions and 696 deletions
+3 -21
View File
@@ -10,15 +10,11 @@
}
function step3PanelId() {
if (window.wizardProtocol === 'graphql') return 'step-panel-3-graphql';
if (window.wizardProtocol === 'grpc') return 'step-panel-3-grpc';
if (window.wizardProtocol === 'websocket') return 'step-panel-3-websocket';
if (window.wizardProtocol === 'soap') return 'step-panel-3-soap';
return 'step-panel-3-rest';
}
function stepFile(step) {
return step === 3 ? 'step3-' + window.wizardProtocol + '.html' : 'step' + step + '.html';
return step === 3 ? 'step3-rest.html' : 'step' + step + '.html';
}
function buildIconSvg(href, width, height) {
@@ -186,27 +182,13 @@
card.setAttribute('aria-checked', 'true');
var protocol = card.dataset.protocol
|| (card.classList.contains('rest')
? 'rest'
: card.classList.contains('graphql')
? 'graphql'
: card.classList.contains('grpc')
? 'grpc'
: card.classList.contains('websocket')
? 'websocket'
: card.classList.contains('soap')
? 'soap'
: 'rest');
|| 'rest';
window.wizardProtocol = protocol;
var step3Name = document.getElementById('sidebar-step-3-name');
var labels = window.CrankWizardState.step3Labels();
if (step3Name) step3Name.textContent = labels[protocol] || tKey('wizard.step3.rest.label');
if (protocol === 'graphql') {
var pathInput = document.getElementById('endpoint-path');
if (pathInput && pathInput.value === '/v1/leads') pathInput.value = '/graphql';
}
});
card.addEventListener('keydown', function(event) {
if (event.key === 'Enter' || event.key === ' ') {
@@ -220,7 +202,7 @@
function applyEditionProtocolVisibility(capabilities) {
var supported = capabilities && Array.isArray(capabilities.supported_protocols)
? capabilities.supported_protocols.slice()
: ['rest', 'graphql', 'grpc'];
: ['rest'];
var hiddenProtocols = [];
document.querySelectorAll('.protocol-card').forEach(function(card) {