mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-12 16:08:48 +00:00
widget refactoring
This commit is contained in:
parent
03fa2f86d7
commit
035dd25ece
29 changed files with 851 additions and 10 deletions
|
@ -6,19 +6,19 @@ const widget = {
|
|||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
"series": {
|
||||
series: {
|
||||
endpoint: "series",
|
||||
map: (data) => ({
|
||||
total: asJson(data).length,
|
||||
}),
|
||||
},
|
||||
"queue": {
|
||||
queue: {
|
||||
endpoint: "queue",
|
||||
},
|
||||
"wanted/missing": {
|
||||
endpoint: "wanted/missing",
|
||||
},
|
||||
endpoint: "wanted/missing",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue