移除对php-rar扩展的依赖,移除rar解压功能
*考虑到php-rar扩展年久失修,而且也不好装,直接抛弃
This commit is contained in:
parent
b8fdda2cf0
commit
f17af958e2
@ -23,7 +23,6 @@
|
||||
"bestyii/yii2-openapi-reader": "dev-master",
|
||||
"fortawesome/font-awesome": "^6.5",
|
||||
"ext-zip": "*",
|
||||
"ext-rar": "*",
|
||||
"ext-json": "*",
|
||||
"ext-gmp": "*",
|
||||
"ext-bcmath": "*",
|
||||
|
@ -28,7 +28,8 @@ class FileTypeDetector
|
||||
'csv' => 'fa-solid fa-file-csv',
|
||||
'ppt', 'pptx' => 'fa-regular fa-file-powerpoint',
|
||||
'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',
|
||||
'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',
|
||||
|
@ -391,7 +391,7 @@ function updateButtons() {
|
||||
var checkboxes = $('.select-item:checked');
|
||||
var count = checkboxes.length;
|
||||
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
|
||||
$('.single-open-btn').toggle(count === 1);
|
||||
$('.single-download-btn').toggle(isSingleFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user