22 Commits

Author SHA1 Message Date
Mose Müller
bcc846f70d feat: moving CallbackManager to new file, moving emit_notification to CallbackManager 2023-08-02 12:06:22 +02:00
Mose Müller
dd1cc3bc31 feat: wrapping main loop in try except block
This ensures that
- the shutdown coroutine will be saved to close all resources gracefully
- the service state is being saved when some unexpected error
happens
2023-08-02 12:06:21 +02:00
Mose Müller
d721ef05f5 refactoring the way DataService instance attributes are updated 2023-08-02 12:06:21 +02:00
Mose Müller
a9b98b675d feat: adding support for saving the status of a DataService class
By passing a the "filename" keyword to the DataService init function,
one can save the state of the instance in this file. Quitting the service
(Ctrl+C) will dump the state of the instance in the file with given
filename. When starting the instance, it will load these values again.
2023-08-02 12:06:21 +02:00
Mose Müller
6c9a09eabc feat: updating utils
- moving apply_update_to_data_service to data_service and renaming to
update_DataService_by_path
    - splitting function into several logical parts
- adding and rewriting multiple helper functions
2023-08-02 12:06:21 +02:00
Mose Müller
717939e902 fixing GenericComponent exports 2023-08-02 12:06:21 +02:00
Mose Müller
9c061f05ef feat: move frontend_update logic into utils file 2023-08-02 12:06:21 +02:00
Mose Müller
fb0d1c3d07 frontend: updating build command, location of static files 2023-08-02 12:06:21 +02:00
Mose Müller
9d93b55d60 frontend: updating build command, location of static files 2023-08-02 12:06:20 +02:00
Mose Müller
504d6c1c81 feat: adding list support in socketio handler 2023-08-02 12:06:20 +02:00
Mose Müller
7248192e83 socketio: update frontend event handler
- frontend always passes parent_path
- get the correct attribute specified by the parent_path
2023-08-02 12:06:20 +02:00
Mose Müller
d9a4dd2aeb fixing (ignoring) linting warnings 2023-08-02 12:06:20 +02:00
Mose Müller
b503a5018e web server: adding function handler 2023-08-02 12:06:20 +02:00
Mose Müller
e48e33c948 feat: adding support for enums
- handling fronend upates
- adding serialization for DataService classes
- adapting notification emission
2023-08-02 12:06:20 +02:00
Mose Müller
ec99078925 fixing linting issues in web_server.py 2023-08-02 12:06:20 +02:00
Mose Müller
1b11e88d5a fixing linting issues in server.py 2023-08-02 12:06:20 +02:00
Mose Müller
95dd12bf7f feat: adding backend NumberSlider 2023-08-02 12:06:20 +02:00
Mose Müller
4d929afa79 feat: adding socketio frontend handler to web server 2023-08-02 12:06:19 +02:00
Mose Müller
8c0ad6f334 adding TODO 2023-08-02 12:06:19 +02:00
Mose Müller
fa9086baa8 feat: adding first version of webapi server 2023-08-02 12:06:19 +02:00
Mose Müller
8ae2bc0410 feat: adding first version of the Server 2023-08-02 12:06:19 +02:00
Mose Müller
b67c0f9da3 Initial commit 2023-08-02 12:06:19 +02:00