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:
Dan Geraghtyandshamoon authored and GitHub committed 2024-01-29 12:33:31 -08:00
1 parent d20cdbb9ab
commit 86740c6d7b
10 files changed
+280

No files matched your search

+6
View File
@@ -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;