feat(settings): one look for every user and admin settings page

The settings pages had grown into a mix of styles: folds, dialogs behind
rows, full-width rows next to boxed ones, pills for every figure and buttons
in four sizes. Every page now uses the same kit.

- Cards keep their tinted head band; every part of a card is a rounded block
  with its own small head (SettingsBlock), and rows sit in rounded boxes.
- Nothing folds and nothing hides behind a dialog: the MCP config, OAuth
  scopes, mail how-to, AI privacy note and addon sub-options are all shown.
- Each page is split into two columns balanced by length (SettingsColumns).
- Long explanations moved into an info mark next to the label (HintMark).
- One button size everywhere (text-control); tab names are one word.
- Admin: the old Settings tab is split into Security and Services
  (?tab=settings still opens Security, and the phone keeps its single
  Settings section for both); the Integration group is gone, live flights
  and mail import sit next to the addons they configure.
- Addons: one card per type with rows, no search, filter or fold.
- Quota, TREK API facts, mail import status and Google's daily limit are
  compact lines and strips instead of tiles and pills.
- Language is a select; routing has its own card under the defaults;
  storage saves from the foot of its categories card.
- Unused keys, FoldSummary and the page-width wrapper are removed.
This commit is contained in:
Maurice
2026-11-13 23:18:28 +01:00
parent 5fe3dea4cc
commit 94ac7673a5
138 changed files with 1299 additions and 2188 deletions
+7 -13
View File
@@ -2,6 +2,8 @@ import type { TranslationStrings } from '../types';
const admin: TranslationStrings = {
'admin.notifications.title': 'Thông báo',
'admin.notifications.channels': 'Kênh',
'admin.notifications.adminAlerts': 'Cảnh báo quản trị',
'admin.notifications.hint': 'Chọn một kênh thông báo. Chỉ có một người có thể hoạt động tại một thời điểm.',
'admin.notifications.none': 'Tắt',
'admin.notifications.email': 'Email (SMTP)', // same-as-en
@@ -123,6 +125,8 @@ const admin: TranslationStrings = {
'admin.invite.createError': 'Không tạo được liên kết mời',
'admin.invite.deleteError': 'Không xóa được liên kết mời',
'admin.tabs.settings': 'Cài đặt',
'admin.tabs.security': 'Bảo mật',
'admin.tabs.services': 'Dịch vụ',
'admin.allowRegistration': 'Cho phép đăng ký',
'admin.allowRegistrationHint': 'Người dùng mới có thể tự đăng ký',
'admin.authMethods': 'Phương thức xác thực',
@@ -183,10 +187,8 @@ const admin: TranslationStrings = {
'admin.trekApi.included': 'Có',
'admin.trekApi.notIncluded': 'Không có',
'admin.trekApi.quota.title': 'Hạn mức hôm nay',
'admin.trekApi.quota.used': 'Đã dùng',
'admin.trekApi.quota.remaining': 'Còn lại',
'admin.trekApi.quota.resets': 'Đặt lại lúc',
'admin.trekApi.quota.limit': 'Giới hạn',
'admin.trekApi.quota.key': 'Khóa',
'admin.trekApi.quota.state.connected': 'Đã kết nối',
'admin.trekApi.quota.state.registering': 'Đang thiết lập',
@@ -311,8 +313,9 @@ const admin: TranslationStrings = {
'admin.collab.whatsnext.title': 'Tiếp theo là gì',
'admin.collab.whatsnext.subtitle': 'Đề xuất hoạt động và các bước tiếp theo',
'admin.tabs.config': 'Cá nhân hóa',
'admin.tabs.defaults': 'Mặc định của người dùng',
'admin.tabs.defaults': 'Mặc định',
'admin.defaultSettings.title': 'Cài đặt người dùng mặc định',
'admin.defaultSettings.routing': 'Định tuyến',
'admin.defaultSettings.description':
'Đặt mặc định cho toàn phiên bản. Người dùng chưa thay đổi cài đặt sẽ thấy các giá trị này. Những thay đổi của riêng họ luôn được ưu tiên.',
'admin.defaultSettings.saved': 'Đã lưu mặc định',
@@ -784,14 +787,6 @@ const admin: TranslationStrings = {
'admin.addons.toast.updated': 'Đã cập nhật tiện ích bổ sung',
'admin.addons.toast.error': 'Không thể cập nhật tiện ích bổ sung',
'admin.addons.group.count': '{enabled} trên {total} đã bật',
'admin.addons.search': 'Tìm tiện ích',
'admin.addons.filter': 'Hiển thị',
'admin.addons.filter.all': 'Tất cả',
'admin.addons.filter.on': 'Bật',
'admin.addons.filter.off': 'Tắt',
'admin.addons.noMatch': 'Không có tiện ích nào khớp với tìm kiếm hoặc bộ lọc.',
'admin.addons.subOptions': '{count} tùy chọn',
'admin.addons.subOptionsOn': '{count} đang bật',
'admin.toursWanderer.title': 'wanderer',
'admin.toursWanderer.subtitle':
'Người dùng có thể kết nối máy chủ wanderer riêng và nhập các cung đường của máy chủ đó thành chuyến tham quan',
@@ -817,7 +812,7 @@ const admin: TranslationStrings = {
'admin.weather.requestsDesc': 'Miễn phí, không cần khóa API',
'admin.weather.locationHint':
'Thời tiết dựa trên địa điểm đầu tiên có tọa độ mỗi ngày. Nếu không có địa điểm nào được chỉ định cho một ngày thì bất kỳ địa điểm nào trong danh sách địa điểm đều được sử dụng làm tham chiếu.',
'admin.tabs.mcpTokens': 'MCP Truy cập',
'admin.tabs.mcpTokens': 'MCP',
'admin.mcpTokens.title': 'MCP Truy cập',
'admin.mcpTokens.subtitle': 'Quản lý phiên OAuth và mã thông báo API trên tất cả người dùng',
'admin.mcpTokens.sectionTitle': 'API Mã thông báo',
@@ -917,7 +912,6 @@ const admin: TranslationStrings = {
'admin.passkey.resetDone': 'Đã xóa {count} mật mã',
'admin.group.users': 'Người dùng',
'admin.group.config': 'Cấu hình',
'admin.group.integration': 'Tích hợp',
'admin.group.maintenance': 'Bảo trì',
'admin.invite.tripLabel': 'Thêm vào chuyến đi (tùy chọn)',
'admin.invite.tripNone': 'Không có chuyến đi',
-1
View File
@@ -38,7 +38,6 @@ const mailAdmin: TranslationStrings = {
'mailAdmin.problem.portInvalid': 'Nhập một cổng từ 1 đến 65535.',
'mailAdmin.problem.templateToken': 'Địa chỉ cần có {token} ở vị trí mã của từng người.',
'mailAdmin.problem.dailyInvalid': 'Nhập một số nguyên từ 0 đến 1000.',
'mailAdmin.status.title': 'Trạng thái',
'mailAdmin.status.lastRead': 'Đọc lần cuối {time}',
'mailAdmin.status.never': 'chưa bao giờ',
'mailAdmin.status.mails': 'Email, 24 giờ',