Commit Graph

346 Commits

Author SHA1 Message Date
Andrea Giammarchi
53e945201d Update polyscript to fix a try/catch issue (#1968) 2024-02-02 15:33:26 +01:00
Andrea Giammarchi
181d276c8b Allow Workers w/out SharedArrayBuffer (#1967)
Allow Workers w/out SharedArrayBuffer
2024-02-02 15:03:30 +01:00
pre-commit-ci[bot]
77c8b5d82c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-01 18:59:36 +00:00
Fabio Pliger
495fbc313c precommig lint 2024-02-01 12:31:55 -06:00
Fabio Pliger
f6b7660ff6 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-01 12:16:08 -06:00
Fabio Pliger
316652a61d refactor gallary to simplify codebase 2024-02-01 12:13:52 -06:00
Fabio Pliger
6fd8c6a245 add missing marked dependency 2024-02-01 12:12:32 -06:00
Fabio Pliger
3f19695704 fix type that lead using the the JSDescriptor directly instead of the factory method 2024-02-01 12:12:08 -06:00
Askat
9edb3185f2 Add shoelace radio component (#1961)
* add shoelace radio component

* [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>
2024-02-01 09:48:18 -08:00
pre-commit-ci[bot]
d370450324 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-01 16:16:42 +00:00
Fabio Pliger
3b8745e875 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-01 10:16:26 -06:00
Fabio Pliger
5c6de9b05a add global attributes and dynamic property assignment 2024-02-01 10:14:56 -06:00
Fabio Pliger
a9637bbaa7 add gallery files 2024-02-01 10:11:28 -06:00
pre-commit-ci[bot]
c559d8b321 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-01 00:02:24 +00:00
Fabio Pliger
1cca5f057a precommit 2024-01-31 18:02:12 -06:00
Fabio Pliger
f69338c8e9 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-01-31 18:01:55 -06:00
Fabio Pliger
e7160496f5 add showlace extra style dynamically 2024-01-31 18:01:48 -06:00
Fabio Pliger
f37048f09e add load_resources to markdown 2024-01-31 17:56:41 -06:00
pre-commit-ci[bot]
c76ce20f6f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-31 23:43:00 +00:00
Fabio Pliger
be65cf37ce Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-01-31 17:41:40 -06:00
Fabio Pliger
7a41a60c7c simplify code for main page 2024-01-31 17:40:44 -06:00
pre-commit-ci[bot]
dbc4db48e6 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-31 23:31:47 +00:00
Fabio Pliger
cffee1d680 precommit fixes 2024-01-31 17:31:11 -06:00
Fabio Pliger
ac1cf5fe66 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-01-31 17:30:22 -06:00
Fabio Pliger
275c3dcc5d improve docstrings 2024-01-31 17:30:19 -06:00
Fabio Pliger
37ef462f25 simplify demo code 2024-01-31 17:28:16 -06:00
pre-commit-ci[bot]
a702518cda [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-31 23:04:44 +00:00
Fabio Pliger
f5857ba2cc move examples section out of stdlib pyweb to examples.py in the demo itself 2024-01-31 17:03:38 -06:00
Fabio Pliger
8ade988e82 add markdown suppport 2024-01-31 16:51:58 -06:00
Fabio Pliger
a5c3fc62c6 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-01-31 16:38:43 -06:00
Fabio Pliger
e3e669ccdd use html property rather than accessing _js directly 2024-01-31 16:38:39 -06:00
pre-commit-ci[bot]
6c5052221e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-31 22:27:15 +00:00
Fabio Pliger
a9057e4cea add Icon to shoelace components 2024-01-31 16:24:51 -06:00
Fabio Pliger
ff19d637ec remove comments 2024-01-30 19:05:36 -06:00
Fabio Pliger
5f748c9768 new pyweb.ui test folder 2024-01-30 19:01:36 -06:00
Fabio Pliger
73745a0e95 fix imports and add initialization to load resources to shoelace module 2024-01-30 19:00:50 -06:00
Fabio Pliger
5c5c6e3f7f fix link and a elements and add a script element 2024-01-30 19:00:20 -06:00
Fabio Pliger
e4d5b6641d fix pyweb imports 2024-01-30 18:59:38 -06:00
Fabio Pliger
25e1b0647e add pyweb.ui 2024-01-30 17:31:49 -06:00
Fabio Pliger
bdce19714a add JSProperty to pydom so it can be used to create descriptors mapping to specific JS attributes 2024-01-30 17:30:56 -06:00
Fabio Pliger
bcaab0eb93 PyDom compatibility with MicroPython (#1954)
* fix pydom example

* fix the pydom test example to use a python syntax that works with MicroPython by replacing datetime

* add note about capturing errors importing when

* patch event_handler to handle compat with micropython

* turn pyweb into a package and remove hack to make pydom a sort of module with an ugly hack

* add pydom example using micropython

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix select element test

* change pydom test page to let pytest tests load it properly

* add missing folders to test dev server so it can run examples in the manual tests folder

* add pydom tests to the test suite as integration tests

* lint

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* improve fixes in event_handling

* change when decorator to actually dynamically fail in micropython and support handlers with or without arguments

* simplify when decorator code

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add type declaration back for the MP use case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* removed code to access pydom get index as I can't think of any proper use case

* remove old commented hack to replace pydom module with class

* fix examples title

* precommit checks

* [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>
2024-01-30 11:30:16 -08:00
Andrea Giammarchi
3ff0f84391 Update polyscript + coincident to their latest (#1958) 2024-01-30 12:31:44 +01:00
Andrea Giammarchi
2b411fc635 Update Polyscript to its latest w/ experimental (#1955) 2024-01-29 12:00:37 +01:00
Fabio Pliger
2128572ce5 pyweb camera support (#1901)
* add media module

* add Device class to media

* add camera test example

* add snap, download and other convenience methods

* load devices automagically

* add draw method to canvas

* add docstring for download

* add docstrings to draw method

* add docstrings to snap

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* load devices as soon as the page loads

* solve conflict

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove display calls listing devices in camera example

* fix typos and other small errors

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix typo in docstring

* fix error message typo

* replace setAttribute on JS properties with accessors

* remove debug statement

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add docstrings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add docstrings to camera example

* [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>
2024-01-26 14:33:02 -08:00
Andrea Giammarchi
63f2453091 Fix #1946 - Do not hold while bootstrapping (#1953) 2024-01-26 15:04:02 +01:00
Andrea Giammarchi
f6470dcad5 Multiple Worker based Terminals (#1948)
Multiple Worker based Terminals
2024-01-24 17:33:55 +01:00
Andrea Giammarchi
a9717afeb7 updated Pyodide to 0.25.0 (#1949) 2024-01-24 13:19:33 +01:00
Andrea Giammarchi
cea52b4334 Adding __terminal__ reference on terminal scripts (#1947) 2024-01-22 15:34:36 +01:00
Andrea Giammarchi
7ad7f0abfb Fix #1943 - Updated Polyscript with configURL (#1944) 2024-01-17 16:15:51 +01:00
Andrea Giammarchi
1efd73af8f Instrumented the io.stderr too when terminal exists (#1942) 2024-01-16 19:05:15 +01:00