test
parent
ede89dc3dd
commit
718a49d2bb
|
@ -2042,7 +2042,7 @@ function render_list($path = '', $files = [])
|
||||||
if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) {
|
if ($_SERVER['base_disk_path']!=$_SERVER['base_path']) {
|
||||||
if (getConfig('diskname')!='') $diskname = getConfig('diskname');
|
if (getConfig('diskname')!='') $diskname = getConfig('diskname');
|
||||||
else $diskname = $_SERVER['disktag'];
|
else $diskname = $_SERVER['disktag'];
|
||||||
$title .= ' - ' . $diskname;
|
// $title .= ' - ' . $diskname;
|
||||||
}
|
}
|
||||||
$title .= ' - ' . $_SERVER['sitename'];
|
$title .= ' - ' . $_SERVER['sitename'];
|
||||||
$html = str_replace('<!--Title-->', $title, $html);
|
$html = str_replace('<!--Title-->', $title, $html);
|
||||||
|
|
14
conststr.php
14
conststr.php
|
@ -431,13 +431,13 @@ $constStr = [
|
||||||
'ar-sa' => 'إضافة قرص',
|
'ar-sa' => 'إضافة قرص',
|
||||||
],
|
],
|
||||||
'Home' => [
|
'Home' => [
|
||||||
'en-us' => 'Tfo',
|
'en-us' => 'Home',
|
||||||
'zh-cn' => 'Tfo',
|
'zh-cn' => '首页',
|
||||||
'zh-tw' => 'Tfo',
|
'zh-tw' => '首頁',
|
||||||
'ja' => 'Tfo',
|
'ja' => 'ホーム',
|
||||||
'ko-kr' => 'Tfo',
|
'ko-kr' => '홈',
|
||||||
'fa' => 'Tfo',
|
'fa' => 'خانه',
|
||||||
'ar-sa' => 'Tfo',
|
'ar-sa' => 'فرونت بيج',
|
||||||
],
|
],
|
||||||
'Preview' => [
|
'Preview' => [
|
||||||
'en-us' => 'Preview',
|
'en-us' => 'Preview',
|
||||||
|
|
11
readme.md
11
readme.md
|
@ -12,11 +12,11 @@
|
||||||
<th>Postscript</th>
|
<th>Postscript</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="3">Information</td>
|
<td rowspan="4">Information</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="./app.json" title="app.json">app.json</a>
|
<a href="./app.json" title="app.json">app.json</a>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan="3">Tfo's information is described in these files for deployment</td>
|
<td rowspan="4">Tfo's information is described in these files for deployment</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -27,6 +27,11 @@
|
||||||
<td>
|
<td>
|
||||||
<a href="./conststr.php" title="conststr.php">conststr.php</a>
|
<a href="./conststr.php" title="conststr.php">conststr.php</a>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="./common.php" title="common.php">common.php</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="8">UpdateAddress</td>
|
<td rowspan="8">UpdateAddress</td>
|
||||||
|
@ -80,7 +85,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
具体地,您可以下载/复制体验一下或参考示例中运用tfo.html的[Li Share Storage Mini](https://tfo.herokuapp.com/ "Li Share Storage Mini")。需要注意:**主题含多盘切换栏,悬浮在路径栏上可见;今日诗词随多盘head.md显示**。目前,主题仍存在诸多问题,请谅解。PS:主题将要实现的功能有狠多,敬请期待...但是自愿附加组件如评论系统、站长工具、访问统计等涉及到其他平台的私密内容不包含在主题内,若有需要请自行寻找在后台添加。主题的php历史版本请到<a href="./theme/" title="Old Theme">Theme</a>文件夹查看.
|
具体地,您可以下载/复制体验一下或参考示例中运用tfo.html的[Li Share Storage Mini](https://tfo.herokuapp.com/ "Li Share Storage Mini")。今日诗词随多盘显示。目前,主题仍存在诸多问题,请谅解。PS:主题将要实现的功能有狠多,敬请期待...但是自愿附加组件如今日诗词、评论系统、站长工具、访问统计等涉及到其他平台的私密内容不包含在主题内,若有需要请自行寻找在后台添加。主题的php历史版本请到<a href="./theme/" title="Old Theme">Theme</a>文件夹查看.
|
||||||
|
|
||||||
## Deploy 部署
|
## Deploy 部署
|
||||||
### Deploy to Heroku
|
### Deploy to Heroku
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
.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:16px 24px;text-align:left;font-weight:400;word-break:break-all;word-wrap:break-word;color:#24292e;background-color:rgba(245,245,245,0.3);line-height:1.3;font-size:18px}
|
.table-header{margin:0;border:0 none;padding:16px 24px;text-align:left;font-weight:400;word-break:break-all;word-wrap:break-word;color:#24292e;background-color:rgba(245,245,245,0.3);line-height:1.3;font-size:18px}
|
||||||
.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;font-weight:400;color:#000;padding:18px 18px;text-align:center;background-color:rgba(245,245,245,0.3);line-height:32px;}
|
.more-disk{margin:0;border:0 none;font-weight:400;color:#000;padding:12px 12px;text-align:center;background-color:rgba(245,245,245,0.3);line-height:32px;}
|
||||||
.more-disk a{margin:0 2px;padding:5px;transition-duration:0.3s;border-radius:18px;background-color:transparent;color:#24292e;border:2px solid rgba(85,85,85,0.7);border:1px solid rgba(27,31,35,0);font-weight:bold;}
|
.more-disk a{margin:0 2px;padding:5px;transition-duration:0.3s;border-radius:18px;background-color:transparent;color:#24292e;border:2px solid rgba(85,85,85,0.7);border:1px solid rgba(27,31,35,0);font-size:16px;}
|
||||||
.more-disk a:hover,.more-disk a[now]{background:rgba(245,245,245,0.3);color:#FFFFFF;border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
.more-disk a:hover,.more-disk a[now]{background:rgba(245,245,245,0.3);color:#FFFFFF;border:1px solid rgba(27,31,35,.15);box-shadow:0 1px 15px rgba(27,31,35,.15)}
|
||||||
.list-table{width:100%;padding:0 10px 10px 10px;border-spacing:0;overflow:hidden;table-layout:fixed}
|
.list-table{width:100%;padding:0 10px 10px 10px;border-spacing:0;overflow:hidden;table-layout:fixed}
|
||||||
.list-table tr{height:fit-content;float:left;width:100%;transition-duration:0.3s;border-radius:16px}
|
.list-table tr{height:fit-content;float:left;width:100%;transition-duration:0.3s;border-radius:16px}
|
||||||
|
@ -187,6 +187,7 @@
|
||||||
<li><a href="?RefreshCache"><ion-icon name="refresh-outline"></ion-icon><!--constStr@RefreshCache--></a></li>
|
<li><a href="?RefreshCache"><ion-icon name="refresh-outline"></ion-icon><!--constStr@RefreshCache--></a></li>
|
||||||
<!--IsFolderEnd-->
|
<!--IsFolderEnd-->
|
||||||
<li><a href="<!--IsPreview?-->setup"><ion-icon name="settings-outline"></ion-icon><!--constStr@Setup--></a></li>
|
<li><a href="<!--IsPreview?-->setup"><ion-icon name="settings-outline"></ion-icon><!--constStr@Setup--></a></li>
|
||||||
|
<li><a onclick="themeinf();"><ion-icon name="heart-circle-outline"></ion-icon><!--constStr@Theme--></a></li>
|
||||||
<li><a onclick="logout();"><ion-icon name="log-out-outline"></ion-icon><!--constStr@Logout--></a></li>
|
<li><a onclick="logout();"><ion-icon name="log-out-outline"></ion-icon><!--constStr@Logout--></a></li>
|
||||||
</ul></li>
|
</ul></li>
|
||||||
<!--AdminEnd-->
|
<!--AdminEnd-->
|
||||||
|
@ -226,6 +227,11 @@
|
||||||
<!--HeadomfContent-->
|
<!--HeadomfContent-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="list-body-container">
|
||||||
|
<div class="readme" id="jinrishici">
|
||||||
|
<center><img src="https://v1.jinrishici.com/all.svg?font-size=26&spacing=7" style="max-width:100%;"></center>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -233,11 +239,6 @@
|
||||||
<!--HeadmdStart-->
|
<!--HeadmdStart-->
|
||||||
<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" id="jinrishici">
|
|
||||||
<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">
|
||||||
|
@ -281,7 +282,7 @@
|
||||||
<!--IsFileStart-->
|
<!--IsFileStart-->
|
||||||
<div style="margin: 12px 4px 4px; text-align: center">
|
<div style="margin: 12px 4px 4px; text-align: center">
|
||||||
<div style="margin: 24px">
|
<div style="margin: 24px">
|
||||||
<input id="url" title="url" type="text" style="width: 90%; margin-top: 2px;" value="<!--base_path--><!--FileEncodeUrl-->" readonly>
|
<input id="url" title="url" type="url" style="width: 90%; margin-top: 2px;" value="<!--FileEncodeUrl-->" readonly>
|
||||||
<a href="<!--FileUrl-->"><ion-icon name="cloud-download-outline" style="line-height: 16px;vertical-align: middle;"></ion-icon> <!--constStr@Download--></a>
|
<a href="<!--FileUrl-->"><ion-icon name="cloud-download-outline" style="line-height: 16px;vertical-align: middle;"></ion-icon> <!--constStr@Download--></a>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 24px;display:block;overflow:hidden;" id="frh">
|
<div style="margin: 24px;display:block;overflow:hidden;" id="frh">
|
||||||
|
@ -444,7 +445,7 @@
|
||||||
<div class="readme" style="overflow:hidden">
|
<div class="readme" style="overflow:hidden">
|
||||||
<div id="vcomments"></div>
|
<div id="vcomments"></div>
|
||||||
<script>new Waline({el:'#vcomments',serverURL: 'https://bkc.vercel.app/',visitor:true,lang:'en',meta:['nick','mail'],requiredFields:['nick'],placeholder:'Write your comment here, please:)'})</script>
|
<script>new Waline({el:'#vcomments',serverURL: 'https://bkc.vercel.app/',visitor:true,lang:'en',meta:['nick','mail'],requiredFields:['nick'],placeholder:'Write your comment here, please:)'})</script>
|
||||||
<span id="/index" class="leancloud_visitors" data-flag-title="Your Article Title">
|
<span id="/index" class="leancloud_visitors" data-flag-title="Li Share Storage Mini">
|
||||||
<em class="post-meta-item-text" style="color:#000000 !important;">Rd </em>
|
<em class="post-meta-item-text" style="color:#000000 !important;">Rd </em>
|
||||||
<i class="leancloud-visitors-count" style="color:#000000 !important;">1000000</i>
|
<i class="leancloud-visitors-count" style="color:#000000 !important;">1000000</i>
|
||||||
</span>
|
</span>
|
||||||
|
@ -594,7 +595,7 @@
|
||||||
<div style="color: rgba(247,247,249,0);text-align:center;text-shadow:0 1px 15px rgba(27,31,35,0);font-weight:bold;margin-top:6px"><!--FootStr--></div>
|
<div style="color: rgba(247,247,249,0);text-align:center;text-shadow:0 1px 15px rgba(27,31,35,0);font-weight:bold;margin-top:6px"><!--FootStr--></div>
|
||||||
</body>
|
</body>
|
||||||
<!--ListStart-->
|
<!--ListStart-->
|
||||||
<!--MdRequireStart--><link rel="stylesheet" href="//unpkg.zhimg.com/github-markdown-css@3.0.1/github-markdown.css">
|
<!--MdRequireStart--><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css">
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/marked@1.2.9/lib/marked.min.js"></script><!--MdRequireEnd-->
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/marked@1.2.9/lib/marked.min.js"></script><!--MdRequireEnd-->
|
||||||
<!--GuestUploadStart--><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/spark-md5@3.0.1/spark-md5.min.js"></script><!--GuestUploadEnd-->
|
<!--GuestUploadStart--><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/spark-md5@3.0.1/spark-md5.min.js"></script><!--GuestUploadEnd-->
|
||||||
<!--AliyundriveUploadJsStart--><script src="https://cdn.jsdelivr.net/npm/sha1@1.1.1/sha1.min.js"></script><!--AliyundriveUploadJsEnd-->
|
<!--AliyundriveUploadJsStart--><script src="https://cdn.jsdelivr.net/npm/sha1@1.1.1/sha1.min.js"></script><!--AliyundriveUploadJsEnd-->
|
||||||
|
@ -612,7 +613,7 @@
|
||||||
}
|
}
|
||||||
<!--ListStart-->
|
<!--ListStart-->
|
||||||
<!--IsFileStart-->
|
<!--IsFileStart-->
|
||||||
var $url = document.getElementById('url');
|
var $url = document.getElementById('url').value;
|
||||||
if ($url) {
|
if ($url) {
|
||||||
$url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML;
|
$url.innerHTML = location.protocol + '//' + location.host + $url.innerHTML;
|
||||||
$url.style.height = $url.scrollHeight + 'px';
|
$url.style.height = $url.scrollHeight + 'px';
|
||||||
|
@ -1366,6 +1367,27 @@ function size_format(num) {
|
||||||
document.cookie = "admin=; path=/; "+expires;
|
document.cookie = "admin=; path=/; "+expires;
|
||||||
location.href = location.href;
|
location.href = location.href;
|
||||||
}
|
}
|
||||||
|
function themeinf() {
|
||||||
|
swal({
|
||||||
|
title: "Tfo' Theme Information",
|
||||||
|
text: "Current Version:20210205<br>Can not support automatic update, please update manually or upgrade with the program.<br>Tfo’s HomePage on GitHub: https://github.com/BingoKingo/Tfo<br>Tfo’s Example Website: https://tfo.herokuapp.com/",
|
||||||
|
icon: "Info",
|
||||||
|
buttons: {
|
||||||
|
cancel: "Close",
|
||||||
|
address: "Get Update Address",
|
||||||
|
update: "Update with OneManager-php",
|
||||||
|
},
|
||||||
|
.then((value) => {
|
||||||
|
switch (value) {
|
||||||
|
case "address":
|
||||||
|
windows.location.href="https://github.com/qkqpttgf/OneManager-php/blob/master/theme/tfo.html"
|
||||||
|
case "update":
|
||||||
|
windows.location.href="/?setup"
|
||||||
|
default:
|
||||||
|
swal.close();
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
<!--IsFolderStart-->
|
<!--IsFolderStart-->
|
||||||
function showdiv(event,action,num) {
|
function showdiv(event,action,num) {
|
||||||
var $operatediv=document.getElementsByName('operatediv');
|
var $operatediv=document.getElementsByName('operatediv');
|
||||||
|
|
Loading…
Reference in New Issue