Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35ec805ba0 |
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ metadata:
|
||||
title: Courier
|
||||
description: Transaktionsmail für deine Apps über Amazon SES.
|
||||
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
|
||||
version: 26.11.18
|
||||
version: 26.11.19
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.18'
|
||||
versionName: '26.11.19'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
+119
@@ -2371,3 +2371,122 @@ select,
|
||||
min-height: var(--am-ziel-beruehrung);
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Seitenkopf [HB-SEITENKOPF] ──────────────────────────────────── */
|
||||
/* Baustein aus dem AImighty-CI (bauteile/) — Quelle ist das CI.
|
||||
Eine App trägt den Abschnitt unverändert; geprüft mit werkzeug/bauteile.py. */
|
||||
|
||||
/* ── Seitenkopf [HB-SEITENKOPF] ───────────────────────────────────────────────────
|
||||
Bleibt beim Rollen stehen. In einer Liste mit 200 Zeilen ist die
|
||||
Frage „wo bin ich und was kann ich hier tun" sonst nach dem dritten
|
||||
Bildschirm unbeantwortet. */
|
||||
|
||||
.seitenkopf {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--am-ebene-seitenkopf);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--am-raum-4);
|
||||
flex-wrap: wrap;
|
||||
padding: var(--am-raum-4) var(--am-raum-8);
|
||||
background: var(--am-seite);
|
||||
border-bottom: 1px solid var(--am-trennlinie);
|
||||
}
|
||||
|
||||
/* Titel und Anzahl in einer Zeile. Untereinander wuchs der Kopf mit
|
||||
seinem Inhalt und riss die Linie von der linken Spalte weg. */
|
||||
.seitenkopf-zeile {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: var(--am-raum-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Seitentitel in jeder AImighty-Anwendung gleich groß (ABGLEICH G1). */
|
||||
.seitenkopf h1 {
|
||||
font-size: var(--am-seitentitel);
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Die Unterzeile bricht nicht: lieber gekürzt mit „…“ als drei Zeilen
|
||||
Metatext am Handy (CI #22, werkzeug/zeilen.js). Der Titelblock darf
|
||||
dafür schmaler werden als sein Inhalt. */
|
||||
.seitenkopf > :first-child {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.seitenkopf-zahl {
|
||||
font-family: var(--am-schrift-mono);
|
||||
font-size: 0.8125rem;
|
||||
color: var(--am-text-gedaempft);
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.seitenkopf-pfad {
|
||||
font-size: 0.8125rem;
|
||||
color: var(--am-text-gedaempft);
|
||||
margin-bottom: var(--am-raum-1);
|
||||
}
|
||||
|
||||
.seitenkopf-pfad a:hover {
|
||||
color: var(--am-text-primaer);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Hinweise am Handy als Zeichen im Kopf (CI „Handy-Kopf“): „ⓘ 2“ neben
|
||||
dem Plus; getippt hängen sie als Fläche unter dem Kopf. Ohne Hinweis
|
||||
kein Zeichen. Am Desktop stehen sie wie bisher in `.seitenhinweise`. */
|
||||
.seitenkopf-hinweise:not(:has(.hinweis)) { display: none; }
|
||||
.seitenkopf-hinweise > summary {
|
||||
list-style: none; display: inline-flex; align-items: center; gap: var(--am-raum-1);
|
||||
height: 2rem; padding: 0 var(--am-raum-3); border-radius: var(--am-radius-voll);
|
||||
border: 1px solid var(--am-rand); background: var(--am-flaeche-1);
|
||||
font-size: 0.8125rem; font-weight: 600; color: var(--am-text-sekundaer); cursor: pointer;
|
||||
}
|
||||
.seitenkopf-hinweise > summary::-webkit-details-marker { display: none; }
|
||||
.seitenkopf-hinweise > summary:focus-visible { outline: 2px solid var(--am-fokus-ring); outline-offset: 2px; }
|
||||
.seitenkopf-hinweise[open] > summary { background: var(--am-flaeche-2); }
|
||||
.seitenkopf-hinweise:not([open]) .seitenkopf-hinweise-inhalt { display: none; }
|
||||
.seitenkopf-hinweise-inhalt {
|
||||
position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
|
||||
display: grid; gap: var(--am-raum-3);
|
||||
padding: var(--am-raum-3) var(--am-raum-4) var(--am-raum-4);
|
||||
background: var(--am-seite); border-bottom: 1px solid var(--am-trennlinie);
|
||||
max-height: 70dvh; overflow-y: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
.seitenkopf { padding: var(--am-raum-3) var(--am-raum-4); gap: var(--am-raum-2); }
|
||||
/* Knöpfe enger, damit Titel, Hinweis-Zeichen und Plus in eine Zeile
|
||||
passen; reicht der Platz nicht (lange Wort-Knöpfe), bricht der Kopf
|
||||
um, statt herauszuragen. */
|
||||
.seitenkopf > .btn-reihe { gap: var(--am-raum-2); }
|
||||
}
|
||||
|
||||
|
||||
/* ── Ende HB-SEITENKOPF ──────────────────────────────────────────── */
|
||||
|
||||
/* Courier sitzt im bereits gepolsterten Inhalt: kein doppelter Saum. */
|
||||
.seitenkopf {
|
||||
top: 0;
|
||||
margin-bottom: var(--am-raum-6);
|
||||
padding-inline: 0;
|
||||
padding-block: var(--am-raum-4);
|
||||
}
|
||||
|
||||
@media (max-width: 63.99rem) {
|
||||
.seitenkopf {
|
||||
top: var(--am-leistenhoehe);
|
||||
padding-block: var(--am-raum-3);
|
||||
}
|
||||
}
|
||||
+30
-30
@@ -2,36 +2,36 @@ import Link from "next/link";
|
||||
import { Code2 } from "lucide-react";
|
||||
|
||||
export function PageHeader({
|
||||
eyebrow = "Courier",
|
||||
title,
|
||||
lead,
|
||||
actions,
|
||||
code = true,
|
||||
eyebrow = "Courier",
|
||||
title,
|
||||
lead,
|
||||
actions,
|
||||
code = true,
|
||||
}: {
|
||||
eyebrow?: string;
|
||||
title: string;
|
||||
lead?: string;
|
||||
actions?: React.ReactNode;
|
||||
code?: boolean;
|
||||
eyebrow?: string;
|
||||
title: string;
|
||||
lead?: string;
|
||||
actions?: React.ReactNode;
|
||||
code?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className="app-pagehead">
|
||||
<div className="app-pagehead__row">
|
||||
<div>
|
||||
<p className="app-eyebrow">{eyebrow}</p>
|
||||
<h1>{title}</h1>
|
||||
{lead ? <p className="app-lead">{lead}</p> : null}
|
||||
</div>
|
||||
<div className="app-pagehead__actions">
|
||||
{actions}
|
||||
{code ? (
|
||||
<Link className="btn btn-sekundaer btn-klein" href="/docs" aria-label="API-Dokumentation">
|
||||
<Code2 className="app-nav__icon" aria-hidden="true" />
|
||||
API
|
||||
</Link>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<header className="seitenkopf">
|
||||
<div>
|
||||
<p className="app-eyebrow">{eyebrow}</p>
|
||||
<div className="seitenkopf-zeile">
|
||||
<h1>{title}</h1>
|
||||
</div>
|
||||
{lead ? <p className="app-lead">{lead}</p> : null}
|
||||
</div>
|
||||
<div className="btn-reihe">
|
||||
{actions}
|
||||
{code ? (
|
||||
<Link className="btn btn-sekundaer btn-klein" href="/docs" aria-label="API-Dokumentation">
|
||||
<Code2 className="app-nav__icon" aria-hidden="true" />
|
||||
API
|
||||
</Link>
|
||||
) : null}
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
+2
-2
@@ -2,7 +2,7 @@ apiVersion: v2
|
||||
name: courier
|
||||
description: Transaktionsmail-Gateway für hubsport.club über Amazon SES.
|
||||
type: application
|
||||
version: 26.11.18
|
||||
appVersion: "26.11.18"
|
||||
version: 26.11.19
|
||||
appVersion: "26.11.19"
|
||||
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
|
||||
home: https://git.aimighty.olares.de/aimighty/courier
|
||||
@@ -12,7 +12,7 @@ metadata:
|
||||
title: Courier
|
||||
description: Transaktionsmail für deine Apps über Amazon SES.
|
||||
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
|
||||
version: 26.11.18
|
||||
version: 26.11.19
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.18'
|
||||
versionName: '26.11.19'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "courier",
|
||||
"version": "26.11.18",
|
||||
"version": "26.11.19",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -H 0.0.0.0 -p 3400",
|
||||
@@ -12,7 +12,8 @@
|
||||
"worker": "tsx scripts/worker.ts",
|
||||
"ses:records": "node scripts/ses-records.mjs",
|
||||
"ses:dns": "node scripts/cloudflare-dns.mjs",
|
||||
"test:resend": "node scripts/test-resend.mjs"
|
||||
"test:resend": "node scripts/test-resend.mjs",
|
||||
"ci:check": "node scripts/check-ci.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-sesv2": "^3.1175.0",
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const css = readFileSync("app/globals.css", "utf8");
|
||||
const files = [
|
||||
"app/page.tsx",
|
||||
"app/messages/page.tsx",
|
||||
"app/keys/page.tsx",
|
||||
"app/domains/page.tsx",
|
||||
"app/suppressions/page.tsx",
|
||||
"app/metrics/page.tsx",
|
||||
"app/page-header.tsx",
|
||||
"app/empty-state.tsx",
|
||||
];
|
||||
const app = files.map((file) => readFileSync(file, "utf8")).join("\n");
|
||||
|
||||
const tokens = [
|
||||
"--am-seite",
|
||||
"--am-flaeche-1",
|
||||
"--am-text-primaer",
|
||||
"--am-handlung-ruhend",
|
||||
"--am-handlung-text",
|
||||
"--am-seitentitel",
|
||||
"--am-navigation-breite",
|
||||
"--am-raum-4",
|
||||
"--am-radius-mittel",
|
||||
"--am-ziel-beruehrung",
|
||||
];
|
||||
const classes = ["seitenkopf", "kennzahlen", "kennzahl", "tabelle", "werkzeugleiste", "karte", "leerzustand", "feld", "btn"];
|
||||
|
||||
const errors = [];
|
||||
for (const token of tokens) {
|
||||
if (!new RegExp(`${token}\\s*:`).test(css)) errors.push(`Token fehlt: ${token}`);
|
||||
}
|
||||
for (const name of classes) {
|
||||
if (!new RegExp(`\\.${name}(?:[^a-z-]|$)`).test(css)) errors.push(`CSS-Klasse fehlt: ${name}`);
|
||||
if (!app.includes(name)) errors.push(`Markup nutzt ${name} nicht`);
|
||||
}
|
||||
if (/\bds-button\b/.test(app)) errors.push("Altbestand: ds-button im Markup");
|
||||
if (/\bds-input\b/.test(app)) errors.push("Altbestand: ds-input im Markup");
|
||||
|
||||
if (errors.length) {
|
||||
console.error("CI-Check fehlgeschlagen:");
|
||||
for (const error of errors) console.error(" - " + error);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log("CI-Check ok: Token, Bausteinklassen und Markup sind vorhanden.");
|
||||
Reference in new issue
Block a user