Compare commits

..

27 Commits

Author SHA1 Message Date
dependabot[bot] 9ae23dba64 Chore(deps): Bump pnpm/action-setup from 6.0.10 to 6.1.0
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.0.10 to 6.1.0.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/0977fd99725f1db4007ccb2928dbb4e90d06cc86...ea17c68df8912ef543352723c149a84f56e3d413)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 16:32:36 +00:00
shamoon f7666df9d8 Move PBS since param to optional params
Docker CI / Docker Build & Push (push) Waiting to run
Lint / Linting Checks (push) Waiting to run
Release Drafter / Update Release Draft (push) Waiting to run
Release Drafter / Auto Label PR (push) Waiting to run
Tests / vitest (1) (push) Waiting to run
Tests / vitest (2) (push) Waiting to run
Tests / vitest (3) (push) Waiting to run
Tests / vitest (4) (push) Waiting to run
2026-09-17 07:36:08 -07:00
shamoon 6b6926108e 2.4.0
Docker CI / Docker Build & Push (push) Waiting to run
Docs / Test Build Docs (push) Waiting to run
Docs / Build & Deploy Docs (push) Waiting to run
Lint / Linting Checks (push) Waiting to run
Tests / vitest (1) (push) Waiting to run
Tests / vitest (2) (push) Waiting to run
Tests / vitest (3) (push) Waiting to run
Tests / vitest (4) (push) Waiting to run
2026-09-17 00:14:55 -07:00
shamoon c391c91517 Merge branch 'dev' 2026-09-17 00:14:40 -07:00
github-actions[bot] 941db5706c New Crowdin translations by GitHub Action (#7120)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-09-16 14:41:12 +00:00
dependabot[bot] 643ebe8c02 Chore(deps): Bump js-yaml from 5.4.1 to 5.4.2 (#7147)
Signed-off-by: dependabot[bot] <support@github.com>
2026-09-16 14:23:30 +00:00
dependabot[bot] 1021027b5a Chore(deps): Bump sharp from 0.35.3 to 0.35.4 (#7146)
Signed-off-by: dependabot[bot] <support@github.com>
2026-09-16 07:16:22 -07:00
shamoon 0e131aa0d4 Documentation: change npm credentials to 'view-only' user
Docker CI / Docker Build & Push (push) Has been cancelled
Docs / Test Build Docs (push) Has been cancelled
Docs / Build & Deploy Docs (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-16 07:15:09 -07:00
shamoon 3598869ef0 Fix: prevent mcp operations losing var placeholders (#7144) 2026-09-16 07:08:20 -07:00
shamoon c764d05a0c Fix: better handle PeaNUT missing data (#7139)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-12 21:49:05 -07:00
Ben Belov fcd9a715d9 Enhancement: Add bearer authentication to whatsupdocker widget (#7134)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-11 23:24:08 -07:00
dependabot[bot] eacc205249 Chore(deps): Bump crowdin/github-action from 3.0.0 to 3.0.1 (#7128)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 16:57:51 +00:00
dependabot[bot] 4249a3fb95 Chore(deps): Bump actions/deploy-pages from 5.0.0 to 5.0.1 (#7127)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 16:50:37 +00:00
dependabot[bot] 0b98428ab5 Chore(deps): Bump docker/setup-qemu-action from 4.2.0 to 4.3.0 (#7129)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 09:44:14 -07:00
dependabot[bot] bbe52519bb Chore(deps): Bump js-yaml from 5.4.0 to 5.4.1 (#7119)
Docker CI / Docker Build & Push (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 15:12:08 -07:00
shamoon 541b2fe9f1 2.3.0
Docker CI / Docker Build & Push (push) Has been cancelled
Docs / Test Build Docs (push) Has been cancelled
Docs / Build & Deploy Docs (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-09 14:45:28 -07:00
github-actions[bot] 574ba2c7cb New Crowdin translations by GitHub Action (#7090)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2026-09-09 14:43:53 -07:00
shamoon f78cab7557 Documentation: update jellyfin versioning 2026-09-09 14:43:02 -07:00
shamoon 2cd77eae1f Fixhancement: use ghostfolio baseCurrency for net worth (#7116)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-08 09:25:58 -07:00
shamoon 6ab83b0b5f Tweak: handle QL selection without hover (#7105)
Release Drafter / Auto Label PR (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-06 18:35:01 -07:00
shamoon 9aa5a79c41 Fix: dont fire search on empty field (#7101)
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-05 16:07:12 -07:00
shamoon 1c2cb76702 Enhancement: render more docker states (#7099)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-05 10:24:59 -07:00
shamoon 7de1faa769 Performance: use bulk request for docker stats (#7098) 2026-09-05 10:08:20 -07:00
shamoon 1024a382ee Enhancement: allow OIDC auto-login (#7096) 2026-09-05 08:25:00 -07:00
DaddyBoard 438788240b Performance: fetch all docker container statuses in one request (#7092)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2026-09-05 15:17:52 +00:00
dependabot[bot] df34927198 Chore(deps): Bump crowdin/github-action from 2.17.1 to 3.0.0 (#7091)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-05 02:21:31 -07:00
shamoon ddc5adc91c Fix: handle literal null from crowdsec api alerts (#7088)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
2026-09-02 12:40:40 -07:00
98 changed files with 2471 additions and 1442 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: crowdin action
uses: crowdin/github-action@8f01d54f70f1713ee3f09d82c2bbb2daeac28689 # v2
uses: crowdin/github-action@71fdb8814261dd703be4ca7c6450d21b1868da4b # v3.0.1
with:
upload_translations: false
download_translations: true
+2 -2
View File
@@ -62,7 +62,7 @@ jobs:
nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
version: 10
run_install: false
@@ -99,7 +99,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
- name: Setup Docker buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
+1 -1
View File
@@ -52,5 +52,5 @@ jobs:
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
- uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
id: deployment
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- name: Install pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
version: 10
run_install: false
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
version: 9
+5
View File
@@ -69,6 +69,11 @@ For OIDC login (overrides password login):
- `HOMEPAGE_OIDC_CLIENT_ID`
- `HOMEPAGE_OIDC_CLIENT_SECRET`
- Optional: `HOMEPAGE_OIDC_NAME` (display name), `HOMEPAGE_OIDC_SCOPE` (defaults to `openid email profile`)
- Optional: `HOMEPAGE_OIDC_AUTO_LOGIN=true` to skip the login page and send unauthenticated visitors straight to the provider
!!! tip
With auto-login enabled, visit `/auth/signin?autologin=0` to reach the login page without being redirected, e.g. in case something goes wrong!
!!! warning
+2 -2
View File
@@ -13,8 +13,8 @@ Allowed fields: `["movies", "series", "episodes", "songs", "albums"]`.
| Jellyfin Version | Homepage Widget Version |
| ---------------- | ----------------------- |
| < 10.12 | 1 (default) |
| >= 10.12 | 2 |
| < 12 (10.12) | 1 (default) |
| >= 12 (10.12) | 2 |
```yaml
widget:
+3 -3
View File
@@ -5,7 +5,7 @@ description: Nginx Proxy Manager Widget Configuration
Learn more about [Nginx Proxy Manager](https://nginxproxymanager.com/).
Login with the same admin username and password used to access the web UI.
Use a "view-only" user for the username and password.
Allowed fields: `["enabled", "disabled", "total"]`.
@@ -13,6 +13,6 @@ Allowed fields: `["enabled", "disabled", "total"]`.
widget:
type: npm
url: http://npm.host.or.ip
username: admin_username
password: admin_password
username: view_only_username
password: view_only_password
```
+1
View File
@@ -13,4 +13,5 @@ widget:
url: http://whatsupdocker:port
username: username # optional
password: password # optional
key: bearer-token # optional, takes precedence over username/password
```
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "2.2.0",
"version": "2.4.0",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -23,7 +23,7 @@
"gamedig": "^5.3.3",
"i18next": "^26.3.6",
"ical.js": "^2.2.1",
"js-yaml": "^5.4.0",
"js-yaml": "^5.4.2",
"json-rpc-2.0": "^1.7.1",
"luxon": "^3.7.2",
"memory-cache": "^0.2.0",
+125 -125
View File
@@ -36,8 +36,8 @@ importers:
specifier: ^2.2.1
version: 2.2.1
js-yaml:
specifier: ^5.4.0
version: 5.4.0
specifier: ^5.4.2
version: 5.4.2
json-rpc-2.0:
specifier: ^1.7.1
version: 1.7.1
@@ -431,160 +431,160 @@ packages:
resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
engines: {node: '>=18'}
'@img/sharp-darwin-arm64@0.35.3':
resolution: {integrity: sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==}
'@img/sharp-darwin-arm64@0.35.4':
resolution: {integrity: sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [darwin]
'@img/sharp-darwin-x64@0.35.3':
resolution: {integrity: sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==}
'@img/sharp-darwin-x64@0.35.4':
resolution: {integrity: sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [darwin]
'@img/sharp-freebsd-wasm32@0.35.3':
resolution: {integrity: sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==}
'@img/sharp-freebsd-wasm32@0.35.4':
resolution: {integrity: sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==}
engines: {node: '>=20.9.0'}
os: [freebsd]
'@img/sharp-libvips-darwin-arm64@1.3.2':
resolution: {integrity: sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==}
'@img/sharp-libvips-darwin-arm64@1.3.3':
resolution: {integrity: sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==}
cpu: [arm64]
os: [darwin]
'@img/sharp-libvips-darwin-x64@1.3.2':
resolution: {integrity: sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==}
'@img/sharp-libvips-darwin-x64@1.3.3':
resolution: {integrity: sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==}
cpu: [x64]
os: [darwin]
'@img/sharp-libvips-linux-arm64@1.3.2':
resolution: {integrity: sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==}
'@img/sharp-libvips-linux-arm64@1.3.3':
resolution: {integrity: sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linux-arm@1.3.2':
resolution: {integrity: sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==}
'@img/sharp-libvips-linux-arm@1.3.3':
resolution: {integrity: sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==}
cpu: [arm]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linux-ppc64@1.3.2':
resolution: {integrity: sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==}
'@img/sharp-libvips-linux-ppc64@1.3.3':
resolution: {integrity: sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linux-riscv64@1.3.2':
resolution: {integrity: sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==}
'@img/sharp-libvips-linux-riscv64@1.3.3':
resolution: {integrity: sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==}
cpu: [riscv64]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linux-s390x@1.3.2':
resolution: {integrity: sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==}
'@img/sharp-libvips-linux-s390x@1.3.3':
resolution: {integrity: sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linux-x64@1.3.2':
resolution: {integrity: sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==}
'@img/sharp-libvips-linux-x64@1.3.3':
resolution: {integrity: sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==}
cpu: [x64]
os: [linux]
libc: [glibc]
'@img/sharp-libvips-linuxmusl-arm64@1.3.2':
resolution: {integrity: sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==}
'@img/sharp-libvips-linuxmusl-arm64@1.3.3':
resolution: {integrity: sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==}
cpu: [arm64]
os: [linux]
libc: [musl]
'@img/sharp-libvips-linuxmusl-x64@1.3.2':
resolution: {integrity: sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==}
'@img/sharp-libvips-linuxmusl-x64@1.3.3':
resolution: {integrity: sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==}
cpu: [x64]
os: [linux]
libc: [musl]
'@img/sharp-linux-arm64@0.35.3':
resolution: {integrity: sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==}
'@img/sharp-linux-arm64@0.35.4':
resolution: {integrity: sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@img/sharp-linux-arm@0.35.3':
resolution: {integrity: sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==}
'@img/sharp-linux-arm@0.35.4':
resolution: {integrity: sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==}
engines: {node: '>=20.9.0'}
cpu: [arm]
os: [linux]
libc: [glibc]
'@img/sharp-linux-ppc64@0.35.3':
resolution: {integrity: sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==}
'@img/sharp-linux-ppc64@0.35.4':
resolution: {integrity: sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==}
engines: {node: '>=20.9.0'}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@img/sharp-linux-riscv64@0.35.3':
resolution: {integrity: sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==}
'@img/sharp-linux-riscv64@0.35.4':
resolution: {integrity: sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==}
engines: {node: '>=20.9.0'}
cpu: [riscv64]
os: [linux]
libc: [glibc]
'@img/sharp-linux-s390x@0.35.3':
resolution: {integrity: sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==}
'@img/sharp-linux-s390x@0.35.4':
resolution: {integrity: sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==}
engines: {node: '>=20.9.0'}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@img/sharp-linux-x64@0.35.3':
resolution: {integrity: sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==}
'@img/sharp-linux-x64@0.35.4':
resolution: {integrity: sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
libc: [glibc]
'@img/sharp-linuxmusl-arm64@0.35.3':
resolution: {integrity: sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==}
'@img/sharp-linuxmusl-arm64@0.35.4':
resolution: {integrity: sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
libc: [musl]
'@img/sharp-linuxmusl-x64@0.35.3':
resolution: {integrity: sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==}
'@img/sharp-linuxmusl-x64@0.35.4':
resolution: {integrity: sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
libc: [musl]
'@img/sharp-wasm32@0.35.3':
resolution: {integrity: sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==}
'@img/sharp-wasm32@0.35.4':
resolution: {integrity: sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==}
engines: {node: '>=20.9.0'}
'@img/sharp-webcontainers-wasm32@0.35.3':
resolution: {integrity: sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==}
'@img/sharp-webcontainers-wasm32@0.35.4':
resolution: {integrity: sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==}
engines: {node: '>=20.9.0'}
cpu: [wasm32]
'@img/sharp-win32-arm64@0.35.3':
resolution: {integrity: sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==}
'@img/sharp-win32-arm64@0.35.4':
resolution: {integrity: sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [win32]
'@img/sharp-win32-ia32@0.35.3':
resolution: {integrity: sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==}
'@img/sharp-win32-ia32@0.35.4':
resolution: {integrity: sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==}
engines: {node: ^20.9.0}
cpu: [ia32]
os: [win32]
'@img/sharp-win32-x64@0.35.3':
resolution: {integrity: sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==}
'@img/sharp-win32-x64@0.35.4':
resolution: {integrity: sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [win32]
@@ -2481,8 +2481,8 @@ packages:
resolution: {integrity: sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==}
hasBin: true
js-yaml@5.4.0:
resolution: {integrity: sha512-jE7vUJIebKzYQI5xu4co5CRBDlDEYnHrdzsxs4O2giCz4v2SbVMYKpmt1D9L38OKQAeCWmrOTRiCV93u0UkaJA==}
js-yaml@5.4.2:
resolution: {integrity: sha512-m+aqu+LwO1O6sIopafj8HUVl5aawITwZQe/yHpMCKjaWBaA/d07B/QdMb3529REftiU+RMMHL3Vlsw3hON7vWg==}
hasBin: true
jsdom@30.0.1:
@@ -3318,8 +3318,8 @@ packages:
setprototypeof@1.2.0:
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
sharp@0.35.3:
resolution: {integrity: sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==}
sharp@0.35.4:
resolution: {integrity: sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==}
engines: {node: '>=20.9.0'}
peerDependencies:
'@types/node': '*'
@@ -4206,108 +4206,108 @@ snapshots:
'@img/colour@1.1.0':
optional: true
'@img/sharp-darwin-arm64@0.35.3':
'@img/sharp-darwin-arm64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-darwin-arm64': 1.3.2
'@img/sharp-libvips-darwin-arm64': 1.3.3
optional: true
'@img/sharp-darwin-x64@0.35.3':
'@img/sharp-darwin-x64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-darwin-x64': 1.3.2
'@img/sharp-libvips-darwin-x64': 1.3.3
optional: true
'@img/sharp-freebsd-wasm32@0.35.3':
'@img/sharp-freebsd-wasm32@0.35.4':
dependencies:
'@img/sharp-wasm32': 0.35.3
'@img/sharp-wasm32': 0.35.4
optional: true
'@img/sharp-libvips-darwin-arm64@1.3.2':
'@img/sharp-libvips-darwin-arm64@1.3.3':
optional: true
'@img/sharp-libvips-darwin-x64@1.3.2':
'@img/sharp-libvips-darwin-x64@1.3.3':
optional: true
'@img/sharp-libvips-linux-arm64@1.3.2':
'@img/sharp-libvips-linux-arm64@1.3.3':
optional: true
'@img/sharp-libvips-linux-arm@1.3.2':
'@img/sharp-libvips-linux-arm@1.3.3':
optional: true
'@img/sharp-libvips-linux-ppc64@1.3.2':
'@img/sharp-libvips-linux-ppc64@1.3.3':
optional: true
'@img/sharp-libvips-linux-riscv64@1.3.2':
'@img/sharp-libvips-linux-riscv64@1.3.3':
optional: true
'@img/sharp-libvips-linux-s390x@1.3.2':
'@img/sharp-libvips-linux-s390x@1.3.3':
optional: true
'@img/sharp-libvips-linux-x64@1.3.2':
'@img/sharp-libvips-linux-x64@1.3.3':
optional: true
'@img/sharp-libvips-linuxmusl-arm64@1.3.2':
'@img/sharp-libvips-linuxmusl-arm64@1.3.3':
optional: true
'@img/sharp-libvips-linuxmusl-x64@1.3.2':
'@img/sharp-libvips-linuxmusl-x64@1.3.3':
optional: true
'@img/sharp-linux-arm64@0.35.3':
'@img/sharp-linux-arm64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-arm64': 1.3.2
'@img/sharp-libvips-linux-arm64': 1.3.3
optional: true
'@img/sharp-linux-arm@0.35.3':
'@img/sharp-linux-arm@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-arm': 1.3.2
'@img/sharp-libvips-linux-arm': 1.3.3
optional: true
'@img/sharp-linux-ppc64@0.35.3':
'@img/sharp-linux-ppc64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-ppc64': 1.3.2
'@img/sharp-libvips-linux-ppc64': 1.3.3
optional: true
'@img/sharp-linux-riscv64@0.35.3':
'@img/sharp-linux-riscv64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-riscv64': 1.3.2
'@img/sharp-libvips-linux-riscv64': 1.3.3
optional: true
'@img/sharp-linux-s390x@0.35.3':
'@img/sharp-linux-s390x@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-s390x': 1.3.2
'@img/sharp-libvips-linux-s390x': 1.3.3
optional: true
'@img/sharp-linux-x64@0.35.3':
'@img/sharp-linux-x64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linux-x64': 1.3.2
'@img/sharp-libvips-linux-x64': 1.3.3
optional: true
'@img/sharp-linuxmusl-arm64@0.35.3':
'@img/sharp-linuxmusl-arm64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linuxmusl-arm64': 1.3.2
'@img/sharp-libvips-linuxmusl-arm64': 1.3.3
optional: true
'@img/sharp-linuxmusl-x64@0.35.3':
'@img/sharp-linuxmusl-x64@0.35.4':
optionalDependencies:
'@img/sharp-libvips-linuxmusl-x64': 1.3.2
'@img/sharp-libvips-linuxmusl-x64': 1.3.3
optional: true
'@img/sharp-wasm32@0.35.3':
'@img/sharp-wasm32@0.35.4':
dependencies:
'@emnapi/runtime': 1.11.3
optional: true
'@img/sharp-webcontainers-wasm32@0.35.3':
'@img/sharp-webcontainers-wasm32@0.35.4':
dependencies:
'@img/sharp-wasm32': 0.35.3
'@img/sharp-wasm32': 0.35.4
optional: true
'@img/sharp-win32-arm64@0.35.3':
'@img/sharp-win32-arm64@0.35.4':
optional: true
'@img/sharp-win32-ia32@0.35.3':
'@img/sharp-win32-ia32@0.35.4':
optional: true
'@img/sharp-win32-x64@0.35.3':
'@img/sharp-win32-x64@0.35.4':
optional: true
'@internationalized/date@3.12.3':
@@ -4359,7 +4359,7 @@ snapshots:
form-data: 4.0.6
hpagent: 1.2.0
isomorphic-ws: 5.0.0(ws@8.21.2)
js-yaml: 5.4.0
js-yaml: 5.4.2
jsonpath-plus: 10.4.0
openid-client: 6.8.5
rfc4648: 1.5.4
@@ -6263,7 +6263,7 @@ snapshots:
dependencies:
argparse: 2.0.1
js-yaml@5.4.0:
js-yaml@5.4.2:
dependencies:
argparse: 2.0.1
@@ -6594,7 +6594,7 @@ snapshots:
'@next/swc-linux-x64-musl': 16.3.3
'@next/swc-win32-arm64-msvc': 16.3.3
'@next/swc-win32-x64-msvc': 16.3.3
sharp: 0.35.3(@types/node@26.2.0)
sharp: 0.35.4(@types/node@26.2.0)
transitivePeerDependencies:
- '@babel/core'
- '@types/node'
@@ -7079,37 +7079,37 @@ snapshots:
setprototypeof@1.2.0: {}
sharp@0.35.3(@types/node@26.2.0):
sharp@0.35.4(@types/node@26.2.0):
dependencies:
'@img/colour': 1.1.0
detect-libc: 2.1.2
semver: 7.8.5
optionalDependencies:
'@img/sharp-darwin-arm64': 0.35.3
'@img/sharp-darwin-x64': 0.35.3
'@img/sharp-freebsd-wasm32': 0.35.3
'@img/sharp-libvips-darwin-arm64': 1.3.2
'@img/sharp-libvips-darwin-x64': 1.3.2
'@img/sharp-libvips-linux-arm': 1.3.2
'@img/sharp-libvips-linux-arm64': 1.3.2
'@img/sharp-libvips-linux-ppc64': 1.3.2
'@img/sharp-libvips-linux-riscv64': 1.3.2
'@img/sharp-libvips-linux-s390x': 1.3.2
'@img/sharp-libvips-linux-x64': 1.3.2
'@img/sharp-libvips-linuxmusl-arm64': 1.3.2
'@img/sharp-libvips-linuxmusl-x64': 1.3.2
'@img/sharp-linux-arm': 0.35.3
'@img/sharp-linux-arm64': 0.35.3
'@img/sharp-linux-ppc64': 0.35.3
'@img/sharp-linux-riscv64': 0.35.3
'@img/sharp-linux-s390x': 0.35.3
'@img/sharp-linux-x64': 0.35.3
'@img/sharp-linuxmusl-arm64': 0.35.3
'@img/sharp-linuxmusl-x64': 0.35.3
'@img/sharp-webcontainers-wasm32': 0.35.3
'@img/sharp-win32-arm64': 0.35.3
'@img/sharp-win32-ia32': 0.35.3
'@img/sharp-win32-x64': 0.35.3
'@img/sharp-darwin-arm64': 0.35.4
'@img/sharp-darwin-x64': 0.35.4
'@img/sharp-freebsd-wasm32': 0.35.4
'@img/sharp-libvips-darwin-arm64': 1.3.3
'@img/sharp-libvips-darwin-x64': 1.3.3
'@img/sharp-libvips-linux-arm': 1.3.3
'@img/sharp-libvips-linux-arm64': 1.3.3
'@img/sharp-libvips-linux-ppc64': 1.3.3
'@img/sharp-libvips-linux-riscv64': 1.3.3
'@img/sharp-libvips-linux-s390x': 1.3.3
'@img/sharp-libvips-linux-x64': 1.3.3
'@img/sharp-libvips-linuxmusl-arm64': 1.3.3
'@img/sharp-libvips-linuxmusl-x64': 1.3.3
'@img/sharp-linux-arm': 0.35.4
'@img/sharp-linux-arm64': 0.35.4
'@img/sharp-linux-ppc64': 0.35.4
'@img/sharp-linux-riscv64': 0.35.4
'@img/sharp-linux-s390x': 0.35.4
'@img/sharp-linux-x64': 0.35.4
'@img/sharp-linuxmusl-arm64': 0.35.4
'@img/sharp-linuxmusl-x64': 0.35.4
'@img/sharp-webcontainers-wasm32': 0.35.4
'@img/sharp-win32-arm64': 0.35.4
'@img/sharp-win32-ia32': 0.35.4
'@img/sharp-win32-x64': 0.35.4
'@types/node': 26.2.0
optional: true
+10 -5
View File
@@ -21,7 +21,7 @@
"seconds": "s"
},
"auth": {
"signout": "Sign out"
"signout": "Teken uit"
},
"widget": {
"missing_type": "Ontbrekende legstuk-tipe: {{type}}",
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "Soek…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "Soekenjin: {{name}}",
"select_provider": "Kies soekenjin"
},
"resources": {
"cpu": "SVE",
@@ -99,7 +99,12 @@
"unhealthy": "Ongesond",
"not_found": "Nie Gevind Nie",
"exited": "Verlaat",
"partial": "Gedeeltelik"
"partial": "Gedeeltelik",
"created": "Geskep",
"paused": "Onderbreek",
"restarting": "Herlaai",
"removing": "Verwydering",
"dead": "Dood"
},
"ping": {
"error": "Fout",
@@ -474,7 +479,7 @@
"users": "Gebruikers",
"loginsLast24H": "Aantekenings (24h)",
"failedLoginsLast24H": "Mislukte Aantekenings (24h)",
"authorizationsLast24H": "Auths (24h)"
"authorizationsLast24H": "Magtigings (24h)"
},
"proxmox": {
"mem": "GEH",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "غير سليم",
"not_found": "غير موجود",
"exited": "خرجت",
"partial": "جزئي"
"partial": "جزئي",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "خطأ",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Нездравословен",
"not_found": "Не е открит",
"exited": "Напуснал",
"partial": "Частично"
"partial": "Частично",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Грешка",
+23 -18
View File
@@ -99,7 +99,12 @@
"unhealthy": "No saludable",
"not_found": "No trobat",
"exited": "Tancat",
"partial": "Parcial"
"partial": "Parcial",
"created": "Creat",
"paused": "Pausat",
"restarting": "Reiniciant",
"removing": "Eliminant",
"dead": "Mort"
},
"ping": {
"error": "Error",
@@ -276,28 +281,28 @@
"seed": "Sembrat"
},
"sonarr": {
"wanted": "Volgut",
"wanted": "Pendents",
"queued": "En cua",
"series": "Sèries",
"queue": "Cua",
"unknown": "Desconegut"
},
"radarr": {
"wanted": "Volguts",
"wanted": "Pendents",
"missing": "Falten",
"queued": "Encuat",
"queued": "En cua",
"movies": "Pel·lícules",
"queue": "Cua",
"unknown": "Desconegut"
},
"lidarr": {
"wanted": "Volguts",
"queued": "Encuat",
"wanted": "Pendents",
"queued": "En cua",
"artists": "Artistes"
},
"readarr": {
"wanted": "Volguts",
"queued": "Encuat",
"wanted": "Pendents",
"queued": "En cua",
"books": "Llibres"
},
"bazarr": {
@@ -315,7 +320,7 @@
"available": "Disponible",
"completed": "Completat",
"processing": "Processant",
"issues": "Temes oberts"
"issues": "Incidències"
},
"netalertx": {
"total": "Total",
@@ -455,8 +460,8 @@
"domain_count": "Dominis"
},
"medusa": {
"wanted": "Volguts",
"queued": "Encuat",
"wanted": "Pendents",
"queued": "En cua",
"series": "Sèries"
},
"minecraft": {
@@ -762,8 +767,8 @@
},
"mylar": {
"series": "Sèries",
"issues": "Problemes",
"wanted": "Volguts"
"issues": "Números",
"wanted": "Pendents"
},
"photoprism": {
"albums": "Àlbums",
@@ -989,7 +994,7 @@
},
"gitea": {
"notifications": "Notificacions",
"issues": "Problemes",
"issues": "Incidències",
"pulls": "Sol·licitud de Canvis",
"repositories": "Repositoris"
},
@@ -1119,7 +1124,7 @@
},
"gitlab": {
"groups": "Grups",
"issues": "Problemes",
"issues": "Incidències",
"merges": "Merge Requests",
"projects": "Projectes"
},
@@ -1156,7 +1161,7 @@
},
"checkmk": {
"serviceErrors": "Errors de servei",
"hostErrors": "Problemes de l'hoste"
"hostErrors": "Errors de l'hoste"
},
"komodo": {
"total": "Total",
@@ -1250,8 +1255,8 @@
"storage": "Emmagatzematge"
},
"sportarr": {
"wanted": "Volgut",
"queued": "Encuat",
"wanted": "Pendents",
"queued": "En cua",
"leagues": "Lligues"
}
}
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Nezdravý",
"not_found": "Nenalezen",
"exited": "Ukončen",
"partial": "Částečný"
"partial": "Částečný",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Chyba",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Usund",
"not_found": "Ikke Fundet",
"exited": "Forladt",
"partial": "Delvis"
"partial": "Delvis",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+46 -41
View File
@@ -21,7 +21,7 @@
"seconds": "s"
},
"auth": {
"signout": "Sign out"
"signout": "Abmelden"
},
"widget": {
"missing_type": "Fehlender Widget-Typ: {{type}}",
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "Suche…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "Suchmaschine: {{name}}",
"select_provider": "Suchmaschine auswählen"
},
"resources": {
"cpu": "CPU",
@@ -77,13 +77,13 @@
"no_data": "Keine Speicherdaten verfügbar"
},
"duplicati": {
"jobs": "Jobs",
"stored": "Stored",
"lastBackup": "Last Run",
"nextRun": "Next Run",
"running": "Running",
"warnings": "Warnings",
"errors": "Errors"
"jobs": "Aufgaben",
"stored": "Gespeichert",
"lastBackup": "Zuletzt ausgeführt",
"nextRun": "Nächste Ausführung",
"running": "Wird ausgeführt",
"warnings": "Warnungen",
"errors": "Fehler"
},
"docker": {
"rx": "RX",
@@ -99,7 +99,12 @@
"unhealthy": "Fehlerhaft",
"not_found": "Nicht gefunden",
"exited": "Beendet",
"partial": "Teilweise"
"partial": "Teilweise",
"created": "Erstellt am",
"paused": "Pausiert",
"restarting": "Wird neu gestartet",
"removing": "Wird entfernt",
"dead": "Tot"
},
"ping": {
"error": "Fehler",
@@ -135,7 +140,7 @@
"series": "Serien",
"episodes": "Episoden",
"songs": "Titel",
"albums": "Albums"
"albums": "Alben"
},
"esphome": {
"offline": "Offline",
@@ -359,15 +364,15 @@
"address": "Adresse",
"expires": "Läuft ab",
"never": "Nie",
"user": "User",
"user": "Benutzer",
"hostname": "Hostname",
"name": "Name",
"client_version": "Client Version",
"os": "OS",
"created": "Created",
"authorized": "Authorized",
"is_external": "Is External",
"update_available": "Update Available",
"client_version": "Client-Version",
"os": "Betriebssystem",
"created": "Erstellt am",
"authorized": "Autorisiert",
"is_external": "Ist extern",
"update_available": "Aktualisierung verfügbar",
"tags": "Tags",
"last_seen": "Zuletzt gesehen",
"now": "Jetzt",
@@ -378,8 +383,8 @@
"minutes": "{{number}}min",
"seconds": "{{number}}s",
"ago": "Vor {{value}}",
"true": "Yes",
"false": "No"
"true": "Ja",
"false": "Nein"
},
"technitium": {
"totalQueries": "Anfragen",
@@ -474,7 +479,7 @@
"users": "Benutzer",
"loginsLast24H": "Anmeldungen (24 h)",
"failedLoginsLast24H": "Fehlversuche (24 h)",
"authorizationsLast24H": "Auths (24h)"
"authorizationsLast24H": "Autorisierungen (24h)"
},
"proxmox": {
"mem": "RAM",
@@ -483,7 +488,7 @@
"vms": "VMs"
},
"pulse": {
"nodes": "Nodes",
"nodes": "Knoten",
"vms": "VMs",
"lxcs": "LXCs"
},
@@ -652,13 +657,13 @@
"total": "Total"
},
"pangolin": {
"orgs": "Orgs",
"orgs": "Organisationen",
"sites": "Seiten",
"resources": "Ressourcen",
"targets": "Ziele",
"traffic": "Traffic",
"in": "In",
"out": "Out"
"in": "Eingehend",
"out": "Ausgehend"
},
"peanut": {
"battery_charge": "Akkuladung",
@@ -954,27 +959,27 @@
"storage": "Speicher"
},
"maintainerr": {
"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"
"itemsHandled": "Items bearbeitet",
"episodesHandled": "Episoden behandelt",
"moviesHandled": "Filme behandelt",
"showsHandled": "Serien behandelt",
"seasonsHandled": "Staffeln bearbeitet",
"reclaimable": "Zurückforderbar",
"movieReclaimable": "Film zurückforderbar",
"showReclaimable": "Serie zurückforderbar",
"totalCapacity": "Gesamte Kapazität"
},
"netdata": {
"warnings": "Warnungen",
"criticals": "Kritisch"
},
"ntfy": {
"title": "Title",
"priority": "Priority",
"lastReceived": "Last Received",
"message": "Message",
"tags": "Tags",
"none": "None",
"title": "Titel",
"priority": "Priorität",
"lastReceived": "Zuletzt erhalten",
"message": "Nachricht",
"tags": "Schlagwörter",
"none": "Keine",
"min": "Min",
"low": "Low",
"default": "Default",
+286 -281
View File
@@ -14,14 +14,14 @@
"date": "{{value, date}}",
"relativeDate": "{{value, relativeDate}}",
"duration": "{{value, duration}}",
"months": "mo",
"days": "d",
"hours": "h",
"minutes": "m",
"seconds": "s"
"months": "Μ",
"days": "μ",
"hours": "ω",
"minutes": "λ",
"seconds": "δ"
},
"auth": {
"signout": "Sign out"
"signout": "Αποσύνδεση"
},
"widget": {
"missing_type": "Λείπει ο τύπος widget: {{type}}",
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "Αναζήτηση…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "Μηχανή αναζήτησης: {{name}}",
"select_provider": "Επιλέξτε τις μηχανές αναζήτησης"
},
"resources": {
"cpu": "Επεξεργαστής",
@@ -66,24 +66,24 @@
"wlan_devices": "WLAN Συσκευές",
"lan_users": "LAN Χρήστες",
"wlan_users": "WLAN Χρήστες",
"up": "UP",
"up": "ΕΠΑΝΩ",
"down": "ΚΑΤΩ",
"wait": "Please wait",
"wait": "Παρακαλώ περιμένετε",
"empty_data": "Άγνωστη κατάσταση υποσυστήματος"
},
"unifi_drive": {
"healthy": "Healthy",
"healthy": "Υγειές",
"degraded": "Degraded",
"no_data": "No storage data available"
"no_data": "Δεν υπάρχουν διαθέσιμα δεδομένα χώρου αποθήκευσης"
},
"duplicati": {
"jobs": "Jobs",
"stored": "Stored",
"lastBackup": "Last Run",
"nextRun": "Next Run",
"running": "Running",
"warnings": "Warnings",
"errors": "Errors"
"jobs": "Εργασίες",
"stored": "Αποθηκευμένα",
"lastBackup": "Τελευταία εκτέλεση",
"nextRun": "Επόμενη εκτέλεση",
"running": "Εκτελείται",
"warnings": "Προειδοποιήσεις",
"errors": "Σφάλματα"
},
"docker": {
"rx": "RX",
@@ -99,10 +99,15 @@
"unhealthy": "Άρρωστο",
"not_found": "Δεν βρέθηκε",
"exited": "Έκλεισε",
"partial": "Μερικό"
"partial": "Μερικό",
"created": "Δημιουργήθηκε",
"paused": "Σε παύση",
"restarting": "Γίνεται επανεκκίνηση",
"removing": "Αφαιρείται",
"dead": "Νεκρό"
},
"ping": {
"error": "Error",
"error": "Σφάλμα",
"ping": "Ping",
"down": "Ping down",
"up": "Ping up",
@@ -110,11 +115,11 @@
},
"siteMonitor": {
"http_status": "Κατάσταση HTTP",
"error": "Error",
"error": "Σφάλμα",
"response": "Απόκριση",
"down": "Down",
"up": "Up",
"not_available": "Not Available"
"down": "Κάτω",
"up": "Πάνω",
"not_available": "Μη Διαθέσιμο"
},
"emby": {
"playing": "Παίζει",
@@ -127,22 +132,22 @@
"songs": "Τραγούδια"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs",
"albums": "Albums"
"playing": "Γίνεται αναπαραγωγή",
"transcoding": "Επανακωδικοποίηση",
"bitrate": "Ρυθμός μετάδοσης",
"no_active": "Δεν Υπάρχουν Ενεργές Ροές",
"movies": "Ταινίες",
"series": "Σειρές",
"episodes": "Επεισόδια",
"songs": "Τραγούδια",
"albums": "Άλμπουμ"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"offline": "Εκτός σύνδεσης",
"offline_alt": "Χωρίς Σύνδεση",
"online": "Συνδεδεμένοι",
"total": "Total",
"unknown": "Unknown"
"total": "Σύνολο",
"unknown": "Άγνωστο"
},
"evcc": {
"pv_power": "Παραγωγή",
@@ -163,7 +168,7 @@
"unread": "Μη Διαβασμένο"
},
"fritzbox": {
"connectionStatus": "Status",
"connectionStatus": "Κατάσταση",
"connectionStatusUnconfigured": "Μη Ρυθμισμένο",
"connectionStatusConnecting": "Κατάσταση Σύνδεσης",
"connectionStatusAuthenticating": "Ταυτοποίηση",
@@ -171,16 +176,16 @@
"connectionStatusDisconnecting": "Αποσύνδεση",
"connectionStatusDisconnected": "Αποσυνδέθηκε",
"connectionStatusConnected": "Συνδέθηκε",
"uptime": "Uptime",
"uptime": "Συνεχής λειτουργία",
"maxDown": "Μέγιστο Download",
"maxUp": "Μέγιστο Upload",
"down": "Down",
"up": "Up",
"down": "Κάτω",
"up": "Πάνω",
"received": "Ληφθέντα",
"sent": "Απεσταλμένα",
"externalIPAddress": "Εξωτερική IP",
"externalIPv6Address": "Ext. IPv6",
"externalIPv6Prefix": "Ext. IPv6-Prefix"
"externalIPv6Address": "Εξωτ. IPv6",
"externalIPv6Prefix": "Εξωτ. IPv6-Prefix"
},
"caddy": {
"upstreams": "Upstreams",
@@ -198,10 +203,10 @@
"passes": "Περάσματα"
},
"tautulli": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"playing": "Γίνεται αναπαραγωγή",
"transcoding": "Γίνεται επανακωδικοποίηση",
"bitrate": "Ρυθμός μετάδοσης",
"no_active": "Δεν Υπάρχουν Ενεργές Ροές",
"plex_connection_error": "Έλεγχος Σύνδεσης με Plex"
},
"tracearr": {
@@ -288,16 +293,16 @@
"queued": "Queued",
"movies": "Movies",
"queue": "Queue",
"unknown": "Unknown"
"unknown": "Άγνωστο"
},
"lidarr": {
"wanted": "Wanted",
"queued": "Queued",
"wanted": "Επιθυμητό",
"queued": "Σε αναμονή",
"artists": "Καλλιτέχνες"
},
"readarr": {
"wanted": "Wanted",
"queued": "Queued",
"wanted": "Επιθυμητό",
"queued": "Σε αναμονή",
"books": "Βιβλία"
},
"bazarr": {
@@ -310,16 +315,16 @@
"available": "Διαθέσιμο"
},
"seerr": {
"pending": "Pending",
"approved": "Approved",
"available": "Available",
"completed": "Completed",
"processing": "Processing",
"issues": "Open Issues"
"pending": "Σε εκκρεμότητα",
"approved": "Εγκρίθηκε",
"available": "Διαθέσιμα",
"completed": "Ολοκληρώθηκε",
"processing": "Σε επεξεργασία",
"issues": "Ανοιχτά θέματα"
},
"netalertx": {
"total": "Total",
"connected": "Connected",
"total": "Σύνολο",
"connected": "Σε σύνδεση",
"new_devices": "Νέες συσκευές",
"down_alerts": "Ειδοποιήσεις offline"
},
@@ -330,45 +335,45 @@
"gravity": "Gravity"
},
"adguard": {
"queries": "Queries",
"blocked": "Blocked",
"queries": "Ερωτήματα",
"blocked": "Αποκλεισμένα",
"filtered": "Φιλτραρισμένα",
"latency": "Καθυστέρηση"
},
"speedtest": {
"upload": "Upload",
"download": "Download",
"upload": "Αποστολή",
"download": "Λήψη",
"ping": "Ping"
},
"portainer": {
"running": "Running",
"running": "Εκτελείται",
"stopped": "Σταματημένο",
"total": "Total"
"total": "Σύνολο"
},
"suwayomi": {
"download": "Downloaded",
"nondownload": "Non-Downloaded",
"read": "Read",
"unread": "Unread",
"downloadedread": "Downloaded & Read",
"downloadedunread": "Downloaded & Unread",
"nondownloadedread": "Non-Downloaded & Read",
"nondownloadedunread": "Non-Downloaded & Unread"
"download": "Ελήφθησαν",
"nondownload": "Δεν Ελήφθησαν",
"read": "Διαβάστηκε",
"unread": "Μη αναγνωσμένα",
"downloadedread": "Ληφθέν & Αναγνωσμένο",
"downloadedunread": "Ληφθέν & Μη Αναγνωσμένο",
"nondownloadedread": "Μη Ληφθέν & Αναγνωσμένο",
"nondownloadedunread": "Μη Ληφθέν & Μη Αναγνωσμένο"
},
"tailscale": {
"address": "Διεύθυνση",
"expires": "Λήγει",
"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",
"user": "Χρήστης",
"hostname": "Όνομα υπολογιστή",
"name": "Όνομα",
"client_version": "Έκδοση Πελάτη",
"os": "Λειτουργικό",
"created": "Δημιουργήθηκε",
"authorized": "Εξουσιοδοτημένο",
"is_external": "Είναι Εξωτερική",
"update_available": "Διαθέσιμη ενημέρωση",
"tags": "Ετικέτες",
"last_seen": "Τελευταία Σύνδεση",
"now": "Τώρα",
"years": "{{number}}χρόνια",
@@ -378,20 +383,20 @@
"minutes": "{{number}}λεπτά",
"seconds": "{{number}}δευτερόλεπτα",
"ago": "{{value}} πρίν",
"true": "Yes",
"false": "No"
"true": "Ναι",
"false": "Όχι"
},
"technitium": {
"totalQueries": "Queries",
"totalNoError": "Success",
"totalServerFailure": "Failures",
"totalNxDomain": "NX Domains",
"totalRefused": "Refused",
"totalAuthoritative": "Authoritative",
"totalQueries": "Ερωτήματα",
"totalNoError": "Επιτυχία",
"totalServerFailure": "Σφάλματα",
"totalNxDomain": "Τομείς NX",
"totalRefused": "Απορρίφθηκαν",
"totalAuthoritative": "Εξουσιοδοτημένο",
"totalRecursive": "Recursive",
"totalCached": "Cached",
"totalBlocked": "Blocked",
"totalDropped": "Dropped",
"totalBlocked": "Αποκλεισμένα",
"totalDropped": "Απορρίφθηκαν",
"totalClients": "Πελάτες"
},
"tdarr": {
@@ -524,75 +529,75 @@
"2-day": "Αραιές Νεφώσεις",
"2-night": "Partly Cloudy",
"3-day": "Συννεφιές",
"3-night": "Cloudy",
"3-night": "Συννεφιά",
"45-day": "Ομίχλη",
"45-night": "Foggy",
"48-day": "Foggy",
"48-night": "Foggy",
"45-night": "Ομίχλη",
"48-day": "Ομίχλη",
"48-night": "Ομίχλη",
"51-day": "Ψιλόβροχο",
"51-night": "Light Drizzle",
"51-night": "Ελαφρύ Ψιλόβροχο",
"53-day": "Ψιλόβροχο",
"53-night": "Drizzle",
"55-day": "Heavy Drizzle",
"55-night": "Heavy Drizzle",
"56-day": "Light Freezing Drizzle",
"56-night": "Light Freezing Drizzle",
"53-night": "Ψιλόβροχο",
"55-day": "Βαρύ Ψιλόβροχο",
"55-night": "Βαρύ Ψιλόβροχο",
"56-day": "Ελαφρύ Παγωμένο Ψιλόβροχο",
"56-night": "Ελαφρύ Παγωμένο Ψιλόβροχο",
"57-day": "Παγωμένο ψιχάλισμα",
"57-night": "Freezing Drizzle",
"57-night": "Παγωμένο ψιλόβροχο",
"61-day": "Ψιλόβροχο",
"61-night": "Light Rain",
"61-night": "Ελαφριά Βροχή",
"63-day": "Βροχή",
"63-night": "Rain",
"63-night": "Βροχή",
"65-day": "Δυνατή βροχή",
"65-night": "Heavy Rain",
"65-night": "Δυνατή βροχή",
"66-day": "Παγωμένη βροχή",
"66-night": "Freezing Rain",
"67-day": "Freezing Rain",
"67-night": "Freezing Rain",
"66-night": "Παγωμένη βροχή",
"67-day": "Παγωμένη βροχή",
"67-night": "Παγωμένη βροχή",
"71-day": "Ελαφριά Χιονόπτωση",
"71-night": "Light Snow",
"71-night": "Ελαφρά Χιονόπτωση",
"73-day": "Χιόνι",
"73-night": "Snow",
"73-night": "Χιόνι",
"75-day": "Ισχυρή χιονόπτωση",
"75-night": "Heavy Snow",
"75-night": "Ισχυρή χιονόπτωση",
"77-day": "Κόκκοι Χιονιού",
"77-night": "Snow Grains",
"77-night": "Χιονάκι",
"80-day": "Ασθενείς βροχές",
"80-night": "Light Showers",
"80-night": "Ασθενείς βροχές",
"81-day": "Βροχοπτώσεις",
"81-night": "Showers",
"81-night": "Βροχοπτώσεις",
"82-day": "Ισχυρές βροχοπτώσεις",
"82-night": "Heavy Showers",
"82-night": "Ισχυρές βροχοπτώσεις",
"85-day": "Χιονοπτώσεις",
"85-night": "Snow Showers",
"86-day": "Snow Showers",
"86-night": "Snow Showers",
"85-night": "Χιονοπτώσεις",
"86-day": "Χιονοπτώσεις",
"86-night": "Χιονοπτώσεις",
"95-day": "Καταιγίδα",
"95-night": "Thunderstorm",
"95-night": "Καταιγίδα",
"96-day": "Καταιγίδα Με Χαλάζι",
"96-night": "Thunderstorm With Hail",
"99-day": "Thunderstorm With Hail",
"99-night": "Thunderstorm With Hail"
"96-night": "Καταιγίδα Με Χαλάζι",
"99-day": "Καταιγίδα Με Χαλάζι",
"99-night": "Καταιγίδα Με Χαλάζι"
},
"homebridge": {
"available_update": "Σύστημα",
"updates": "Ενημερώσεις",
"update_available": "Διαθέσιμη ενημέρωση",
"up_to_date": "Ενημερωμένο",
"child_bridges": "Child Bridges",
"child_bridges": "Θυγατρικές Γέφυρες",
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"up": "Πάνω",
"pending": "Σε εκκρεμότητα",
"down": "Κάτω",
"ok": "Οκ"
},
"healthchecks": {
"new": "New",
"up": "Up",
"grace": "In Grace Period",
"down": "Down",
"paused": "Paused",
"status": "Status",
"new": "Νέο",
"up": "Πάνω",
"grace": "Σε Περίοδο Χάριτος",
"down": "Κάτω",
"paused": "Σε παύση",
"status": "Κατάσταση",
"last_ping": "Τελευταίο Ping",
"never": "Δεν υπάρχουν ping ακόμα"
},
@@ -602,26 +607,26 @@
"containers_failed": "Απέτυχε"
},
"autobrr": {
"approvedPushes": "Approved",
"approvedPushes": "Εγκρίθηκε",
"rejectedPushes": "Απορρίφθηκε",
"filters": "Φίλτρα",
"indexers": "Indexers"
"indexers": "Ευρετήρια"
},
"tubearchivist": {
"downloads": "Queue",
"downloads": "Αναμονή",
"videos": "Βίντεο",
"channels": "Κανάλια",
"playlists": "Λίστες αναπαραγωγής"
},
"truenas": {
"load": "Φόρτος Συστήματος",
"uptime": "Uptime",
"alerts": "Alerts"
"uptime": "Συνεχής λειτουργία",
"alerts": "Ειδοποιήσεις"
},
"pyload": {
"speed": "Ταχύτητα",
"active": "Active",
"queue": "Queue",
"active": "Ενεργό",
"queue": "Αναμονή",
"total": "Total"
},
"gluetun": {
@@ -730,56 +735,56 @@
"immich": {
"users": "Users",
"photos": "Φωτογραφίες",
"videos": "Videos",
"videos": "Βίντεο",
"storage": "Αποθηκευτικός χώρος"
},
"uptimekuma": {
"up": "Online τοποθεσίες",
"down": "Offline τοποθεσίες",
"uptime": "Uptime",
"uptime": "Συνεχής λειτουργία",
"incident": "Περιστατικό",
"m": "m"
"m": "λ"
},
"atsumeru": {
"series": "Series",
"archives": "Archives",
"chapters": "Chapters",
"series": "Σειρές",
"archives": "Αρχεία",
"chapters": "Κεφάλαια",
"categories": "Κατηγορίες"
},
"komga": {
"libraries": "Libraries",
"series": "Series",
"books": "Books"
"libraries": "Βιβλιοθήκες",
"series": "Σειρές",
"books": "Βιβλία"
},
"diskstation": {
"days": "Days",
"uptime": "Uptime",
"volumeAvailable": "Available"
"days": "Ημέρες",
"uptime": "Συνεχής λειτουργία",
"volumeAvailable": "Διαθέσιμα"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
"channels": "Κανάλια",
"streams": "Ροές"
},
"mylar": {
"series": "Series",
"issues": "Issues",
"wanted": "Wanted"
"series": "Σειρές",
"issues": "Προβλήματα",
"wanted": "Επιθυμητά"
},
"photoprism": {
"albums": "Albums",
"photos": "Photos",
"videos": "Videos",
"albums": "Άλμπουμ",
"photos": "Φωτογραφίες",
"videos": "Βίντεο",
"people": "Άνθρωποι"
},
"fileflows": {
"queue": "Queue",
"processing": "Processing",
"processed": "Processed",
"queue": "Αναμονή",
"processing": "Σε επεξεργασία",
"processed": "Επεξεργασμένα",
"time": "Ώρα"
},
"firefly": {
"networth": "Net Worth",
"budget": "Budget"
"networth": "Καθαρή αξία",
"budget": "Προϋπολογισμός"
},
"grafana": {
"dashboards": "Πίνακας Ελέγχου",
@@ -796,15 +801,15 @@
"numshares": "Κοινόχρηστα στοιχεία"
},
"kopia": {
"status": "Status",
"status": "Κατάσταση",
"size": "Μέγεθος",
"lastrun": "Τελευταία εκτέλεση",
"nextrun": "Επόμενη εκτέλεση",
"failed": "Failed"
"failed": "Απέτυχε"
},
"unmanic": {
"active_workers": "Ενεργοί χρήστες",
"total_workers": "Total Workers",
"total_workers": "Σύνολο Εργατών",
"records_total": "Μήκος Ουράς"
},
"pterodactyl": {
@@ -817,21 +822,21 @@
"targets_total": "Συνολικοί Στόχοι"
},
"gatus": {
"up": "Sites Up",
"down": "Sites Down",
"uptime": "Uptime"
"up": "Ιστοσελίδες Πάνω",
"down": "Ιστοσελίδες Κάτω",
"uptime": "Συνεχής λειτουργία"
},
"ghostfolio": {
"gross_percent_today": "Today",
"gross_percent_today": "Σήμερα",
"gross_percent_1y": "Ένας χρόνος",
"gross_percent_max": "Διαχρονικά",
"net_worth": "Net Worth"
"net_worth": "Καθαρή αξία"
},
"audiobookshelf": {
"podcasts": "Podcasts",
"books": "Books",
"books": "Βιβλία",
"podcastsDuration": "Διάρκεια",
"booksDuration": "Duration"
"booksDuration": "Διάρκεια"
},
"homeassistant": {
"people_home": "Σύνολο ανθρώπων στο σπίτι",
@@ -840,33 +845,33 @@
},
"whatsupdocker": {
"monitoring": "Παρακολούθηση",
"updates": "Updates"
"updates": "Ενημερώσεις"
},
"calibreweb": {
"books": "Books",
"books": "Βιβλία",
"authors": "Συντάκτες",
"categories": "Categories",
"series": "Series"
"categories": "Κατηγορίες",
"series": "Σειρές"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
"libraries": "Βιβλιοθήκες",
"books": "Βιβλία",
"reading": "Ανάγνωση",
"finished": "Ολοκληρώθηκε"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
"downloadTotalBytes": "Size",
"downloadSpeed": "Speed"
"downloadCount": "Αναμονή",
"downloadBytesRemaining": "Απομένουν",
"downloadTotalBytes": "Μέγεθος",
"downloadSpeed": "Ταχύτητα"
},
"kavita": {
"seriesCount": "Series",
"totalFiles": "Files"
"seriesCount": "Σειρές",
"totalFiles": "Αρχεία"
},
"azuredevops": {
"result": "Αποτέλεσμα",
"status": "Status",
"status": "Κατάσταση",
"buildId": "Build ID",
"succeeded": "Πέτυχε",
"notStarted": "Δεν ξεκίνησε",
@@ -951,7 +956,7 @@
"domains": "Domains",
"mailboxes": "Mailboxes",
"mails": "Mails",
"storage": "Storage"
"storage": "Αποθηκευτικός χώρος"
},
"maintainerr": {
"itemsHandled": "Items Handled",
@@ -962,61 +967,61 @@
"reclaimable": "Reclaimable",
"movieReclaimable": "Movie Reclaimable",
"showReclaimable": "Show Reclaimable",
"totalCapacity": "Total Capacity"
"totalCapacity": "Συνολική χωρητικότητα"
},
"netdata": {
"warnings": "Warnings",
"criticals": "Criticals"
"warnings": "Προειδοποιήσεις",
"criticals": "Κρίσιμα"
},
"ntfy": {
"title": "Title",
"priority": "Priority",
"lastReceived": "Last Received",
"message": "Message",
"tags": "Tags",
"none": "None",
"min": "Min",
"low": "Low",
"default": "Default",
"high": "High",
"urgent": "Urgent"
"title": "Τίτλος",
"priority": "Προτεραιότητα",
"lastReceived": "Τελευταία Ληφθέντα",
"message": "Μήνυμα",
"tags": "Ετικέτες",
"none": "Κανένα",
"min": "Ελάχιστο",
"low": "Χαμηλό",
"default": "Προεπιλογή",
"high": "Υψηλό",
"urgent": "Επείγον"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"photos": "Photos",
"species": "Species"
"events": "Συμβάντα",
"plants": "Φυτά",
"photos": "Φωτογραφίες",
"species": "Είδη"
},
"gitea": {
"notifications": "Notifications",
"issues": "Issues",
"notifications": "Ειδοποιήσεις",
"issues": "Προβλήματα",
"pulls": "Pull Requests",
"repositories": "Repositories"
"repositories": "Αποθετήρια"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"movies": "Movies",
"tags": "Tags",
"oCount": "O Count"
"scenes": "Σκηνές",
"scenesPlayed": "Σκηνές Που Παίχτηκαν",
"playCount": "Συνολικές Αναπαραγωγές",
"playDuration": "Ώρα Παρακολούθησης",
"sceneSize": "Μέγεθος Σκηνών",
"sceneDuration": "Διάρκεια Σκηνών",
"images": "Εικόνες",
"imageSize": "Μέγεθος Εικόνων",
"galleries": "Συλλογές",
"performers": "Καλλιτέχνες",
"studios": "Στούντιο",
"movies": "Ταινίες",
"tags": "Ετικέτες",
"oCount": "Μετρητής O"
},
"tandoor": {
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
"users": "Χρήστες",
"recipes": "Συνταγές",
"keywords": "Λέξεις-κλειδιά"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"items": "Στοιχεία",
"totalWithWarranty": "Με Εγγύηση",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
@@ -1079,72 +1084,72 @@
"vikunja": {
"projects": "Active Projects",
"tasks7d": "Tasks Due This Week",
"tasksOverdue": "Overdue Tasks",
"tasksInProgress": "Tasks In Progress"
"tasksOverdue": "Εκπρόθεσμες Εργασίες",
"tasksInProgress": "Εργασίες Σε Εξέλιξη"
},
"headscale": {
"name": "Name",
"address": "Address",
"last_seen": "Last Seen",
"status": "Status",
"online": "Online",
"offline": "Offline"
"name": "Όνομα",
"address": "Διεύθυνση",
"last_seen": "Τελευταία Σύνδεση",
"status": "Κατάσταση",
"online": "Σε Σύνδεση",
"offline": "Χωρίς Σύνδεση"
},
"beszel": {
"name": "Name",
"systems": "Systems",
"up": "Up",
"down": "Down",
"paused": "Paused",
"pending": "Pending",
"status": "Status",
"updated": "Updated",
"name": "Όνομα",
"systems": "Συστήματα",
"up": "Πάνω",
"down": "Κάτω",
"paused": "Σε παύση",
"pending": "Σε εκκρεμότητα",
"status": "Κατάσταση",
"updated": "Ενημερώθηκε",
"cpu": "CPU",
"memory": "MEM",
"disk": "Disk",
"network": "NET"
"disk": "Δίσκος",
"network": "Δίκτυο"
},
"argocd": {
"apps": "Apps",
"synced": "Synced",
"outOfSync": "Out Of Sync",
"healthy": "Healthy",
"apps": "Εφαρμογές",
"synced": "Συγχρονισμένα",
"outOfSync": "Εκτός Συγχρονισμού",
"healthy": "Υγιή",
"degraded": "Degraded",
"progressing": "Progressing",
"missing": "Missing",
"suspended": "Suspended"
"progressing": "Σε εξέλιξη",
"missing": "Λείπουν",
"suspended": "Σε αναστολή"
},
"spoolman": {
"loading": "Loading"
"loading": "Γίνεται φόρτωση"
},
"gitlab": {
"groups": "Groups",
"issues": "Issues",
"merges": "Merge Requests",
"groups": "Ομάδες",
"issues": "Προβλήματα",
"merges": "Αιτήματα Συγχώνευσης",
"projects": "Projects"
},
"apcups": {
"status": "Status",
"load": "Load",
"bcharge": "Battery Charge",
"timeleft": "Time Left"
"status": "Κατάσταση",
"load": "Φόρτωση",
"bcharge": "Φόρτιση Μπαταρίας",
"timeleft": "Χρόνος που απομένει"
},
"karakeep": {
"bookmarks": "Bookmarks",
"favorites": "Favorites",
"archived": "Archived",
"highlights": "Highlights",
"lists": "Lists",
"tags": "Tags"
"bookmarks": "Σελιδοδείκτες",
"favorites": "Αγαπημένα",
"archived": "Αρχειοθετημένα",
"highlights": "Επισημάνσεις",
"lists": "Λίστες",
"tags": "Ετικέτες"
},
"slskd": {
"slskStatus": "Network",
"connected": "Connected",
"disconnected": "Disconnected",
"updateStatus": "Update",
"update_yes": "Available",
"update_no": "Up to Date",
"downloads": "Downloads",
"slskStatus": "Δίκτυο",
"connected": "Σε σύνδεση",
"disconnected": "Αποσυνδέθηκε",
"updateStatus": "Ενημέρωση",
"update_yes": "Διαθέσιμα",
"update_no": "Ενημερωμένο",
"downloads": "Λήψεις",
"uploads": "Uploads",
"sharedFiles": "Files"
},
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Malsana",
"not_found": "Ne trovita",
"exited": "Eliris",
"partial": "Parta"
"partial": "Parta",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "No saludable",
"not_found": "No encontrado",
"exited": "Terminado",
"partial": "Parcial"
"partial": "Parcial",
"created": "Creado",
"paused": "Pausado",
"restarting": "Reiniciando",
"removing": "Eliminando",
"dead": "Muerto"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Mauvaise santé",
"not_found": "Inconnu",
"exited": "Arrêté",
"partial": "Partiel"
"partial": "Partiel",
"created": "Créé",
"paused": "En pause",
"restarting": "Redémarrage",
"removing": "Suppression",
"dead": "Mort"
},
"ping": {
"error": "Erreur",
+64 -59
View File
@@ -21,7 +21,7 @@
"seconds": "שניות"
},
"auth": {
"signout": "Sign out"
"signout": "התנתק"
},
"widget": {
"missing_type": "סוג ווידג'ט חסר: {{type}}",
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "חיפוש…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "מנוע חיפוש: {{name}}",
"select_provider": "בחר מנוע חיפוש"
},
"resources": {
"cpu": "מעבד",
@@ -72,18 +72,18 @@
"empty_data": "מצב תת-מערכת לא ידוע"
},
"unifi_drive": {
"healthy": "Healthy",
"degraded": "Degraded",
"no_data": "No storage data available"
"healthy": "בריא",
"degraded": "ירוד",
"no_data": "אין אחסון זמין"
},
"duplicati": {
"jobs": "Jobs",
"stored": "Stored",
"jobs": "משימות",
"stored": "שמור",
"lastBackup": "Last Run",
"nextRun": "Next Run",
"running": "Running",
"warnings": "Warnings",
"errors": "Errors"
"warnings": "הזהרות",
"errors": "שגיאות"
},
"docker": {
"rx": "RX",
@@ -99,7 +99,12 @@
"unhealthy": "לא בריא",
"not_found": "לא נמצא",
"exited": "יצא",
"partial": "חלקי"
"partial": "חלקי",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "שגיאה",
@@ -127,15 +132,15 @@
"songs": "שירים"
},
"jellyfin": {
"playing": "Playing",
"playing": "מנגן",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs",
"albums": "Albums"
"no_active": "אין מדיה פעילה",
"movies": "סרטים",
"series": "סדרות",
"episodes": "פרקים",
"songs": "שירים",
"albums": "אלבומים"
},
"esphome": {
"offline": "מכובה",
@@ -310,11 +315,11 @@
"available": "זמין"
},
"seerr": {
"pending": "Pending",
"approved": "Approved",
"available": "Available",
"completed": "Completed",
"processing": "Processing",
"pending": "ממתין",
"approved": "מאושר",
"available": "זמין",
"completed": "הסתיים",
"processing": "מעבד",
"issues": "Open Issues"
},
"netalertx": {
@@ -359,16 +364,16 @@
"address": "כתובת",
"expires": "תאריך תפוגה",
"never": "אף פעם",
"user": "User",
"user": "משתמש",
"hostname": "Hostname",
"name": "Name",
"name": "שם",
"client_version": "Client Version",
"os": "OS",
"created": "Created",
"authorized": "Authorized",
"is_external": "Is External",
"update_available": "Update Available",
"tags": "Tags",
"os": "מערכת הפעלה",
"created": "יוצר",
"authorized": "מורשה",
"is_external": "האם חיצוני",
"update_available": "עדכון זמין",
"tags": "תגיות",
"last_seen": "נראה לאחרונה",
"now": "כעת",
"years": "{{number}}y",
@@ -378,8 +383,8 @@
"minutes": "{{number}}m",
"seconds": "{{number}}s",
"ago": "{{value}} Ago",
"true": "Yes",
"false": "No"
"true": "כן",
"false": "לא"
},
"technitium": {
"totalQueries": "שאילתות",
@@ -484,7 +489,7 @@
},
"pulse": {
"nodes": "Nodes",
"vms": "VMs",
"vms": "מכונות וירטואליות",
"lxcs": "LXCs"
},
"glances": {
@@ -584,7 +589,7 @@
"up": "למעלה",
"pending": "ממתין",
"down": "למטה",
"ok": "Ok"
"ok": "אוקיי"
},
"healthchecks": {
"new": "חדש",
@@ -653,9 +658,9 @@
},
"pangolin": {
"orgs": "Orgs",
"sites": "Sites",
"resources": "Resources",
"targets": "Targets",
"sites": "אתרים",
"resources": "משאבים",
"targets": "מטרות",
"traffic": "Traffic",
"in": "In",
"out": "Out"
@@ -757,7 +762,7 @@
"volumeAvailable": "זמין"
},
"dispatcharr": {
"channels": "Channels",
"channels": "ערוצים",
"streams": "Streams"
},
"mylar": {
@@ -1182,9 +1187,9 @@
"nextRenewingSubscription": "תשלום הבא"
},
"unraid": {
"STARTED": "Started",
"STOPPED": "Stopped",
"NEW_ARRAY": "New Array",
"STARTED": "התחיל",
"STOPPED": "נעצר",
"NEW_ARRAY": "מערך חדש",
"RECON_DISK": "Reconstructing Disk",
"DISABLE_DISK": "Disk Disabled",
"SWAP_DSBL": "Swap Disable",
@@ -1196,31 +1201,31 @@
"notifications": "Notifications",
"status": "Status",
"cpu": "CPU",
"memoryUsed": "Memory Used",
"memoryAvailable": "Memory Available",
"memoryUsed": "זיכרון בשימוש",
"memoryAvailable": "זיכרון זמין",
"arrayUsed": "Array Used",
"arrayFree": "Array Free",
"poolUsed": "{{pool}} Used",
"poolFree": "{{pool}} Free"
},
"backrest": {
"num_plans": "Plans",
"num_success_30": "Successes",
"num_failure_30": "Failures",
"num_plans": "תוכניות",
"num_success_30": "הצלחות",
"num_failure_30": "כשלונות",
"num_success_latest": "Succeeding",
"num_failure_latest": "Failing",
"bytes_added_30": "Bytes Added"
},
"yourspotify": {
"songs": "Songs",
"time": "Time",
"artists": "Artists"
"songs": "שירים",
"time": "זמן",
"artists": "אומנים"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"images_unused": "לא בשימוש",
"environment_required": "Environment ID Required"
},
"dockhand": {
@@ -1230,7 +1235,7 @@
"memory": "Memory",
"images": "Images",
"volumes": "Volumes",
"events_today": "Events Today",
"events_today": "אירועים היום",
"pending_updates": "Pending Updates",
"stacks": "Stacks",
"paused": "Paused",
@@ -1238,16 +1243,16 @@
"environment_not_found": "Environment Not Found"
},
"sparkyfitness": {
"eaten": "Eaten",
"burned": "Burned",
"remaining": "Remaining",
"steps": "Steps"
"eaten": "נאכלו",
"burned": "נשרפו",
"remaining": "נותרו",
"steps": "צעדים"
},
"syncthing": {
"connected": "Connected",
"synced": "Synced",
"errors": "Errors",
"storage": "Storage"
"synced": "מסונכרן",
"errors": "שגיאות",
"storage": "אחסון"
},
"sportarr": {
"wanted": "Wanted",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Nefunkcionalno",
"not_found": "Nepronađeno",
"exited": "Zatoreno",
"partial": "Djelomično"
"partial": "Djelomično",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Greška",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Egészségtelen",
"not_found": "Nem található",
"exited": "Kilépett",
"partial": "Részleges"
"partial": "Részleges",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Hiba",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Tidak Lancar",
"not_found": "Tidak Ditemukan",
"exited": "Terkeluar",
"partial": "Sebagian"
"partial": "Sebagian",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Non sano",
"not_found": "Non trovato",
"exited": "Uscito",
"partial": "Parziale"
"partial": "Parziale",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Errore",
+152 -147
View File
@@ -39,9 +39,9 @@
"wait": "お待ちください"
},
"search": {
"placeholder": "検索",
"placeholder": "検索 ...",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"select_provider": "検索エンジンを選択"
},
"resources": {
"cpu": "CPU",
@@ -99,7 +99,12 @@
"unhealthy": "非健全",
"not_found": "不明",
"exited": "停止しました",
"partial": "部分的"
"partial": "部分的",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "エラー",
@@ -127,18 +132,18 @@
"songs": "曲"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs",
"albums": "Albums"
"playing": "再生中",
"transcoding": "変換中",
"bitrate": "ビットレート",
"no_active": "アクティブ・ストリーム無し",
"movies": "映画",
"series": "シリーズ",
"episodes": "エピソード",
"songs": "",
"albums": "アルバム"
},
"esphome": {
"offline": "",
"offline": "オフライン ",
"offline_alt": "オフライン",
"online": "オンライン",
"total": "Total",
@@ -236,18 +241,18 @@
},
"rutorrent": {
"active": "アクティブ",
"upload": "Upload",
"download": "Download"
"upload": "アップロード",
"download": "ダウンロード"
},
"transmission": {
"download": "Download",
"upload": "Upload",
"download": "ダウンロード",
"upload": "アップロード",
"leech": "Leech",
"seed": "Seed"
},
"qbittorrent": {
"download": "Download",
"upload": "Upload",
"download": "ダウンロード",
"upload": "アップロード",
"leech": "Leech",
"seed": "Seed"
},
@@ -280,7 +285,7 @@
"queued": "待機中",
"series": "Series",
"queue": "Queue",
"unknown": "Unknown"
"unknown": "不明"
},
"radarr": {
"wanted": "Wanted",
@@ -360,15 +365,15 @@
"expires": "失効",
"never": "なし",
"user": "User",
"hostname": "Hostname",
"name": "Name",
"client_version": "Client Version",
"hostname": "ホスト名",
"name": "名前",
"client_version": "クライアントバージョン",
"os": "OS",
"created": "Created",
"authorized": "Authorized",
"created": "作成済み",
"authorized": "承認済み",
"is_external": "Is External",
"update_available": "Update Available",
"tags": "Tags",
"update_available": "アップデートが利用できます",
"tags": "タグ",
"last_seen": "最終日時",
"now": "現在",
"years": "{{number}}年",
@@ -378,11 +383,11 @@
"minutes": "{{number}}分",
"seconds": "{{number}}秒",
"ago": "{{value}} 前",
"true": "Yes",
"false": "No"
"true": "はい",
"false": "いいえ"
},
"technitium": {
"totalQueries": "Queries",
"totalQueries": "クエリ",
"totalNoError": "成功",
"totalServerFailure": "失敗",
"totalNxDomain": "NXドメイン",
@@ -390,7 +395,7 @@
"totalAuthoritative": "正式",
"totalRecursive": "再帰的",
"totalCached": "キャッシュ済み",
"totalBlocked": "Blocked",
"totalBlocked": "ブロック中",
"totalDropped": "ドロップ済み",
"totalClients": "クライアント"
},
@@ -406,13 +411,13 @@
"middleware": "ミドルウェア"
},
"trilium": {
"version": "Version",
"notesCount": "Notes",
"dbSize": "Database Size",
"unknown": "Unknown"
"version": "バージョン",
"notesCount": "メモ",
"dbSize": "データベースサイズ",
"unknown": "不明"
},
"navidrome": {
"nothing_streaming": "No Active Streams",
"nothing_streaming": "アクティブストリーム無し",
"please_wait": "お待ちください"
},
"npm": {
@@ -477,7 +482,7 @@
"authorizationsLast24H": "Auths (24h)"
},
"proxmox": {
"mem": "MEM",
"mem": "メモリ",
"cpu": "CPU",
"lxc": "LXC",
"vms": "VM"
@@ -489,17 +494,17 @@
},
"glances": {
"cpu": "CPU",
"load": "Load",
"wait": "Please wait",
"temp": "TEMP",
"load": "負荷",
"wait": "お待ちください",
"temp": "温度",
"_temp": "温度",
"warn": "警告",
"uptime": "UP",
"total": "Total",
"free": "Free",
"used": "Used",
"days": "d",
"hours": "h",
"uptime": "稼働時間",
"total": "合計",
"free": "空き容量",
"used": "使用済み",
"days": "",
"hours": "",
"crit": "クリティカル",
"read": "Read",
"write": "書き込み",
@@ -540,39 +545,39 @@
"57-day": "着氷性の小雨",
"57-night": "Freezing Drizzle",
"61-day": "小雨",
"61-night": "Light Rain",
"61-night": "小雨",
"63-day": "雨",
"63-night": "Rain",
"63-night": "",
"65-day": "大雨",
"65-night": "Heavy Rain",
"65-night": "大雨",
"66-day": "着氷性の雨",
"66-night": "Freezing Rain",
"67-day": "Freezing Rain",
"67-night": "Freezing Rain",
"66-night": "着氷性の雨",
"67-day": "着氷性の雨",
"67-night": "着氷性の雨",
"71-day": "小雪",
"71-night": "Light Snow",
"71-night": "小雪",
"73-day": "雪",
"73-night": "Snow",
"73-night": "",
"75-day": "大雪",
"75-night": "Heavy Snow",
"77-day": "霧雪",
"77-night": "Snow Grains",
"80-day": "弱いにわか雨",
"80-night": "Light Showers",
"80-night": "弱いにわか雨",
"81-day": "にわか雨",
"81-night": "Showers",
"81-night": "にわか雨",
"82-day": "強いにわか雨",
"82-night": "Heavy Showers",
"82-night": "強いにわか雨",
"85-day": "にわか雪",
"85-night": "Snow Showers",
"86-day": "Snow Showers",
"86-night": "Snow Showers",
"85-night": "にわか雪",
"86-day": "にわか雪",
"86-night": "にわか雪",
"95-day": "雷雨",
"95-night": "Thunderstorm",
"95-night": "雷雨",
"96-day": "雷雨・ひょう",
"96-night": "Thunderstorm With Hail",
"99-day": "Thunderstorm With Hail",
"99-night": "Thunderstorm With Hail"
"96-night": "雹を伴う雷雨",
"99-day": "雹を伴う雷雨",
"99-night": "雹を伴う雷雨"
},
"homebridge": {
"available_update": "システム",
@@ -640,7 +645,7 @@
"signalQuality": "クオリティ",
"symbolQuality": "Quality",
"networkRate": "Bitrate",
"clientIP": "クライアント IP"
"clientIP": "クライアントIP"
},
"scrutiny": {
"passed": "合格",
@@ -656,7 +661,7 @@
"sites": "Sites",
"resources": "Resources",
"targets": "Targets",
"traffic": "Traffic",
"traffic": "トラフィック",
"in": "In",
"out": "Out"
},
@@ -669,7 +674,7 @@
"low_battery": "バッテリー残量低下"
},
"nextdns": {
"wait": "Please Wait",
"wait": "お待ちください",
"no_devices": "デバイス データを受信していません"
},
"mikrotik": {
@@ -690,7 +695,7 @@
"limit": "リミット"
},
"opnsense": {
"cpu": "CPU Load",
"cpu": "CPU負荷",
"memory": "アクティブ・メモリ",
"wanUpload": "WANアップロード",
"wanDownload": "WANダウンロード"
@@ -702,14 +707,14 @@
"layers": "レイヤー"
},
"octoprint": {
"printer_state": "Status",
"printer_state": "ステータス",
"temp_tool": "ツール温度",
"temp_bed": "ベッド温度",
"job_completion": "完了"
},
"cloudflared": {
"origin_ip": "オリジンIP",
"status": "Status"
"status": "ステータス"
},
"pfsense": {
"load": "読み込み平均",
@@ -728,17 +733,17 @@
"memory_usage": "メモリ"
},
"immich": {
"users": "Users",
"users": "ユーザ",
"photos": "写真",
"videos": "Videos",
"videos": "ビデオ",
"storage": "ストレージ"
},
"uptimekuma": {
"up": "サイトUp",
"down": "サイトDown",
"uptime": "Uptime",
"uptime": "稼働時間",
"incident": "事件",
"m": "m"
"m": ""
},
"atsumeru": {
"series": "Series",
@@ -767,8 +772,8 @@
},
"photoprism": {
"albums": "Albums",
"photos": "Photos",
"videos": "Videos",
"photos": "写真",
"videos": "動画",
"people": "人"
},
"fileflows": {
@@ -879,12 +884,12 @@
},
"gamedig": {
"status": "Status",
"online": "Online",
"offline": "Offline",
"online": "オンライン",
"offline": "オフライン ",
"name": "名前",
"map": "マップ",
"currentPlayers": "現在のプレーヤー",
"players": "Players",
"players": "プレイヤー",
"maxPlayers": "最大プレイヤー数",
"bots": "ボット",
"ping": "Ping"
@@ -897,21 +902,21 @@
},
"mealie": {
"recipes": "レシピ",
"users": "Users",
"categories": "Categories",
"users": "ユーザ",
"categories": "カテゴリ",
"tags": "タグ"
},
"openmediavault": {
"downloading": "ダウンロード中",
"total": "Total",
"running": "Running",
"stopped": "Stopped",
"total": "合計",
"running": "実行中",
"stopped": "停止中",
"passed": "Passed",
"failed": "Failed"
},
"openwrt": {
"uptime": "Uptime",
"cpuLoad": "CPU 平均負荷(5 分)",
"cpuLoad": "CPU 平均負荷(5分)",
"up": "Up",
"down": "Down",
"bytesTx": "送信済み",
@@ -919,7 +924,7 @@
},
"uptimerobot": {
"status": "Status",
"uptime": "Uptime",
"uptime": "稼働時間",
"lastDown": "最後のダウンタイム",
"downDuration": "ダウンタイム時間",
"sitesUp": "Sites Up",
@@ -949,9 +954,9 @@
},
"mailcow": {
"domains": "Domains",
"mailboxes": "Mailboxes",
"mails": "Mails",
"storage": "Storage"
"mailboxes": "受信箱",
"mails": "メール",
"storage": "ストレージ"
},
"maintainerr": {
"itemsHandled": "Items Handled",
@@ -969,7 +974,7 @@
"criticals": "重大"
},
"ntfy": {
"title": "Title",
"title": "タイトル",
"priority": "Priority",
"lastReceived": "Last Received",
"message": "Message",
@@ -984,7 +989,7 @@
"plantit": {
"events": "イベント",
"plants": "植物",
"photos": "Photos",
"photos": "写真",
"species": "種"
},
"gitea": {
@@ -1132,27 +1137,27 @@
"karakeep": {
"bookmarks": "Bookmarks",
"favorites": "Favorites",
"archived": "Archived",
"highlights": "Highlights",
"lists": "Lists",
"tags": "Tags"
"archived": "アーカイブ済み",
"highlights": "ハイライト",
"lists": "リスト",
"tags": "タグ"
},
"slskd": {
"slskStatus": "Network",
"connected": "Connected",
"disconnected": "Disconnected",
"updateStatus": "Update",
"update_yes": "Available",
"update_no": "Up to Date",
"downloads": "Downloads",
"uploads": "Uploads",
"sharedFiles": "Files"
"slskStatus": "ネットワーク",
"connected": "接続されています",
"disconnected": "切断されています",
"updateStatus": "更新",
"update_yes": "利用可能",
"update_no": "最新",
"downloads": "ダウンロード",
"uploads": "アップロード",
"sharedFiles": "ファイル"
},
"jellystat": {
"songs": "Songs",
"movies": "Movies",
"episodes": "Episodes",
"other": "Other"
"songs": "",
"movies": "映画",
"episodes": "エピソード",
"other": "その他"
},
"checkmk": {
"serviceErrors": "Service issues",
@@ -1193,11 +1198,11 @@
"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",
"notifications": "通知",
"status": "ステータス",
"cpu": "CPU",
"memoryUsed": "Memory Used",
"memoryAvailable": "Memory Available",
"memoryUsed": "メモリ使用量",
"memoryAvailable": "使用可能なメモリ",
"arrayUsed": "Array Used",
"arrayFree": "Array Free",
"poolUsed": "{{pool}} Used",
@@ -1205,53 +1210,53 @@
},
"backrest": {
"num_plans": "Plans",
"num_success_30": "Successes",
"num_failure_30": "Failures",
"num_success_latest": "Succeeding",
"num_failure_latest": "Failing",
"bytes_added_30": "Bytes Added"
"num_success_30": "成功",
"num_failure_30": "失敗",
"num_success_latest": "成功",
"num_failure_latest": "失敗",
"bytes_added_30": "バイトが追加されました"
},
"yourspotify": {
"songs": "Songs",
"time": "Time",
"artists": "Artists"
"songs": "",
"time": "時間",
"artists": "アーティスト"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
"containers": "コンテナ",
"images": "イメージ",
"image_updates": "イメージの更新",
"images_unused": "未使用",
"environment_required": "Enviroment ID が必要です"
},
"dockhand": {
"running": "Running",
"stopped": "Stopped",
"running": "実行中",
"stopped": "停止中",
"cpu": "CPU",
"memory": "Memory",
"images": "Images",
"volumes": "Volumes",
"events_today": "Events Today",
"pending_updates": "Pending Updates",
"stacks": "Stacks",
"paused": "Paused",
"total": "Total",
"environment_not_found": "Environment Not Found"
"memory": "メモリ",
"images": "イメージ",
"volumes": "ボリューム",
"events_today": "今日のイベント",
"pending_updates": "保留中の更新",
"stacks": "スタック数",
"paused": "一時停止中",
"total": "合計",
"environment_not_found": "環境が見つかりません"
},
"sparkyfitness": {
"eaten": "Eaten",
"burned": "Burned",
"remaining": "Remaining",
"steps": "Steps"
"eaten": "摂取カロリー",
"burned": "消費カロリー",
"remaining": "残り",
"steps": "ステップ"
},
"syncthing": {
"connected": "Connected",
"synced": "Synced",
"errors": "Errors",
"storage": "Storage"
"connected": "接続されています",
"synced": "同期しました",
"errors": "エラー",
"storage": "ストレージ"
},
"sportarr": {
"wanted": "Wanted",
"queued": "Queued",
"leagues": "Leagues"
"wanted": "募集中",
"queued": "処理待ち",
"leagues": "リーグ"
}
}
+8 -3
View File
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "검색…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "검색 엔진: {{name}}",
"select_provider": "검색 엔진 선택"
},
"resources": {
"cpu": "CPU",
@@ -99,7 +99,12 @@
"unhealthy": "비정상",
"not_found": "찾을 수 없음",
"exited": "종료됨",
"partial": "부분적"
"partial": "부분적",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "오류",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Kurang sihat",
"not_found": "Tidak dijumpai",
"exited": "Dimatikan",
"partial": "Sebahagian"
"partial": "Sebahagian",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Ongezond",
"not_found": "Niet Gevonden",
"exited": "Gestopt",
"partial": "Gedeeltelijk"
"partial": "Gedeeltelijk",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Fout",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Usunn",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Delvis"
"partial": "Delvis",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Niezdrowy",
"not_found": "Nie znaleziono",
"exited": "Zakończony",
"partial": "Częściowy"
"partial": "Częściowy",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Błąd",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Não-saudável",
"not_found": "Não Encontrado",
"exited": "Saiu",
"partial": "Parcial"
"partial": "Parcial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Erro",
+22 -17
View File
@@ -21,7 +21,7 @@
"seconds": "s"
},
"auth": {
"signout": "Sign out"
"signout": "Encerrar Sessão"
},
"widget": {
"missing_type": "Tipo de Widget ausente: {{type}}",
@@ -40,8 +40,8 @@
},
"search": {
"placeholder": "Pesquisar…",
"provider": "Search engine: {{name}}",
"select_provider": "Select search engine"
"provider": "Motor de pesquisa: {{name}}",
"select_provider": "Selecionar motor de busca"
},
"resources": {
"cpu": "CPU",
@@ -99,7 +99,12 @@
"unhealthy": "Não-saudável",
"not_found": "Não Encontrado",
"exited": "Encerrado",
"partial": "Parcial"
"partial": "Parcial",
"created": "Criado",
"paused": "Pausado",
"restarting": "Reiniciando",
"removing": "Removendo",
"dead": "Inativo"
},
"ping": {
"error": "Erro",
@@ -135,7 +140,7 @@
"series": "Séries",
"episodes": "Episódios",
"songs": "Músicas",
"albums": "Albums"
"albums": "Álbuns"
},
"esphome": {
"offline": "Offline",
@@ -954,15 +959,15 @@
"storage": "Armazenamento"
},
"maintainerr": {
"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"
"itemsHandled": "Itens manuseados",
"episodesHandled": "Episódios tratados",
"moviesHandled": "Filmes tratados",
"showsHandled": "Séries tratados",
"seasonsHandled": "Temporadas tratadas",
"reclaimable": "Reclamável",
"movieReclaimable": "Filme Reclamável",
"showReclaimable": "Show Reclamável",
"totalCapacity": "Capacidade total"
},
"netdata": {
"warnings": "Alertas",
@@ -1250,8 +1255,8 @@
"storage": "Armazenagem"
},
"sportarr": {
"wanted": "Wanted",
"queued": "Queued",
"leagues": "Leagues"
"wanted": "Desejado",
"queued": "Na fila",
"leagues": "Ligas"
}
}
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Nesănătos",
"not_found": "Negăsit",
"exited": "Ieşit",
"partial": "Parțial"
"partial": "Parțial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Нездоровый",
"not_found": "Не найдено",
"exited": "Вышел",
"partial": "Частичный"
"partial": "Частичный",
"created": "Создан",
"paused": "Приостановлен",
"restarting": "Перезапуск",
"removing": "Удаление",
"dead": "Мёртв"
},
"ping": {
"error": "Ошибка",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Nezdravý",
"not_found": "Nenájdené",
"exited": "Ukončené",
"partial": "Čiastočný"
"partial": "Čiastočný",
"created": "Vytvorené",
"paused": "Pozastavené",
"restarting": "Reštartuje sa",
"removing": "Odstraňuje sa",
"dead": "Mŕtve"
},
"ping": {
"error": "Chyba",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Ni zdrav",
"not_found": "Ni najden",
"exited": "V izhodu",
"partial": "Delni"
"partial": "Delni",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Нездравих",
"not_found": "Није пронађено",
"exited": "Напуштених",
"partial": "Делимично"
"partial": "Делимично",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Грешка",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Unhealthy",
"not_found": "Not Found",
"exited": "Exited",
"partial": "Partial"
"partial": "Partial",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Sağlıksız",
"not_found": "Bulunamadı",
"exited": "Kapandı",
"partial": "Kısmi"
"partial": "Kısmi",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Hata",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Нездоровий",
"not_found": "Не знайдено",
"exited": "Вийшов",
"partial": "Частковий"
"partial": "Частковий",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Помилка",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "Bất thường",
"not_found": "Không tìm thấy",
"exited": "Đã thoát",
"partial": "Một phần"
"partial": "Một phần",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Lỗi",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "不健康的",
"not_found": "未找到",
"exited": "已退出",
"partial": "部分"
"partial": "部分",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "不健康",
"not_found": "未找到",
"exited": "已退出",
"partial": "部分"
"partial": "部分",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "错误",
+6 -1
View File
@@ -99,7 +99,12 @@
"unhealthy": "不健康的",
"not_found": "找不到",
"exited": "已退出",
"partial": "部分"
"partial": "部分",
"created": "Created",
"paused": "Paused",
"restarting": "Restarting",
"removing": "Removing",
"dead": "Dead"
},
"ping": {
"error": "Error",
@@ -0,0 +1,60 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getDockerStats, logger } = vi.hoisted(() => ({
getDockerStats: vi.fn(),
logger: { error: vi.fn() },
}));
vi.mock("utils/docker/stats", () => ({ getDockerStats }));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/docker/stats";
describe("pages/api/docker/stats", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns the stats map for the requested server", async () => {
getDockerStats.mockResolvedValue({ stats: { app: { cpu: 20, mem: 900, rx: 4, tx: 6 } } });
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(getDockerStats).toHaveBeenCalledWith("local");
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ stats: { app: { cpu: 20, mem: 900, rx: 4, tx: 6 } } });
});
it("returns 500 when the stats lookup reports an error", async () => {
getDockerStats.mockResolvedValue({ error: "query failed" });
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "query failed" });
});
it("logs and returns 500 when the stats lookup throws", async () => {
getDockerStats.mockRejectedValue(new Error("boom"));
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: { message: "boom" } });
expect(logger.error).toHaveBeenCalled();
});
});
@@ -1,153 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { state, DockerCtor, getDockerArguments, logger } = vi.hoisted(() => {
const state = {
docker: null,
dockerArgs: { conn: { socketPath: "/var/run/docker.sock" }, swarm: false },
};
function DockerCtor() {
return state.docker;
}
return {
state,
DockerCtor,
getDockerArguments: vi.fn(() => state.dockerArgs),
logger: { error: vi.fn() },
};
});
vi.mock("dockerode", () => ({
default: DockerCtor,
}));
vi.mock("utils/config/docker", () => ({
default: getDockerArguments,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/docker/stats/[...service]";
describe("pages/api/docker/stats/[...service]", () => {
beforeEach(() => {
vi.clearAllMocks();
state.dockerArgs = { conn: { socketPath: "/var/run/docker.sock" }, swarm: false };
state.docker = {
listContainers: vi.fn(),
getContainer: vi.fn(),
listTasks: vi.fn(),
};
});
it("returns 400 when container name/server params are missing", async () => {
const req = { query: { service: [] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual({ error: "docker query parameters are required" });
});
it("returns 500 when docker returns a non-array containers payload", async () => {
state.docker.listContainers.mockResolvedValue(Buffer.from("bad"));
const req = { query: { service: ["c", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "query failed" });
});
it("returns stats for an existing container", async () => {
state.docker.listContainers.mockResolvedValue([{ Names: ["/myapp"], Id: "cid1" }]);
const containerStats = { cpu_stats: { cpu_usage: { total_usage: 1 } } };
state.docker.getContainer.mockReturnValue({
stats: vi.fn().mockResolvedValue(containerStats),
});
const req = { query: { service: ["myapp", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ stats: containerStats });
});
it("uses swarm tasks to locate a container and reports a friendly error when stats cannot be retrieved", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "local1" }]);
state.docker.listTasks.mockResolvedValue([
{ Status: { ContainerStatus: { ContainerID: "local1" } } },
{ Status: { ContainerStatus: { ContainerID: "remote1" } } },
]);
state.docker.getContainer.mockReturnValue({
stats: vi.fn().mockRejectedValue(new Error("nope")),
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ error: "Unable to retrieve stats" });
});
it("returns stats for a swarm task container when present locally", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "local1" }]);
state.docker.listTasks.mockResolvedValue([{ Status: { ContainerStatus: { ContainerID: "local1" } } }]);
const containerStats = { cpu_stats: { cpu_usage: { total_usage: 2 } } };
state.docker.getContainer.mockReturnValue({
stats: vi.fn().mockResolvedValue(containerStats),
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ stats: containerStats });
});
it("returns 404 when no container or swarm task is found", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "local1" }]);
state.docker.listTasks.mockResolvedValue([]);
const req = { query: { service: ["missing", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(404);
expect(res.body).toEqual({ error: "not found" });
});
it("logs and returns 500 when the docker query throws", async () => {
getDockerArguments.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { service: ["myapp", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: { message: "boom" } });
expect(logger.error).toHaveBeenCalled();
});
});
@@ -1,211 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { state, DockerCtor, getDockerArguments, logger } = vi.hoisted(() => {
const state = {
docker: null,
dockerCtorArgs: [],
dockerArgs: { conn: { socketPath: "/var/run/docker.sock" }, swarm: false },
};
function DockerCtor(conn) {
state.dockerCtorArgs.push(conn);
return state.docker;
}
return {
state,
DockerCtor,
getDockerArguments: vi.fn(() => state.dockerArgs),
logger: { error: vi.fn() },
};
});
vi.mock("dockerode", () => ({
default: DockerCtor,
}));
vi.mock("utils/config/docker", () => ({
default: getDockerArguments,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/docker/status/[...service]";
describe("pages/api/docker/status/[...service]", () => {
beforeEach(() => {
vi.clearAllMocks();
state.dockerCtorArgs.length = 0;
state.dockerArgs = { conn: { socketPath: "/var/run/docker.sock" }, swarm: false };
state.docker = {
listContainers: vi.fn(),
getContainer: vi.fn(),
getService: vi.fn(),
listTasks: vi.fn(),
};
});
it("returns 400 when container name/server params are missing", async () => {
const req = { query: { service: [] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual({ error: "docker query parameters are required" });
});
it("returns 500 when docker returns a non-array containers payload", async () => {
state.docker.listContainers.mockResolvedValue(Buffer.from("bad"));
const req = { query: { service: ["c", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "query failed" });
});
it("inspects an existing container and returns status + health", async () => {
state.docker.listContainers.mockResolvedValue([{ Names: ["/myapp"], Id: "cid1" }]);
state.docker.getContainer.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ State: { Status: "running", Health: { Status: "healthy" } } }),
});
const req = { query: { service: ["myapp", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(getDockerArguments).toHaveBeenCalledWith("local");
expect(state.dockerCtorArgs).toHaveLength(1);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "running", health: "healthy" });
});
it("returns 404 when container does not exist and swarm is disabled", async () => {
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "cid1" }]);
const req = { query: { service: ["missing", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(404);
expect(res.body).toEqual({ status: "not found" });
});
it("reports replicated swarm service status based on desired replicas", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "cid1" }]);
state.docker.getService.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ Spec: { Mode: { Replicated: { Replicas: "2" } } } }),
});
state.docker.listTasks.mockResolvedValue([{ Status: {} }, { Status: {} }]);
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "running 2/2" });
});
it("reports partial status for replicated services with fewer running tasks", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "cid1" }]);
state.docker.getService.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ Spec: { Mode: { Replicated: { Replicas: "3" } } } }),
});
state.docker.listTasks.mockResolvedValue([{ Status: {} }]);
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "partial 1/3" });
});
it("handles global services by inspecting a local task container when possible", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "local1" }]);
state.docker.getService.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ Spec: { Mode: { Global: {} } } }),
});
state.docker.listTasks.mockResolvedValue([
{ Status: { ContainerStatus: { ContainerID: "local1" }, State: "running" } },
]);
state.docker.getContainer.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ State: { Status: "running", Health: { Status: "unhealthy" } } }),
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "running", health: "unhealthy" });
});
it("falls back to task status when global service container inspect fails", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "local1" }]);
state.docker.getService.mockReturnValue({
inspect: vi.fn().mockResolvedValue({ Spec: { Mode: { Global: {} } } }),
});
state.docker.listTasks.mockResolvedValue([
{ Status: { ContainerStatus: { ContainerID: "local1" }, State: "pending" } },
]);
state.docker.getContainer.mockReturnValue({
inspect: vi.fn().mockRejectedValue(new Error("nope")),
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "pending" });
});
it("returns 404 when swarm is enabled but the service does not exist", async () => {
state.dockerArgs.swarm = true;
state.docker.listContainers.mockResolvedValue([{ Names: ["/other"], Id: "cid1" }]);
state.docker.getService.mockReturnValue({
inspect: vi.fn().mockRejectedValue(new Error("not found")),
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(404);
expect(res.body).toEqual({ status: "not found" });
});
it("logs and returns 500 when the docker query throws", async () => {
getDockerArguments.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { service: ["svc", "local"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: { message: "boom" } });
expect(logger.error).toHaveBeenCalled();
});
});
@@ -0,0 +1,265 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { state, DockerCtor, getDockerArguments, containersFromConfig, hasHomepageLabels, getSettings, logger } =
vi.hoisted(() => {
const state = {
docker: null,
containers: [],
health: {},
containers: [],
health: {},
dockerArgs: { conn: { socketPath: "/var/run/docker.sock" }, swarm: false },
};
function DockerCtor() {
return state.docker;
}
return {
state,
DockerCtor,
getDockerArguments: vi.fn(() => state.dockerArgs),
containersFromConfig: vi.fn(async () => new Set()),
hasHomepageLabels: vi.fn(() => false),
getSettings: vi.fn(() => ({ instanceName: undefined })),
logger: { error: vi.fn() },
};
});
vi.mock("dockerode", () => ({
default: DockerCtor,
}));
vi.mock("utils/config/docker", () => ({
default: getDockerArguments,
}));
vi.mock("utils/config/service-helpers", () => ({
containersFromConfig,
hasHomepageLabels,
}));
vi.mock("utils/config/config", () => ({
getSettings,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/docker/statuses";
describe("pages/api/docker/statuses", () => {
beforeEach(() => {
vi.clearAllMocks();
state.dockerArgs = { conn: { socketPath: "/var/run/docker.sock" }, swarm: false };
state.containers = [];
state.health = {};
state.docker = {
listContainers: vi.fn(async (options) => {
const health = options?.filters?.health?.[0];
return health ? (state.health[health] ?? []) : state.containers;
}),
listServices: vi.fn(),
listTasks: vi.fn(),
};
containersFromConfig.mockResolvedValue(new Set());
hasHomepageLabels.mockReturnValue(false);
getSettings.mockReturnValue({ instanceName: undefined });
});
it("returns configured container statuses with health from the docker health filters", async () => {
containersFromConfig.mockResolvedValue(new Set(["glance", "share"]));
state.containers = [
{ Names: ["/glance"], Id: "cid-glance", State: "running" },
{ Names: ["/share"], Id: "cid-share", State: "exited" },
];
state.health = { healthy: [{ Id: "cid-glance" }] };
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(getDockerArguments).toHaveBeenCalledWith("local");
expect(containersFromConfig).toHaveBeenCalledWith("local");
// one list plus one per health state, constant regardless of container count
expect(state.docker.listContainers).toHaveBeenCalledTimes(4);
expect(state.docker.listServices).not.toHaveBeenCalled();
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({
statuses: {
glance: { status: "running", health: "healthy" },
share: { status: "exited" },
},
});
});
it("takes health from the filter results rather than the status string", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [{ Names: ["/app"], Id: "cid1", State: "running", Status: "Up 2 hours (healthy)" }];
state.health = { unhealthy: [{ Id: "cid1" }] };
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: { app: { status: "running", health: "unhealthy" } } });
});
it("omits health when the docker daemon rejects the health filter", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [{ Names: ["/app"], Id: "cid1", State: "running", Status: "Up 2 hours (healthy)" }];
state.docker.listContainers.mockImplementation(async (options) => {
if (options?.filters?.health) throw new Error("filter unsupported");
return state.containers;
});
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: { app: { status: "running" } } });
});
it("omits containers that are neither configured nor labelled for homepage", async () => {
containersFromConfig.mockResolvedValue(new Set(["glance"]));
state.containers = [
{ Names: ["/glance"], State: "running", Status: "Up" },
{ Names: ["/secret-db"], State: "running", Status: "Up" },
];
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: { glance: { status: "running" } } });
expect(res.body.statuses["secret-db"]).toBeUndefined();
});
it("includes containers discovered through homepage labels", async () => {
hasHomepageLabels.mockImplementation((labels) => labels?.["homepage.name"] !== undefined);
state.containers = [
{ Names: ["/labelled"], State: "running", Status: "Up", Labels: { "homepage.name": "App" } },
{ Names: ["/unlabelled"], State: "running", Status: "Up", Labels: {} },
];
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: { labelled: { status: "running" } } });
});
it("includes swarm services when the server is in swarm mode", async () => {
state.dockerArgs.swarm = true;
containersFromConfig.mockResolvedValue(new Set(["web", "api"]));
state.containers = [{ Names: ["/web"], Id: "cid1", State: "running", Status: "Up" }];
state.docker.listServices.mockResolvedValue([
{ ID: "sid", Spec: { Name: "api", Mode: { Replicated: { Replicas: "2" } } } },
]);
state.docker.listTasks.mockResolvedValue([
{ ServiceID: "sid", Status: {} },
{ ServiceID: "sid", Status: {} },
]);
const req = { query: { server: "swarm" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({
statuses: {
web: { status: "running" },
api: { status: "running 2/2" },
},
});
});
it("omits swarm services that are neither configured nor labelled", async () => {
state.dockerArgs.swarm = true;
containersFromConfig.mockResolvedValue(new Set());
state.containers = [];
state.docker.listServices.mockResolvedValue([
{ ID: "sid", Spec: { Name: "internal", Mode: { Replicated: { Replicas: "1" } } } },
]);
state.docker.listTasks.mockResolvedValue([{ ServiceID: "sid", Status: {} }]);
const req = { query: { server: "swarm" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: {} });
});
it("includes swarm services discovered through homepage labels", async () => {
state.dockerArgs.swarm = true;
hasHomepageLabels.mockImplementation((labels) => labels?.["homepage.name"] !== undefined);
state.containers = [];
state.docker.listServices.mockResolvedValue([
{
ID: "sid",
Spec: { Name: "api", Labels: { "homepage.name": "Api" }, Mode: { Replicated: { Replicas: "1" } } },
},
]);
state.docker.listTasks.mockResolvedValue([{ ServiceID: "sid", Status: {} }]);
const req = { query: { server: "swarm" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ statuses: { api: { status: "running 1/1" } } });
});
it("returns only listed containers when swarm queries fail", async () => {
state.dockerArgs.swarm = true;
containersFromConfig.mockResolvedValue(new Set(["web"]));
state.containers = [{ Names: ["/web"], Id: "cid1", State: "running", Status: "Up" }];
state.docker.listServices.mockRejectedValue(new Error("no services"));
state.docker.listTasks.mockRejectedValue(new Error("no tasks"));
const req = { query: { server: "swarm" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ statuses: { web: { status: "running" } } });
});
it("returns 500 when docker returns a non-array containers payload", async () => {
state.containers = Buffer.from("bad");
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "query failed" });
});
it("logs and returns 500 when the docker query throws", async () => {
getDockerArguments.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { server: "local" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: { message: "boom" } });
expect(logger.error).toHaveBeenCalled();
});
});
+92 -3
View File
@@ -1,11 +1,15 @@
// @vitest-environment jsdom
import { render, screen, waitFor } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { StrictMode } from "react";
import { beforeEach, describe, expect, it, vi } from "vitest";
const { getSettingsMock, authOptionsMock } = vi.hoisted(() => ({
const { getSettingsMock, authOptionsMock, signInMock, replaceMock, routerQuery } = vi.hoisted(() => ({
getSettingsMock: vi.fn(),
authOptionsMock: vi.fn(),
signInMock: vi.fn(),
replaceMock: vi.fn(),
routerQuery: {},
}));
vi.mock("utils/config/config", () => ({
@@ -20,13 +24,25 @@ vi.mock("pages/api/auth/[...nextauth]", () => ({
vi.mock("next/router", () => ({
useRouter: () => ({
query: {},
query: routerQuery,
replace: replaceMock,
}),
}));
vi.mock("next-auth/react", () => ({ signIn: signInMock }));
import SignInPage, { getServerSideProps } from "pages/auth/signin";
const OIDC_PROVIDERS = { "homepage-oidc": { id: "homepage-oidc", name: "Homepage OIDC", type: "oauth" } };
const SETTINGS = { theme: "dark", color: "slate", title: "Homepage" };
describe("pages/auth/signin", () => {
beforeEach(() => {
vi.clearAllMocks();
Object.keys(routerQuery).forEach((key) => delete routerQuery[key]);
window.sessionStorage.clear();
});
it("renders an error state when no providers are configured", async () => {
render(
<SignInPage
@@ -66,6 +82,67 @@ describe("pages/auth/signin", () => {
expect(screen.getByRole("button", { name: /login via oidc/i })).toBeInTheDocument();
});
it("redirects to the provider when auto-login is enabled", () => {
routerQuery.callbackUrl = "/some/page";
render(<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />);
expect(signInMock).toHaveBeenCalledWith("homepage-oidc", { callbackUrl: "/some/page" });
expect(screen.getByText(/redirecting to homepage oidc/i)).toBeInTheDocument();
expect(screen.queryByRole("button", { name: /login via/i })).not.toBeInTheDocument();
});
it("does not auto-login when the provider returned an error", () => {
routerQuery.error = "OAuthCallback";
render(<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />);
expect(signInMock).not.toHaveBeenCalled();
expect(screen.getByRole("button", { name: /login via homepage oidc/i })).toBeInTheDocument();
});
it("does not auto-login when it is explicitly disabled in the url", () => {
routerQuery.autologin = "0";
render(<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />);
expect(signInMock).not.toHaveBeenCalled();
expect(screen.getByRole("button", { name: /login via homepage oidc/i })).toBeInTheDocument();
});
it("redirects once under strict mode, rather than tripping its own loop guard", () => {
render(
<StrictMode>
<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />
</StrictMode>,
);
expect(signInMock).toHaveBeenCalledTimes(1);
expect(replaceMock).not.toHaveBeenCalled();
});
it("stops auto-login and hands back the page when the session never sticks", () => {
routerQuery.callbackUrl = "/some/page";
render(<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />);
render(<SignInPage providers={OIDC_PROVIDERS} settings={SETTINGS} autoLogin />);
expect(signInMock).toHaveBeenCalledTimes(1);
expect(replaceMock).toHaveBeenCalledWith("/auth/signin?autologin=0&callbackUrl=%2Fsome%2Fpage");
});
it("does not auto-login the password provider", () => {
render(
<SignInPage
providers={{ credentials: { id: "credentials", name: "Password", type: "credentials" } }}
settings={SETTINGS}
autoLogin
/>,
);
expect(signInMock).not.toHaveBeenCalled();
});
it("getServerSideProps returns providers and only public sign-in settings", async () => {
authOptionsMock.mockReturnValueOnce({ providers: [{ id: "foo", name: "Foo", type: "oauth" }] });
getSettingsMock.mockReturnValueOnce({
@@ -88,6 +165,7 @@ describe("pages/auth/signin", () => {
expect(getSettingsMock).toHaveBeenCalled();
expect(res).toEqual({
props: {
autoLogin: false,
providers: { foo: { id: "foo", name: "Foo", type: "oauth" } },
settings: {
theme: "dark",
@@ -102,6 +180,17 @@ describe("pages/auth/signin", () => {
expect(res.props.settings).not.toHaveProperty("layout");
});
it("getServerSideProps enables auto-login from the environment", async () => {
authOptionsMock.mockReturnValueOnce({ providers: [] });
getSettingsMock.mockReturnValueOnce({ theme: "dark" });
vi.stubEnv("HOMEPAGE_OIDC_AUTO_LOGIN", "true");
const res = await getServerSideProps({});
expect(res.props.autoLogin).toBe(true);
vi.unstubAllEnvs();
});
it("getServerSideProps falls back to no providers when auth options fail to load", async () => {
const consoleError = vi.spyOn(console, "error").mockImplementation(() => {});
authOptionsMock.mockImplementationOnce(() => {
+4 -3
View File
@@ -124,8 +124,8 @@ export default function QuickLaunch({ servicesAndBookmarks, searchString, setSea
? MOBILE_BUTTON_POSITIONS[settings.quicklaunch.mobileButtonPosition]
: null;
function openCurrentItem(newWindow) {
const result = results[activeItemIndex];
function openCurrentItem(newWindow, index = activeItemIndex) {
const result = results[index];
window.open(
result.href,
newWindow ? "_blank" : (result.target ?? searchProvider?.target ?? settings.target ?? "_blank"),
@@ -180,7 +180,8 @@ export default function QuickLaunch({ servicesAndBookmarks, searchString, setSea
function handleItemClick(event) {
closeAndReset();
openCurrentItem(event.metaKey);
// in case hover doesnt fire, use the clicked item, not the highlighted one
openCurrentItem(event.metaKey, parseInt(event.currentTarget.dataset.index, 10));
}
function handleItemKeyDown(event) {
+31
View File
@@ -263,6 +263,37 @@ describe("components/quicklaunch", () => {
openSpy.mockRestore();
});
it("opens the clicked result even without a preceding hover event", async () => {
const openSpy = vi.spyOn(window, "open").mockImplementation(() => null);
renderWithProviders(
<Wrapper
servicesAndBookmarks={[
{ name: "Alpha", href: "https://alpha.example" },
{ name: "Alpine", href: "https://alpine.example" },
{ name: "Almond", href: "https://almond.example" },
]}
/>,
{ settings: { target: "_self", quicklaunch: { showSearchSuggestions: false } } },
);
const input = screen.getByPlaceholderText("Search");
await waitFor(() => expect(input).toHaveFocus());
fireEvent.change(input, { target: { value: "al" } });
await waitFor(() => expect(document.querySelector('button[data-index="2"]')).toBeTruthy());
// touch devices don't fire mouseEnter, so the highlighted item is still the first one
fireEvent.click(document.querySelector('button[data-index="2"]'));
await act(async () => {
await new Promise((r) => setTimeout(r, 350));
});
expect(openSpy).toHaveBeenCalledWith("https://almond.example", "_self", "noreferrer");
openSpy.mockRestore();
});
it("handles Escape on a result button (not just the input)", async () => {
renderWithProviders(<Wrapper servicesAndBookmarks={[{ name: "Alpha", href: "https://alpha.example" }]} />, {
settings: { quicklaunch: { showSearchSuggestions: false } },
+40 -24
View File
@@ -1,45 +1,61 @@
import { useTranslation } from "next-i18next/pages";
import useSWR from "swr";
const WARNING_CLASS = "text-orange-400/50 dark:text-orange-400/80";
// docker container states other than running
const STATE_LABELS = {
created: "docker.created",
dead: "docker.dead",
exited: "docker.exited",
"not found": "docker.not_found",
paused: "docker.paused",
removing: "docker.removing",
restarting: "docker.restarting",
};
// states that mean something is wrong rather than merely not started
const WARNING_STATES = new Set(["dead", "exited", "not found", "restarting"]);
export default function Status({ service, style }) {
const { t } = useTranslation();
const { data, error } = useSWR(`/api/docker/status/${service.container}/${service.server || ""}`);
const { data: response, error } = useSWR(`/api/docker/statuses?server=${encodeURIComponent(service.server || "")}`);
const statusError = error ?? response?.error;
const { statuses } = response ?? {};
const data = statuses ? (statuses[service.container] ?? { status: "not found" }) : undefined;
let statusLabel = t("docker.unknown");
let backgroundClass = "px-1.5 py-0.5 bg-theme-500/10 dark:bg-theme-900/50";
let colorClass = "text-black/20 dark:text-white/40 ";
if (error) {
if (statusError) {
statusLabel = t("docker.error");
colorClass = "text-rose-500/80";
} else if (data) {
if (data.status?.includes("running")) {
colorClass = "text-emerald-500/80";
} else if (data?.status?.includes("running")) {
colorClass = "text-emerald-500/80";
if (!data.health) {
statusLabel = data.status.replace("running", t("docker.running"));
} else {
statusLabel = data.health === "healthy" ? t("docker.healthy") : data.health;
if (!data.health) {
statusLabel = data.status.replace("running", t("docker.running"));
} else {
statusLabel = data.health === "healthy" ? t("docker.healthy") : data.health;
if (data.health === "starting") {
statusLabel = t("docker.starting");
colorClass = "text-blue-500/80";
}
if (data.health === "starting") {
statusLabel = t("docker.starting");
colorClass = "text-blue-500/80";
}
if (data.health === "unhealthy") {
statusLabel = t("docker.unhealthy");
colorClass = "text-orange-400/50 dark:text-orange-400/80";
}
if (data.health === "unhealthy") {
statusLabel = t("docker.unhealthy");
colorClass = WARNING_CLASS;
}
}
if (data.status === "not found" || data.status === "exited" || data.status?.startsWith("partial")) {
if (data.status === "not found") statusLabel = t("docker.not_found");
else if (data.status === "exited") statusLabel = t("docker.exited");
else statusLabel = data.status.replace("partial", t("docker.partial"));
colorClass = "text-orange-400/50 dark:text-orange-400/80";
}
} else if (data?.status?.startsWith("partial")) {
statusLabel = data.status.replace("partial", t("docker.partial"));
colorClass = WARNING_CLASS;
} else if (data && STATE_LABELS[data.status]) {
statusLabel = t(STATE_LABELS[data.status]);
if (WARNING_STATES.has(data.status)) colorClass = WARNING_CLASS;
}
if (style === "dot") {
+60 -8
View File
@@ -21,8 +21,11 @@ describe("components/services/status", () => {
render(<Status service={{ container: "c", server: "s" }} />);
expect(useSWR).toHaveBeenCalledWith("/api/docker/status/c/s");
expect(useSWR).toHaveBeenCalledWith("/api/docker/statuses?server=s");
expect(screen.getByText("docker.unknown")).toBeInTheDocument();
render(<Status service={{ container: "c" }} />);
expect(useSWR).toHaveBeenCalledWith("/api/docker/statuses?server=");
});
it("renders error when SWR fails", () => {
@@ -33,38 +36,87 @@ describe("components/services/status", () => {
expect(screen.getByText("docker.error")).toBeInTheDocument();
});
it("renders error when the api returns an error payload with a 200-parsed body", () => {
useSWR.mockReturnValue({ data: { error: "query failed" }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.error")).toBeInTheDocument();
expect(screen.queryByText("docker.not_found")).not.toBeInTheDocument();
});
it("renders healthy/unhealthy and partial/exited/not found statuses", () => {
useSWR.mockReturnValue({ data: { status: "running", health: "healthy" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "running", health: "healthy" } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.healthy")).toBeInTheDocument();
useSWR.mockReturnValue({ data: { status: "running", health: "unhealthy" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "running", health: "unhealthy" } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.unhealthy")).toBeInTheDocument();
useSWR.mockReturnValue({ data: { status: "partial 1/2" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "partial 1/2" } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.partial 1/2")).toBeInTheDocument();
useSWR.mockReturnValue({ data: { status: "exited" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "exited" } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.exited")).toBeInTheDocument();
useSWR.mockReturnValue({ data: { status: "not found" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: {} }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.not_found")).toBeInTheDocument();
});
it("renders starting health when container is running and starting", () => {
useSWR.mockReturnValue({ data: { status: "running", health: "starting" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "running", health: "starting" } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.starting")).toBeInTheDocument();
});
it("renders the remaining container states instead of falling through to unknown", () => {
const states = {
created: "docker.created",
paused: "docker.paused",
restarting: "docker.restarting",
removing: "docker.removing",
dead: "docker.dead",
};
Object.entries(states).forEach(([status, label]) => {
useSWR.mockReturnValue({ data: { statuses: { c: { status } } }, error: undefined });
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText(label)).toBeInTheDocument();
});
expect(screen.queryByText("docker.unknown")).not.toBeInTheDocument();
});
it("colors problem states as warnings and merely stopped states neutrally", () => {
useSWR.mockReturnValue({ data: { statuses: { c: { status: "restarting" } } }, error: undefined });
const { container: restarting } = render(<Status service={{ container: "c", server: "s" }} style="dot" />);
expect(restarting.querySelector(".bg-orange-400")).toBeInTheDocument();
useSWR.mockReturnValue({ data: { statuses: { c: { status: "paused" } } }, error: undefined });
const { container: paused } = render(<Status service={{ container: "c", server: "s" }} style="dot" />);
expect(paused.querySelector(".bg-orange-400")).not.toBeInTheDocument();
});
it("does not surface health for containers that are not running", () => {
useSWR.mockReturnValue({
data: { statuses: { c: { status: "paused", health: "unhealthy" } } },
error: undefined,
});
render(<Status service={{ container: "c", server: "s" }} />);
expect(screen.getByText("docker.paused")).toBeInTheDocument();
expect(screen.queryByText("docker.unhealthy")).not.toBeInTheDocument();
});
it("renders a dot when style is dot", () => {
useSWR.mockReturnValue({ data: { status: "running" }, error: undefined });
useSWR.mockReturnValue({ data: { statuses: { c: { status: "running" } } }, error: undefined });
const { container } = render(<Status service={{ container: "c", server: "s" }} style="dot" />);
+5 -1
View File
@@ -12,7 +12,11 @@ export default function SignOut() {
return (
<div id="signout" className="rounded-full flex align-middle self-center mr-3">
<button type="button" onClick={() => signOut({ callbackUrl: "/" })} className="outline-hidden">
<button
type="button"
onClick={() => signOut({ callbackUrl: "/auth/signin?autologin=0" })}
className="outline-hidden"
>
<MdLogout className="text-theme-800 dark:text-theme-200 w-6 h-6 cursor-pointer" aria-hidden="true" />
<span className="sr-only">{t("auth.signout")}</span>
</button>
+2 -1
View File
@@ -32,6 +32,7 @@ describe("components/toggles/signout", () => {
const { getByRole } = render(<SignOut />);
fireEvent.click(getByRole("button"));
expect(signOut).toHaveBeenCalledWith({ callbackUrl: "/" });
// Not "/", which would bounce straight back into the provider when auto-login is on
expect(signOut).toHaveBeenCalledWith({ callbackUrl: "/auth/signin?autologin=0" });
});
});
+2
View File
@@ -139,6 +139,8 @@ export default function Search({ options }) {
}, [selectedProvider, options, query, searchSuggestions]);
function doSearch(value) {
if (!value) return;
const q = encodeURIComponent(value);
const { url } = selectedProvider;
if (url) {
+28 -1
View File
@@ -24,7 +24,19 @@ vi.mock("@headlessui/react", async () => {
<div>{children}</div>
</ComboboxContext.Provider>
),
ComboboxInput: (props) => <input {...props} />,
ComboboxInput: (props) => {
const ctx = useContext(ComboboxContext);
// real headlessui fires onChange(null) when the input is cleared
return (
<input
{...props}
onChange={(event) => {
props.onChange?.(event);
if (event.target.value === "") ctx?.onChange?.(null);
}}
/>
);
},
ComboboxOption: ({ as: As = "div", value, children, ...props }) => {
const ctx = useContext(ComboboxContext);
const content = typeof children === "function" ? children({ active: false }) : children;
@@ -83,6 +95,21 @@ describe("components/widgets/search", () => {
openSpy.mockRestore();
});
it("does not search when the input is cleared", () => {
const openSpy = vi.spyOn(window, "open").mockImplementation(() => null);
renderWithProviders(<Search options={{ provider: ["google"], showSearchSuggestions: false, target: "_self" }} />, {
settings: {},
});
const input = screen.getByPlaceholderText("search.placeholder");
fireEvent.change(input, { target: { value: "a" } });
fireEvent.change(input, { target: { value: "" } });
expect(openSpy).not.toHaveBeenCalled();
openSpy.mockRestore();
});
it("accepts provider configured as a string", () => {
const openSpy = vi.spyOn(window, "open").mockImplementation(() => null);
+3 -2
View File
@@ -32,7 +32,7 @@ export async function middleware(req) {
return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 });
}
const pathname = new URL(req.url).pathname;
const { pathname, search } = new URL(req.url);
const isPublicAuthPath = pathname.startsWith("/api/healthcheck") || pathname === "/api/config/custom.css";
if (authEnabled && !isPublicAuthPath) {
// The MCP API handler authorizes both bearer tokens and Homepage sessions.
@@ -43,7 +43,8 @@ export async function middleware(req) {
const token = await getToken({ req, secret: authSecret });
if (!token) {
const signInUrl = new URL("/auth/signin", req.url);
signInUrl.searchParams.set("callbackUrl", "/");
// Same-origin by construction, so this cannot be used as an open redirect
signInUrl.searchParams.set("callbackUrl", `${pathname}${search}`);
return withPrivateCache(NextResponse.redirect(signInUrl));
}
}
+12
View File
@@ -153,6 +153,18 @@ describe("middleware", () => {
expect(String(res.url)).toContain("/auth/signin");
});
it("preserves the requested path and query as the callback url", async () => {
process.env.HOMEPAGE_AUTH_ENABLED = "true";
process.env.HOMEPAGE_AUTH_SECRET = "secret";
getToken.mockResolvedValueOnce(null);
const middleware = await loadMiddleware();
const res = await middleware(createReq("localhost:3000", "http://localhost:3000/some/page?tab=2"));
expect(new URL(res.url).searchParams.get("callbackUrl")).toBe("/some/page?tab=2");
});
it("allows requests when auth is enabled and a token is present", async () => {
process.env.HOMEPAGE_AUTH_ENABLED = "true";
process.env.HOMEPAGE_AUTH_SECRET = "secret";
+21
View File
@@ -0,0 +1,21 @@
import { getDockerStats } from "utils/docker/stats";
import createLogger from "utils/logger";
const logger = createLogger("dockerStats");
export default async function handler(req, res) {
try {
const result = await getDockerStats(req.query.server);
if (result.error) {
return res.status(500).send({ error: result.error });
}
return res.status(200).json(result);
} catch (e) {
if (e) logger.error(e);
return res.status(500).send({
error: { message: e?.message ?? "Unknown error" },
});
}
}
@@ -1,88 +0,0 @@
import Docker from "dockerode";
import getDockerArguments from "utils/config/docker";
import createLogger from "utils/logger";
const logger = createLogger("dockerStatsService");
export default async function handler(req, res) {
const { service } = req.query;
const [containerName, containerServer] = service;
if (!containerName && !containerServer) {
return res.status(400).send({
error: "docker query parameters are required",
});
}
try {
const dockerArgs = getDockerArguments(containerServer);
const docker = new Docker(dockerArgs.conn);
const containers = await docker.listContainers({
all: true,
});
// bad docker connections can result in a <Buffer ...> object?
// in any case, this ensures the result is the expected array
if (!Array.isArray(containers)) {
return res.status(500).send({
error: "query failed",
});
}
const containerNames = containers.flatMap((container) => container.Names.map((name) => name.replace(/^\//, "")));
const containerExists = containerNames.includes(containerName);
if (containerExists) {
const container = docker.getContainer(containerName);
const stats = await container.stats({ stream: false });
return res.status(200).json({
stats,
});
}
// Try with a service deployed in Docker Swarm, if enabled
if (dockerArgs.swarm) {
const tasks = await docker
.listTasks({
filters: {
service: [containerName],
// A service can have several offline containers, so we only look for an active one.
"desired-state": ["running"],
},
})
.catch(() => []);
// TODO: Show the result for all replicas/containers?
// We can only get stats for 'local' containers so try to find one
const localContainerIDs = containers.map((c) => c.Id);
const task = tasks.find((t) => localContainerIDs.includes(t.Status?.ContainerStatus?.ContainerID)) ?? tasks.at(0);
const taskContainerId = task?.Status?.ContainerStatus?.ContainerID;
if (taskContainerId) {
try {
const container = docker.getContainer(taskContainerId);
const stats = await container.stats({ stream: false });
return res.status(200).json({
stats,
});
} catch (e) {
return res.status(200).json({
error: "Unable to retrieve stats",
});
}
}
}
return res.status(404).send({
error: "not found",
});
} catch (e) {
if (e) logger.error(e);
return res.status(500).send({
error: { message: e?.message ?? "Unknown error" },
});
}
}
-116
View File
@@ -1,116 +0,0 @@
import Docker from "dockerode";
import getDockerArguments from "utils/config/docker";
import createLogger from "utils/logger";
const logger = createLogger("dockerStatusService");
export default async function handler(req, res) {
const { service } = req.query;
const [containerName, containerServer] = service;
if (!containerName && !containerServer) {
return res.status(400).send({
error: "docker query parameters are required",
});
}
try {
const dockerArgs = getDockerArguments(containerServer);
const docker = new Docker(dockerArgs.conn);
const containers = await docker.listContainers({
all: true,
});
// bad docker connections can result in a <Buffer ...> object?
// in any case, this ensures the result is the expected array
if (!Array.isArray(containers)) {
return res.status(500).send({
error: "query failed",
});
}
const containerNames = containers.flatMap((container) => container.Names.map((name) => name.replace(/^\//, "")));
const containerExists = containerNames.includes(containerName);
if (containerExists) {
const container = docker.getContainer(containerName);
const info = await container.inspect();
return res.status(200).json({
status: info.State.Status,
health: info.State.Health?.Status,
});
}
if (dockerArgs.swarm) {
const serviceInfo = await docker
.getService(containerName)
.inspect()
.catch(() => undefined);
if (!serviceInfo) {
return res.status(404).send({
status: "not found",
});
}
const tasks = await docker
.listTasks({
filters: {
service: [containerName],
"desired-state": ["running"],
},
})
.catch(() => []);
if (serviceInfo.Spec.Mode?.Replicated) {
// Replicated service, check n replicas
const replicas = parseInt(serviceInfo.Spec.Mode?.Replicated?.Replicas, 10);
if (tasks.length === replicas) {
return res.status(200).json({
status: `running ${tasks.length}/${replicas}`,
});
}
if (tasks.length > 0) {
return res.status(200).json({
status: `partial ${tasks.length}/${replicas}`,
});
}
} else {
// Global service, prefer 'local' containers
const localContainerIDs = containers.map((c) => c.Id);
const task =
tasks.find((t) => localContainerIDs.includes(t.Status?.ContainerStatus?.ContainerID)) ?? tasks.at(0);
const taskContainerId = task?.Status?.ContainerStatus?.ContainerID;
if (taskContainerId) {
try {
const container = docker.getContainer(taskContainerId);
const info = await container.inspect();
return res.status(200).json({
status: info.State.Status,
health: info.State.Health?.Status,
});
} catch (e) {
if (task) {
return res.status(200).json({
status: task.Status.State,
});
}
}
}
}
}
return res.status(404).send({
status: "not found",
});
} catch (e) {
if (e) logger.error(e);
return res.status(500).send({
error: { message: e?.message ?? "Unknown error" },
});
}
}
+21
View File
@@ -0,0 +1,21 @@
import { getDockerStatuses } from "utils/docker/status";
import createLogger from "utils/logger";
const logger = createLogger("dockerStatuses");
export default async function handler(req, res) {
try {
const result = await getDockerStatuses(req.query.server);
if (result.error) {
return res.status(500).send({ error: result.error });
}
return res.status(200).json(result);
} catch (e) {
if (e) logger.error(e);
return res.status(500).send({
error: { message: e?.message ?? "Unknown error" },
});
}
}
+43 -5
View File
@@ -1,14 +1,16 @@
import classNames from "classnames";
import { signIn } from "next-auth/react";
import { useRouter } from "next/router";
import { useEffect, useMemo, useState } from "react";
import { useEffect, useMemo, useRef, useState } from "react";
import { BiShieldQuarter } from "react-icons/bi";
import { getSettings } from "utils/config/config";
const PUBLIC_SIGN_IN_SETTINGS = ["theme", "color", "title", "background", "backgroundOpacity"];
const AUTO_LOGIN_KEY = "homepage-autologin-attempt";
const AUTO_LOGIN_RETRY_MS = 10000;
export default function SignIn({ providers, settings }) {
export default function SignIn({ providers, settings, autoLogin }) {
const router = useRouter();
const [password, setPassword] = useState("");
const theme = settings?.theme || "dark";
@@ -20,6 +22,36 @@ export default function SignIn({ providers, settings }) {
}, [router.query?.callbackUrl]);
const error = router.query?.error;
const oidcProvider = useMemo(
() => Object.values(providers ?? {}).find((provider) => provider.type !== "credentials"),
[providers],
);
// Try to avoid auto-login loop, e.g. if there was an error (or explicitly disabled via query param)
const autoLoginBlocked = Boolean(error) || router.query?.autologin === "0";
const redirecting = Boolean(autoLogin && oidcProvider && !autoLoginBlocked);
const attempted = useRef(false);
useEffect(() => {
if (!redirecting || attempted.current) return;
attempted.current = true;
let lastAttempt = 0;
try {
lastAttempt = Number(window.sessionStorage.getItem(AUTO_LOGIN_KEY)) || 0;
window.sessionStorage.setItem(AUTO_LOGIN_KEY, String(Date.now()));
} catch {
// sessionStorage throws when site data is blocked, fall through and redirect anyway
}
// Getting here quickly means the session never stuck, hand it back to the user
if (Date.now() - lastAttempt < AUTO_LOGIN_RETRY_MS) {
router.replace(`/auth/signin?autologin=0&callbackUrl=${encodeURIComponent(callbackUrl)}`);
return;
}
signIn(oidcProvider.id, { callbackUrl });
}, [redirecting, oidcProvider, callbackUrl, router]);
let backgroundImage = "";
let opacity = settings?.backgroundOpacity ?? 0;
let backgroundBlur = false;
@@ -143,7 +175,12 @@ export default function SignIn({ providers, settings }) {
<div className="rounded-2xl border border-white/60 bg-white/70 p-6 shadow-lg shadow-black/5 dark:border-white/10 dark:bg-slate-900/70">
<h2 className="text-lg font-semibold text-gray-900 dark:text-slate-100">Sign in</h2>
<div className="mt-6 space-y-3">
{hasPasswordProvider && (
{redirecting && (
<p className="text-sm text-gray-600 dark:text-slate-300">
Redirecting to {oidcProvider?.name}&hellip;
</p>
)}
{!redirecting && hasPasswordProvider && (
<form
className="space-y-3"
onSubmit={async (event) => {
@@ -173,7 +210,8 @@ export default function SignIn({ providers, settings }) {
</button>
</form>
)}
{!hasPasswordProvider &&
{!redirecting &&
!hasPasswordProvider &&
Object.values(providers).map((provider) => (
<button
key={provider.id}
@@ -218,6 +256,6 @@ export async function getServerSideProps(context) {
]),
);
return {
props: { providers, settings },
props: { providers, settings, autoLogin: process.env.HOMEPAGE_OIDC_AUTO_LOGIN === "true" },
};
}
+55 -21
View File
@@ -60,6 +60,46 @@ export async function servicesFromConfig() {
return parseServicesToGroups(services);
}
function flattenServices(groups, services = []) {
groups.forEach((group) => {
(group.services ?? []).forEach((service) => services.push(service));
flattenServices(group.groups ?? [], services);
});
return services;
}
function dockerWidgets(service) {
const widgets = service.widget ? [service.widget, ...(service.widgets ?? [])] : (service.widgets ?? []);
return widgets.filter((widget) => widget?.type === "docker");
}
export async function containersFromConfig(server) {
const target = server || "";
const services = flattenServices(await servicesFromConfig());
// services and docker widgets both carry container + server
const refs = services.flatMap((service) => [service, ...dockerWidgets(service)]);
const matching = refs.filter((ref) => ref.container && (ref.server || "") === target);
return new Set(matching.map((ref) => ref.container));
}
// homepage.foo -> foo, homepage.instance.<this instance>.foo -> foo, another instance -> null
export function homepageLabelValue(label, instanceName) {
if (!label.startsWith("homepage.")) return null;
const value = label.replace("homepage.", "");
if (!value.startsWith("instance.")) return value;
if (instanceName && value.startsWith(`instance.${instanceName}.`)) {
return value.replace(`instance.${instanceName}.`, "");
}
return null;
}
export function hasHomepageLabels(labels, instanceName) {
return Object.keys(labels ?? {}).some((label) => homepageLabelValue(label, instanceName) !== null);
}
export async function servicesFromDocker() {
checkAndCopyConfig("docker.yaml");
@@ -95,29 +135,23 @@ export async function servicesFromDocker() {
const containerLabels = isSwarm ? shvl.get(container, "Spec.Labels") : container.Labels;
const containerName = isSwarm ? shvl.get(container, "Spec.Name") : container.Names[0];
Object.keys(containerLabels).forEach((label) => {
if (label.startsWith("homepage.")) {
let value = label.replace("homepage.", "");
if (instanceName && value.startsWith(`instance.${instanceName}.`)) {
value = value.replace(`instance.${instanceName}.`, "");
} else if (value.startsWith("instance.")) {
return;
}
Object.keys(containerLabels ?? {}).forEach((label) => {
const value = homepageLabelValue(label, instanceName);
if (value === null) return;
if (!constructedService) {
constructedService = {
container: containerName.replace(/^\//, ""),
server: serverName,
weight: 0,
type: "service",
};
}
let substitutedVal = substituteEnvironmentVars(containerLabels[label]);
if (value === "widget.version" || /^widgets\[\d+\]\.version$/.test(value)) {
substitutedVal = parseVersionForUrl(substitutedVal);
}
shvl.set(constructedService, value, substitutedVal);
if (!constructedService) {
constructedService = {
container: containerName.replace(/^\//, ""),
server: serverName,
weight: 0,
type: "service",
};
}
let substitutedVal = substituteEnvironmentVars(containerLabels[label]);
if (value === "widget.version" || /^widgets\[\d+\]\.version$/.test(value)) {
substitutedVal = parseVersionForUrl(substitutedVal);
}
shvl.set(constructedService, value, substitutedVal);
});
if (constructedService && (!constructedService.name || !constructedService.group)) {
+113
View File
@@ -103,6 +103,119 @@ describe("utils/config/service-helpers", () => {
expect(await mod.servicesFromConfig()).toEqual([]);
});
it("containersFromConfig returns an empty set when services.yaml is empty", async () => {
state.servicesYaml = null;
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("local")).toEqual(new Set());
});
it("containersFromConfig only returns containers for the requested server", async () => {
state.servicesYaml = [
{ Group: [{ App: { container: "app", server: "local" } }, { Other: { container: "other", server: "remote" } }] },
];
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("local")).toEqual(new Set(["app"]));
expect(await mod.containersFromConfig("remote")).toEqual(new Set(["other"]));
});
it("containersFromConfig maps a service without a server to the default connection", async () => {
state.servicesYaml = [{ Group: [{ App: { container: "app" } }] }];
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("")).toEqual(new Set(["app"]));
expect(await mod.containersFromConfig(undefined)).toEqual(new Set(["app"]));
expect(await mod.containersFromConfig("local")).toEqual(new Set());
});
it("containersFromConfig recurses into nested groups", async () => {
state.servicesYaml = [
{
Main: [
{ Child: [{ Deep: { container: "deep", server: "local" } }] },
{ Root: { container: "top", server: "local" } },
],
},
];
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("local")).toEqual(new Set(["top", "deep"]));
});
it("containersFromConfig includes docker widget containers in both widget and widgets forms", async () => {
state.servicesYaml = [
{
Group: [
{ WidgetOnly: { widget: { type: "docker", container: "widgetapp", server: "local" } } },
{
WithArray: {
container: "app",
server: "local",
widgets: [
{ type: "docker", container: "sidecar", server: "local" },
{ type: "docker", container: "elsewhere", server: "remote" },
],
},
},
],
},
];
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("local")).toEqual(new Set(["widgetapp", "app", "sidecar"]));
});
it("containersFromConfig ignores non docker widgets that carry a container field", async () => {
state.servicesYaml = [
{ Group: [{ App: { widget: { type: "portainer", container: "sneaky", server: "local" } } }] },
];
const mod = await import("./service-helpers");
expect(await mod.containersFromConfig("local")).toEqual(new Set());
});
it("homepageLabelValue strips the prefix and honors instance scoping", async () => {
const mod = await import("./service-helpers");
expect(mod.homepageLabelValue("com.docker.compose.project", "foo")).toBeNull();
expect(mod.homepageLabelValue("homepage.name", undefined)).toBe("name");
expect(mod.homepageLabelValue("homepage.instance.foo.name", "foo")).toBe("name");
expect(mod.homepageLabelValue("homepage.instance.bar.name", "foo")).toBeNull();
expect(mod.homepageLabelValue("homepage.instance.bar.name", undefined)).toBeNull();
});
it("hasHomepageLabels reports whether a container opts in for this instance", async () => {
const mod = await import("./service-helpers");
expect(mod.hasHomepageLabels(undefined, "foo")).toBe(false);
expect(mod.hasHomepageLabels({}, "foo")).toBe(false);
expect(mod.hasHomepageLabels({ "com.docker.compose.project": "x" }, "foo")).toBe(false);
expect(mod.hasHomepageLabels({ "homepage.name": "X" }, undefined)).toBe(true);
expect(mod.hasHomepageLabels({ "homepage.instance.foo.name": "X" }, "foo")).toBe(true);
expect(mod.hasHomepageLabels({ "homepage.instance.bar.name": "X" }, "foo")).toBe(false);
});
it("servicesFromDocker skips containers without labels instead of failing the whole server", async () => {
state.dockerYaml = { "docker-local": {} };
state.dockerContainersByServer["docker-local"] = [
{ Names: ["/nolabels"] },
{ Names: ["/labelled"], Labels: { "homepage.group": "G", "homepage.name": "Svc" } },
];
const mod = await import("./service-helpers");
const discovered = await mod.servicesFromDocker();
expect(discovered).toEqual(
expect.arrayContaining([
expect.objectContaining({
name: "G",
services: [expect.objectContaining({ name: "Svc", container: "labelled" })],
}),
]),
);
});
it("servicesFromDocker returns [] when docker.yaml is empty", async () => {
state.dockerYaml = null;
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
import { calculateCPUPercent, calculateThroughput, calculateUsedMemory } from "./stats-helpers";
describe("widgets/docker/stats-helpers", () => {
describe("utils/docker/stats-helpers", () => {
it("calculateCPUPercent returns 0 when deltas are not positive", () => {
expect(
calculateCPUPercent({
+92
View File
@@ -0,0 +1,92 @@
import Docker from "dockerode";
import { getSettings } from "utils/config/config";
import getDockerArguments from "utils/config/docker";
import { containersFromConfig, hasHomepageLabels } from "utils/config/service-helpers";
import { calculateCPUPercent, calculateThroughput, calculateUsedMemory } from "utils/docker/stats-helpers";
// mem and network are omitted when docker does not report them, so the widget can skip those blocks
async function statsForContainer(docker, id) {
try {
const raw = await docker.getContainer(id).stats({ stream: false });
const stats = { cpu: calculateCPUPercent(raw) };
if (raw.memory_stats?.usage) {
stats.mem = calculateUsedMemory(raw);
}
if (raw.networks) {
const { rxBytes, txBytes } = calculateThroughput(raw);
stats.rx = rxBytes;
stats.tx = txBytes;
}
return stats;
} catch (e) {
// ensure one failed call does not look like an absent container
return { error: e?.message ?? "stats unavailable" };
}
}
export async function getDockerStats(server) {
const dockerArgs = getDockerArguments(server);
const docker = new Docker(dockerArgs.conn);
const [containers, configured] = await Promise.all([
docker.listContainers({ all: true }),
containersFromConfig(server),
]);
if (!Array.isArray(containers)) {
return { error: "query failed" };
}
const { instanceName } = getSettings();
const targets = {};
const localIds = new Set();
containers.forEach((container) => {
localIds.add(container.Id);
if (container.State !== "running") return;
const labelled = hasHomepageLabels(container.Labels, instanceName);
container.Names.forEach((name) => {
const containerName = name.replace(/^\//, "");
if (labelled || configured.has(containerName)) targets[containerName] = container.Id;
});
});
if (dockerArgs.swarm) {
const [services, tasks] = await Promise.all([
docker.listServices().catch(() => []),
docker.listTasks({ filters: { "desired-state": ["running"] } }).catch(() => []),
]);
const tasksByService = {};
tasks.forEach((task) => {
(tasksByService[task.ServiceID] ??= []).push(task);
});
services.forEach((service) => {
const name = service.Spec?.Name;
if (!name || targets[name]) return;
if (!configured.has(name) && !hasHomepageLabels(service.Spec?.Labels, instanceName)) return;
// stats are only available for containers running on this node
const serviceTasks = tasksByService[service.ID] ?? [];
const task = serviceTasks.find((candidate) => localIds.has(candidate.Status?.ContainerStatus?.ContainerID));
const containerId = task?.Status?.ContainerStatus?.ContainerID;
if (containerId) targets[name] = containerId;
});
}
const names = Object.keys(targets);
const results = await Promise.all(names.map((name) => statsForContainer(docker, targets[name])));
const stats = {};
names.forEach((name, index) => {
stats[name] = results[index];
});
return { stats };
}
+173
View File
@@ -0,0 +1,173 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
const { state, DockerCtor, getDockerArguments, containersFromConfig, hasHomepageLabels, getSettings } = vi.hoisted(
() => {
const state = {
docker: null,
containers: [],
statsById: {},
dockerArgs: { conn: { socketPath: "/var/run/docker.sock" }, swarm: false },
};
function DockerCtor() {
return state.docker;
}
return {
state,
DockerCtor,
getDockerArguments: vi.fn(() => state.dockerArgs),
containersFromConfig: vi.fn(async () => new Set()),
hasHomepageLabels: vi.fn(() => false),
getSettings: vi.fn(() => ({ instanceName: undefined })),
};
},
);
vi.mock("dockerode", () => ({ default: DockerCtor }));
vi.mock("utils/config/docker", () => ({ default: getDockerArguments }));
vi.mock("utils/config/service-helpers", () => ({ containersFromConfig, hasHomepageLabels }));
vi.mock("utils/config/config", () => ({ getSettings }));
import { getDockerStats } from "./stats";
// cpu 20%, mem 900, rx 4, tx 6
const rawStats = (overrides = {}) => ({
cpu_stats: { cpu_usage: { total_usage: 200 }, system_cpu_usage: 2000, online_cpus: 2 },
precpu_stats: { cpu_usage: { total_usage: 100 }, system_cpu_usage: 1000 },
memory_stats: { usage: 1000, total_inactive_file: 100 },
networks: { eth0: { rx_bytes: 1, tx_bytes: 2 }, eth1: { rx_bytes: 3, tx_bytes: 4 } },
...overrides,
});
describe("utils/docker/stats", () => {
beforeEach(() => {
vi.clearAllMocks();
state.dockerArgs = { conn: { socketPath: "/var/run/docker.sock" }, swarm: false };
state.containers = [];
state.statsById = {};
state.docker = {
listContainers: vi.fn(async () => state.containers),
listServices: vi.fn(async () => []),
listTasks: vi.fn(async () => []),
getContainer: vi.fn((id) => ({
stats: vi.fn(async () => {
const entry = state.statsById[id];
if (entry instanceof Error) throw entry;
if (!entry) throw new Error(`no stats for ${id}`);
return entry;
}),
})),
};
containersFromConfig.mockResolvedValue(new Set());
hasHomepageLabels.mockReturnValue(false);
getSettings.mockReturnValue({ instanceName: undefined });
});
it("returns computed stats for configured running containers", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [{ Names: ["/app"], Id: "cid1", State: "running" }];
state.statsById.cid1 = rawStats();
expect(await getDockerStats("local")).toEqual({ stats: { app: { cpu: 20, mem: 900, rx: 4, tx: 6 } } });
expect(getDockerArguments).toHaveBeenCalledWith("local");
expect(containersFromConfig).toHaveBeenCalledWith("local");
});
it("omits containers that are neither configured nor labelled", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [
{ Names: ["/app"], Id: "cid1", State: "running" },
{ Names: ["/secret-db"], Id: "cid2", State: "running" },
];
state.statsById.cid1 = rawStats();
state.statsById.cid2 = rawStats();
const result = await getDockerStats("local");
expect(Object.keys(result.stats)).toEqual(["app"]);
expect(state.docker.getContainer).not.toHaveBeenCalledWith("cid2");
});
it("includes containers discovered through homepage labels", async () => {
hasHomepageLabels.mockImplementation((labels) => labels?.["homepage.name"] !== undefined);
state.containers = [{ Names: ["/labelled"], Id: "cid1", State: "running", Labels: { "homepage.name": "App" } }];
state.statsById.cid1 = rawStats();
expect(Object.keys((await getDockerStats("local")).stats)).toEqual(["labelled"]);
});
it("does not collect stats for containers that are not running", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [{ Names: ["/app"], Id: "cid1", State: "exited" }];
expect(await getDockerStats("local")).toEqual({ stats: {} });
expect(state.docker.getContainer).not.toHaveBeenCalled();
});
it("keeps a per container stats failure without failing the rest", async () => {
containersFromConfig.mockResolvedValue(new Set(["ok", "broken"]));
state.containers = [
{ Names: ["/ok"], Id: "cid1", State: "running" },
{ Names: ["/broken"], Id: "cid2", State: "running" },
];
state.statsById.cid1 = rawStats();
state.statsById.cid2 = new Error("stats unavailable");
expect(await getDockerStats("local")).toEqual({
stats: { ok: { cpu: 20, mem: 900, rx: 4, tx: 6 }, broken: { error: "stats unavailable" } },
});
});
it("omits mem and network when docker does not report them", async () => {
containersFromConfig.mockResolvedValue(new Set(["app"]));
state.containers = [{ Names: ["/app"], Id: "cid1", State: "running" }];
state.statsById.cid1 = rawStats({ memory_stats: {}, networks: undefined });
expect(await getDockerStats("local")).toEqual({ stats: { app: { cpu: 20 } } });
});
it("returns an error when docker returns a non-array containers payload", async () => {
state.containers = Buffer.from("bad");
expect(await getDockerStats("local")).toEqual({ error: "query failed" });
});
it("resolves a swarm service through its local task container", async () => {
state.dockerArgs.swarm = true;
containersFromConfig.mockResolvedValue(new Set(["svc"]));
state.containers = [{ Names: ["/other"], Id: "local1", State: "running" }];
state.statsById.local1 = rawStats();
state.docker.listServices.mockResolvedValue([{ ID: "sid", Spec: { Name: "svc" } }]);
state.docker.listTasks.mockResolvedValue([
{ ServiceID: "sid", Status: { ContainerStatus: { ContainerID: "remote1" } } },
{ ServiceID: "sid", Status: { ContainerStatus: { ContainerID: "local1" } } },
]);
expect(await getDockerStats("swarm")).toEqual({ stats: { svc: { cpu: 20, mem: 900, rx: 4, tx: 6 } } });
});
it("skips a swarm service with no container on this node", async () => {
state.dockerArgs.swarm = true;
containersFromConfig.mockResolvedValue(new Set(["svc"]));
state.containers = [{ Names: ["/other"], Id: "local1", State: "running" }];
state.docker.listServices.mockResolvedValue([{ ID: "sid", Spec: { Name: "svc" } }]);
state.docker.listTasks.mockResolvedValue([
{ ServiceID: "sid", Status: { ContainerStatus: { ContainerID: "remote1" } } },
]);
expect(await getDockerStats("swarm")).toEqual({ stats: {} });
});
it("omits swarm services that are neither configured nor labelled", async () => {
state.dockerArgs.swarm = true;
state.containers = [{ Names: ["/other"], Id: "local1", State: "running" }];
state.statsById.local1 = rawStats();
state.docker.listServices.mockResolvedValue([{ ID: "sid", Spec: { Name: "internal" } }]);
state.docker.listTasks.mockResolvedValue([
{ ServiceID: "sid", Status: { ContainerStatus: { ContainerID: "local1" } } },
]);
expect(await getDockerStats("swarm")).toEqual({ stats: {} });
});
});
+104
View File
@@ -0,0 +1,104 @@
import Docker from "dockerode";
import { getSettings } from "utils/config/config";
import getDockerArguments from "utils/config/docker";
import { containersFromConfig, hasHomepageLabels } from "utils/config/service-helpers";
const HEALTH_STATES = ["healthy", "unhealthy", "starting"];
function statusEntry(state, health) {
return health ? { status: state, health } : { status: state };
}
// docker exposes health only as a filter on the list endpoint, never as a field
async function healthByContainerId(docker) {
const results = await Promise.all(
HEALTH_STATES.map((state) => docker.listContainers({ all: true, filters: { health: [state] } }).catch(() => [])),
);
const health = {};
results.forEach((containers, index) => {
if (!Array.isArray(containers)) return;
containers.forEach((container) => {
health[container.Id] = HEALTH_STATES[index];
});
});
return health;
}
export async function getDockerStatuses(server) {
const dockerArgs = getDockerArguments(server);
const docker = new Docker(dockerArgs.conn);
const [containers, health, configured] = await Promise.all([
docker.listContainers({ all: true }),
healthByContainerId(docker),
containersFromConfig(server),
]);
if (!Array.isArray(containers)) {
return { error: "query failed" };
}
const { instanceName } = getSettings();
const statuses = {};
const byId = {};
containers.forEach((container) => {
const info = statusEntry(container.State, health[container.Id]);
// keyed by id for every container so swarm tasks can resolve their local container
byId[container.Id] = info;
const labelled = hasHomepageLabels(container.Labels, instanceName);
container.Names.forEach((name) => {
const containerName = name.replace(/^\//, "");
if (labelled || configured.has(containerName)) statuses[containerName] = info;
});
});
if (!dockerArgs.swarm) {
return { statuses };
}
const [services, tasks] = await Promise.all([
docker.listServices().catch(() => []),
docker.listTasks({ filters: { "desired-state": ["running"] } }).catch(() => []),
]);
const localIds = new Set(containers.map((container) => container.Id));
const tasksByService = {};
tasks.forEach((task) => {
(tasksByService[task.ServiceID] ??= []).push(task);
});
services.forEach((service) => {
const name = service.Spec?.Name;
if (!name || statuses[name]) return;
if (!configured.has(name) && !hasHomepageLabels(service.Spec?.Labels, instanceName)) return;
const serviceTasks = tasksByService[service.ID] ?? [];
if (service.Spec.Mode?.Replicated) {
const replicas = parseInt(service.Spec.Mode.Replicated.Replicas, 10);
if (serviceTasks.length === replicas) {
statuses[name] = { status: `running ${serviceTasks.length}/${replicas}` };
} else if (serviceTasks.length > 0) {
statuses[name] = { status: `partial ${serviceTasks.length}/${replicas}` };
}
return;
}
const task =
serviceTasks.find((candidate) => localIds.has(candidate.Status?.ContainerStatus?.ContainerID)) ??
serviceTasks.at(0);
const containerId = task?.Status?.ContainerStatus?.ContainerID;
if (containerId && byId[containerId]) {
statuses[name] = byId[containerId];
} else if (task) {
statuses[name] = { status: task.Status.State };
}
});
return { statuses };
}
+20 -8
View File
@@ -118,9 +118,19 @@ function readConfig(file) {
return existsSync(path) ? readFileSync(path, "utf8") : "";
}
const PLACEHOLDER_PATTERN = /(["']?)\{\{([^{}]*)\}\}\1/g;
const HOMEPAGE_KEY_PATTERN = /HOMEPAGE_(?:VAR|FILE)_/;
const PLACEHOLDER_TOKEN_PATTERN = /__HOMEPAGE_MCP_PLACEHOLDER_(\d+)__/g;
// mask {{HOMEPAGE_*}} placeholders so they survive a parse/dump round-trip
function parseYamlConfig(file) {
const parsed = loadYaml(readConfig(file) || "");
return parsed ?? [];
const placeholders = [];
const masked = readConfig(file).replace(PLACEHOLDER_PATTERN, (match, quote, key) => {
if (!HOMEPAGE_KEY_PATTERN.test(key)) return match;
placeholders.push(match);
return `__HOMEPAGE_MCP_PLACEHOLDER_${placeholders.length - 1}__`;
});
return { data: loadYaml(masked) ?? [], placeholders };
}
function validateYaml(file, content) {
@@ -166,8 +176,10 @@ function ensureWriteEnabled() {
return null;
}
function dumpYamlConfig(file, content) {
const dumped = yaml.dump(content, { lineWidth: -1, noRefs: true });
function dumpYamlConfig(file, content, placeholders) {
const dumped = yaml
.dump(content, { lineWidth: -1, noRefs: true })
.replace(PLACEHOLDER_TOKEN_PATTERN, (match, index) => placeholders[index] ?? match);
mkdirSync(CONF_DIR, { recursive: true });
writeFileSync(configPath(file), dumped, "utf8");
return dumped;
@@ -192,7 +204,7 @@ function addService(args) {
};
}
const services = parseYamlConfig("services.yaml");
const { data: services, placeholders } = parseYamlConfig("services.yaml");
if (!Array.isArray(services)) {
throw new Error("services.yaml must contain a top-level array");
}
@@ -220,7 +232,7 @@ function addService(args) {
}
group[groupName].push({ [serviceName]: serviceConfig });
const content = dumpYamlConfig("services.yaml", services);
const content = dumpYamlConfig("services.yaml", services, placeholders);
return textContent(
JSON.stringify({ written: "services.yaml", added: { group: groupName, service: serviceName }, content }, null, 2),
);
@@ -242,7 +254,7 @@ function addInfoWidget(args) {
};
}
const widgets = parseYamlConfig("widgets.yaml");
const { data: widgets, placeholders } = parseYamlConfig("widgets.yaml");
if (!Array.isArray(widgets)) {
throw new Error("widgets.yaml must contain a top-level array");
}
@@ -252,7 +264,7 @@ function addInfoWidget(args) {
assertPlainObject(options, "options");
widgets.push({ [type]: options });
const content = dumpYamlConfig("widgets.yaml", widgets);
const content = dumpYamlConfig("widgets.yaml", widgets, placeholders);
return textContent(JSON.stringify({ written: "widgets.yaml", added: { type }, content }, null, 2));
}
+36
View File
@@ -184,6 +184,42 @@ describe("utils/mcp/homepage-mcp", () => {
);
});
it("preserves env placeholders when adding a service", async () => {
process.env.HOMEPAGE_MCP_ALLOW_WRITE = "true";
const configDir = mkdtempSync(path.join(tmpdir(), "homepage-mcp-test-"));
writeFileSync(
path.join(configDir, "services.yaml"),
"- Media:\n" +
" - Jellyfin:\n" +
" href: http://{{HOMEPAGE_VAR_HOST}}:8096\n" +
" widget:\n" +
" type: jellyfin\n" +
" key: {{HOMEPAGE_VAR_JELLYFIN_KEY}}\n" +
' password: "{{HOMEPAGE_FILE_PASSWORD}}"\n',
);
const mod = await loadMcpWithConfigDir(configDir);
const response = mod.handleMcpRequest({
jsonrpc: "2.0",
id: 11,
method: "tools/call",
params: { name: "add_service", arguments: { group: "Tools", name: "Grafana" } },
});
expect(response.result.isError).toBeUndefined();
expect(readFileSync(path.join(configDir, "services.yaml"), "utf8")).toBe(
"- Media:\n" +
" - Jellyfin:\n" +
" href: http://{{HOMEPAGE_VAR_HOST}}:8096\n" +
" widget:\n" +
" type: jellyfin\n" +
" key: {{HOMEPAGE_VAR_JELLYFIN_KEY}}\n" +
' password: "{{HOMEPAGE_FILE_PASSWORD}}"\n' +
"- Tools:\n" +
" - Grafana: {}\n",
);
});
it("does not add a duplicate service in the same group", async () => {
process.env.HOMEPAGE_MCP_ALLOW_WRITE = "true";
const configDir = mkdtempSync(path.join(tmpdir(), "homepage-mcp-test-"));
+1 -1
View File
@@ -77,7 +77,7 @@ export default async function credentialedProxyHandler(req, res, map) {
} else {
headers.Authorization = basicAuthHeader(widget);
}
} else if (widget.type === "ntfy") {
} else if (["ntfy", "whatsupdocker"].includes(widget.type)) {
if (widget.key) {
headers.Authorization = `Bearer ${widget.key}`;
} else if (widget.username && widget.password) {
@@ -35,6 +35,7 @@ vi.mock("widgets/widgets", () => ({
proxmox: { api: "{url}/api2/json/{endpoint}" },
truenas: { api: "{url}/api/v2.0/{endpoint}" },
ntfy: { api: "{url}/{endpoint}" },
whatsupdocker: { api: "{url}/{endpoint}" },
proxmoxbackupserver: { api: "{url}/api2/json/{endpoint}" },
checkmk: { api: "{url}/{endpoint}" },
stocks: { api: "{url}/{endpoint}" },
@@ -186,6 +187,24 @@ describe("utils/proxy/handlers/credentialed", () => {
expect(params.headers.Authorization).toBe("Bearer k");
});
it.each([
["Bearer", { key: "token" }, "Bearer token"],
["Basic", { username: "u", password: "p" }, `Basic ${Buffer.from("u:p").toString("base64")}`],
["no", {}, undefined],
["Bearer over Basic", { key: "token", username: "u", password: "p" }, "Bearer token"],
])("uses %s auth for whatsupdocker", async (_mode, credentials, authorization) => {
getServiceWidget.mockResolvedValue({ type: "whatsupdocker", url: "http://whatsupdocker", ...credentials });
httpProxy.mockResolvedValue([200, "application/json", []]);
const req = { method: "GET", query: { group: "g", service: "s", endpoint: "api/containers", index: 0 } };
const res = createMockRes();
await credentialedProxyHandler(req, res);
const [, params] = httpProxy.mock.calls.at(-1);
expect(params.headers.Authorization).toBe(authorization);
});
it("uses Bearer auth for ntfy when key is provided", async () => {
getServiceWidget.mockResolvedValue({ type: "ntfy", url: "http://ntfy", topic: "alerts", key: "tk_test" });
httpProxy.mockResolvedValue([200, "application/json", { ok: true }]);
+1 -1
View File
@@ -21,7 +21,7 @@ export default function Component({ service }) {
return <Container service={service} error={alertsError ?? bansError} />;
}
if (!alerts && !bans) {
if (alerts === undefined && bans === undefined) {
return (
<Container service={service}>
<Block label="crowdsec.alerts" />
+11
View File
@@ -86,4 +86,15 @@ describe("widgets/crowdsec/component", () => {
expectBlockValue(container, "crowdsec.alerts", 499);
});
it("renders null responses as 0 counts", () => {
useWidgetAPI.mockImplementation(() => ({ data: null, error: undefined }));
const { container } = renderWithProviders(<Component service={{ widget: { type: "crowdsec" } }} />, {
settings: { hideErrors: false },
});
expectBlockValue(container, "crowdsec.alerts", 0);
expectBlockValue(container, "crowdsec.bans", 0);
});
});
+5
View File
@@ -102,6 +102,11 @@ export default async function crowdsecProxyHandler(req, res) {
return res.status(status).json({ error: "Crowdsec API Error", data });
}
// Crowdsec returns a literal null instead of an empty array when nothing matches
if (data?.toString().trim() === "null") {
return res.status(status).json([]);
}
return res.status(status).send(data);
} catch (error) {
logger.error("Exception calling Crowdsec API: %s", error.message);
+25
View File
@@ -161,4 +161,29 @@ describe("widgets/crowdsec/proxy", () => {
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Failed to authenticate with Crowdsec" });
});
it("normalizes a literal null response to an empty array", async () => {
getServiceWidget.mockResolvedValue({
type: "crowdsec",
url: "http://cs",
username: "machine",
password: "pw",
});
httpProxy
.mockResolvedValueOnce([
200,
"application/json",
JSON.stringify({ token: "tok", expire: new Date(Date.now() + 60_000).toISOString() }),
])
.mockResolvedValueOnce([200, "application/json", Buffer.from("null")]);
const req = { query: { group: "g", service: "svc", endpoint: "alerts", index: "0" } };
const res = createMockRes();
await crowdsecProxyHandler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual([]);
});
});
+20 -18
View File
@@ -1,8 +1,6 @@
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";
@@ -10,15 +8,18 @@ export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const server = encodeURIComponent(widget.server || "");
const { data: statusData, error: statusError } = useSWR(
`/api/docker/status/${widget.container}/${widget.server || ""}`,
);
const { data: statusResponse, error: statusError } = useSWR(`/api/docker/statuses?server=${server}`);
const { statuses } = statusResponse ?? {};
const statusData = statuses ? (statuses[widget.container] ?? { status: "not found" }) : undefined;
const { data: statsData, error: statsError } = useSWR(`/api/docker/stats/${widget.container}/${widget.server || ""}`);
const { data: statsResponse, error: statsError } = useSWR(`/api/docker/stats?server=${server}`);
const { stats } = statsResponse ?? {};
const statsData = stats?.[widget.container];
if (statsError || statsData?.error || statusError || statusData?.error) {
const finalError = statsError ?? statsData?.error ?? statusError ?? statusData?.error;
if (statsError || statsResponse?.error || statsData?.error || statusError || statusResponse?.error) {
const finalError = statsError ?? statsResponse?.error ?? statsData?.error ?? statusError ?? statusResponse?.error;
return <Container service={service} error={finalError} />;
}
@@ -30,6 +31,11 @@ export default function Component({ service }) {
);
}
// running, but reporting no stats: a swarm service whose container is on another node
if (statusData && stats && !statsData) {
return <Container service={service} error="not found" />;
}
if (!statsData || !statusData) {
return (
<Container service={service}>
@@ -41,20 +47,16 @@ export default function Component({ service }) {
);
}
const { rxBytes, txBytes } = calculateThroughput(statsData.stats);
const cpuPercent = calculateCPUPercent(statsData.stats);
const usedMemory = calculateUsedMemory(statsData.stats);
const { cpu, mem, rx, tx } = statsData;
return (
<Container service={service}>
<Block label="docker.cpu" value={t("common.percent", { value: cpuPercent })} highlightValue={cpuPercent} />
{statsData.stats.memory_stats.usage && (
<Block label="docker.mem" value={t("common.bytes", { value: usedMemory })} highlightValue={usedMemory} />
)}
{statsData.stats.networks && (
<Block label="docker.cpu" value={t("common.percent", { value: cpu })} highlightValue={cpu} />
{mem !== undefined && <Block label="docker.mem" value={t("common.bytes", { value: mem })} highlightValue={mem} />}
{rx !== undefined && (
<>
<Block label="docker.rx" value={t("common.bytes", { value: rxBytes })} highlightValue={rxBytes} />
<Block label="docker.tx" value={t("common.bytes", { value: txBytes })} highlightValue={txBytes} />
<Block label="docker.rx" value={t("common.bytes", { value: rx })} highlightValue={rx} />
<Block label="docker.tx" value={t("common.bytes", { value: tx })} highlightValue={tx} />
</>
)}
</Container>
+83 -17
View File
@@ -20,8 +20,8 @@ describe("widgets/docker/component", () => {
it("renders offline status when container is not running", () => {
useSWR
.mockReturnValueOnce({ data: { status: "exited" }, error: undefined }) // status
.mockReturnValueOnce({ data: undefined, error: undefined }); // stats
.mockReturnValueOnce({ data: { statuses: { c: { status: "exited" } } }, error: undefined })
.mockReturnValueOnce({ data: undefined, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c" } }} />, {
settings: { hideErrors: false },
@@ -31,31 +31,97 @@ describe("widgets/docker/component", () => {
expect(screen.getByText("docker.offline")).toBeInTheDocument();
});
it("surfaces a docker error payload instead of reporting the container offline", () => {
useSWR
.mockReturnValueOnce({ data: { error: { message: "socket unreachable" } }, error: undefined })
.mockReturnValueOnce({ data: undefined, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c", server: "s" } }} />, {
settings: { hideErrors: false },
});
expect(screen.queryByText("docker.offline")).not.toBeInTheDocument();
});
it("treats a missing container in the bulk status map as offline", () => {
useSWR
.mockReturnValueOnce({ data: { statuses: {} }, error: undefined })
.mockReturnValueOnce({ data: undefined, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c", server: "s" } }} />, {
settings: { hideErrors: false },
});
expect(useSWR).toHaveBeenCalledWith("/api/docker/statuses?server=s");
expect(screen.getByText("docker.offline")).toBeInTheDocument();
});
it("renders cpu/mem/rx/tx values when stats are available", () => {
useSWR
.mockReturnValueOnce({ data: { status: "running" }, error: undefined }) // status
.mockReturnValueOnce({
data: {
stats: {
cpu_stats: { cpu_usage: { total_usage: 200 }, system_cpu_usage: 2000, online_cpus: 2 },
precpu_stats: { cpu_usage: { total_usage: 100 }, system_cpu_usage: 1000 },
memory_stats: { usage: 1000, total_inactive_file: 100 },
networks: { eth0: { rx_bytes: 1, tx_bytes: 2 }, eth1: { rx_bytes: 3, tx_bytes: 4 } },
},
},
error: undefined,
});
.mockReturnValueOnce({ data: { statuses: { c: { status: "running" } } }, error: undefined })
.mockReturnValueOnce({ data: { stats: { c: { cpu: 20, mem: 900, rx: 4, tx: 6 } } }, error: undefined });
const { container } = renderWithProviders(<Component service={{ widget: { type: "docker", container: "c" } }} />, {
settings: { hideErrors: false },
});
// cpu: (100/1000)*2*100=20
expect(useSWR).toHaveBeenCalledWith("/api/docker/stats?server=");
expect(container.textContent).toContain("20");
// mem used: 1000-100=900
expect(container.textContent).toContain("900");
// rx=4, tx=6
expect(container.textContent).toContain("4");
expect(container.textContent).toContain("6");
});
it("omits the mem and network blocks when the api omits those fields", () => {
useSWR
.mockReturnValueOnce({ data: { statuses: { c: { status: "running" } } }, error: undefined })
.mockReturnValueOnce({ data: { stats: { c: { cpu: 20 } } }, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c" } }} />, {
settings: { hideErrors: false },
});
expect(screen.getByText("docker.cpu")).toBeInTheDocument();
expect(screen.queryByText("docker.mem")).not.toBeInTheDocument();
expect(screen.queryByText("docker.rx")).not.toBeInTheDocument();
});
it("surfaces a per container stats error rather than reporting it missing", () => {
useSWR
.mockReturnValueOnce({ data: { statuses: { c: { status: "running" } } }, error: undefined })
.mockReturnValueOnce({ data: { stats: { c: { error: "connect ETIMEDOUT" } } }, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c", server: "s" } }} />, {
settings: { hideErrors: false },
});
expect(screen.getAllByText(/widget.api_error/).length).toBeGreaterThan(0);
expect(screen.queryByText("docker.cpu")).not.toBeInTheDocument();
});
it("waits for the status before treating absence from the stats map as an error", () => {
useSWR
.mockReturnValueOnce({ data: undefined, error: undefined })
.mockReturnValueOnce({ data: { stats: {} }, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c", server: "s" } }} />, {
settings: { hideErrors: false },
});
expect(screen.queryAllByText(/widget.api_error/)).toHaveLength(0);
expect(screen.getByText("docker.cpu")).toBeInTheDocument();
});
it("reports an error when a running container is absent from the stats map", () => {
useSWR
.mockReturnValueOnce({ data: { statuses: { c: { status: "running" } } }, error: undefined })
.mockReturnValueOnce({ data: { stats: {} }, error: undefined });
renderWithProviders(<Component service={{ widget: { type: "docker", container: "c", server: "s" } }} />, {
settings: { hideErrors: false },
});
expect(screen.getAllByText(/widget.api_error/).length).toBeGreaterThan(0);
expect(screen.queryByText("docker.cpu")).not.toBeInTheDocument();
});
});
+1 -1
View File
@@ -55,7 +55,7 @@ export default function Component({ service }) {
{includeNetWorth && (
<Block
label="ghostfolio.net_worth"
value={`${performanceToday.performance.currentNetWorth.toFixed(2)} ${userInfo?.settings?.currency ?? ""}`}
value={`${performanceToday.performance.currentNetWorth.toFixed(2)} ${userInfo?.settings?.baseCurrency ?? userInfo?.settings?.currency ?? ""}`}
/>
)}
</Container>
+34 -2
View File
@@ -64,7 +64,7 @@ describe("widgets/ghostfolio/component", () => {
data: { performance: { currentGrossPerformancePercent: 0 } },
error: undefined,
})
.mockReturnValueOnce({ data: { settings: { currency: "USD" } }, error: undefined });
.mockReturnValueOnce({ data: { settings: { baseCurrency: "EUR", currency: "USD" } }, error: undefined });
const { container } = renderWithProviders(
<Component
@@ -82,6 +82,38 @@ describe("widgets/ghostfolio/component", () => {
expectBlockValue(container, "ghostfolio.gross_percent_today", "+10");
expectBlockValue(container, "ghostfolio.gross_percent_1y", "-5");
expectBlockValue(container, "ghostfolio.gross_percent_max", "0");
expectBlockValue(container, "ghostfolio.net_worth", "123.46 USD");
expectBlockValue(container, "ghostfolio.net_worth", "123.46 EUR");
});
it("uses the currency as fallback for net worth", () => {
useWidgetAPI
.mockReturnValueOnce({
data: { performance: { netPerformancePercentageWithCurrencyEffect: 0.1, currentNetWorth: 123.456 } },
error: undefined,
})
.mockReturnValueOnce({
data: { performance: { grossPerformancePercentage: -0.05 } },
error: undefined,
})
.mockReturnValueOnce({
data: { performance: { currentGrossPerformancePercent: 0 } },
error: undefined,
})
.mockReturnValueOnce({ data: { settings: { currency: "EUR" } }, error: undefined });
const { container } = renderWithProviders(
<Component
service={{
widget: {
type: "ghostfolio",
url: "http://x",
fields: ["gross_percent_today", "gross_percent_1y", "gross_percent_max", "net_worth"],
},
}}
/>,
{ settings: { hideErrors: false } },
);
expectBlockValue(container, "ghostfolio.net_worth", "123.46 EUR");
});
});
+5 -7
View File
@@ -41,17 +41,15 @@ export default function Component({ service }) {
status = t("peanut.low_battery");
break;
default:
status = upsStatus;
status = typeof upsStatus === "string" && upsStatus ? upsStatus : "-";
}
const percent = (value) => (value === undefined || value === null ? "-" : t("common.percent", { value }));
return (
<Container service={service}>
<Block
label="peanut.battery_charge"
value={t("common.percent", { value: batteryCharge })}
highlightValue={batteryCharge}
/>
<Block label="peanut.ups_load" value={t("common.percent", { value: upsLoad })} highlightValue={upsLoad} />
<Block label="peanut.battery_charge" value={percent(batteryCharge)} highlightValue={batteryCharge} />
<Block label="peanut.ups_load" value={percent(upsLoad)} highlightValue={upsLoad} />
<Block label="peanut.ups_status" value={status} />
</Container>
);
+11
View File
@@ -51,4 +51,15 @@ describe("widgets/peanut/component", () => {
expect(screen.getByText("peanut.online")).toBeInTheDocument();
expect(data).toEqual({ "battery.charge": 55, "ups.load": 12, "ups.status": "OL" });
});
it("renders dashes when readings are missing", () => {
useWidgetAPI.mockReturnValue({
data: { "device.model": "OR500LCDRM1Ua", "ups.status": 0 },
error: undefined,
});
renderWithProviders(<Component service={{ widget: { type: "peanut" } }} />, { settings: { hideErrors: false } });
expect(screen.getAllByText("-")).toHaveLength(3);
});
});
+2 -1
View File
@@ -10,7 +10,8 @@ const widget = {
},
"nodes/localhost/tasks": {
endpoint: "nodes/localhost/tasks",
params: ["errors", "limit", "since"],
params: ["errors", "limit"],
optionalParams: ["since"],
},
"nodes/localhost/status": {
endpoint: "nodes/localhost/status",
@@ -9,7 +9,8 @@ describe("proxmoxbackupserver widget config", () => {
expectWidgetConfigShape(widget);
});
it("requires failed task query params for the tasks endpoint", () => {
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit", "since"]);
it("requires failed task query params for the tasks endpoint, with since optional", () => {
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit"]);
expect(widget.mappings["nodes/localhost/tasks"].optionalParams).toEqual(["since"]);
});
});
+2 -2
View File
@@ -1,8 +1,8 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/{endpoint}",
proxyHandler: genericProxyHandler,
proxyHandler: credentialedProxyHandler,
mappings: {
containers: {