Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9a1ae6d80 |
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.4
|
||||
version: 26.11.5
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.4'
|
||||
versionName: '26.11.5'
|
||||
fullDescription: |
|
||||
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
|
||||
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
|
||||
|
||||
+66
-2
@@ -118,9 +118,14 @@ body {
|
||||
}
|
||||
|
||||
.app-main {
|
||||
max-width: var(--ds-container-xl);
|
||||
padding-block: var(--ds-space-8) var(--ds-space-16);
|
||||
}
|
||||
|
||||
.app-header__inner {
|
||||
max-width: var(--ds-container-xl);
|
||||
}
|
||||
|
||||
.app-pagehead {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -186,9 +191,9 @@ body {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@media (min-width: 64rem) {
|
||||
@media (min-width: 80rem) {
|
||||
.app-grid--sidebar {
|
||||
grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 1fr);
|
||||
grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -453,3 +458,62 @@ body {
|
||||
min-height: var(--ds-target-touch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.app-message-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.app-message-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--ds-space-3);
|
||||
padding-block: var(--ds-space-3);
|
||||
border-bottom: var(--ds-border-thin) solid var(--ds-border);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.app-message-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.app-message-row:hover {
|
||||
background: var(--ds-surface-hover);
|
||||
}
|
||||
|
||||
.app-message-row__main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--ds-space-1);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-message-row__subject {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
color: var(--ds-link);
|
||||
font-weight: var(--ds-weight-semibold);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.app-message-row__meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--ds-space-2);
|
||||
color: var(--ds-text-muted);
|
||||
font-size: var(--ds-text-sm);
|
||||
}
|
||||
|
||||
.app-message-row .ds-badge {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
@media (max-width: 47.99rem) {
|
||||
.app-message-row__subject {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
+14
-48
@@ -1,7 +1,7 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { config } from "@/lib/config";
|
||||
import { datum, kurz } from "@/lib/format";
|
||||
import { datum } from "@/lib/format";
|
||||
import { dashboardStats } from "@/lib/queries";
|
||||
|
||||
import { StatusBadge } from "./status-badge";
|
||||
@@ -86,57 +86,23 @@ export default async function Startseite() {
|
||||
</Link>
|
||||
</div>
|
||||
{stats?.recent.length ? (
|
||||
<>
|
||||
<div className="app-table-scroll app-desktop-table">
|
||||
<table className="ds-table">
|
||||
<caption className="ds-visually-hidden">Die zuletzt angenommenen Nachrichten</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Zeit</th>
|
||||
<th>Empfänger</th>
|
||||
<th>Betreff</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{stats.recent.map((message) => (
|
||||
<tr key={message.id}>
|
||||
<td className="app-mono app-nowrap">{datum(message.created_at)}</td>
|
||||
<td>
|
||||
{message.to_emails[0]}
|
||||
{message.to_emails.length > 1 ? (
|
||||
<span className="app-muted"> +{message.to_emails.length - 1}</span>
|
||||
) : null}
|
||||
</td>
|
||||
<td>
|
||||
<Link href={`/messages/${message.id}`}>{kurz(message.subject, 48)}</Link>
|
||||
</td>
|
||||
<td>
|
||||
<StatusBadge status={message.status} />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div className="app-mobile-list">
|
||||
<div className="app-message-list">
|
||||
{stats.recent.map((message) => (
|
||||
<article key={message.id} className="app-mobile-item">
|
||||
<div className="app-mobile-item__top">
|
||||
<Link href={`/messages/${message.id}`}>{message.subject}</Link>
|
||||
<StatusBadge status={message.status} />
|
||||
</div>
|
||||
<div className="app-mobile-item__meta">
|
||||
<span>
|
||||
{message.to_emails[0]}
|
||||
{message.to_emails.length > 1 ? ` +${message.to_emails.length - 1}` : ""}
|
||||
<Link key={message.id} className="app-message-row" href={`/messages/${message.id}`}>
|
||||
<span className="app-message-row__main">
|
||||
<span className="app-message-row__subject">{message.subject}</span>
|
||||
<span className="app-message-row__meta">
|
||||
<span>
|
||||
{message.to_emails[0]}
|
||||
{message.to_emails.length > 1 ? ` +${message.to_emails.length - 1}` : ""}
|
||||
</span>
|
||||
<span className="app-mono">{datum(message.created_at)}</span>
|
||||
</span>
|
||||
<span className="app-mono">{datum(message.created_at)}</span>
|
||||
</div>
|
||||
</article>
|
||||
</span>
|
||||
<StatusBadge status={message.status} />
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="ds-empty">
|
||||
<p className="ds-empty__title">Noch keine Nachrichten</p>
|
||||
|
||||
+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.4
|
||||
appVersion: "26.11.4"
|
||||
version: 26.11.5
|
||||
appVersion: "26.11.5"
|
||||
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.4
|
||||
version: 26.11.5
|
||||
categories:
|
||||
- Applications
|
||||
|
||||
@@ -106,7 +106,7 @@ envs:
|
||||
default: "1000"
|
||||
|
||||
spec:
|
||||
versionName: '26.11.4'
|
||||
versionName: '26.11.5'
|
||||
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.4",
|
||||
"version": "26.11.5",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -H 0.0.0.0 -p 3400",
|
||||
|
||||
Reference in new issue
Block a user