* Added polyscript/service-worker as workaround for missing sabayon
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* updated polyscript to its latest
* Updated polyscript one mor time
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add media Python tests
* Add media js test
* Remove try except blocks
* Make Python tests more end-to-end
* Add media Python tests
* Add media js test
* Remove try except blocks
* Make Python tests more end-to-end
* MicroPython explorations.
* Fix websocket tests, so they just skip.
* Fix MicroPython media tests, if no permission is given for a video device.
---------
Co-authored-by: Nicholas H.Tollervey <ntoll@ntoll.org>
Co-authored-by: Andrea Giammarchi <andrea.giammarchi@gmail.com>
* Fix#2304 - Make pyimport work as expected
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Ruff fixes
* Ruff fixes
* from __future__ import annotations breaks MicroPython
* noqa: FURB188 because there is no str.replacesuffix() in MicroPython
* Add ruff to pre-commit
* introducing pyscript.fs namespace/module
* Added proper rejection when showDirectoryPicker is not supported
* Improved exports to make explicit import in 3rd party modules easier
* implemented `fs.unmount(path)`:
* verified that RAM gets freed
* allowed to mount different handlers within the same path through different `id` as that's the Web best way to do so
* Introducing <script type="py-game">
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Introducing <script type="py-game">
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Enable service-worker attribute for Donkey worker
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add two unit tests for illustrative purposes.
* Radical simplification of @when, more tests and some minor refactoring.
Handle ElementCollections, tests for ElementCollection, make serve for running tests locally.
* Skip flakey Pyodide in worker test (it works 50/50 and appears to be a timing issue).
* Ensure onFOO relates to an underlying FOO event in an Element.
* Minor comment cleanup.
* Add async test for Event listeners.
* Handlers no longer require an event parameter.
* Add tests for async handling via when.
* Docstring cleanup.
* Refactor onFOO to on_FOO.
* Minor typo tidy ups.
* Use correct check for MicroPython.
---------
Co-authored-by: Andrea Giammarchi <andrea.giammarchi@gmail.com>
* Update the size of the Py icon on the release page template, so it works in a mobile friendly manner.
* Use CSS with media for responsive icon.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>