Commit Graph

168 Commits

Author SHA1 Message Date
Andrea Giammarchi
9b46e7cc24 Merge branch 'main' into poc_ui_blocks 2024-04-15 13:51:52 +02:00
Andrea Giammarchi
2d5cf096e0 Fix MicroPython badly handling unicode chars (#2018)
## Changes

  * fixed an issue with the **py-editor** related to the new `linebuffer` directive
  * provide in worker hook scope a simple callback that pre-buffers unicode sequences [accordingly to the standard](https://encoding.spec.whatwg.org/#utf-8-bytes-needed) so that the buffer is sent to the terminal only once those sequences are fulfilled
  * test with both `µ` and way more convoluted sequences such as 👩‍❤️‍👨 that the output, if either requested as input or already evaluated from the page works ... in latter case `test = "👩‍❤️‍👨"` completely messes up the program and the resulting string is empty
2024-04-09 14:51:10 +02:00
Andrea Giammarchi
239add4e20 Better MicroPython Terminal (#2014)
* Better MicroPython Terminal + fixed Pyodide astty value
2024-04-04 15:33:41 +02:00
pre-commit-ci[bot]
d7ac58d18d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-03 22:57:01 +00:00
Fabio Pliger
80529cae71 lint 2024-04-03 17:56:43 -05:00
Fabio Pliger
106a78b635 Merge branch 'main' into poc_ui_blocks 2024-04-03 17:56:13 -05:00
pre-commit-ci[bot]
abe706b9e9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-03 22:53:13 +00:00
Andrea Giammarchi
4e4ac56729 Fix #1998 - Allow lazy terminal bootstrap + MicroPython terminal
* Fix #1998 - Allow lazy PyTerminal bootstrap

* Fix #1998 - Allow lazy terminal bootstrap / runtime

* Implemented mpy terminal in both main and 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>
2024-04-03 15:50:20 +02:00
Andrea Giammarchi
1447cb3094 Fix #1997 - Bring pyscript stdlib to the PyEditor (#2010)
* Fix #1997 - Bring pyscript stdlib to the PyEditor
2024-03-28 10:43:26 +01:00
Fabio Pliger
307eb738d5 precommit 2024-03-26 17:10:30 -05:00
Fabio Pliger
b73b30b2d8 remove js_property and fix references 2024-03-26 17:08:25 -05:00
pre-commit-ci[bot]
1c315f8318 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-26 21:02:03 +00:00
Fabio Pliger
111616a780 replace JSProperty with js_property 2024-03-26 15:59:34 -05:00
Fabio Pliger
ff7e2effe5 Merge branch 'main' into poc_ui_blocks 2024-03-26 14:58:17 -05:00
Andrea Giammarchi
910c666319 pyscript.ffi - expose most essential utilities (#2005)
pyscript.ffi - expose most essential utilities
2024-03-22 17:41:06 +01:00
Andrea Giammarchi
98c0f5e50d Fix #2000 - Allow advanced users to deal themselves with responses (#2001)
* Fix #2000 - Allow advanced users to deal themselves with responses

* rolled back the direct utility idea

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

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

* Updated to latest MicroPython and latest way to have direct access with fetch

* [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-03-20 16:40:24 +01:00
Andrea Giammarchi
a1268f1aa2 Fix #1993 - Expose a handy fetch API (#1994) 2024-03-14 19:36:23 +01:00
Andrea Giammarchi
df1d699fe6 [feature] py-editor setup (#1989) 2024-03-13 12:25:30 +01:00
Fabio Pliger
15896cd12c fix issue with example code not showing created button 2024-03-04 11:56:40 -06:00
Fabio Pliger
b9cfe74aa2 adapt shoelace to latest upates in ui.elements 2024-02-29 14:14:55 -06:00
pre-commit-ci[bot]
43c085d56f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 22:18:27 +00:00
Fabio Pliger
f5f01f6929 add test for more elements up to caption 2024-02-27 14:22:38 -06:00
pre-commit-ci[bot]
98413cfb69 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-27 16:44:27 +00:00
Fabio Pliger
850f8c6651 lint 2024-02-27 10:42:25 -06:00
Andrea Giammarchi
6121d32495 Merge branch 'main' into poc_ui_blocks 2024-02-14 15:51:22 +01:00
pre-commit-ci[bot]
e0cf825de7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-12 20:48:36 +00:00
Fabio Pliger
83d17a75ba lint 2024-02-12 14:47:36 -06:00
Fabio Pliger
f6d5cf06c8 Add text to pydom.Element (#1911)
* add missing test for html attribute

* add test for text attribute

* fix text attribute test

* [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>
Co-authored-by: Andrea Giammarchi <andrea.giammarchi@gmail.com>
2024-02-12 11:50:36 -08:00
Andrea Giammarchi
30c6c830ae Fix #1972 - Evaluate users' code a part (#1975) 2024-02-09 15:52:29 +01:00
pre-commit-ci[bot]
d5d37fb260 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 22:07:17 +00:00
Fabio Pliger
635ede9edf lint 2024-02-02 16:07:05 -06:00
Fabio Pliger
39647d783c Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-02 16:06:38 -06:00
Fabio Pliger
2c59717214 fixed issues with renaming Grid to grid, after we merged 2024-02-02 16:06:26 -06:00
pre-commit-ci[bot]
1db1e4335b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 21:59:33 +00:00
Fabio Pliger
4ee0540dd1 fix post merge issues 2024-02-02 15:59:15 -06:00
Fábio Rosado
9033a09099 Small tweaks to main demo page (#1962)
* Small tweaks to main demo page

* [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>
Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com>
2024-02-02 13:40:25 -08:00
Askat
0791890d0d Add radio group (#1963)
* add radio group

* [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>
Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com>
2024-02-02 13:40:10 -08:00
Fábio Rosado
d101d7d755 Add a bunch more elements (#1966)
* Add copy button

* Add skeleton and spinner

* Add Switch

* Add text area

* Add more elements

* More styling to each 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>
Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com>
2024-02-02 13:21:42 -08:00
pre-commit-ci[bot]
aac21e48ca [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 21:17:07 +00:00
Fabio Pliger
7178616549 link and fix spelling typo 2024-02-02 15:16:46 -06:00
Fabio Pliger
fd9ebc92bb Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-02 15:16:09 -06:00
Fabio Pliger
3de622f44b improve demo 2024-02-02 15:15:07 -06:00
Fabio Pliger
844e3767d1 fix issue related to now importing div from pyweb.ui 2024-02-02 14:57:26 -06:00
Fabio Pliger
0a655f6b6a reorg classes order in elements.py and add missing elements to examples 2024-02-02 14:55:52 -06:00
pre-commit-ci[bot]
21c206a758 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-02 18:59:27 +00:00
Fabio Pliger
70b97d8ec4 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-02-02 12:59:07 -06:00
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