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
|
@@ -21,6 +21,7 @@ See top-level LICENSE file for more information
|
|
|
21
21
|
{% render_bundle 'vendors' %}
|
|
22
22
|
{% render_bundle 'webapp' %}
|
|
23
23
|
{% render_bundle 'browse' %}
|
|
24
|
+
{% render_bundle 'content' %}
|
|
24
25
|
<script>
|
|
25
26
|
/*
|
|
26
27
|
@licstart The following is the entire license notice for the JavaScript code in this page.
|
|
@@ -20,7 +20,7 @@ class MessageHandler:
|
|
|
20
20
|
def __init__(self, raw_message: bytes, sender: Optional[Type] = None):
|
|
21
21
|
try:
|
|
22
22
|
self.message = email.message_from_bytes(
|
|
23
|
-
raw_message, policy=email.policy.default
|
|
23
|
+
raw_message, policy=email.policy.default
|
|
24
24
|
)
|
|
25
25
|
except Exception as exc:
|
|
26
26
|
sentry_capture_exception(exc)
|
|
@@ -154,7 +154,7 @@ def test_recipient_matches_casemapping():
|
|
|
154
154
|
)
|
|
155
155
|
def test_recipient_matches_real_world(filename: str, recipient: str, extension: str):
|
|
156
156
|
with open_binary("swh.web.inbound_email.tests.resources", filename) as f:
|
|
157
|
-
message = email.message_from_binary_file(f, policy=email.policy.default)
|
|
157
|
+
message = email.message_from_binary_file(f, policy=email.policy.default)
|
|
158
158
|
|
|
159
159
|
assert isinstance(message, EmailMessage)
|
|
160
160
|
|
|
@@ -400,7 +400,7 @@ def test_get_message_plaintext(
|
|
|
400
400
|
filename: str, expected_parts: List[str], expected_absent: List[str]
|
|
401
401
|
):
|
|
402
402
|
with open_binary("swh.web.inbound_email.tests.resources", filename) as f:
|
|
403
|
-
message = email.message_from_binary_file(f, policy=email.policy.default)
|
|
403
|
+
message = email.message_from_binary_file(f, policy=email.policy.default)
|
|
404
404
|
|
|
405
405
|
assert isinstance(message, EmailMessage)
|
|
406
406
|
|
|
@@ -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();
|