mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Make styling more consistent and add toggle to opt-in instead of opting out
This commit is contained in:
parent
0eab4e7943
commit
5b3d1cc6e0
7 changed files with 92 additions and 70 deletions
|
@ -168,7 +168,7 @@ export async function servicesFromKubernetes() {
|
|||
.filter((ingress) => ingress.metadata.annotations && ingress.metadata.annotations[`${ANNOTATION_BASE}/href`])
|
||||
ingressList.items.push(...traefikServices);
|
||||
}
|
||||
|
||||
|
||||
if (!ingressList) {
|
||||
return [];
|
||||
}
|
||||
|
@ -276,7 +276,8 @@ export function cleanServiceGroups(groups) {
|
|||
wan, // opnsense widget, pfsense widget
|
||||
enableBlocks, // emby/jellyfin
|
||||
enableNowPlaying,
|
||||
volume, // diskstation widget
|
||||
volume, // diskstation widget,
|
||||
enableQueue, // sonarr/radarr
|
||||
} = cleanedService.widget;
|
||||
|
||||
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
|
||||
|
@ -312,6 +313,9 @@ export function cleanServiceGroups(groups) {
|
|||
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
|
||||
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
|
||||
}
|
||||
if (["sonarr", "radarr"].includes(type)) {
|
||||
if (enableQueue !== undefined) cleanedService.widget.enableQueue = JSON.parse(enableQueue);
|
||||
}
|
||||
if (["diskstation", "qnap"].includes(type)) {
|
||||
if (volume) cleanedService.widget.volume = volume;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue