mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00: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:
parent
d20cdbb9ab
commit
86740c6d7b
10 changed files with 280 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue