Mose Müller
36d3a7becc
restructure StateManager to allow extending dictionaries through clients
2024-07-29 15:02:47 +02:00
Mose Müller
d54eed8a58
get_object_by_path_parts and get_object_attr_from_path do not catch exceptions any more
2024-07-29 15:02:47 +02:00
Mose Müller
817afc610a
StateManager: replaces _data_service_cache with cache_manager
...
- _data_service_cache -> cache_manager
- removes cache property
- replaces get_nested_dict_by_path with cache_manager.get_value_dict_from_cache where possible
2024-07-29 15:02:47 +02:00
Mose Müller
ad0f9420d9
get_value_dict_from_cache does not catch exceptions any more
2024-07-29 14:59:02 +02:00
Mose Müller
6d786cd0f8
removes unused SerializationValueError exception
2024-07-29 14:59:02 +02:00
Mose Müller
de4270daa4
Merge pull request #146 from tiqi-group/feat/replace_fastapi_with_aiohttp
...
Replace fastapi with aiohttp
2024-07-25 08:39:01 +02:00
Mose Müller
7286017715
removes unused imports
2024-07-25 08:28:33 +02:00
Mose Müller
1a23206f42
adds example to helper function
2024-07-25 08:25:28 +02:00
Mose Müller
fdb17e44e2
replaces fastapi with aiohttp
2024-07-25 08:25:10 +02:00
Mose Müller
fc738e2743
using aiohttp as socketio async_mode
2024-07-25 08:22:12 +02:00
Mose Müller
9de4071120
updates logging to remove uvicorn dependency
2024-07-25 07:48:22 +02:00
Mose Müller
369d0b1126
adds handle for server shutdown, removes uvicorn dependency from server.py
2024-07-25 07:47:59 +02:00
Mose Müller
c396de75fb
frontend: default export useRenderCount hook
2024-07-24 15:06:36 +02:00
Mose Müller
4ed8899708
Merge pull request #145 from tiqi-group/11-frontend-user-should-be-able-to-change-the-order-of-the-elements-in-the-frontend
...
adds support for altering component display order
2024-07-24 15:02:22 +02:00
Mose Müller
2fa3505310
updates Readme with displayOrder customization
2024-07-24 14:58:56 +02:00
Mose Müller
9d387944ef
npm run build
2024-07-24 14:58:47 +02:00
Mose Müller
0d70b7492d
frontend: adds support for displayOrder in web settings
2024-07-24 14:53:40 +02:00
Mose Müller
7bc12b340f
updates vscode debugging config
2024-07-24 13:41:48 +02:00
Mose Müller
e996966388
Merge pull request #144 from tiqi-group/feat/useLocalStorage_hook
...
Feat: useLocalStorage hook
2024-07-22 07:09:04 +02:00
Mose Müller
c07efe056b
npm run build
2024-07-22 07:05:16 +02:00
Mose Müller
9e0adba8dc
introduces useLocalStorage hook
2024-07-22 07:05:09 +02:00
Mose Müller
1789a6ad7e
Merge pull request #143 from tiqi-group/fix/logging
...
configures pydase's logger only (not root logger anymore)
2024-07-12 07:46:32 +02:00
Mose Müller
0e5f1ede20
fixes logging test
2024-07-12 07:45:11 +02:00
Mose Müller
f8cae28128
fix tests: need to propagate logger when testing (due to pytest)
2024-07-11 19:49:55 +02:00
Mose Müller
e31af9ae31
moves log_config out of setup_logging method to make it configurable, removes argument from function
2024-07-11 17:04:11 +02:00
Mose Müller
60c671eb0d
configures pydase's logger (not root logger anymore)
2024-07-11 16:53:12 +02:00
Mose Müller
203059822c
Merge pull request #142 from tiqi-group/feat/allow_monkey_patching_sio_setup
...
Allow monkey-patching of serialization methods in socketio setup
2024-07-09 16:27:35 +02:00
Mose Müller
e7f9ad799c
uses loads instead of Deserializer, allows for monkey-patching loads and dump
2024-07-09 16:25:35 +02:00
Mose Müller
3e5a56446f
Merge pull request #141 from tiqi-group/feat/serialize_datetime
...
Adds support for datetime serialization
2024-07-09 15:55:00 +02:00
Mose Müller
cf0780b2ca
adds support for datetime serialization
2024-07-09 15:41:30 +02:00
Mose Müller
8afee54c51
Merge pull request #140 from tiqi-group/feat/make_serializer_methods_properly_overridable
...
serializer: converting staticmethods to classmethods
2024-07-09 15:19:53 +02:00
Mose Müller
6e4e000c28
serializer: converting staticmethods to classmethods
...
This helps developers that want to add functionality to the serializer.
2024-07-09 15:15:30 +02:00
Mose Müller
b719684702
Merge pull request #139 from tiqi-group/chore/remove_pillow_dependency
...
removes Pillow dependency, updates Image component
v0.8.4
2024-07-09 08:42:02 +02:00
Mose Müller
7254482b35
updates pint to fix numpy dependency issue
2024-07-09 08:39:35 +02:00
Mose Müller
44d5a98449
removes Pillow dependency, updates Image component
2024-07-09 07:52:18 +02:00
Mose Müller
29558758af
Merge pull request #138 from tiqi-group/fix/unnecessary_component_rendering
...
Fixes unnecessary component rendering
2024-07-08 15:24:54 +02:00
Mose Müller
f9be97a910
npm run build
2024-07-08 15:16:32 +02:00
Mose Müller
fa45ee566b
fixes eslint error
2024-07-08 15:16:13 +02:00
Mose Müller
6e8ad98282
frontend: updates when slider notifications are shown
2024-07-08 15:15:42 +02:00
Mose Müller
c42872aad4
moves functions from component to the outside (to not cause re-rendering)
2024-07-08 15:15:12 +02:00
Mose Müller
34eb4a0e7c
frontend: introduces propsAreEqual function passed to React.memo to reduce re-rendering
...
This function accepts the component’s previous props, and its new props.
It should return true if the old and new props are equal: that is, if the component will
render the same output and behave in the same way with the new props as with the old.
I need to use this function as state objects that are passed as props will always have different references.
2024-07-08 15:15:12 +02:00
Mose Müller
7d50bd5759
frontend: cast type instead of ignoring typescript error
2024-07-08 15:11:05 +02:00
Mose Müller
c98f191d20
frontend: updates EnumComponent
...
- replaces type with SerializedEnum from types.ts
- passing props instead of attribute directly
2024-07-08 15:10:37 +02:00
Mose Müller
b1e6663c66
frontend: introduces useRenderCount hook
...
The useRenderCount hook contains all the necessary logic to count the re-render events.
This reduces duplication and code complexity.
2024-07-08 15:10:37 +02:00
Mose Müller
a5a957d290
using tseslint.config in eslint config (for types)
2024-07-08 08:58:04 +02:00
Mose Müller
b856ed3a12
using tsParser in eslint config
2024-07-08 08:51:01 +02:00
Mose Müller
b83e241b32
Merge pull request #137 from tiqi-group/chore/update_eslint
...
chore: update eslint config
2024-07-08 08:32:53 +02:00
Mose Müller
fb251649a0
updates eslint config, fixes linting errors
2024-07-08 08:30:55 +02:00
Mose Müller
a2ee8d02d6
Merge pull request #136 from tiqi-group/fix/allow_unserializable_objects_on_priv_attrs
...
Fix: allow unserializable objects on priv attrs
2024-07-04 17:43:32 +02:00
Mose Müller
44d73c3b77
adds function testing if private attributes can take values that are not serializable
2024-07-04 17:37:44 +02:00