feat(sftp): 文件面板列头/排序、字体缩放与空白处右键菜单

- 列表头改为 sticky 并支持点击排序(名称/大小/修改时间/权限/用户/组,目录恒在前)
- 时间显示改为 YYYY/M/D HH:MM,大小显示改为 30.7 KB 风格
- 新增字体缩放 0.8–1.8(A-/A+ 与 Ctrl+滚轮),行高字号联动并记忆到 localStorage
- 行高/字号统一由 FilePanel.tsx 计算,经 CSS 变量下发,sftp.css 只消费变量
- 主进程新增 readdirDetailed + parseLongnameOwner,从 OpenSSH longname 解析真实的用户/组
- 列表空白处右键弹出菜单(行内右键仍走原菜单,两者不叠加)
- 修复:antd 把 ant-dropdown-trigger 克隆到行元素上,旧规则以更高特异性顶掉了 .sftp-row 的 display:grid,导致列此前并未按网格对齐
- 4 语言词典补充列名与缩放键
This commit is contained in:
Bill committed 2026-10-09 08:33:06 +08:00
1 parent 5602949a4f
commit 6e7c9d5376
9 files changed
+394 -69

No files matched your search

+7
View File
@@ -135,6 +135,13 @@ const ssh: Record<string, string> = {
'ssh.file.permColRead': 'Read',
'ssh.file.permColWrite': 'Write',
'ssh.file.permColExec': 'Execute',
'ssh.file.colName': 'Name',
'ssh.file.colSize': 'Size',
'ssh.file.colModified': 'Modified',
'ssh.file.colPerm': 'Permissions',
'ssh.file.colOwner': 'Owner',
'ssh.file.zoomIn': 'Zoom in',
'ssh.file.zoomOut': 'Zoom out',
// System monitor
'ssh.monitor.collecting': 'Collecting…',
+7
View File
@@ -137,6 +137,13 @@ const ssh: Record<string, string> = {
'ssh.file.permColRead': '読み取り',
'ssh.file.permColWrite': '書き込み',
'ssh.file.permColExec': '実行',
'ssh.file.colName': '名前',
'ssh.file.colSize': 'サイズ',
'ssh.file.colModified': '更新日時',
'ssh.file.colPerm': 'パーミッション',
'ssh.file.colOwner': '所有者',
'ssh.file.zoomIn': 'フォント拡大',
'ssh.file.zoomOut': 'フォント縮小',
// システム監視
'ssh.monitor.collecting': '取得中…',
+7
View File
@@ -129,6 +129,13 @@ const ssh: Record<string, string> = {
'ssh.file.permColRead': '读',
'ssh.file.permColWrite': '写',
'ssh.file.permColExec': '执行',
'ssh.file.colName': '名称',
'ssh.file.colSize': '大小',
'ssh.file.colModified': '修改时间',
'ssh.file.colPerm': '权限',
'ssh.file.colOwner': '用户/组',
'ssh.file.zoomIn': '放大字体',
'ssh.file.zoomOut': '缩小字体',
// 系统监控
'ssh.monitor.collecting': '采集中…',
+7
View File
@@ -129,6 +129,13 @@ const ssh: Record<string, string> = {
'ssh.file.permColRead': '讀取',
'ssh.file.permColWrite': '寫入',
'ssh.file.permColExec': '執行',
'ssh.file.colName': '名稱',
'ssh.file.colSize': '大小',
'ssh.file.colModified': '修改時間',
'ssh.file.colPerm': '權限',
'ssh.file.colOwner': '使用者/群組',
'ssh.file.zoomIn': '放大字體',
'ssh.file.zoomOut': '縮小字體',
// 系統監控
'ssh.monitor.collecting': '採集中…',