diff --git a/.gitignore b/.gitignore
index 7ab221f9..5649354a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,8 @@ next-env.d.ts
# homepage
/config
+
+# IDEs
+/.idea/
+
+
diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json
index 021e70bd..c1610adc 100644
--- a/public/locales/ar/common.json
+++ b/public/locales/ar/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "leech": "Leech",
- "seed": "Seed",
- "download": "Download",
- "upload": "Upload"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json
index 051cdc8b..5a01d758 100644
--- a/public/locales/bg/common.json
+++ b/public/locales/bg/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "seed": "Seed",
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech"
- },
"flood": {
"leech": "Leech",
"seed": "Seed",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json
index 0e1f6b46..eee5828c 100644
--- a/public/locales/ca/common.json
+++ b/public/locales/ca/common.json
@@ -350,12 +350,6 @@
"upload": "Pujada",
"leech": "Company"
},
- "diskstation": {
- "download": "Descàrrega",
- "upload": "Pujada",
- "leech": "Company",
- "seed": "Llavor"
- },
"flood": {
"download": "Descarregar",
"upload": "Pujada",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json
index 0e172cba..9487646d 100644
--- a/public/locales/cs/common.json
+++ b/public/locales/cs/common.json
@@ -350,12 +350,6 @@
"seed": "Seed",
"download": "Download"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/da/common.json b/public/locales/da/common.json
index a5d12ce3..72e366b2 100644
--- a/public/locales/da/common.json
+++ b/public/locales/da/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"leech": "Leech",
"download": "Download",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/de/common.json b/public/locales/de/common.json
index 6e6cf025..b0a67d8e 100644
--- a/public/locales/de/common.json
+++ b/public/locales/de/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index f70792a7..8436d28b 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -133,7 +133,7 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
+ "downloadstation": {
"download": "Download",
"upload": "Upload",
"leech": "Leech",
@@ -396,6 +396,12 @@
"wait": "Please Wait",
"no_devices": "No Device Data Received"
},
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
+ },
"xteve": {
"streams_all": "All Streams",
"streams_active": "Active Streams",
diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json
index 3a982a6b..e0b1e3d8 100644
--- a/public/locales/eo/common.json
+++ b/public/locales/eo/common.json
@@ -350,12 +350,6 @@
"inbox": "Inbox",
"total": "Totalo"
},
- "diskstation": {
- "download": "Download",
- "leech": "Leech",
- "upload": "Upload",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index d5c35c1f..539e173c 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Semilla"
},
- "diskstation": {
- "download": "Descargar",
- "upload": "Cargar",
- "leech": "Leech",
- "seed": "Semilla"
- },
"flood": {
"download": "Descargar",
"upload": "Subir",
@@ -381,10 +375,22 @@
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
},
"omada": {
- "connectedAp": "Connected APs",
- "activeUser": "Active devices",
- "alerts": "Alerts",
- "connectedGateway": "Connected gateways",
- "connectedSwitches": "Connected switches"
+ "connectedAp": "AP conectados",
+ "activeUser": "Dispositivos activos",
+ "alerts": "Alertas",
+ "connectedGateway": "Pasarelas conectadas",
+ "connectedSwitches": "Interruptores conectados"
+ },
+ "downloadstation": {
+ "download": "Descargar",
+ "upload": "Subir",
+ "leech": "Sanguijuela",
+ "seed": "Semilla"
+ },
+ "mikrotik": {
+ "cpuLoad": "Carga de la CPU",
+ "memoryUsed": "Memoria utilizada",
+ "uptime": "Tiempo en funcionamiento",
+ "numberOfLeases": "Alquileres"
}
}
diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json
index 79ac054e..f52627d6 100644
--- a/public/locales/fi/common.json
+++ b/public/locales/fi/common.json
@@ -350,12 +350,6 @@
"seed": "Seed",
"download": "Download"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedSwitches": "Connected switches",
"connectedGateway": "Connected gateways"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json
index 37c888ee..e34fd67b 100644
--- a/public/locales/fr/common.json
+++ b/public/locales/fr/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Réception",
- "upload": "Envoi",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Récep.",
"upload": "Envoi",
@@ -381,10 +375,22 @@
"bibyterate": "{{value, rate(bits: false; binary: true)}}"
},
"omada": {
- "connectedAp": "Connected APs",
- "activeUser": "Active devices",
- "alerts": "Alerts",
- "connectedGateway": "Connected gateways",
- "connectedSwitches": "Connected switches"
+ "connectedAp": "APs connectées",
+ "activeUser": "Équipts actifs",
+ "alerts": "Alertes",
+ "connectedGateway": "Passerelles connectées",
+ "connectedSwitches": "Switches connectés"
+ },
+ "downloadstation": {
+ "download": "Récep.",
+ "upload": "Envoi",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "Charge CPU",
+ "memoryUsed": "Mém. Utilisée",
+ "uptime": "Disponibilité",
+ "numberOfLeases": "Baux"
}
}
diff --git a/public/locales/he/common.json b/public/locales/he/common.json
index 8acd1f91..a0bd66f9 100644
--- a/public/locales/he/common.json
+++ b/public/locales/he/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "upload": "Upload",
- "leech": "Leech",
- "download": "Download",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json
index 6e00b9fc..e2a7dcca 100644
--- a/public/locales/hi/common.json
+++ b/public/locales/hi/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json
index 9e182adb..828f8ed1 100644
--- a/public/locales/hr/common.json
+++ b/public/locales/hr/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Preuzimanje",
- "upload": "Prijenos",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Preuzimanje",
"upload": "Prijenos",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/hu/common.json b/public/locales/hu/common.json
index 2654cd0c..8eb18b02 100644
--- a/public/locales/hu/common.json
+++ b/public/locales/hu/common.json
@@ -350,12 +350,6 @@
"upload": "Upload",
"leech": "Leech"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"connectedAp": "Connected APs",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/it/common.json b/public/locales/it/common.json
index 3379bebb..6bf614b1 100644
--- a/public/locales/it/common.json
+++ b/public/locales/it/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -381,10 +375,22 @@
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
},
"omada": {
- "connectedAp": "Connected APs",
- "activeUser": "Active devices",
- "alerts": "Alerts",
- "connectedGateway": "Connected gateways",
- "connectedSwitches": "Connected switches"
+ "connectedAp": "AP Connessi",
+ "activeUser": "Dispositivi attivi",
+ "alerts": "Allarmi",
+ "connectedGateway": "Gateway connessi",
+ "connectedSwitches": "Switch connessi"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "Carico della CPU",
+ "memoryUsed": "Memoria Utilizzata",
+ "uptime": "Tempo di attività",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json
index d667fd32..0da9b6d3 100644
--- a/public/locales/ms/common.json
+++ b/public/locales/ms/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "upload": "Upload",
- "download": "Download",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json
index c81aac82..069bb58a 100644
--- a/public/locales/nb-NO/common.json
+++ b/public/locales/nb-NO/common.json
@@ -350,12 +350,6 @@
"upload": "Upload",
"seed": "Seed"
},
- "diskstation": {
- "leech": "Leech",
- "download": "Download",
- "upload": "Upload",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases",
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used"
}
}
diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json
index 2fba03fa..39d9854f 100644
--- a/public/locales/nl/common.json
+++ b/public/locales/nl/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json
index d9dd34a6..209db63a 100644
--- a/public/locales/pl/common.json
+++ b/public/locales/pl/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Pobieranie",
- "upload": "Wysyłanie",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Pobieranie",
"upload": "Wysyłanie",
@@ -363,28 +357,40 @@
"seed": "Seed"
},
"tdarr": {
- "queue": "Queue",
- "processed": "Processed",
- "errored": "Errored",
- "saved": "Saved"
+ "queue": "Kolejka",
+ "processed": "Przetworzone",
+ "errored": "Błędne",
+ "saved": "Zapisane"
},
"miniflux": {
- "read": "Read",
- "unread": "Unread"
+ "read": "Przeczytane",
+ "unread": "Nieprzeczytane"
},
"nextdns": {
- "wait": "Please Wait",
- "no_devices": "No Device Data Received"
+ "wait": "Proszę czekać",
+ "no_devices": "Nie otrzymano danych urządzenia"
},
"common": {
"bibyterate": "{{value, rate(bits: false; binary: true)}}",
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
},
"omada": {
- "connectedSwitches": "Connected switches",
- "connectedAp": "Connected APs",
- "activeUser": "Active devices",
- "alerts": "Alerts",
- "connectedGateway": "Connected gateways"
+ "connectedSwitches": "Połączone przełączniki",
+ "connectedAp": "Połączone punkty dostępowe",
+ "activeUser": "Aktywne urządzenia",
+ "alerts": "Alarmy",
+ "connectedGateway": "Połączone bramy"
+ },
+ "downloadstation": {
+ "download": "Pobieranie",
+ "upload": "Wysyłanie",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "Obciążenie procesora",
+ "memoryUsed": "Zuyżyta pamięć",
+ "uptime": "Czas działania",
+ "numberOfLeases": "Dzierżawy"
}
}
diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json
index ec062c3e..0ce1cc1d 100644
--- a/public/locales/pt-BR/common.json
+++ b/public/locales/pt-BR/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json
index ee78fc0c..6b41a411 100644
--- a/public/locales/pt/common.json
+++ b/public/locales/pt/common.json
@@ -363,12 +363,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Descarregar",
"upload": "Carregar",
@@ -395,5 +389,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json
index 007b3331..5328837f 100644
--- a/public/locales/ro/common.json
+++ b/public/locales/ro/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "numberOfLeases": "Leases",
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime"
}
}
diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json
index 7e265c07..7b0d512d 100644
--- a/public/locales/ru/common.json
+++ b/public/locales/ru/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "seed": "Seed",
- "leech": "Leech"
- },
"flood": {
"upload": "Upload",
"download": "Download",
@@ -386,5 +380,17 @@
"activeUser": "Active devices",
"alerts": "Alerts",
"connectedGateway": "Connected gateways"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json
index b39ec6c7..230033c3 100644
--- a/public/locales/sr/common.json
+++ b/public/locales/sr/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"seed": "Seed",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json
index 98b477bc..55411e9d 100644
--- a/public/locales/sv/common.json
+++ b/public/locales/sv/common.json
@@ -350,12 +350,6 @@
"upload": "Upload",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/te/common.json b/public/locales/te/common.json
index 0ba47a56..b988642d 100644
--- a/public/locales/te/common.json
+++ b/public/locales/te/common.json
@@ -350,12 +350,6 @@
"upload": "Upload",
"leech": "Leech"
},
- "diskstation": {
- "leech": "Leech",
- "download": "Download",
- "upload": "Upload",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases",
+ "memoryUsed": "Memory Used"
}
}
diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json
index b7e18d3a..08a9992e 100644
--- a/public/locales/tr/common.json
+++ b/public/locales/tr/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json
new file mode 100644
index 00000000..a09497f1
--- /dev/null
+++ b/public/locales/uk/common.json
@@ -0,0 +1,396 @@
+{
+ "common": {
+ "bibyterate": "{{value, rate(bits: false; binary: true)}}",
+ "bibitrate": "{{value, rate(bits: true; binary: true)}}"
+ },
+ "omada": {
+ "alerts": "Alerts",
+ "connectedGateway": "Connected gateways",
+ "connectedSwitches": "Connected switches",
+ "connectedAp": "Connected APs",
+ "activeUser": "Active devices"
+ },
+ "sabnzbd": {
+ "rate": "Rate",
+ "queue": "Queue",
+ "timeleft": "Time Left"
+ },
+ "rutorrent": {
+ "active": "Active",
+ "upload": "Upload",
+ "download": "Download"
+ },
+ "deluge": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "readarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "books": "Books"
+ },
+ "wmo": {
+ "55-day": "Heavy Drizzle",
+ "55-night": "Heavy Drizzle",
+ "56-day": "Light Freezing Drizzle",
+ "56-night": "Light Freezing Drizzle",
+ "0-day": "Sunny",
+ "0-night": "Clear",
+ "1-day": "Mainly Sunny",
+ "1-night": "Mainly Clear",
+ "2-day": "Partly Cloudy",
+ "2-night": "Partly Cloudy",
+ "3-day": "Cloudy",
+ "3-night": "Cloudy",
+ "53-day": "Drizzle",
+ "45-day": "Foggy",
+ "45-night": "Foggy",
+ "48-day": "Foggy",
+ "48-night": "Foggy",
+ "51-day": "Light Drizzle",
+ "51-night": "Light Drizzle",
+ "53-night": "Drizzle",
+ "57-day": "Freezing Drizzle",
+ "57-night": "Freezing Drizzle",
+ "61-day": "Light Rain",
+ "61-night": "Light Rain",
+ "63-day": "Rain",
+ "63-night": "Rain",
+ "65-day": "Heavy Rain",
+ "65-night": "Heavy Rain",
+ "66-day": "Freezing Rain",
+ "66-night": "Freezing Rain",
+ "67-day": "Freezing Rain",
+ "67-night": "Freezing Rain",
+ "71-day": "Light Snow",
+ "71-night": "Light Snow",
+ "73-day": "Snow",
+ "73-night": "Snow",
+ "75-day": "Heavy Snow",
+ "75-night": "Heavy Snow",
+ "77-day": "Snow Grains",
+ "77-night": "Snow Grains",
+ "80-day": "Light Showers",
+ "80-night": "Light Showers",
+ "81-day": "Showers",
+ "82-day": "Heavy Showers",
+ "82-night": "Heavy Showers",
+ "81-night": "Showers",
+ "85-day": "Snow Showers",
+ "85-night": "Snow Showers",
+ "86-day": "Snow Showers",
+ "86-night": "Snow Showers",
+ "95-day": "Thunderstorm",
+ "95-night": "Thunderstorm",
+ "96-day": "Thunderstorm With Hail",
+ "96-night": "Thunderstorm With Hail",
+ "99-day": "Thunderstorm With Hail",
+ "99-night": "Thunderstorm With Hail"
+ },
+ "pyload": {
+ "speed": "Speed",
+ "active": "Active",
+ "queue": "Queue",
+ "total": "Total"
+ },
+ "gluetun": {
+ "country": "Country",
+ "public_ip": "Public IP",
+ "region": "Region"
+ },
+ "hdhomerun": {
+ "channels": "Channels",
+ "hd": "HD"
+ },
+ "widget": {
+ "missing_type": "Missing Widget Type: {{type}}",
+ "api_error": "API Error",
+ "information": "Information",
+ "status": "Status",
+ "url": "URL",
+ "raw_error": "Raw Error",
+ "response_data": "Response Data"
+ },
+ "weather": {
+ "current": "Current Location",
+ "allow": "Click to allow",
+ "updating": "Updating",
+ "wait": "Please wait"
+ },
+ "search": {
+ "placeholder": "Search…"
+ },
+ "resources": {
+ "cpu": "CPU",
+ "total": "Total",
+ "free": "Free",
+ "used": "Used",
+ "load": "Load"
+ },
+ "unifi": {
+ "users": "Users",
+ "uptime": "System Uptime",
+ "days": "Days",
+ "wan": "WAN",
+ "lan": "LAN",
+ "wlan": "WLAN",
+ "devices": "Devices",
+ "lan_devices": "LAN Devices",
+ "wlan_devices": "WLAN Devices",
+ "lan_users": "LAN Users",
+ "wlan_users": "WLAN Users",
+ "up": "UP",
+ "down": "DOWN",
+ "wait": "Please wait"
+ },
+ "docker": {
+ "rx": "RX",
+ "tx": "TX",
+ "mem": "MEM",
+ "cpu": "CPU",
+ "offline": "Offline",
+ "error": "Error",
+ "unknown": "Unknown"
+ },
+ "ping": {
+ "error": "Error",
+ "ping": "Ping"
+ },
+ "emby": {
+ "playing": "Playing",
+ "transcoding": "Transcoding",
+ "bitrate": "Bitrate",
+ "no_active": "No Active Streams"
+ },
+ "flood": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "changedetectionio": {
+ "totalObserved": "Total Observed",
+ "diffsDetected": "Diffs Detected"
+ },
+ "tautulli": {
+ "playing": "Playing",
+ "transcoding": "Transcoding",
+ "bitrate": "Bitrate",
+ "no_active": "No Active Streams"
+ },
+ "nzbget": {
+ "rate": "Rate",
+ "downloaded": "Downloaded",
+ "remaining": "Remaining"
+ },
+ "plex": {
+ "streams": "Active Streams",
+ "movies": "Movies",
+ "tv": "TV Shows"
+ },
+ "transmission": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "qbittorrent": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "sonarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "series": "Series"
+ },
+ "radarr": {
+ "wanted": "Wanted",
+ "missing": "Missing",
+ "queued": "Queued",
+ "movies": "Movies"
+ },
+ "lidarr": {
+ "wanted": "Wanted",
+ "queued": "Queued",
+ "albums": "Albums"
+ },
+ "traefik": {
+ "middleware": "Middleware",
+ "routers": "Routers",
+ "services": "Services"
+ },
+ "navidrome": {
+ "nothing_streaming": "No Active Streams",
+ "please_wait": "Please Wait"
+ },
+ "bazarr": {
+ "missingEpisodes": "Missing Episodes",
+ "missingMovies": "Missing Movies"
+ },
+ "ombi": {
+ "pending": "Pending",
+ "approved": "Approved",
+ "available": "Available"
+ },
+ "jellyseerr": {
+ "pending": "Pending",
+ "approved": "Approved",
+ "available": "Available"
+ },
+ "overseerr": {
+ "pending": "Pending",
+ "processing": "Processing",
+ "approved": "Approved",
+ "available": "Available"
+ },
+ "pihole": {
+ "queries": "Queries",
+ "blocked": "Blocked",
+ "gravity": "Gravity"
+ },
+ "adguard": {
+ "queries": "Queries",
+ "blocked": "Blocked",
+ "filtered": "Filtered",
+ "latency": "Latency"
+ },
+ "speedtest": {
+ "upload": "Upload",
+ "download": "Download",
+ "ping": "Ping"
+ },
+ "portainer": {
+ "running": "Running",
+ "stopped": "Stopped",
+ "total": "Total"
+ },
+ "tdarr": {
+ "queue": "Queue",
+ "processed": "Processed",
+ "errored": "Errored",
+ "saved": "Saved"
+ },
+ "npm": {
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "total": "Total"
+ },
+ "coinmarketcap": {
+ "configure": "Configure one or more crypto currencies to track",
+ "1hour": "1 Hour",
+ "1day": "1 Day",
+ "7days": "7 Days",
+ "30days": "30 Days"
+ },
+ "mastodon": {
+ "domain_count": "Domains",
+ "user_count": "Users",
+ "status_count": "Posts"
+ },
+ "miniflux": {
+ "read": "Read",
+ "unread": "Unread"
+ },
+ "gotify": {
+ "apps": "Applications",
+ "clients": "Clients",
+ "messages": "Messages"
+ },
+ "prowlarr": {
+ "enableIndexers": "Indexers",
+ "numberOfGrabs": "Grabs",
+ "numberOfQueries": "Queries",
+ "numberOfFailGrabs": "Fail Grabs",
+ "numberOfFailQueries": "Fail Queries"
+ },
+ "jackett": {
+ "configured": "Configured",
+ "errored": "Errored"
+ },
+ "strelaysrv": {
+ "numActiveSessions": "Sessions",
+ "numConnections": "Connections",
+ "dataRelayed": "Relayed",
+ "transferRate": "Rate"
+ },
+ "authentik": {
+ "users": "Users",
+ "loginsLast24H": "Logins (24h)",
+ "failedLoginsLast24H": "Failed Logins (24h)"
+ },
+ "proxmox": {
+ "mem": "MEM",
+ "cpu": "CPU",
+ "vms": "VMs",
+ "lxc": "LXC"
+ },
+ "glances": {
+ "cpu": "CPU",
+ "mem": "MEM",
+ "wait": "Please wait"
+ },
+ "quicklaunch": {
+ "bookmark": "Bookmark",
+ "service": "Service"
+ },
+ "homebridge": {
+ "available_update": "System",
+ "updates": "Updates",
+ "child_bridges_status": "{{ok}}/{{total}}",
+ "update_available": "Update Available",
+ "up_to_date": "Up to Date",
+ "child_bridges": "Child Bridges"
+ },
+ "watchtower": {
+ "containers_scanned": "Scanned",
+ "containers_updated": "Updated",
+ "containers_failed": "Failed"
+ },
+ "autobrr": {
+ "approvedPushes": "Approved",
+ "rejectedPushes": "Rejected",
+ "filters": "Filters",
+ "indexers": "Indexers"
+ },
+ "tubearchivist": {
+ "downloads": "Queue",
+ "videos": "Videos",
+ "channels": "Channels",
+ "playlists": "Playlists"
+ },
+ "truenas": {
+ "load": "System Load",
+ "uptime": "Uptime",
+ "alerts": "Alerts",
+ "time": "{{value, number(style: unit; unitDisplay: long;)}}"
+ },
+ "scrutiny": {
+ "passed": "Passed",
+ "failed": "Failed",
+ "unknown": "Unknown"
+ },
+ "paperlessngx": {
+ "inbox": "Inbox",
+ "total": "Total"
+ },
+ "nextdns": {
+ "wait": "Please Wait",
+ "no_devices": "No Device Data Received"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
+ }
+}
diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json
index db36cef2..eff1581b 100644
--- a/public/locales/vi/common.json
+++ b/public/locales/vi/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases",
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used"
}
}
diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json
index 719aea6b..8791c97f 100644
--- a/public/locales/yue/common.json
+++ b/public/locales/yue/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json
index 6196a4e9..cc05eecf 100644
--- a/public/locales/zh-CN/common.json
+++ b/public/locales/zh-CN/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"leech": "Leech",
"download": "Download",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json
index 97d711cb..a66e55a2 100644
--- a/public/locales/zh-Hant/common.json
+++ b/public/locales/zh-Hant/common.json
@@ -350,12 +350,6 @@
"leech": "Leech",
"seed": "Seed"
},
- "diskstation": {
- "download": "Download",
- "upload": "Upload",
- "leech": "Leech",
- "seed": "Seed"
- },
"flood": {
"download": "Download",
"upload": "Upload",
@@ -386,5 +380,17 @@
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
+ },
+ "downloadstation": {
+ "download": "Download",
+ "upload": "Upload",
+ "leech": "Leech",
+ "seed": "Seed"
+ },
+ "mikrotik": {
+ "cpuLoad": "CPU Load",
+ "memoryUsed": "Memory Used",
+ "uptime": "Uptime",
+ "numberOfLeases": "Leases"
}
}
diff --git a/src/widgets/components.js b/src/widgets/components.js
index e1b11018..4ee443ac 100644
--- a/src/widgets/components.js
+++ b/src/widgets/components.js
@@ -8,7 +8,7 @@ const components = {
changedetectionio: dynamic(() => import("./changedetectionio/component")),
coinmarketcap: dynamic(() => import("./coinmarketcap/component")),
deluge: dynamic(() => import("./deluge/component")),
- diskstation: dynamic(() => import("./diskstation/component")),
+ downloadstation: dynamic(() => import("./downloadstation/component")),
docker: dynamic(() => import("./docker/component")),
emby: dynamic(() => import("./emby/component")),
flood: dynamic(() => import("./flood/component")),
@@ -22,6 +22,7 @@ const components = {
lidarr: dynamic(() => import("./lidarr/component")),
mastodon: dynamic(() => import("./mastodon/component")),
miniflux: dynamic(() => import("./miniflux/component")),
+ mikrotik: dynamic(() => import("./mikrotik/component")),
navidrome: dynamic(() => import("./navidrome/component")),
nextdns: dynamic(() => import("./nextdns/component")),
npm: dynamic(() => import("./npm/component")),
diff --git a/src/widgets/diskstation/component.jsx b/src/widgets/downloadstation/component.jsx
similarity index 64%
rename from src/widgets/diskstation/component.jsx
rename to src/widgets/downloadstation/component.jsx
index 3a87eebc..a91d1891 100644
--- a/src/widgets/diskstation/component.jsx
+++ b/src/widgets/downloadstation/component.jsx
@@ -17,10 +17,10 @@ export default function Component({ service }) {
if (!tasks) {
return (
-
-
-
-
+
+
+
+
);
}
@@ -32,10 +32,10 @@ export default function Component({ service }) {
return (
-
-
-
-
+
+
+
+
);
}
diff --git a/src/widgets/diskstation/proxy.js b/src/widgets/downloadstation/proxy.js
similarity index 92%
rename from src/widgets/diskstation/proxy.js
rename to src/widgets/downloadstation/proxy.js
index af767815..dc76a3cb 100644
--- a/src/widgets/diskstation/proxy.js
+++ b/src/widgets/downloadstation/proxy.js
@@ -4,7 +4,7 @@ import createLogger from "utils/logger";
import widgets from "widgets/widgets";
import getServiceWidget from "utils/config/service-helpers";
-const logger = createLogger("diskstationProxyHandler");
+const logger = createLogger("downloadstationProxyHandler");
const authApi = "{url}/webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account={username}&passwd={password}&session=DownloadStation&format=cookie"
async function login(widget) {
@@ -34,7 +34,7 @@ async function login(widget) {
return [status, contentType, data];
}
-export default async function diskstationProxyHandler(req, res) {
+export default async function downloadstationProxyHandler(req, res) {
const { group, service, endpoint } = req.query;
if (!group || !service) {
@@ -56,7 +56,7 @@ export default async function diskstationProxyHandler(req, res) {
const json = JSON.parse(data.toString());
if (json?.success !== true) {
- logger.debug("Logging in to DiskStation");
+ logger.debug("Logging in to DownloadStation");
[status, contentType, data] = await login(widget);
if (status !== 200) {
return res.status(status).end(data)
diff --git a/src/widgets/diskstation/widget.js b/src/widgets/downloadstation/widget.js
similarity index 71%
rename from src/widgets/diskstation/widget.js
rename to src/widgets/downloadstation/widget.js
index 71187425..38245adf 100644
--- a/src/widgets/diskstation/widget.js
+++ b/src/widgets/downloadstation/widget.js
@@ -1,8 +1,8 @@
-import diskstationProxyHandler from "./proxy";
+import downloadstationProxyHandler from "./proxy";
const widget = {
api: "{url}/webapi/DownloadStation/task.cgi?api=SYNO.DownloadStation.Task&version=1&method={endpoint}",
- proxyHandler: diskstationProxyHandler,
+ proxyHandler: downloadstationProxyHandler,
mappings: {
"list": {
diff --git a/src/widgets/mikrotik/component.jsx b/src/widgets/mikrotik/component.jsx
new file mode 100644
index 00000000..37a8f706
--- /dev/null
+++ b/src/widgets/mikrotik/component.jsx
@@ -0,0 +1,43 @@
+import { useTranslation } from "next-i18next";
+
+import Container from "components/services/widget/container";
+import Block from "components/services/widget/block";
+import useWidgetAPI from "utils/proxy/use-widget-api";
+
+export default function Component({ service }) {
+ const { t } = useTranslation();
+
+ const { widget } = service;
+
+ const { data: statsData, error: statsError } = useWidgetAPI(widget, "system");
+ const { data: leasesData, error: leasesError } = useWidgetAPI(widget, "leases");
+
+ if (statsError || leasesError) {
+ const finalError = statsError ?? leasesError;
+ return ;
+ }
+
+ if (!statsData || !leasesData) {
+ return (
+
+
+
+
+
+
+ );
+ }
+
+ const memoryUsed = 100 - (statsData['free-memory'] / statsData['total-memory'])*100
+
+ const numberOfLeases = leasesData.length
+
+ return (
+
+
+
+
+
+
+ );
+}
diff --git a/src/widgets/mikrotik/widget.js b/src/widgets/mikrotik/widget.js
new file mode 100644
index 00000000..dfb5f626
--- /dev/null
+++ b/src/widgets/mikrotik/widget.js
@@ -0,0 +1,24 @@
+
+import genericProxyHandler from "utils/proxy/handlers/generic";
+
+const widget = {
+ api: "{url}/rest/{endpoint}",
+ proxyHandler: genericProxyHandler,
+
+ mappings: {
+ system: {
+ endpoint: "system/resource",
+ validate: [
+ "cpu-load",
+ "free-memory",
+ "total-memory",
+ "uptime"
+ ]
+ },
+ leases: {
+ endpoint: "ip/dhcp-server/lease",
+ }
+ },
+};
+
+export default widget;
diff --git a/src/widgets/prowlarr/component.jsx b/src/widgets/prowlarr/component.jsx
index b4948a49..c5840e24 100644
--- a/src/widgets/prowlarr/component.jsx
+++ b/src/widgets/prowlarr/component.jsx
@@ -1,7 +1,8 @@
+import { useTranslation } from "react-i18next";
+
import Container from "components/services/widget/container";
import Block from "components/services/widget/block";
import useWidgetAPI from "utils/proxy/use-widget-api";
-import { useTranslation } from "react-i18next";
export default function Component({ service }) {
const { t } = useTranslation();
diff --git a/src/widgets/widgets.js b/src/widgets/widgets.js
index 3ed4b604..0c53b388 100644
--- a/src/widgets/widgets.js
+++ b/src/widgets/widgets.js
@@ -5,7 +5,7 @@ import bazarr from "./bazarr/widget";
import changedetectionio from "./changedetectionio/widget";
import coinmarketcap from "./coinmarketcap/widget";
import deluge from "./deluge/widget";
-import diskstation from "./diskstation/widget";
+import downloadstation from "./downloadstation/widget";
import emby from "./emby/widget";
import flood from "./flood/widget";
import gluetun from "./gluetun/widget";
@@ -17,6 +17,7 @@ import jellyseerr from "./jellyseerr/widget";
import lidarr from "./lidarr/widget";
import mastodon from "./mastodon/widget";
import miniflux from "./miniflux/widget";
+import mikrotik from "./mikrotik/widget";
import navidrome from "./navidrome/widget";
import nextdns from "./nextdns/widget";
import npm from "./npm/widget";
@@ -58,7 +59,8 @@ const widgets = {
changedetectionio,
coinmarketcap,
deluge,
- diskstation,
+ diskstation: downloadstation,
+ downloadstation,
emby,
flood,
gluetun,
@@ -71,6 +73,7 @@ const widgets = {
lidarr,
mastodon,
miniflux,
+ mikrotik,
navidrome,
nextdns,
npm,