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:
ed 2024-09-15 23:37:24 +00:00
parent 427597b603
commit 58835b2b42
4 changed files with 13 additions and 4 deletions

View file

@ -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)

View file

@ -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,

View file

@ -5301,8 +5301,12 @@ 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;

View file

@ -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;
}