feat(calendar): restore full calendar UI in iframe panel

Replaced debug placeholder in render() with real calendar rendering:
header (nav + view tabs), categories bar with filter, and month/week/day
views. Full CRUD modals were already present in the HTML.
This commit is contained in:
mirivlad 2026-06-08 16:36:53 +08:00
parent 7a95943ad7
commit 1dbb1f8c68
1 changed files with 4 additions and 3 deletions

View File

@ -481,10 +481,11 @@ body {
return;
}
try {
appEl.innerHTML = '<div class="test-msg">IT WORKS! events=' + (state.events ? state.events.length : 0) + ' cats=' + (state.categories ? state.categories.length : 0) + '<br>eventsType=' + typeof state.events + '<br>json=' + JSON.stringify(state.events).substring(0,100) + '</div>';
try { window.parent.go.main.App.WriteDebugLog('[iframe] innerHTML SET SUCCESSFULLY'); } catch(e) {}
appEl.innerHTML = renderHeader() + renderCategories() + renderView();
try { window.parent.go.main.App.WriteDebugLog('[iframe] render OK, view=' + state.view + ', events=' + state.events.length + ', cats=' + state.categories.length); } catch(e) {}
} catch(e) {
try { window.parent.go.main.App.WriteDebugLog('[iframe] innerHTML error: ' + String(e)); } catch(e2) {}
appEl.innerHTML = '<div class="loading-screen">⚠ Ошибка: ' + escapeHtml(String(e)) + '</div>';
try { window.parent.go.main.App.WriteDebugLog('[iframe] render error: ' + String(e)); } catch(e2) {}
}
}