Commit Graph

9 Commits

Author SHA1 Message Date
Peter W
1fdec1ca21 redirect examples (#365) 2022-05-13 18:24:29 -05:00
Fabio Pliger
363f3751f9 support different pyodide versions (#328)
* add PyLoader class

* create global loader during app creation time and remove it when pyscript loading operations are done

* make the loader global and open/close when apps is starting. Also add concept of app config so users can set if they want to autoclose the loader of handle it themselves

* add pyconfig file

* auto add global config if there's no config set in the page

* export initializer type

* define type for config

* move initialization out of svelte file, into app config

* change runtimes from strings to objects

* fix typo
2022-05-11 16:59:13 -05:00
Fabio Pliger
71319d0969 add app loading splash screen and AppConfig (#279)
* add PyLoader class

* create global loader during app creation time and remove it when pyscript loading operations are done

* make the loader global and open/close when apps is starting. Also add concept of app config so users can set if they want to autoclose the loader of handle it themselves

* add pyconfig file

* auto add global config if there's no config set in the page

* remove changes to simple_clock example
2022-05-10 16:00:25 -05:00
Matt Kramer
cc6d6247a8 Add additional pre-commit hooks (#245)
* Add and run end-of-file-fixer
* Add and run trailing-whitespace
* Add and run check-yaml
* Add and run check-json
* Add and run pretty-format-yaml
* Fix comment indentation
2022-05-06 14:27:11 -05:00
Fabio Pliger
f5a6a87328 Merge branch 'main' into quickfix/pyscript_loading_sequence 2022-05-03 09:04:03 -05:00
Fabio Pliger
ede0adac81 fix some examples 2022-05-03 08:54:36 -05:00
sudomaze
2dbafe8870 update to be relative to current directory 2022-05-01 23:13:26 -07:00
sudomaze
f82d032dd0 Fix aboluste path when import .py in examples
This PR is for [this issue](#87).
2022-05-01 03:06:38 -07:00
Antonio Cuni
ad118eeb8e Refactor the demo page
1. Rename simple script into hello world
2. Rename simple script 2 into simple clock
3. Group demos into categories, starting with simple examples towards more complex ones
2022-04-28 17:19:09 +02:00