feat: 为文件管理器添加右键“解/压缩”功能

Refs #28
This commit is contained in:
Baobhan Sith
2025-05-13 00:26:55 +08:00
parent 688b9df707
commit 52b797837e
18 changed files with 1126 additions and 82 deletions
+26 -8
View File
@@ -330,6 +330,13 @@
"paste": "Paste",
"openEditor": "Open Editor"
},
"contextMenu": {
"compress": "Compress",
"compressZip": "Compress to zip",
"compressTarGz": "Compress to tar.gz",
"compressTarBz2": "Compress to tar.bz2",
"decompress": "Decompress"
},
"headers": {
"type": "Type",
"name": "Name",
@@ -365,14 +372,25 @@
"terminalManagerNotFound": "Terminal manager not found",
"sendCommandFailed": "Failed to send command",
"downloadDirectoryFailed": "Failed to download directory",
"downloadDirectoryNotImplemented": "Directory download feature is not yet implemented on the server."
},
"notifications": {
"copySuccess": "Copy successful",
"moveSuccess": "Move successful",
"cdCommandSent": "CD command sent to terminal"
},
"warnings": {
"downloadDirectoryNotImplemented": "Directory download feature is not yet implemented on the server.",
"compressFailed": "Compression failed",
"compressTimeout": "Compression timed out",
"compressErrorDetailed": "Compression failed: {error}",
"decompressFailed": "Decompression failed",
"decompressTimeout": "Decompression timed out",
"decompressErrorDetailed": "Decompression failed: {error}",
"commandNotFoundCompress": "Command '{command}' not found on server, cannot complete compression.",
"commandNotFoundDecompress": "Command '{command}' not found on server, cannot complete decompression.",
"genericCommandNotFound": "Command '{command}' not found on server, cannot complete '{operation}' operation."
},
"notifications": {
"copySuccess": "Copy successful",
"moveSuccess": "Move successful",
"cdCommandSent": "CD command sent to terminal",
"compressSuccess": "Compressed {name} successfully",
"decompressSuccess": "Decompressed {name} successfully"
},
"warnings": {
"moveSameDirectory": "Cannot cut and paste in the same directory."
},
"prompts": {
+20 -2
View File
@@ -336,6 +336,13 @@
"upload": "アップロード",
"uploadFile": "ファイルをアップロード"
},
"contextMenu": {
"compress": "圧縮",
"compressZip": "zip に圧縮",
"compressTarGz": "tar.gz に圧縮",
"compressTarBz2": "tar.bz2 に圧縮",
"decompress": "解凍"
},
"currentPath": "現在のパス",
"dropFilesHere": "ファイルをここにドラッグ&ドロップしてアップロード",
"editPathTooltip": "パスをクリックして編集",
@@ -364,7 +371,16 @@
"sendCommandFailed": "コマンドの送信に失敗しました",
"sftpManagerNotFound": "SFTP マネージャーが見つかりません",
"sftpNotReady": "SFTP セッションの準備ができていません",
"terminalManagerNotFound": "ターミナルマネージャーが見つかりません"
"terminalManagerNotFound": "ターミナルマネージャーが見つかりません",
"compressFailed": "圧縮に失敗しました",
"compressTimeout": "圧縮がタイムアウトしました",
"compressErrorDetailed": "圧縮に失敗しました: {error}",
"decompressFailed": "解凍に失敗しました",
"decompressTimeout": "解凍がタイムアウトしました",
"decompressErrorDetailed": "解凍に失敗しました: {error}",
"commandNotFoundCompress": "サーバーにコマンド '{command}' が見つからないため、圧縮操作を完了できません。",
"commandNotFoundDecompress": "サーバーにコマンド '{command}' が見つからないため、解凍操作を完了できません。",
"genericCommandNotFound": "サーバーにコマンド '{command}' が見つからないため、'{operation}' 操作を完了できません。"
},
"headers": {
"modified": "変更日",
@@ -379,7 +395,9 @@
"notifications": {
"cdCommandSent": "CD コマンドがターミナルに送信されました",
"copySuccess": "コピーに成功しました",
"moveSuccess": "移動に成功しました"
"moveSuccess": "移動に成功しました",
"compressSuccess": "{name} を正常に圧縮しました",
"decompressSuccess": "{name} を正常に解凍しました"
},
"prompts": {
"confirmDeleteFile": "ファイル \"{name}\" を削除しますか?この操作は元に戻せません。",
+26 -8
View File
@@ -329,6 +329,13 @@
"paste": "粘贴",
"openEditor": "打开编辑器"
},
"contextMenu": {
"compress": "压缩",
"compressZip": "压缩为 zip",
"compressTarGz": "压缩为 tar.gz",
"compressTarBz2": "压缩为 ttar.bz2",
"decompress": "解压"
},
"headers": {
"type": "类型",
"name": "名称",
@@ -364,14 +371,25 @@
"terminalManagerNotFound": "未找到终端管理器",
"sendCommandFailed": "发送命令失败",
"downloadDirectoryFailed": "下载文件夹失败",
"downloadDirectoryNotImplemented": "服务器尚未实现文件夹下载功能。"
},
"notifications": {
"copySuccess": "复制成功",
"moveSuccess": "移动成功",
"cdCommandSent": "CD 命令已发送到终端"
},
"warnings": {
"downloadDirectoryNotImplemented": "服务器尚未实现文件夹下载功能。",
"compressFailed": "压缩失败",
"compressTimeout": "压缩超时",
"compressErrorDetailed": "压缩失败: {error}",
"decompressFailed": "解压失败",
"decompressTimeout": "解压超时",
"decompressErrorDetailed": "解压失败: {error}",
"commandNotFoundCompress": "服务器上缺少 '{command}' 命令,无法完成压缩操作。",
"commandNotFoundDecompress": "服务器上缺少 '{command}' 命令,无法完成解压操作。",
"genericCommandNotFound": "服务器上缺少 '{command}' 命令,无法完成 '{operation}' 操作。"
},
"notifications": {
"copySuccess": "复制成功",
"moveSuccess": "移动成功",
"cdCommandSent": "CD 命令已发送到终端",
"compressSuccess": "压缩 {name} 成功",
"decompressSuccess": "解压 {name} 成功"
},
"warnings": {
"moveSameDirectory": "不能在同一目录下剪切和粘贴。"
},
"prompts": {