mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 19:53:00 -05:00
Minimum viable py-config default schema (#803)
* Minimium viable py-config default schema * Add packages and paths to default * Add in default for plugins * Remove tests for values no longer in the default config
This commit is contained in:
@@ -9,26 +9,19 @@ const allKeys = {
|
||||
};
|
||||
|
||||
const defaultConfig: AppConfig = {
|
||||
"name": "pyscript",
|
||||
"description": "default config",
|
||||
"version": "0.1",
|
||||
"schema_version": 1,
|
||||
"type": "app",
|
||||
"author_name": "anonymous coder",
|
||||
"author_email": "foo@bar.com",
|
||||
"license": "Apache",
|
||||
"autoclose_loader": true,
|
||||
"runtimes": [{
|
||||
"src": "https://cdn.jsdelivr.net/pyodide/v0.21.2/full/pyodide.js",
|
||||
"name": "pyodide-0.21.2",
|
||||
"lang": "python"
|
||||
}],
|
||||
"packages": [],
|
||||
"paths": [],
|
||||
"packages":[],
|
||||
"paths":[],
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
|
||||
function addClasses(element: HTMLElement, classes: Array<string>) {
|
||||
for (const entry of classes) {
|
||||
element.classList.add(entry);
|
||||
|
||||
Reference in New Issue
Block a user