1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00
Commit Graph

61 Commits

Author SHA1 Message Date
Fabio Pliger
b38d2e5df1 add support for std-out and std-err attributes in py-repl and py-script 2022-04-18 21:55:29 -05:00
Fabio Pliger
57d6ae967b add x margin to pybox children 2022-04-18 21:55:03 -05:00
Fabio Pliger
4ba90a9250 rename target attribute to output 2022-04-18 18:56:49 -05:00
Fabio Pliger
00b571d3df change OutputManager to actually have separate contexts for out and err to scripts can manage both in one place 2022-04-18 15:54:59 -05:00
Fabio Pliger
4d890602d9 adapt pyscript to new base class and clean Base 2022-04-18 12:06:30 -05:00
Fabio Pliger
955fb6fd37 fix missing initialization in outputmanager 2022-04-18 12:06:05 -05:00
Fabio Pliger
95d50269b7 add base component file with components base classe and adapt pyrepl to new base class 2022-04-18 10:13:59 -05:00
Fabio Pliger
fb54949eb6 Merge branch 'main' into pys-19/allow_out_err_redirect 2022-04-15 18:43:19 -05:00
Fabio Pliger
441a2c6e9e introduce outputmanager to redirect output in repl 2022-04-15 18:42:16 -05:00
Mateusz Paprocki
d0f0ebc6c3 Very rudimentary support for ESM and import maps 2022-04-15 14:28:51 +02:00
Mateusz Paprocki
dece4734ba Don't fail on an empty <py-env></py-env> 2022-04-14 08:42:01 +02:00
Fabio Pliger
365486477e add focus when repl is rendered 2022-04-13 19:38:26 -05:00
Fabio Pliger
82f3ace53e reduce space needed for repl buttons on top 2022-04-13 15:12:20 -05:00
Fabio Pliger
2d32bb5f13 Merge branch 'main' into css 2022-04-13 15:03:58 -05:00
Fabio Pliger
68157dd3c2 cleanup some leftovers in pybox 2022-04-13 14:53:49 -05:00
Princiya Sequeira
fdfde89216 updated css for repl2 demo 2022-04-13 21:48:26 +02:00
Fabio Pliger
2059df3ecd make pybox with accepting widths attribute to customize box children ration on the page 2022-04-13 14:46:44 -05:00
Fabio Pliger
b559f767eb first stab ad pybox 2022-04-13 12:17:48 -05:00
Fabio Pliger
a9e1b7c5d6 remove unused import 2022-04-13 09:48:37 -05:00
Fabio Pliger
67be46f224 add support for paths on py-env so that we can load local (sort of) scripts into the environment 2022-04-12 19:04:26 -05:00
Fabio Pliger
c29144d69c improve some of the demos font and removes repr for when objects are outputted to a div 2022-04-12 15:42:44 -05:00
Fabio Pliger
46690ca1a8 remove pyscript being loaded externally for now 2022-04-12 13:09:44 -05:00
Fabio Pliger
8046e28097 fix space 2022-04-12 10:22:12 -05:00
Fabio Pliger
63c882f354 add pyscript python file with python convenience code 2022-04-12 10:21:02 -05:00
Fabio Pliger
973a14baea allow pyscript to specify source and try loading pyscript python injections from file 2022-04-11 23:13:06 -05:00
Fabio Pliger
8dc1ade1e2 add (TEMP) timer to post initializers until we have proper state management and bump pyodide version 2022-04-11 20:13:57 -05:00
Fabio Pliger
7fd2b56bfe remove old files and old code references 2022-04-08 18:19:34 -05:00
Philipp Rudiger
60232bf91b Ensure env is created before executing scripts 2022-04-08 18:51:10 +02:00
Fabio Pliger
9d64a9f126 add pyenv and allow to load packages to the loaded pyodide runtime 2022-04-06 14:45:34 -05:00
Fabio Pliger
5ec85695b9 add initializers that run before py-script scripts run and post initializers that run after. Also add function to unescape some of the characters when read form html tags 2022-04-01 10:45:52 -05:00
Fabio Pliger
5edf76f3d2 point stdout and stderr to console.log 2022-03-29 14:22:08 -05:00
Fabio Pliger
03da071a63 redirect default output to console.log 2022-03-28 17:59:19 -05:00
Fabio Pliger
2b7cbe0129 add array of initializers, to run after the python runtime has loaded 2022-03-25 16:57:54 -05:00
Fabio Pliger
00060b2376 add py-repl and scripts queue to stores 2022-03-24 11:45:24 -05:00
Fabio Pliger
c5846615e9 add convenience Elemenet, Pyscript classes and pyscript namespaced function in the global python namespace 2022-03-24 11:41:31 -05:00
Fabio Pliger
b5680bd34e add mode and minimal very rudimentary support for async exec in pyscript 2022-03-24 11:26:20 -05:00
Fabio Pliger
72be1aa13e if mode is play, execute all scripts scheduled for execution, when the page loads 2022-03-24 11:22:35 -05:00
Fabio Pliger
0fc46d2220 fix table of details navbar 2022-03-20 10:53:53 -05:00
Fabio Pliger
9df0974b4c add right side nav bar for components and components details 2022-03-15 20:01:34 -05:00
Fabio Pliger
79c2658186 add referece to main in stores and clean main contents 2022-03-15 20:00:17 -05:00
Fabio Pliger
c6a99e816c Add visibility css for pyscript dev buttons and support for opening/close component details nav 2022-03-15 19:55:12 -05:00
Fabio Pliger
2f019d317b fix left side navbar and add button to add componente to the page 2022-03-10 17:28:39 -06:00
Fabio Pliger
87c396adaf reorganize UI so with header, footer and left side navbar 2022-03-10 15:01:34 -06:00
Fabio Pliger
bcb9eb94a1 reorganize UI so with header, footer and left side navbar 2022-03-10 14:55:55 -06:00
Fabio Pliger
9554f5b1fd add new initialized runtime to global runtimes in store 2022-03-09 11:55:34 -06:00
Fabio Pliger
b00180a123 Add new runtimes in stores to Header and add a variable to show envs 2022-03-09 11:53:45 -06:00
Fabio Pliger
944b3fe202 add initial global runtimes to stores 2022-03-09 11:51:51 -06:00
Fabio Pliger
92db010f08 add initial global runtimes to App 2022-03-09 11:51:23 -06:00
Fabio Pliger
5831f9a99f replace text with gears and play icons. Also add potential new py-reple tag and possible attributes 2022-03-08 11:36:13 -06:00
Fabio Pliger
50b632555c replace bell with settings icon 2022-03-08 11:31:35 -06:00