Rename custom widget to customapi
This commit is contained in:
parent
de30e8da93
commit
003b6b61ea
@ -299,7 +299,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
stream, // mjpeg
|
stream, // mjpeg
|
||||||
fit,
|
fit,
|
||||||
method, // openmediavault widget
|
method, // openmediavault widget
|
||||||
mappings, // custom widget
|
mappings, // customapi widget
|
||||||
refreshInterval,
|
refreshInterval,
|
||||||
} = cleanedService.widget;
|
} = cleanedService.widget;
|
||||||
|
|
||||||
@ -374,7 +374,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
if (type === "openmediavault") {
|
if (type === "openmediavault") {
|
||||||
if (method) cleanedService.widget.method = method;
|
if (method) cleanedService.widget.method = method;
|
||||||
}
|
}
|
||||||
if (type === "custom") {
|
if (type === "customapi") {
|
||||||
if (mappings) cleanedService.widget.mappings = mappings;
|
if (mappings) cleanedService.widget.mappings = mappings;
|
||||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ const components = {
|
|||||||
channelsdvrserver: dynamic(() => import("./channelsdvrserver/component")),
|
channelsdvrserver: dynamic(() => import("./channelsdvrserver/component")),
|
||||||
cloudflared: dynamic(() => import("./cloudflared/component")),
|
cloudflared: dynamic(() => import("./cloudflared/component")),
|
||||||
coinmarketcap: dynamic(() => import("./coinmarketcap/component")),
|
coinmarketcap: dynamic(() => import("./coinmarketcap/component")),
|
||||||
custom: dynamic(() => import("./custom/component")),
|
customapi: dynamic(() => import("./customapi/component")),
|
||||||
deluge: dynamic(() => import("./deluge/component")),
|
deluge: dynamic(() => import("./deluge/component")),
|
||||||
diskstation: dynamic(() => import("./diskstation/component")),
|
diskstation: dynamic(() => import("./diskstation/component")),
|
||||||
downloadstation: dynamic(() => import("./downloadstation/component")),
|
downloadstation: dynamic(() => import("./downloadstation/component")),
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import changedetectionio from "./changedetectionio/widget";
|
|||||||
import channelsdvrserver from "./channelsdvrserver/widget";
|
import channelsdvrserver from "./channelsdvrserver/widget";
|
||||||
import cloudflared from "./cloudflared/widget";
|
import cloudflared from "./cloudflared/widget";
|
||||||
import coinmarketcap from "./coinmarketcap/widget";
|
import coinmarketcap from "./coinmarketcap/widget";
|
||||||
import custom from "./custom/widget";
|
import customapi from "./customapi/widget";
|
||||||
import deluge from "./deluge/widget";
|
import deluge from "./deluge/widget";
|
||||||
import diskstation from "./diskstation/widget";
|
import diskstation from "./diskstation/widget";
|
||||||
import downloadstation from "./downloadstation/widget";
|
import downloadstation from "./downloadstation/widget";
|
||||||
@ -108,7 +108,7 @@ const widgets = {
|
|||||||
channelsdvrserver,
|
channelsdvrserver,
|
||||||
cloudflared,
|
cloudflared,
|
||||||
coinmarketcap,
|
coinmarketcap,
|
||||||
custom,
|
customapi,
|
||||||
deluge,
|
deluge,
|
||||||
diskstation,
|
diskstation,
|
||||||
downloadstation,
|
downloadstation,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user