This commit is contained in:
Baobhan Sith
2025-04-30 14:46:41 +08:00
parent 59348d3008
commit 3f9f0aa99d
5 changed files with 41 additions and 38 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ const isElementVisibleAndFocusable = (element: HTMLElement): boolean => {
</div>
<!-- Right navigation links with Tailwind classes using theme variables -->
<div class="flex items-center space-x-1">
<a href="https://github.com/Heavrnl/nexus-terminal" target="_blank" rel="noopener noreferrer" :title="t('nav.github')" class="px-2 py-2 rounded-md text-lg text-icon hover:text-icon-hover hover:bg-nav-active-bg hover:no-underline transition duration-150 ease-in-out">
<a href="https://github.com/Heavrnl/nexus-terminal" target="_blank" rel="noopener noreferrer" title="Heavrnl/nexus-terminal" class="px-2 py-2 rounded-md text-lg text-icon hover:text-icon-hover hover:bg-nav-active-bg hover:no-underline transition duration-150 ease-in-out">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"/>
</svg>
+12 -11
View File
@@ -367,6 +367,18 @@
"appearance": "Appearance Settings",
"system": "System Settings"
},
"timezone": {
"title": "Timezone Settings",
"selectLabel": "Select Timezone:",
"description": "Timestamps in notifications will be formatted according to this timezone.",
"success": {
"saved": "Timezone setting saved successfully."
},
"error": {
"saveFailed": "Failed to save timezone setting."
}
},
"changePassword": {
"title": "Change Password",
"currentPassword": "Current Password:",
@@ -663,17 +675,6 @@
},
"error": {
"saveFailed": "Failed to save sync target."
},
"timezone": {
"title": "Timezone Settings",
"selectLabel": "Select Timezone:",
"description": "Timestamps in notifications will be formatted according to this timezone.",
"success": {
"saved": "Timezone setting saved successfully."
},
"error": {
"saveFailed": "Failed to save timezone setting."
}
}
}
},
+12 -11
View File
@@ -529,6 +529,17 @@
"description": "アプリケーションのビジュアルテーマと背景をカスタマイズします。",
"title": "外観設定"
},
"timezone": {
"description": "通知のタイムスタンプはこのタイムゾーンに基づいてフォーマットされます。",
"error": {
"saveFailed": "タイムゾーン設定の保存に失敗しました。"
},
"selectLabel": "タイムゾーンを選択:",
"success": {
"saved": "タイムゾーン設定が正常に保存されました。"
},
"title": "タイムゾーン設定"
},
"autoCopyOnSelect": {
"enableLabel": "マウスボタンを離したときに選択したテキストを自動的にコピーする",
"error": {
@@ -588,17 +599,7 @@
"targetCommandHistory": "コマンド履歴",
"targetNone": "なし",
"targetQuickCommands": "クイックコマンド",
"timezone": {
"description": "通知のタイムスタンプはこのタイムゾーンに基づいてフォーマットされます。",
"error": {
"saveFailed": "タイムゾーン設定の保存に失敗しました。"
},
"selectLabel": "タイムゾーンを選択:",
"success": {
"saved": "タイムゾーン設定が正常に保存されました。"
},
"title": "タイムゾーン設定"
},
"title": "コマンド入力同期"
},
"docker": {
+12 -11
View File
@@ -367,6 +367,17 @@
"appearance": "外观设置",
"system": "系统设置"
},
"timezone": {
"title": "时区设置",
"selectLabel": "选择时区:",
"description": "通知中的时间戳将根据此时区进行格式化。",
"success": {
"saved": "时区设置已成功保存。"
},
"error": {
"saveFailed": "保存时区设置失败。"
}
},
"changePassword": {
"title": "修改密码",
"currentPassword": "当前密码:",
@@ -664,18 +675,8 @@
},
"error": {
"saveFailed": "保存同步目标失败。"
},
"timezone": {
"title": "时区设置",
"selectLabel": "选择时区:",
"description": "通知中的时间戳将根据此时区进行格式化。",
"success": {
"saved": "时区设置已成功保存。"
},
"error": {
"saveFailed": "保存时区设置失败。"
}
}
}
},
"notificationController": {
+4 -4
View File
@@ -440,10 +440,10 @@
<hr class="border-border/50"> <!-- Separator -->
<!-- Timezone Setting -->
<div class="settings-section-content">
<h3 class="text-base font-semibold text-foreground mb-3">{{ t('settings.timezone.title') }}</h3>
<h3 class="text-base font-semibold text-foreground mb-3">{{ $t('settings.timezone.title') }}</h3>
<form @submit.prevent="handleUpdateTimezone" class="space-y-4">
<div>
<label for="timezoneSelect" class="block text-sm font-medium text-text-secondary mb-1">{{ t('settings.timezone.selectLabel') }}</label>
<label for="timezoneSelect" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.timezone.selectLabel') }}</label>
<select id="timezoneSelect" v-model="selectedTimezone"
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary appearance-none bg-no-repeat bg-right pr-8"
style="background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\'%3e%3cpath fill=\'none\' stroke=\'%236c757d\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M2 5l6 6 6-6\'/%3e%3c/svg%3e'); background-position: right 0.75rem center; background-size: 16px 12px;">
@@ -451,12 +451,12 @@
{{ tz }}
</option>
</select>
<small class="block mt-1 text-xs text-text-secondary">{{ t('settings.timezone.description') }}</small>
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.timezone.description') }}</small>
</div>
<div class="flex items-center justify-between">
<button type="submit"
class="px-4 py-2 bg-button text-button-text rounded-md shadow-sm hover:bg-button-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out text-sm font-medium">
{{ t('common.save') }}
{{ $t('common.save') }}
</button>
<p v-if="timezoneMessage" :class="['text-sm', timezoneSuccess ? 'text-success' : 'text-error']">{{ timezoneMessage }}</p>
</div>