mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +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)',
|
||||
@@ -71,6 +73,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': '登录方式',
|
||||
@@ -125,10 +129,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': '正在设置',
|
||||
@@ -244,8 +246,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': '默认值已保存',
|
||||
'admin.defaultSettings.reset': '重置为内置默认值',
|
||||
@@ -652,14 +655,6 @@ const admin: TranslationStrings = {
|
||||
'admin.addons.toast.updated': '扩展已更新',
|
||||
'admin.addons.toast.error': '更新扩展失败',
|
||||
'admin.addons.group.count': '{total} 项中已启用 {enabled} 项',
|
||||
'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 实例,并将其中的步道作为游览路线导入',
|
||||
'admin.toursHikingMap.title': '徒步地图 (OpenHikingMap)',
|
||||
@@ -683,7 +678,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 令牌',
|
||||
@@ -838,7 +833,6 @@ const admin: TranslationStrings = {
|
||||
'用于所有未输入自己密钥的用户,这样整个实例都能获得无水印的 CARTO 瓦片。以加密方式存储。',
|
||||
'admin.group.users': '用户',
|
||||
'admin.group.config': '配置',
|
||||
'admin.group.integration': '集成',
|
||||
'admin.group.maintenance': '维护',
|
||||
'admin.invite.tripLabel': '添加到行程(可选)',
|
||||
'admin.invite.tripNone': '不选择行程',
|
||||
|
||||
Reference in New Issue
Block a user