{
    "type": "tabs",
    "i18n": true,
    "items": {
        "mainTab": {
            "type": "panel",
            "label": "Main config",
            "items": {
                "donationHelp": {
                    "type": "staticText",
                    "text": "donation",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "donateButton": {
                    "type": "staticImage",
                    "src": "adapter/wireguard/admin/paypal-donate-button.png",
                    "href": "https://www.paypal.com/donate/?hosted_button_id=SPUDTXGNG2MYG",
                    "style": {
                        "maxWidth": 194
                    }
                },
                "installationHint1": {
                    "type": "staticText",
                    "text": "Installation_hint_1",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint2": {
                    "type": "staticText",
                    "text": "Installation_hint_2",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint3": {
                    "type": "staticText",
                    "text": "Installation_hint_3",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint4": {
                    "type": "staticLink",
                    "text": "Installation_hint_4",
                    "href": "https://github.com/Grizzelbee/ioBroker.wireguard#security-hints",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint5": {
                    "type": "staticText",
                    "text": "Installation_hint_5",
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint6": {
                    "type": "staticText",
                    "text": "Installation_hint_6",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "hosts": {
                    "type": "table",
                    "label": "WireGuard hosts",
                    "items": [
                        {
                            "type": "text",
                            "attr": "name",
                            "width": "16%",
                            "title": {
                                "en": "name",
                                "de": "Name",
                                "ru": "имя",
                                "pt": "nome",
                                "nl": "naam",
                                "fr": "Nom",
                                "it": "nome",
                                "es": "nombre",
                                "pl": "Nazwa",
                                "zh-cn": "姓名"
                            },
                            "filter": true,
                            "sort": true,
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "hostaddress",
                            "width": "14%",
                            "title": {
                                "en": "Host",
                                "de": "Gastgeber",
                                "ru": "Хозяин",
                                "pt": "Hospedeiro",
                                "nl": "Gastheer",
                                "fr": "Héberger",
                                "it": "Ospite",
                                "es": "Anfitrión",
                                "pl": "Gospodarz",
                                "zh-cn": "主持人"
                            },
                            "tooltip": {
                                "en": "May be an IP, DNS-Hostname or FQDN.",
                                "de": "Kann eine IP, ein DNS-Hostname oder ein FQDN sein.",
                                "ru": "Может быть IP, DNS-имя хоста или полное доменное имя.",
                                "pt": "Pode ser um IP, DNS-Hostname ou FQDN.",
                                "nl": "Kan een IP, DNS-hostnaam of FQDN zijn.",
                                "fr": "Peut être une adresse IP, un nom d'hôte DNS ou un FQDN.",
                                "it": "Può essere un IP, un nome host DNS o un FQDN.",
                                "es": "Puede ser una IP, DNS-Hostname o FQDN.",
                                "pl": "Może być adresem IP, nazwą hosta DNS lub nazwą FQDN.",
                                "zh-cn": "可以是 IP、DNS 主机名或 FQDN。"
                            }
                        },
                        {
                            "type": "number",
                            "min": 1,
                            "max": 65565,
                            "attr": "port",
                            "title": {
                                "en": "Port",
                                "de": "Port",
                                "ru": "Порт",
                                "pt": "Porta",
                                "nl": "Haven",
                                "fr": "Port",
                                "it": "Porta",
                                "es": "Puerto",
                                "pl": "Port",
                                "zh-cn": "港口"
                            },
                            "tooltip": "The Port your SSH server listens to.",
                            "width": "5%",
                            "default": 22
                        },
                        {
                            "type": "text",
                            "attr": "user",
                            "title": {
                                "en": "User",
                                "de": "Benutzer",
                                "ru": "Пользователь",
                                "pt": "Do utilizador",
                                "nl": "Gebruiker",
                                "fr": "Utilisateur",
                                "it": "Utente",
                                "es": "Usuario",
                                "pl": "Użytkownik",
                                "zh-cn": "用户"
                            },
                            "tooltip": "Name of your WireGuard monitoring user.",
                            "width": "20%",
                            "encrypted": true
                        },
                        {
                            "type": "password",
                            "attr": "password",
                            "title": {
                                "en": "Password",
                                "de": "Passwort",
                                "ru": "Пароль",
                                "pt": "Senha",
                                "nl": "Wachtwoord",
                                "fr": "Mot de passe",
                                "it": "Parola d'ordine",
                                "es": "Clave",
                                "pl": "Hasło",
                                "zh-cn": "密码"
                            },
                            "width": "10%"
                        },
                        {
                            "type": "checkbox",
                            "attr": "sudo",
                            "title": {
                                "en": "sudo",
                                "de": "sudo",
                                "ru": "судо",
                                "pt": "sudo",
                                "nl": "sudo",
                                "fr": "sudo",
                                "it": "sudo",
                                "es": "sudo",
                                "pl": "sudo",
                                "zh-cn": "须藤"
                            },
                            "tooltip": "Check if you like to use sudo commands.",
                            "width": "3%"
                        },
                        {
                            "type": "checkbox",
                            "attr": "docker",
                            "title": {
                                "en": "Docker",
                                "de": "Docker",
                                "ru": "Докер",
                                "pt": "Janela de encaixe",
                                "nl": "Docker",
                                "fr": "Docker",
                                "it": "Docker",
                                "es": "Estibador",
                                "pl": "Doker",
                                "zh-cn": "码头工人"
                            },
                            "tooltip": "Check if you use WireGuard in Docker containers.",
                            "width": "3%"
                        },
                        {
                            "type": "number",
                            "min": 1,
                            "max": 65565,
                            "attr": "pollInterval",
                            "title": {
                                "en": "Poll interval",
                                "de": "Abfrageintervall",
                                "ru": "Интервал опроса",
                                "pt": "Intervalo de sondagem",
                                "nl": "Poll-interval",
                                "fr": "Intervalle de sondage",
                                "it": "Intervallo di sondaggio",
                                "es": "Intervalo de encuesta",
                                "pl": "Interwał sondowania",
                                "zh-cn": "轮询间隔"
                            },
                            "tooltip": "Pollinterval - in Seconds.",
                            "width": "4%"
                        },
                        {
                            "type": "text",
                            "attr": "containerName",
                            "title": {
                                "en": "Container",
                                "de": "Container",
                                "ru": "Контейнер",
                                "pt": "Recipiente",
                                "nl": "container",
                                "fr": "Récipient",
                                "it": "Contenitore",
                                "es": "Envase",
                                "pl": "Pojemnik",
                                "zh-cn": "容器"
                            },
                            "tooltip": "Name of your WireGuard Docker container.",
                            "width": "10%"
                        }
                    ]
                }
            }
        },
        "names": {
            "type": "panel",
            "label": "Public key to username translations",
            "items": {
                "installationHint7": {
                    "type": "staticText",
                    "text": "Please add all public key to name translations here. This will make it more convenient for you to identify the peers in the object tree.",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "names": {
                    "type": "table",
                    "items": [
                        {
                            "type": "text",
                            "attr": "user",
                            "width": "20%",
                            "title": {
                                "en": "User"
                            },
                            "filter": true,
                            "sort": true,
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "device",
                            "width": "20%",
                            "title": {
                                "en": "Device"
                            },
                            "filter": true,
                            "sort": true,
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "groupname",
                            "width": "20%",
                            "title": {
                                "en": "name",
                                "de": "Name",
                                "ru": "имя",
                                "pt": "nome",
                                "nl": "naam",
                                "fr": "Nom",
                                "it": "nome",
                                "es": "nombre",
                                "pl": "Nazwa",
                                "zh-cn": "姓名"
                            },
                            "filter": true,
                            "sort": true,
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "pubKey",
                            "width": "40%",
                            "title": {
                                "en": "Public Key",
                                "de": "Öffentlicher Schlüssel",
                                "ru": "Открытый ключ",
                                "pt": "Chave pública",
                                "nl": "Publieke sleutel",
                                "fr": "Clé publique",
                                "it": "Chiave pubblica",
                                "es": "Llave pública",
                                "pl": "Klucz publiczny",
                                "zh-cn": "公钥"
                            },
                            "filter": true,
                            "sort": true,
                            "default": ""
                        }
                    ]
                }
            }
        },
        "configFiles": {
            "type": "panel",
            "label": "WireGuard Config files",
            "items": {
                "installationHint8": {
                    "type": "staticText",
                    "text": "You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "installationHint9": {
                    "type": "staticText",
                    "text": "Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf",
                    "xs": 12,
                    "sm": 12,
                    "md": 6,
                    "lg": 4,
                    "xl": 4
                },
                "configFiles": {
                    "type": "table",
                    "items": [
                        {
                            "type": "text",
                            "attr": "hostName",
                            "width": "33%",
                            "title": {
                                "en": "name",
                                "de": "Name",
                                "ru": "имя",
                                "pt": "nome",
                                "nl": "naam",
                                "fr": "Nom",
                                "it": "nome",
                                "es": "nombre",
                                "pl": "Nazwa",
                                "zh-cn": "姓名"
                            },
                            "filter": true,
                            "sort": true,
                            "tooltip": "Name of the referenced host - must be the same as NAME on main config page!",
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "iFace",
                            "width": "33%",
                            "title": {
                                "en": "Interface name",
                                "de": "Schnittstellenname",
                                "ru": "Имя интерфейса",
                                "pt": "Nome da interface",
                                "nl": "Interfacenaam",
                                "fr": "Nom de l'interface",
                                "it": "Nome interfaccia",
                                "es": "Nombre de la interfaz",
                                "pl": "Nazwa interfejsu",
                                "zh-cn": "接口名称"
                            },
                            "tooltip": "Name of your WireGuard interface. e.g. wg0",
                            "sort": true,
                            "default": ""
                        },
                        {
                            "type": "text",
                            "attr": "configFile",
                            "width": "33%",
                            "title": {
                                "en": "Config file",
                                "de": "Konfigurationsdatei",
                                "ru": "Файл конфигурации",
                                "pt": "Arquivo de configuração",
                                "nl": "Configuratiebestand",
                                "fr": "Fichier de configuration",
                                "it": "File di configurazione",
                                "es": "Archivo de configuración",
                                "pl": "Plik konfiguracyjny",
                                "zh-cn": "配置文件"
                            },
                            "tooltip": "Fully qualified path of the config file for this interface. Often: /etc/wireguard/wg0.conf",
                            "default": ""
                        }
                    ]
                }
            }
        }
    }
}
