mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
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:
@@ -2,6 +2,8 @@ import type { TranslationStrings } from '../types';
|
||||
|
||||
const admin: TranslationStrings = {
|
||||
'admin.notifications.title': 'การแจ้งเตือน',
|
||||
'admin.notifications.channels': 'ช่องทาง',
|
||||
'admin.notifications.adminAlerts': 'การแจ้งเตือนผู้ดูแล',
|
||||
'admin.notifications.hint': 'เลือกช่องทางการแจ้งเตือนหนึ่งช่องทาง สามารถใช้งานได้ครั้งละหนึ่งรายการเท่านั้น',
|
||||
'admin.notifications.none': 'ปิดการใช้งาน',
|
||||
'admin.notifications.email': 'อีเมล์ (SMTP)',
|
||||
@@ -122,6 +124,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': 'ไม่สามารถสร้างลิงก์คำเชิญได้',
|
||||
'admin.invite.deleteError': 'ลบลิงก์คำเชิญไม่สำเร็จ',
|
||||
'admin.tabs.settings': 'การตั้งค่า',
|
||||
'admin.tabs.security': 'ความปลอดภัย',
|
||||
'admin.tabs.services': 'บริการ',
|
||||
'admin.allowRegistration': 'อนุญาตให้ลงทะเบียน',
|
||||
'admin.allowRegistrationHint': 'ผู้ใช้ใหม่สามารถลงทะเบียนด้วยตนเองได้',
|
||||
'admin.authMethods': 'วิธีการรับรองความถูกต้อง',
|
||||
@@ -206,8 +210,9 @@ const admin: TranslationStrings = {
|
||||
'admin.collab.whatsnext.title': 'อะไรต่อไป',
|
||||
'admin.collab.whatsnext.subtitle': 'ข้อเสนอแนะกิจกรรมและขั้นตอนต่อไป',
|
||||
'admin.tabs.config': 'การปรับเปลี่ยนในแบบของคุณ',
|
||||
'admin.tabs.defaults': 'ค่าเริ่มต้นของผู้ใช้',
|
||||
'admin.tabs.defaults': 'ค่าเริ่มต้น',
|
||||
'admin.defaultSettings.title': 'การตั้งค่าผู้ใช้เริ่มต้น',
|
||||
'admin.defaultSettings.routing': 'การหาเส้นทาง',
|
||||
'admin.defaultSettings.description':
|
||||
'ตั้งค่าเริ่มต้นทั่วทั้งอินสแตนซ์ ผู้ใช้ที่ไม่ได้เปลี่ยนการตั้งค่าจะเห็นค่าเหล่านี้ การเปลี่ยนแปลงของพวกเขาเองมีความสำคัญเสมอ',
|
||||
'admin.defaultSettings.saved': 'บันทึกค่าเริ่มต้นแล้ว',
|
||||
@@ -644,14 +649,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'อัพเดตแอดออนแล้ว',
|
||||
'admin.addons.toast.error': 'ไม่สามารถอัปเดต addon',
|
||||
'admin.addons.group.count': 'เปิดใช้งาน {enabled} จาก {total} แล้ว',
|
||||
'admin.addons.search': 'ค้นหาส่วนเสริม',
|
||||
'admin.addons.filter': 'แสดง',
|
||||
'admin.addons.filter.all': 'ทั้งหมด',
|
||||
'admin.addons.filter.on': 'เปิด',
|
||||
'admin.addons.filter.off': 'ปิด',
|
||||
'admin.addons.noMatch': 'ไม่มีส่วนเสริมที่ตรงกับการค้นหาหรือตัวกรอง',
|
||||
'admin.addons.subOptions': '{count} ตัวเลือก',
|
||||
'admin.addons.subOptionsOn': 'เปิดอยู่ {count}',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle':
|
||||
'ผู้ใช้เชื่อมต่ออินสแตนซ์ wanderer ของตนเองและนำเข้าเส้นทางเดินจากที่นั่นเป็นทัวร์ได้',
|
||||
@@ -677,7 +674,7 @@ const admin: TranslationStrings = {
|
||||
'admin.weather.requestsDesc': 'ฟรี ไม่ต้องใช้คีย์ API',
|
||||
'admin.weather.locationHint':
|
||||
'สภาพอากาศจะขึ้นอยู่กับสถานที่แรกพร้อมพิกัดในแต่ละวัน หากไม่มีการกำหนดสถานที่ในหนึ่งวัน สถานที่ใดๆ จากรายการสถานที่จะถูกนำมาใช้เป็นข้อมูลอ้างอิง',
|
||||
'admin.tabs.mcpTokens': 'การเข้าถึง MCP',
|
||||
'admin.tabs.mcpTokens': 'MCP',
|
||||
'admin.mcpTokens.title': 'การเข้าถึง MCP',
|
||||
'admin.mcpTokens.subtitle': 'จัดการเซสชัน OAuth และโทเค็น API ให้กับผู้ใช้ทั้งหมด',
|
||||
'admin.mcpTokens.sectionTitle': 'โทเค็น API',
|
||||
@@ -774,7 +771,6 @@ const admin: TranslationStrings = {
|
||||
'admin.passkey.resetDone': 'ลบพาสคีย์ {count} รายการแล้ว',
|
||||
'admin.group.users': 'ผู้ใช้',
|
||||
'admin.group.config': 'การกำหนดค่า',
|
||||
'admin.group.integration': 'การเชื่อมต่อ',
|
||||
'admin.group.maintenance': 'การบำรุงรักษา',
|
||||
'admin.invite.tripLabel': 'เพิ่มในการเดินทาง (ไม่บังคับ)',
|
||||
'admin.invite.tripNone': 'ไม่มีการเดินทาง',
|
||||
@@ -817,10 +813,8 @@ const admin: TranslationStrings = {
|
||||
'admin.trekApi.included': 'รวมอยู่',
|
||||
'admin.trekApi.notIncluded': 'ไม่รวมอยู่',
|
||||
'admin.trekApi.quota.title': 'โควตาวันนี้',
|
||||
'admin.trekApi.quota.used': 'ใช้ไปแล้ว',
|
||||
'admin.trekApi.quota.remaining': 'คงเหลือ',
|
||||
'admin.trekApi.quota.resets': 'รีเซ็ตเวลา',
|
||||
'admin.trekApi.quota.limit': 'ขีดจำกัด',
|
||||
'admin.trekApi.quota.key': 'คีย์',
|
||||
'admin.trekApi.quota.state.connected': 'เชื่อมต่อแล้ว',
|
||||
'admin.trekApi.quota.state.registering': 'กำลังตั้งค่า',
|
||||
|
||||
@@ -38,7 +38,6 @@ const mailAdmin: TranslationStrings = {
|
||||
'mailAdmin.problem.portInvalid': 'กรอกพอร์ตระหว่าง 1 ถึง 65535',
|
||||
'mailAdmin.problem.templateToken': 'ที่อยู่ต้องมี {token} ตรงตำแหน่งรหัสของแต่ละคน',
|
||||
'mailAdmin.problem.dailyInvalid': 'กรอกจำนวนเต็มตั้งแต่ 0 ถึง 1000',
|
||||
'mailAdmin.status.title': 'สถานะ',
|
||||
'mailAdmin.status.lastRead': 'อ่านล่าสุด {time}',
|
||||
'mailAdmin.status.never': 'ไม่เคย',
|
||||
'mailAdmin.status.mails': 'อีเมล 24 ชม.',
|
||||
|
||||
Reference in New Issue
Block a user