[deploy]
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s

This commit is contained in:
Pascal Prießnitz
2025-12-04 16:43:38 +01:00
parent 311f5a87f1
commit 22caa79b54
60 changed files with 2652 additions and 2999 deletions

View File

@@ -0,0 +1,23 @@
import { api } from '../../services/api.js';
import { showToast } from '../../ui/toast.js';
export async function renderStatuspageModule(guildId: string) {
const container = document.getElementById('module-statuspage');
if (!container) return;
container.innerHTML = '<p class="muted">Lade Statuspage...</p>';
try {
const data: any = await api.statuspage(guildId);
const cfg = data?.config || data || {};
const services = cfg.services || [];
container.innerHTML = `
<h3 class="label">Statuspage</h3>
<p class="muted">Channel: ${cfg.channelId || '-'}</p>
<p class="muted">Intervall: ${cfg.interval || '-'}m</p>
<p class="muted">Services: ${services.length}</p>
`;
} catch (err) {
console.error(err);
container.innerHTML = '<div class="empty-state">Statuspage konnte nicht geladen werden.</div>';
showToast('Fehler beim Laden der Statuspage', true);
}
}