From 789a602914342a9dc190212eba5f0ad8dbd38f86 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 19 Jun 2021 01:18:48 +0200 Subject: [PATCH] save some more bytes on the wire --- copyparty/web/browser.html | 206 ++++++++++++++++++------------------ copyparty/web/browser2.html | 86 +++++++-------- 2 files changed, 146 insertions(+), 146 deletions(-) diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 7c98a20f..99fc6ba0 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -2,134 +2,134 @@ - - ⇆🎉 {{ title }} - - - - - {%- if css %} - - {%- endif %} + + ⇆🎉 {{ title }} + + + + + {%- if css %} + + {%- endif %} -
+
- + -
+
-
-
-
- -
- -
-
+
+
+
+ +
+ +
+
-
-
- - - -
-
+
+
+ + + +
+
-
-
- - - -
-
+
+
+ + + +
+
-
-
- - -
-
+
+
+ + +
+
-
+
-
- -

- 🌲 - {%- for n in vpnodes %} - {{ n[1] }} - {%- endfor %} -

- -
+
+ +

+ 🌲 + {%- for n in vpnodes %} + {{ n[1] }} + {%- endfor %} +

+ +
-
{{ logues[0] }}
+
{{ logues[0] }}
- - - - - - - {%- for k in taglist %} - {%- if k.startswith('.') %} - - {%- else %} - - {%- endif %} - {%- endfor %} - - - - - +
cFile NameSize{{ k[1:] }}{{ k[0]|upper }}{{ k[1:] }}TDate
+ + + + + + {%- for k in taglist %} + {%- if k.startswith('.') %} + + {%- else %} + + {%- endif %} + {%- endfor %} + + + + + {%- for f in files %} - - {%- if f.tags is defined %} - {%- for k in taglist %} - - {%- endfor %} - {%- endif %} - + + {%- if f.tags is defined %} + {%- for k in taglist %} + + {%- endfor %} + {%- endif %} + {%- endfor %} - -
cFile NameSize{{ k[1:] }}{{ k[0]|upper }}{{ k[1:] }}TDate
{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.tags[k] }}{{ f.ext }}{{ f.dt }}
{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.tags[k] }}{{ f.ext }}{{ f.dt }}
- -
{{ logues[1] }}
+ + + +
{{ logues[1] }}
-

control-panel

+

control-panel

- {%- if srv_info %} -
{{ srv_info }}
- {%- endif %} + {%- if srv_info %} +
{{ srv_info }}
+ {%- endif %} -
+
- - - - + + + + diff --git a/copyparty/web/browser2.html b/copyparty/web/browser2.html index f11e3619..2bf87d91 100644 --- a/copyparty/web/browser2.html +++ b/copyparty/web/browser2.html @@ -2,59 +2,59 @@ - - {{ title }} - - - + + {{ title }} + + + - {%- if srv_info %} -

{{ srv_info }}

- {%- endif %} + {%- if srv_info %} +

{{ srv_info }}

+ {%- endif %} - {%- if have_b_u %} -
- -
- -
-
- {%- endif %} + {%- if have_b_u %} +
+ +
+ +
+
+ {%- endif %} - {%- if logues[0] %} -
{{ logues[0] }}

- {%- endif %} + {%- if logues[0] %} +
{{ logues[0] }}

+ {%- endif %} - - - - - - - - - - - +
cFile NameSizeDate
parent folder--
+ + + + + + + + + + {%- for f in files %} - + {%- endfor %} - -
cFile NameSizeDate
parent folder--
{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.dt }}
{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.dt }}
- - {%- if logues[1] %} -
{{ logues[1] }}

- {%- endif %} - -

control-panel

+ + + + {%- if logues[1] %} +
{{ logues[1] }}

+ {%- endif %} + +

control-panel