mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
ux bugfixes:
* show media tags in shares * html hydrator assumed a folder named `foo.txt` was a doc * due to sessions, use `pwd` as password placeholder on services
This commit is contained in:
parent
427597b603
commit
58835b2b42
|
@ -1532,7 +1532,7 @@ class AuthSrv(object):
|
|||
if enshare:
|
||||
import sqlite3
|
||||
|
||||
shv = VFS(self.log_func, "", shr, AXS(), {"d2d": True})
|
||||
shv = VFS(self.log_func, "", shr, AXS(), {})
|
||||
|
||||
db_path = self.args.shr_db
|
||||
db = sqlite3.connect(db_path)
|
||||
|
|
|
@ -3941,6 +3941,9 @@ class HttpCli(object):
|
|||
vp = re.sub(r"[<>&$?`\"']", "_", self.uparam["hc"] or "").lstrip("/")
|
||||
pw = pw.replace(" ", "%20")
|
||||
vp = vp.replace(" ", "%20")
|
||||
if pw in self.asrv.sesa:
|
||||
pw = "pwd"
|
||||
|
||||
html = self.j2s(
|
||||
"svcs",
|
||||
args=self.args,
|
||||
|
|
|
@ -5301,7 +5301,11 @@ var showfile = (function () {
|
|||
|
||||
r.files.push({ 'id': link.id, 'name': uricom_dec(fn) });
|
||||
|
||||
var td = ebi(link.id).closest('tr').getElementsByTagName('td')[0];
|
||||
var ah = ebi(link.id),
|
||||
td = ah.closest('tr').getElementsByTagName('td')[0];
|
||||
|
||||
if (ah.textContent.endsWith('/'))
|
||||
continue;
|
||||
|
||||
if (lang == 'ts' || (lang == 'md' && td.textContent != '-'))
|
||||
continue;
|
||||
|
|
|
@ -53,7 +53,7 @@ a.r {
|
|||
border-color: #c7a;
|
||||
}
|
||||
a.g {
|
||||
color: #2b0;
|
||||
color: #0a0;
|
||||
border-color: #3a0;
|
||||
box-shadow: 0 .3em 1em #4c0;
|
||||
}
|
||||
|
@ -152,11 +152,13 @@ pre b,
|
|||
code b {
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
text-shadow: 0 0 .2em #0f0;
|
||||
text-shadow: 0 0 .2em #3f3;
|
||||
border-bottom: 1px solid #090;
|
||||
}
|
||||
html.z pre b,
|
||||
html.z code b {
|
||||
color: #fff;
|
||||
border-bottom: 1px solid #9f9;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue