Mose Müller
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
Mose Müller
22fd2d099d
stores enum value within component - now usable within method form
2024-02-21 16:20:58 +01:00
Mose Müller
f8926ea823
prevents Enter key within StringComponent to submit form in MethodComponent
2024-02-21 16:09:28 +01:00
Mose Müller
ceed62c8f2
merges NumberInputField back into NumberComponent
2024-02-21 15:46:27 +01:00
Mose Müller
5313ef6e8c
fixes StringComponent for use as method argument (adds name to control form)
2024-02-21 15:46:14 +01:00
Mose Müller
2d98ba51f4
moves displayName and id to GenericComponent and pass them as props
2024-02-21 15:45:37 +01:00
Mose Müller
2f2544b978
removes unnecessary props from button
2024-02-21 09:36:29 +01:00
Mose Müller
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
Mose Müller
2bb02a5558
separating out NumberInputField from NumberComponent (to be used in MethodComponent)
2024-02-20 17:20:20 +01:00
Mose Müller
1c029e301b
updates types
2024-02-20 16:39:06 +01:00
Mose Müller
8042f9b390
removes card header of root component
2024-02-20 14:49:35 +01:00
Mose Müller
529d61c77d
fixes DeviceConnection overlay message when directly exposed
2024-02-01 13:33:22 +01:00
Mose Müller
04d19a853f
renaming available to connected
2024-02-01 13:33:22 +01:00
Mose Müller
f1384b25a1
updates DeviceConnection component
2024-02-01 13:33:22 +01:00
Mose Müller
7ef82e61e5
frontend styling
2024-02-01 13:33:22 +01:00
Mose Müller
2c95a2496c
adds frontend DeviceConnection component
2024-02-01 13:33:22 +01:00
Mose Müller
0ecaeac3fb
replaces js interfaces with types
2024-01-16 12:57:35 +01:00
Mose Müller
0e9832e2f1
updates DocStringComponent placement
2024-01-16 12:55:18 +01:00
Mose Müller
9d90fd2b81
displayName of components is now taken from WebSettingsContext
2023-12-21 10:30:21 +01:00
Mose Müller
8e3a1694ce
updates frontend components to not have DataService in the fullAccessPath
2023-12-21 10:03:17 +01:00
Mose Müller
729f375901
adds support for quantities in slider component (passing object instead of number)
2023-12-13 10:35:28 +01:00
Mose Müller
e643dd6f5c
adds number object types to NumberComponent
2023-12-13 10:34:32 +01:00
Mose Müller
dc4c9ff58f
removes unused customEmitUpdate prop from NumberComponent
2023-12-11 17:30:12 +01:00
Mose Müller
83cd07feee
updates SliderComponent to emit attribute updates (instead of full state dict)
2023-12-11 17:30:12 +01:00
Mose Müller
aab2b4ee77
updates frontend reducer to accept new sio_callback event data
2023-12-05 10:49:33 +01:00
Mose Müller
9d36f99404
adds CRITICAL log level
2023-11-27 16:15:53 +01:00
Mose Müller
4746470aee
error toasts always show even when showNotifications is false
2023-11-27 16:08:49 +01:00
Mose Müller
f5627e6a2f
frontend: error toast only goes away when clicked
2023-11-27 16:08:08 +01:00
Mose Müller
613b1dd6a4
updates addNotification type hints in components
2023-11-27 15:41:30 +01:00
Mose Müller
667bb949cc
rewrites NotificationsComponent to handle various notification levels
2023-11-27 15:40:25 +01:00
Mose Müller
3cc6399f60
frontend: update style (fix button appearance)
2023-11-09 17:10:21 +01:00
Mose Müller
d18be54284
updates frontend components to use new methods from socket.ts
2023-11-09 13:52:23 +01:00
Mose Müller
3132680c50
removing unnecessary console log commands
2023-11-03 09:14:36 +01:00
Mose Müller
b32bdabfca
Revert "Fix/connection toast timeout"
2023-11-03 09:11:40 +01:00
Mose Müller
621bed94af
removing unnecessary console log commands
2023-11-03 08:50:03 +01:00
Mose Müller
7f402b45e7
docs: adding docstring to ConnectionToast
2023-11-02 15:34:07 +01:00
Mose Müller
c4056d3ca8
chore: formatting, renaming
2023-11-02 15:31:46 +01:00
Mose Müller
47d64243c3
adds connection toast component to app
2023-11-02 15:23:31 +01:00
Mose Müller
8ae0b7818b
feat (frontend): pressing "-" at the beginning of a number component will add a minus sign
2023-10-30 14:36:52 +01:00
Mose Müller
1d2325171b
fixing eslint errors
2023-10-30 14:14:32 +01:00
Mose Müller
b149c1b411
fix: component ids adhere to html guidelines now
2023-10-30 14:05:39 +01:00
Mose Müller
7dcec88c9a
frontend: updating addNotification type hints
2023-10-30 13:26:25 +01:00
Mose Müller
5ad15c1cae
frontend: fix div ids
2023-10-17 11:45:50 +02:00
Mose Müller
34e46e05ee
feat: adding ColouredEnum component
2023-10-11 14:03:07 +02:00
Mose Müller
23ef229eb1
frontend: removes unused import
2023-09-14 10:29:23 +02:00
Mose Müller
ee124ead89
removes buttons from number components
2023-09-14 10:17:25 +02:00
Mose Müller
bbee77e231
feat: adds simple functionality to buttons in number component
2023-09-14 10:12:51 +02:00
Mose Müller
050a718e44
feat: highlighted digits are overwritten in number components
2023-09-14 08:28:38 +02:00
Mose Müller
b275446960
adapts slider frontend component (highlights pressed settigns button)
2023-08-17 11:15:39 +02:00
Mose Müller
55620bc6e7
make Image collapsible in frontend
2023-08-16 11:14:52 +02:00