Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33e15827ce | ||
|
|
73bcac8a55 | ||
|
|
05706182df | ||
|
|
c4fae6a9c1 | ||
|
|
259caacb01 | ||
|
|
6c5ceead09 |
@@ -111,6 +111,7 @@ _EN = {
|
|||||||
"term_connecting": "Connecting to {alias}...",
|
"term_connecting": "Connecting to {alias}...",
|
||||||
"term_connected": "Connected to {alias}",
|
"term_connected": "Connected to {alias}",
|
||||||
"term_disconnected": "Disconnected",
|
"term_disconnected": "Disconnected",
|
||||||
|
"term_off": "OFFLINE",
|
||||||
"ctx_disconnect": "Disconnect",
|
"ctx_disconnect": "Disconnect",
|
||||||
"term_click_to_connect": "Double-click to connect to {alias}",
|
"term_click_to_connect": "Double-click to connect to {alias}",
|
||||||
"sftp_click_to_connect": "Double-click server to browse files",
|
"sftp_click_to_connect": "Double-click server to browse files",
|
||||||
@@ -637,6 +638,7 @@ _RU = {
|
|||||||
"term_connecting": "Подключение к {alias}...",
|
"term_connecting": "Подключение к {alias}...",
|
||||||
"term_connected": "Подключено к {alias}",
|
"term_connected": "Подключено к {alias}",
|
||||||
"term_disconnected": "Отключено",
|
"term_disconnected": "Отключено",
|
||||||
|
"term_off": "ОТКЛЮЧЕНО",
|
||||||
"ctx_disconnect": "Отключиться",
|
"ctx_disconnect": "Отключиться",
|
||||||
"term_click_to_connect": "Двойной клик для подключения к {alias}",
|
"term_click_to_connect": "Двойной клик для подключения к {alias}",
|
||||||
"sftp_click_to_connect": "Двойной клик для просмотра файлов",
|
"sftp_click_to_connect": "Двойной клик для просмотра файлов",
|
||||||
@@ -1163,6 +1165,7 @@ _ZH = {
|
|||||||
"term_connecting": "正在连接 {alias}...",
|
"term_connecting": "正在连接 {alias}...",
|
||||||
"term_connected": "已连接到 {alias}",
|
"term_connected": "已连接到 {alias}",
|
||||||
"term_disconnected": "已断开",
|
"term_disconnected": "已断开",
|
||||||
|
"term_off": "未连接",
|
||||||
"ctx_disconnect": "断开连接",
|
"ctx_disconnect": "断开连接",
|
||||||
"term_click_to_connect": "双击连接 {alias}",
|
"term_click_to_connect": "双击连接 {alias}",
|
||||||
"sftp_click_to_connect": "双击服务器浏览文件",
|
"sftp_click_to_connect": "双击服务器浏览文件",
|
||||||
|
|||||||
@@ -250,7 +250,9 @@ class App(ctk.CTk):
|
|||||||
|
|
||||||
# Create new tabview
|
# Create new tabview
|
||||||
self.tabview = ctk.CTkTabview(self._main_frame, command=self._on_tab_changed)
|
self.tabview = ctk.CTkTabview(self._main_frame, command=self._on_tab_changed)
|
||||||
self.tabview.pack(fill="both", expand=True, padx=10, pady=10)
|
self.tabview._outer_spacing = 0
|
||||||
|
self.tabview._configure_grid()
|
||||||
|
self.tabview.pack(fill="both", expand=True, padx=10, pady=(0, 10))
|
||||||
|
|
||||||
for key in self._tab_keys:
|
for key in self._tab_keys:
|
||||||
self.tabview.add(_tab_label(key))
|
self.tabview.add(_tab_label(key))
|
||||||
|
|||||||
@@ -49,6 +49,15 @@ class TerminalTab(ctk.CTkFrame):
|
|||||||
on_font_size_changed=self._on_font_size_changed,
|
on_font_size_changed=self._on_font_size_changed,
|
||||||
)
|
)
|
||||||
self._terminal.pack(fill="both", expand=True, padx=5, pady=5)
|
self._terminal.pack(fill="both", expand=True, padx=5, pady=5)
|
||||||
|
|
||||||
|
# Overlay "OFF" label (shown when disconnected)
|
||||||
|
self._overlay = ctk.CTkLabel(
|
||||||
|
self._terminal, text=t("term_off"),
|
||||||
|
font=ctk.CTkFont(size=72, weight="bold"),
|
||||||
|
text_color=("#cccccc", "#333333"),
|
||||||
|
fg_color="transparent",
|
||||||
|
)
|
||||||
|
self._overlay.place(relx=0.5, rely=0.45, anchor="center")
|
||||||
self._terminal.set_status(t("term_disconnected"), "#888888")
|
self._terminal.set_status(t("term_disconnected"), "#888888")
|
||||||
|
|
||||||
# Thread-safe data queue
|
# Thread-safe data queue
|
||||||
@@ -100,12 +109,14 @@ class TerminalTab(ctk.CTkFrame):
|
|||||||
self._conn_btn.configure(
|
self._conn_btn.configure(
|
||||||
text=t("ctx_disconnect"), fg_color="#dc2626", hover_color="#b91c1c", state="normal",
|
text=t("ctx_disconnect"), fg_color="#dc2626", hover_color="#b91c1c", state="normal",
|
||||||
)
|
)
|
||||||
|
self._overlay.place_forget()
|
||||||
|
|
||||||
def _set_conn_btn_disconnected(self):
|
def _set_conn_btn_disconnected(self):
|
||||||
self._connected = False
|
self._connected = False
|
||||||
self._conn_btn.configure(
|
self._conn_btn.configure(
|
||||||
text=t("ctx_connect"), fg_color="#6b7280", hover_color="#4b5563",
|
text=t("ctx_connect"), fg_color="#6b7280", hover_color="#4b5563",
|
||||||
)
|
)
|
||||||
|
self._overlay.place(relx=0.5, rely=0.45, anchor="center")
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
"""Disconnect and update UI (called by app)."""
|
"""Disconnect and update UI (called by app)."""
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
"""Version info for ServerManager."""
|
"""Version info for ServerManager."""
|
||||||
|
|
||||||
__version__ = "1.9.28"
|
__version__ = "1.9.35"
|
||||||
__app_name__ = "ServerManager"
|
__app_name__ = "ServerManager"
|
||||||
__author__ = "aibot777"
|
__author__ = "aibot777"
|
||||||
__description__ = "Desktop GUI for managing remote servers"
|
__description__ = "Desktop GUI for managing remote servers"
|
||||||
|
|||||||
Reference in New Issue
Block a user