mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Feature: OpenWRT service widget (#2782)
* Feat: OpenWRT widget implementation * Update proxy.js * fixes from review --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -429,6 +429,9 @@ export function cleanServiceGroups(groups) {
|
||||
// openmediavault
|
||||
method,
|
||||
|
||||
// openwrt
|
||||
interfaceName,
|
||||
|
||||
// opnsense, pfsense
|
||||
wan,
|
||||
|
||||
@@ -531,6 +534,9 @@ export function cleanServiceGroups(groups) {
|
||||
if (type === "openmediavault") {
|
||||
if (method) cleanedService.widget.method = method;
|
||||
}
|
||||
if (type === "openwrt") {
|
||||
if (interfaceName) cleanedService.widget.interfaceName = interfaceName;
|
||||
}
|
||||
if (type === "customapi") {
|
||||
if (mappings) cleanedService.widget.mappings = mappings;
|
||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||
|
||||
Reference in New Issue
Block a user