Mail-Strecke Webinar 8.12.: Planung für Mailjet und Seite Aufgaben
Planung in webinar/mail-strecke/ mit Noahs Texten, rechtlicher Einordnung der Kaltmails, WebinarGeek statt Google Meet und Versandplan. Neue Dashboard-Seite Aufgaben mit 54 Todos in zeitlicher Reihenfolge (daten/aufgaben.json), abhaken lokal wie bei der Roadmap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c2b6e9ae0
commit
709aeeec33
9 files changed
+543
-5
No files matched your search
+6
-4
@@ -11,11 +11,12 @@ import * as roadmap from "./seiten/roadmap.js";
|
||||
import * as formate from "./seiten/formate.js";
|
||||
import * as dok from "./seiten/dokumente.js";
|
||||
import * as webinar from "./seiten/webinar.js";
|
||||
import * as aufgaben from "./seiten/aufgaben.js";
|
||||
|
||||
const SEITEN = { start, plan, roadmap, formate, webinar, dok };
|
||||
const SEITEN = { start, plan, roadmap, aufgaben, formate, webinar, dok };
|
||||
|
||||
export const S = {
|
||||
plan: null, roadmap: null, kanaele: null, webinar: null, dokumente: [], stand: null,
|
||||
plan: null, roadmap: null, kanaele: null, webinar: null, aufgaben: null, dokumente: [], stand: null,
|
||||
slots: [], schritte: [],
|
||||
};
|
||||
|
||||
@@ -26,15 +27,16 @@ async function holeJson(url) {
|
||||
}
|
||||
|
||||
export async function laden() {
|
||||
const [p, r, k, w, d, st] = await Promise.all([
|
||||
const [p, r, k, w, a, d, st] = await Promise.all([
|
||||
holeJson("/daten/redaktionsplan.json"),
|
||||
holeJson("/daten/roadmap.json"),
|
||||
holeJson("/daten/kanaele.json"),
|
||||
holeJson("/daten/webinar.json").catch(() => null),
|
||||
holeJson("/daten/aufgaben.json").catch(() => null),
|
||||
holeJson("/api/dokumente"),
|
||||
holeJson("/api/stand"),
|
||||
]);
|
||||
Object.assign(S, { plan: p, roadmap: r, kanaele: k, webinar: w, dokumente: d, stand: st });
|
||||
Object.assign(S, { plan: p, roadmap: r, kanaele: k, webinar: w, aufgaben: a, dokumente: d, stand: st });
|
||||
// Nach Datum sortiert. Am selben Tag gilt die Reihenfolge in der Datei.
|
||||
S.slots = p.slots.map((s, i) => [s, i])
|
||||
.sort(([a, i], [b, j]) => a.datum.localeCompare(b.datum) || i - j)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<a href="#/" data-seite="start"><svg viewBox="0 0 24 24" aria-hidden="true"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg><span>Übersicht</span></a>
|
||||
<a href="#/plan" data-seite="plan"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg><span>Redaktionsplan</span></a>
|
||||
<a href="#/roadmap" data-seite="roadmap"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg><span>Roadmap</span></a>
|
||||
<a href="#/aufgaben" data-seite="aufgaben"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m3 17 2 2 4-4"/><path d="m3 7 2 2 4-4"/><path d="M13 6h8"/><path d="M13 12h8"/><path d="M13 18h8"/></svg><span>Aufgaben</span></a>
|
||||
<a href="#/formate" data-seite="formate"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"/><rect x="3" y="14" width="7" height="7" rx="1"/><circle cx="17.5" cy="17.5" r="3.5"/></svg><span>Formate</span></a>
|
||||
<a href="#/webinar" data-seite="webinar"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M2 3h20"/><path d="M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3"/><path d="m7 21 5-5 5 5"/></svg><span>Webinar</span></a>
|
||||
<a href="#/dok" data-seite="dok"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg><span>Dokumente</span></a>
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
// Aufgaben: Todo-Liste in der richtigen Reihenfolge, mit Zuständigkeit und Frist.
|
||||
//
|
||||
// Die Aufgaben und ihr Status stehen in daten/aufgaben.json. Abhaken geht wie
|
||||
// bei der Roadmap nur lokal über serve.py, in der Freigabe ist es nur zum Lesen.
|
||||
|
||||
import { S, statusSetzen } from "../app.js";
|
||||
import { heute, kurzDatum, esc, mdInline, dokLink, zustaendig, pille } from "../hilfen.js";
|
||||
|
||||
const SPEICHER = "hg-aufgaben";
|
||||
const zustand = { person: "alle", status: "alle" };
|
||||
try { Object.assign(zustand, JSON.parse(localStorage.getItem(SPEICHER) || "{}")); } catch { /* egal */ }
|
||||
const merken = () => { try { localStorage.setItem(SPEICHER, JSON.stringify(zustand)); } catch { /* egal */ } };
|
||||
|
||||
const erledigt = (a) => a.status === "erledigt";
|
||||
|
||||
function passt(a) {
|
||||
if (zustand.person !== "alle" && !zustaendig(a, zustand.person)) return false;
|
||||
if (zustand.status === "offen" && erledigt(a)) return false;
|
||||
if (zustand.status === "erledigt" && !erledigt(a)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function zeile(a, h) {
|
||||
const ueber = !erledigt(a) && a.faellig < h;
|
||||
return `<div class="schritt ${esc(a.status)}">
|
||||
<input type="checkbox" data-haken="${esc(a.id)}" ${erledigt(a) ? "checked" : ""} title="erledigt">
|
||||
<div class="sid">${esc(a.id)}</div>
|
||||
<div><div class="kurz">${mdInline(a.kurz)}</div>
|
||||
<details><summary>Details${a.abhaengig ? `, braucht ${esc(a.abhaengig)}` : ""}</summary><div class="lang">${mdInline(a.text)}</div></details></div>
|
||||
<div class="wer">${esc(a.wer)}</div>
|
||||
<div class="wann ${ueber ? "ueberfaellig" : ""}">${kurzDatum(a.faellig)}${a.laufend ? `<span class="klein" style="display:block">laufend</span>` : ""}</div>
|
||||
<div>${pille(a.status)}</div>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
function gruppe(g, h) {
|
||||
const zeilen = g.aufgaben.filter(passt);
|
||||
if (!zeilen.length) return "";
|
||||
const fertig = g.aufgaben.filter(erledigt).length;
|
||||
const anteil = Math.round((fertig / g.aufgaben.length) * 100);
|
||||
return `<section class="block paket">
|
||||
<h2><span><span class="pid">${esc(g.id)}</span>${esc(g.titel)}</span><span class="neben">bis ${kurzDatum(g.bis)}</span></h2>
|
||||
<div class="paket-unter"><span>${fertig} von ${g.aufgaben.length} erledigt</span><span class="balken"><span style="width:${anteil}%"></span></span></div>
|
||||
${g.text ? `<p class="klein" style="margin:0 0 6px">${mdInline(g.text)}</p>` : ""}
|
||||
${zeilen.map((a) => zeile(a, h)).join("")}
|
||||
</section>`;
|
||||
}
|
||||
|
||||
export function zeichnen(main) {
|
||||
const A = S.aufgaben;
|
||||
if (!A) {
|
||||
main.innerHTML = `<section class="block warnung"><h2>Keine Aufgaben</h2><p><code>daten/aufgaben.json</code> fehlt oder ließ sich nicht lesen.</p></section>`;
|
||||
return;
|
||||
}
|
||||
const h = heute();
|
||||
const alle = A.gruppen.flatMap((g) => g.aufgaben);
|
||||
const fertig = alle.filter(erledigt).length;
|
||||
const schalter = (gruppe, wert, text) =>
|
||||
`<button class="${zustand[gruppe] === wert ? "an" : ""}" data-gruppe="${gruppe}" data-wert="${esc(wert)}">${esc(text)}</button>`;
|
||||
|
||||
main.innerHTML = `
|
||||
<header class="seitenkopf">
|
||||
<div><h1>Aufgaben</h1>
|
||||
<div class="unter">${esc(A.titel)}. ${fertig} von ${alle.length} erledigt.</div></div>
|
||||
<a class="knopf" href="${dokLink(A.planung)}">Planung lesen</a>
|
||||
</header>
|
||||
<div class="schalterleiste">
|
||||
<div class="schalter"><span class="lbl">Wer</span>${["alle", ...A.personen].map((p) => schalter("person", p, p === "alle" ? "Alle" : p)).join("")}</div>
|
||||
<div class="schalter"><span class="lbl">Status</span>${[["alle", "Alle"], ["offen", "offen"], ["erledigt", "erledigt"]].map(([w, t]) => schalter("status", w, t)).join("")}</div>
|
||||
</div>
|
||||
${A.gruppen.map((g) => gruppe(g, h)).join("") || `<div class="leer">Keine Aufgaben mit diesem Filter.</div>`}
|
||||
`;
|
||||
|
||||
main.querySelectorAll("[data-gruppe]").forEach((b) => {
|
||||
b.onclick = () => { zustand[b.dataset.gruppe] = b.dataset.wert; merken(); zeichnen(main); };
|
||||
});
|
||||
main.querySelectorAll("[data-haken]").forEach((box) => {
|
||||
box.onchange = () => statusSetzen("aufgaben", box.dataset.haken, box.checked ? "erledigt" : "offen");
|
||||
});
|
||||
}
|
||||
@@ -9,6 +9,7 @@ const STANDARD = "Brainstorming Kickoff/Strategie/Content-Strategie.md";
|
||||
const ORDNER = [
|
||||
["Brainstorming Kickoff/Strategie", "Strategie"],
|
||||
["webinar", "Webinar"],
|
||||
["webinar/mail-strecke", "Webinar: Mail-Strecke"],
|
||||
["webinar/01-crm-marketing-vertrieb", "Webinar: CRM"],
|
||||
["webinar/02-automation", "Webinar: Automation"],
|
||||
["webinar/03-drumherum", "Webinar: Drumherum"],
|
||||
|
||||
Reference in new issue
Block a user