,
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@ read-only `SharePage` (no auth), everything else renders the authenticated app.
|
||||
- `AdminCenter.tsx` — `/admin` route (admin gate + locked screen otherwise):
|
||||
tabbed hub (Accounts / Features / Mail) reusing `AdminPanel`, server
|
||||
feature `Switch`es (`registrationEnabled`, `ocrEnabled` via
|
||||
`/api/admin/settings`), SMTP status card. Follows the platform theme.
|
||||
`/api/admin/settings`), SMTP viewer (password blurred by default, eye toggle
|
||||
to reveal) + connectivity tester (verify + send test mail). Follows the platform theme.
|
||||
- `SharePage.tsx` — public read-only view, fetches `/api/share/:id` unauthenticated
|
||||
(`{ title, topic, model, authorName, authorAvatarUrl, sharedAt, messages }`);
|
||||
user messages render the author's avatar via `Avatar` (URL or initials).
|
||||
|
||||
+3
-1
@@ -57,7 +57,9 @@ unshare. See `AGENTS.md`.
|
||||
The sidebar **Admin Center** button (admin only) opens the `/admin` page with
|
||||
four tabs: **Accounts** (same manager as before, incl. the Ollama model
|
||||
catalog), **Access** (access-request wishlist triage, see below),
|
||||
**Features** (server-side switches), **Mail** (SMTP status).
|
||||
**Features** (server-side switches), **Mail** (SMTP credentials viewer +
|
||||
connectivity tester: `GET /api/admin/mail`, `POST /api/admin/mail/verify`,
|
||||
`POST /api/admin/mail/test`, admin Bearer only).
|
||||
|
||||
- `registration_enabled` (default off): when on, the login page shows a
|
||||
working **Register** button — anyone can create an account (key shown once)
|
||||
|
||||
Reference in New Issue
Block a user