移除对php-rar扩展的依赖,移除rar解压功能

*考虑到php-rar扩展年久失修,而且也不好装,直接抛弃
This commit is contained in:
Chenx221 2024-04-22 14:16:11 +08:00
parent b8fdda2cf0
commit f17af958e2
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,6 @@
"bestyii/yii2-openapi-reader": "dev-master", "bestyii/yii2-openapi-reader": "dev-master",
"fortawesome/font-awesome": "^6.5", "fortawesome/font-awesome": "^6.5",
"ext-zip": "*", "ext-zip": "*",
"ext-rar": "*",
"ext-json": "*", "ext-json": "*",
"ext-gmp": "*", "ext-gmp": "*",
"ext-bcmath": "*", "ext-bcmath": "*",

View File

@ -28,7 +28,8 @@ class FileTypeDetector
'csv' => 'fa-solid fa-file-csv', 'csv' => 'fa-solid fa-file-csv',
'ppt', 'pptx' => 'fa-regular fa-file-powerpoint', 'ppt', 'pptx' => 'fa-regular fa-file-powerpoint',
'jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'psd', 'clip', 'raw', 'tiff', 'tif' => 'fa-regular fa-file-image', 'jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'psd', 'clip', 'raw', 'tiff', 'tif' => 'fa-regular fa-file-image',
'zip', 'rar', '7z', 'tar', 'tar.gz', 'xz', 'cab' => 'fa-regular fa-file-zipper', 'zip', '7z', 'tar', 'tar.gz', 'xz', 'cab' => 'fa-regular fa-file-zipper',
'rar' => 'fa-regular fa-file-zipper not-support-unzip',
'mp3', 'wav', 'flac', 'acc', 'ogg', 'wma', 'ac3', 'm4a' => 'fa-regular fa-file-audio', 'mp3', 'wav', 'flac', 'acc', 'ogg', 'wma', 'ac3', 'm4a' => 'fa-regular fa-file-audio',
'mp4', 'mkv', '3gp', 'avi', 'flv', 'm4v', 'mov', 'mpeg', 'mpg', 'mpe', 'rm', 'wmv', 'webm' => 'fa-regular fa-file-video', 'mp4', 'mkv', '3gp', 'avi', 'flv', 'm4v', 'mov', 'mpeg', 'mpg', 'mpe', 'rm', 'wmv', 'webm' => 'fa-regular fa-file-video',
'xhtml','js', 'asp', 'aspx', 'cgi', 'jsp', 'pl', 'phtml', 'php', 'html', 'htm', 'css', 'c', 'cpp', 'py', 'cs', 'ahk', 'as', 'au3', 'bat', 'fs', 'go', 'ipynb', 'kt', 'lua', 'o', 'ps1', 'ps1xml', 'psc1', 'psd1', 'psm1', 'pyc', 'pyo', 'r', 'rb', 'vbs', 'vb', 'cls', 'cc', 'cxx', 'cbp', 'csproj', 'h', 'hpp', 'hxx', 'vbg', 'vbp', 'vip', 'vbproj', 'vcproj', 'vdproj' => 'fa-regular fa-file-code', 'xhtml','js', 'asp', 'aspx', 'cgi', 'jsp', 'pl', 'phtml', 'php', 'html', 'htm', 'css', 'c', 'cpp', 'py', 'cs', 'ahk', 'as', 'au3', 'bat', 'fs', 'go', 'ipynb', 'kt', 'lua', 'o', 'ps1', 'ps1xml', 'psc1', 'psd1', 'psm1', 'pyc', 'pyo', 'r', 'rb', 'vbs', 'vb', 'cls', 'cc', 'cxx', 'cbp', 'csproj', 'h', 'hpp', 'hxx', 'vbg', 'vbp', 'vip', 'vbproj', 'vcproj', 'vdproj' => 'fa-regular fa-file-code',

View File

@ -391,7 +391,7 @@ function updateButtons() {
var checkboxes = $('.select-item:checked'); var checkboxes = $('.select-item:checked');
var count = checkboxes.length; var count = checkboxes.length;
var isSingleFile = count === 1 && !checkboxes.first().data('isDirectory'); var isSingleFile = count === 1 && !checkboxes.first().data('isDirectory');
var isSingleZip = isSingleFile && checkboxes.first().closest('tr').find('.file_icon').hasClass('fa-file-zipper'); var isSingleZip = isSingleFile && checkboxes.first().closest('tr').find('.file_icon').hasClass('fa-file-zipper') && !checkboxes.first().closest('tr').find('.file_icon').hasClass('not-support-unzip');
var hasOperation = sessionStorage.getItem('operation') !== null; // 检查 sessionStorage 中是否存在 operation var hasOperation = sessionStorage.getItem('operation') !== null; // 检查 sessionStorage 中是否存在 operation
$('.single-open-btn').toggle(count === 1); $('.single-open-btn').toggle(count === 1);
$('.single-download-btn').toggle(isSingleFile); $('.single-download-btn').toggle(isSingleFile);