4a948f9155
adds "display" web settings support to frontend
...
Components with a "display" equals false in the web settings will not be displayed
in the frontend.
2024-03-11 15:37:56 +01:00
dba036c6b3
do not try to update state if it is not yet set
...
This happens when the backend pushes updates before the frontend has received and set the state when loading the page, first.
2024-03-05 13:19:02 +01:00
af36ed6c43
changes rendering of enums
2024-03-04 11:48:01 +01:00
853472be94
updates enumValue when backend value changes
2024-03-04 11:47:51 +01:00
6ed6fe5be1
cleanup: changing some frontend components
2024-02-28 10:59:28 +01:00
26689d8578
updates AsyncMethodComponent to work with backend
2024-02-27 16:07:54 +01:00
acd0c80316
updated use of method components
2024-02-27 12:58:28 +01:00
2337aa9d6d
only methods without arguments can be rendered
2024-02-27 12:58:08 +01:00
883ec6d6ae
updates MethodComponent
...
Keyword arguments have a default value now which is displayed in the frontend. The following types can be rendered now:
- numbers (ints, floats, quantities)
- enums (including coloured enums)
I still have to fix the `convert_argument_to_hinted_types` method to make Quantity and Enums work.
2024-02-21 16:30:47 +01:00
22fd2d099d
stores enum value within component - now usable within method form
2024-02-21 16:20:58 +01:00
f8926ea823
prevents Enter key within StringComponent to submit form in MethodComponent
2024-02-21 16:09:28 +01:00
ceed62c8f2
merges NumberInputField back into NumberComponent
2024-02-21 15:46:27 +01:00
5313ef6e8c
fixes StringComponent for use as method argument (adds name to control form)
2024-02-21 15:46:14 +01:00
2d98ba51f4
moves displayName and id to GenericComponent and pass them as props
2024-02-21 15:45:37 +01:00
2f2544b978
removes unnecessary props from button
2024-02-21 09:36:29 +01:00
fffe679bf0
defines changeCallback function in GenericComponent and passes it to components (instead of setAttribute)
...
The components do not use the setAttribute method themselves anymore. This way, you can provide
the changeCallback function if you want and thus reuse the components.
2024-02-21 08:32:59 +01:00
2bb02a5558
separating out NumberInputField from NumberComponent (to be used in MethodComponent)
2024-02-20 17:20:20 +01:00
1c029e301b
updates types
2024-02-20 16:39:06 +01:00
8042f9b390
removes card header of root component
2024-02-20 14:49:35 +01:00
529d61c77d
fixes DeviceConnection overlay message when directly exposed
2024-02-01 13:33:22 +01:00
7f082b6f95
fixes border radius of DeviceComponent when directly exposed
2024-02-01 13:33:22 +01:00
04d19a853f
renaming available to connected
2024-02-01 13:33:22 +01:00
f1384b25a1
updates DeviceConnection component
2024-02-01 13:33:22 +01:00
7ef82e61e5
frontend styling
2024-02-01 13:33:22 +01:00
2c95a2496c
adds frontend DeviceConnection component
2024-02-01 13:33:22 +01:00
7279fed2aa
frontend will can now display any serialization dict
2024-02-01 08:45:40 +01:00
0ecaeac3fb
replaces js interfaces with types
2024-01-16 12:57:35 +01:00
0e9832e2f1
updates DocStringComponent placement
2024-01-16 12:55:18 +01:00
9d90fd2b81
displayName of components is now taken from WebSettingsContext
2023-12-21 10:30:21 +01:00
9fc6d6f910
updates WebSettings.tsx
2023-12-21 10:04:55 +01:00
8e3a1694ce
updates frontend components to not have DataService in the fullAccessPath
2023-12-21 10:03:17 +01:00
8940a61d4e
adds WebSettings context
2023-12-21 07:48:03 +01:00
393bde3280
frontend: removes unused stateRef
2023-12-20 16:57:28 +01:00
729f375901
adds support for quantities in slider component (passing object instead of number)
2023-12-13 10:35:28 +01:00
e643dd6f5c
adds number object types to NumberComponent
2023-12-13 10:34:32 +01:00
dc4c9ff58f
removes unused customEmitUpdate prop from NumberComponent
2023-12-11 17:30:12 +01:00
83cd07feee
updates SliderComponent to emit attribute updates (instead of full state dict)
2023-12-11 17:30:12 +01:00
aab2b4ee77
updates frontend reducer to accept new sio_callback event data
2023-12-05 10:49:33 +01:00
9d36f99404
adds CRITICAL log level
2023-11-27 16:15:53 +01:00
92f14c6788
updates App.css
2023-11-27 16:09:12 +01:00
4746470aee
error toasts always show even when showNotifications is false
2023-11-27 16:08:49 +01:00
f5627e6a2f
frontend: error toast only goes away when clicked
2023-11-27 16:08:08 +01:00
fdcaa1c1ed
udpates App.css
2023-11-27 15:41:40 +01:00
613b1dd6a4
updates addNotification type hints in components
2023-11-27 15:41:30 +01:00
914997cc6b
updates App.tsx to use new NotificationComponent
2023-11-27 15:41:02 +01:00
667bb949cc
rewrites NotificationsComponent to handle various notification levels
2023-11-27 15:40:25 +01:00
123edb9e86
frontend: removes unused code from stateUtils
2023-11-27 15:37:58 +01:00
4a43bda5e2
frontend: updates reducer to process serialized values
2023-11-16 09:14:48 +01:00
f693fa9ba2
frontend: adds stateUtils module
2023-11-16 09:14:01 +01:00
f6eef7085e
updates frontend packages
2023-11-16 08:13:29 +01:00