adding todoist entry to base
Adding Todoist to the base files to allow configuration for the widget
This commit is contained in:
parent
f82a122e26
commit
679aff4a8d
@ -452,6 +452,9 @@ export function cleanServiceGroups(groups) {
|
||||
enablePools,
|
||||
nasType,
|
||||
|
||||
// todoist
|
||||
categories,
|
||||
|
||||
// unifi
|
||||
site,
|
||||
} = cleanedService.widget;
|
||||
@ -525,6 +528,9 @@ export function cleanServiceGroups(groups) {
|
||||
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
|
||||
if (nasType !== undefined) cleanedService.widget.nasType = nasType;
|
||||
}
|
||||
if (type === "todoist") {
|
||||
if (categories !== undefined) cleanedService.widget.categories = categories;
|
||||
}
|
||||
if (["diskstation", "qnap"].includes(type)) {
|
||||
if (volume) cleanedService.widget.volume = volume;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ export default async function credentialedProxyHandler(req, res, map) {
|
||||
} else if (widget.type === "gotify") {
|
||||
headers["X-gotify-Key"] = `${widget.key}`;
|
||||
} else if (
|
||||
["authentik", "cloudflared", "ghostfolio", "mealie", "tailscale", "tandoor", "pterodactyl"].includes(
|
||||
["authentik", "cloudflared", "ghostfolio", "mealie", "tailscale", "tandoor", "pterodactyl", "todoist"].includes(
|
||||
widget.type,
|
||||
)
|
||||
) {
|
||||
|
||||
@ -107,6 +107,7 @@ const components = {
|
||||
tandoor: dynamic(() => import("./tandoor/component")),
|
||||
tautulli: dynamic(() => import("./tautulli/component")),
|
||||
tdarr: dynamic(() => import("./tdarr/component")),
|
||||
todoist: dynamic(() => import("./todoist/component")),
|
||||
traefik: dynamic(() => import("./traefik/component")),
|
||||
transmission: dynamic(() => import("./transmission/component")),
|
||||
tubearchivist: dynamic(() => import("./tubearchivist/component")),
|
||||
|
||||
@ -98,6 +98,7 @@ import tailscale from "./tailscale/widget";
|
||||
import tandoor from "./tandoor/widget";
|
||||
import tautulli from "./tautulli/widget";
|
||||
import tdarr from "./tdarr/widget";
|
||||
import todoist from "./todoist/widget";
|
||||
import traefik from "./traefik/widget";
|
||||
import transmission from "./transmission/widget";
|
||||
import tubearchivist from "./tubearchivist/widget";
|
||||
@ -216,6 +217,7 @@ const widgets = {
|
||||
tandoor,
|
||||
tautulli,
|
||||
tdarr,
|
||||
todoist,
|
||||
traefik,
|
||||
transmission,
|
||||
tubearchivist,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user