Разделить среды и закрепить лицензии в HEADER 1.0

This commit is contained in:
AidarKC
2026-12-05 11:42:20 +03:00
parent a64168a748
commit 77c7021aed
89 changed files with 4204 additions and 211 deletions
+4 -3
View File
@@ -70,6 +70,9 @@ function applyCountersToMountedToolbars() {
});
}
if (typeof window !== 'undefined') window.addEventListener('shine:server-environment', () => {
document.querySelectorAll('.toolbar-test-indicator').forEach(el => { el.hidden = state.serverEnvironment?.testMode !== true; });
});
let countersPushBound = false;
function ensureCountersPushBound() {
if (countersPushBound) return;
@@ -138,9 +141,7 @@ export function renderToolbar(currentPageId, navigate) {
btn.className = `toolbar-btn${item.pageId === active ? ' active' : ''}${isProfile ? ' toolbar-btn-profile' : ''}${isMessages ? ' toolbar-btn-messages' : ''}${isNetwork ? ' toolbar-btn-network' : ''}${item.hero ? ' toolbar-btn-hero' : ''}`;
if (isProfile) {
btn.innerHTML = `
${iconHtml(item, `<span id="toolbar-connection-indicator" class="toolbar-connection-indicator is-unknown">
<span class="toolbar-connection-dot" aria-hidden="true"></span>
</span>`)}
${iconHtml(item, `<span id="toolbar-test-indicator" class="toolbar-test-indicator"${state.serverEnvironment?.testMode === true ? '' : ' hidden'}>Test</span>`)}
<span class="sr-only">${item.label}</span>
`;
} else if (isNetwork) {