Commit graph

14 commits

Author SHA1 Message Date
Richard Bowman
0b45a5dc76 Allow action URIs to be retrieved without errors if they are missing
thingActionUrl may now be told to return `undefined` insstead of throwing an error if the action is missing.
2024-01-17 13:43:22 +00:00
Richard Bowman
d96dbdd546 Only stringify boolean values when setting properties
My workaround to the axios bug that makes `false` values not work
2024-01-11 13:37:57 +00:00
Richard Bowman
f26230efb6 Swap background detect from argument to property
I've added boolean support to PropertyControl. This required
working around a bug in axios, that ignored `false` when sent
as the body of a request.
2024-01-11 03:01:33 +00:00
Richard Bowman
7d497fcf73 Tidy up modal error
It now works if it's passed a string, as well as an Error.
2024-01-04 16:32:43 +00:00
Richard Bowman
0083231b85 Switch to matierial-symbols
material-design-icons was outdated and missing symbols. I've now switched, as recommended in the issue.

/closes #254
2024-01-03 20:51:32 +00:00
Richard Bowman
c1ed5d0c87 Also log modal errors to the console 2023-12-15 02:39:03 +00:00
Richard Bowman
0cd8ecd2d5 Add error checking to mixin thing functions
Now we'll get an error if undefined URLs are about to be fetched.
The error will contain thing and affordance, for debugging.
2023-12-01 02:43:17 +00:00
Richard Bowman
f87594e7af Hide error from CSM if it's uncalibrated
The error still appears in the console - should be fixed
eventually.
2023-12-01 02:31:49 +00:00
Richard Bowman
5d87a7582e Format fixes 2023-12-01 02:23:58 +00:00
Richard Bowman
59e0cf5905 Fix action URLs 2023-12-01 02:22:49 +00:00
Richard Bowman
54df1faeeb Linter fixes 2023-11-30 23:21:45 +00:00
Richard Bowman
f1f6ed5f80 Provide centralised readproperty, writeproperty, and action URLs 2023-11-30 22:51:10 +00:00
Richard Bowman
595101248e Removed node-wot but kept centralised TD store
I had intended to store a ConsumedThing for each Thing, in
a module in the store. Until that is possible (will require some
more attention to dependency management) I will just store
the TDs instead.

This commit includes a lot of the code I wrote for node-wot use,
but without any dependence on node-wot.
2023-11-29 22:43:55 +00:00
Kaspar Emanuel
b2eb1e0f05 Rename js directory to webapp 2021-09-16 15:13:19 +01:00
Renamed from js/src/main.js (Browse further)