// guides.js — Integrations-Anleitungen (v3): Copy-Paste-Configs für externe Tools. import { $, esc } from "../core/ui.js"; // In die Zwischenablage kopieren (kopiert das vorhergehende Eingabefeld / Codeblock). window.mcCopy = (btn, sel) => { const src = sel ? btn.parentElement.querySelector(sel) : btn.previousElementSibling; const text = src.value !== undefined ? src.value : src.textContent; navigator.clipboard?.writeText(text); const old = btn.textContent; btn.textContent = "Kopiert!"; setTimeout(() => (btn.textContent = old), 1200); }; // Basis-URL aus dem Browser ableiten (zeigt die echte Bosgame-Adresse statt localhost). function apiBase() { const host = location.hostname || "localhost"; return `${location.protocol}//${host}:8080/v1`; } // Beschriftetes Feld mit Kopier-Button. function field(label, value) { return `