feat: number range slider

This commit is contained in:
2025-09-19 21:58:05 +02:00
parent 5cd187e674
commit da80228eb4
4 changed files with 233 additions and 31 deletions

View File

@@ -137,7 +137,62 @@ class MockDataGenerator {
{ uri: "/api/tasks/control", method: "POST" },
{ uri: "/api/cluster/members", method: "GET" },
{ uri: "/api/node/update", method: "POST" },
{ uri: "/api/node/restart", method: "POST" }
{ uri: "/api/node/restart", method: "POST" },
{
uri: "/api/led/brightness",
method: "POST",
params: [
{
name: "brightness",
type: "numberRange",
location: "body",
required: true,
value: 255,
default: 128
}
]
},
{
uri: "/api/led/color",
method: "POST",
params: [
{
name: "color",
type: "color",
location: "body",
required: true,
default: 16711680
}
]
},
{
uri: "/api/sensor/interval",
method: "POST",
params: [
{
name: "interval",
type: "numberRange",
location: "body",
required: true,
value: 10000,
default: 1000
}
]
},
{
uri: "/api/system/mode",
method: "POST",
params: [
{
name: "mode",
type: "string",
location: "body",
required: true,
values: ["normal", "debug", "maintenance"],
default: "normal"
}
]
}
];
}