Add owner inbox UI with address release
Web: "My listings" (listings, requests of a listing, conversation) in three panes on wide screens and one at a time on phones, and a sheet or dialog to release the exact address. Sign-in uses a link printed by `node run` (token in the URL fragment, kept in sessionStorage only). API: GET /api/v1/mine (own listings with request counts and whether an address is saved); inbox rows gain last_dir, needs_reply, preview, effort and grant_until, and can be filtered by listing. Docs: PROTOCOL.md and README describe the owner UI and login. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+146
@@ -106,6 +106,79 @@ const de = {
|
||||
"inbox.none": "Du hast noch keine Unterhaltungen. Öffne eine Anzeige und schreibe dem Anbieter.",
|
||||
"inbox.last": "Zuletzt: {date}",
|
||||
"inbox.note": "Diese Liste liegt nur in diesem Browser.",
|
||||
"nav.owner": "Meine Anzeigen",
|
||||
"own.loginTitle": "Anmelden als Anbieter",
|
||||
"own.loginHelp":
|
||||
"Beim Start gibt dein Knoten im Terminal einen Anmelde-Link aus. Öffne ihn hier, oder füge den Token (Datei admin.token im Datenordner) ein. Er bleibt nur in diesem Tab gespeichert.",
|
||||
"own.token": "Token",
|
||||
"own.login": "Anmelden",
|
||||
"own.loginBad": "Der Knoten hat den Token abgelehnt.",
|
||||
"own.logout": "Abmelden",
|
||||
"own.listings": "Deine Anzeigen",
|
||||
"own.none": "Dein Knoten hat keine aktiven Anzeigen.",
|
||||
"own.perMonth": "/ Monat",
|
||||
"own.needReply": "{n} brauchen eine Antwort",
|
||||
"own.noRequests": "Keine Anfragen",
|
||||
"own.allAnswered": "Alle beantwortet",
|
||||
"own.addressSaved": "Adresse gespeichert",
|
||||
"own.noAddress": "Keine Adresse gespeichert",
|
||||
"own.backListings": "← Anzeigen",
|
||||
"own.backRequests": "← Anfragen",
|
||||
"own.pickListing": "Wähle links eine Anzeige.",
|
||||
"own.pickRequest": "Wähle eine Anfrage.",
|
||||
"own.addrTitle": "Adresse auf deinem Knoten",
|
||||
"own.addrHelp": "Wird nie veröffentlicht. Nur Personen, denen du sie freigibst, erhalten sie.",
|
||||
"own.addrNone": "Noch keine Adresse gespeichert. Ohne sie kannst du keine Adresse freigeben.",
|
||||
"own.addrChange": "Ändern",
|
||||
"own.addrAdd": "Adresse hinzufügen",
|
||||
"own.addrSave": "Speichern",
|
||||
"own.addrRemove": "Entfernen",
|
||||
"own.addrCancel": "Abbrechen",
|
||||
"own.fAddress": "Adresse",
|
||||
"own.fPhone": "Telefon (optional)",
|
||||
"own.fEmail": "E-Mail (optional)",
|
||||
"own.requests": "Anfragen",
|
||||
"own.request": "Anfrage #{id}",
|
||||
"own.filterAll": "Alle {n}",
|
||||
"own.filterReply": "Braucht Antwort {n}",
|
||||
"own.filterHidden": "Link versteckt {n}",
|
||||
"own.noMatch": "Keine Anfragen in dieser Ansicht.",
|
||||
"own.stReply": "Braucht Antwort",
|
||||
"own.stReplied": "Beantwortet",
|
||||
"own.stHidden": "Link versteckt",
|
||||
"own.stGrant": "Adresse bis {date}",
|
||||
"own.stGrantEnded": "Adresse abgelaufen",
|
||||
"own.effort": "Aufwand {n} Bit",
|
||||
"own.hiddenPreview": "Ausgeblendet: enthält einen Link",
|
||||
"own.limitNote":
|
||||
"Pro Anzeige zeigt dein Knoten nur eine begrenzte Zahl neuer Anfragen am Tag; der Rest wartet, die mit dem größten Aufwand zuerst.",
|
||||
"own.buyer": "Interessent",
|
||||
"own.you": "Du",
|
||||
"own.anon": "Anonym, Ende-zu-Ende-verschlüsselt",
|
||||
"own.first":
|
||||
"Erste Nachricht dieser Person. Bis du antwortest, darf sie nur kurzen Text ohne Links schicken. Alles wird als reiner Text angezeigt, nie als Link.",
|
||||
"own.hiddenMsg": "Ausgeblendet: Eine erste Nachricht muss kurz sein und darf keine Links enthalten.",
|
||||
"own.grantSent": "Adresse freigegeben bis {date}",
|
||||
"own.reply": "Antwort",
|
||||
"own.send": "Senden",
|
||||
"own.sending": "Wird gesendet …",
|
||||
"own.release": "Adresse freigeben",
|
||||
"own.delete": "Unterhaltung löschen",
|
||||
"own.deleteSure": "Wirklich löschen? Sie wird von deinem Knoten entfernt.",
|
||||
"own.deleteYes": "Ja, löschen",
|
||||
"own.sheetTitle": "Adresse freigeben",
|
||||
"own.sheetHelp":
|
||||
"Eine signierte Nachricht, nur für diese Person sichtbar. Ihr Bildschirm blendet sie nach dem Datum aus. Sie könnte sie trotzdem kopiert haben.",
|
||||
"own.fNote": "Hinweis an die Person",
|
||||
"own.fValid": "Sichtbar für",
|
||||
"own.days": "{n} Tage",
|
||||
"own.day": "1 Tag",
|
||||
"own.remember": "Diese Adresse für die Anzeige speichern",
|
||||
"own.sendAddress": "Adresse senden",
|
||||
"own.close": "Schließen",
|
||||
"own.needAddress": "Bitte gib eine Adresse ein.",
|
||||
"own.loadError": "Konnte nicht geladen werden.",
|
||||
"own.err": "Fehlgeschlagen: {detail}",
|
||||
"verify.title": "Prüfung in deinem Browser",
|
||||
"verify.intro":
|
||||
"Diese Prüfung läuft lokal, nicht auf dem Server. Ein Knoten kann Anzeigen also nicht unbemerkt fälschen.",
|
||||
@@ -230,6 +303,79 @@ const en: Record<keyof typeof de, string> = {
|
||||
"inbox.none": "You have no conversations yet. Open a listing and write to the owner.",
|
||||
"inbox.last": "Last activity: {date}",
|
||||
"inbox.note": "This list is kept only in this browser.",
|
||||
"nav.owner": "My listings",
|
||||
"own.loginTitle": "Sign in as owner",
|
||||
"own.loginHelp":
|
||||
"When it starts, your node prints a sign-in link in the terminal. Open it here, or paste the token (the file admin.token in the data folder). It is kept in this tab only.",
|
||||
"own.token": "Token",
|
||||
"own.login": "Sign in",
|
||||
"own.loginBad": "The node rejected the token.",
|
||||
"own.logout": "Sign out",
|
||||
"own.listings": "Your listings",
|
||||
"own.none": "Your node has no active listings.",
|
||||
"own.perMonth": "/ month",
|
||||
"own.needReply": "{n} need a reply",
|
||||
"own.noRequests": "No requests",
|
||||
"own.allAnswered": "All answered",
|
||||
"own.addressSaved": "Address saved",
|
||||
"own.noAddress": "No address saved",
|
||||
"own.backListings": "← Listings",
|
||||
"own.backRequests": "← Requests",
|
||||
"own.pickListing": "Choose a listing on the left.",
|
||||
"own.pickRequest": "Choose a request.",
|
||||
"own.addrTitle": "Address on your node",
|
||||
"own.addrHelp": "Never published. Only people you release it to receive it.",
|
||||
"own.addrNone": "No address saved yet. Without one you cannot release an address.",
|
||||
"own.addrChange": "Change",
|
||||
"own.addrAdd": "Add address",
|
||||
"own.addrSave": "Save",
|
||||
"own.addrRemove": "Remove",
|
||||
"own.addrCancel": "Cancel",
|
||||
"own.fAddress": "Address",
|
||||
"own.fPhone": "Phone (optional)",
|
||||
"own.fEmail": "Email (optional)",
|
||||
"own.requests": "Requests",
|
||||
"own.request": "Request #{id}",
|
||||
"own.filterAll": "All {n}",
|
||||
"own.filterReply": "Needs reply {n}",
|
||||
"own.filterHidden": "Link hidden {n}",
|
||||
"own.noMatch": "No requests in this view.",
|
||||
"own.stReply": "Needs reply",
|
||||
"own.stReplied": "Replied",
|
||||
"own.stHidden": "Link hidden",
|
||||
"own.stGrant": "Address until {date}",
|
||||
"own.stGrantEnded": "Address expired",
|
||||
"own.effort": "Effort {n} bit",
|
||||
"own.hiddenPreview": "Hidden: contains a link",
|
||||
"own.limitNote":
|
||||
"Your node shows only a limited number of new requests per listing per day; the rest wait, strongest effort first.",
|
||||
"own.buyer": "Buyer",
|
||||
"own.you": "You",
|
||||
"own.anon": "Anonymous, end-to-end encrypted",
|
||||
"own.first":
|
||||
"First message from this person. Until you reply they can send short text only, no links. Everything is shown as plain text, never as a link.",
|
||||
"own.hiddenMsg": "Hidden: a first message must be short and contain no links.",
|
||||
"own.grantSent": "Address released until {date}",
|
||||
"own.reply": "Reply",
|
||||
"own.send": "Send",
|
||||
"own.sending": "Sending …",
|
||||
"own.release": "Release address",
|
||||
"own.delete": "Delete conversation",
|
||||
"own.deleteSure": "Really delete? It is removed from your node.",
|
||||
"own.deleteYes": "Yes, delete",
|
||||
"own.sheetTitle": "Release address",
|
||||
"own.sheetHelp":
|
||||
"A signed message, visible only to this person. Their screen hides it after the date. They could still have copied it.",
|
||||
"own.fNote": "Note to the buyer",
|
||||
"own.fValid": "Visible for",
|
||||
"own.days": "{n} days",
|
||||
"own.day": "1 day",
|
||||
"own.remember": "Save this address for the listing",
|
||||
"own.sendAddress": "Send address",
|
||||
"own.close": "Close",
|
||||
"own.needAddress": "Please enter an address.",
|
||||
"own.loadError": "Could not be loaded.",
|
||||
"own.err": "Failed: {detail}",
|
||||
"verify.title": "Checked in your browser",
|
||||
"verify.intro":
|
||||
"This check runs locally, not on the server, so a node cannot forge listings unnoticed.",
|
||||
|
||||
Reference in New Issue
Block a user