flexmeasures.ui
Modules
Error views for UI purposes. |
|
Utility functions for UI logic |
|
This module hosts the views. |
Backoffice user interface & charting support.
Functions
- flexmeasures.ui.add_jinja_filters(app)
- flexmeasures.ui.add_jinja_variables(app)
- flexmeasures.ui.load_vendor_libraries(app: Flask)
Settle which versions of the UI’s libraries the app loads, applying the FLEXMEASURES_JS_VERSIONS setting.
- flexmeasures.ui.log_where_vendor_files_load_from(app: Flask)
Tell hosts whether browsers load the UI’s libraries from CDNs, and how to serve them from FlexMeasures instead.
- flexmeasures.ui.register_at(app: Flask)
This can be used to register this blueprint together with other ui-related things
- flexmeasures.ui.register_rq_dashboard(app)
Classes
- class flexmeasures.ui.UIBlueprint(name: str, import_name: str, static_folder: str | PathLike[str] | None = None, static_url_path: str | None = None, template_folder: str | PathLike[str] | None = None, url_prefix: str | None = None, subdomain: str | None = None, url_defaults: dict[str, ~typing.Any] | None=None, root_path: str | None = None, cli_group: str | None = <object object>)
A blueprint whose vendored files, under static/vendor/<lib>/<version>/, browsers may keep for a year.