From 93569049ea2afad388e495710db6dbcf52df8bc7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:36:46 +0800 Subject: [PATCH 1/3] autoJumpFirstDisk function add back --- common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 827d362..32d0a37 100644 --- a/common.php +++ b/common.php @@ -21,7 +21,7 @@ $EnvConfigs = [ 'admin' => 0b000, 'adminloginpage' => 0b010, - //'autoJumpFirstDisk' => 0b010, + 'autoJumpFirstDisk' => 0b010, 'background' => 0b011, 'backgroundm' => 0b011, 'disableShowThumb' => 0b010, @@ -270,7 +270,7 @@ function main($path) // return a json return output(json_encode($files), 200, ['Content-Type' => 'application/json']); } - //if (getConfig('autoJumpFirstDisk')) return output('', 302, [ 'Location' => path_format($_SERVER['base_path'].'/'.$disktags[0].'/') ]); + if (getConfig('autoJumpFirstDisk')) return output('', 302, [ 'Location' => path_format($_SERVER['base_path'].'/'.$disktags[0].'/') ]); } else { $_SERVER['disktag'] = splitfirst( substr(path_format($path), 1), '/' )[0]; //$pos = strpos($path, '/'); From d2a31efb43cd98ebde55449b3010601fc3600442 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:37:38 +0800 Subject: [PATCH 2/3] MultiDiskArea add back --- theme/classic.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/theme/classic.html b/theme/classic.html index 9f6b90f..b252e45 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -107,7 +107,6 @@

-
@@ -121,7 +120,6 @@
--->
From e8b89d3296ecea5823784748807b2c30dea30c6a Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 10 Feb 2022 11:10:57 +0800 Subject: [PATCH 3/3] show MD in preview --- theme/classic.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/classic.html b/theme/classic.html index b252e45..94273f7 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -650,7 +650,6 @@ } - var $head = document.getElementById('head'); if ($head) { @@ -664,6 +663,7 @@ $readme.innerHTML = marked(document.getElementById('readme-md').innerText); } + function showthumbnails(obj) { images = [];