mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
Merge branch 'hovudstraum' into idp
This commit is contained in:
commit
643e222986
|
@ -1813,19 +1813,21 @@ function MPlayer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function ft2dict(tr) {
|
function ft2dict(tr, skip) {
|
||||||
var th = ebi('files').tHead.rows[0].cells,
|
var th = ebi('files').tHead.rows[0].cells,
|
||||||
rv = [],
|
rv = [],
|
||||||
rh = [],
|
rh = [],
|
||||||
ra = [],
|
ra = [],
|
||||||
rt = {};
|
rt = {};
|
||||||
|
|
||||||
|
skip = skip || {};
|
||||||
|
|
||||||
for (var a = 1, aa = th.length; a < aa; a++) {
|
for (var a = 1, aa = th.length; a < aa; a++) {
|
||||||
var tv = tr.cells[a].textContent,
|
var tv = tr.cells[a].textContent,
|
||||||
tk = a == 1 ? 'file' : th[a].getAttribute('name').split('/').pop().toLowerCase(),
|
tk = a == 1 ? 'file' : th[a].getAttribute('name').split('/').pop().toLowerCase(),
|
||||||
vis = th[a].className.indexOf('min') === -1;
|
vis = th[a].className.indexOf('min') === -1;
|
||||||
|
|
||||||
if (!tv)
|
if (!tv || skip[tk])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
(vis ? rv : rh).push(tk);
|
(vis ? rv : rh).push(tk);
|
||||||
|
@ -1838,7 +1840,7 @@ function ft2dict(tr) {
|
||||||
|
|
||||||
function get_np() {
|
function get_np() {
|
||||||
var tr = QS('#files tr.play');
|
var tr = QS('#files tr.play');
|
||||||
return ft2dict(tr);
|
return ft2dict(tr, { 'up_ip': 1 });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -1899,7 +1901,7 @@ var widget = (function () {
|
||||||
np = npr[0];
|
np = npr[0];
|
||||||
|
|
||||||
for (var a = 0; a < npk.length; a++)
|
for (var a = 0; a < npk.length; a++)
|
||||||
m += (npk[a] == 'file' ? '' : npk[a]) + '(' + cv + np[npk[a]] + ck + ') // ';
|
m += (npk[a] == 'file' ? '' : npk[a]).replace(/^\./, '') + '(' + cv + np[npk[a]] + ck + ') // ';
|
||||||
|
|
||||||
m += '[' + cv + s2ms(mp.au.currentTime) + ck + '/' + cv + s2ms(mp.au.duration) + ck + ']';
|
m += '[' + cv + s2ms(mp.au.currentTime) + ck + '/' + cv + s2ms(mp.au.duration) + ck + ']';
|
||||||
|
|
||||||
|
@ -5830,7 +5832,7 @@ var treectl = (function () {
|
||||||
var res = JSON.parse(this.responseText);
|
var res = JSON.parse(this.responseText);
|
||||||
}
|
}
|
||||||
catch (ex) {
|
catch (ex) {
|
||||||
return;
|
return toast.err(30, "bad <code>?tree</code> reply;\nexpected json, got this:\n\n" + esc(this.responseText + ''));
|
||||||
}
|
}
|
||||||
rendertree(res, this.ts, this.top, this.dst, this.rst);
|
rendertree(res, this.ts, this.top, this.dst, this.rst);
|
||||||
}
|
}
|
||||||
|
@ -5995,7 +5997,7 @@ var treectl = (function () {
|
||||||
thegrid.setvis(true);
|
thegrid.setvis(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
r.reqls = function (url, hpush, back) {
|
r.reqls = function (url, hpush, back, hydrate) {
|
||||||
if (IE && !history.pushState)
|
if (IE && !history.pushState)
|
||||||
return window.location = url;
|
return window.location = url;
|
||||||
|
|
||||||
|
@ -6003,6 +6005,7 @@ var treectl = (function () {
|
||||||
xhr.top = url.split('?')[0];
|
xhr.top = url.split('?')[0];
|
||||||
xhr.back = back
|
xhr.back = back
|
||||||
xhr.hpush = hpush;
|
xhr.hpush = hpush;
|
||||||
|
xhr.hydrate = hydrate;
|
||||||
xhr.ts = Date.now();
|
xhr.ts = Date.now();
|
||||||
xhr.open('GET', xhr.top + '?ls' + (r.dots ? '&dots' : ''), true);
|
xhr.open('GET', xhr.top + '?ls' + (r.dots ? '&dots' : ''), true);
|
||||||
xhr.onload = xhr.onerror = recvls;
|
xhr.onload = xhr.onerror = recvls;
|
||||||
|
@ -6049,8 +6052,10 @@ var treectl = (function () {
|
||||||
var res = JSON.parse(this.responseText);
|
var res = JSON.parse(this.responseText);
|
||||||
}
|
}
|
||||||
catch (ex) {
|
catch (ex) {
|
||||||
|
if (!this.hydrate)
|
||||||
location = this.top;
|
location = this.top;
|
||||||
return;
|
|
||||||
|
return toast.err(30, "bad <code>?ls</code> reply;\nexpected json, got this:\n\n" + esc(this.responseText + ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r.chk_index_html(this.top, res))
|
if (r.chk_index_html(this.top, res))
|
||||||
|
@ -6272,7 +6277,7 @@ var treectl = (function () {
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|
||||||
r.ls_cb = showfile.addlinks;
|
r.ls_cb = showfile.addlinks;
|
||||||
return r.reqls(get_evpath(), false);
|
return r.reqls(get_evpath(), false, undefined, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
var top = get_evpath();
|
var top = get_evpath();
|
||||||
|
|
|
@ -1470,6 +1470,8 @@ var toast = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.show = function (cl, sec, txt, tag) {
|
r.show = function (cl, sec, txt, tag) {
|
||||||
|
txt = (txt + '').slice(0, 16384);
|
||||||
|
|
||||||
var same = r.visible && txt == r.p_txt && r.p_sec == sec,
|
var same = r.visible && txt == r.p_txt && r.p_sec == sec,
|
||||||
delta = Date.now() - r.p_t;
|
delta = Date.now() - r.p_t;
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,15 @@ or using commandline arguments,
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# faq
|
||||||
|
|
||||||
|
the following advice is best-effort and not guaranteed to be entirely correct
|
||||||
|
|
||||||
|
* q: starting a rootless container on debian 12 fails with `failed to register layer: lsetxattr user.overlay.impure /etc: operation not supported`
|
||||||
|
* a: docker's default rootless configuration on debian is to use the overlay2 storage driver; this does not work. Your options are to replace docker with podman (good choice), or to configure docker to use the `fuse-overlayfs` storage driver
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# build the images yourself
|
# build the images yourself
|
||||||
|
|
||||||
basically `./make.sh hclean pull img push` but see [devnotes.md](./devnotes.md)
|
basically `./make.sh hclean pull img push` but see [devnotes.md](./devnotes.md)
|
||||||
|
|
|
@ -29,4 +29,4 @@ ba91ab0518c61eff13e5612d9e6b532940813f6b56e6ed81ea6c7c4d45acee4d98136a383a250675
|
||||||
8a6e2b13a2ec4ef914a5d62aad3db6464d45e525a82e07f6051ed10474eae959069e165dba011aefb8207cdfd55391d73d6f06362c7eb247b08763106709526e mutagen-1.47.0-py3-none-any.whl
|
8a6e2b13a2ec4ef914a5d62aad3db6464d45e525a82e07f6051ed10474eae959069e165dba011aefb8207cdfd55391d73d6f06362c7eb247b08763106709526e mutagen-1.47.0-py3-none-any.whl
|
||||||
656015f5cc2c04aa0653ee5609c39a7e5f0b6a58c84fe26b20bd070c52d20b4effb810132f7fb771168483e9fd975cc3302837dd7a1a687ee058b0460c857cc4 packaging-23.2-py3-none-any.whl
|
656015f5cc2c04aa0653ee5609c39a7e5f0b6a58c84fe26b20bd070c52d20b4effb810132f7fb771168483e9fd975cc3302837dd7a1a687ee058b0460c857cc4 packaging-23.2-py3-none-any.whl
|
||||||
424e20dc7263a31d524307bc39ed755a9dd82f538086fff68d98dd97e236c9b00777a8ac2e3853081b532b0e93cef44983e74d0ab274877440e8b7341b19358a pillow-10.2.0-cp311-cp311-win_amd64.whl
|
424e20dc7263a31d524307bc39ed755a9dd82f538086fff68d98dd97e236c9b00777a8ac2e3853081b532b0e93cef44983e74d0ab274877440e8b7341b19358a pillow-10.2.0-cp311-cp311-win_amd64.whl
|
||||||
2e6a57bab45b5a825a2073780c73980cbf5aafd99dc3b28660ea3f5f658f04668cd0f01c7de0bb79e362ff4e3b8f01dd4f671d3a2e054d3071baefdcf0b0e4ba python-3.11.7-amd64.exe
|
e6bdbae1affd161e62fc87407c912462dfe875f535ba9f344d0c4ade13715c947cd3ae832eff60f1bad4161938311d06ac8bc9b52ef203f7b0d9de1409f052a5 python-3.11.8-amd64.exe
|
||||||
|
|
|
@ -29,7 +29,7 @@ fns=(
|
||||||
mutagen-1.47.0-py3-none-any.whl
|
mutagen-1.47.0-py3-none-any.whl
|
||||||
packaging-23.2-py3-none-any.whl
|
packaging-23.2-py3-none-any.whl
|
||||||
pillow-10.2.0-cp311-cp311-win_amd64.whl
|
pillow-10.2.0-cp311-cp311-win_amd64.whl
|
||||||
python-3.11.7-amd64.exe
|
python-3.11.8-amd64.exe
|
||||||
)
|
)
|
||||||
[ $w7 ] && fns+=(
|
[ $w7 ] && fns+=(
|
||||||
pyinstaller-5.13.2-py3-none-win32.whl
|
pyinstaller-5.13.2-py3-none-win32.whl
|
||||||
|
|
Loading…
Reference in a new issue