UST-QuAntiL / qhana-plugin-registry

A plugin registry for QHAna plugins
https://qhana-plugin-registry.readthedocs.io/en/latest
Apache License 2.0
0 stars 0 forks source link

Load templates from files #28

Closed infacc closed 11 months ago

infacc commented 11 months ago

Load ui-templates from JSON files on startup. Files/folders need to be set via the UI_TEMPLATE_PATHS environment variable. Templates are added if no template with the same name exists.

Example JSON file ```json { "name": "test template", "description": "test template", "tags": [ "test" ], "tabs": [ { "name": "test tab", "description": "test tab", "sort_key": 0, "location": "workspace", "filter": { "or": [ { "name": "hello-world" }, { "type": "dataloader" } ] } }, { "name": "test tab 2", "description": "test tab 2", "sort_key": 1, "location": "workspace", "filter": { "or": [ { "name": "hello-world" }, { "type": "visualization" } ] } } ] } ```