-
Notifications
You must be signed in to change notification settings - Fork 3
Update to Pyscript 2024.5.2
#6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JeffersGlass
wants to merge
19
commits into
sphinx-extensions2:main
Choose a base branch
from
JeffersGlass:pyscript-2024.4.2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0fa9211
Change component names to new style
JeffersGlass e49a645
Update to 2024.4.2
JeffersGlass e4d9473
PyRepl -> PyEditor, fix attributes
JeffersGlass f5cc0f4
Adjust docs and tests
JeffersGlass 98543ec
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 112fc14
Fix two more old 'py-repl' names
JeffersGlass 93912a2
Fix pre-commit isssues, remove unused file
JeffersGlass 16d5240
Merge from upstream
JeffersGlass f5fe453
Turn paths into strings to make readthedocs happy
JeffersGlass 7506ec9
Don't fail on warning, to avoid issues with manipulating static file
JeffersGlass 65b7162
Add documentation on new py-editor options
JeffersGlass 00f423b
Add comment explaining why mini-coi is necessary
JeffersGlass 9e2cb8a
Add 'worker' in terminal option_spec
JeffersGlass 85e06c6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b9447d5
fail_on_warning -> true
JeffersGlass d6b88c3
Make title underline two chars longer
JeffersGlass 701c2d7
Fix/update tests
JeffersGlass ff3550e
Move file copy to event
JeffersGlass 14dc7a2
Update to PyScript 2024.5.2
JeffersGlass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*! This script installs a service worker to set the COOP, COEP, and CORP headers required | ||
to use SharedArrayBuffer in the browser. This is required to use py-editor cells. | ||
See https://docs.pyscript.net/2024.5.2/user-guide/workers/ for details */ | ||
/*! coi-serviceworker v0.1.7 - Guido Zuidhof and contributors, licensed under MIT */ | ||
JeffersGlass marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/*! mini-coi - Andrea Giammarchi and contributors, licensed under MIT */ | ||
(({ document: d, navigator: { serviceWorker: s } }) => { | ||
if (d) { | ||
const { currentScript: c } = d; | ||
s.register(c.src, { scope: c.getAttribute('scope') || '.' }).then(r => { | ||
r.addEventListener('updatefound', () => location.reload()); | ||
if (r.active && !s.controller) location.reload(); | ||
}); | ||
} | ||
else { | ||
addEventListener('install', () => skipWaiting()); | ||
addEventListener('activate', e => e.waitUntil(clients.claim())); | ||
addEventListener('fetch', e => { | ||
const { request: r } = e; | ||
if (r.cache === 'only-if-cached' && r.mode !== 'same-origin') return; | ||
e.respondWith(fetch(r).then(r => { | ||
const { body, status, statusText } = r; | ||
if (!status || status > 399) return r; | ||
const h = new Headers(r.headers); | ||
h.set('Cross-Origin-Opener-Policy', 'same-origin'); | ||
h.set('Cross-Origin-Embedder-Policy', 'require-corp'); | ||
h.set('Cross-Origin-Resource-Policy', 'cross-origin'); | ||
return new Response(body, { status, statusText, headers: h }); | ||
})); | ||
}); | ||
} | ||
})(self); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.