mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
chore(deps): update vendored js (#974)
* chore(deps): update vendored js * chore: download vendored JS files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -90,8 +90,8 @@ include = [
|
||||
"turnstone/shared_static/*.js",
|
||||
"turnstone/shared_static/katex-0.18.1/**/*",
|
||||
"turnstone/shared_static/hljs-11.11.1/**/*",
|
||||
"turnstone/shared_static/mermaid-11.16.0/**/*",
|
||||
"turnstone/shared_static/hls-1.6.16/**/*",
|
||||
"turnstone/shared_static/mermaid-11.16.1/**/*",
|
||||
"turnstone/shared_static/hls-1.6.17/**/*",
|
||||
"turnstone/sdk/py.typed",
|
||||
"turnstone/deploy/*.yaml",
|
||||
"turnstone/deploy/Caddyfile",
|
||||
|
||||
@@ -208,7 +208,7 @@ def test_media_playback_lifted_and_pane_owned() -> None:
|
||||
assert fn in body, f"media player helper must be lifted into the pane: {fn}"
|
||||
# The HLS vendor is fetched by absolute /shared/ URL (resolves in BOTH the
|
||||
# standalone server and the console, where /shared is mounted at the root).
|
||||
assert 'script.src = "/shared/hls-1.6.16/hls.min.js";' in body
|
||||
assert 'script.src = "/shared/hls-1.6.17/hls.min.js";' in body
|
||||
# Pane-owned + root-scoped — NOT a document-level delegated listener.
|
||||
assert 'this.el.addEventListener("click"' in body, (
|
||||
"media play must be wired on this.el (pane-owned), not document"
|
||||
|
||||
@@ -43,14 +43,14 @@ class TestVersionHtml:
|
||||
def test_vendored_mermaid_skipped(self):
|
||||
from turnstone.core.web_helpers import version_html
|
||||
|
||||
html = '<script src="/shared/mermaid-11.16.0/mermaid.min.js"></script>'
|
||||
html = '<script src="/shared/mermaid-11.16.1/mermaid.min.js"></script>'
|
||||
result = version_html(html)
|
||||
assert result == html # unchanged
|
||||
|
||||
def test_vendored_hls_skipped(self):
|
||||
from turnstone.core.web_helpers import version_html
|
||||
|
||||
html = '<script src="/shared/hls-1.6.16/hls.min.js"></script>'
|
||||
html = '<script src="/shared/hls-1.6.17/hls.min.js"></script>'
|
||||
result = version_html(html)
|
||||
assert result == html # unchanged
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -4615,7 +4615,7 @@ function _loadHls(callback) {
|
||||
if (_hlsState === "loading") return;
|
||||
_hlsState = "loading";
|
||||
const script = document.createElement("script");
|
||||
script.src = "/shared/hls-1.6.16/hls.min.js";
|
||||
script.src = "/shared/hls-1.6.17/hls.min.js";
|
||||
script.onload = function () {
|
||||
_hlsState = "ready";
|
||||
const q = _hlsQueue;
|
||||
|
||||
+275
-275
File diff suppressed because one or more lines are too long
@@ -1093,7 +1093,7 @@ function _loadMermaid(callback) {
|
||||
if (_mermaidState === "loading") return;
|
||||
_mermaidState = "loading";
|
||||
var script = document.createElement("script");
|
||||
script.src = "/shared/mermaid-11.16.0/mermaid.min.js";
|
||||
script.src = "/shared/mermaid-11.16.1/mermaid.min.js";
|
||||
script.onload = function () {
|
||||
_initMermaid();
|
||||
_mermaidState = "ready";
|
||||
|
||||
Reference in New Issue
Block a user