mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 18:29:48 +00:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
parent
fa50bbad9c
commit
19c25713c4
387 changed files with 4785 additions and 4109 deletions
|
@ -9,17 +9,15 @@ const widget = {
|
|||
workers: {
|
||||
endpoint: "workers/status",
|
||||
map: (data) => ({
|
||||
total_workers: (asJson(data).workers_status).length,
|
||||
active_workers: (asJson(data).workers_status).filter(worker => !worker.idle).length,
|
||||
})
|
||||
total_workers: asJson(data).workers_status.length,
|
||||
active_workers: asJson(data).workers_status.filter((worker) => !worker.idle).length,
|
||||
}),
|
||||
},
|
||||
pending: {
|
||||
method: "POST",
|
||||
body: "{}",
|
||||
endpoint: "pending/tasks",
|
||||
validate: [
|
||||
"recordsTotal"
|
||||
]
|
||||
validate: ["recordsTotal"],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue