class ArchStatusBar extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); } connectedCallback() { this.render(); this.updateStats(); setInterval(() => this.updateStats(), 1000); } updateStats() { const now = new Date(); const time = now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit' }); // Update shadow DOM elements const timeEl = this.shadowRoot.querySelector('.clock-time'); if (timeEl) timeEl.textContent = time; } render() { this.shadowRoot.innerHTML = `
`; } } customElements.define('arch-status-bar', ArchStatusBar);