feat: dnshole controls widget (#867)

* feat: dnshole controls widget

* feat: add duration and timer modal

* fix: code improvment

* fix: add support for many integrations

* fix: add support for more integrations

* fix: move ControlsCard outside of main component

* fix: deepsource
This commit is contained in:
Yossi Hillali
2024-08-04 18:47:00 +03:00
committed by GitHub
parent 9013d5dbf0
commit 65c6854e44
14 changed files with 501 additions and 29 deletions

View File

@@ -558,7 +558,7 @@ export default {
},
multiText: {
placeholder: "Add more values",
addLabel: `Add {value}`,
addLabel: "Add {value}",
},
select: {
placeholder: "Pick value",
@@ -763,6 +763,43 @@ export default {
domainsBeingBlocked: "Domains on blocklist",
},
},
dnsHoleControls: {
name: "DNS Hole Controls",
description: "Control PiHole or AdGuard from your dashboard",
option: {
layout: {
label: "Layout",
option: {
row: {
label: "Horizontal",
},
column: {
label: "Vertical",
},
grid: {
label: "Grid",
},
},
},
showToggleAllButtons: {
label: "Show Toggle All Buttons",
},
},
error: {
internalServerError: "Failed to control DNS Hole",
},
controls: {
enableAll: "Enable All",
disableAll: "Disable All",
setTimer: "Set Timer",
set: "Set",
enabled: "Enabled",
disabled: "Disabled",
hours: "Hours",
minutes: "Minutes",
unlimited: "Leave blank to unlimited",
},
},
clock: {
name: "Date and time",
description: "Displays the current date and time.",