Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c38fd95e8b |
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.13
|
||||
version: 26.11.14
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.13'
|
||||
versionName: '26.11.14'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
@@ -1224,3 +1224,8 @@ a.app-nav__link:hover {
|
||||
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">
|
||||
|
||||
@@ -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.13
|
||||
appVersion: "26.11.13"
|
||||
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.13
|
||||
version: 26.11.14
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.13'
|
||||
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.13",
|
||||
"version": "26.11.14",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -H 0.0.0.0 -p 3400",
|
||||
|
||||
Reference in new issue
Block a user