mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +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)',
|
||||
@@ -131,6 +133,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.createError': 'فشل إنشاء رابط الدعوة',
|
||||
'admin.invite.deleteError': 'فشل حذف رابط الدعوة',
|
||||
'admin.tabs.settings': 'الإعدادات',
|
||||
'admin.tabs.security': 'الأمان',
|
||||
'admin.tabs.services': 'الخدمات',
|
||||
'admin.allowRegistration': 'السماح بالتسجيل',
|
||||
'admin.allowRegistrationHint': 'يمكن للمستخدمين الجدد التسجيل بأنفسهم',
|
||||
'admin.requireMfa': 'فرض المصادقة الثنائية (2FA)',
|
||||
@@ -174,10 +178,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': 'جارٍ الإعداد',
|
||||
@@ -297,8 +299,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': 'تم حفظ الإعداد الافتراضي',
|
||||
@@ -764,24 +767,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': 'تم تحديث الإضافة',
|
||||
'admin.addons.toast.error': 'فشل تحديث الإضافة',
|
||||
'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.subOptions.zero': 'لا توجد خيارات',
|
||||
'admin.addons.subOptions.one': 'خيار واحد',
|
||||
'admin.addons.subOptions.two': 'خياران',
|
||||
'admin.addons.subOptions.few': '{count} خيارات',
|
||||
'admin.addons.subOptions.many': '{count} خيارًا',
|
||||
'admin.addons.subOptionsOn': 'المُفعّل: {count}',
|
||||
'admin.addons.subOptionsOn.zero': 'لا شيء مُفعّل',
|
||||
'admin.addons.subOptionsOn.one': 'واحد مُفعّل',
|
||||
'admin.addons.subOptionsOn.two': 'اثنان مُفعّلان',
|
||||
'admin.addons.subOptionsOn.few': 'المُفعّل: {count}',
|
||||
'admin.addons.subOptionsOn.many': 'المُفعّل: {count}',
|
||||
'admin.toursWanderer.title': 'wanderer',
|
||||
'admin.toursWanderer.subtitle': 'يمكن للمستخدمين ربط خادم wanderer الخاص بهم واستيراد دروبه كجولات',
|
||||
'admin.toursHikingMap.title': 'خريطة المشي (OpenHikingMap)',
|
||||
@@ -806,7 +791,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',
|
||||
@@ -952,7 +937,6 @@ const admin: TranslationStrings = {
|
||||
'يُستخدم لكل مستخدم لم يُدخل مفتاحه الخاص، حتى يحصل الخادم بأكمله على بلاطات CARTO بدون علامة مائية. يُخزَّن مشفّرًا.',
|
||||
'admin.group.users': 'المستخدمون',
|
||||
'admin.group.config': 'الإعدادات',
|
||||
'admin.group.integration': 'التكاملات',
|
||||
'admin.group.maintenance': 'الصيانة',
|
||||
'admin.invite.tripLabel': 'إضافة إلى رحلة (اختياري)',
|
||||
'admin.invite.tripNone': 'بدون رحلة',
|
||||
|
||||
@@ -37,7 +37,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