pull/216/head
BingoKingo 2020-09-18 21:52:02 +08:00
commit 9f2fd7d357
3 changed files with 43 additions and 22 deletions

View File

@ -349,7 +349,7 @@ function setConfigResponse($response)
return json_decode( $response, true ); return json_decode( $response, true );
} }
function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master') function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
{ {
$source = '/tmp/code.zip'; $source = '/tmp/code.zip';
$outPath = '/tmp/'; $outPath = '/tmp/';

View File

@ -34,15 +34,15 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td rowspan="4">UpdateAddress</td> <td rowspan="7">UpdateAddress</td>
<td> <td>
<a href="./platform/Heroku.php" title="Heroku.php">Heroku.php</a> <a href="./platform/Heroku.php" title="Heroku.php">Heroku.php</a>
</td> </td>
<td rowspan="4">Address to update is changed for easy management and updating</td> <td rowspan="7">Address to update is changed for easy management and updating</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="./platform/TencentSCF.php" title="TencentSCF.php">TencentSCF.php</a> <a href="./platform/BaiduCFC.php" title="BaiduCFC.php">BaiduCFC.php</a>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -52,7 +52,22 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="./platform/HuaweiFG.php" title="HuaweiFG.php">HuaweiFG.php</a> <a href="./platform/TencentSCF_file.php" title="TencentSCF_file.php">TencentSCF_file.php</a>
</td>
</tr>
<tr>
<td>
<a href="./platform/TencentSCF_env.php" title="TencentSCF_env.php">TencentSCF_env.php</a>
</td>
</tr>
<tr>
<td>
<a href="./platform/HuaweiFG_file.php" title="HuaweiFG_file.php">HuaweiFG_file.php</a>
</td>
</tr>
<tr>
<td>
<a href="./platform/HuaweiFG_env.php" title="HuaweiFG_env.php">HuaweiFG_env.php</a>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -26,9 +26,9 @@
.list-wrapper{width:88%;margin:0 auto 10px;position:relative;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);border-radius:6px;} .list-wrapper{width:88%;margin:0 auto 10px;position:relative;box-shadow:0 1px 15px rgba(27,31,35,.15);border:1px solid rgba(27,31,35,.15);border-radius:6px;}
.list-container{position:relative;overflow:hidden;border-radius:6px} .list-container{position:relative;overflow:hidden;border-radius:6px}
.list-header-container{position:relative} .list-header-container{position:relative}
.list-header-container a.back-link{color: #000;display: inline-block;font-size: 16px;margin: 8px 8px;padding: 8px 8px;vertical-align:middle;text-decoration: none;position: absolute;top: 4px;left: 12px} .list-header-container a.back-link{color: #000;display: inline-block;font-size: 16px;padding: 19px 19px;vertical-align:middle;text-decoration: none;position: absolute;}
.list-container,.list-header-container,.list-wrapper,a.back-link:hover,body{color:#24292e} .list-container,.list-header-container,.list-wrapper,a.back-link:hover,body{color:#24292e}
.table-header{margin:0;border:0 none;padding:18px 48px;line-height:1.3;text-align:left;font-weight:400;color:#556677;background-color:rgba(245,245,245,0.3);word-break: break-all;word-wrap: break-word;} .table-header{margin:0;border:0 none;padding:16px 48px;line-height:1.3;text-align:left;font-weight:400;color:#24292e;background-color:rgba(245,245,245,0.3);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.6)} .list-body-container{position:relative;left:0;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;background:rgba(245,245,245,0.6)}
.more-disk{margin:0;border:0 none;padding:18px 18px;text-align:center;font-weight:400;color:#000;background-color:rgba(245,245,245,0.3);white-space:nowrap;overflow:auto;} .more-disk{margin:0;border:0 none;padding:18px 18px;text-align:center;font-weight:400;color:#000;background-color:rgba(245,245,245,0.3);white-space:nowrap;overflow:auto;}
.more-disk a{border:1px solid rgba(27,31,35,0);font-weight:bold;margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent;color: #24292e} .more-disk a{border:1px solid rgba(27,31,35,0);font-weight:bold;margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent;color: #24292e}
@ -39,7 +39,7 @@
.list-table tr[data-to]:hover a{color:white} .list-table tr[data-to]:hover a{color:white}
.list-table tr:first-child{background:rgba(245,245,245,0)} .list-table tr:first-child{background:rgba(245,245,245,0)}
.list-table td.updated_at,.list-table th.updated_at{width:15%;} .list-table td.updated_at,.list-table th.updated_at{width:15%;}
.list-table td.file,.list-table th.file{width:70%;} .list-table td.file,.list-table th.file{width:72%;}
.list-table td.size,.list-table th.size{width:10%;} .list-table td.size,.list-table th.size{width:10%;}
.list-table td,.list-table th{padding:0 8px;text-align:left;float:left;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .list-table td,.list-table th{padding:0 8px;text-align:left;float:left;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-table td button,.list-table th button,.swal-button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;} .list-table td button,.list-table th button,.swal-button{border-radius:16px;transition-duration: 0.3s;cursor:pointer;color:#24292e;height:24px;padding: 0 8px;background:transparent;border:1px solid rgba(27,31,35,0);font-weight:bold;}
@ -72,6 +72,16 @@
.operatediv_close{position:absolute;right:3px;top:3px;} .operatediv_close{position:absolute;right:3px;top:3px;}
.readme{padding:0px;} .readme{padding:0px;}
.markdown-body{padding:24px;text-align:left;font-size:14px !important} .markdown-body{padding:24px;text-align:left;font-size:14px !important}
@media only screen and (max-width:1856px){
.list-table td.file,.list-table th.file{width:72%}
.list-table td.size,.list-table th.size{width:70px !important}
.list-table td.updated_at,.list-table th.updated_at{width:140px !important}
}
@media only screen and (max-width:1448px){
.list-table td.file,.list-table th.file{width:71%)}
.list-table td.size,.list-table th.size{width:70px !important}
.list-table td.updated_at,.list-table th.updated_at{width:140px !important}
}
@media only screen and (max-width:1152px){ @media only screen and (max-width:1152px){
.list-table td.file,.list-table th.file{width:calc(95% - 220px)} .list-table td.file,.list-table th.file{width:calc(95% - 220px)}
.list-table td.size,.list-table th.size{width:70px !important} .list-table td.size,.list-table th.size{width:70px !important}
@ -180,20 +190,16 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list-wrapper">
<div class="list-container">
<div class="list-header-container">
<div class="readme" style="padding:16px !important">
<center><img src="https://v1.jinrishici.com/all.svg?font-size=32&spacing=12" style="max-width:100%;"></center>
</div>
</div>
</div>
</div>
<?php } <?php }
if ($files) { if ($files) {
if (isset($files['children']['head.md'])) { ?> if (isset($files['children']['head.md'])) { ?>
<div class="list-wrapper" id="head-div"> <div class="list-wrapper" id="head-div">
<div class="list-container"> <div class="list-container">
<div class="list-header-container">
<div class="readme" style="padding:12px !important;box-shadow:0 1px 8px rgba(27,31,35,0.8);">
<center><img src="https://v1.jinrishici.com/all.svg?font-size=26&spacing=7" style="max-width:100%;"></center>
</div>
</div>
<div class="list-body-container"> <div class="list-body-container">
<div class="readme"> <div class="readme">
<div class="markdown-body" id="head"> <div class="markdown-body" id="head">
@ -206,7 +212,7 @@
<?php } ?> <?php } ?>
<div class="list-wrapper" id="list-div"> <div class="list-wrapper" id="list-div">
<div class="list-container"> <div class="list-container">
<div class="list-header-container" style="box-shadow:0 1px 8px rgba(27,31,35,.3)"> <div class="list-header-container" style="font-size:16px;box-shadow:0 1px 8px rgba(27,31,35,0.8);">
<?php <?php
if ($path !== '/') { if ($path !== '/') {
$current_url = $_SERVER['PHP_SELF']; $current_url = $_SERVER['PHP_SELF'];
@ -239,17 +245,17 @@
<?php } else { <?php } else {
if ($_SERVER['ishidden']<4) { if ($_SERVER['ishidden']<4) {
if (isset($files['error'])) { if (isset($files['error'])) {
echo '<div style="margin:8px;">' . $files['error']['message'] . '</div>'; echo '<div style="margin:18px;">' . $files['error']['message'] . '</div>';
$statusCode=404; $statusCode=404;
} else { } else {
if (isset($files['file'])) { if (isset($files['file'])) {
?> ?>
<div style="margin: 12px 4px 4px; text-align: center"> <div style="margin:18px; text-align: center">
<div style="margin: 24px"> <div style="margin:0px">
<textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&amp;',spurlencode(path_format($_SERVER['base_disk_path'] . '/' . $path), '/'))); ?></textarea> <textarea id="url" title="url" rows="1" style="width: 100%; margin-top: 2px;" readonly><?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&amp;',spurlencode(path_format($_SERVER['base_disk_path'] . '/' . $path), '/'))); ?></textarea>
<a href="<?php echo path_format($_SERVER['base_disk_path'] . '/' . $path);//$files[$_SERVER['DownurlStrName']] ?>"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon>&nbsp;<?php echo getconstStr('Download'); ?></a> <a href="<?php echo path_format($_SERVER['base_disk_path'] . '/' . $path);//$files[$_SERVER['DownurlStrName']] ?>"><ion-icon name="download" style="line-height: 16px;vertical-align: middle;"></ion-icon>&nbsp;<?php echo getconstStr('Download'); ?></a>
</div> </div>
<div style="margin: 24px"> <div style="margin:0px">
<?php $ext = strtolower(substr($path, strrpos($path, '.') + 1)); <?php $ext = strtolower(substr($path, strrpos($path, '.') + 1));
if (in_array($ext, $exts['img'])) { if (in_array($ext, $exts['img'])) {
echo ' <img src="' . $files[$_SERVER['DownurlStrName']] . '" alt="' . substr($path, strrpos($path, '/')) . '" onload="if(this.offsetWidth>document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" /> echo ' <img src="' . $files[$_SERVER['DownurlStrName']] . '" alt="' . substr($path, strrpos($path, '/')) . '" onload="if(this.offsetWidth>document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" />