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 Geraghty 2024-01-29 20:33:31 +00:00 committed by GitHub
parent d20cdbb9ab
commit 86740c6d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 280 additions and 0 deletions

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;