mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 00:18:50 +00:00
Add field validation for some widgets
This commit is contained in:
parent
21017e4716
commit
1695fd5bee
9 changed files with 41 additions and 0 deletions
|
@ -11,12 +11,21 @@ const widget = {
|
|||
map: (data) => ({
|
||||
total: asJson(data).length,
|
||||
}),
|
||||
validate: [
|
||||
"total"
|
||||
]
|
||||
},
|
||||
queue: {
|
||||
endpoint: "queue",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
"wanted/missing": {
|
||||
endpoint: "wanted/missing",
|
||||
validate: [
|
||||
"totalRecords"
|
||||
]
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue