reupdate
parent
3d42da7816
commit
8d71cc849a
8
app.json
8
app.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "OneManager",
|
"name": "Tfo",
|
||||||
"description": "Deploy OneManager to heroku",
|
"description": "Deploy Tfo to heroku",
|
||||||
"website": "https://github.com/qkqpttgf/OneManager-php",
|
"website": "https://github.com/BingoKingo/Tfo",
|
||||||
"repository": "https://github.com/qkqpttgf/OneManager-php",
|
"repository": "https://github.com/BingoKingo/Tfo",
|
||||||
"success_url": "/"
|
"success_url": "/"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -242,7 +242,8 @@ function_name:' . $_SERVER['function_name'] . '<br>
|
||||||
|
|
||||||
function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
|
function OnekeyUpate($auth = 'BingoKingo', $project = 'Tfo', $branch = 'master')
|
||||||
{
|
{
|
||||||
//'https://github.com/qkqpttgf/OneManager-php/tarball/master/';
|
//'original:https://github.com/qkqpttgf/OneManager-php/tarball/master/';
|
||||||
|
//'mine:https://https://github.com/BingoKingo/Tfo/tarball/master/';
|
||||||
$source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . $branch . '/';
|
$source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . $branch . '/';
|
||||||
return json_decode(updateHerokuapp(getConfig('function_name'), getConfig('APIKey'), $source)['body'], true);
|
return json_decode(updateHerokuapp(getConfig('function_name'), getConfig('APIKey'), $source)['body'], true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
Tfo:
|
||||||
|
List of files changed:
|
||||||
|
Information app.json,version,readme.md
|
||||||
|
UpdateAddress heroku.php,scf.php
|
||||||
|
Theme tfo_md_tr.php ,tfo_md.php (based on classic.php,latest at 2020.4.4)
|
||||||
|
|
||||||
|
Original:
|
||||||
Install program first, then add onedrive in setup after login.
|
Install program first, then add onedrive in setup after login.
|
||||||
先安装程序,登录后在设置中添加onedrive。
|
先安装程序,登录后在设置中添加onedrive。
|
||||||
|
|
||||||
|
|
|
@ -6,68 +6,58 @@
|
||||||
<meta charset=utf-8>
|
<meta charset=utf-8>
|
||||||
<meta http-equiv=X-UA-Compatible content="IE=edge">
|
<meta http-equiv=X-UA-Compatible content="IE=edge">
|
||||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||||
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>,Li-Share-Storage-Mini,auth_by_BingoKingo,power_by_逸笙">
|
<meta name="keywords" content="<?php echo $n_path;?>,<?php if ($p_path!='') echo $p_path.','; echo $_SERVER['sitename'];?>">
|
||||||
|
<meta name="description" content="<?php if ($_GET['preview']) echo 'Preview of '.$n_path; else echo 'List of '.$n_path; ?>. OneManager(An index & manager of Onedrive auth by ysun).">
|
||||||
<link rel="icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
||||||
<link rel="shortcut icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="<?php echo $_SERVER['base_disk_path'];?>favicon.ico" type="image/x-icon" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{font-family:'-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif',Helvetica,Arial,sans-serif;font-size:14px;line-height:1em;color:#000;background-color:#f7f7f9;<?php if (getConfig('background')) { ?>background-repeat:no-repeat;background-position:center;background-size:cover;background-attachment:fixed;background-image:url("<?php echo getConfig('background'); ?>");<?php } ?>}
|
body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1em;color:#000;background-color:#f7f7f9;<?php if (getConfig('background')) { ?>background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-image:url("<?php echo getConfig('background'); ?>");<?php } ?>}
|
||||||
a{color:#24292e;cursor:pointer;text-decoration:none}
|
a{color:#24292e;cursor:pointer;text-decoration:none}
|
||||||
ion-icon{font-size:16px;vertical-align:bottom}
|
ion-icon{font-size:15px;vertical-align:bottom}
|
||||||
input{border:none;transition-duration: 0.3s;border-radius:16px;background-color:transparent;color:#24292e}
|
|
||||||
input:hover{shadow:0 0 6px 0 rgb(128,128,128);background-color:rgba(205,205,245,0.8)}
|
|
||||||
::-webkit-scrollbar{display:none}
|
|
||||||
.changelanguage{position:absolute;right:5px;}
|
.changelanguage{position:absolute;right:5px;}
|
||||||
.title{text-align:center;margin-top:1rem;letter-spacing:2px;margin-bottom:2rem}
|
.title{text-align:center;margin-top:1rem;letter-spacing:2px;margin-bottom:2rem}
|
||||||
.title a{color:#24292e;text-decoration:none}
|
.title a{color:#333;text-decoration:none}
|
||||||
.list-wrapper{width:88%;margin:0 auto 10px;position:relative;box-shadow:0 0 6px 0 rgb(128,128,128);border-radius:6px;}
|
.list-wrapper{width:80%;margin:0 auto 30px;position:relative;box-shadow:0 0 32px 0 rgb(128,128,128);border-radius:15px;}
|
||||||
.list-container{position:relative;overflow:hidden;border-radius:6px;}
|
.list-container{position:relative;overflow:hidden;border-radius:15px;}
|
||||||
.list-header-container{position:relative;0px 2px 6px rgba(128, 128, 128)}
|
.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;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-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: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.3)}
|
.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: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:30px 30px;text-align:left;font-weight:400;color:#000;background-color:rgba(245,245,245,0.5);white-space:nowrap;overflow:auto;}
|
||||||
.more-disk a{margin:0 2px;padding:5px;transition-duration: 0.3s;border-radius: 18px;background-color:transparent; color: #24292e}
|
.more-disk a{margin:0 10px;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, .more-disk a[now]{ background-color:rgba(85,85,85,0.4);box-shadow:inset 0 1px 3px #000000bd;color: white}
|
.more-disk a:hover, .more-disk a[now]{ background-color: rgba(85,85,85,0.7); color: white; }
|
||||||
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0}
|
.list-table{width:100%;padding:0 20px 20px 20px;border-spacing:0}
|
||||||
.list-table tr{height:32px;transition-duration: 0.3s}
|
.list-table tr{height:40px}
|
||||||
.list-table tr[data-to]:hover{background:rgba(85,85,85,0.4);color:white}
|
.list-table tr[data-to]:hover{background:rgba(85,85,85,0.7);color:white;}
|
||||||
.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,.list-table th{padding:0 8px;text-align:left}
|
.list-table td,.list-table th{padding:0 10px;text-align:left}
|
||||||
.list-table .size,.list-table .updated_at{text-align:right}
|
.list-table .size,.list-table .updated_at{text-align:right}
|
||||||
.mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=20);opacity:0.2;z-index:2;}
|
.mask{position:absolute;left:0px;top:0px;width:100%;background-color:#000;filter:alpha(opacity=50);opacity:0.5;z-index:2;}
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
.operate{display:inline-table;margin:0;margin-right:5px;list-style:none}
|
.operate{display:inline-table;margin:0;margin-right:5px;list-style:none}
|
||||||
.operate ul{position:absolute;display:none;background:white;transition-duration: 0.3s;box-shadow:0 0 6px 0 rgb(128,128,128);border-radius:6px;margin:-7px 0 0 0;padding:0 3px;color:#205D67;z-index:3;}
|
.operate ul{position:absolute;display:none;background:#fffaaa;border:0px #f7f7f7 solid;border-radius:5px;margin:-7px 0 0 0;padding:0 7px;color:#205D67;z-index:1;}
|
||||||
.operate:hover ul{position:absolute;display:inline-table;}
|
.operate:hover ul{position:absolute;display:inline-table;}
|
||||||
.operate ul li{padding:6px;list-style:none;display:block;}
|
.operate ul li{padding:7px;list-style:none;display:block;}
|
||||||
.list-table tr[data-to]:hover .operate ul li a{color:#24292e}
|
.list-table tr[data-to]:hover .operate ul li a{color:black}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.operatediv{position:absolute;border:0px #CCCCCC;box-shadow:0 0 6px 0 rgb(128,128,128);transition-duration: 0.3s;border-radius:6px;background-color:white;color:#24292e;z-index:3;}
|
.operatediv{position:absolute;border:1px #CCCCCC;background-color:#FFFFCC;z-index:2;}
|
||||||
.operatediv div{margin:16px}
|
.operatediv div{margin:16px}
|
||||||
.operatediv_close{position:absolute;right:3px;top:3px;}
|
.operatediv_close{position:absolute;right:3px;top:3px;}
|
||||||
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
|
.readme{padding:8px;background-color:rgba(245,245,245,0.5);}
|
||||||
.markdown-body{padding:20px;text-align:left;font-size:14px !important}
|
.markdown-body{padding:20px;text-align:left}
|
||||||
@media only screen and (max-width:480px){
|
@media only screen and (max-width:480px){
|
||||||
.title{margin-bottom:24px}
|
.title{margin-bottom:24px}
|
||||||
.list-wrapper{width:96%; margin-bottom:0 auto 10px;}
|
.list-wrapper{width:95%; margin-bottom:24px;}
|
||||||
.list-table {padding:8px}
|
.list-table {padding:8px}
|
||||||
.list-table td, .list-table th{white-space:nowrap;overflow:auto;max-width:80px}
|
.list-table td, .list-table th{white-space:nowrap;overflow:auto;max-width:80px}
|
||||||
.size, .updated_at{display:none}
|
.size, .updated_at{display:none}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
|
||||||
echo '<script language="javascript">';
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
echo 'window.onload=function(){var colorList=["#a9ddccbd","#ff6867bd","#809b9cbd","#00cccbbd","#bcbdc1bd","#f6c500bd","#767386bd","#4cda64bd","f44336bd","e91e63bd","9c27b0bd","673ab7bd","3f51b5bd","2196f3bd","03a9f4bd","00bcd4bd","009688bd","4caf50bd","8b34abd","cddc39bd","c5b73cbd","e4ad08bd","ff5722bd","795548bd","9e9e9ebd","607d8bbd"];var div=document.getElementsByClassName("list-header-container");for(var i=0;i<div.length;i++){var bgColor=getColorByRandom(colorList);div[i].style.background=bgColor}function getColorByRandom(colorList){var colorIndex=Math.floor(Math.random()*colorList.length);var color=colorList[colorIndex];colorList.splice(colorIndex,1);return color}};';
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
echo '</script>';
|
|
||||||
?>
|
|
||||||
<div style="padding:1px">
|
<div style="padding:1px">
|
||||||
<?php
|
<?php
|
||||||
if (getConfig('admin')!='') if (!$_SERVER['admin']) {
|
if (getConfig('admin')!='') if (!$_SERVER['admin']) {
|
||||||
|
@ -87,7 +77,7 @@ echo '</script>';
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
<select class="changelanguage" name="language" onchange="changelanguage(this.options[this.options.selectedIndex].value)" style="display:none !important;">
|
<select class="changelanguage" name="language" onchange="changelanguage(this.options[this.options.selectedIndex].value)">
|
||||||
<option value="">Language</option>
|
<option value="">Language</option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($constStr['languages'] as $key1 => $value1) { ?>
|
foreach ($constStr['languages'] as $key1 => $value1) { ?>
|
||||||
|
@ -108,7 +98,7 @@ echo '</script>';
|
||||||
<div class="list-wrapper">
|
<div class="list-wrapper">
|
||||||
<div class="list-container">
|
<div class="list-container">
|
||||||
<div class="list-header-container">
|
<div class="list-header-container">
|
||||||
<div class="more-disk" style="display:none !important;">
|
<div class="more-disk">
|
||||||
<?php foreach ($disktags as $disk) {
|
<?php foreach ($disktags as $disk) {
|
||||||
$diskname = getConfig('diskname', $disk);
|
$diskname = getConfig('diskname', $disk);
|
||||||
if ($diskname=='') $diskname = $disk;
|
if ($diskname=='') $diskname = $disk;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
65
version
65
version
|
@ -1,51 +1,20 @@
|
||||||
20200402-1830.17
|
20200402-1830.17
|
||||||
Oneclick update can select which branch to update. Now use the accept language instead of the language config.
|
Oneclick update can select which branch to update. Now use the accept language instead of the language config.
|
||||||
一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
一键更新可以选择哪个分支了。现在开始使用浏览器语言,抛弃language设置。
|
||||||
|
<font color=#CCCCCC >
|
||||||
20200326-0001.16
|
Update Data:
|
||||||
You can add sharepoint site drive as a disk, <font color=red>you must reinstall after update</font>.
|
20200326-0001.16 You can add sharepoint site drive as a disk,you must reinstall after update.可以将sharepoint网站添加成一个盘,由于结构改变,升级后只能重装。
|
||||||
可以将sharepoint网站添加成一个盘,<font color=red>由于结构改变,升级后只能重装</font>。
|
20200321-1830.15 after this update, then 'index.html' function will bug in other theme.cache text file content;add hideFunctionalityFile;list exist disktags when AddDisk。本次更新后,'index.html'功能在其它主题会导致bug。文本类文件将缓存;添加hideFunctionalityFile开关;在添加网盘时会显示已经在用的标签。
|
||||||
20200321-1830.15
|
20200311-2150.14 Add a switch, can download a known file or not, while the folder is encrypted.Hide time and size in mobile.Now, you can get a random 'jpg' from a folder when you type '?random=jpg' after the folder.增加一个开关,在目录加密后能否下载其中的某个文件。在手机上浏览时,隐藏修改时间跟大小。加入一个功能,现在可以在某个目录后面加上'?random=jpg'来得到本目录里面的一张随机jpg。
|
||||||
本次更新后,'index.html'功能在其它主题会导致bug。
|
20200229-1300.13 In SCF, some config can input Special symbols now, like ?&= 。在SCF中,某些配置可以输入特殊符号了,像background可以用?&=之类的了。
|
||||||
文本类文件将缓存;添加hideFunctionalityFile开关;在添加网盘时会显示已经在用的标签。
|
20200225-1310.12 Can update by one click any time. fix bugs: special tag, reupload.可以不管版本直接一键更新(覆盖)了。修复可以使用特殊onedrive标签的bug,修复断网续传的问题。
|
||||||
after this update, then 'index.html' function will bug in other theme.
|
20200222-2130.11 you can set background now. fix bug: 2nd disk upload.可以设置背景图片了。第2个盘上传后链接不对。
|
||||||
cache text file content;add hideFunctionalityFile;list exist disktags when AddDisk。
|
20200222-1700.09 Can copy file and folder now.可以复制文件跟目录了。
|
||||||
20200311-2150.14
|
20200220-1220.08 Multy Mode! You can add more Onedrive in one project (bind Onedrive in setup). And now, heroku apps can update in setup! 多盘来了,在设置中添加Onedrive,另,heroku 上也能一键更新了!
|
||||||
Add a switch, can download a known file or not, while the folder is encrypted.
|
20200215-1850.07 fix: head.md not show if no readme.md.修复当没有readme的时候就不显示head的问题。
|
||||||
Hide time and size in mobile.
|
20200215-1700.06 classic theme can read the head.md file now.classic主题可以处理head.md文件了。
|
||||||
Now, you can get a random 'jpg' from a folder when you type '?random=jpg' after the folder.
|
20200202-2010.05 refresh token expires in 90 day, save a new token per month. classic theme add some icon for admin.refresh token 90天过期,所以每月保存一个新的token。classic主题加了点管理图标。
|
||||||
增加一个开关,在目录加密后能否下载其中的某个文件。
|
20200129-2050.04 if there is 'index.html', then do not show file but show the index.html, except admin.如果有index.html,就不显示文件列表了,直接显示index.html内容,除非是管理员。
|
||||||
在手机上浏览时,隐藏修改时间跟大小。
|
20200120.02 fix domain_path do not work. domain_path正常工作了。
|
||||||
加入一个功能,现在可以在某个目录后面加上'?random=jpg'来得到本目录里面的一张随机jpg。
|
20200118.01 Can be deploy to heroku/SCF/normal space.Change imgup_path to guestup_path, plz make sure it after update. SCF、heroku、普通VPS,三种环境都可以用了。将imgup_path改成guestup_path更符合用途,更新后请注意更改。
|
||||||
20200229-1300.13
|
</font>
|
||||||
In SCF, some config can input Special symbols now, like ?&= 。
|
|
||||||
在SCF中,某些配置可以输入特殊符号了,像background可以用?&=之类的了。
|
|
||||||
20200225-1310.12
|
|
||||||
Can update by one click any time. fix bugs: special tag, reupload.
|
|
||||||
可以不管版本直接一键更新(覆盖)了。修复可以使用特殊onedrive标签的bug,修复断网续传的问题。
|
|
||||||
20200222-2130.11
|
|
||||||
you can set background now. fix bug: 2nd disk upload.
|
|
||||||
可以设置背景图片了。第2个盘上传后链接不对。
|
|
||||||
20200222-1700.09
|
|
||||||
Can copy file and folder now.
|
|
||||||
可以复制文件跟目录了。
|
|
||||||
20200220-1220.08
|
|
||||||
Multy Mode! You can add more Onedrive in one project (bind Onedrive in setup). And now, heroku apps can update in setup!
|
|
||||||
多盘来了,在设置中添加Onedrive,另,heroku 上也能一键更新了!
|
|
||||||
20200215-1850.07
|
|
||||||
fix: head.md not show if no readme.md.
|
|
||||||
修复当没有readme的时候就不显示head的问题。
|
|
||||||
20200215-1700.06
|
|
||||||
classic theme can read the head.md file now.
|
|
||||||
classic主题可以处理head.md文件了。
|
|
||||||
20200202-2010.05
|
|
||||||
refresh token expires in 90 day, save a new token per month. classic theme add some icon for admin.
|
|
||||||
refresh token 90天过期,所以每月保存一个新的token。classic主题加了点管理图标。
|
|
||||||
20200129-2050.04
|
|
||||||
if there is 'index.html', then do not show file but show the index.html, except admin.
|
|
||||||
如果有index.html,就不显示文件列表了,直接显示index.html内容,除非是管理员。
|
|
||||||
20200120.02
|
|
||||||
fix domain_path do not work. domain_path正常工作了。
|
|
||||||
20200118.01
|
|
||||||
Can be deploy to heroku/SCF/normal space. SCF、heroku、普通VPS,三种环境都可以用了。
|
|
||||||
Change imgup_path to guestup_path, plz make sure it after update. 将imgup_path改成guestup_path更符合用途,更新后请注意更改。
|
|
Loading…
Reference in New Issue