swh.web 0.16.2__py3-none-any.whl → 0.16.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- swh/web/browse/templates/browse-iframe.html +1 -0
- swh/web/inbound_email/handle_message.py +1 -1
- swh/web/inbound_email/tests/test_utils.py +2 -2
- swh/web/save_code_now/assets/origin-save-admin.js +5 -2
- swh/web/save_code_now/assets/origin-save.js +9 -4
- swh/web/static/js/add_forge_now.e25d1ad2ab6c45e60b67.js.map +1 -1
- swh/web/static/js/auth.bd2f475f49caa9f84e99.js.map +1 -1
- swh/web/static/js/browse.fc5d5fafca71e03d2add.js.map +1 -1
- swh/web/static/js/deposit.d47e18177b16ccdbdb84.js.map +1 -1
- swh/web/static/js/{highlightjs.dc9b8354c69d942fad33.js → highlightjs.14fc09414685bf90c554.js} +3 -3
- swh/web/static/js/highlightjs.14fc09414685bf90c554.js.map +1 -0
- swh/web/static/js/mailmap.631c53127ba5511ebda7.js.map +1 -1
- swh/web/static/js/mathjax.98ef576f318f1a0b0c4a.js.map +1 -1
- swh/web/static/js/{revision.ac9293e1b984b4d4d909.js → revision.61c9277f4a4c63df0f45.js} +3 -3
- swh/web/static/js/{revision.ac9293e1b984b4d4d909.js.map → revision.61c9277f4a4c63df0f45.js.map} +1 -1
- swh/web/static/js/save_code_now.4211098f5dd740dc49b4.js +3 -0
- swh/web/static/js/save_code_now.4211098f5dd740dc49b4.js.map +1 -0
- swh/web/static/js/vault.4eaa8dbf376ebe9cdc7f.js +3 -0
- swh/web/static/js/vault.4eaa8dbf376ebe9cdc7f.js.map +1 -0
- swh/web/static/js/{vendors.2eeadf2e0831a7a82b6d.js → vendors.9fc5b97b8e4691b7272e.js} +3 -3
- swh/web/static/js/vendors.9fc5b97b8e4691b7272e.js.map +1 -0
- swh/web/static/js/{webapp.26efc059a8f5fe204240.js → webapp.c5e37f8f7bfc8bb87ad8.js} +3 -3
- swh/web/static/js/{webapp.26efc059a8f5fe204240.js.LICENSE.txt → webapp.c5e37f8f7bfc8bb87ad8.js.LICENSE.txt} +1 -1
- swh/web/static/js/webapp.c5e37f8f7bfc8bb87ad8.js.map +1 -0
- swh/web/static/jssources/@myriaddreamin/highlighter-typst/dist/esm/contrib/hljs/typst-lite.bundle.js +180 -111
- swh/web/static/jssources/assets/src/utils/functions.js +1 -1
- swh/web/static/jssources/core-js/LICENSE.txt +1 -1
- swh/web/static/jssources/core-js/internals/shared-store.js +3 -3
- swh/web/static/jssources/core-js/modules/es.object.group-by.js +2 -1
- swh/web/static/jssources/dompurify/dist/purify.es.mjs +35 -12
- swh/web/static/jssources/highlightjs-line-numbers.js/src/highlightjs-line-numbers.js +1 -1
- swh/web/static/jssources/jslicenses.json +1 -1
- swh/web/static/jssources/swh/web/save_code_now/assets/origin-save-admin.js +5 -2
- swh/web/static/jssources/swh/web/save_code_now/assets/origin-save.js +9 -4
- swh/web/static/webpack-stats.json +85 -85
- swh/web/tests/views.py +9 -8
- swh/web/utils/archive.py +1 -1
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/METADATA +1 -1
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/RECORD +48 -48
- swh/web/static/js/highlightjs.dc9b8354c69d942fad33.js.map +0 -1
- swh/web/static/js/save_code_now.369ff7f28aaf74e7728e.js +0 -3
- swh/web/static/js/save_code_now.369ff7f28aaf74e7728e.js.map +0 -1
- swh/web/static/js/vault.1229427aed95c78d4ee2.js +0 -3
- swh/web/static/js/vault.1229427aed95c78d4ee2.js.map +0 -1
- swh/web/static/js/vendors.2eeadf2e0831a7a82b6d.js.map +0 -1
- swh/web/static/js/webapp.26efc059a8f5fe204240.js.map +0 -1
- /swh/web/static/js/{highlightjs.dc9b8354c69d942fad33.js.LICENSE.txt → highlightjs.14fc09414685bf90c554.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{revision.ac9293e1b984b4d4d909.js.LICENSE.txt → revision.61c9277f4a4c63df0f45.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{save_code_now.369ff7f28aaf74e7728e.js.LICENSE.txt → save_code_now.4211098f5dd740dc49b4.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{vault.1229427aed95c78d4ee2.js.LICENSE.txt → vault.4eaa8dbf376ebe9cdc7f.js.LICENSE.txt} +0 -0
- /swh/web/static/js/{vendors.2eeadf2e0831a7a82b6d.js.LICENSE.txt → vendors.9fc5b97b8e4691b7272e.js.LICENSE.txt} +0 -0
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/WHEEL +0 -0
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/licenses/AUTHORS +0 -0
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/licenses/LICENSE +0 -0
- {swh_web-0.16.2.dist-info → swh_web-0.16.3.dist-info}/top_level.txt +0 -0
|
@@ -73,6 +73,7 @@ export function initOriginSaveAdmin() {
|
|
|
73
73
|
if (type === 'display') {
|
|
74
74
|
let html = '';
|
|
75
75
|
const sanitizedURL = $.fn.dataTable.render.text().display(data);
|
|
76
|
+
const parsedURL = new URL(sanitizedURL);
|
|
76
77
|
if (row.save_task_status === 'succeeded') {
|
|
77
78
|
let browseOriginUrl = `${Urls.browse_origin()}?origin_url=${encodeURIComponent(sanitizedURL)}`;
|
|
78
79
|
if (row.visit_date) {
|
|
@@ -82,8 +83,10 @@ export function initOriginSaveAdmin() {
|
|
|
82
83
|
} else {
|
|
83
84
|
html += sanitizedURL;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
if (parsedURL.protocol.startsWith('http')) {
|
|
87
|
+
html += ` <a href="${sanitizedURL}" target="_blank" rel="noopener noreferrer">` +
|
|
88
|
+
'<i class="mdi mdi-open-in-new" aria-hidden="true"></i></a>';
|
|
89
|
+
}
|
|
87
90
|
return html;
|
|
88
91
|
}
|
|
89
92
|
return data;
|
|
@@ -182,6 +182,7 @@ export function initOriginSave() {
|
|
|
182
182
|
if (type === 'display') {
|
|
183
183
|
let html = '';
|
|
184
184
|
const sanitizedURL = $.fn.dataTable.render.text().display(data);
|
|
185
|
+
const parsedURL = new URL(sanitizedURL);
|
|
185
186
|
if (row.save_task_status === 'succeeded') {
|
|
186
187
|
if (row.visit_status === 'full' || row.visit_status === 'partial') {
|
|
187
188
|
let browseOriginUrl = `${Urls.browse_origin()}?origin_url=${encodeURIComponent(sanitizedURL)}`;
|
|
@@ -196,8 +197,10 @@ export function initOriginSave() {
|
|
|
196
197
|
} else {
|
|
197
198
|
html += sanitizedURL;
|
|
198
199
|
}
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
if (parsedURL.protocol.startsWith('http')) {
|
|
201
|
+
html += ` <a href="${sanitizedURL}" target="_blank" rel="noopener noreferrer">` +
|
|
202
|
+
'<i class="mdi mdi-open-in-new" aria-hidden="true"></i></a>';
|
|
203
|
+
}
|
|
201
204
|
return html;
|
|
202
205
|
}
|
|
203
206
|
return data;
|
|
@@ -359,8 +362,10 @@ export function initOriginSave() {
|
|
|
359
362
|
|
|
360
363
|
}
|
|
361
364
|
|
|
362
|
-
const tarballExtensions =
|
|
363
|
-
|
|
365
|
+
const tarballExtensions = [
|
|
366
|
+
'.jar', '.tar', '.tar.bz2', '.tbz', '.tbz2', '.tar.gz', '.tgz', '.tar.lz',
|
|
367
|
+
'.tar.xz', '.tar.zst', '.zip'
|
|
368
|
+
];
|
|
364
369
|
|
|
365
370
|
function updateVisitType() {
|
|
366
371
|
const originUrl = $('#swh-input-origin-url').val().trim();
|
|
@@ -1246,20 +1246,20 @@
|
|
|
1246
1246
|
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/guided_tour.d4d80c72d889d1f87995.js.map",
|
|
1247
1247
|
"publicPath": "/static/js/guided_tour.d4d80c72d889d1f87995.js.map"
|
|
1248
1248
|
},
|
|
1249
|
-
"js/highlightjs.
|
|
1250
|
-
"name": "js/highlightjs.
|
|
1251
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.
|
|
1252
|
-
"publicPath": "/static/js/highlightjs.
|
|
1249
|
+
"js/highlightjs.14fc09414685bf90c554.js": {
|
|
1250
|
+
"name": "js/highlightjs.14fc09414685bf90c554.js",
|
|
1251
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.14fc09414685bf90c554.js",
|
|
1252
|
+
"publicPath": "/static/js/highlightjs.14fc09414685bf90c554.js"
|
|
1253
1253
|
},
|
|
1254
|
-
"js/highlightjs.
|
|
1255
|
-
"name": "js/highlightjs.
|
|
1256
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.
|
|
1257
|
-
"publicPath": "/static/js/highlightjs.
|
|
1254
|
+
"js/highlightjs.14fc09414685bf90c554.js.LICENSE.txt": {
|
|
1255
|
+
"name": "js/highlightjs.14fc09414685bf90c554.js.LICENSE.txt",
|
|
1256
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.14fc09414685bf90c554.js.LICENSE.txt",
|
|
1257
|
+
"publicPath": "/static/js/highlightjs.14fc09414685bf90c554.js.LICENSE.txt"
|
|
1258
1258
|
},
|
|
1259
|
-
"js/highlightjs.
|
|
1260
|
-
"name": "js/highlightjs.
|
|
1261
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.
|
|
1262
|
-
"publicPath": "/static/js/highlightjs.
|
|
1259
|
+
"js/highlightjs.14fc09414685bf90c554.js.map": {
|
|
1260
|
+
"name": "js/highlightjs.14fc09414685bf90c554.js.map",
|
|
1261
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/highlightjs.14fc09414685bf90c554.js.map",
|
|
1262
|
+
"publicPath": "/static/js/highlightjs.14fc09414685bf90c554.js.map"
|
|
1263
1263
|
},
|
|
1264
1264
|
"js/mailmap.631c53127ba5511ebda7.js": {
|
|
1265
1265
|
"name": "js/mailmap.631c53127ba5511ebda7.js",
|
|
@@ -1723,35 +1723,35 @@
|
|
|
1723
1723
|
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/pdfjs.40675676ebcbdde8baab.js.map",
|
|
1724
1724
|
"publicPath": "/static/js/pdfjs.40675676ebcbdde8baab.js.map"
|
|
1725
1725
|
},
|
|
1726
|
-
"js/revision.
|
|
1727
|
-
"name": "js/revision.
|
|
1728
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.
|
|
1729
|
-
"publicPath": "/static/js/revision.
|
|
1726
|
+
"js/revision.61c9277f4a4c63df0f45.js": {
|
|
1727
|
+
"name": "js/revision.61c9277f4a4c63df0f45.js",
|
|
1728
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.61c9277f4a4c63df0f45.js",
|
|
1729
|
+
"publicPath": "/static/js/revision.61c9277f4a4c63df0f45.js"
|
|
1730
1730
|
},
|
|
1731
|
-
"js/revision.
|
|
1732
|
-
"name": "js/revision.
|
|
1733
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.
|
|
1734
|
-
"publicPath": "/static/js/revision.
|
|
1731
|
+
"js/revision.61c9277f4a4c63df0f45.js.LICENSE.txt": {
|
|
1732
|
+
"name": "js/revision.61c9277f4a4c63df0f45.js.LICENSE.txt",
|
|
1733
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.61c9277f4a4c63df0f45.js.LICENSE.txt",
|
|
1734
|
+
"publicPath": "/static/js/revision.61c9277f4a4c63df0f45.js.LICENSE.txt"
|
|
1735
1735
|
},
|
|
1736
|
-
"js/revision.
|
|
1737
|
-
"name": "js/revision.
|
|
1738
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.
|
|
1739
|
-
"publicPath": "/static/js/revision.
|
|
1736
|
+
"js/revision.61c9277f4a4c63df0f45.js.map": {
|
|
1737
|
+
"name": "js/revision.61c9277f4a4c63df0f45.js.map",
|
|
1738
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/revision.61c9277f4a4c63df0f45.js.map",
|
|
1739
|
+
"publicPath": "/static/js/revision.61c9277f4a4c63df0f45.js.map"
|
|
1740
1740
|
},
|
|
1741
|
-
"js/save_code_now.
|
|
1742
|
-
"name": "js/save_code_now.
|
|
1743
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.
|
|
1744
|
-
"publicPath": "/static/js/save_code_now.
|
|
1741
|
+
"js/save_code_now.4211098f5dd740dc49b4.js": {
|
|
1742
|
+
"name": "js/save_code_now.4211098f5dd740dc49b4.js",
|
|
1743
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.4211098f5dd740dc49b4.js",
|
|
1744
|
+
"publicPath": "/static/js/save_code_now.4211098f5dd740dc49b4.js"
|
|
1745
1745
|
},
|
|
1746
|
-
"js/save_code_now.
|
|
1747
|
-
"name": "js/save_code_now.
|
|
1748
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.
|
|
1749
|
-
"publicPath": "/static/js/save_code_now.
|
|
1746
|
+
"js/save_code_now.4211098f5dd740dc49b4.js.LICENSE.txt": {
|
|
1747
|
+
"name": "js/save_code_now.4211098f5dd740dc49b4.js.LICENSE.txt",
|
|
1748
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.4211098f5dd740dc49b4.js.LICENSE.txt",
|
|
1749
|
+
"publicPath": "/static/js/save_code_now.4211098f5dd740dc49b4.js.LICENSE.txt"
|
|
1750
1750
|
},
|
|
1751
|
-
"js/save_code_now.
|
|
1752
|
-
"name": "js/save_code_now.
|
|
1753
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.
|
|
1754
|
-
"publicPath": "/static/js/save_code_now.
|
|
1751
|
+
"js/save_code_now.4211098f5dd740dc49b4.js.map": {
|
|
1752
|
+
"name": "js/save_code_now.4211098f5dd740dc49b4.js.map",
|
|
1753
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/save_code_now.4211098f5dd740dc49b4.js.map",
|
|
1754
|
+
"publicPath": "/static/js/save_code_now.4211098f5dd740dc49b4.js.map"
|
|
1755
1755
|
},
|
|
1756
1756
|
"js/showdown.c726c70fb334f8a4ea25.js": {
|
|
1757
1757
|
"name": "js/showdown.c726c70fb334f8a4ea25.js",
|
|
@@ -1768,50 +1768,50 @@
|
|
|
1768
1768
|
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/showdown.c726c70fb334f8a4ea25.js.map",
|
|
1769
1769
|
"publicPath": "/static/js/showdown.c726c70fb334f8a4ea25.js.map"
|
|
1770
1770
|
},
|
|
1771
|
-
"js/vault.
|
|
1772
|
-
"name": "js/vault.
|
|
1773
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.
|
|
1774
|
-
"publicPath": "/static/js/vault.
|
|
1775
|
-
},
|
|
1776
|
-
"js/vault.
|
|
1777
|
-
"name": "js/vault.
|
|
1778
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.
|
|
1779
|
-
"publicPath": "/static/js/vault.
|
|
1780
|
-
},
|
|
1781
|
-
"js/vault.
|
|
1782
|
-
"name": "js/vault.
|
|
1783
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.
|
|
1784
|
-
"publicPath": "/static/js/vault.
|
|
1785
|
-
},
|
|
1786
|
-
"js/vendors.
|
|
1787
|
-
"name": "js/vendors.
|
|
1788
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.
|
|
1789
|
-
"publicPath": "/static/js/vendors.
|
|
1790
|
-
},
|
|
1791
|
-
"js/vendors.
|
|
1792
|
-
"name": "js/vendors.
|
|
1793
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.
|
|
1794
|
-
"publicPath": "/static/js/vendors.
|
|
1795
|
-
},
|
|
1796
|
-
"js/vendors.
|
|
1797
|
-
"name": "js/vendors.
|
|
1798
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.
|
|
1799
|
-
"publicPath": "/static/js/vendors.
|
|
1800
|
-
},
|
|
1801
|
-
"js/webapp.
|
|
1802
|
-
"name": "js/webapp.
|
|
1803
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.
|
|
1804
|
-
"publicPath": "/static/js/webapp.
|
|
1805
|
-
},
|
|
1806
|
-
"js/webapp.
|
|
1807
|
-
"name": "js/webapp.
|
|
1808
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.
|
|
1809
|
-
"publicPath": "/static/js/webapp.
|
|
1810
|
-
},
|
|
1811
|
-
"js/webapp.
|
|
1812
|
-
"name": "js/webapp.
|
|
1813
|
-
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.
|
|
1814
|
-
"publicPath": "/static/js/webapp.
|
|
1771
|
+
"js/vault.4eaa8dbf376ebe9cdc7f.js": {
|
|
1772
|
+
"name": "js/vault.4eaa8dbf376ebe9cdc7f.js",
|
|
1773
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.4eaa8dbf376ebe9cdc7f.js",
|
|
1774
|
+
"publicPath": "/static/js/vault.4eaa8dbf376ebe9cdc7f.js"
|
|
1775
|
+
},
|
|
1776
|
+
"js/vault.4eaa8dbf376ebe9cdc7f.js.LICENSE.txt": {
|
|
1777
|
+
"name": "js/vault.4eaa8dbf376ebe9cdc7f.js.LICENSE.txt",
|
|
1778
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.4eaa8dbf376ebe9cdc7f.js.LICENSE.txt",
|
|
1779
|
+
"publicPath": "/static/js/vault.4eaa8dbf376ebe9cdc7f.js.LICENSE.txt"
|
|
1780
|
+
},
|
|
1781
|
+
"js/vault.4eaa8dbf376ebe9cdc7f.js.map": {
|
|
1782
|
+
"name": "js/vault.4eaa8dbf376ebe9cdc7f.js.map",
|
|
1783
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vault.4eaa8dbf376ebe9cdc7f.js.map",
|
|
1784
|
+
"publicPath": "/static/js/vault.4eaa8dbf376ebe9cdc7f.js.map"
|
|
1785
|
+
},
|
|
1786
|
+
"js/vendors.9fc5b97b8e4691b7272e.js": {
|
|
1787
|
+
"name": "js/vendors.9fc5b97b8e4691b7272e.js",
|
|
1788
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.9fc5b97b8e4691b7272e.js",
|
|
1789
|
+
"publicPath": "/static/js/vendors.9fc5b97b8e4691b7272e.js"
|
|
1790
|
+
},
|
|
1791
|
+
"js/vendors.9fc5b97b8e4691b7272e.js.LICENSE.txt": {
|
|
1792
|
+
"name": "js/vendors.9fc5b97b8e4691b7272e.js.LICENSE.txt",
|
|
1793
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.9fc5b97b8e4691b7272e.js.LICENSE.txt",
|
|
1794
|
+
"publicPath": "/static/js/vendors.9fc5b97b8e4691b7272e.js.LICENSE.txt"
|
|
1795
|
+
},
|
|
1796
|
+
"js/vendors.9fc5b97b8e4691b7272e.js.map": {
|
|
1797
|
+
"name": "js/vendors.9fc5b97b8e4691b7272e.js.map",
|
|
1798
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/vendors.9fc5b97b8e4691b7272e.js.map",
|
|
1799
|
+
"publicPath": "/static/js/vendors.9fc5b97b8e4691b7272e.js.map"
|
|
1800
|
+
},
|
|
1801
|
+
"js/webapp.c5e37f8f7bfc8bb87ad8.js": {
|
|
1802
|
+
"name": "js/webapp.c5e37f8f7bfc8bb87ad8.js",
|
|
1803
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.c5e37f8f7bfc8bb87ad8.js",
|
|
1804
|
+
"publicPath": "/static/js/webapp.c5e37f8f7bfc8bb87ad8.js"
|
|
1805
|
+
},
|
|
1806
|
+
"js/webapp.c5e37f8f7bfc8bb87ad8.js.LICENSE.txt": {
|
|
1807
|
+
"name": "js/webapp.c5e37f8f7bfc8bb87ad8.js.LICENSE.txt",
|
|
1808
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.c5e37f8f7bfc8bb87ad8.js.LICENSE.txt",
|
|
1809
|
+
"publicPath": "/static/js/webapp.c5e37f8f7bfc8bb87ad8.js.LICENSE.txt"
|
|
1810
|
+
},
|
|
1811
|
+
"js/webapp.c5e37f8f7bfc8bb87ad8.js.map": {
|
|
1812
|
+
"name": "js/webapp.c5e37f8f7bfc8bb87ad8.js.map",
|
|
1813
|
+
"path": "/var/lib/jenkins/agent-workdir/workspace/DWAPPS/pypi-upload/swh/web/static/js/webapp.c5e37f8f7bfc8bb87ad8.js.map",
|
|
1814
|
+
"publicPath": "/static/js/webapp.c5e37f8f7bfc8bb87ad8.js.map"
|
|
1815
1815
|
},
|
|
1816
1816
|
"robots.txt": {
|
|
1817
1817
|
"name": "robots.txt",
|
|
@@ -1866,22 +1866,22 @@
|
|
|
1866
1866
|
],
|
|
1867
1867
|
"revision": [
|
|
1868
1868
|
"css/revision.e8a9b19354bfcbc112da.css",
|
|
1869
|
-
"js/revision.
|
|
1869
|
+
"js/revision.61c9277f4a4c63df0f45.js"
|
|
1870
1870
|
],
|
|
1871
1871
|
"save_code_now": [
|
|
1872
|
-
"js/save_code_now.
|
|
1872
|
+
"js/save_code_now.4211098f5dd740dc49b4.js"
|
|
1873
1873
|
],
|
|
1874
1874
|
"vault": [
|
|
1875
1875
|
"css/vault.2e5d4ca65c4ec69cebb0.css",
|
|
1876
|
-
"js/vault.
|
|
1876
|
+
"js/vault.4eaa8dbf376ebe9cdc7f.js"
|
|
1877
1877
|
],
|
|
1878
1878
|
"vendors": [
|
|
1879
1879
|
"css/vendors.1cfc8080eed63af482cf.css",
|
|
1880
|
-
"js/vendors.
|
|
1880
|
+
"js/vendors.9fc5b97b8e4691b7272e.js"
|
|
1881
1881
|
],
|
|
1882
1882
|
"webapp": [
|
|
1883
1883
|
"css/webapp.4655323082740f1a4862.css",
|
|
1884
|
-
"js/webapp.
|
|
1884
|
+
"js/webapp.c5e37f8f7bfc8bb87ad8.js"
|
|
1885
1885
|
]
|
|
1886
1886
|
},
|
|
1887
1887
|
"publicPath": "/static/"
|
swh/web/tests/views.py
CHANGED
|
@@ -39,7 +39,7 @@ _content_code_data_filenames: Dict[str, Dict[str, str]] = {}
|
|
|
39
39
|
_content_other_data_exts: Dict[str, Dict[str, str]] = {}
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def _init_content_tests_data(data_path,
|
|
42
|
+
def _init_content_tests_data(data_path, ext_key):
|
|
43
43
|
"""
|
|
44
44
|
Helper function to read the content of a directory, store it
|
|
45
45
|
into a test archive and add some files metadata (sha1 and/or
|
|
@@ -48,7 +48,6 @@ def _init_content_tests_data(data_path, data_dict, ext_key):
|
|
|
48
48
|
Args:
|
|
49
49
|
data_path (str): path to a directory relative to the tests
|
|
50
50
|
folder of swh-web
|
|
51
|
-
data_dict (dict): the dict that will store files metadata
|
|
52
51
|
ext_key (bool): whether to use file extensions or filenames
|
|
53
52
|
as dict keys
|
|
54
53
|
"""
|
|
@@ -60,6 +59,7 @@ def _init_content_tests_data(data_path, data_dict, ext_key):
|
|
|
60
59
|
max_content_length=None,
|
|
61
60
|
)
|
|
62
61
|
|
|
62
|
+
data_dict = {}
|
|
63
63
|
contents = []
|
|
64
64
|
for name, obj in directory.items():
|
|
65
65
|
if obj.object_type == "content":
|
|
@@ -78,6 +78,7 @@ def _init_content_tests_data(data_path, data_dict, ext_key):
|
|
|
78
78
|
|
|
79
79
|
storage = get_tests_data()["storage"]
|
|
80
80
|
storage.content_add(contents)
|
|
81
|
+
return data_dict
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
def _init_content_code_data_exts():
|
|
@@ -87,8 +88,8 @@ def _init_content_code_data_exts():
|
|
|
87
88
|
"""
|
|
88
89
|
global _content_code_data_exts
|
|
89
90
|
if not _content_code_data_exts:
|
|
90
|
-
_init_content_tests_data(
|
|
91
|
-
"resources/contents/code/extensions",
|
|
91
|
+
_content_code_data_exts = _init_content_tests_data(
|
|
92
|
+
"resources/contents/code/extensions", True
|
|
92
93
|
)
|
|
93
94
|
|
|
94
95
|
|
|
@@ -99,8 +100,8 @@ def _init_content_other_data_exts():
|
|
|
99
100
|
"""
|
|
100
101
|
global _content_other_data_exts
|
|
101
102
|
if not _content_other_data_exts:
|
|
102
|
-
_init_content_tests_data(
|
|
103
|
-
"resources/contents/other/extensions",
|
|
103
|
+
_content_other_data_exts = _init_content_tests_data(
|
|
104
|
+
"resources/contents/other/extensions", True
|
|
104
105
|
)
|
|
105
106
|
|
|
106
107
|
|
|
@@ -111,8 +112,8 @@ def _init_content_code_data_filenames():
|
|
|
111
112
|
"""
|
|
112
113
|
global _content_code_data_filenames
|
|
113
114
|
if not _content_code_data_filenames:
|
|
114
|
-
_init_content_tests_data(
|
|
115
|
-
"resources/contents/code/filenames",
|
|
115
|
+
_content_code_data_filenames = _init_content_tests_data(
|
|
116
|
+
"resources/contents/code/filenames", False
|
|
116
117
|
)
|
|
117
118
|
|
|
118
119
|
|
swh/web/utils/archive.py
CHANGED
|
@@ -1523,7 +1523,7 @@ def lookup_snapshot(
|
|
|
1523
1523
|
A dict filled with the snapshot content.
|
|
1524
1524
|
"""
|
|
1525
1525
|
snapshot_id_bin = _to_sha1_bin(snapshot_id)
|
|
1526
|
-
if config.storage().snapshot_missing([snapshot_id_bin]):
|
|
1526
|
+
if list(config.storage().snapshot_missing([snapshot_id_bin])):
|
|
1527
1527
|
raise NotFoundExc(f"Snapshot with id {snapshot_id} not found!")
|
|
1528
1528
|
|
|
1529
1529
|
partial_branches = config.storage().snapshot_get_branches(
|