diff --git a/debian/control b/debian/control index bc871183a..3b2d8ac2e 100644 --- a/debian/control +++ b/debian/control @@ -1,32 +1,30 @@ Source: swh-web-ui Maintainer: Software Heritage developers Section: python Priority: optional Build-Depends: debhelper (>= 9), dh-python, - libjs-cryptojs, python3-all, python3-blinker, python3-docutils, python3-flask-limiter, python3-flask-testing, python3-hiredis, python3-nose, python3-pygments, python3-redis, python3-setuptools, python3-swh.core (>= 0.0.20~), python3-swh.storage (>= 0.0.77~), python3-vcversioner, python3-yaml Standards-Version: 3.9.6 Homepage: https://forge.softwareheritage.org/diffusion/DWUI/ Package: python3-swh.web.ui Architecture: all -Depends: libjs-cryptojs, - python3-swh.core (>= 0.0.20~), +Depends: python3-swh.core (>= 0.0.20~), python3-swh.storage (>= 0.0.77~), ${misc:Depends}, ${python3:Depends} Description: Software Heritage Web UI diff --git a/requirements.txt b/requirements.txt index eca158795..ab6663619 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,21 +1,18 @@ # Add here external Python modules dependencies, one per line. Module names # should match https://pypi.python.org/pypi names. For the full spec or # dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html # Runtime dependencies Flask Flask_Limiter swh.core >= 0.0.20 swh.storage >= 0.0.77 dateutil docutils pygments redis hiredis # Test dependencies #Flask-Testing #blinker - -# Non-Python dependencies -#libjs-cryptojs diff --git a/swh/web/ui/static/lib/README b/swh/web/ui/static/lib/README deleted file mode 100644 index 0b80440c8..000000000 --- a/swh/web/ui/static/lib/README +++ /dev/null @@ -1,2 +0,0 @@ -This is included in lib folder to force static/lib/ folder inclusion. -Apparently, only symlinks is not sufficient. diff --git a/swh/web/ui/static/lib/core.js b/swh/web/ui/static/lib/core.js deleted file mode 120000 index ca7c2da05..000000000 --- a/swh/web/ui/static/lib/core.js +++ /dev/null @@ -1 +0,0 @@ -/usr/share/javascript/cryptojs/core.js \ No newline at end of file diff --git a/swh/web/ui/static/lib/lib-typedarrays.js b/swh/web/ui/static/lib/lib-typedarrays.js deleted file mode 120000 index 7ebc5d218..000000000 --- a/swh/web/ui/static/lib/lib-typedarrays.js +++ /dev/null @@ -1 +0,0 @@ -/usr/share/javascript/cryptojs/lib-typedarrays.js \ No newline at end of file diff --git a/swh/web/ui/static/lib/sha1.js b/swh/web/ui/static/lib/sha1.js deleted file mode 120000 index 76053edf4..000000000 --- a/swh/web/ui/static/lib/sha1.js +++ /dev/null @@ -1 +0,0 @@ -/usr/share/javascript/cryptojs/sha1.js \ No newline at end of file diff --git a/swh/web/ui/static/lib/sha256.js b/swh/web/ui/static/lib/sha256.js deleted file mode 120000 index 6dcdf63fd..000000000 --- a/swh/web/ui/static/lib/sha256.js +++ /dev/null @@ -1 +0,0 @@ -/usr/share/javascript/cryptojs/sha256.js \ No newline at end of file diff --git a/swh/web/ui/templates/includes/search-form.html b/swh/web/ui/templates/includes/search-form.html index e69d6ec70..92b0d5c5e 100644 --- a/swh/web/ui/templates/includes/search-form.html +++ b/swh/web/ui/templates/includes/search-form.html @@ -1,74 +1,75 @@



Drag and drop or click here to hash files and search for them. Your files will NOT be uploaded, hashing is done locally. Filesizes over 20Mb may be slow to process, use with care.

-{% for fname in ['lib/core.js', 'lib/lib-typedarrays.js', 'lib/sha1.js', 'lib/sha256.js', 'js/search.js'] %} - -{% endfor %} - + + + + +