Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c38fd95e8b | ||
|
|
e6ae9b9c1d |
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.12
|
||||
version: 26.11.14
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.12'
|
||||
versionName: '26.11.14'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
@@ -1185,3 +1185,47 @@ a.app-nav__link:hover {
|
||||
color: var(--ds-text-subtle);
|
||||
font-size: var(--ds-text-xs);
|
||||
}
|
||||
|
||||
/* Preisrechner: Eingabe und Button auf einer Linie */
|
||||
.app-calc {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: var(--ds-space-6);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.app-calc__form {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: var(--ds-space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.app-calc__result {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: var(--ds-space-1);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.app-calc__value {
|
||||
font-size: var(--ds-text-3xl);
|
||||
}
|
||||
|
||||
@media (max-width: 63.99rem) {
|
||||
.app-calc {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.app-calc__result {
|
||||
align-items: flex-start;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* Zahlenspalten: Kopf und Werte rechtsbündig */
|
||||
.ds-table th.ds-table__num {
|
||||
text-align: right;
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
import { useActionState } from "react";
|
||||
|
||||
import { CopyButton } from "@/app/copy-button";
|
||||
import { Select } from "@/app/select";
|
||||
|
||||
import { createKey, type KeyState } from "./actions";
|
||||
|
||||
@@ -49,13 +50,13 @@ export function KeyForm({ domains }: { domains: string[] }) {
|
||||
<label className="ds-field__label" htmlFor="domain">
|
||||
Absenderdomain
|
||||
</label>
|
||||
<select className="ds-select" id="domain" name="domain" defaultValue={domains[0]} required>
|
||||
<Select id="domain" name="domain" defaultValue={domains[0]} required>
|
||||
{domains.map((domain) => (
|
||||
<option key={domain} value={domain}>
|
||||
{domain}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
<span className="ds-field__hint" id="domain-hint">
|
||||
Nur Adressen dieser Domain werden akzeptiert. Weitere Domain unter{" "}
|
||||
<a href="/domains/new">Domains</a> anlegen.
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Mail } from "lucide-react";
|
||||
|
||||
import { EmptyState } from "@/app/empty-state";
|
||||
import { PageHeader } from "@/app/page-header";
|
||||
import { Select } from "@/app/select";
|
||||
import { StatusBadge } from "@/app/status-badge";
|
||||
import { datum, relativ } from "@/lib/format";
|
||||
import { listApiKeys, listMessages } from "@/lib/queries";
|
||||
@@ -93,38 +94,38 @@ export default async function Nachrichten({
|
||||
<label className="ds-visually-hidden" htmlFor="status">
|
||||
Status
|
||||
</label>
|
||||
<select className="ds-select" id="status" name="status" defaultValue={status}>
|
||||
<Select id="status" name="status" defaultValue={status}>
|
||||
{STATUS.map((item) => (
|
||||
<option key={item.value || "all"} value={item.value}>
|
||||
{item.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="ds-field">
|
||||
<label className="ds-visually-hidden" htmlFor="key">
|
||||
API-Key
|
||||
</label>
|
||||
<select className="ds-select" id="key" name="key" defaultValue={keyId}>
|
||||
<Select id="key" name="key" defaultValue={keyId}>
|
||||
<option value="">Alle API-Keys</option>
|
||||
{keys.map((key) => (
|
||||
<option key={key.id} value={key.id}>
|
||||
{key.app} · {key.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="ds-field">
|
||||
<label className="ds-visually-hidden" htmlFor="days">
|
||||
Zeitraum
|
||||
</label>
|
||||
<select className="ds-select" id="days" name="days" defaultValue={String(days)}>
|
||||
<Select id="days" name="days" defaultValue={String(days)}>
|
||||
{DAYS.map((item) => (
|
||||
<option key={item.value} value={item.value}>
|
||||
{item.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="app-toolbar__actions">
|
||||
<button className="ds-button" type="submit">
|
||||
|
||||
@@ -3,6 +3,7 @@ import { BarChart3 } from "lucide-react";
|
||||
|
||||
import { EmptyState } from "@/app/empty-state";
|
||||
import { PageHeader } from "@/app/page-header";
|
||||
import { Select } from "@/app/select";
|
||||
import { datum } from "@/lib/format";
|
||||
import { dailyMetrics, listApiKeys } from "@/lib/queries";
|
||||
|
||||
@@ -72,26 +73,26 @@ export default async function Metrics({
|
||||
<label className="ds-visually-hidden" htmlFor="days">
|
||||
Zeitraum
|
||||
</label>
|
||||
<select className="ds-select" id="days" name="days" defaultValue={String(days)}>
|
||||
<Select id="days" name="days" defaultValue={String(days)}>
|
||||
{RANGES.map((range) => (
|
||||
<option key={range.value} value={range.value}>
|
||||
{range.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="ds-field">
|
||||
<label className="ds-visually-hidden" htmlFor="key">
|
||||
API-Key
|
||||
</label>
|
||||
<select className="ds-select" id="key" name="key" defaultValue={keyId}>
|
||||
<Select id="key" name="key" defaultValue={keyId}>
|
||||
<option value="">Alle API-Keys</option>
|
||||
{keys.map((key) => (
|
||||
<option key={key.id} value={key.id}>
|
||||
{key.app} · {key.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="app-toolbar__actions">
|
||||
<button className="ds-button" type="submit">
|
||||
|
||||
+30
-23
@@ -75,30 +75,37 @@ export default async function Pricing({
|
||||
<p className="app-muted">AWS-Listenpreise für eu-west-1, ohne Steuern.</p>
|
||||
</div>
|
||||
</div>
|
||||
<form className="app-toolbar app-toolbar--pricing" method="get">
|
||||
<div className="ds-field">
|
||||
<label className="ds-field__label" htmlFor="volume">
|
||||
Mails pro Monat
|
||||
</label>
|
||||
<input
|
||||
className="ds-input"
|
||||
id="volume"
|
||||
name="volume"
|
||||
type="number"
|
||||
min={1}
|
||||
step={1000}
|
||||
defaultValue={volume}
|
||||
required
|
||||
/>
|
||||
<span className="ds-field__hint">Standard: 15.000 (500/Tag).</span>
|
||||
<div className="app-calc">
|
||||
<form className="app-calc__form" method="get">
|
||||
<div className="ds-field">
|
||||
<label className="ds-field__label" htmlFor="volume">
|
||||
Mails pro Monat
|
||||
</label>
|
||||
<input
|
||||
className="ds-input"
|
||||
id="volume"
|
||||
name="volume"
|
||||
type="number"
|
||||
min={1}
|
||||
step={1000}
|
||||
defaultValue={volume}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<div className="app-toolbar__actions">
|
||||
<button className="ds-button" type="submit">
|
||||
<Calculator className="app-nav__icon" aria-hidden="true" />
|
||||
Berechnen
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div className="app-calc__result">
|
||||
<span className="ds-stat__label">Günstigster Plan bei {volume.toLocaleString("de-DE")} Mails</span>
|
||||
<span className="ds-stat__value app-calc__value">{usd(cheapest.cost)}</span>
|
||||
<span className="app-muted">{cheapest.plan.name}</span>
|
||||
</div>
|
||||
<div className="app-toolbar__actions">
|
||||
<button className="ds-button" type="submit">
|
||||
<Calculator className="app-nav__icon" aria-hidden="true" />
|
||||
Berechnen
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<p className="ds-field__hint app-section">Standard: 15.000 (500/Tag).</p>
|
||||
</section>
|
||||
|
||||
<section className="app-plan-grid app-section" aria-label="SES-Preispläne">
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { ChevronDown } from "lucide-react";
|
||||
import type { SelectHTMLAttributes } from "react";
|
||||
|
||||
export function Select({ className, children, ...props }: SelectHTMLAttributes<HTMLSelectElement>) {
|
||||
return (
|
||||
<span className="ds-select-wrap">
|
||||
<select className={`ds-select${className ? ` ${className}` : ""}`} {...props}>
|
||||
{children}
|
||||
</select>
|
||||
<ChevronDown className="ds-select__chevron" aria-hidden="true" />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import { Ban } from "lucide-react";
|
||||
|
||||
import { EmptyState } from "@/app/empty-state";
|
||||
import { PageHeader } from "@/app/page-header";
|
||||
import { Select } from "@/app/select";
|
||||
import { datum } from "@/lib/format";
|
||||
import { listSuppressions } from "@/lib/queries";
|
||||
|
||||
@@ -177,11 +178,11 @@ export default async function Suppressions({
|
||||
<label className="ds-field__label" htmlFor="reason">
|
||||
Grund
|
||||
</label>
|
||||
<select className="ds-select" id="reason" name="reason" defaultValue="manual">
|
||||
<Select id="reason" name="reason" defaultValue="manual">
|
||||
<option value="manual">Manuell</option>
|
||||
<option value="hard_bounce">Harter Bounce</option>
|
||||
<option value="complaint">Beschwerde</option>
|
||||
</select>
|
||||
</Select>
|
||||
</div>
|
||||
<div className="app-actions">
|
||||
<button className="ds-button" type="submit">
|
||||
|
||||
+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.12
|
||||
appVersion: "26.11.12"
|
||||
version: 26.11.14
|
||||
appVersion: "26.11.14"
|
||||
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.12
|
||||
version: 26.11.14
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.12'
|
||||
versionName: '26.11.14'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "courier",
|
||||
"version": "26.11.12",
|
||||
"version": "26.11.14",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -H 0.0.0.0 -p 3400",
|
||||
|
||||
Reference in new issue
Block a user