From 0219eada2360be44f94f9f64eade541a00696eff Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 26 Jul 2024 19:33:56 +0000 Subject: [PATCH] cleanup: strip trailing whitespace --- copyparty/web/baguettebox.js | 4 ++-- copyparty/web/svcs.html | 4 ++-- scripts/pyinstaller/up2k.sh | 2 +- tests/test_vfs.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index 487f4489..472ccf66 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -573,7 +573,7 @@ window.baguetteBox = (function () { if (a != 'hidden' || b != 'scroll') scrollCSS = [a, b]; - + document.documentElement.style.overflowY = 'hidden'; document.body.style.overflowY = 'scroll'; } @@ -1067,7 +1067,7 @@ window.baguetteBox = (function () { return showNextImage(); show_buttons('t'); - + if (Date.now() - ctime <= 500 && !IPHONE) tglfull(); diff --git a/copyparty/web/svcs.html b/copyparty/web/svcs.html index a95c069e..217de9b6 100644 --- a/copyparty/web/svcs.html +++ b/copyparty/web/svcs.html @@ -56,7 +56,7 @@
  • running rclone mount as root? add --allow-other
  • old version of rclone? replace all = with   (space)
  • - +

    if you want to use the native WebDAV client in windows instead (slow and buggy), first run webdav-cfg.bat to remove the 47 MiB filesize limit (also fixes latency and password login), then connect:

                     net use w: http{{ s }}://{{ ep }}/{{ rvp }}{% if accs %} k /user:{{ pw }}{% endif %}
    @@ -105,7 +105,7 @@
                 
                     http{{ s }}://k:{{ pw }}@{{ ep }}/{{ rvp }}
                 
    - + {% if s %}

    replace https with http if it doesn't work

    {% endif %} diff --git a/scripts/pyinstaller/up2k.sh b/scripts/pyinstaller/up2k.sh index 8ec8943f..3f8c19ea 100644 --- a/scripts/pyinstaller/up2k.sh +++ b/scripts/pyinstaller/up2k.sh @@ -25,7 +25,7 @@ grep -E '^from .ssl_ import' $APPDATA/python/python37/site-packages/urllib3/util echo golfing echo > $APPDATA/python/python37/site-packages/requests/certs.py sed -ri 's/^(DEFAULT_CA_BUNDLE_PATH = ).*/\1""/' $APPDATA/python/python37/site-packages/requests/utils.py - sed -ri '/^import zipfile$/d' $APPDATA/python/python37/site-packages/requests/utils.py + sed -ri '/^import zipfile$/d' $APPDATA/python/python37/site-packages/requests/utils.py sed -ri 's/"idna"//' $APPDATA/python/python37/site-packages/requests/packages.py sed -ri 's/import charset_normalizer.*/pass/' $APPDATA/python/python37/site-packages/requests/compat.py sed -ri 's/raise.*charset_normalizer.*/pass/' $APPDATA/python/python37/site-packages/requests/__init__.py diff --git a/tests/test_vfs.py b/tests/test_vfs.py index 0d89260a..35c2cd10 100644 --- a/tests/test_vfs.py +++ b/tests/test_vfs.py @@ -235,7 +235,7 @@ class TestVFS(unittest.TestCase): """ u a:123 u asd:fgh:jkl - + ./src /dst r a