Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
199ccca0fe | ||
|
|
1d9b355743 | ||
|
|
f0437fbb07 |
@@ -1,6 +1,6 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (1, 1, 6)
|
VERSION = (1, 1, 7)
|
||||||
CODENAME = "opus"
|
CODENAME = "opus"
|
||||||
BUILD_DT = (2021, 12, 7)
|
BUILD_DT = (2021, 12, 7)
|
||||||
|
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ class TcpSrv(object):
|
|||||||
|
|
||||||
for tk, tv in hits:
|
for tk, tv in hits:
|
||||||
try:
|
try:
|
||||||
title_tab[tk] += " and {}".format(tv)
|
title_tab[tk][tv] = 1
|
||||||
except:
|
except:
|
||||||
title_tab[tk] = tv
|
title_tab[tk] = {tv: 1}
|
||||||
|
|
||||||
if msgs:
|
if msgs:
|
||||||
msgs[-1] += "\n"
|
msgs[-1] += "\n"
|
||||||
@@ -263,12 +263,21 @@ class TcpSrv(object):
|
|||||||
|
|
||||||
def _set_wintitle(self, vars):
|
def _set_wintitle(self, vars):
|
||||||
if "pub" not in vars:
|
if "pub" not in vars:
|
||||||
vars["pub"] = "Local-Only"
|
vars["pub"] = {"Local-Only": 1}
|
||||||
|
|
||||||
|
vars2 = {}
|
||||||
|
for k, eps in vars.items():
|
||||||
|
vars2[k] = {
|
||||||
|
ep: 1
|
||||||
|
for ep in eps.keys()
|
||||||
|
if ":" not in ep or ep.split(":")[0] not in eps
|
||||||
|
}
|
||||||
|
|
||||||
title = ""
|
title = ""
|
||||||
|
vars = vars2
|
||||||
for p in self.args.wintitle.split(" "):
|
for p in self.args.wintitle.split(" "):
|
||||||
if p.startswith("$"):
|
if p.startswith("$"):
|
||||||
p = vars.get(p[1:], "(None)")
|
p = " and ".join(sorted(vars.get(p[1:], {"(None)": 1}).keys()))
|
||||||
|
|
||||||
title += "{} ".format(p)
|
title += "{} ".format(p)
|
||||||
|
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ html.light #wfm a:not(.en) {
|
|||||||
width: calc(100% - 10.5em);
|
width: calc(100% - 10.5em);
|
||||||
background: rgba(0,0,0,0.2);
|
background: rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
@media (min-width: 80em) {
|
@media (min-width: 70em) {
|
||||||
#barpos,
|
#barpos,
|
||||||
#barbuf {
|
#barbuf {
|
||||||
width: calc(100% - 21em);
|
width: calc(100% - 21em);
|
||||||
@@ -679,7 +679,7 @@ input.eq_gain {
|
|||||||
#wrap {
|
#wrap {
|
||||||
margin: 1.8em 1.5em 0 1.5em;
|
margin: 1.8em 1.5em 0 1.5em;
|
||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
padding-bottom: 5em;
|
padding-bottom: 7em;
|
||||||
}
|
}
|
||||||
#tree {
|
#tree {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -1481,7 +1481,7 @@ function play(tid, is_ev, seek, call_depth) {
|
|||||||
seek_au_sec(seek);
|
seek_au_sec(seek);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!seek) {
|
if (!seek && !ebi('unsearch')) {
|
||||||
var o = ebi(oid);
|
var o = ebi(oid);
|
||||||
o.setAttribute('id', 'thx_js');
|
o.setAttribute('id', 'thx_js');
|
||||||
sethash(oid);
|
sethash(oid);
|
||||||
@@ -2966,9 +2966,6 @@ document.onkeydown = function (e) {
|
|||||||
if (QS('.opview.act'))
|
if (QS('.opview.act'))
|
||||||
return QS('#ops>a').click();
|
return QS('#ops>a').click();
|
||||||
|
|
||||||
if (QS('#unsearch'))
|
|
||||||
return QS('#unsearch').click();
|
|
||||||
|
|
||||||
if (widget.is_open)
|
if (widget.is_open)
|
||||||
return widget.close();
|
return widget.close();
|
||||||
|
|
||||||
@@ -2978,6 +2975,9 @@ document.onkeydown = function (e) {
|
|||||||
if (!treectl.hidden)
|
if (!treectl.hidden)
|
||||||
return treectl.detree();
|
return treectl.detree();
|
||||||
|
|
||||||
|
if (QS('#unsearch'))
|
||||||
|
return QS('#unsearch').click();
|
||||||
|
|
||||||
if (thegrid.en)
|
if (thegrid.en)
|
||||||
return ebi('griden').click();
|
return ebi('griden').click();
|
||||||
}
|
}
|
||||||
@@ -3352,7 +3352,7 @@ document.onkeydown = function (e) {
|
|||||||
|
|
||||||
treectl.hide();
|
treectl.hide();
|
||||||
|
|
||||||
var html = mk_files_header(tagord);
|
var html = mk_files_header(tagord), seen = {};
|
||||||
html.push('<tbody>');
|
html.push('<tbody>');
|
||||||
html.push('<tr><td>-</td><td colspan="42"><a href="#" id="unsearch"><big style="font-weight:bold">[❌] close search results</big></a></td></tr>');
|
html.push('<tr><td>-</td><td colspan="42"><a href="#" id="unsearch"><big style="font-weight:bold">[❌] close search results</big></a></td></tr>');
|
||||||
for (var a = 0; a < res.hits.length; a++) {
|
for (var a = 0; a < res.hits.length; a++) {
|
||||||
@@ -3361,13 +3361,18 @@ document.onkeydown = function (e) {
|
|||||||
sz = esc(r.sz + ''),
|
sz = esc(r.sz + ''),
|
||||||
rp = esc(uricom_dec(r.rp + '')[0]),
|
rp = esc(uricom_dec(r.rp + '')[0]),
|
||||||
ext = rp.lastIndexOf('.') > 0 ? rp.split('.').pop().split('?')[0] : '%',
|
ext = rp.lastIndexOf('.') > 0 ? rp.split('.').pop().split('?')[0] : '%',
|
||||||
links = linksplit(r.rp + '');
|
id = 'f-' + ('00000000' + crc32(rp)).slice(-8);
|
||||||
|
|
||||||
|
while (seen[id])
|
||||||
|
id += 'a';
|
||||||
|
seen[id] = 1;
|
||||||
|
|
||||||
if (ext.length > 8)
|
if (ext.length > 8)
|
||||||
ext = '%';
|
ext = '%';
|
||||||
|
|
||||||
links = links.join('');
|
var links = linksplit(r.rp + '', id).join(''),
|
||||||
var nodes = ['<tr><td>-</td><td><div>' + links + '</div>', sz];
|
nodes = ['<tr><td>-</td><td><div>' + links + '</div>', sz];
|
||||||
|
|
||||||
for (var b = 0; b < tagord.length; b++) {
|
for (var b = 0; b < tagord.length; b++) {
|
||||||
var k = tagord[b],
|
var k = tagord[b],
|
||||||
v = r.tags[k] || "";
|
v = r.tags[k] || "";
|
||||||
@@ -3437,7 +3442,7 @@ var treectl = (function () {
|
|||||||
});
|
});
|
||||||
setwrap(bcfg_bind(r, 'wtree', 'wraptree', true, setwrap));
|
setwrap(bcfg_bind(r, 'wtree', 'wraptree', true, setwrap));
|
||||||
setwrap(bcfg_bind(r, 'parpane', 'parpane', true, onscroll));
|
setwrap(bcfg_bind(r, 'parpane', 'parpane', true, onscroll));
|
||||||
bcfg_bind(r, 'htree', 'hovertree', true, reload_tree);
|
bcfg_bind(r, 'htree', 'hovertree', false, reload_tree);
|
||||||
|
|
||||||
function setwrap(v) {
|
function setwrap(v) {
|
||||||
clmod(ebi('tree'), 'nowrap', !v);
|
clmod(ebi('tree'), 'nowrap', !v);
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ function makeSortable(table, cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function linksplit(rp) {
|
function linksplit(rp, id) {
|
||||||
var ret = [],
|
var ret = [],
|
||||||
apath = '/',
|
apath = '/',
|
||||||
q = null;
|
q = null;
|
||||||
@@ -464,8 +464,13 @@ function linksplit(rp) {
|
|||||||
vlink = vlink.slice(0, -1) + '<span>/</span>';
|
vlink = vlink.slice(0, -1) + '<span>/</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rp && q)
|
if (!rp) {
|
||||||
link += q;
|
if (q)
|
||||||
|
link += q;
|
||||||
|
|
||||||
|
if (id)
|
||||||
|
link += '" id="' + id;
|
||||||
|
}
|
||||||
|
|
||||||
ret.push('<a href="' + apath + link + '">' + vlink + '</a>');
|
ret.push('<a href="' + apath + link + '">' + vlink + '</a>');
|
||||||
apath += link;
|
apath += link;
|
||||||
|
|||||||
Reference in New Issue
Block a user