acrn-hypervisor/misc/config_tools/configurator/pyodide
Weiyi-Feng 06b942f5eb config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field
1. add Vue devtools support
2. update project dependencies
3. refactor configurator source code tree for private library hook
4. fix build issue
5. dynamic load scenario JSON schema(fix cache issue)
6. add vjsf 1.12.2 (latest) for private package dependencies
7. remove vjsf unnecessary files
8. use private vjsf as configurator dependencies
9. Add custom IVSHMEM_REGION widget
10. add a script to populate default values
11. get default values before export scenario xml
12. specify widgets in XML schema
13. add missing vjsf license file
14. populate default values to empty nodes
15. when user clicks save button, update formData with each field default value
16. fix when the user clicks the save button will collapse configFom
17. add success message for saving scenario XML

vue-json-schema-form 1.12.2 (latest)link: b30ea7c2d6/packages/lib

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
2022-05-08 15:52:28 +08:00
..
__init__.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
generateLaunchScript.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
loadBoard.py misc: configurator: Bugfix: Incorrect DynamicEnum type 2022-05-07 13:12:40 +08:00
loadScenario.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
populateDefaultValues.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
pyodide.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
README.md config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
tests.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
validateScenario.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00

ACRN Configurator WASM Python Module

Every file must set __package__ = 'configurator.pyodide' before import, set this magic var can resolve python relative import error when we direct run it.

Function define

Every python script need a test function and a main function.

test

run script will call this function, so please set script default params in this function

main

in js side will use this function. like:

// after pyodide install all dependices
var launch_cfg_gen = pyodide.pyimport("configurator.pyodide.launch_cfg_gen").main;
var board_xml = this.readFile('xxxx/board.xml');
var scenario_xml = this.readFile('xxx/scenario.xml');
var launch_scripts = launch_cfg_gen(board_xml, scenario_xml);
console.log(launch_scripts)