fix: replace innerHTML with insertAdjacentHTML/replaceChildren; revert docker-compose dev changes

- birthdays.js: all innerHTML writes replaced with replaceChildren() + insertAdjacentHTML()
- dashboard.js: shell.innerHTML replaced with replaceChildren() + insertAdjacentHTML()
- docker-compose.yml: revert port to 3000 and restore image line (were personal dev changes)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-04-27 07:32:36 +02:00
parent 08199495b6
commit c9ba68cc9b
3 changed files with 27 additions and 19 deletions
+3 -2
View File
@@ -1061,10 +1061,11 @@ export async function render(container, { user }) {
function rebuildDashboard(cfg) {
const shell = container.querySelector('#dashboard-shell');
if (!shell) return;
shell.innerHTML = `
shell.replaceChildren();
shell.insertAdjacentHTML('beforeend', `
${renderDashboardOverview(user, stats, weather)}
${renderDashboardLayout(cfg, data, weather, currency)}
`;
`);
wireLinks(container, rerender);
if (window.lucide) window.lucide.createIcons();
wireWeatherRefresh(container, (updatedWeather) => {