mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-12 15:15:58 -07:00
Compare commits
1 Commits
v2.2.0
..
1d9b2f1106
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d9b2f1106 |
@@ -9,9 +9,7 @@ See the [crowdsec docs](https://docs.crowdsec.net/docs/local_api/intro/#machines
|
||||
in most instances you can use the default credentials (`/etc/crowdsec/local_api_credentials.yaml`).
|
||||
|
||||
!!! note
|
||||
|
||||
`alerts` counts alerts raised by your own engine in the last 24 hours. Alerts originating from the
|
||||
CrowdSec community blocklist are excluded.
|
||||
Without the `limit24h` option, the widget will fetch all alerts which is limited to 100 by the API to avoid performance issues.
|
||||
|
||||
Allowed fields: `["alerts", "bans"]`.
|
||||
|
||||
@@ -21,4 +19,5 @@ widget:
|
||||
url: http://crowdsechostorip:port
|
||||
username: localhost # machine_id in crowdsec
|
||||
password: password
|
||||
limit24h: true # optional, limits alerts to last 24h. Default: false
|
||||
```
|
||||
|
||||
+21
-4
@@ -1,13 +1,30 @@
|
||||
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
||||
import prettierConfig from "eslint-config-prettier/flat";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
import { fixupConfigRules } from "@eslint/compat";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import js from "@eslint/js";
|
||||
import prettier from "eslint-plugin-prettier";
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all,
|
||||
});
|
||||
|
||||
export default defineConfig([
|
||||
...nextCoreWebVitals,
|
||||
prettierConfig,
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,jsx}"],
|
||||
|
||||
extends: fixupConfigRules(compat.extends("next/core-web-vitals", "prettier", "plugin:react-hooks/recommended")),
|
||||
|
||||
plugins: {
|
||||
prettier,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
ecmaVersion: 6,
|
||||
sourceType: "module",
|
||||
|
||||
+14
-6
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "2.2.0",
|
||||
"version": "2.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
@@ -23,12 +23,12 @@
|
||||
"gamedig": "^5.3.3",
|
||||
"i18next": "^26.3.6",
|
||||
"ical.js": "^2.2.1",
|
||||
"js-yaml": "^5.4.0",
|
||||
"js-yaml": "^5.3.0",
|
||||
"json-rpc-2.0": "^1.7.1",
|
||||
"luxon": "^3.7.2",
|
||||
"memory-cache": "^0.2.0",
|
||||
"minecraftstatuspinger": "^1.2.2",
|
||||
"next": "^16.3.3",
|
||||
"next": "^16.2.12",
|
||||
"next-auth": "^4.24.15",
|
||||
"next-i18next": "^16.0.8",
|
||||
"ping": "^1.0.0",
|
||||
@@ -36,7 +36,7 @@
|
||||
"raw-body": "^4.0.0",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8",
|
||||
"react-i18next": "^17.0.12",
|
||||
"react-i18next": "^17.0.11",
|
||||
"react-icons": "^5.6.0",
|
||||
"recharts": "^3.1.2",
|
||||
"swr": "^2.5.1",
|
||||
@@ -48,21 +48,29 @@
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^2.1.0",
|
||||
"@eslint/eslintrc": "^3.3.3",
|
||||
"@eslint/js": "^9.39.4",
|
||||
"@tailwindcss/forms": "^0.5.11",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@testing-library/jest-dom": "^7.0.1",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"eslint": "^9.25.1",
|
||||
"eslint-config-next": "^16.3.3",
|
||||
"eslint-config-next": "^15.5.11",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-prettier": "^5.5.6",
|
||||
"eslint-plugin-react": "^7.37.4",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"jsdom": "^30.0.1",
|
||||
"postcss": "^8.5.26",
|
||||
"prettier": "^3.8.4",
|
||||
"prettier-plugin-organize-imports": "^4.3.0",
|
||||
"tailwind-scrollbar": "^4.0.2",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"typescript": "^6.0.3",
|
||||
"typescript": "^5.7.3",
|
||||
"vitest": "^4.1.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
||||
Generated
+382
-302
File diff suppressed because it is too large
Load Diff
+253
-253
@@ -21,7 +21,7 @@
|
||||
"seconds": "s"
|
||||
},
|
||||
"auth": {
|
||||
"signout": "Tanca la sessió"
|
||||
"signout": "Sign out"
|
||||
},
|
||||
"widget": {
|
||||
"missing_type": "Falta el tipus de widget: {{type}}",
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Cerca…",
|
||||
"provider": "Motor de cerca: {{name}}",
|
||||
"select_provider": "Escull motor de cerca"
|
||||
"provider": "Search engine: {{name}}",
|
||||
"select_provider": "Select search engine"
|
||||
},
|
||||
"resources": {
|
||||
"cpu": "CPU",
|
||||
@@ -72,17 +72,17 @@
|
||||
"empty_data": "Estat del subsistema desconegut"
|
||||
},
|
||||
"unifi_drive": {
|
||||
"healthy": "Saludable",
|
||||
"degraded": "Degradat",
|
||||
"no_data": "Sense dades d'emmagatzematge disponible"
|
||||
"healthy": "Healthy",
|
||||
"degraded": "Degraded",
|
||||
"no_data": "No storage data available"
|
||||
},
|
||||
"duplicati": {
|
||||
"jobs": "Tasques",
|
||||
"stored": "Desat",
|
||||
"lastBackup": "Darrera execució",
|
||||
"nextRun": "Propera execució",
|
||||
"running": "En execució",
|
||||
"warnings": "Avisos",
|
||||
"jobs": "Jobs",
|
||||
"stored": "Stored",
|
||||
"lastBackup": "Last Run",
|
||||
"nextRun": "Next Run",
|
||||
"running": "Running",
|
||||
"warnings": "Warnings",
|
||||
"errors": "Errors"
|
||||
},
|
||||
"docker": {
|
||||
@@ -135,7 +135,7 @@
|
||||
"series": "Sèries",
|
||||
"episodes": "Episodis",
|
||||
"songs": "Cançons",
|
||||
"albums": "Àlbums"
|
||||
"albums": "Albums"
|
||||
},
|
||||
"esphome": {
|
||||
"offline": "Desconnectat",
|
||||
@@ -246,10 +246,10 @@
|
||||
"seed": "Sembrat"
|
||||
},
|
||||
"qbittorrent": {
|
||||
"download": "Baixada",
|
||||
"upload": "Pujada",
|
||||
"leech": "Sangonera",
|
||||
"seed": "Sembrat"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"qnap": {
|
||||
"cpuUsage": "Ús de CPU",
|
||||
@@ -260,44 +260,44 @@
|
||||
"invalid": "No vàlid"
|
||||
},
|
||||
"deluge": {
|
||||
"download": "Baixada",
|
||||
"upload": "Pujada",
|
||||
"leech": "Sangonera",
|
||||
"seed": "Sembrat"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"develancacheui": {
|
||||
"cachehitbytes": "Bytes trobats a la memòria cau",
|
||||
"cachemissbytes": "Bytes no trobats a la memòria cau"
|
||||
},
|
||||
"downloadstation": {
|
||||
"download": "Baixada",
|
||||
"upload": "Pujada",
|
||||
"leech": "Sangonera",
|
||||
"seed": "Sembrat"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"sonarr": {
|
||||
"wanted": "Volgut",
|
||||
"queued": "En cua",
|
||||
"series": "Sèries",
|
||||
"queue": "Cua",
|
||||
"unknown": "Desconegut"
|
||||
"series": "Series",
|
||||
"queue": "Queue",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"radarr": {
|
||||
"wanted": "Volguts",
|
||||
"wanted": "Wanted",
|
||||
"missing": "Falten",
|
||||
"queued": "Encuat",
|
||||
"movies": "Pel·lícules",
|
||||
"queue": "Cua",
|
||||
"unknown": "Desconegut"
|
||||
"queued": "Queued",
|
||||
"movies": "Movies",
|
||||
"queue": "Queue",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"lidarr": {
|
||||
"wanted": "Volguts",
|
||||
"queued": "Encuat",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"artists": "Artistes"
|
||||
},
|
||||
"readarr": {
|
||||
"wanted": "Volguts",
|
||||
"queued": "Encuat",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"books": "Llibres"
|
||||
},
|
||||
"bazarr": {
|
||||
@@ -310,16 +310,16 @@
|
||||
"available": "Disponible"
|
||||
},
|
||||
"seerr": {
|
||||
"pending": "Pendent",
|
||||
"approved": "Aprovat",
|
||||
"available": "Disponible",
|
||||
"completed": "Completat",
|
||||
"processing": "Processant",
|
||||
"issues": "Temes oberts"
|
||||
"pending": "Pending",
|
||||
"approved": "Approved",
|
||||
"available": "Available",
|
||||
"completed": "Completed",
|
||||
"processing": "Processing",
|
||||
"issues": "Open Issues"
|
||||
},
|
||||
"netalertx": {
|
||||
"total": "Total",
|
||||
"connected": "Connectat",
|
||||
"connected": "Connected",
|
||||
"new_devices": "Nous dispositius",
|
||||
"down_alerts": "Alertes de caigudes"
|
||||
},
|
||||
@@ -330,18 +330,18 @@
|
||||
"gravity": "Gravetat"
|
||||
},
|
||||
"adguard": {
|
||||
"queries": "Consultes",
|
||||
"blocked": "Bloquejat",
|
||||
"queries": "Queries",
|
||||
"blocked": "Blocked",
|
||||
"filtered": "Filtrat",
|
||||
"latency": "Latència"
|
||||
},
|
||||
"speedtest": {
|
||||
"upload": "Pujada",
|
||||
"download": "Baixada",
|
||||
"ping": "Latència"
|
||||
"upload": "Upload",
|
||||
"download": "Download",
|
||||
"ping": "Ping"
|
||||
},
|
||||
"portainer": {
|
||||
"running": "En execució",
|
||||
"running": "Running",
|
||||
"stopped": "Aturat",
|
||||
"total": "Total"
|
||||
},
|
||||
@@ -359,16 +359,16 @@
|
||||
"address": "Adreça",
|
||||
"expires": "Caduca",
|
||||
"never": "Mai",
|
||||
"user": "Usuari",
|
||||
"hostname": "Nom d'hoste",
|
||||
"name": "Nom",
|
||||
"client_version": "Versió de client",
|
||||
"user": "User",
|
||||
"hostname": "Hostname",
|
||||
"name": "Name",
|
||||
"client_version": "Client Version",
|
||||
"os": "OS",
|
||||
"created": "Creat",
|
||||
"authorized": "Autoritzat",
|
||||
"is_external": "És extern",
|
||||
"update_available": "Actualització disponible",
|
||||
"tags": "Etiquetes",
|
||||
"created": "Created",
|
||||
"authorized": "Authorized",
|
||||
"is_external": "Is External",
|
||||
"update_available": "Update Available",
|
||||
"tags": "Tags",
|
||||
"last_seen": "Vist per darrer cop",
|
||||
"now": "Ara",
|
||||
"years": "{{number}}a",
|
||||
@@ -378,7 +378,7 @@
|
||||
"minutes": "{{number}}m",
|
||||
"seconds": "{{number}}s",
|
||||
"ago": "Fa {{value}}",
|
||||
"true": "Sí",
|
||||
"true": "Yes",
|
||||
"false": "No"
|
||||
},
|
||||
"technitium": {
|
||||
@@ -474,7 +474,7 @@
|
||||
"users": "Usuaris",
|
||||
"loginsLast24H": "Inicis de sessió (24h)",
|
||||
"failedLoginsLast24H": "Errors d'inici de sessió (24h)",
|
||||
"authorizationsLast24H": "Autentificacions (últ. 24h)"
|
||||
"authorizationsLast24H": "Auths (24h)"
|
||||
},
|
||||
"proxmox": {
|
||||
"mem": "MEM",
|
||||
@@ -542,37 +542,37 @@
|
||||
"61-day": "Pluja lleugera",
|
||||
"61-night": "Pluja lleugera",
|
||||
"63-day": "Pluja",
|
||||
"63-night": "Pluja",
|
||||
"63-night": "Rain",
|
||||
"65-day": "Pluja intensa",
|
||||
"65-night": "Pluja forta",
|
||||
"65-night": "Heavy Rain",
|
||||
"66-day": "Pluja gelada",
|
||||
"66-night": "Pluja gelada",
|
||||
"67-day": "Pluja gelada",
|
||||
"67-night": "Pluja gelada",
|
||||
"66-night": "Freezing Rain",
|
||||
"67-day": "Freezing Rain",
|
||||
"67-night": "Freezing Rain",
|
||||
"71-day": "Neu lleugera",
|
||||
"71-night": "Nevada lleugera",
|
||||
"71-night": "Light Snow",
|
||||
"73-day": "Neu",
|
||||
"73-night": "Nevada",
|
||||
"73-night": "Snow",
|
||||
"75-day": "Neu intensa",
|
||||
"75-night": "Nevada forta",
|
||||
"75-night": "Heavy Snow",
|
||||
"77-day": "Neu lleugera",
|
||||
"77-night": "Flocs de neu",
|
||||
"77-night": "Snow Grains",
|
||||
"80-day": "Plovisqueig",
|
||||
"80-night": "Plugims suaus",
|
||||
"80-night": "Light Showers",
|
||||
"81-day": "Xàfecs",
|
||||
"81-night": "Plugims",
|
||||
"81-night": "Showers",
|
||||
"82-day": "Xàfecs intensos",
|
||||
"82-night": "Plugims forts",
|
||||
"82-night": "Heavy Showers",
|
||||
"85-day": "Xàfecs de neu",
|
||||
"85-night": "Plugims amb neu",
|
||||
"86-day": "Plugims amb neu",
|
||||
"86-night": "Plugims amb neu",
|
||||
"85-night": "Snow Showers",
|
||||
"86-day": "Snow Showers",
|
||||
"86-night": "Snow Showers",
|
||||
"95-day": "Tempesta",
|
||||
"95-night": "Tormenta",
|
||||
"95-night": "Thunderstorm",
|
||||
"96-day": "Tempesta amb calamarsa",
|
||||
"96-night": "Tormenta amb calamarsa",
|
||||
"99-day": "Tormenta amb calamarsa",
|
||||
"99-night": "Tormenta amb calamarsa"
|
||||
"96-night": "Thunderstorm With Hail",
|
||||
"99-day": "Thunderstorm With Hail",
|
||||
"99-night": "Thunderstorm With Hail"
|
||||
},
|
||||
"homebridge": {
|
||||
"available_update": "Sistema",
|
||||
@@ -581,18 +581,18 @@
|
||||
"up_to_date": "Actualitzat",
|
||||
"child_bridges": "Ponts fills",
|
||||
"child_bridges_status": "{{ok}}/{{total}}",
|
||||
"up": "En línia",
|
||||
"pending": "Pendent",
|
||||
"down": "Inactiu",
|
||||
"up": "Up",
|
||||
"pending": "Pending",
|
||||
"down": "Down",
|
||||
"ok": "Ok"
|
||||
},
|
||||
"healthchecks": {
|
||||
"new": "Nou",
|
||||
"up": "Actiu",
|
||||
"up": "Up",
|
||||
"grace": "En Període de gràcia",
|
||||
"down": "Inactiu",
|
||||
"down": "Down",
|
||||
"paused": "En pausa",
|
||||
"status": "Estat",
|
||||
"status": "Status",
|
||||
"last_ping": "Últim ping",
|
||||
"never": "Sense pings"
|
||||
},
|
||||
@@ -602,74 +602,74 @@
|
||||
"containers_failed": "Error"
|
||||
},
|
||||
"autobrr": {
|
||||
"approvedPushes": "Aprovat",
|
||||
"approvedPushes": "Approved",
|
||||
"rejectedPushes": "Rebutjat",
|
||||
"filters": "Filtres",
|
||||
"indexers": "Indexadors"
|
||||
"indexers": "Indexers"
|
||||
},
|
||||
"tubearchivist": {
|
||||
"downloads": "Cua",
|
||||
"downloads": "Queue",
|
||||
"videos": "Vídeos",
|
||||
"channels": "Canals",
|
||||
"playlists": "Llistes de reproducció"
|
||||
},
|
||||
"truenas": {
|
||||
"load": "Càrrega del sistema",
|
||||
"uptime": "Temps actiu",
|
||||
"alerts": "Alertes"
|
||||
"uptime": "Uptime",
|
||||
"alerts": "Alerts"
|
||||
},
|
||||
"pyload": {
|
||||
"speed": "Velocitat",
|
||||
"active": "Actiu",
|
||||
"queue": "Cua",
|
||||
"active": "Active",
|
||||
"queue": "Queue",
|
||||
"total": "Total"
|
||||
},
|
||||
"gluetun": {
|
||||
"public_ip": "IP Pública",
|
||||
"region": "Regió",
|
||||
"country": "País",
|
||||
"port_forwarded": "Ports redirigits"
|
||||
"port_forwarded": "Port Forwarded"
|
||||
},
|
||||
"hdhomerun": {
|
||||
"channels": "Canals",
|
||||
"channels": "Channels",
|
||||
"hd": "HD",
|
||||
"tunerCount": "Sintonitzadors",
|
||||
"channelNumber": "Canal",
|
||||
"channelNetwork": "Xarxa",
|
||||
"signalStrength": "Intensitat",
|
||||
"signalQuality": "Qualitat",
|
||||
"symbolQuality": "Qualitat",
|
||||
"networkRate": "Taxa de bits",
|
||||
"symbolQuality": "Quality",
|
||||
"networkRate": "Bitrate",
|
||||
"clientIP": "Client"
|
||||
},
|
||||
"scrutiny": {
|
||||
"passed": "Aprovat",
|
||||
"failed": "Error",
|
||||
"unknown": "Desconegut"
|
||||
"failed": "Failed",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"paperlessngx": {
|
||||
"inbox": "Safata d'entrada",
|
||||
"total": "Total"
|
||||
},
|
||||
"pangolin": {
|
||||
"orgs": "Organitzacions",
|
||||
"sites": "Llocs",
|
||||
"resources": "Recursos",
|
||||
"targets": "Objectius",
|
||||
"traffic": "Tràfic",
|
||||
"in": "Dins",
|
||||
"out": "Fora"
|
||||
"orgs": "Orgs",
|
||||
"sites": "Sites",
|
||||
"resources": "Resources",
|
||||
"targets": "Targets",
|
||||
"traffic": "Traffic",
|
||||
"in": "In",
|
||||
"out": "Out"
|
||||
},
|
||||
"peanut": {
|
||||
"battery_charge": "Càrrega de la bateria",
|
||||
"ups_load": "Càrrega del SAI",
|
||||
"ups_status": "Estat del SAI",
|
||||
"online": "En línia",
|
||||
"online": "Online",
|
||||
"on_battery": "En Bateria",
|
||||
"low_battery": "Bateria Baixa"
|
||||
},
|
||||
"nextdns": {
|
||||
"wait": "Espereu si us plau",
|
||||
"wait": "Please Wait",
|
||||
"no_devices": "No s'han rebut dades del Dispositiu"
|
||||
},
|
||||
"mikrotik": {
|
||||
@@ -857,37 +857,37 @@
|
||||
"jdownloader": {
|
||||
"downloadCount": "Cua",
|
||||
"downloadBytesRemaining": "Restant",
|
||||
"downloadTotalBytes": "Mida",
|
||||
"downloadSpeed": "Velocitat"
|
||||
"downloadTotalBytes": "Size",
|
||||
"downloadSpeed": "Speed"
|
||||
},
|
||||
"kavita": {
|
||||
"seriesCount": "Sèries",
|
||||
"totalFiles": "Fitxers"
|
||||
"seriesCount": "Series",
|
||||
"totalFiles": "Files"
|
||||
},
|
||||
"azuredevops": {
|
||||
"result": "Resultat",
|
||||
"status": "Estat",
|
||||
"status": "Status",
|
||||
"buildId": "Id de compilació",
|
||||
"succeeded": "Amb èxit",
|
||||
"notStarted": "No Iniciat",
|
||||
"failed": "Error",
|
||||
"failed": "Failed",
|
||||
"canceled": "Cancel·lat",
|
||||
"inProgress": "En curs",
|
||||
"totalPrs": "PRs Totals",
|
||||
"myPrs": "Les meves PRs",
|
||||
"approved": "Aprovat"
|
||||
"approved": "Approved"
|
||||
},
|
||||
"gamedig": {
|
||||
"status": "Estat",
|
||||
"online": "En línia",
|
||||
"offline": "Desconnectat",
|
||||
"status": "Status",
|
||||
"online": "Online",
|
||||
"offline": "Offline",
|
||||
"name": "Nom",
|
||||
"map": "Mapa",
|
||||
"currentPlayers": "Jugadors actuals",
|
||||
"players": "Jugadors",
|
||||
"players": "Players",
|
||||
"maxPlayers": "Màxim de jugadors",
|
||||
"bots": "Bots",
|
||||
"ping": "Latència"
|
||||
"ping": "Ping"
|
||||
},
|
||||
"urbackup": {
|
||||
"ok": "Ok",
|
||||
@@ -897,39 +897,39 @@
|
||||
},
|
||||
"mealie": {
|
||||
"recipes": "Receptes",
|
||||
"users": "Usuaris",
|
||||
"users": "Users",
|
||||
"categories": "Categories",
|
||||
"tags": "Etiquetes"
|
||||
},
|
||||
"openmediavault": {
|
||||
"downloading": "Descarregant",
|
||||
"total": "Total",
|
||||
"running": "En execució",
|
||||
"stopped": "Aturat",
|
||||
"passed": "Aprovat",
|
||||
"failed": "Error"
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"passed": "Passed",
|
||||
"failed": "Failed"
|
||||
},
|
||||
"openwrt": {
|
||||
"uptime": "Temps actiu",
|
||||
"uptime": "Uptime",
|
||||
"cpuLoad": "Càrrega mitjana de CPU (5min)",
|
||||
"up": "En línia",
|
||||
"down": "Desconnectat",
|
||||
"up": "Up",
|
||||
"down": "Down",
|
||||
"bytesTx": "Enviat",
|
||||
"bytesRx": "Rebut"
|
||||
"bytesRx": "Received"
|
||||
},
|
||||
"uptimerobot": {
|
||||
"status": "Estat",
|
||||
"uptime": "Temps actiu",
|
||||
"status": "Status",
|
||||
"uptime": "Uptime",
|
||||
"lastDown": "Darrera Inactivitat",
|
||||
"downDuration": "Duració d'Inactivitat",
|
||||
"sitesUp": "Pàgines actives",
|
||||
"sitesDown": "Pàgines inactives",
|
||||
"paused": "Pausat",
|
||||
"sitesUp": "Sites Up",
|
||||
"sitesDown": "Sites Down",
|
||||
"paused": "Paused",
|
||||
"notyetchecked": "Sense verificar",
|
||||
"up": "En línia",
|
||||
"up": "Up",
|
||||
"seemsdown": "Sembla caigut",
|
||||
"down": "Desconnectat",
|
||||
"unknown": "Desconegut"
|
||||
"down": "Down",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"calendar": {
|
||||
"inCinemas": "En cines",
|
||||
@@ -937,7 +937,7 @@
|
||||
"digitalRelease": "Estrena digital",
|
||||
"noEventsToday": "Cap esdeveniment per avui!",
|
||||
"noEventsFound": "No s'han trobat esdeveniments",
|
||||
"errorWhenLoadingData": "Error carregant dades del calendari"
|
||||
"errorWhenLoadingData": "Error when loading calendar data"
|
||||
},
|
||||
"romm": {
|
||||
"platforms": "Plataformes",
|
||||
@@ -948,50 +948,50 @@
|
||||
"totalfilesize": "Tamany total"
|
||||
},
|
||||
"mailcow": {
|
||||
"domains": "Dominis",
|
||||
"domains": "Domains",
|
||||
"mailboxes": "Bústies",
|
||||
"mails": "Correus",
|
||||
"storage": "Emmagatzematge"
|
||||
"storage": "Storage"
|
||||
},
|
||||
"maintainerr": {
|
||||
"itemsHandled": "Items gestionats",
|
||||
"episodesHandled": "Episodis gestionats",
|
||||
"moviesHandled": "Pel·lícules gestionades",
|
||||
"showsHandled": "Sèries gestionades",
|
||||
"seasonsHandled": "Temporades gestionades",
|
||||
"reclaimable": "Reclamable",
|
||||
"movieReclaimable": "Pel·lícula reclamable",
|
||||
"showReclaimable": "Sèrie reclamable",
|
||||
"totalCapacity": "Capacitat total"
|
||||
"itemsHandled": "Items Handled",
|
||||
"episodesHandled": "Episodes Handled",
|
||||
"moviesHandled": "Movies Handled",
|
||||
"showsHandled": "Shows Handled",
|
||||
"seasonsHandled": "Seasons Handled",
|
||||
"reclaimable": "Reclaimable",
|
||||
"movieReclaimable": "Movie Reclaimable",
|
||||
"showReclaimable": "Show Reclaimable",
|
||||
"totalCapacity": "Total Capacity"
|
||||
},
|
||||
"netdata": {
|
||||
"warnings": "Avisos",
|
||||
"criticals": "Crítics"
|
||||
},
|
||||
"ntfy": {
|
||||
"title": "Títol",
|
||||
"priority": "Prioritat",
|
||||
"lastReceived": "Rebut per últim cop",
|
||||
"message": "Missatge",
|
||||
"tags": "Etiquetes",
|
||||
"none": "Cap",
|
||||
"title": "Title",
|
||||
"priority": "Priority",
|
||||
"lastReceived": "Last Received",
|
||||
"message": "Message",
|
||||
"tags": "Tags",
|
||||
"none": "None",
|
||||
"min": "Min",
|
||||
"low": "Baix",
|
||||
"default": "Per defecte",
|
||||
"high": "Alt",
|
||||
"low": "Low",
|
||||
"default": "Default",
|
||||
"high": "High",
|
||||
"urgent": "Urgent"
|
||||
},
|
||||
"plantit": {
|
||||
"events": "Esdeveniments",
|
||||
"plants": "Plantes",
|
||||
"photos": "Fotos",
|
||||
"photos": "Photos",
|
||||
"species": "Espècies"
|
||||
},
|
||||
"gitea": {
|
||||
"notifications": "Notificacions",
|
||||
"issues": "Problemes",
|
||||
"issues": "Issues",
|
||||
"pulls": "Sol·licitud de Canvis",
|
||||
"repositories": "Repositoris"
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Escenes",
|
||||
@@ -1005,13 +1005,13 @@
|
||||
"galleries": "Biblioteques",
|
||||
"performers": "Intèrprets",
|
||||
"studios": "Estudis",
|
||||
"movies": "Pel·lícules",
|
||||
"tags": "Etiquetes",
|
||||
"movies": "Movies",
|
||||
"tags": "Tags",
|
||||
"oCount": "O Count"
|
||||
},
|
||||
"tandoor": {
|
||||
"users": "Usuaris",
|
||||
"recipes": "Receptes",
|
||||
"users": "Users",
|
||||
"recipes": "Recipes",
|
||||
"keywords": "Paraules claus"
|
||||
},
|
||||
"homebox": {
|
||||
@@ -1019,17 +1019,17 @@
|
||||
"totalWithWarranty": "Amb Garantia",
|
||||
"locations": "Ubicacions",
|
||||
"labels": "Etiquetes",
|
||||
"users": "Usuaris",
|
||||
"users": "Users",
|
||||
"totalValue": "Valor total"
|
||||
},
|
||||
"crowdsec": {
|
||||
"alerts": "Alertes",
|
||||
"alerts": "Alerts",
|
||||
"bans": "Prohibicions"
|
||||
},
|
||||
"wgeasy": {
|
||||
"connected": "Connectat",
|
||||
"enabled": "Habilitat",
|
||||
"disabled": "Deshabilitat",
|
||||
"connected": "Connected",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"total": "Total"
|
||||
},
|
||||
"swagdashboard": {
|
||||
@@ -1039,9 +1039,9 @@
|
||||
"banned": "Bloquejat"
|
||||
},
|
||||
"myspeed": {
|
||||
"ping": "Latència",
|
||||
"download": "Baixada",
|
||||
"upload": "Pujada"
|
||||
"ping": "Ping",
|
||||
"download": "Download",
|
||||
"upload": "Upload"
|
||||
},
|
||||
"stocks": {
|
||||
"stocks": "Accions",
|
||||
@@ -1138,120 +1138,120 @@
|
||||
"tags": "Etiquetes"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Xarxa",
|
||||
"connected": "Connectat",
|
||||
"disconnected": "Desconnectat",
|
||||
"updateStatus": "Actualitza",
|
||||
"update_yes": "Disponible",
|
||||
"update_no": "Actualitzat",
|
||||
"downloads": "Descàrregues",
|
||||
"uploads": "Pujades",
|
||||
"sharedFiles": "Fitxers"
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
},
|
||||
"jellystat": {
|
||||
"songs": "Cançons",
|
||||
"movies": "Pel·lícules",
|
||||
"episodes": "Episodis",
|
||||
"other": "Altres"
|
||||
"songs": "Songs",
|
||||
"movies": "Movies",
|
||||
"episodes": "Episodes",
|
||||
"other": "Other"
|
||||
},
|
||||
"checkmk": {
|
||||
"serviceErrors": "Errors de servei",
|
||||
"hostErrors": "Problemes de l'hoste"
|
||||
"serviceErrors": "Service issues",
|
||||
"hostErrors": "Host issues"
|
||||
},
|
||||
"komodo": {
|
||||
"total": "Total",
|
||||
"running": "En execució",
|
||||
"stopped": "Aturat",
|
||||
"down": "Fora de servei",
|
||||
"unhealthy": "No saludable",
|
||||
"unknown": "Desconegut",
|
||||
"servers": "Servidors",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"down": "Down",
|
||||
"unhealthy": "Unhealthy",
|
||||
"unknown": "Unknown",
|
||||
"servers": "Servers",
|
||||
"stacks": "Stacks",
|
||||
"containers": "Contenidors"
|
||||
"containers": "Containers"
|
||||
},
|
||||
"filebrowser": {
|
||||
"available": "Disponible",
|
||||
"used": "Utilitzat",
|
||||
"available": "Available",
|
||||
"used": "Used",
|
||||
"total": "Total"
|
||||
},
|
||||
"wallos": {
|
||||
"activeSubscriptions": "Subscripcions",
|
||||
"thisMonthlyCost": "Aquest mes",
|
||||
"nextMonthlyCost": "Mes que ve",
|
||||
"previousMonthlyCost": "Mes passat",
|
||||
"nextRenewingSubscription": "Proper pagament"
|
||||
"activeSubscriptions": "Subscriptions",
|
||||
"thisMonthlyCost": "This Month",
|
||||
"nextMonthlyCost": "Next Month",
|
||||
"previousMonthlyCost": "Prev. Month",
|
||||
"nextRenewingSubscription": "Next Payment"
|
||||
},
|
||||
"unraid": {
|
||||
"STARTED": "Iniciat",
|
||||
"STOPPED": "Aturat",
|
||||
"NEW_ARRAY": "Nou array",
|
||||
"RECON_DISK": "Reconstruint disc",
|
||||
"DISABLE_DISK": "Disc desactivat",
|
||||
"SWAP_DSBL": "Swap desactivat",
|
||||
"INVALID_EXPANSION": "Expansió invàlida",
|
||||
"PARITY_NOT_BIGGEST": "Paritat no del més gran",
|
||||
"TOO_MANY_MISSING_DISKS": "Falten masses discs",
|
||||
"NEW_DISK_TOO_SMALL": "Nou disc massa petit",
|
||||
"NO_DATA_DISKS": "Sense discs de dades",
|
||||
"notifications": "Notificacions",
|
||||
"status": "Estat",
|
||||
"STARTED": "Started",
|
||||
"STOPPED": "Stopped",
|
||||
"NEW_ARRAY": "New Array",
|
||||
"RECON_DISK": "Reconstructing Disk",
|
||||
"DISABLE_DISK": "Disk Disabled",
|
||||
"SWAP_DSBL": "Swap Disable",
|
||||
"INVALID_EXPANSION": "Invalid Expansion",
|
||||
"PARITY_NOT_BIGGEST": "Parity Not Biggest",
|
||||
"TOO_MANY_MISSING_DISKS": "Too Many Missing Disks",
|
||||
"NEW_DISK_TOO_SMALL": "New Disk Too Small",
|
||||
"NO_DATA_DISKS": "No Data Disks",
|
||||
"notifications": "Notifications",
|
||||
"status": "Status",
|
||||
"cpu": "CPU",
|
||||
"memoryUsed": "Memòria emprada",
|
||||
"memoryAvailable": "Memòria disponible",
|
||||
"arrayUsed": "Array en ús",
|
||||
"arrayFree": "Array lliure",
|
||||
"poolUsed": "{{pool}} en ús",
|
||||
"poolFree": "{{pool}} lliure"
|
||||
"memoryUsed": "Memory Used",
|
||||
"memoryAvailable": "Memory Available",
|
||||
"arrayUsed": "Array Used",
|
||||
"arrayFree": "Array Free",
|
||||
"poolUsed": "{{pool}} Used",
|
||||
"poolFree": "{{pool}} Free"
|
||||
},
|
||||
"backrest": {
|
||||
"num_plans": "Plans",
|
||||
"num_success_30": "Èxits",
|
||||
"num_failure_30": "Fallades",
|
||||
"num_success_latest": "Triomfant",
|
||||
"num_failure_latest": "Fallant",
|
||||
"bytes_added_30": "Bytes afegits"
|
||||
"num_success_30": "Successes",
|
||||
"num_failure_30": "Failures",
|
||||
"num_success_latest": "Succeeding",
|
||||
"num_failure_latest": "Failing",
|
||||
"bytes_added_30": "Bytes Added"
|
||||
},
|
||||
"yourspotify": {
|
||||
"songs": "Cançons",
|
||||
"time": "Temps",
|
||||
"artists": "Artistes"
|
||||
"songs": "Songs",
|
||||
"time": "Time",
|
||||
"artists": "Artists"
|
||||
},
|
||||
"arcane": {
|
||||
"containers": "Contenidors",
|
||||
"images": "Imatges",
|
||||
"image_updates": "Actualitzacions d'imatges",
|
||||
"images_unused": "Sense utilitzar",
|
||||
"environment_required": "ID d'entorn requerit"
|
||||
"containers": "Containers",
|
||||
"images": "Images",
|
||||
"image_updates": "Image Updates",
|
||||
"images_unused": "Unused",
|
||||
"environment_required": "Environment ID Required"
|
||||
},
|
||||
"dockhand": {
|
||||
"running": "En execució",
|
||||
"stopped": "Aturats",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"cpu": "CPU",
|
||||
"memory": "Memòria",
|
||||
"images": "Imatges",
|
||||
"volumes": "Volums",
|
||||
"events_today": "Esdeveniments avui",
|
||||
"pending_updates": "Actualitzacions pendents",
|
||||
"memory": "Memory",
|
||||
"images": "Images",
|
||||
"volumes": "Volumes",
|
||||
"events_today": "Events Today",
|
||||
"pending_updates": "Pending Updates",
|
||||
"stacks": "Stacks",
|
||||
"paused": "Pausats",
|
||||
"paused": "Paused",
|
||||
"total": "Total",
|
||||
"environment_not_found": "Entorn no trobat"
|
||||
"environment_not_found": "Environment Not Found"
|
||||
},
|
||||
"sparkyfitness": {
|
||||
"eaten": "Menjat",
|
||||
"burned": "Cremat",
|
||||
"remaining": "Restant",
|
||||
"steps": "Passes"
|
||||
"eaten": "Eaten",
|
||||
"burned": "Burned",
|
||||
"remaining": "Remaining",
|
||||
"steps": "Steps"
|
||||
},
|
||||
"syncthing": {
|
||||
"connected": "Connectat",
|
||||
"synced": "Sincronitzat",
|
||||
"connected": "Connected",
|
||||
"synced": "Synced",
|
||||
"errors": "Errors",
|
||||
"storage": "Emmagatzematge"
|
||||
"storage": "Storage"
|
||||
},
|
||||
"sportarr": {
|
||||
"wanted": "Volgut",
|
||||
"queued": "Encuat",
|
||||
"leagues": "Lligues"
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"leagues": "Leagues"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Buscar…",
|
||||
"provider": "Motor de búsqueda: {{name}}",
|
||||
"select_provider": "Seleccionar motores de búsqueda"
|
||||
"provider": "Search engine: {{name}}",
|
||||
"select_provider": "Select search engine"
|
||||
},
|
||||
"resources": {
|
||||
"cpu": "CPU",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"seconds": "s"
|
||||
},
|
||||
"auth": {
|
||||
"signout": "Odjavi se"
|
||||
"signout": "Sign out"
|
||||
},
|
||||
"widget": {
|
||||
"missing_type": "Nedostajuća vrsta widgeta: {{type}}",
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Traži …",
|
||||
"provider": "Tražilica: {{name}}",
|
||||
"select_provider": "Odaberi tražilicu"
|
||||
"provider": "Search engine: {{name}}",
|
||||
"select_provider": "Select search engine"
|
||||
},
|
||||
"resources": {
|
||||
"cpu": "CPU",
|
||||
@@ -135,7 +135,7 @@
|
||||
"series": "Serije",
|
||||
"episodes": "Epizode",
|
||||
"songs": "Pjesme",
|
||||
"albums": "Albumi"
|
||||
"albums": "Albums"
|
||||
},
|
||||
"esphome": {
|
||||
"offline": "Offline",
|
||||
@@ -474,7 +474,7 @@
|
||||
"users": "Korisnici",
|
||||
"loginsLast24H": "Prijave (24 h)",
|
||||
"failedLoginsLast24H": "Neuspjele prijave (24 h)",
|
||||
"authorizationsLast24H": "Autorizacije (24h)"
|
||||
"authorizationsLast24H": "Auths (24h)"
|
||||
},
|
||||
"proxmox": {
|
||||
"mem": "MEM",
|
||||
@@ -954,15 +954,15 @@
|
||||
"storage": "Spremište"
|
||||
},
|
||||
"maintainerr": {
|
||||
"itemsHandled": "Obrađene stavke",
|
||||
"episodesHandled": "Obrađene epizode",
|
||||
"moviesHandled": "Obrađeni filmovi",
|
||||
"showsHandled": "Obrađene emisije",
|
||||
"seasonsHandled": "Obrađene sezone",
|
||||
"itemsHandled": "Items Handled",
|
||||
"episodesHandled": "Episodes Handled",
|
||||
"moviesHandled": "Movies Handled",
|
||||
"showsHandled": "Shows Handled",
|
||||
"seasonsHandled": "Seasons Handled",
|
||||
"reclaimable": "Reclaimable",
|
||||
"movieReclaimable": "Movie Reclaimable",
|
||||
"showReclaimable": "Show Reclaimable",
|
||||
"totalCapacity": "Ukupni kapacitet"
|
||||
"totalCapacity": "Total Capacity"
|
||||
},
|
||||
"netdata": {
|
||||
"warnings": "Upozorenja",
|
||||
@@ -1250,8 +1250,8 @@
|
||||
"storage": "Spremište"
|
||||
},
|
||||
"sportarr": {
|
||||
"wanted": "Željeno",
|
||||
"queued": "U redu čekanja",
|
||||
"leagues": "Lige"
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"leagues": "Leagues"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Hľadať…",
|
||||
"provider": "Vyhľadávač: {{name}}",
|
||||
"select_provider": "Vyberte vyhľadávač"
|
||||
"provider": "Search engine: {{name}}",
|
||||
"select_provider": "Select search engine"
|
||||
},
|
||||
"resources": {
|
||||
"cpu": "CPU",
|
||||
|
||||
+201
-201
@@ -21,7 +21,7 @@
|
||||
"seconds": "giây"
|
||||
},
|
||||
"auth": {
|
||||
"signout": "Đăng xuất"
|
||||
"signout": "Sign out"
|
||||
},
|
||||
"widget": {
|
||||
"missing_type": "Thiếu loại Widget: {{type}}",
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "Tìm kiếm…",
|
||||
"provider": "Công cụ tìm kiếm: {{name}}",
|
||||
"select_provider": "Chọn công cụ tìm kiếm"
|
||||
"provider": "Search engine: {{name}}",
|
||||
"select_provider": "Select search engine"
|
||||
},
|
||||
"resources": {
|
||||
"cpu": "CPU",
|
||||
@@ -50,7 +50,7 @@
|
||||
"free": "Dư",
|
||||
"used": "Đã dùng",
|
||||
"load": "\n",
|
||||
"temp": "Tạm thời",
|
||||
"temp": "TEMP",
|
||||
"max": "Tối đa",
|
||||
"uptime": "UP"
|
||||
},
|
||||
@@ -66,24 +66,24 @@
|
||||
"wlan_devices": "Thiết bị trong mạng WLAN",
|
||||
"lan_users": "Người dùng mạng LAN",
|
||||
"wlan_users": "Người dùng mạng WLAN",
|
||||
"up": "Hoạt động",
|
||||
"down": "Không hoạt động",
|
||||
"up": "UP",
|
||||
"down": "DOWN",
|
||||
"wait": "Vui lòng chờ",
|
||||
"empty_data": "Trạng thái hệ thống phụ không xác định"
|
||||
},
|
||||
"unifi_drive": {
|
||||
"healthy": "Bình thường",
|
||||
"degraded": "Suy giảm",
|
||||
"no_data": "Không có dữ liệu"
|
||||
"healthy": "Healthy",
|
||||
"degraded": "Degraded",
|
||||
"no_data": "No storage data available"
|
||||
},
|
||||
"duplicati": {
|
||||
"jobs": "Tác vụ",
|
||||
"stored": "Đã lưu",
|
||||
"lastBackup": "Lần chạy cuối",
|
||||
"nextRun": "Lần chạy tiếp theo",
|
||||
"running": "Đang chạy",
|
||||
"warnings": "Cảnh báo",
|
||||
"errors": "Lỗi"
|
||||
"jobs": "Jobs",
|
||||
"stored": "Stored",
|
||||
"lastBackup": "Last Run",
|
||||
"nextRun": "Next Run",
|
||||
"running": "Running",
|
||||
"warnings": "Warnings",
|
||||
"errors": "Errors"
|
||||
},
|
||||
"docker": {
|
||||
"rx": "RX",
|
||||
@@ -98,8 +98,8 @@
|
||||
"starting": "Đang bắt đầu",
|
||||
"unhealthy": "Bất thường",
|
||||
"not_found": "Không tìm thấy",
|
||||
"exited": "Đã thoát",
|
||||
"partial": "Một phần"
|
||||
"exited": "Exited",
|
||||
"partial": "Partial"
|
||||
},
|
||||
"ping": {
|
||||
"error": "Lỗi",
|
||||
@@ -120,35 +120,35 @@
|
||||
"playing": "Đang chơi",
|
||||
"transcoding": "Chuyển định dạng",
|
||||
"bitrate": "Bitrate",
|
||||
"no_active": "Không có luồng đang hoạt động",
|
||||
"no_active": "No Active Streams",
|
||||
"movies": "Phim ảnh",
|
||||
"series": "Series",
|
||||
"episodes": "Tập",
|
||||
"episodes": "Episodes",
|
||||
"songs": "Bài hát"
|
||||
},
|
||||
"jellyfin": {
|
||||
"playing": "Đang phát",
|
||||
"transcoding": "Đang chuyển mã",
|
||||
"bitrate": "Tốc độ bit",
|
||||
"no_active": "Không có luồng đang hoạt động",
|
||||
"movies": "Phim",
|
||||
"playing": "Playing",
|
||||
"transcoding": "Transcoding",
|
||||
"bitrate": "Bitrate",
|
||||
"no_active": "No Active Streams",
|
||||
"movies": "Movies",
|
||||
"series": "Series",
|
||||
"episodes": "Tập",
|
||||
"songs": "Bài hát",
|
||||
"albums": "Album"
|
||||
"episodes": "Episodes",
|
||||
"songs": "Songs",
|
||||
"albums": "Albums"
|
||||
},
|
||||
"esphome": {
|
||||
"offline": "Offline",
|
||||
"offline_alt": "Offline",
|
||||
"online": "Online",
|
||||
"total": "Tổng cộng",
|
||||
"total": "Total",
|
||||
"unknown": "Không xác định"
|
||||
},
|
||||
"evcc": {
|
||||
"pv_power": "Công suất phát",
|
||||
"pv_power": "Production",
|
||||
"battery_soc": "Pin",
|
||||
"grid_power": "Lưới",
|
||||
"home_power": "Công suất tiêu thụ",
|
||||
"home_power": "Consumption",
|
||||
"charge_power": "Bộ sạc",
|
||||
"kilowatt": "kW"
|
||||
},
|
||||
@@ -156,7 +156,7 @@
|
||||
"download": "Tải xuống",
|
||||
"upload": "Tải lên",
|
||||
"leech": "",
|
||||
"seed": "Seeder"
|
||||
"seed": "Seed"
|
||||
},
|
||||
"freshrss": {
|
||||
"subscriptions": "Đăng ký",
|
||||
@@ -175,115 +175,115 @@
|
||||
"maxDown": "Tải xuống tối đa",
|
||||
"maxUp": "Tải lên tối đa",
|
||||
"down": "Down",
|
||||
"up": "Tải lên",
|
||||
"received": "Đã nhận",
|
||||
"sent": "Đã gửi",
|
||||
"externalIPAddress": "Địa chỉ IP bên ngoài",
|
||||
"externalIPv6Address": "Địa chỉ IPv6 bên ngoài",
|
||||
"externalIPv6Prefix": "Tiền tố IPv6 bên ngoài"
|
||||
"up": "Up",
|
||||
"received": "Received",
|
||||
"sent": "Sent",
|
||||
"externalIPAddress": "Ext. IP",
|
||||
"externalIPv6Address": "Ext. IPv6",
|
||||
"externalIPv6Prefix": "Ext. IPv6-Prefix"
|
||||
},
|
||||
"caddy": {
|
||||
"upstreams": "Máy chủ backend",
|
||||
"requests": "Yêu cầu hiện tại",
|
||||
"requests_failed": "Yêu cầu thất bại"
|
||||
"upstreams": "Upstreams",
|
||||
"requests": "Current requests",
|
||||
"requests_failed": "Failed requests"
|
||||
},
|
||||
"changedetectionio": {
|
||||
"totalObserved": "Tổng số đã theo dõi",
|
||||
"diffsDetected": "Số thay đổi đã phát hiện"
|
||||
"totalObserved": "Total Observed",
|
||||
"diffsDetected": "Diffs Detected"
|
||||
},
|
||||
"channelsdvrserver": {
|
||||
"shows": "Chương trình",
|
||||
"recordings": "Bản ghi",
|
||||
"scheduled": "Đã lên lịch",
|
||||
"passes": "Quy tắc ghi"
|
||||
"shows": "Shows",
|
||||
"recordings": "Recordings",
|
||||
"scheduled": "Scheduled",
|
||||
"passes": "Passes"
|
||||
},
|
||||
"tautulli": {
|
||||
"playing": "Đang phát",
|
||||
"transcoding": "Đang chuyển mã",
|
||||
"bitrate": "Tốc độ bit",
|
||||
"no_active": "Không có luồng đang hoạt động",
|
||||
"plex_connection_error": "Kiểm tra kết nối Plex"
|
||||
"playing": "Playing",
|
||||
"transcoding": "Transcoding",
|
||||
"bitrate": "Bitrate",
|
||||
"no_active": "No Active Streams",
|
||||
"plex_connection_error": "Check Plex Connection"
|
||||
},
|
||||
"tracearr": {
|
||||
"no_active": "Không có luồng đang hoạt động",
|
||||
"streams": "Luồng",
|
||||
"transcodes": "Luồng chuyển mã",
|
||||
"directplay": "Phát trực tiếp",
|
||||
"bitrate": "Tốc độ bit"
|
||||
"no_active": "No Active Streams",
|
||||
"streams": "Streams",
|
||||
"transcodes": "Transcodes",
|
||||
"directplay": "Direct Play",
|
||||
"bitrate": "Bitrate"
|
||||
},
|
||||
"omada": {
|
||||
"connectedAp": "AP đã kết nối",
|
||||
"activeUser": "Thiết bị đang hoạt động",
|
||||
"alerts": "Cảnh báo",
|
||||
"connectedGateways": "Gateway đã kết nối",
|
||||
"connectedSwitches": "Switch đã kết nối"
|
||||
"connectedAp": "Connected APs",
|
||||
"activeUser": "Active devices",
|
||||
"alerts": "Alerts",
|
||||
"connectedGateways": "Connected gateways",
|
||||
"connectedSwitches": "Connected switches"
|
||||
},
|
||||
"nzbget": {
|
||||
"rate": "Tốc độ",
|
||||
"remaining": "Còn lại",
|
||||
"rate": "Rate",
|
||||
"remaining": "Remaining",
|
||||
"downloaded": "Đã tải"
|
||||
},
|
||||
"plex": {
|
||||
"streams": "Luồng đang hoạt động",
|
||||
"albums": "Album",
|
||||
"movies": "Phim",
|
||||
"tv": "Chương trình TV"
|
||||
"streams": "Active Streams",
|
||||
"albums": "Albums",
|
||||
"movies": "Movies",
|
||||
"tv": "TV Shows"
|
||||
},
|
||||
"sabnzbd": {
|
||||
"rate": "Tốc độ",
|
||||
"rate": "Rate",
|
||||
"queue": "Hàng chờ",
|
||||
"timeleft": "Thời gian còn lại"
|
||||
},
|
||||
"rutorrent": {
|
||||
"active": "Hoạt động",
|
||||
"upload": "Tải lên",
|
||||
"download": "Tải xuống"
|
||||
"upload": "Upload",
|
||||
"download": "Download"
|
||||
},
|
||||
"transmission": {
|
||||
"download": "Tải xuống",
|
||||
"upload": "Tải lên",
|
||||
"leech": "Leecher",
|
||||
"seed": "Seeder"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"qbittorrent": {
|
||||
"download": "Tải xuống",
|
||||
"upload": "Tải lên",
|
||||
"leech": "Leecher",
|
||||
"seed": "Seeder"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"qnap": {
|
||||
"cpuUsage": "Mức sử dụng CPU",
|
||||
"memUsage": "Mức sử dụng bộ nhớ",
|
||||
"systemTempC": "Nhiệt độ hệ thống",
|
||||
"poolUsage": "Mức sử dụng pool",
|
||||
"volumeUsage": "Mức sử dụng volume",
|
||||
"invalid": "Không hợp lệ"
|
||||
"cpuUsage": "CPU Usage",
|
||||
"memUsage": "MEM Usage",
|
||||
"systemTempC": "System Temp",
|
||||
"poolUsage": "Pool Usage",
|
||||
"volumeUsage": "Volume Usage",
|
||||
"invalid": "Invalid"
|
||||
},
|
||||
"deluge": {
|
||||
"download": "Tải xuống",
|
||||
"upload": "Tải lên",
|
||||
"leech": "Leecher",
|
||||
"seed": "Seeder"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"develancacheui": {
|
||||
"cachehitbytes": "Dung lượng cache hit",
|
||||
"cachemissbytes": "Dung lượng cache miss"
|
||||
"cachehitbytes": "Cache Hit Bytes",
|
||||
"cachemissbytes": "Cache Miss Bytes"
|
||||
},
|
||||
"downloadstation": {
|
||||
"download": "Tải xuống",
|
||||
"upload": "Tải lên",
|
||||
"leech": "Leecher",
|
||||
"seed": "Seeder"
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
"sonarr": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"series": "Phim bộ",
|
||||
"series": "Series",
|
||||
"queue": "Queue",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"radarr": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"missing": "Missing",
|
||||
"queued": "Queued",
|
||||
"movies": "Movies",
|
||||
@@ -291,12 +291,12 @@
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"lidarr": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"artists": "Artists"
|
||||
},
|
||||
"readarr": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"books": "Sách"
|
||||
},
|
||||
@@ -336,66 +336,66 @@
|
||||
"latency": "Latency"
|
||||
},
|
||||
"speedtest": {
|
||||
"upload": "Tải lên",
|
||||
"download": "Tải xuống",
|
||||
"upload": "Upload",
|
||||
"download": "Download",
|
||||
"ping": "Ping"
|
||||
},
|
||||
"portainer": {
|
||||
"running": "Đang chạy",
|
||||
"stopped": "Đã dừng",
|
||||
"total": "Tổng cộng"
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"total": "Total"
|
||||
},
|
||||
"suwayomi": {
|
||||
"download": "Đã tải xuống",
|
||||
"nondownload": "Chưa tải xuống",
|
||||
"read": "Đã đọc",
|
||||
"unread": "Chưa đọc",
|
||||
"downloadedread": "Đã tải xuống & Đã đọc",
|
||||
"downloadedunread": "Đã tải xuống & Chưa đọc",
|
||||
"nondownloadedread": "Chưa tải xuống & Đã đọc",
|
||||
"nondownloadedunread": "Chưa tải xuống & Chưa đọc"
|
||||
"download": "Downloaded",
|
||||
"nondownload": "Non-Downloaded",
|
||||
"read": "Read",
|
||||
"unread": "Unread",
|
||||
"downloadedread": "Downloaded & Read",
|
||||
"downloadedunread": "Downloaded & Unread",
|
||||
"nondownloadedread": "Non-Downloaded & Read",
|
||||
"nondownloadedunread": "Non-Downloaded & Unread"
|
||||
},
|
||||
"tailscale": {
|
||||
"address": "Địa chỉ",
|
||||
"expires": "Hết hạn",
|
||||
"never": "Không bao giờ",
|
||||
"user": "Người dùng",
|
||||
"hostname": "Tên máy chủ",
|
||||
"name": "Tên",
|
||||
"client_version": "Phiên bản máy khách",
|
||||
"os": "Hệ điều hành",
|
||||
"created": "Đã tạo",
|
||||
"authorized": "Đã cấp quyền",
|
||||
"is_external": "Là bên ngoài",
|
||||
"update_available": "Có bản cập nhật",
|
||||
"tags": "Thẻ",
|
||||
"last_seen": "Lần cuối nhìn thấy",
|
||||
"now": "Bây giờ",
|
||||
"years": "{{number}} năm",
|
||||
"weeks": "{{number}} tuần",
|
||||
"days": "{{number}} ngày",
|
||||
"hours": "{{number}} giờ",
|
||||
"minutes": "{{number}} phút",
|
||||
"seconds": "{{number}} giây",
|
||||
"ago": "{{value}} trước",
|
||||
"true": "Có",
|
||||
"false": "Không"
|
||||
"address": "Address",
|
||||
"expires": "Expires",
|
||||
"never": "Never",
|
||||
"user": "User",
|
||||
"hostname": "Hostname",
|
||||
"name": "Name",
|
||||
"client_version": "Client Version",
|
||||
"os": "OS",
|
||||
"created": "Created",
|
||||
"authorized": "Authorized",
|
||||
"is_external": "Is External",
|
||||
"update_available": "Update Available",
|
||||
"tags": "Tags",
|
||||
"last_seen": "Last Seen",
|
||||
"now": "Now",
|
||||
"years": "{{number}}y",
|
||||
"weeks": "{{number}}w",
|
||||
"days": "{{number}}d",
|
||||
"hours": "{{number}}h",
|
||||
"minutes": "{{number}}m",
|
||||
"seconds": "{{number}}s",
|
||||
"ago": "{{value}} Ago",
|
||||
"true": "Yes",
|
||||
"false": "No"
|
||||
},
|
||||
"technitium": {
|
||||
"totalQueries": "Tổng số truy vấn",
|
||||
"totalNoError": "Thành công",
|
||||
"totalServerFailure": "Lỗi máy chủ",
|
||||
"totalNxDomain": "NX Domain",
|
||||
"totalRefused": "Bị từ chối",
|
||||
"totalQueries": "Queries",
|
||||
"totalNoError": "Success",
|
||||
"totalServerFailure": "Failures",
|
||||
"totalNxDomain": "NX Domains",
|
||||
"totalRefused": "Refused",
|
||||
"totalAuthoritative": "Authoritative",
|
||||
"totalRecursive": "Recursive",
|
||||
"totalCached": "Được lưu trong bộ nhớ đệm",
|
||||
"totalBlocked": "Bị chặn",
|
||||
"totalDropped": "Bị loại bỏ",
|
||||
"totalClients": "Số máy khách"
|
||||
"totalCached": "Cached",
|
||||
"totalBlocked": "Blocked",
|
||||
"totalDropped": "Dropped",
|
||||
"totalClients": "Clients"
|
||||
},
|
||||
"tdarr": {
|
||||
"queue": "Hàng đợi",
|
||||
"queue": "Queue",
|
||||
"processed": "Processed",
|
||||
"errored": "Errored",
|
||||
"saved": "Saved"
|
||||
@@ -412,7 +412,7 @@
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"navidrome": {
|
||||
"nothing_streaming": "Không có luồng đang hoạt động",
|
||||
"nothing_streaming": "No Active Streams",
|
||||
"please_wait": "Please Wait"
|
||||
},
|
||||
"npm": {
|
||||
@@ -455,9 +455,9 @@
|
||||
"domain_count": "Domains"
|
||||
},
|
||||
"medusa": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"series": "Phim bộ"
|
||||
"series": "Series"
|
||||
},
|
||||
"minecraft": {
|
||||
"players": "Players",
|
||||
@@ -474,66 +474,66 @@
|
||||
"users": "Users",
|
||||
"loginsLast24H": "Logins (24h)",
|
||||
"failedLoginsLast24H": "Failed Logins (24h)",
|
||||
"authorizationsLast24H": "Lượt ủy quyền (24 giờ)"
|
||||
"authorizationsLast24H": "Auths (24h)"
|
||||
},
|
||||
"proxmox": {
|
||||
"mem": "Bộ nhớ",
|
||||
"mem": "MEM",
|
||||
"cpu": "CPU",
|
||||
"lxc": "LXC",
|
||||
"vms": "VM"
|
||||
"vms": "VMs"
|
||||
},
|
||||
"pulse": {
|
||||
"nodes": "Node",
|
||||
"vms": "VM",
|
||||
"lxcs": "LXC"
|
||||
"nodes": "Nodes",
|
||||
"vms": "VMs",
|
||||
"lxcs": "LXCs"
|
||||
},
|
||||
"glances": {
|
||||
"cpu": "CPU",
|
||||
"load": "Tải hệ thống",
|
||||
"wait": "Vui lòng đợi",
|
||||
"temp": "Nhiệt độ",
|
||||
"_temp": "Nhiệt độ",
|
||||
"warn": "Cảnh báo",
|
||||
"uptime": "Thời gian hoạt động",
|
||||
"total": "Tổng cộng",
|
||||
"free": "Còn trống",
|
||||
"used": "Đã sử dụng",
|
||||
"days": "ngày",
|
||||
"hours": "giờ",
|
||||
"crit": "Nghiêm trọng",
|
||||
"read": "Đọc",
|
||||
"write": "Ghi",
|
||||
"load": "Load",
|
||||
"wait": "Please wait",
|
||||
"temp": "TEMP",
|
||||
"_temp": "Temp",
|
||||
"warn": "Warn",
|
||||
"uptime": "UP",
|
||||
"total": "Total",
|
||||
"free": "Free",
|
||||
"used": "Used",
|
||||
"days": "d",
|
||||
"hours": "h",
|
||||
"crit": "Crit",
|
||||
"read": "Read",
|
||||
"write": "Write",
|
||||
"gpu": "GPU",
|
||||
"mem": "Bộ nhớ",
|
||||
"mem": "Mem",
|
||||
"swap": "Swap"
|
||||
},
|
||||
"quicklaunch": {
|
||||
"bookmark": "Dấu trang",
|
||||
"service": "Dịch vụ",
|
||||
"search": "Tìm kiếm",
|
||||
"custom": "Tùy chỉnh",
|
||||
"visit": "Truy cập",
|
||||
"bookmark": "Bookmark",
|
||||
"service": "Service",
|
||||
"search": "Search",
|
||||
"custom": "Custom",
|
||||
"visit": "Visit",
|
||||
"url": "URL",
|
||||
"searchsuggestion": "Gợi ý"
|
||||
"searchsuggestion": "Suggestion"
|
||||
},
|
||||
"wmo": {
|
||||
"0-day": "Trời nắng",
|
||||
"0-night": "Trời quang",
|
||||
"1-day": "Chủ yếu có nắng",
|
||||
"1-night": "Chủ yếu trời quang",
|
||||
"2-day": "Có mây từng phần",
|
||||
"2-night": "Có mây từng phần",
|
||||
"3-day": "Nhiều mây",
|
||||
"3-night": "Nhiều mây",
|
||||
"45-day": "Có sương mù",
|
||||
"45-night": "Có sương mù",
|
||||
"48-day": "Có sương mù",
|
||||
"48-night": "Có sương mù",
|
||||
"51-day": "Mưa phùn nhẹ",
|
||||
"51-night": "Mưa phùn nhẹ",
|
||||
"53-day": "Mưa phùn",
|
||||
"53-night": "Mưa phùn",
|
||||
"55-day": "Mưa phùn lớn",
|
||||
"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",
|
||||
"45-day": "Foggy",
|
||||
"45-night": "Foggy",
|
||||
"48-day": "Foggy",
|
||||
"48-night": "Foggy",
|
||||
"51-day": "Light Drizzle",
|
||||
"51-night": "Light Drizzle",
|
||||
"53-day": "Drizzle",
|
||||
"53-night": "Drizzle",
|
||||
"55-day": "Heavy Drizzle",
|
||||
"55-night": "Heavy Drizzle",
|
||||
"56-day": "Light Freezing Drizzle",
|
||||
"56-night": "Light Freezing Drizzle",
|
||||
@@ -741,14 +741,14 @@
|
||||
"m": "m"
|
||||
},
|
||||
"atsumeru": {
|
||||
"series": "Bộ truyện",
|
||||
"series": "Series",
|
||||
"archives": "Archives",
|
||||
"chapters": "Chapters",
|
||||
"categories": "Categories"
|
||||
},
|
||||
"komga": {
|
||||
"libraries": "Libraries",
|
||||
"series": "Bộ truyện",
|
||||
"series": "Series",
|
||||
"books": "Books"
|
||||
},
|
||||
"diskstation": {
|
||||
@@ -761,9 +761,9 @@
|
||||
"streams": "Streams"
|
||||
},
|
||||
"mylar": {
|
||||
"series": "Phim bộ",
|
||||
"series": "Series",
|
||||
"issues": "Issues",
|
||||
"wanted": "Cần tải"
|
||||
"wanted": "Wanted"
|
||||
},
|
||||
"photoprism": {
|
||||
"albums": "Albums",
|
||||
@@ -846,7 +846,7 @@
|
||||
"books": "Books",
|
||||
"authors": "Authors",
|
||||
"categories": "Categories",
|
||||
"series": "Bộ sách"
|
||||
"series": "Series"
|
||||
},
|
||||
"booklore": {
|
||||
"libraries": "Libraries",
|
||||
@@ -861,7 +861,7 @@
|
||||
"downloadSpeed": "Speed"
|
||||
},
|
||||
"kavita": {
|
||||
"seriesCount": "Số bộ truyện",
|
||||
"seriesCount": "Series",
|
||||
"totalFiles": "Files"
|
||||
},
|
||||
"azuredevops": {
|
||||
@@ -1250,7 +1250,7 @@
|
||||
"storage": "Storage"
|
||||
},
|
||||
"sportarr": {
|
||||
"wanted": "Cần tải",
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"leagues": "Leagues"
|
||||
}
|
||||
|
||||
@@ -73,7 +73,6 @@ describe("pages/api/auth/[...nextauth]", () => {
|
||||
it("routes sanitized NextAuth logs through the Homepage logger", async () => {
|
||||
const mod = await import("pages/api/auth/[...nextauth]");
|
||||
const sensitiveMetadata = {
|
||||
error: Object.assign(new Error("State cookie was missing."), { access_token: "sensitive-access-token" }),
|
||||
clientSecret: "sensitive-client-secret",
|
||||
access_token: "sensitive-access-token",
|
||||
id_token: "sensitive-id-token",
|
||||
@@ -83,7 +82,7 @@ describe("pages/api/auth/[...nextauth]", () => {
|
||||
mod.authOptions.logger.warn("NEXTAUTH_URL", sensitiveMetadata);
|
||||
mod.authOptions.logger.debug("OAUTH_CALLBACK_RESPONSE", sensitiveMetadata);
|
||||
|
||||
expect(errorMock).toHaveBeenCalledWith("%s: %s", "OAUTH_CALLBACK_ERROR", "State cookie was missing.");
|
||||
expect(errorMock).toHaveBeenCalledWith("%s", "OAUTH_CALLBACK_ERROR");
|
||||
expect(warnMock).toHaveBeenCalledWith("%s", "NEXTAUTH_URL");
|
||||
expect(debugMock).toHaveBeenCalledWith("%s", "OAUTH_CALLBACK_RESPONSE");
|
||||
expect(JSON.stringify([...errorMock.mock.calls, ...warnMock.mock.calls, ...debugMock.mock.calls])).not.toContain(
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Disclosure, Transition } from "@headlessui/react";
|
||||
import classNames from "classnames";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { MdKeyboardArrowDown } from "react-icons/md";
|
||||
|
||||
import List from "components/bookmarks/list";
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { MdKeyboardArrowDown } from "react-icons/md";
|
||||
|
||||
export default function BookmarksGroup({
|
||||
bookmarks,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import classNames from "classnames";
|
||||
import { useContext } from "react";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { useContext } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
export default function Item({ bookmark, iconOnly = false }) {
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import classNames from "classnames";
|
||||
import Item from "components/bookmarks/item";
|
||||
|
||||
import { columnMap } from "../../utils/layout/columns";
|
||||
|
||||
import Item from "components/bookmarks/item";
|
||||
|
||||
export default function List({ bookmarks, layout, bookmarksStyle }) {
|
||||
let classes = layout?.style === "row" ? `grid ${columnMap[layout?.columns]} gap-x-2` : "flex flex-col bookmark-list";
|
||||
const style = {};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
/* eslint-disable jsx-a11y/alt-text */
|
||||
import { useContext, useEffect, useRef } from "react";
|
||||
|
||||
import { ColorContext } from "utils/contexts/color";
|
||||
|
||||
import themes from "utils/styles/themes";
|
||||
|
||||
export function Svg({ svgRef = null }) {
|
||||
|
||||
@@ -3,12 +3,11 @@ import { useTranslation } from "next-i18next/pages";
|
||||
import { useCallback, useContext, useEffect, useRef, useState } from "react";
|
||||
import { FiSearch } from "react-icons/fi";
|
||||
import useSWR from "swr";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import ResolvedIcon from "./resolvedicon";
|
||||
import { getStoredProvider, searchProviders } from "./widgets/search/search";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
const MOBILE_BUTTON_POSITIONS = {
|
||||
"top-left": "top-4 left-4",
|
||||
"top-right": "top-4 right-4",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import Image from "next/image";
|
||||
import { useContext } from "react";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import { ThemeContext } from "utils/contexts/theme";
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { Disclosure, Transition } from "@headlessui/react";
|
||||
import classNames from "classnames";
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import List from "components/services/list";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { MdKeyboardArrowDown } from "react-icons/md";
|
||||
|
||||
import { columnMap } from "../../utils/layout/columns";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import List from "components/services/list";
|
||||
|
||||
export default function ServicesGroup({
|
||||
group,
|
||||
layout,
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import classNames from "classnames";
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { useContext, useState } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import Docker from "widgets/docker/component";
|
||||
import Kubernetes from "widgets/kubernetes/component";
|
||||
import ProxmoxVM from "widgets/proxmoxvm/component";
|
||||
|
||||
import KubernetesStatus from "./kubernetes-status";
|
||||
import Ping from "./ping";
|
||||
@@ -8,12 +13,6 @@ import SiteMonitor from "./site-monitor";
|
||||
import Status from "./status";
|
||||
import Widget from "./widget";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import Docker from "widgets/docker/component";
|
||||
import Kubernetes from "widgets/kubernetes/component";
|
||||
import ProxmoxVM from "widgets/proxmoxvm/component";
|
||||
|
||||
export default function Item({ service, groupName, useEqualHeights }) {
|
||||
const hasLink = service.href && service.href !== "#";
|
||||
const { settings } = useContext(SettingsContext);
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import classNames from "classnames";
|
||||
import Item from "components/services/item";
|
||||
|
||||
import { columnMap } from "../../utils/layout/columns";
|
||||
|
||||
import Item from "components/services/item";
|
||||
|
||||
export default function List({ groupName, services, layout, useEqualHeights, header }) {
|
||||
return (
|
||||
<ul
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import components from "widgets/components";
|
||||
|
||||
export default function Widget({ widget, service }) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useContext, useMemo } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import Error from "./error";
|
||||
import { BlockHighlightContext } from "./highlight-context";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import { buildHighlightConfig } from "utils/highlights";
|
||||
|
||||
const ALIASED_WIDGETS = {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import classNames from "classnames";
|
||||
import { useContext } from "react";
|
||||
|
||||
import { TabContext } from "utils/contexts/tab";
|
||||
|
||||
function slugify(tabName) {
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Popover, Transition } from "@headlessui/react";
|
||||
import classNames from "classnames";
|
||||
import { Fragment, useContext } from "react";
|
||||
import { IoColorPalette } from "react-icons/io5";
|
||||
|
||||
import { ColorContext } from "utils/contexts/color";
|
||||
|
||||
const colors = [
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { useContext } from "react";
|
||||
import { MdDarkMode, MdLightMode, MdToggleOff, MdToggleOn } from "react-icons/md";
|
||||
|
||||
import { ThemeContext } from "utils/contexts/theme";
|
||||
|
||||
export default function ThemeToggle() {
|
||||
|
||||
@@ -4,14 +4,13 @@ import { useContext } from "react";
|
||||
import { FaMemory, FaRegClock, FaThermometerHalf } from "react-icons/fa";
|
||||
import { FiCpu, FiHardDrive } from "react-icons/fi";
|
||||
import useSWR from "swr";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import Error from "../widget/error";
|
||||
import Resource from "../widget/resource";
|
||||
import Resources from "../widget/resources";
|
||||
import WidgetLabel from "../widget/widget_label";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
const defaultCpuSensorLabels = ["cpu_thermal", "Core", "Tctl", "Temperature"];
|
||||
|
||||
function convertToFahrenheit(t) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
|
||||
import Container from "../widget/container";
|
||||
import Raw from "../widget/raw";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
|
||||
export default function Logo({ options }) {
|
||||
return (
|
||||
<Container
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const widgetMappings = {
|
||||
weatherapi: dynamic(() => import("components/widgets/weather/weather")),
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import classNames from "classnames";
|
||||
import { useContext } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import PrimaryText from "./primary_text";
|
||||
import Raw from "./raw";
|
||||
import SecondaryText from "./secondary_text";
|
||||
import WidgetIcon from "./widget_icon";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
export function getAllClasses(options, additionalClassNames = "") {
|
||||
if (options?.style?.header === "boxedWidgets") {
|
||||
if (options?.style?.cardBlur !== undefined) {
|
||||
|
||||
+2
-3
@@ -5,14 +5,13 @@ import "styles/globals.css";
|
||||
import "styles/manrope.css";
|
||||
import "styles/theme.css";
|
||||
import { SWRConfig } from "swr";
|
||||
|
||||
import nextI18nextConfig from "../../next-i18next.config";
|
||||
|
||||
import { ColorProvider } from "utils/contexts/color";
|
||||
import { SettingsProvider } from "utils/contexts/settings";
|
||||
import { TabProvider } from "utils/contexts/tab";
|
||||
import { ThemeProvider } from "utils/contexts/theme";
|
||||
|
||||
import nextI18nextConfig from "../../next-i18next.config";
|
||||
|
||||
const tailwindSafelist = [
|
||||
// TODO: remove pending https://github.com/tailwindlabs/tailwindcss/pull/17147
|
||||
"backdrop-blur",
|
||||
|
||||
@@ -71,16 +71,6 @@ function logFailedPasswordSignIn() {
|
||||
createLogger("nextauth").warn("Failed password sign-in attempt");
|
||||
}
|
||||
|
||||
function logNextAuthError(code, metadata) {
|
||||
const error = metadata instanceof Error ? metadata : metadata?.error;
|
||||
|
||||
if (error?.message) {
|
||||
createLogger("nextauth").error("%s: %s", code, error.message);
|
||||
} else {
|
||||
createLogger("nextauth").error("%s", code);
|
||||
}
|
||||
}
|
||||
|
||||
let providers = [];
|
||||
if (authEnabled) {
|
||||
if (hasOidcConfig) {
|
||||
@@ -150,7 +140,7 @@ export const authOptions = {
|
||||
signIn: "/auth/signin",
|
||||
},
|
||||
logger: {
|
||||
error: logNextAuthError,
|
||||
error: (code) => createLogger("nextauth").error("%s", code),
|
||||
warn: (code) => createLogger("nextauth").warn("%s", code),
|
||||
debug: (code) => createLogger("nextauth").debug("%s", code),
|
||||
},
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { searchProviders } from "components/widgets/search/search";
|
||||
|
||||
import { getSettings } from "utils/config/config";
|
||||
import { widgetsFromConfig } from "utils/config/widget-helpers";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
|
||||
@@ -63,8 +63,6 @@ export default async function handler(req, res) {
|
||||
if (serviceProxyHandler instanceof Function) {
|
||||
// quick return for no endpoint services, calendar is an exception
|
||||
if (!req.query.endpoint || serviceProxyHandler === calendarProxyHandler) {
|
||||
req.method = "GET";
|
||||
req.body = undefined;
|
||||
return await serviceProxyHandler(req, res);
|
||||
}
|
||||
|
||||
@@ -88,7 +86,7 @@ export default async function handler(req, res) {
|
||||
}
|
||||
|
||||
req.method = mapping?.method || "GET";
|
||||
req.body = mapping?.body;
|
||||
if (mapping?.body) req.body = mapping?.body;
|
||||
req.query.endpoint = endpoint;
|
||||
|
||||
if (mapping.segments || req.query.segments) {
|
||||
@@ -127,8 +125,6 @@ export default async function handler(req, res) {
|
||||
|
||||
if (widget.allowedEndpoints instanceof RegExp) {
|
||||
if (widget.allowedEndpoints.test(req.query.endpoint)) {
|
||||
req.method = "GET";
|
||||
req.body = undefined;
|
||||
return await serviceProxyHandler(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,229 +0,0 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import createMockRes from "test-utils/create-mock-res";
|
||||
|
||||
const { getServiceWidget, logger, genericHandler, allowedHandler, mappedHandler, calendarHandler } = vi.hoisted(() => ({
|
||||
getServiceWidget: vi.fn(),
|
||||
logger: { debug: vi.fn(), error: vi.fn() },
|
||||
genericHandler: vi.fn(),
|
||||
allowedHandler: vi.fn(),
|
||||
mappedHandler: vi.fn(),
|
||||
calendarHandler: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock("utils/logger", () => ({
|
||||
default: () => logger,
|
||||
}));
|
||||
vi.mock("utils/config/service-helpers", () => ({
|
||||
default: getServiceWidget,
|
||||
}));
|
||||
vi.mock("widgets/calendar/proxy", () => ({
|
||||
default: calendarHandler,
|
||||
}));
|
||||
|
||||
vi.mock("widgets/widgets", () => ({
|
||||
default: {
|
||||
noendpoint: {
|
||||
api: "{url}",
|
||||
proxyHandler: genericHandler,
|
||||
},
|
||||
allowed: {
|
||||
api: "{url}/api/{endpoint}",
|
||||
proxyHandler: allowedHandler,
|
||||
allowedEndpoints: /^status$/,
|
||||
},
|
||||
mapped: {
|
||||
api: "{url}/{endpoint}",
|
||||
proxyHandler: mappedHandler,
|
||||
mappings: {
|
||||
Sessions: {
|
||||
endpoint: "Sessions",
|
||||
},
|
||||
Pause: {
|
||||
method: "POST",
|
||||
endpoint: "Sessions/Playing/Pause",
|
||||
body: "mapping-body",
|
||||
},
|
||||
Refresh: {
|
||||
method: "POST",
|
||||
endpoint: "Sessions/Refresh",
|
||||
},
|
||||
},
|
||||
},
|
||||
ical: {
|
||||
api: "{url}",
|
||||
proxyHandler: calendarHandler,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
import handler from "./proxy";
|
||||
|
||||
function createReq({ method = "GET", body, query = {} } = {}) {
|
||||
return { method, body, query };
|
||||
}
|
||||
|
||||
describe("pages/api/services/proxy", () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
describe("client request shaping", () => {
|
||||
it("forces GET and drops the body on the no-endpoint quick return", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "noendpoint", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "POST",
|
||||
body: '{"cmd":"delete_all"}',
|
||||
query: { group: "g", service: "svc", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
expect(genericHandler).toHaveBeenCalledTimes(1);
|
||||
const forwarded = genericHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("GET");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
|
||||
it.each(["PUT", "DELETE", "PATCH"])("forces GET for a %s on the no-endpoint quick return", async (method) => {
|
||||
getServiceWidget.mockResolvedValue({ type: "noendpoint", url: "http://example" });
|
||||
|
||||
const req = createReq({ method, body: "payload", query: { group: "g", service: "svc", index: "0" } });
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
const forwarded = genericHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("GET");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
|
||||
it("forces GET and drops the body on the allowedEndpoints path", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "allowed", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "DELETE",
|
||||
body: "payload",
|
||||
query: { group: "g", service: "svc", endpoint: "status", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
expect(allowedHandler).toHaveBeenCalledTimes(1);
|
||||
const forwarded = allowedHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("GET");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
|
||||
it("forces GET and drops the body on the calendar exception path", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "calendar", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "POST",
|
||||
body: "payload",
|
||||
query: { group: "g", service: "svc", endpoint: "events", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
expect(calendarHandler).toHaveBeenCalledTimes(1);
|
||||
const forwarded = calendarHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("GET");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
|
||||
it("forces GET for a mapping that does not declare a method", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "mapped", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "POST",
|
||||
body: "payload",
|
||||
query: { group: "g", service: "svc", endpoint: "Sessions", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
const forwarded = mappedHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("GET");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
|
||||
it("drops a client body when a non-GET mapping does not declare one", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "mapped", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "POST",
|
||||
body: "attacker-controlled",
|
||||
query: { group: "g", service: "svc", endpoint: "Refresh", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
const forwarded = mappedHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("POST");
|
||||
expect(forwarded.body).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe("mapping opt-in", () => {
|
||||
it("still allows a mapping to declare a non-GET method and body", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "mapped", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "POST",
|
||||
query: { group: "g", service: "svc", endpoint: "Pause", index: "0" },
|
||||
});
|
||||
|
||||
await handler(req, createMockRes());
|
||||
|
||||
expect(mappedHandler).toHaveBeenCalledTimes(1);
|
||||
const forwarded = mappedHandler.mock.calls[0][0];
|
||||
expect(forwarded.method).toBe("POST");
|
||||
expect(forwarded.body).toBe("mapping-body");
|
||||
expect(forwarded.query.endpoint).toBe("Sessions/Playing/Pause");
|
||||
});
|
||||
|
||||
it("rejects a method that does not match the mapping", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "mapped", url: "http://example" });
|
||||
|
||||
const req = createReq({
|
||||
method: "GET",
|
||||
query: { group: "g", service: "svc", endpoint: "Pause", index: "0" },
|
||||
});
|
||||
const res = createMockRes();
|
||||
|
||||
await handler(req, res);
|
||||
|
||||
expect(mappedHandler).not.toHaveBeenCalled();
|
||||
expect(res.statusCode).toBe(403);
|
||||
expect(res.body).toEqual({ error: "Unsupported method" });
|
||||
});
|
||||
});
|
||||
|
||||
describe("dispatch guards", () => {
|
||||
it("rejects an endpoint that fails the allowedEndpoints test", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "allowed", url: "http://example" });
|
||||
|
||||
const req = createReq({ query: { group: "g", service: "svc", endpoint: "shutdown", index: "0" } });
|
||||
const res = createMockRes();
|
||||
|
||||
await handler(req, res);
|
||||
|
||||
expect(allowedHandler).not.toHaveBeenCalled();
|
||||
expect(res.statusCode).toBe(403);
|
||||
expect(res.body).toEqual({ error: "Unmapped proxy request." });
|
||||
});
|
||||
|
||||
it("rejects an unknown widget type", async () => {
|
||||
getServiceWidget.mockResolvedValue({ type: "nope", url: "http://example" });
|
||||
|
||||
const req = createReq({ query: { group: "g", service: "svc", index: "0" } });
|
||||
const res = createMockRes();
|
||||
|
||||
await handler(req, res);
|
||||
|
||||
expect(res.statusCode).toBe(403);
|
||||
expect(res.body).toEqual({ error: "Unknown proxy service type" });
|
||||
});
|
||||
});
|
||||
});
|
||||
+10
-10
@@ -1,4 +1,11 @@
|
||||
import classNames from "classnames";
|
||||
import BookmarksGroup from "components/bookmarks/group";
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import QuickLaunch from "components/quicklaunch";
|
||||
import ServicesGroup from "components/services/group";
|
||||
import Tab, { slugifyAndEncode } from "components/tab";
|
||||
import Revalidate from "components/toggles/revalidate";
|
||||
import Widget from "components/widgets/widget";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import { serverSideTranslations } from "next-i18next/pages/serverSideTranslations";
|
||||
import dynamic from "next/dynamic";
|
||||
@@ -8,20 +15,13 @@ import Script from "next/script";
|
||||
import { useCallback, useContext, useEffect, useMemo, useState } from "react";
|
||||
import { BiError } from "react-icons/bi";
|
||||
import useSWR, { SWRConfig } from "swr";
|
||||
|
||||
import BookmarksGroup from "components/bookmarks/group";
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import QuickLaunch from "components/quicklaunch";
|
||||
import ServicesGroup from "components/services/group";
|
||||
import Tab, { slugifyAndEncode } from "components/tab";
|
||||
import Revalidate from "components/toggles/revalidate";
|
||||
import Widget from "components/widgets/widget";
|
||||
import { bookmarksResponse, servicesResponse, widgetsResponse } from "utils/config/api-response";
|
||||
import { getSettings } from "utils/config/config";
|
||||
import { ColorContext } from "utils/contexts/color";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import { TabContext } from "utils/contexts/tab";
|
||||
import { ThemeContext } from "utils/contexts/theme";
|
||||
|
||||
import { bookmarksResponse, servicesResponse, widgetsResponse } from "utils/config/api-response";
|
||||
import { getSettings } from "utils/config/config";
|
||||
import useWindowFocus from "utils/hooks/window-focus";
|
||||
import createLogger from "utils/logger";
|
||||
import themes from "utils/styles/themes";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { render } from "@testing-library/react";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
export function renderWithProviders(ui, { settings = {} } = {}) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useCurrentTime from "utils/hooks/use-current-time";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import Container from "components/services/widget/container";
|
||||
import { DateTime } from "luxon";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import dynamic from "next/dynamic";
|
||||
import { useContext, useEffect, useMemo, useState } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import Agenda from "./agenda";
|
||||
import Monthly from "./monthly";
|
||||
|
||||
import Container from "components/services/widget/container";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
const colorVariants = {
|
||||
// https://tailwindcss.com/docs/content-configuration#dynamic-class-names
|
||||
amber: "bg-amber-500",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import classNames from "classnames";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import { useState } from "react";
|
||||
|
||||
import Dropdown from "components/services/dropdown";
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import { useState } from "react";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,22 +1,17 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
const ALERTS_LIMIT = 500;
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { widget } = service;
|
||||
|
||||
const { data: alerts, error: alertsError } = useWidgetAPI(widget, "alerts");
|
||||
const { data: alerts, error: alertsError } = useWidgetAPI(widget, !!widget.limit24h ? "alerts24h" : "alerts");
|
||||
const { data: bans, error: bansError } = useWidgetAPI(widget, "bans");
|
||||
|
||||
const alertsCount = alerts?.length ?? 0;
|
||||
const alertsValue = t("common.number", { value: alertsCount });
|
||||
|
||||
if (alertsError || bansError) {
|
||||
return <Container service={service} error={alertsError ?? bansError} />;
|
||||
}
|
||||
@@ -32,7 +27,7 @@ export default function Component({ service }) {
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="crowdsec.alerts" value={alertsCount >= ALERTS_LIMIT ? `${alertsValue}+` : alertsValue} />
|
||||
<Block label="crowdsec.alerts" value={t("common.number", { value: alerts?.length ?? 0 })} />
|
||||
<Block label="crowdsec.bans" value={t("common.number", { value: bans?.length ?? 0 })} />
|
||||
</Container>
|
||||
);
|
||||
|
||||
@@ -17,25 +17,15 @@ describe("widgets/crowdsec/component", () => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
it("requests the alerts and bans endpoints", () => {
|
||||
useWidgetAPI.mockImplementation(() => ({ data: undefined, error: undefined }));
|
||||
|
||||
renderWithProviders(<Component service={{ widget: { type: "crowdsec" } }} />, {
|
||||
settings: { hideErrors: false },
|
||||
});
|
||||
|
||||
expect(useWidgetAPI).toHaveBeenNthCalledWith(1, expect.any(Object), "alerts");
|
||||
expect(useWidgetAPI).toHaveBeenNthCalledWith(2, expect.any(Object), "bans");
|
||||
});
|
||||
|
||||
it("ignores the deprecated limit24h option", () => {
|
||||
it("selects alerts24h endpoint when limit24h is enabled", () => {
|
||||
useWidgetAPI.mockImplementation(() => ({ data: undefined, error: undefined }));
|
||||
|
||||
renderWithProviders(<Component service={{ widget: { type: "crowdsec", limit24h: true } }} />, {
|
||||
settings: { hideErrors: false },
|
||||
});
|
||||
|
||||
expect(useWidgetAPI).toHaveBeenNthCalledWith(1, expect.any(Object), "alerts");
|
||||
expect(useWidgetAPI).toHaveBeenNthCalledWith(1, expect.any(Object), "alerts24h");
|
||||
expect(useWidgetAPI).toHaveBeenNthCalledWith(2, expect.any(Object), "bans");
|
||||
});
|
||||
|
||||
it("renders placeholders when both alerts and bans are missing", () => {
|
||||
@@ -62,28 +52,4 @@ describe("widgets/crowdsec/component", () => {
|
||||
expectBlockValue(container, "crowdsec.alerts", 0);
|
||||
expectBlockValue(container, "crowdsec.bans", 0);
|
||||
});
|
||||
|
||||
it("marks the alert count as truncated at the API limit", () => {
|
||||
useWidgetAPI
|
||||
.mockReturnValueOnce({ data: new Array(500).fill({}), error: undefined })
|
||||
.mockReturnValueOnce({ data: [], error: undefined });
|
||||
|
||||
renderWithProviders(<Component service={{ widget: { type: "crowdsec" } }} />, {
|
||||
settings: { hideErrors: false },
|
||||
});
|
||||
|
||||
expect(screen.getByText("500+")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("does not mark the alert count below the API limit", () => {
|
||||
useWidgetAPI
|
||||
.mockReturnValueOnce({ data: new Array(499).fill({}), error: undefined })
|
||||
.mockReturnValueOnce({ data: [], error: undefined });
|
||||
|
||||
const { container } = renderWithProviders(<Component service={{ widget: { type: "crowdsec" } }} />, {
|
||||
settings: { hideErrors: false },
|
||||
});
|
||||
|
||||
expectBlockValue(container, "crowdsec.alerts", 499);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -7,10 +7,13 @@ const widget = {
|
||||
|
||||
mappings: {
|
||||
alerts: {
|
||||
endpoint: "alerts?limit=500&since=24h&with_decisions=false&include_capi=false",
|
||||
endpoint: "alerts",
|
||||
},
|
||||
alerts24h: {
|
||||
endpoint: "alerts?limit=0&since=24h",
|
||||
},
|
||||
bans: {
|
||||
endpoint: "alerts?decision_type=ban&include_capi=false&has_active_decision=1&with_decisions=false",
|
||||
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import classNames from "classnames";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import * as shvl from "utils/config/shvl";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import QueueEntry from "../../components/widgets/queue/queueEntry";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
function StreamEntry({ title, clients, bitrate }) {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import useSWR from "swr";
|
||||
|
||||
import { calculateCPUPercent, calculateThroughput, calculateUsedMemory } from "./stats-helpers";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import { BsCpu, BsFillCpuFill, BsFillPlayFill, BsPauseFill, BsVolumeMuteFill } from "react-icons/bs";
|
||||
import { MdOutlineSmartDisplay } from "react-icons/md";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { getURLSearchParams } from "utils/proxy/api-helpers";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
function toKilowatts(t, value) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
function getPerformancePercent(t, performanceRange) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import classNames from "classnames";
|
||||
import { useContext } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import Error from "./error";
|
||||
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
export default function Container({ children, widget, error = null, chart = true, className = "" }) {
|
||||
const { settings } = useContext(SettingsContext);
|
||||
const hideErrors = settings.hideErrors || widget?.hideErrors;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "../components/block";
|
||||
import Container from "../components/container";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { parseVersionForUrl } from "utils/proxy/api-helpers";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "../components/block";
|
||||
import Container from "../components/container";
|
||||
|
||||
import ResolvedIcon from "components/resolvedicon";
|
||||
import { parseVersionForUrl } from "utils/proxy/api-helpers";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import { i18n } from "../../../next-i18next.config";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
function formatDate(dateString) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import classNames from "classnames";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import Container from "components/services/widget/container";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export default function Component({ service }) {
|
||||
const [refreshTimer, setRefreshTimer] = useState(0);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { useTranslation } from "next-i18next/pages";
|
||||
import { BsCpu, BsFillCpuFill, BsFillPlayFill, BsPauseFill, BsVolumeMuteFill } from "react-icons/bs";
|
||||
import { MdOutlineSmartDisplay } from "react-icons/md";
|
||||
|
||||
import Block from "components/services/widget/block";
|
||||
import Container from "components/services/widget/container";
|
||||
import { getURLSearchParams } from "utils/proxy/api-helpers";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import withWidgetFields from "utils/widget-fields";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user