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,
|
enablePools,
|
||||||
nasType,
|
nasType,
|
||||||
|
|
||||||
|
// todoist
|
||||||
|
categories,
|
||||||
|
|
||||||
// unifi
|
// unifi
|
||||||
site,
|
site,
|
||||||
} = cleanedService.widget;
|
} = cleanedService.widget;
|
||||||
@ -525,6 +528,9 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
|
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
|
||||||
if (nasType !== undefined) cleanedService.widget.nasType = nasType;
|
if (nasType !== undefined) cleanedService.widget.nasType = nasType;
|
||||||
}
|
}
|
||||||
|
if (type === "todoist") {
|
||||||
|
if (categories !== undefined) cleanedService.widget.categories = categories;
|
||||||
|
}
|
||||||
if (["diskstation", "qnap"].includes(type)) {
|
if (["diskstation", "qnap"].includes(type)) {
|
||||||
if (volume) cleanedService.widget.volume = volume;
|
if (volume) cleanedService.widget.volume = volume;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export default async function credentialedProxyHandler(req, res, map) {
|
|||||||
} else if (widget.type === "gotify") {
|
} else if (widget.type === "gotify") {
|
||||||
headers["X-gotify-Key"] = `${widget.key}`;
|
headers["X-gotify-Key"] = `${widget.key}`;
|
||||||
} else if (
|
} else if (
|
||||||
["authentik", "cloudflared", "ghostfolio", "mealie", "tailscale", "tandoor", "pterodactyl"].includes(
|
["authentik", "cloudflared", "ghostfolio", "mealie", "tailscale", "tandoor", "pterodactyl", "todoist"].includes(
|
||||||
widget.type,
|
widget.type,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -107,6 +107,7 @@ const components = {
|
|||||||
tandoor: dynamic(() => import("./tandoor/component")),
|
tandoor: dynamic(() => import("./tandoor/component")),
|
||||||
tautulli: dynamic(() => import("./tautulli/component")),
|
tautulli: dynamic(() => import("./tautulli/component")),
|
||||||
tdarr: dynamic(() => import("./tdarr/component")),
|
tdarr: dynamic(() => import("./tdarr/component")),
|
||||||
|
todoist: dynamic(() => import("./todoist/component")),
|
||||||
traefik: dynamic(() => import("./traefik/component")),
|
traefik: dynamic(() => import("./traefik/component")),
|
||||||
transmission: dynamic(() => import("./transmission/component")),
|
transmission: dynamic(() => import("./transmission/component")),
|
||||||
tubearchivist: dynamic(() => import("./tubearchivist/component")),
|
tubearchivist: dynamic(() => import("./tubearchivist/component")),
|
||||||
|
|||||||
@ -98,6 +98,7 @@ import tailscale from "./tailscale/widget";
|
|||||||
import tandoor from "./tandoor/widget";
|
import tandoor from "./tandoor/widget";
|
||||||
import tautulli from "./tautulli/widget";
|
import tautulli from "./tautulli/widget";
|
||||||
import tdarr from "./tdarr/widget";
|
import tdarr from "./tdarr/widget";
|
||||||
|
import todoist from "./todoist/widget";
|
||||||
import traefik from "./traefik/widget";
|
import traefik from "./traefik/widget";
|
||||||
import transmission from "./transmission/widget";
|
import transmission from "./transmission/widget";
|
||||||
import tubearchivist from "./tubearchivist/widget";
|
import tubearchivist from "./tubearchivist/widget";
|
||||||
@ -216,6 +217,7 @@ const widgets = {
|
|||||||
tandoor,
|
tandoor,
|
||||||
tautulli,
|
tautulli,
|
||||||
tdarr,
|
tdarr,
|
||||||
|
todoist,
|
||||||
traefik,
|
traefik,
|
||||||
transmission,
|
transmission,
|
||||||
tubearchivist,
|
tubearchivist,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user