From fab91b32ed77a1cd082119a42769865778d752e8 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 12:47:26 +0800
Subject: [PATCH 01/17] long disk name show right
---
theme/classic.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/theme/classic.php b/theme/classic.php
index c37a954..c9b8ba6 100644
--- a/theme/classic.php
+++ b/theme/classic.php
@@ -22,9 +22,9 @@
.list-header-container{position:relative}
.list-header-container a.back-link{color:#000;display:inline-block;position:absolute;font-size:16px;margin:20px 10px;padding:10px 10px;vertical-align:middle;text-decoration:none}
.list-container,.list-header-container,.list-wrapper,a.back-link:hover,body{color:#24292e}
- .list-header-container .table-header{margin:0;border:0 none;padding:30px 60px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);word-break: break-all;word-wrap: break-word;}
+ .table-header{margin:0;border:0 none;padding:30px 60px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);word-break: break-all;word-wrap: break-word;}
.list-body-container{position:relative;left:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;background:rgba(245,245,245,0.5)}
- .more-disk{margin:0;border:0 none;padding:30px 30px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);word-break: break-all;word-wrap: break-word;}
+ .more-disk{margin:0;border:0 none;padding:30px 30px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);}
.more-disk a{padding:5px;transition-duration: 0.4s;border-radius: 12px; background-color: white; color: black; border: 2px solid rgba(85,85,85,0.7); }
.more-disk a:hover{ background-color: rgba(85,85,85,0.7); color: white; }
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0}
@@ -49,10 +49,11 @@
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
.markdown-body{padding:20px;text-align:left}
@media only screen and (max-width:480px){
+ .more-disk{white-space:nowrap;overflow:auto;}
.title{margin-bottom:24px}
.list-wrapper{width:95%; margin-bottom:24px;}
.list-table {padding:8px}
- .list-table td, .list-table th{padding:0 10px;text-align:left;white-space:nowrap;overflow:auto;max-width:80px}
+ .list-table td, .list-table th{white-space:nowrap;overflow:auto;max-width:80px}
}
From 4d2467fe51c7632e8865ce2057fd7341056f7f87 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 12:49:50 +0800
Subject: [PATCH 02/17] add discryp
---
conststr.php | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/conststr.php b/conststr.php
index 76cee75..3b67e34 100644
--- a/conststr.php
+++ b/conststr.php
@@ -1,6 +1,4 @@
'The admin password, Login button will not show when empty',
'adminloginpage' => 'if set, the Login button will not display, and the login page no longer \'?admin\', it is \'?{this value}\'.',
'domain_path' => 'more custom domain, format is a1.com:/dirto/path1|b2.com:/path2',
+ 'diskname' => 'The disk name you want show.',
+ 'disktag' => 'A tag used in store config and url.',
+ 'background' => 'Set an url as background photo, or put a \'background.jpg\' at showed path.',
'guestup_path' => 'Set guest upload dir, before set this, the files in this dir will show as normal.',
'passfile' => 'The password of dir will save in this file.',
'public_path' => 'Show this Onedrive dir when through the long url of API Gateway; public show files less than private.',
@@ -59,6 +60,9 @@ $constStr = [
'admin' => '管理密码,不添加时不显示登录页面且无法登录。',
'adminloginpage' => '如果设置,登录按钮及页面隐藏。管理登录的页面不再是\'?admin\',而是\'?此设置的值\'。',
'domain_path' => '使用多个自定义域名时,指定每个域名看到的目录。格式为a1.com:/dirto/path1|b1.com:/path2,比private_path优先。',
+ 'diskname' => '这个盘你想显示什么名称。',
+ 'disktag' => '一个标签,用于保存配置,多盘时会显示在url中。',
+ 'background' => '设置一个url作为背景,或者在你显示的目录放一个background.jpg文件。',
'guestup_path' => '设置游客上传路径(图床路径),不设置这个值时该目录内容会正常列文件出来,设置后只有上传界面,不显示其中文件(登录后显示)。',
'passfile' => '自定义密码文件的名字,可以是\'pppppp\',也可以是\'aaaa.txt\'等等;列目录时不会显示,只有知道密码才能查看或下载此文件。密码是这个文件的内容,可以空格、可以中文;',
'public_path' => '使用API长链接访问时,显示网盘文件的路径,不设置时默认为根目录;不能是private_path的上级(public看到的不能比private多,要么看到的就不一样)。',
@@ -69,6 +73,9 @@ $constStr = [
'admin' => 'パスワードを管理する、追加しない場合、ログインページは表示されず、ログインできません。',
'adminloginpage' => '設定すると、ログインボタンとページが非表示になります。ログインを管理するためのページは\'?admin \'ではなく、\'?この設定の値\'。',
'domain_path' => '複数のカスタムドメイン名を使用する場合、各ドメイン名に表示されるディレクトリを指定します。形式はa1.com:/dirto/path1|b1.com:/path2で、private_pathよりも優先されます。',
+ 'diskname' => '',
+ 'disktag' => '',
+ 'background' => '',
'guestup_path' => 'マップベッドのパスを設定します。この値が設定されていない場合、ディレクトリの内容は通常ファイルにリストされ、設定後はアップロードインターフェイスのみが表示されます。',
'passfile' => 'カスタムパスワードファイルの名前は、\'pppppp \'、\'aaaa.txt \'などの場合があります。ディレクトリをリストするときには表示されません。パスワードを知っている場合にのみ、このファイルを表示またはダウンロードできます。 パスワードはこのファイルの内容であり、スペースまたは漢字を使用できます。',
'public_path' => 'APIのロングリンクアクセスを使用する場合、ネットワークディスクファイルのパスが表示されますが、設定されていない場合はデフォルトでルートディレクトリになり、private_pathの上位にはなりません(publicはprivate以上のものを見ることができません。それ以外は異なります。)。',
@@ -442,8 +449,8 @@ $constStr = [
'ja' => 'アプリケーションIDとシークレット',
],
'TagFormatAlert' =>[
- 'en-us' => 'Tag Only letters and numbers, must start with letters, at least 2 letters!',
- 'zh-cn' => '标签只能字母与数字,至少2位',
+ 'en-us' => 'Tag must start with a letter, end with a letter or digit and can only contain lowercase letters, digits, and dashes, at least 2 letters!',
+ 'zh-cn' => '标签只能以字母开头,以字母或数字结尾,至少2位',
'ja' => '',
],
'ClickInstall' =>[
From 2e62a4c2dc4a1bd3986ad427086839c5f353333b Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 12:51:39 +0800
Subject: [PATCH 03/17] move commoneEnv
---
function/common.php | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/function/common.php b/function/common.php
index 1944d70..f2aa455 100644
--- a/function/common.php
+++ b/function/common.php
@@ -1,5 +1,21 @@
Date: Sun, 23 Feb 2020 12:52:23 +0800
Subject: [PATCH 04/17] move commonEnv
---
function/heroku.php | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/function/heroku.php b/function/heroku.php
index c8d34c5..03f8e50 100644
--- a/function/heroku.php
+++ b/function/heroku.php
@@ -1,18 +1,5 @@
Date: Sun, 23 Feb 2020 12:53:17 +0800
Subject: [PATCH 05/17] move commonEnv
---
function/normal.php | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/function/normal.php b/function/normal.php
index ed97656..21eafd5 100644
--- a/function/normal.php
+++ b/function/normal.php
@@ -1,16 +1,5 @@
Date: Sun, 23 Feb 2020 12:53:57 +0800
Subject: [PATCH 06/17] move commonEnv
---
function/scf.php | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/function/scf.php b/function/scf.php
index 02d6e7a..e455506 100644
--- a/function/scf.php
+++ b/function/scf.php
@@ -1,19 +1,5 @@
500) $event['body']=substr($event['body'],0,strpos($event['body'],'base64')+30) . '...Too Long!...' . substr($event['body'],-50);
From 3c2ba3f2796db8b827fe2b951b609c18280f5c12 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 13:39:11 +0800
Subject: [PATCH 07/17] Update common.php
---
function/common.php | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/function/common.php b/function/common.php
index f2aa455..0c7d6f9 100644
--- a/function/common.php
+++ b/function/common.php
@@ -305,7 +305,16 @@ function get_timezone($timezone = '8')
function message($message, $title = 'Message', $statusCode = 200)
{
- return output('
' . $title . '
' . $message . '
', $statusCode);
+ return output('
+
+
+
+ ' . $title . '
+
+' . $message . '
+
+
+', $statusCode);
}
function needUpdate()
From 140b7a1e98229ed41c2d1a7ddfc5a8647dcdf733 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 13:40:28 +0800
Subject: [PATCH 08/17] can update when not need
---
function/heroku.php | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/function/heroku.php b/function/heroku.php
index 03f8e50..ecfcc44 100644
--- a/function/heroku.php
+++ b/function/heroku.php
@@ -408,18 +408,19 @@ function_name:' . $_SERVER['function_name'] . '
$preurl = path_format($_SERVER['PHP_SELF'] . '/');
}
$html .= '
- '.getconstStr('Back').' '.getconstStr('Back').getconstStr('Home').'
- Github
';
+'.getconstStr('Back').' '.getconstStr('Back').getconstStr('Home').'
+Github
+';
+ $html .= '' . $_SERVER['github_version'] . '
';
} else {
$html .= getconstStr('NotNeedUpdate');
}
- $html .= '
-
';
foreach (explode("|",getConfig('disktag')) as $disktag) {
if ($disktag!='') {
$html .= '
-
';
}
}
$html .= '
- '.getconstStr('AddDisk').'';
+'.getconstStr('AddDisk').'';
return message($html, getconstStr('Setup'));
}
From d47334f4c5c92595db36204c518cc910061ef5d8 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 13:41:02 +0800
Subject: [PATCH 09/17] Update normal.php
---
function/normal.php | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/function/normal.php b/function/normal.php
index 21eafd5..43e9cd1 100644
--- a/function/normal.php
+++ b/function/normal.php
@@ -368,8 +368,8 @@ namespace:' . $namespace . '
$preurl = path_format($_SERVER['PHP_SELF'] . '/');
}
$html .= '
- '.getconstStr('Back').' '.getconstStr('Back').getconstStr('Home').'
- Github
';
+'.getconstStr('Back').' '.getconstStr('Back').getconstStr('Home').'
+Github
';
/*if ($needUpdate) {
$html .= '' . $_SERVER['github_version'] . '
';
+ $html .= '' . $_SERVER['github_version'] . '
';
} else {
$html .= getconstStr('NotNeedUpdate');
}
- $html .= '
-
';
foreach (explode("|",getConfig('disktag')) as $disktag) {
if ($disktag!='') {
$html .= '
-
';
}
}
$html .= '
- '.getconstStr('AddDisk').'';
+'.getconstStr('AddDisk').'';
return message($html, getconstStr('Setup'));
}
From 88d3ea30f12f8037ae3a341d6a4ea26d54dc6c98 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 23 Feb 2020 14:04:54 +0800
Subject: [PATCH 11/17] Update heroku.php
---
function/heroku.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/function/heroku.php b/function/heroku.php
index ecfcc44..e3b6771 100644
--- a/function/heroku.php
+++ b/function/heroku.php
@@ -178,8 +178,8 @@ function_name:' . $_SERVER['function_name'] . '
$app_url = "https://apps.dev.microsoft.com/?deepLink=".urlencode($deepLink);
$html = '