Commit Graph

172 Commits

Author SHA1 Message Date
Fabio Pliger
3bf4a850d6 rename Grid to grid to align to other elements 2024-02-02 12:58:33 -06:00
Fabio Pliger
cf987b1ce9 simplify base elements demo by moving all the examples to the examples module 2024-02-02 12:41:57 -06:00
Fabio Pliger
6c838ae30d fix demo left menu width 2024-02-02 12:35:47 -06:00
Fabio Pliger
c3876958fb fix div clashing names 2024-02-02 12:30:09 -06:00
Fabio Pliger
410c444ea7 refactor examples to better simplify and automate 2024-02-02 12:26:19 -06:00
Fabio Pliger
779b367e2c change example creation functions to take the label and the object directly 2024-02-02 12:07:19 -06:00
pre-commit-ci[bot]
6f3f28973e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 17:35:59 +00:00
Fabio Pliger
11a4adaaa0 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-02 11:35:40 -06:00
Fabio Pliger
e0ee871261 lint 2024-02-02 11:35:36 -06:00
Fabio Pliger
e75625f165 add attributes to all classes in elements 2024-02-02 11:35:21 -06:00
pre-commit-ci[bot]
bbe9c23c54 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 15:40:39 +00:00
Fabio Pliger
fe420be776 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-02 09:38:48 -06:00
Fabio Pliger
7036008e02 lint 2024-02-02 09:36:12 -06:00
Fabio Pliger
05a5fb7ff2 add global JS attributes to elements and improve demos 2024-02-02 09:00:47 -06: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
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
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
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
5f748c9768 new pyweb.ui test folder 2024-01-30 19:01:36 -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
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
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
0f788fa284 Fix #1899 - Expose pyscript.js_modules as module (#1902)
* Fix #1899 - Expose pyscript.js_modules as module

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

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

* Fix #1899 - Make import as smooth as in polyscript

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 17:16:51 +01:00