This commit is contained in:
2019-06-09 23:53:11 -07:00
parent fa79662a12
commit 15d81601c4
8 changed files with 11996 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
// Yuba RTC Browser
/////////////////////////////////////////////////////////////////
$browser_version = "0.7.12";
$browser_version = "0.7.12.5";
require "togggle.php";
require "lib/ref/ref.php";
@@ -24,16 +24,42 @@ $overlay_exts = array("txt","php","inc","sh","md","json","cmd");
<meta charset='UTF-8'>
<style>
html { font-family: Helvetica; word-wrap: break-word; }
html { font-family: Helvetica; word-wrap: break-all; word-break: break-all; }
table.file td { width: 33%; }
table.dir td:last-of-type { width: 22%; }
div#exectime { position: absolute; right: 8px; top: 8px; }
div.container { display: flex; flex-flow: row wrap; justify-content: center; }
div.item { width: <?=$icon_size+$pad;?>px; height: <?=$icon_size+$pad;?>px; padding-bottom: <?=$pad;?> }
div.item { font-size: 11px; }
div.container { display: flex;
flex-flow: row wrap;
justify-content: center;
}
div.item { width: <?=$icon_size+$pad;?>px;
height: <?=$icon_size+$pad*2;?>px;
text-align: center;
}
div.item { font-size: 11px; }
div.ibox { display: table;
height: calc(100% - <?=$pad;?>px);
width: 100%;
}
div.iibox { display: table-cell;
vertical-align: middle;
}
div.diibox { display: table-cell;
vertical-align: middle;
background: url("/icons/directory.png");
background-repeat: no-repeat;
background-size: <?=$icon_size;?>px;
background-position: center;
}
div.flexfill { width: <?=$icon_size+$pad;?>px; height: 1px; }
div.aborted { text-decoration: line-through; }
.slider, .slow_slider { position: absolute !important; top: 50px; right: 10px; width: 200px; }
@@ -102,7 +128,7 @@ function wrapImg(xfactor) {
var maxHeight = 0;
$('div.item').each(function() {
$(this).width((<?=$icon_size?>*xfactor)+<?=$pad;?>);
$(this).height((<?=$icon_size?>*xfactor)+<?=$pad;?>);
$(this).height((<?=$icon_size?>*xfactor)+<?=$pad*2;?>);
img = $(this).find('img');
swidth = $(img).data('width')*xfactor;
sheight = $(img).data('height')*xfactor;
@@ -477,7 +503,7 @@ if ($db_file) {
$height = $row_a['thumb_height'];
$realfile = dirname($db_file).$row_a['thumb_filename'];
if (array_key_exists("thumb_tool",$row_a)) {
if ($row_a['thumb_tool'] == "sips" || $row_a['thumb_tool'] == "ffmpeg" || $row_a['thumb_tool'] == "ql-thumbnail") {
if ($row_a['thumb_tool'] != "qltool" && $row_a['thumb_tool'] != "qlmanage") {
// put a border around images that are not icons
$border = "id='thumb'";
} else {
@@ -642,7 +668,6 @@ if ($db_file) {
//} elseif ($item['thumb_filename']) {
if ($item['thumb_filename']) {
$aspect = $item['thumb_width']/$item['thumb_height'];
if ($aspect > 1) {
$width = $icon_size;
@@ -651,9 +676,13 @@ if ($db_file) {
$width = $icon_size*$aspect;
$height = $icon_size;
}
if ($item['Type'] == "dir") {
$width = $width/2;
$height = $height/2;
}
$realfile = dirname($db_file).$item['thumb_filename'];
if (array_key_exists("thumb_tool",$item)) {
if ($item['thumb_tool'] == "sips" || $item['thumb_tool'] == "ffmpeg" || $item['thumb_tool'] == "ql-thumbnail") {
if ($row_a['thumb_tool'] != "qltool" && $row_a['thumb_tool'] != "qlmanage" && $item['Type'] != "dir") {
// put a border around images that are not icons
$border = "id='thumb'";
} else {
@@ -667,11 +696,20 @@ if ($db_file) {
$icon = "<img src='/icons/directory.png' width='".$icon_size."' height='".$icon_size."' data-width='".$icon_size."' data-height='".$icon_size."'>";
} else {
$icon = "<img src='".findicon($item['Filename'])."' width='".$icon_size."' height='".$icon_size."' data-width='".$icon_size."' data-height='".$icon_size."'>";
}
echo "<div class='ibox'>";
if ($item['thumb_filename'] && $item['Type'] == "dir") {
echo "<div class='diibox'>";
} else {
echo "<div class='iibox'>";
}
echo "\n<a class='".$visibility."' href='?db=".$db_file."&pid=".$item['pid']."'>".$icon."</a>";
echo "</div></div>";
echo "<div class='title'>";
if ($item['UserTags']) {