add image gallery

This commit is contained in:
ed
2021-06-12 20:25:08 +02:00
parent 44a78a7e21
commit fa0a7f50bb
7 changed files with 790 additions and 9 deletions

View File

@@ -39,6 +39,7 @@ class Cfg(Namespace):
mte="a",
hist=None,
no_hash=False,
css_browser=None,
**{k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
)

View File

@@ -18,7 +18,13 @@ from copyparty import util
class Cfg(Namespace):
def __init__(self, a=[], v=[], c=None):
ex = {k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
ex2 = {"mtp": [], "mte": "a", "hist": None, "no_hash": False}
ex2 = {
"mtp": [],
"mte": "a",
"hist": None,
"no_hash": False,
"css_browser": None,
}
ex.update(ex2)
super(Cfg, self).__init__(a=a, v=v, c=c, **ex)