run pre-commit hooks
This commit is contained in:
parent
3879621714
commit
c3cf278ec4
@ -44,7 +44,7 @@ export default async function credentialedProxyHandler(req, res, map) {
|
|||||||
"tailscale",
|
"tailscale",
|
||||||
"tandoor",
|
"tandoor",
|
||||||
"pterodactyl",
|
"pterodactyl",
|
||||||
"vikunja",
|
"vikunja",
|
||||||
].includes(widget.type)
|
].includes(widget.type)
|
||||||
) {
|
) {
|
||||||
headers.Authorization = `Bearer ${widget.key}`;
|
headers.Authorization = `Bearer ${widget.key}`;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ const widget = {
|
|||||||
projects: {
|
projects: {
|
||||||
endpoint: "projects",
|
endpoint: "projects",
|
||||||
map: (data) => ({
|
map: (data) => ({
|
||||||
projects: jsonArrayFilter(data, (item) => !item.isArchived).length,
|
projects: jsonArrayFilter(data, (item) => !item.isArchived).length,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
tasks: {
|
tasks: {
|
||||||
@ -17,7 +17,7 @@ const widget = {
|
|||||||
// TODO: use filter (and other params?) to allow customizing fields/blocks
|
// TODO: use filter (and other params?) to allow customizing fields/blocks
|
||||||
params: ["filter"],
|
params: ["filter"],
|
||||||
map: (data) => ({
|
map: (data) => ({
|
||||||
tasks: jsonArrayFilter(data, (item) => !item.done).length,
|
tasks: jsonArrayFilter(data, (item) => !item.done).length,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user