This commit is contained in:
Baobhan Sith
2025-04-28 12:47:57 +08:00
parent 869c5bb7a3
commit 4fe55a7651
3 changed files with 37 additions and 5 deletions
@@ -356,7 +356,7 @@ const computedModalStyle = computed(() => {
'bg-red-200 text-red-800': connectionStatus === 'error', 'bg-red-200 text-red-800': connectionStatus === 'error',
'bg-gray-200 text-gray-800': connectionStatus === 'disconnected' 'bg-gray-200 text-gray-800': connectionStatus === 'disconnected'
}"> }">
{{ connectionStatus }} {{ t('remoteDesktopModal.status.' + connectionStatus) }}
</span> </span>
<button <button
@click="closeModal" @click="closeModal"
@@ -389,7 +389,7 @@ const computedModalStyle = computed(() => {
<div class="p-2 border-t border-border flex-shrink-0 text-xs text-text-secondary bg-header flex items-center justify-between"> <div class="p-2 border-t border-border flex-shrink-0 text-xs text-text-secondary bg-header flex items-center justify-between">
<span>{{ statusMessage }}</span> <span>{{ statusMessage }}</span>
<div class="flex items-center space-x-2 flex-wrap gap-y-1"> <div class="flex items-center space-x-2 flex-wrap gap-y-1">
<label for="modal-width" class="text-xs ml-2">Modal W:</label> <!-- Changed label back --> <label for="modal-width" class="text-xs ml-2">{{ t('common.width') }}:</label>
<input <input
id="modal-width" id="modal-width"
type="number" type="number"
@@ -397,7 +397,7 @@ const computedModalStyle = computed(() => {
step="10" step="10"
class="w-16 px-1 py-0.5 text-xs border border-border rounded bg-input text-foreground focus:outline-none focus:ring-1 focus:ring-primary" class="w-16 px-1 py-0.5 text-xs border border-border rounded bg-input text-foreground focus:outline-none focus:ring-1 focus:ring-primary"
/> />
<label for="modal-height" class="text-xs">Modal H:</label> <!-- Changed label back --> <label for="modal-height" class="text-xs">{{ t('common.height') }}:</label>
<input <input
id="modal-height" id="modal-height"
type="number" type="number"
+29 -1
View File
@@ -676,7 +676,9 @@
"collapse": "Collapse", "collapse": "Collapse",
"search": "Search", "search": "Search",
"all": "All", "all": "All",
"filter": "Filter" "filter": "Filter",
"width": "Width",
"height": "Height"
}, },
"layoutConfigurator": { "layoutConfigurator": {
"title": "Layout Configurator", "title": "Layout Configurator",
@@ -748,6 +750,32 @@
"searchPlaceholder": "Search name or host...", "searchPlaceholder": "Search name or host...",
"noResults": "No connections found matching \"{searchTerm}\"." "noResults": "No connections found matching \"{searchTerm}\"."
}, },
"remoteDesktopModal": {
"title": "Remote Desktop",
"titlePlaceholder": "Remote Desktop Connection",
"status": {
"fetchingToken": "Fetching connection token...",
"connectingWs": "Connecting WebSocket...",
"idle": "Idle",
"connectingRdp": "Connecting Remote Desktop...",
"waiting": "Waiting for server response...",
"connected": "Connected",
"disconnecting": "Disconnecting...",
"disconnected": "Disconnected",
"unknownState": "Unknown State",
"connecting": "Connecting...",
"error": "Error"
},
"errors": {
"missingInfo": "Connection info or display element missing.",
"tunnelError": "Tunnel Error",
"clientError": "Client Error",
"connectionFailed": "Connection Failed",
"inputError": "Error setting up input listeners.",
"noConnection": "No connection information provided.",
"tokenError": "Failed to retrieve token"
}
},
"commandInputBar": { "commandInputBar": {
"placeholder": "Enter command and press Enter to send...", "placeholder": "Enter command and press Enter to send...",
"searchPlaceholder": "Search in terminal...", "searchPlaceholder": "Search in terminal...",
+5 -1
View File
@@ -677,7 +677,9 @@
"collapse": "折叠", "collapse": "折叠",
"search": "搜索", "search": "搜索",
"all": "全部", "all": "全部",
"filter": "筛选" "filter": "筛选",
"width": "宽度",
"height": "高度"
}, },
"layoutConfigurator": { "layoutConfigurator": {
"title": "布局管理器", "title": "布局管理器",
@@ -760,6 +762,8 @@
"idle": "空闲", "idle": "空闲",
"connectingRdp": "正在连接远程桌面...", "connectingRdp": "正在连接远程桌面...",
"waiting": "等待服务器响应...", "waiting": "等待服务器响应...",
"connecting": "连接中...",
"error": "错误",
"connected": "已连接", "connected": "已连接",
"disconnecting": "正在断开连接...", "disconnecting": "正在断开连接...",
"disconnected": "已断开连接", "disconnected": "已断开连接",