Compare commits

..

1 Commits

Author SHA1 Message Date
shamoon
15fa053b4d Enhancement: support completed field for jellyseer widget 2025-12-11 06:29:19 -08:00
682 changed files with 935 additions and 36995 deletions

View File

@@ -1,21 +0,0 @@
codecov:
require_ci_to_pass: true
coverage:
precision: 2
round: down
range: "0...100"
status:
project:
default:
target: 100%
threshold: 25%
patch:
default:
target: 100%
threshold: 25%
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: false

42
.eslintrc.json Normal file
View File

@@ -0,0 +1,42 @@
{
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:react-hooks/recommended"
],
"plugins": ["prettier"],
"rules": {
"import/no-cycle": [
"error",
{
"maxDepth": 1
}
],
"import/order": [
"error",
{
"newlines-between": "always"
}
],
"no-else-return": [
"error",
{
"allowElseIf": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
}
}

View File

@@ -35,7 +35,6 @@ What type of change does your PR introduce to Homepage?
## Checklist:
- [ ] If applicable, I have added corresponding documentation changes.
- [ ] If applicable, I have added or updated tests for new features and bug fixes.
- [ ] If applicable, I have reviewed the [feature / enhancement](https://gethomepage.dev/more/development/#new-feature-guidelines) and / or [service widget guidelines](https://gethomepage.dev/more/development/#service-widget-guidelines).
- [ ] I have checked that all code style checks pass using [pre-commit hooks](https://gethomepage.dev/more/development/#code-formatting-with-pre-commit-hooks) and [linting checks](https://gethomepage.dev/more/development/#code-linting).
- [ ] If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

View File

@@ -84,7 +84,7 @@ jobs:
latest=auto
- name: Next.js build cache
uses: actions/cache@v5
uses: actions/cache@v4
with:
path: .next/cache
key: nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx') }}

View File

@@ -37,7 +37,7 @@ jobs:
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v5
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
@@ -63,7 +63,7 @@ jobs:
with:
python-version: 3.x
- run: echo "cache_id=${{github.sha}}" >> $GITHUB_ENV
- uses: actions/cache@v5
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache

View File

@@ -32,7 +32,7 @@ jobs:
name: 'Lock Old Threads'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v6
- uses: dessant/lock-threads@v5
with:
issue-inactive-days: '30'
pr-inactive-days: '30'

View File

@@ -1,37 +0,0 @@
name: Tests
on:
pull_request:
push:
workflow_dispatch:
jobs:
vitest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
# Run Vitest directly so `--shard` is parsed as an option
- run: pnpm -s exec vitest run --coverage --shard ${{ matrix.shard }}/4 --pool forks
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: vitest,shard-${{ matrix.shard }}
name: vitest-shard-${{ matrix.shard }}
fail_ci_if_error: true

View File

@@ -68,7 +68,7 @@ For configuration options, examples and more, [please check out the homepage doc
## Security Notice 🔒
Please note that when using features such as widgets, Homepage can access personal information (for example from your home automation system) and Homepage currently does not (and is not planned to) include any authentication layer itself. If Homepage is reachable from any untrusted network, it **must** sit behind a reverse proxy (and/or VPN) that enforces authentication, TLS, and strictly validates Host headers. The built-in host check in Homepage is a best-effort guard and should not be treated as security when exposed publicly.
Please note that when using features such as widgets, Homepage can access personal information (for example from your home automation system) and Homepage currently does not (and is not planned to) include any authentication layer itself. Thus, we recommend homepage be deployed behind a reverse proxy including authentication, SSL etc, and / or behind a VPN.
## With Docker

View File

@@ -22,9 +22,7 @@ if [ "$HOSTNAME" = "::" ]; then
fi
# Check ownership before chown
if [ "$PUID" = "0" ]; then
echo "Skipping ownership changes for /app/config"
elif [ -e /app/config ]; then
if [ -e /app/config ]; then
CURRENT_UID=$(stat -c %u /app/config)
CURRENT_GID=$(stat -c %g /app/config)
@@ -41,9 +39,7 @@ else
fi
# Ensure /app/config/logs exists and is owned
if [ "$PUID" = "0" ]; then
echo "Skipping ownership changes for /app/config/logs"
elif [ -n "$PUID" ] && [ -n "$PGID" ]; then
if [ -n "$PUID" ] && [ -n "$PGID" ]; then
mkdir -p /app/config/logs 2>/dev/null || true
if [ -d /app/config/logs ]; then
LOG_UID=$(stat -c %u /app/config/logs)

View File

@@ -189,8 +189,6 @@ labels: ...
- homepage.widgets[1].slug=youreventslughere
```
To pass custom HTTP headers with a widget request when using labels, use the same dot-notation: `homepage.widget.headers.X-Auth-Key=secret` (or `homepage.widgets[0].headers.X-Auth-Key=secret` when multiple widgets are present).
You can add specify fields for e.g. the [CustomAPI](../widgets/services/customapi.md) widget by using array-style dot notation:
```yaml

View File

@@ -94,7 +94,6 @@ metadata:
gethomepage.dev/name: Emby
gethomepage.dev/widget.type: "emby"
gethomepage.dev/widget.url: "https://emby.example.com"
gethomepage.dev/widget.headers.X-Auth-Key: "your-secret-here"
gethomepage.dev/pod-selector: ""
gethomepage.dev/weight: 10 # optional
gethomepage.dev/instance: "public" # optional

View File

@@ -101,25 +101,6 @@ Each service can have multiple widgets attached to it, for example:
Multiple widgets per service are not yet supported with Kubernetes ingress annotations.
#### Custom HTTP headers
Widgets that make HTTP calls support extra request headers via `headers`. This is useful when a reverse proxy expects a secret header.
```yaml
- UptimeRobot:
icon: uptimekuma.png
href: https://uptimerobot.com/
widget:
type: uptimerobot
url: https://api.uptimerobot.com
key: ${UPTIMEROBOT_API_KEY}
headers:
User-Agent: homepage
X-Auth-Key: your-secret-here
```
If you define services via Docker labels or Kubernetes annotations, use the same key with dot-notation (for example `homepage.widget.headers.X-Auth-Key=secret` or `gethomepage.dev/widget.headers.X-Auth-Key: "secret"`).
#### Field Visibility
Each widget can optionally provide a list of which fields should be visible via the `fields` widget property. If no fields are specified, then all fields will be displayed. The `fields` property must be a valid YAML array of strings. As an example, here is the entry for Sonarr showing only a couple of fields.

View File

@@ -123,58 +123,6 @@ blockHighlights:
Any unspecified level falls back to the built-in defaults.
## Progressive Web App (PWA)
A progressive web app is an app that can be installed on a device and provide user experience like a native app. Homepage comes with built-in support for PWA with some default configurations, but you can customize them.
More information on PWAs can be found in [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps).
## App icons
You can set custom icons for installable apps. More information about how you can set them can be found in the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/icons).
The default value is the Homepage icon in sizes 192x192 and 512x512.
```yaml
pwa:
icons:
- src: https://developer.mozilla.org/favicon-192x192.png
type: image/png
sizes: 192x192
- src: https://developer.mozilla.org/favicon-512x512.png
type: image/png
sizes: 512x512
```
For icon `src` you can pass either full URL or a local path relative to the `/app/public` directory. See [Background Image](#background-image) for more detailed information on how to provide your own files.
### Shortcuts
Shortcuts can e used to specify links to tabs, to be preselected when the homepage is opened as an app.
More information about how you can set them can be found in the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/shortcuts).
```yaml
pwa:
shortcuts:
- name: First
url: "/#first" # opens the first tab
- name: Second
url: "/#second" # opens the second tab
- name: Third
url: "/#third" # opens the third tab
```
### Other PWA configurations
Homepage sets few other PWA configurations, that are based on global settings in `settings.yaml`:
- `name`, `short_name` - Both equal to the [`title`](#title) setting.
- `theme_color`, `background_color` - Both based on the [`color`](#color-palette) and [`theme`](#theme) settings.
- `display` - It is always set to "standalone".
- `start_url` - Equal to the [`startUrl`](#start-url) setting.
More information for wach of the PWA configurations can be found in the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference).
## Layout
You can configure service and bookmarks sections to be either "column" or "row" based layouts, like so:

View File

@@ -37,4 +37,4 @@ The value is a comma-separated (no spaces) list of allowed hosts (sometimes with
If you are seeing errors about host validation, check the homepage logs and ensure that the host exactly as output in the logs is in the `HOMEPAGE_ALLOWED_HOSTS` list.
This can be disabled by setting `HOMEPAGE_ALLOWED_HOSTS` to `*` but this is not recommended. Public deployments must rely on a reverse proxy (and/or VPN) that enforces authentication, TLS, and unexpected Host headers; the built-in host check is a best-effort guard for local setups and is not a substitute for edge protections.
This can be disabled by setting `HOMEPAGE_ALLOWED_HOSTS` to `*` but this is not recommended.

View File

@@ -104,7 +104,7 @@
body {
background-color: transparent !important;
background-image: url("https://raw.githubusercontent.com/gethomepage/homepage/main/docs/assets/blossom_valley_blur.jpg");
background-image: url("https://raw.githubusercontent.com/gethomepage/homepage/main/docs/assets/blossom_valley.jpg");
background-size: cover;
background-attachment: fixed;
background-position: center;
@@ -119,6 +119,20 @@ body[data-md-color-scheme="default"] {
color: rgba(255, 255, 255, 1);
}
.blur-overlay {
z-index: -1;
position: fixed;
width: 100%;
height: 100%;
background: hsl(0deg 0% 0% / 10%);
backdrop-filter: blur(128px);
-webkit-backdrop-filter: blur(128px);
}
[data-md-color-scheme="default"] .blur-overlay {
background: hsla(0, 0%, 0%, 0);
}
.md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link,
.md-nav--secondary .md-nav__title {
background: none;

View File

@@ -12,6 +12,7 @@ hide:
- Check config/logs/homepage.log, on docker simply e.g. `docker logs homepage`. This may provide some insight into the reason for an error.
- Check the browser error console, this can also sometimes provide useful information.
- Consider setting the `ENV` variable `LOG_LEVEL` to `debug`.
- If certain widgets are failing when connecting to public APIs, consider [disabling IPv6](#disabling-ipv6).
## Service Widget Errors
@@ -66,3 +67,17 @@ All service widgets work essentially the same, that is, homepage makes a proxied
## Missing custom icons
If, after correctly adding and mapping your custom icons via the [Icons](../configs/services.md#icons) instructions, you are still unable to see your icons please try recreating your container.
## Disabling IPv6 for http requests {#disabling-ipv6}
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), in certain setups you may need to disable IPv6. You can set the environment variable `HOMEPAGE_PROXY_DISABLE_IPV6` to `true` to disable IPv6 for the homepage proxy.
Alternatively, you can use the `sysctls` option in your docker-compose file to disable IPv6 for the homepage container completely:
```yaml
services:
homepage:
...
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
```

View File

@@ -33,32 +33,6 @@ Once dependencies have been installed you can lint your code with
pnpm lint
```
## Testing
Homepage uses [Vitest](https://vitest.dev/) for unit and component tests.
Run the test suite:
```bash
pnpm test
```
Run the test suite with coverage:
```bash
pnpm test:coverage
```
### What tests to include
- New or updated widgets should generally include a component test near the widget component (for example `src/widgets/<widget>/component.test.jsx`) that covers realistic behavior: loading/placeholder state, error state, and a representative "happy path" render.
- If you add or change a widget definition file (`src/widgets/<widget>/widget.js`), add/update its corresponding unit test (`src/widgets/<widget>/widget.test.js`) to cover the config/mapping behavior.
- If your widget requires a custom proxy (`src/widgets/<widget>/proxy.js`), add a proxy unit test (`src/widgets/<widget>/proxy.test.js`) that validates:
- request construction (URL, query params, headers/auth)
- response mapping (what the widget consumes)
- error pathways (upstream error, unexpected payloads)
- Avoid placing test files under `src/pages/**` (Next.js treats files there as routes). Page tests should live under `src/__tests__/pages/**`.
## Code formatting with pre-commit hooks
To ensure a consistent style and formatting across the project source, the project utilizes Git [`pre-commit`](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) hooks to perform some formatting and linting before a commit is allowed.

View File

@@ -201,18 +201,3 @@ export default async function customProxyHandler(req, res, map) {
```
Proxy handlers are a complex topic and require a good understanding of JavaScript and the Homepage codebase. If you are new to Homepage, we recommend using the built-in proxy handlers.
## Testing proxy handlers
Proxy handlers are a common source of regressions because they deal with authentication, request formatting, and sometimes odd upstream API behavior.
When you add a new proxy handler or custom widget proxy, include tests that focus on behavior:
- **Request construction:** the correct URL/path, query params, headers, and auth (and that secrets are not accidentally logged).
- **Response mapping:** the payload shape expected by the widget/component (including optional/missing fields).
- **Error handling:** upstream non-200s, invalid JSON, timeouts, and unexpected payloads should produce a predictable result.
Test locations:
- Shared handlers live in `src/utils/proxy/handlers/*.js` with tests alongside them (for example `src/utils/proxy/handlers/generic.test.js`).
- Widget-specific proxies live in `src/widgets/<widget>/proxy.js` with tests in `src/widgets/<widget>/proxy.test.js`.

View File

@@ -1,18 +0,0 @@
---
title: Arcane
description: Arcane Widget Configuration
---
Learn more about [Arcane](https://github.com/getarcaneapp/arcane).
**Allowed fields** (max 4): `running`, `stopped`, `total`, `images`, `images_used`, `images_unused`, `image_updates`.
**Default fields**: `running`, `stopped`, `total`, `image_updates`.
```yaml
widget:
type: arcane
url: http://localhost:3552
env: 0 # required, 0 is Arcane default local environment
key: your-api-key
fields: ["running", "stopped", "total", "image_updates"] # optional
```

View File

@@ -1,16 +0,0 @@
---
title: Booklore
description: Booklore Widget Configuration
---
Learn more about [Booklore](https://github.com/booklore-app/booklore).
The widget authenticates with your Booklore credentials to surface total libraries, books, and reading progress counts for your account.
```yaml
widget:
type: booklore
url: https://booklore.host.or.ip
username: username
password: password
```

View File

@@ -1,17 +0,0 @@
---
title: Dispatcharr
description: Dispatcharr Widget Configuration
---
Learn more about [Dispatcharr](https://github.com/Dispatcharr/Dispatcharr).
Allowed fields: `["channels", "streams"]`.
```yaml
widget:
type: dispatcharr
url: http://dispatcharr.host.or.ip
username: username
password: password
enableActiveStreams: true # optional, defaults to false
```

View File

@@ -1,20 +0,0 @@
---
title: Dockhand
description: Dockhand Widget Configuration
---
Learn more about [Dockhand](https://dockhand.pro/).
Note: The widget currently supports Dockhand's **local** authentication only.
**Allowed fields:** (max 4): `running`, `stopped`, `paused`, `total`, `cpu`, `memory`, `images`, `volumes`, `events_today`, `pending_updates`, `stacks`.
**Default fields:** `running`, `total`, `cpu`, `memory`.
```yaml
widget:
type: dockhand
url: http://localhost:3001
environment: local # optional: name or id; aggregates all when omitted
username: your-user # required for local auth
password: your-pass # required for local auth
```

View File

@@ -3,8 +3,6 @@ title: Gatus
description: Gatus Widget Configuration
---
Learn more about [Gatus](https://github.com/TwiN/gatus).
Allowed fields: `["up", "down", "uptime"]`.
```yaml

View File

@@ -9,7 +9,6 @@ You can also find a list of all available service widgets in the sidebar navigat
- [Adguard Home](adguard-home.md)
- [APC UPS](apcups.md)
- [Arcane](arcane.md)
- [ArgoCD](argocd.md)
- [Atsumeru](atsumeru.md)
- [Audiobookshelf](audiobookshelf.md)
@@ -18,7 +17,6 @@ You can also find a list of all available service widgets in the sidebar navigat
- [Azure DevOps](azuredevops.md)
- [Backrest](backrest.md)
- [Bazarr](bazarr.md)
- [Booklore](booklore.md)
- [Beszel](beszel.md)
- [Caddy](caddy.md)
- [Calendar](calendar.md)
@@ -33,8 +31,6 @@ You can also find a list of all available service widgets in the sidebar navigat
- [Deluge](deluge.md)
- [DeveLanCacheUI](develancacheui.md)
- [DiskStation](diskstation.md)
- [Dispatcharr](dispatcharr.md)
- [Dockhand](dockhand.md)
- [DownloadStation](downloadstation.md)
- [Emby](emby.md)
- [ESPHome](esphome.md)

View File

@@ -9,17 +9,11 @@ You can create an API key from inside Jellyfin at `Settings > Advanced > Api Key
As of v0.6.11 the widget supports fields `["movies", "series", "episodes", "songs"]`. These blocks are disabled by default but can be enabled with the `enableBlocks` option, and the "Now Playing" feature (enabled by default) can be disabled with the `enableNowPlaying` option.
| Jellyfin Version | Homepage Widget Version |
| ---------------- | ----------------------- |
| < 10.12 | 1 (default) |
| >= 10.12 | 2 |
```yaml
widget:
type: jellyfin
url: http://jellyfin.host.or.ip
key: apikeyapikeyapikeyapikeyapikey
version: 2 # optional, default is 1
enableBlocks: true # optional, defaults to false
enableNowPlaying: true # optional, defaults to true
enableUser: true # optional, defaults to false

View File

@@ -7,8 +7,8 @@ Learn more about [Jellyseerr](https://github.com/Fallenbagel/jellyseerr).
Find your API key under `Settings > General > API Key`.
Allowed fields: `["pending", "approved", "available", "issues"]`.
Default fields: `["pending", "approved", "available"]`.
Allowed fields: `["pending", "approved", "available", "completed", "issues"]`.
Default fields: `["pending", "approved", "completed"]`.
```yaml
widget:

View File

@@ -9,17 +9,11 @@ _Note that the project was renamed from PiAlert to NetAlertX._
Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`.
Provide the `API_TOKEN` (f.k.a. `SYNC_api_token`) as the `key` in your config.
| NetAlertX Version | Homepage Widget Version |
| ----------------- | ----------------------- |
| < v26.1.17 | 1 (default) |
| > v26.1.17 | 2 |
If you have enabled a password on your NetAlertX instance, you will need to provide the `SYNC_api_token` as the `key` in your config.
```yaml
widget:
type: netalertx
url: http://ip:port # use backend port for widget version 2+
key: yournetalertxapitoken
version: 2 # optional, default is 1
url: http://ip:port
key: netalertxsyncapitoken # optional, only if password is enabled
```

View File

@@ -5,11 +5,6 @@ description: TrueNas Scale Widget Configuration
Learn more about [TrueNas](https://www.truenas.com/).
| TrueNAS Version | Homepage widget version |
| ----------------------- | ----------------------- |
| < 26.04 (REST API) | 1 (default) |
| > 25.04 (Websocket API) | 2 |
Allowed fields: `["load", "uptime", "alerts"]`.
To create an API Key, follow [the official TrueNAS documentation](https://www.truenas.com/docs/scale/scaletutorials/toptoolbar/managingapikeys/).
@@ -22,7 +17,6 @@ To use the `enablePools` option with TrueNAS Core, the `nasType` parameter is re
widget:
type: truenas
url: http://truenas.host.or.ip
version: 2 # optional, defaults to 1
username: user # not required if using api key
password: pass # not required if using api key
key: yourtruenasapikey # not required if using username / password

View File

@@ -9,16 +9,10 @@ Allowed fields: `["projects", "tasks7d", "tasksOverdue", "tasksInProgress"]`.
A list of the next 5 tasks ordered by due date is disabled by default, but can be enabled with the `enableTaskList` option.
| Vikunja Version | Homepage Widget Version |
| --------------- | ----------------------- |
| < v1.0.0-rc4 | 1 (default) |
| >= v1.0.0-rc4 | 2 |
```yaml
widget:
type: vikunja
url: http[s]://vikunja.host.or.ip[:port]
key: vikunjaapikey
enableTaskList: true # optional, defaults to false
version: 2 # optional, defaults to 1
```

View File

@@ -1,78 +0,0 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import { fixupConfigRules } from "@eslint/compat";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import prettier from "eslint-plugin-prettier";
import { defineConfig, globalIgnores } from "eslint/config";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
export default defineConfig([
{
extends: fixupConfigRules(compat.extends("next/core-web-vitals", "prettier", "plugin:react-hooks/recommended")),
plugins: {
prettier,
},
languageOptions: {
ecmaVersion: 6,
sourceType: "module",
parserOptions: {
ecmaFeatures: {
modules: true,
},
},
},
settings: {
"import/resolver": {
node: {
paths: ["src"],
},
},
},
rules: {
"import/no-cycle": [
"error",
{
maxDepth: 1,
},
],
"import/order": [
"error",
{
"newlines-between": "always",
},
],
"no-else-return": [
"error",
{
allowElseIf: true,
},
],
},
},
// Vitest tests often intentionally place imports after `vi.mock(...)` to ensure
// modules under test see the mocked dependencies. `import/order` can't safely
// auto-fix those cases, so disable it for test files.
{
files: ["src/**/*.test.{js,jsx}", "src/**/*.spec.{js,jsx}"],
rules: {
"import/order": "off",
},
},
globalIgnores(["./config/", "./coverage/", "./.venv/", "./.next/", "./site/"]),
]);

View File

@@ -33,7 +33,6 @@ nav:
- widgets/services/index.md
- widgets/services/adguard-home.md
- widgets/services/apcups.md
- widgets/services/arcane.md
- widgets/services/argocd.md
- widgets/services/atsumeru.md
- widgets/services/audiobookshelf.md
@@ -42,7 +41,6 @@ nav:
- widgets/services/azuredevops.md
- widgets/services/backrest.md
- widgets/services/bazarr.md
- widgets/services/booklore.md
- widgets/services/beszel.md
- widgets/services/caddy.md
- widgets/services/calendar.md
@@ -57,8 +55,6 @@ nav:
- widgets/services/deluge.md
- widgets/services/develancacheui.md
- widgets/services/diskstation.md
- widgets/services/dispatcharr.md
- widgets/services/dockhand.md
- widgets/services/downloadstation.md
- widgets/services/emby.md
- widgets/services/esphome.md

View File

@@ -1,5 +1,6 @@
// prettyBytes taken from https://github.com/sindresorhus/pretty-bytes
/* eslint-disable no-param-reassign */
const BYTE_UNITS = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
const BIBYTE_UNITS = ["B", "kiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
@@ -36,6 +37,7 @@ function prettyBytes(number, options) {
...options,
};
// eslint-disable-next-line no-nested-ternary
const UNITS = options.bits ? (options.binary ? BIBIT_UNITS : BIT_UNITS) : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
if (options.signed && number === 0) {
@@ -43,7 +45,7 @@ function prettyBytes(number, options) {
}
const isNegative = number < 0;
// eslint-disable-next-line no-nested-ternary
const prefix = isNegative ? "-" : options.signed ? "+" : "";
if (isNegative) {

View File

@@ -1,16 +1,13 @@
{
"name": "homepage",
"version": "1.10.0",
"version": "1.7.0",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"lint": "next lint",
"telemetry": "next telemetry disable"
},
"dependencies": {
@@ -21,14 +18,14 @@
"dockerode": "^4.0.7",
"follow-redirects": "^1.15.11",
"gamedig": "^5.3.2",
"i18next": "^25.8.0",
"i18next": "^25.5.3",
"ical.js": "^2.1.0",
"js-yaml": "^4.1.1",
"js-yaml": "^4.1.0",
"json-rpc-2.0": "^1.7.0",
"luxon": "^3.6.1",
"memory-cache": "^0.2.0",
"minecraftstatuspinger": "^1.2.2",
"next": "^15.5.11",
"next": "^15.5.7",
"next-i18next": "^12.1.0",
"ping": "^0.4.4",
"pretty-bytes": "^7.1.0",
@@ -36,48 +33,38 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.5.3",
"react-icons": "^5.5.0",
"react-icons": "^5.4.0",
"recharts": "^3.1.2",
"swr": "^2.4.0",
"swr": "^2.3.3",
"systeminformation": "^5.27.11",
"tough-cookie": "^6.0.0",
"urbackup-server-api": "^0.91.0",
"winston": "^3.19.0",
"ws": "^8.18.3",
"urbackup-server-api": "^0.8.9",
"winston": "^3.17.0",
"xml-js": "^1.6.11"
},
"devDependencies": {
"@eslint/compat": "^2.0.2",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/postcss": "^4.1.18",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@vitest/coverage-v8": "^3.2.4",
"@tailwindcss/postcss": "^4.1.14",
"eslint": "^9.25.1",
"eslint-config-next": "^15.5.11",
"eslint-config-next": "^15.2.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.2.0",
"jsdom": "^26.1.0",
"postcss": "^8.5.6",
"prettier": "^3.7.3",
"prettier-plugin-organize-imports": "^4.3.0",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "^4.1.18",
"typescript": "^5.7.3",
"vitest": "^3.2.4"
"tailwindcss": "^4.0.9",
"typescript": "^5.7.3"
},
"optionalDependencies": {
"osx-temperature-sensor": "^1.0.8"
},
"pnpm": {
"onlyBuiltDependencies": [
"@tailwindcss/oxide",
"osx-temperature-sensor",
"sharp"
]

2123
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Liedjies"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Vanlyn af",
"offline_alt": "Vanlyn af",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Op",
"pending": "Afwagtend",
"down": "Af",
"ok": "Ok"
"down": "Af"
},
"healthchecks": {
"new": "Nuut",
@@ -715,10 +704,6 @@
"uptime": "Optyd",
"volumeAvailable": "Beskikbaar"
},
"dispatcharr": {
"channels": "Kanale",
"streams": "Uitsendings"
},
"mylar": {
"series": "Reekse",
"issues": "Kwessies",
@@ -784,7 +769,7 @@
"gross_percent_today": "Vandag",
"gross_percent_1y": "Een jaar",
"gross_percent_max": "Alle tyd",
"net_worth": "Netto Waarde"
"net_worth": "Net Worth"
},
"audiobookshelf": {
"podcasts": "Podsendinge",
@@ -807,12 +792,6 @@
"categories": "Kategorieë",
"series": "Reekse"
},
"booklore": {
"libraries": "Biblioteke",
"books": "Boeke",
"reading": "Lees",
"finished": "Klaar"
},
"jdownloader": {
"downloadCount": "Tou",
"downloadBytesRemaining": "Oorblywende",
@@ -1150,26 +1129,5 @@
"songs": "Liedjies",
"time": "Tyd",
"artists": "Kunstenaars"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Lopend",
"stopped": "Gestop",
"cpu": "SVE",
"memory": "Geheue",
"images": "Beelde",
"volumes": "Volumes",
"events_today": "Vandag se byeenkomste",
"pending_updates": "Hangende opdaterings",
"stacks": "Stapels",
"paused": "Onderbreek",
"total": "Totaal",
"environment_not_found": "Omgewing Nie Gevind Nie"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "حلقات",
"songs": "أغاني"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "جديد(ة)",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "المُشكِلات",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -63,7 +63,7 @@
"wlan_users": "WLAN Потребители",
"up": "UP",
"down": "DOWN",
"wait": "Моля изчакайте",
"wait": "Please wait",
"empty_data": "Неизвестен статус на подсистема"
},
"docker": {
@@ -83,7 +83,7 @@
"partial": "Частично"
},
"ping": {
"error": "Грешка",
"error": "Error",
"ping": "Пинг",
"down": "Down",
"up": "Up",
@@ -91,11 +91,11 @@
},
"siteMonitor": {
"http_status": "HTTP статус",
"error": "Грешка",
"error": "Error",
"response": "Отговор",
"down": "Down",
"up": "Up",
"not_available": "Не е налично"
"not_available": "Not Available"
},
"emby": {
"playing": "Възпроизвежда",
@@ -107,21 +107,11 @@
"episodes": "Епизоди",
"songs": "Песни"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Онлайн",
"total": "Общо",
"total": "Total",
"unknown": "Unknown"
},
"evcc": {
@@ -143,7 +133,7 @@
"unread": "Непрочетени"
},
"fritzbox": {
"connectionStatus": "Статус",
"connectionStatus": "Status",
"connectionStatusUnconfigured": "Неконфигуриран",
"connectionStatusConnecting": "Свързване",
"connectionStatusAuthenticating": "Удостоверяване",
@@ -151,7 +141,7 @@
"connectionStatusDisconnecting": "Прекъсване на връзката",
"connectionStatusDisconnected": "Не е свързан",
"connectionStatusConnected": "Свързан",
"uptime": "Време на работа",
"uptime": "Uptime",
"maxDown": "Макс сваляне",
"maxUp": "Макс качване",
"down": "Down",
@@ -180,8 +170,8 @@
"tautulli": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Битрейт",
"no_active": "Няма активни потоци",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"plex_connection_error": "Провери връзка с Plex"
},
"omada": {
@@ -199,7 +189,7 @@
"plex": {
"streams": "Активни Потоци",
"albums": "Албуми",
"movies": "Филми",
"movies": "Movies",
"tv": "Сериали"
},
"sabnzbd": {
@@ -372,8 +362,8 @@
},
"trilium": {
"version": "Version",
"notesCount": "Бележки",
"dbSize": "Размер на базата данни",
"notesCount": "Notes",
"dbSize": "Database Size",
"unknown": "Unknown"
},
"navidrome": {
@@ -383,7 +373,7 @@
"npm": {
"enabled": "Активирано",
"disabled": "Деактивирано",
"total": "Общо"
"total": "Total"
},
"coinmarketcap": {
"configure": "Настрой за следене една или повече крипто валути",
@@ -394,7 +384,7 @@
},
"gotify": {
"apps": "Приложения",
"clients": "Клиенти",
"clients": "Clients",
"messages": "Съобщения"
},
"prowlarr": {
@@ -415,7 +405,7 @@
"transferRate": "Rate"
},
"mastodon": {
"user_count": "Потребители",
"user_count": "Users",
"status_count": "Posts",
"domain_count": "Domains"
},
@@ -426,17 +416,17 @@
},
"minecraft": {
"players": "Играчи",
"version": "Версия",
"status": "Статус",
"up": "Онлайн",
"down": "Офлайн"
"version": "Version",
"status": "Status",
"up": "Online",
"down": "Offline"
},
"miniflux": {
"read": "Read",
"unread": "Unread"
},
"authentik": {
"users": "Потребители",
"users": "Users",
"loginsLast24H": "Logins (24h)",
"failedLoginsLast24H": "Failed Logins (24h)"
},
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Нови",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Издания",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodis",
"songs": "Cançons"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nou",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problemes",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizody",
"songs": "Skladby"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nové",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problémy",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episoder",
"songs": "Sange"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Ny",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problemer",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -45,9 +45,9 @@
"free": "Frei",
"used": "In Benutzung",
"load": "Last",
"temp": "Temp",
"temp": "TEMP",
"max": "Max",
"uptime": "Betriebszeit"
"uptime": "BETRIEBSZEIT"
},
"unifi": {
"users": "Benutzer",
@@ -107,16 +107,6 @@
"episodes": "Episoden",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transkodierung",
"bitrate": "Bitrate",
"no_active": "Keine aktiven Streams",
"movies": "Filme",
"series": "Serien",
"episodes": "Episoden",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Online",
"pending": "Wartend",
"down": "Offline",
"ok": "Ok"
"down": "Offline"
},
"healthchecks": {
"new": "Neu",
@@ -613,8 +602,8 @@
"pangolin": {
"orgs": "Orgs",
"sites": "Sites",
"resources": "Ressourcen",
"targets": "Ziele",
"resources": "Resources",
"targets": "Targets",
"traffic": "Traffic",
"in": "In",
"out": "Out"
@@ -715,10 +704,6 @@
"uptime": "Betriebszeit",
"volumeAvailable": "Verfügbar"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Serien",
"issues": "Probleme",
@@ -807,12 +792,6 @@
"categories": "Kategorien",
"series": "Serien"
},
"booklore": {
"libraries": "Libraries",
"books": "Bücher",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Warteschlange",
"downloadBytesRemaining": "Verbleibend",
@@ -1150,26 +1129,5 @@
"songs": "Titel",
"time": "Zeit",
"artists": "Künstler"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "Stopped",
"cpu": "CPU",
"memory": "Memory",
"images": "Images",
"volumes": "Volumes",
"events_today": "Heutige Ereignisse",
"pending_updates": "Ausstehende Updates",
"stacks": "Stacks",
"paused": "Pausiert",
"total": "Total",
"environment_not_found": "Umgebung nicht gefunden"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Επεισόδια",
"songs": "Τραγούδια"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizodoj",
"songs": "Kantoj"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodios",
"songs": "Canciones"
},
"jellyfin": {
"playing": "Reproduciendo",
"transcoding": "Convirtiendo",
"bitrate": "Tasa de Bits",
"no_active": "No hay Streams activos",
"movies": "Películas",
"series": "Series",
"episodes": "Episodios",
"songs": "Canciones"
},
"esphome": {
"offline": "Fuera de línea",
"offline_alt": "Fuera de línea",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Activo",
"pending": "Pendiente",
"down": "Inactivo",
"ok": "Ok"
"down": "Inactivo"
},
"healthchecks": {
"new": "Nuevo",
@@ -612,12 +601,12 @@
},
"pangolin": {
"orgs": "Orgs",
"sites": "Sitios",
"resources": "Recursos",
"targets": "Destinos",
"traffic": "Tráfico",
"in": "Entrante",
"out": "Saliente"
"sites": "Sites",
"resources": "Resources",
"targets": "Targets",
"traffic": "Traffic",
"in": "In",
"out": "Out"
},
"peanut": {
"battery_charge": "Carga de la batería",
@@ -715,10 +704,6 @@
"uptime": "Tiempo activo",
"volumeAvailable": "Disponible"
},
"dispatcharr": {
"channels": "Canales",
"streams": "Transmisiones"
},
"mylar": {
"series": "Series",
"issues": "Números",
@@ -784,7 +769,7 @@
"gross_percent_today": "Hoy",
"gross_percent_1y": "Un año",
"gross_percent_max": "Todo el tiempo",
"net_worth": "Patrimonio neto"
"net_worth": "Net Worth"
},
"audiobookshelf": {
"podcasts": "Podcasts",
@@ -807,12 +792,6 @@
"categories": "Categorías",
"series": "Series"
},
"booklore": {
"libraries": "Librerías",
"books": "Libros",
"reading": "Lectura",
"finished": "Finalizado"
},
"jdownloader": {
"downloadCount": "En cola",
"downloadBytesRemaining": "Restante",
@@ -1150,26 +1129,5 @@
"songs": "Canciones",
"time": "Tiempo",
"artists": "Artistas"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Activo",
"stopped": "Detenido",
"cpu": "CPU",
"memory": "Memoria",
"images": "Imágenes",
"volumes": "Volumen",
"events_today": "Eventos de hoy",
"pending_updates": "Actualizaciones pendientes",
"stacks": "Entornos",
"paused": "En Pausa",
"total": "Total",
"environment_not_found": "Entorno no encontrado"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Abestiak"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Arazoak",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Épisodes",
"songs": "Morceaux"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Hors ligne",
"offline_alt": "Hors ligne",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "En ligne",
"pending": "En attente",
"down": "Hors ligne",
"ok": "Ok"
"down": "Hors ligne"
},
"healthchecks": {
"new": "Nouveau",
@@ -715,10 +704,6 @@
"uptime": "Disponibilité",
"volumeAvailable": "Disponible"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Séries",
"issues": "Anomalies",
@@ -807,12 +792,6 @@
"categories": "Catégories",
"series": "Séries"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "File d'attente",
"downloadBytesRemaining": "Restant",
@@ -997,11 +976,11 @@
},
"zabbix": {
"unclassified": "Non classé",
"information": "Information",
"warning": "Avertissement",
"average": "Moyen",
"high": "Haut",
"disaster": "Désastre"
"information": "Informations",
"warning": "Attention",
"average": "Moyenne",
"high": "Élevé",
"disaster": ""
},
"lubelogger": {
"vehicle": "Véhicule",
@@ -1150,26 +1129,5 @@
"songs": "Musiques",
"time": "Durée",
"artists": "Artistes"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "פרקים",
"songs": "שירים"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "מכובה",
"offline_alt": "מכובה",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "למעלה",
"pending": "ממתין",
"down": "למטה",
"ok": "Ok"
"down": "למטה"
},
"healthchecks": {
"new": "חדש",
@@ -715,10 +704,6 @@
"uptime": "זמן פעילות",
"volumeAvailable": "זמין"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "סדרות",
"issues": "גיליונות",
@@ -807,12 +792,6 @@
"categories": "קטגוריות",
"series": "סדרות"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "תור",
"downloadBytesRemaining": "נותר",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizode",
"songs": "Pjesme"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Aktivno",
"pending": "U tijeku",
"down": "Neaktivno",
"ok": "Ok"
"down": "Neaktivno"
},
"healthchecks": {
"new": "Novo",
@@ -715,10 +704,6 @@
"uptime": "Vrijeme rada",
"volumeAvailable": "Dostupno"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Serije",
"issues": "Problemi",
@@ -807,12 +792,6 @@
"categories": "Kategorije",
"series": "Serije"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Red čekanja",
"downloadBytesRemaining": "Preostalo",
@@ -1150,26 +1129,5 @@
"songs": "Pjesme",
"time": "Vrijeme",
"artists": "Izvođači"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizód",
"songs": "Zeneszám"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Nem elérhető",
"offline_alt": "Nem elérhető",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Fut",
"pending": "Függőben lévő",
"down": "Leállt",
"ok": "Ok"
"down": "Leállt"
},
"healthchecks": {
"new": "Új",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problémák",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episode",
"songs": "Lagu"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Baru",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Isu",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodi",
"songs": "Canzoni"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nuovo",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problemi",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "エピソード",
"songs": "曲"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "",
"offline_alt": "オフライン",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "新着",
@@ -715,10 +704,6 @@
"uptime": "稼働時間",
"volumeAvailable": "利用可能"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "課題",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "에피소드",
"songs": "음악"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "오프라인",
"offline_alt": "오프라인",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "업",
"pending": "대기 중",
"down": "다운",
"ok": "Ok"
"down": "다운"
},
"healthchecks": {
"new": "신규",
@@ -715,10 +704,6 @@
"uptime": "가동 시간",
"volumeAvailable": "사용 가능"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "시리즈",
"issues": "이슈",
@@ -807,12 +792,6 @@
"categories": "카테고리",
"series": "시리즈"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "대기열",
"downloadBytesRemaining": "남음",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episod",
"songs": "Lagu"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Baharu",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Afleveringen",
"songs": "Nummers"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Online",
"pending": "In afwachting",
"down": "Offline",
"ok": "Ok"
"down": "Offline"
},
"healthchecks": {
"new": "Nieuw",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Beschikbaar"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problemen",
@@ -807,12 +792,6 @@
"categories": "Categorieën",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Wachtrij",
"downloadBytesRemaining": "Resterend",
@@ -1150,26 +1129,5 @@
"songs": "Nummers",
"time": "Tijd",
"artists": "Artiesten"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episoder",
"songs": "Sanger"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Ny",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -61,7 +61,7 @@
"wlan_devices": "Urządzenia WLAN",
"lan_users": "Użytkownicy LAN",
"wlan_users": "Użytkownicy WLAN",
"up": "DZIAŁA",
"up": "UP",
"down": "Pobieranie",
"wait": "Proszę czekać",
"empty_data": "Status podsystemu nieznany"
@@ -69,7 +69,7 @@
"docker": {
"rx": "Rx",
"tx": "Tx",
"mem": "PAM",
"mem": "MEM",
"cpu": "Procesor",
"running": "Działa",
"offline": "Nieosiągalny",
@@ -93,8 +93,8 @@
"http_status": "Status HTTP",
"error": "Błąd",
"response": "Odpowiedź",
"down": "Nie działa",
"up": "Działa",
"down": "Down",
"up": "Up",
"not_available": "Niedostępny"
},
"emby": {
@@ -107,22 +107,12 @@
"episodes": "Odcinki",
"songs": "Piosenki"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Dostępny",
"total": "Razem",
"unknown": "Nieznany"
"total": "Total",
"unknown": "Unknown"
},
"evcc": {
"pv_power": "Produkcja",
@@ -151,11 +141,11 @@
"connectionStatusDisconnecting": "Rozłączanie",
"connectionStatusDisconnected": "Rozłączono",
"connectionStatusConnected": "Połączono",
"uptime": "Czas działania",
"uptime": "Uptime",
"maxDown": "Maks. Pobieranie",
"maxUp": "Maks. Wysyłanie",
"down": "Nie działa",
"up": "Działa",
"down": "Down",
"up": "Up",
"received": "Odebrane",
"sent": "Wysłane",
"externalIPAddress": "Pub. IP",
@@ -178,10 +168,10 @@
"passes": "Przebiegi"
},
"tautulli": {
"playing": "Odtwarza",
"transcoding": "Transkoduje",
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "Brak aktywnych strumieni",
"no_active": "No Active Streams",
"plex_connection_error": "Sprawdź połączenie z Plex"
},
"omada": {
@@ -203,24 +193,24 @@
"tv": "Seriale"
},
"sabnzbd": {
"rate": "Szybkość",
"rate": "Rate",
"queue": "Kolejka",
"timeleft": "Pozostało"
},
"rutorrent": {
"active": "Aktywny",
"upload": "Wysyłanie",
"upload": "Upload",
"download": "Pobieranie"
},
"transmission": {
"download": "Pobieranie",
"upload": "Wysyłanie",
"upload": "Upload",
"leech": "Leech",
"seed": "Seed"
},
"qbittorrent": {
"download": "Pobieranie",
"upload": "Wysyłanie",
"download": "Download",
"upload": "Upload",
"leech": "Leech",
"seed": "Seed"
},
@@ -233,8 +223,8 @@
"invalid": "Nieprawidłowy"
},
"deluge": {
"download": "Pobieranie",
"upload": "Wysyłanie",
"download": "Download",
"upload": "Upload",
"leech": "Leech",
"seed": "Seed"
},
@@ -243,8 +233,8 @@
"cachemissbytes": "Straty cache'u"
},
"downloadstation": {
"download": "Pobieranie",
"upload": "Wysyłanie",
"download": "Download",
"upload": "Upload",
"leech": "Leech",
"seed": "Seed"
},
@@ -261,16 +251,16 @@
"queued": "W kolejce",
"movies": "Filmy",
"queue": "Kolejka",
"unknown": "Nieznane"
"unknown": "Unknown"
},
"lidarr": {
"wanted": "Poszukiwane",
"queued": "W kolejce",
"wanted": "Wanted",
"queued": "Queued",
"artists": "Artyści"
},
"readarr": {
"wanted": "Poszukiwane",
"queued": "W kolejce",
"wanted": "Wanted",
"queued": "Queued",
"books": "Książki"
},
"bazarr": {
@@ -286,7 +276,7 @@
"pending": "Oczekujące",
"approved": "Zaakceptowane",
"available": "Dostępne",
"issues": "Otwarte zgłoszenia"
"issues": "Open Issues"
},
"overseerr": {
"pending": "Oczekujące",
@@ -295,8 +285,8 @@
"available": "Dostępne"
},
"netalertx": {
"total": "Razem",
"connected": "Połączono",
"total": "Total",
"connected": "Connected",
"new_devices": "Nowe urządzenia",
"down_alerts": "Alerty niedostępności"
},
@@ -313,20 +303,20 @@
"latency": "Opóźnienia"
},
"speedtest": {
"upload": "Wysyłanie",
"download": "Pobieranie",
"upload": "Upload",
"download": "Download",
"ping": "Ping"
},
"portainer": {
"running": "Działa",
"running": "Running",
"stopped": "Zatrzymane",
"total": "Razem"
"total": "Total"
},
"suwayomi": {
"download": "Pobrano",
"nondownload": "Niepobrane",
"read": "Przeczytane",
"unread": "Nieprzeczytane",
"read": "Read",
"unread": "Unread",
"downloadedread": "Pobrane i przeczytane",
"downloadedunread": "Pobrane i nieprzeczytane",
"nondownloadedread": "Niepobrane i przeczytane",
@@ -347,7 +337,7 @@
"ago": "{{value}} temu"
},
"technitium": {
"totalQueries": "Zapytania",
"totalQueries": "Queries",
"totalNoError": "Sukces",
"totalServerFailure": "Porażki",
"totalNxDomain": "Domeny NX",
@@ -355,12 +345,12 @@
"totalAuthoritative": "Autorytatywne",
"totalRecursive": "Rekursywne",
"totalCached": "Zbuforowane",
"totalBlocked": "Zablokowane",
"totalBlocked": "Blocked",
"totalDropped": "Upuszczone",
"totalClients": "Klienci"
},
"tdarr": {
"queue": "W kolejce",
"queue": "Queue",
"processed": "Przetworzone",
"errored": "Błędne",
"saved": "Zapisane"
@@ -374,7 +364,7 @@
"version": "Wersja",
"notesCount": "Notatki",
"dbSize": "Rozmiar bazy danych",
"unknown": "Nieznane"
"unknown": "Unknown"
},
"navidrome": {
"nothing_streaming": "Brak aktywnych strumieni",
@@ -383,7 +373,7 @@
"npm": {
"enabled": "Włączone",
"disabled": "Wyłączone",
"total": "Razem"
"total": "Total"
},
"coinmarketcap": {
"configure": "Wybierz jedną lub więcej kryptowalut do śledzenia",
@@ -400,19 +390,19 @@
"prowlarr": {
"enableIndexers": "Indeksery",
"numberOfGrabs": "Pochwycenia",
"numberOfQueries": "Zapytania",
"numberOfQueries": "Queries",
"numberOfFailGrabs": "Nieudane pochwycenia",
"numberOfFailQueries": "Nieudane zapytania"
},
"jackett": {
"configured": "Skonfigurowane",
"errored": "Z błędami"
"errored": "Errored"
},
"strelaysrv": {
"numActiveSessions": "Sesje",
"numConnections": "Połączenia",
"dataRelayed": "Przekazane",
"transferRate": "Szybkość"
"transferRate": "Rate"
},
"mastodon": {
"user_count": "Użytkownicy",
@@ -420,9 +410,9 @@
"domain_count": "Domeny"
},
"medusa": {
"wanted": "Poszukiwane",
"queued": "W kolejce",
"series": "Seriale"
"wanted": "Wanted",
"queued": "Queued",
"series": "Series"
},
"minecraft": {
"players": "Gracze",
@@ -433,7 +423,7 @@
},
"miniflux": {
"read": "Przeczytane",
"unread": "Nieprzeczytane"
"unread": "Unread"
},
"authentik": {
"users": "Użytkownicy",
@@ -453,14 +443,14 @@
"temp": "TEMP.",
"_temp": "Temperatura",
"warn": "Ostrzeżenie",
"uptime": "DZIAŁA",
"total": "Razem",
"uptime": "UP",
"total": "Total",
"free": "Wolne",
"used": "Użyte",
"used": "Used",
"days": "d",
"hours": "godz",
"hours": "h",
"crit": "Krytyczyny",
"read": "Odczyt",
"read": "Read",
"write": "Zapis",
"gpu": "GPU",
"mem": "Pamięć",
@@ -540,16 +530,15 @@
"up_to_date": "Aktualny",
"child_bridges": "Mostki podrzędne",
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Działa",
"pending": "Oczekujące",
"down": "Nie działa",
"ok": "Ok"
"up": "Up",
"pending": "Pending",
"down": "Down"
},
"healthchecks": {
"new": "Nowy",
"up": "Działa",
"up": "Up",
"grace": "W okresie karencji",
"down": "Nie działa",
"down": "Down",
"paused": "Wstrzymane",
"status": "Status",
"last_ping": "Ostatni ping",
@@ -561,63 +550,63 @@
"containers_failed": "Niepowodzenie"
},
"autobrr": {
"approvedPushes": "Zaakceptowane",
"approvedPushes": "Approved",
"rejectedPushes": "Odrzucone",
"filters": "Filtry",
"indexers": "Indeksery"
"indexers": "Indexers"
},
"tubearchivist": {
"downloads": "W kolejce",
"downloads": "Queue",
"videos": "Pliki wideo",
"channels": "Kanały",
"playlists": "Playlisty"
},
"truenas": {
"load": "Obciążenie systemu",
"uptime": "Czas działania",
"alerts": "Alerty"
"uptime": "Uptime",
"alerts": "Alerts"
},
"pyload": {
"speed": "Prędkość",
"active": "Aktywne",
"queue": "W kolejce",
"total": "Razem"
"active": "Active",
"queue": "Queue",
"total": "Total"
},
"gluetun": {
"public_ip": "Adres publiczny",
"region": "Region",
"country": "Państwo",
"port_forwarded": "Port otwarty"
"port_forwarded": "Port Forwarded"
},
"hdhomerun": {
"channels": "Kanały",
"channels": "Channels",
"hd": "HD",
"tunerCount": "Tunery",
"channelNumber": "Kanał",
"channelNetwork": "Sieć",
"signalStrength": "Siła sygnału",
"signalQuality": "Jakość",
"symbolQuality": "Jakość",
"symbolQuality": "Quality",
"networkRate": "Bitrate",
"clientIP": "Klient"
},
"scrutiny": {
"passed": "Powodzenie",
"failed": "Nieudane",
"unknown": "Nieznane"
"failed": "Failed",
"unknown": "Unknown"
},
"paperlessngx": {
"inbox": "Skrzynka odbiorcza",
"total": "Razem"
"total": "Total"
},
"pangolin": {
"orgs": "Organizacje",
"sites": "Strony",
"resources": "Zasoby",
"targets": "Cele",
"traffic": "Ruch",
"in": "Do",
"out": "Z"
"orgs": "Orgs",
"sites": "Sites",
"resources": "Resources",
"targets": "Targets",
"traffic": "Traffic",
"in": "In",
"out": "Out"
},
"peanut": {
"battery_charge": "Stan baterii",
@@ -628,18 +617,18 @@
"low_battery": "Niski poziom baterii"
},
"nextdns": {
"wait": "Proszę czekać",
"wait": "Please Wait",
"no_devices": "Nie otrzymano danych urządzenia"
},
"mikrotik": {
"cpuLoad": "Obciążenie procesora",
"memoryUsed": "Zużyta pamięć",
"uptime": "Czas działania",
"uptime": "Uptime",
"numberOfLeases": "Dzierżawy"
},
"xteve": {
"streams_all": "Wszystkie strumienie",
"streams_active": "Aktywne strumienie",
"streams_active": "Active Streams",
"streams_xepg": "Kanały XEPG"
},
"opendtu": {
@@ -674,9 +663,9 @@
"load": "Śr. Obciążenie",
"memory": "Użycie pamięci",
"wanStatus": "Status WAN",
"up": "Działa",
"down": "Nie działa",
"temp": "Temperatura",
"up": "Up",
"down": "Down",
"temp": "Temp",
"disk": "Użycie dysku",
"wanIP": "WAN IP"
},
@@ -687,42 +676,38 @@
"memory_usage": "Pamięć"
},
"immich": {
"users": "Użytkownicy",
"users": "Users",
"photos": "Zdjęcia",
"videos": "Filmy",
"videos": "Videos",
"storage": "Pamięć"
},
"uptimekuma": {
"up": "Działające",
"down": "Niedziałające",
"uptime": "Czas działania",
"uptime": "Uptime",
"incident": "Incydent",
"m": "min"
"m": "m"
},
"atsumeru": {
"series": "Serie",
"series": "Series",
"archives": "Archiwa",
"chapters": "Rozdziały",
"categories": "Kategorie"
},
"komga": {
"libraries": "Biblioteki",
"series": "Serie",
"books": "Książki"
"series": "Series",
"books": "Books"
},
"diskstation": {
"days": "Dni",
"uptime": "Czas działania",
"volumeAvailable": "Dostępne"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
"days": "Days",
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"mylar": {
"series": "Seriale",
"series": "Series",
"issues": "Zgłoszenia",
"wanted": "Poszukiwane"
"wanted": "Wanted"
},
"photoprism": {
"albums": "Albumy",
@@ -731,9 +716,9 @@
"people": "Ludzie"
},
"fileflows": {
"queue": "W kolejce",
"processing": "Przetwarzane",
"processed": "Przetworzone",
"queue": "Queue",
"processing": "Processing",
"processed": "Processed",
"time": "Czas"
},
"firefly": {
@@ -759,7 +744,7 @@
"size": "Rozmiar",
"lastrun": "Ostatnie uruchomienie",
"nextrun": "Następne uruchomienie",
"failed": "Nieudane"
"failed": "Failed"
},
"unmanic": {
"active_workers": "Aktywni pracownicy",
@@ -776,15 +761,15 @@
"targets_total": "Wszystkich Celi"
},
"gatus": {
"up": "Działające strony",
"down": "Niedziałające strony",
"uptime": "Czas działania"
"up": "Sites Up",
"down": "Sites Down",
"uptime": "Uptime"
},
"ghostfolio": {
"gross_percent_today": "Dzisiaj",
"gross_percent_1y": "Rok",
"gross_percent_max": "Od początku",
"net_worth": "Wartość netto"
"net_worth": "Net Worth"
},
"audiobookshelf": {
"podcasts": "Podcasty",
@@ -799,28 +784,22 @@
},
"whatsupdocker": {
"monitoring": "Monitoring",
"updates": "Aktualizacje"
"updates": "Updates"
},
"calibreweb": {
"books": "Książki",
"authors": "Autorzy",
"categories": "Kategorie",
"series": "Serie"
},
"booklore": {
"libraries": "Biblioteki",
"books": "Książki",
"reading": "Czytane",
"finished": "Skończone"
"series": "Series"
},
"jdownloader": {
"downloadCount": "W kolejce",
"downloadBytesRemaining": "Pozostało",
"downloadTotalBytes": "Rozmiar",
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
"downloadTotalBytes": "Size",
"downloadSpeed": "Prędkość"
},
"kavita": {
"seriesCount": "Serie",
"seriesCount": "Series",
"totalFiles": "Pliki"
},
"azuredevops": {
@@ -834,7 +813,7 @@
"inProgress": "W trakcie",
"totalPrs": "Łącznie PRs",
"myPrs": "Moje PRs",
"approved": "Zaakceptowane"
"approved": "Approved"
},
"gamedig": {
"status": "Status",
@@ -862,33 +841,33 @@
},
"openmediavault": {
"downloading": "Pobieranie",
"total": "Razem",
"running": "Działające",
"stopped": "Zatrzymane",
"passed": "Zaliczony",
"failed": "Nieudany"
"total": "Total",
"running": "Running",
"stopped": "Stopped",
"passed": "Passed",
"failed": "Failed"
},
"openwrt": {
"uptime": "Czas działania",
"uptime": "Uptime",
"cpuLoad": "Śr. obciążenie CPU (5m)",
"up": "Działa",
"down": "Nie działa",
"up": "Up",
"down": "Down",
"bytesTx": "Przesłane",
"bytesRx": "Odebrano"
"bytesRx": "Received"
},
"uptimerobot": {
"status": "Status",
"uptime": "Czas działania",
"uptime": "Uptime",
"lastDown": "Ostatni downtime",
"downDuration": "Długość downtime'u",
"sitesUp": "Działające strony",
"sitesDown": "Niedziałające strony",
"paused": "Zatrzymane",
"sitesUp": "Sites Up",
"sitesDown": "Sites Down",
"paused": "Paused",
"notyetchecked": "Nie sprawdzono",
"up": "Działa",
"up": "Up",
"seemsdown": "Możliwe, że wyłączony",
"down": "Nie działa",
"unknown": "Nieznane"
"down": "Down",
"unknown": "Unknown"
},
"calendar": {
"inCinemas": "W kinach",
@@ -907,10 +886,10 @@
"totalfilesize": "Rozmiar całkowity"
},
"mailcow": {
"domains": "Domeny",
"domains": "Domains",
"mailboxes": "Skrzynki",
"mails": "Poczta",
"storage": "Pamięć"
"storage": "Storage"
},
"netdata": {
"warnings": "Ostrzeżenia",
@@ -919,12 +898,12 @@
"plantit": {
"events": "Wydarzenia",
"plants": "Rośliny",
"photos": "Zdjęcia",
"photos": "Photos",
"species": "Gatunki"
},
"gitea": {
"notifications": "Powiadomienia",
"issues": "Zgłoszenia",
"issues": "Issues",
"pulls": "Żądania Pull",
"repositories": "Repozytoria"
},
@@ -940,13 +919,13 @@
"galleries": "Galerie",
"performers": "Artyści",
"studios": "Studia",
"movies": "Filmy",
"tags": "Tagi",
"movies": "Movies",
"tags": "Tags",
"oCount": "O Licznik"
},
"tandoor": {
"users": "Użytkownicy",
"recipes": "Przepisy",
"users": "Users",
"recipes": "Recipes",
"keywords": "Słowa kluczowe"
},
"homebox": {
@@ -954,18 +933,18 @@
"totalWithWarranty": "Z gwarancją",
"locations": "Lokalizacje",
"labels": "Etykiety",
"users": "Użytkownicy",
"users": "Users",
"totalValue": "Wartość całkowita"
},
"crowdsec": {
"alerts": "Alerty",
"alerts": "Alerts",
"bans": "Bany"
},
"wgeasy": {
"connected": "Połączonych",
"enabled": "Włączone",
"disabled": "Wyłączone",
"total": "Razem"
"connected": "Connected",
"enabled": "Enabled",
"disabled": "Disabled",
"total": "Total"
},
"swagdashboard": {
"proxied": "Proxy",
@@ -987,7 +966,7 @@
},
"frigate": {
"cameras": "Kamery",
"uptime": "Czas działania",
"uptime": "Uptime",
"version": "Wersja"
},
"linkwarden": {
@@ -997,7 +976,7 @@
},
"zabbix": {
"unclassified": "Niezaklasyfikowane",
"information": "Informacja",
"information": "Information",
"warning": "Ostrzeżenie",
"average": "Średnia",
"high": "Wysokie",
@@ -1028,14 +1007,14 @@
"beszel": {
"name": "Nazwa",
"systems": "Systemy",
"up": "Działa",
"down": "Nie działa",
"paused": "Wstrzymane",
"pending": "Oczekujące",
"up": "Up",
"down": "Down",
"paused": "Paused",
"pending": "Pending",
"status": "Status",
"updated": "Zaktualizowane",
"updated": "Updated",
"cpu": "Procesor",
"memory": "PAM",
"memory": "MEM",
"disk": "Dysk",
"network": "NET"
},
@@ -1043,14 +1022,14 @@
"apps": "Aplikacje",
"synced": "Synchronizowane",
"outOfSync": "Bez synchronizacji",
"healthy": "Zdrowe",
"healthy": "Healthy",
"degraded": "Zdegradowane",
"progressing": "Postępujące",
"missing": "Brakujące",
"missing": "Missing",
"suspended": "Zawieszone"
},
"spoolman": {
"loading": "Ładowanie"
"loading": "Loading"
},
"gitlab": {
"groups": "Grupy",
@@ -1060,9 +1039,9 @@
},
"apcups": {
"status": "Status",
"load": "Obciążenie",
"bcharge": "Naładowanie baterii",
"timeleft": "Pozostały czas"
"load": "Load",
"bcharge": "Battery Charge",
"timeleft": "Time Left"
},
"karakeep": {
"bookmarks": "Zakładki",
@@ -1073,11 +1052,11 @@
"tags": "Tagi"
},
"slskd": {
"slskStatus": "Sieć",
"connected": "Połączono",
"disconnected": "Rozłączono",
"slskStatus": "Network",
"connected": "Connected",
"disconnected": "Disconnected",
"updateStatus": "Aktualizacja",
"update_yes": "Dostępne",
"update_yes": "Available",
"update_no": "Aktualny",
"downloads": "Pobieranie",
"uploads": "Przesyłanie",
@@ -1090,86 +1069,65 @@
"other": "Inne"
},
"checkmk": {
"serviceErrors": "Problem z usługą",
"hostErrors": "Problemy hosta"
"serviceErrors": "Service issues",
"hostErrors": "Host issues"
},
"komodo": {
"total": "Razem",
"running": "Działające",
"stopped": "Zatrzymane",
"down": "Nie działa",
"unhealthy": "Uszkodzony",
"unknown": "Nieznane",
"total": "Total",
"running": "Running",
"stopped": "Stopped",
"down": "Down",
"unhealthy": "Unhealthy",
"unknown": "Unknown",
"servers": "Serwery",
"stacks": "Stosy",
"containers": "Kontenery"
"stacks": "Stacks",
"containers": "Containers"
},
"filebrowser": {
"available": "Dostępne",
"used": "Użyte",
"total": "Razem"
"available": "Available",
"used": "Used",
"total": "Total"
},
"wallos": {
"activeSubscriptions": "Subskrypcje",
"thisMonthlyCost": "Ten Miesiąc",
"nextMonthlyCost": "Następny miesiąc",
"previousMonthlyCost": "Poprzedni miesiąc",
"nextRenewingSubscription": "Następna płatność"
"activeSubscriptions": "Subscriptions",
"thisMonthlyCost": "This Month",
"nextMonthlyCost": "Next Month",
"previousMonthlyCost": "Prev. Month",
"nextRenewingSubscription": "Next Payment"
},
"unraid": {
"STARTED": "Rozpoczęte",
"STOPPED": "Zatrzymane",
"NEW_ARRAY": "Nowa macierz",
"RECON_DISK": "Odbudowa dysku",
"DISABLE_DISK": "Dysk wyłączony",
"SWAP_DSBL": "Przestrzeń wymiany wyłączona",
"INVALID_EXPANSION": "Nieprawidłowe rozszerzenie",
"PARITY_NOT_BIGGEST": "Parzystość nie największa",
"TOO_MANY_MISSING_DISKS": "Zbyt wiele brakujących dysków",
"NEW_DISK_TOO_SMALL": "Nowy dysk zbyt mały",
"NO_DATA_DISKS": "Brak dysków danych",
"notifications": "Powiadomienia",
"STARTED": "Started",
"STOPPED": "Stopped",
"NEW_ARRAY": "New Array",
"RECON_DISK": "Reconstructing Disk",
"DISABLE_DISK": "Disk Disabled",
"SWAP_DSBL": "Swap Disable",
"INVALID_EXPANSION": "Invalid Expansion",
"PARITY_NOT_BIGGEST": "Parity Not Biggest",
"TOO_MANY_MISSING_DISKS": "Too Many Missing Disks",
"NEW_DISK_TOO_SMALL": "New Disk Too Small",
"NO_DATA_DISKS": "No Data Disks",
"notifications": "Notifications",
"status": "Status",
"cpu": "CPU",
"memoryUsed": "Użyta pamięć",
"memoryAvailable": "Dostępna pamięć",
"arrayUsed": "Użyto macierzy",
"arrayFree": "Wolne na macierzy",
"poolUsed": "Użyto {{pool}}",
"poolFree": "{{pool}} Wolne"
"memoryUsed": "Memory Used",
"memoryAvailable": "Memory Available",
"arrayUsed": "Array Used",
"arrayFree": "Array Free",
"poolUsed": "{{pool}} Used",
"poolFree": "{{pool}} Free"
},
"backrest": {
"num_plans": "Planowane",
"num_success_30": "Powodzenia",
"num_failure_30": "Niepowodzenia",
"num_success_latest": "Powodzenie",
"num_failure_latest": "Niepowodzenie",
"bytes_added_30": "Dodane bajty"
"num_plans": "Plans",
"num_success_30": "Successes",
"num_failure_30": "Failures",
"num_success_latest": "Succeeding",
"num_failure_latest": "Failing",
"bytes_added_30": "Bytes Added"
},
"yourspotify": {
"songs": "Piosenki",
"time": "Czas",
"artists": "Wykonawcy"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Działające",
"stopped": "Zatrzymane",
"cpu": "CPU",
"memory": "Pamięć",
"images": "Obrazy",
"volumes": "Woluminy",
"events_today": "Zdarzenia dzisiaj",
"pending_updates": "Oczekujące aktualizacje",
"stacks": "Stosy",
"paused": "Wstrzymane",
"total": "Razem",
"environment_not_found": "Środowisko nie znalezione"
"songs": "Songs",
"time": "Time",
"artists": "Artists"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episódios",
"songs": "Canções"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Novo",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problemas",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episódios",
"songs": "Canções"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Ativo",
"pending": "Pendente",
"down": "Inativo",
"ok": "Ok"
"down": "Inativo"
},
"healthchecks": {
"new": "Novo",
@@ -715,10 +704,6 @@
"uptime": "Tempo ativo",
"volumeAvailable": "Disponível"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Séries",
"issues": "Problemas",
@@ -807,12 +792,6 @@
"categories": "Categorias",
"series": "Séries"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Fila de espera",
"downloadBytesRemaining": "Restante",
@@ -1150,26 +1129,5 @@
"songs": "Músicas",
"time": "Tempo",
"artists": "Artistas"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episoade",
"songs": "Melodii"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nou",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Эпизоды",
"songs": "Песни"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Не в сети",
"offline_alt": "Не в сети",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "В сети",
"pending": "Ожидают",
"down": "Не в сети",
"ok": "Ok"
"down": "Не в сети"
},
"healthchecks": {
"new": "Новый",
@@ -715,10 +704,6 @@
"uptime": "Время работы",
"volumeAvailable": "Доступно"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Серии",
"issues": "Вопросы",
@@ -807,12 +792,6 @@
"categories": "Категории",
"series": "Серии"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Очередь",
"downloadBytesRemaining": "Осталось",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizódy",
"songs": "Skladby"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Beží",
"pending": "Čakajúce",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nový",
@@ -715,10 +704,6 @@
"uptime": "Dostupnosť",
"volumeAvailable": "Dostupné"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Problémy",
@@ -807,12 +792,6 @@
"categories": "Kategórie",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Poradie",
"downloadBytesRemaining": "Zostávajúce",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Epizode",
"songs": "Pesmi"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Nov",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Težave",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Епизоде",
"songs": "Песме"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Није на мрежи",
"offline_alt": "Није на мрежи",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Горе",
"pending": "На чекању",
"down": "Доле",
"ok": "Ok"
"down": "Доле"
},
"healthchecks": {
"new": "Сада",
@@ -611,13 +600,13 @@
"total": "Укупно"
},
"pangolin": {
"orgs": "Организације",
"sites": "Сајтови",
"resources": "Ресурси",
"targets": "Циљеви",
"traffic": "Саобраћај",
"in": "Улазак",
"out": "Излазак"
"orgs": "Orgs",
"sites": "Sites",
"resources": "Resources",
"targets": "Targets",
"traffic": "Traffic",
"in": "In",
"out": "Out"
},
"peanut": {
"battery_charge": "Напуњеност батерије",
@@ -715,10 +704,6 @@
"uptime": "Време рада",
"volumeAvailable": "Доступно"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Серије",
"issues": "Издања",
@@ -807,12 +792,6 @@
"categories": "Категорије",
"series": "Серије"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Ред",
"downloadBytesRemaining": "Преостало",
@@ -1150,26 +1129,5 @@
"songs": "Песме",
"time": "Време",
"artists": "Извођачи"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Avsnitt",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Songs"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Bölümler",
"songs": "Şarkılar"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Çevrimdışı",
"offline_alt": "Çevrimdışı",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Çalışıyor",
"pending": "Bekleyen",
"down": "Çalışmayan",
"ok": "Ok"
"down": "Çalışmayan"
},
"healthchecks": {
"new": "Yeni",
@@ -715,10 +704,6 @@
"uptime": "Çalışma süresi",
"volumeAvailable": "Uygun"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Diziler",
"issues": "Sorunlar",
@@ -807,12 +792,6 @@
"categories": "Kategoriler",
"series": "Seriler"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Kuyruk",
"downloadBytesRemaining": "Kalan",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Епізоди",
"songs": "Пісні"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Офлайн",
"offline_alt": "Офлайн",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "Новий",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Питання",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "Episodes",
"songs": "Bài hát"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "New",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "Issues",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Bài hát",
"time": "Thời gian",
"artists": "Nghệ sĩ"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "集",
"songs": "曲目"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "新建立",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "出版",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "剧集",
"songs": "歌曲"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "离线",
"offline_alt": "离线",
@@ -374,7 +364,7 @@
"version": "版本",
"notesCount": "笔记",
"dbSize": "数据库大小",
"unknown": "未知"
"unknown": "Unknown"
},
"navidrome": {
"nothing_streaming": "",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "新建立",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "问题",
@@ -807,12 +792,6 @@
"categories": "分类",
"series": "系列"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "队列",
"downloadBytesRemaining": "剩余",
@@ -821,7 +800,7 @@
},
"kavita": {
"seriesCount": "系列",
"totalFiles": "文件"
"totalFiles": "Files"
},
"azuredevops": {
"result": "Result",
@@ -1118,7 +1097,7 @@
},
"unraid": {
"STARTED": "Started",
"STOPPED": "已停止",
"STOPPED": "Stopped",
"NEW_ARRAY": "New Array",
"RECON_DISK": "Reconstructing Disk",
"DISABLE_DISK": "Disk Disabled",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -107,16 +107,6 @@
"episodes": "集",
"songs": "曲目"
},
"jellyfin": {
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams",
"movies": "Movies",
"series": "Series",
"episodes": "Episodes",
"songs": "Songs"
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
@@ -542,8 +532,7 @@
"child_bridges_status": "{{ok}}/{{total}}",
"up": "Up",
"pending": "Pending",
"down": "Down",
"ok": "Ok"
"down": "Down"
},
"healthchecks": {
"new": "新建",
@@ -715,10 +704,6 @@
"uptime": "Uptime",
"volumeAvailable": "Available"
},
"dispatcharr": {
"channels": "Channels",
"streams": "Streams"
},
"mylar": {
"series": "Series",
"issues": "問題",
@@ -807,12 +792,6 @@
"categories": "Categories",
"series": "Series"
},
"booklore": {
"libraries": "Libraries",
"books": "Books",
"reading": "Reading",
"finished": "Finished"
},
"jdownloader": {
"downloadCount": "Queue",
"downloadBytesRemaining": "Remaining",
@@ -1150,26 +1129,5 @@
"songs": "Songs",
"time": "Time",
"artists": "Artists"
},
"arcane": {
"containers": "Containers",
"images": "Images",
"image_updates": "Image Updates",
"images_unused": "Unused",
"environment_required": "Environment ID Required"
},
"dockhand": {
"running": "Running",
"stopped": "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"
}
}

View File

@@ -1,37 +0,0 @@
// @vitest-environment jsdom
import { render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
// Next's Head implementation relies on internal Next contexts; stub it for unit tests.
vi.mock("next/head", () => ({
default: ({ children }) => <>{children}</>,
}));
vi.mock("utils/contexts/color", () => ({
ColorProvider: ({ children }) => <>{children}</>,
}));
vi.mock("utils/contexts/theme", () => ({
ThemeProvider: ({ children }) => <>{children}</>,
}));
vi.mock("utils/contexts/settings", () => ({
SettingsProvider: ({ children }) => <>{children}</>,
}));
vi.mock("utils/contexts/tab", () => ({
TabProvider: ({ children }) => <>{children}</>,
}));
import App from "pages/_app.jsx";
describe("pages/_app", () => {
it("renders the active page component with pageProps", () => {
function Page({ message }) {
return <div>msg:{message}</div>;
}
render(<App Component={Page} pageProps={{ message: "hello" }} />);
expect(screen.getByText("msg:hello")).toBeInTheDocument();
expect(document.querySelector('meta[name="viewport"]')).toBeTruthy();
});
});

View File

@@ -1,24 +0,0 @@
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it, vi } from "vitest";
vi.mock("next/document", () => ({
Html: ({ children }) => <div data-testid="html">{children}</div>,
Head: ({ children }) => <div data-testid="head">{children}</div>,
Main: () => <main data-testid="main" />,
NextScript: () => <script data-testid="nextscript" />,
}));
import Document from "pages/_document.jsx";
describe("pages/_document", () => {
it("renders the PWA meta + custom css links", () => {
const html = renderToStaticMarkup(<Document />);
expect(html).toContain('meta name="mobile-web-app-capable" content="yes"');
expect(html).toContain('link rel="manifest" href="/site.webmanifest?v=4"');
expect(html).toContain('link rel="preload" href="/api/config/custom.css" as="style"');
expect(html).toContain('link rel="stylesheet" href="/api/config/custom.css"');
expect(html).toContain('data-testid="main"');
expect(html).toContain('data-testid="nextscript"');
});
});

View File

@@ -1,30 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { bookmarksResponse } = vi.hoisted(() => ({
bookmarksResponse: vi.fn(),
}));
vi.mock("utils/config/api-response", () => ({
bookmarksResponse,
}));
import handler from "pages/api/bookmarks";
describe("pages/api/bookmarks", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns bookmarksResponse()", async () => {
bookmarksResponse.mockResolvedValueOnce({ ok: true });
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ ok: true });
});
});

View File

@@ -1,87 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { fs, config, logger } = vi.hoisted(() => ({
fs: {
existsSync: vi.fn(),
readFileSync: vi.fn(),
},
config: {
CONF_DIR: "/conf",
},
logger: {
error: vi.fn(),
},
}));
vi.mock("fs", () => ({
default: fs,
...fs,
}));
vi.mock("utils/config/config", () => config);
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/config/[path]";
describe("pages/api/config/[path]", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 422 for unsupported files", async () => {
const req = { query: { path: "not-supported.txt" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(422);
});
it("returns empty content when the file doesn't exist", async () => {
fs.existsSync.mockReturnValueOnce(false);
const req = { query: { path: "custom.css" } };
const res = createMockRes();
await handler(req, res);
expect(res.headers["Content-Type"]).toBe("text/css");
expect(res.statusCode).toBe(200);
expect(res.body).toBe("");
});
it("returns file content when the file exists", async () => {
fs.existsSync.mockReturnValueOnce(true);
fs.readFileSync.mockReturnValueOnce("body{}");
const req = { query: { path: "custom.js" } };
const res = createMockRes();
await handler(req, res);
expect(res.headers["Content-Type"]).toBe("text/javascript");
expect(res.statusCode).toBe(200);
expect(res.body).toBe("body{}");
});
it("logs and returns 500 when reading the file throws", async () => {
fs.existsSync.mockReturnValueOnce(true);
fs.readFileSync.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { path: "custom.css" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toBe("Internal Server Error");
expect(logger.error).toHaveBeenCalled();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -1,64 +0,0 @@
import { createHash } from "crypto";
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
function sha256(input) {
return createHash("sha256").update(input).digest("hex");
}
const { readFileSync, checkAndCopyConfig, CONF_DIR } = vi.hoisted(() => ({
readFileSync: vi.fn(),
checkAndCopyConfig: vi.fn(),
CONF_DIR: "/conf",
}));
vi.mock("fs", () => ({
readFileSync,
}));
vi.mock("utils/config/config", () => ({
default: checkAndCopyConfig,
CONF_DIR,
}));
import handler from "pages/api/hash";
describe("pages/api/hash", () => {
const originalBuildTime = process.env.HOMEPAGE_BUILDTIME;
beforeEach(() => {
vi.clearAllMocks();
process.env.HOMEPAGE_BUILDTIME = originalBuildTime;
});
it("returns a combined sha256 hash of known config files and build time", async () => {
process.env.HOMEPAGE_BUILDTIME = "build-1";
// Return deterministic contents based on file name.
readFileSync.mockImplementation((filePath) => {
const name = filePath.split("/").pop();
return `content:${name}`;
});
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
const configs = [
"docker.yaml",
"settings.yaml",
"services.yaml",
"bookmarks.yaml",
"widgets.yaml",
"custom.css",
"custom.js",
];
const hashes = configs.map((c) => sha256(`content:${c}`));
const expected = sha256(hashes.join("") + "build-1");
expect(checkAndCopyConfig).toHaveBeenCalled();
expect(res.body).toEqual({ hash: expected });
});
});

View File

@@ -1,16 +0,0 @@
import { describe, expect, it } from "vitest";
import createMockRes from "test-utils/create-mock-res";
import handler from "pages/api/healthcheck";
describe("pages/api/healthcheck", () => {
it("returns 'up'", () => {
const req = {};
const res = createMockRes();
handler(req, res);
expect(res.body).toBe("up");
});
});

View File

@@ -1,210 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getKubeConfig, coreApi, metricsApi, MetricsCtor, logger } = vi.hoisted(() => {
const metricsApi = {
getPodMetrics: vi.fn(),
};
function MetricsCtor() {
return metricsApi;
}
return {
getKubeConfig: vi.fn(),
coreApi: { listNamespacedPod: vi.fn() },
metricsApi,
MetricsCtor,
logger: { error: vi.fn() },
};
});
vi.mock("@kubernetes/client-node", () => ({
CoreV1Api: function CoreV1Api() {},
Metrics: MetricsCtor,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
vi.mock("utils/config/kubernetes", () => ({
getKubeConfig,
}));
import handler from "pages/api/kubernetes/stats/[...service]";
describe("pages/api/kubernetes/stats/[...service]", () => {
beforeEach(() => {
vi.clearAllMocks();
getKubeConfig.mockReturnValue({
makeApiClient: () => coreApi,
});
});
it("returns 400 when namespace/appName 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: "kubernetes query parameters are required" });
});
it("returns 500 when kubernetes is not configured", async () => {
getKubeConfig.mockReturnValue(null);
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "No kubernetes configuration" });
});
it("returns 500 when listNamespacedPod fails", async () => {
coreApi.listNamespacedPod.mockRejectedValue({ statusCode: 500, body: "nope", response: "nope" });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Error communicating with kubernetes" });
});
it("returns 404 when no pods match the selector", async () => {
coreApi.listNamespacedPod.mockResolvedValue({ items: [] });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(404);
expect(res.body).toEqual({
error: "no pods found with namespace=default and labelSelector=app.kubernetes.io/name=app",
});
});
it("computes limits even when metrics are missing (404 from metrics server)", async () => {
coreApi.listNamespacedPod.mockResolvedValue({
items: [
{
metadata: { name: "pod-a" },
spec: {
containers: [
{ resources: { limits: { cpu: "500m", memory: "1Gi" } } },
{ resources: { limits: { cpu: "250m" } } },
],
},
},
],
});
metricsApi.getPodMetrics.mockRejectedValue({ statusCode: 404, body: "no metrics", response: "no metrics" });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({
stats: {
mem: 0,
cpu: 0,
cpuLimit: 0.75,
memLimit: 1000000000,
cpuUsage: 0,
memUsage: 0,
},
});
});
it("logs when metrics lookup fails with a non-404 error and still returns computed limits", async () => {
coreApi.listNamespacedPod.mockResolvedValue({
items: [
{
metadata: { name: "pod-a" },
spec: {
containers: [{ resources: { limits: { cpu: "500m", memory: "1Gi" } } }],
},
},
],
});
metricsApi.getPodMetrics.mockRejectedValue({ statusCode: 500, body: "boom", response: "boom" });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(logger.error).toHaveBeenCalled();
expect(res.statusCode).toBe(200);
expect(res.body.stats.cpuLimit).toBe(0.5);
expect(res.body.stats.memLimit).toBe(1000000000);
expect(res.body.stats.cpu).toBe(0);
expect(res.body.stats.mem).toBe(0);
});
it("aggregates usage for matched pods and reports percent usage", async () => {
coreApi.listNamespacedPod.mockResolvedValue({
items: [
{
metadata: { name: "pod-a" },
spec: { containers: [{ resources: { limits: { cpu: "1000m", memory: "2Gi" } } }] },
},
{
metadata: { name: "pod-b" },
spec: { containers: [{ resources: { limits: { cpu: "500m", memory: "1Gi" } } }] },
},
],
});
metricsApi.getPodMetrics.mockResolvedValue({
items: [
// includes a non-selected pod, should be ignored
{ metadata: { name: "other" }, containers: [{ usage: { cpu: "100m", memory: "10Mi" } }] },
{
metadata: { name: "pod-a" },
containers: [{ usage: { cpu: "250m", memory: "100Mi" } }, { usage: { cpu: "250m", memory: "100Mi" } }],
},
{ metadata: { name: "pod-b" }, containers: [{ usage: { cpu: "500m", memory: "1Gi" } }] },
],
});
const req = { query: { service: ["default", "app"], podSelector: "app=test" } };
const res = createMockRes();
await handler(req, res);
const { stats } = res.body;
expect(stats.cpuLimit).toBe(1.5);
expect(stats.memLimit).toBe(3000000000);
expect(stats.cpu).toBeCloseTo(1.0, 5);
expect(stats.mem).toBe(1200000000);
expect(stats.cpuUsage).toBeCloseTo((100 * 1.0) / 1.5, 5);
expect(stats.memUsage).toBeCloseTo((100 * 1200000000) / 3000000000, 5);
});
it("returns 500 when an unexpected error is thrown", async () => {
getKubeConfig.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "unknown error" });
expect(logger.error).toHaveBeenCalled();
});
});

View File

@@ -1,121 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getKubeConfig, coreApi, logger } = vi.hoisted(() => ({
getKubeConfig: vi.fn(),
coreApi: { listNamespacedPod: vi.fn() },
logger: { error: vi.fn() },
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
vi.mock("utils/config/kubernetes", () => ({
getKubeConfig,
}));
import handler from "pages/api/kubernetes/status/[...service]";
describe("pages/api/kubernetes/status/[...service]", () => {
beforeEach(() => {
vi.clearAllMocks();
getKubeConfig.mockReturnValue({
makeApiClient: () => coreApi,
});
});
it("returns 400 when namespace/appName 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: "kubernetes query parameters are required" });
});
it("returns 500 when kubernetes is not configured", async () => {
getKubeConfig.mockReturnValue(null);
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "No kubernetes configuration" });
});
it("returns 500 when listNamespacedPod fails", async () => {
coreApi.listNamespacedPod.mockRejectedValue({ statusCode: 500, body: "nope", response: "nope" });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Error communicating with kubernetes" });
});
it("returns 404 when no pods match the selector", async () => {
coreApi.listNamespacedPod.mockResolvedValue({ items: [] });
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(404);
expect(res.body).toEqual({ status: "not found" });
});
it("returns partial when some pods are ready but not all", async () => {
coreApi.listNamespacedPod.mockResolvedValue({
items: [{ status: { phase: "Running" } }, { status: { phase: "Pending" } }],
});
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "partial" });
});
it("returns running when all pods are ready", async () => {
coreApi.listNamespacedPod.mockResolvedValue({
items: [{ status: { phase: "Running" } }, { status: { phase: "Succeeded" } }],
});
const req = { query: { service: ["default", "app"], podSelector: "app=test" } };
const res = createMockRes();
await handler(req, res);
expect(coreApi.listNamespacedPod).toHaveBeenCalledWith({
namespace: "default",
labelSelector: "app=test",
});
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "running" });
});
it("returns 500 when an unexpected error is thrown", async () => {
getKubeConfig.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: { service: ["default", "app"] } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "unknown error" });
expect(logger.error).toHaveBeenCalled();
});
});

View File

@@ -1,80 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getServiceItem, ping, logger } = vi.hoisted(() => ({
getServiceItem: vi.fn(),
ping: { probe: vi.fn() },
logger: { debug: vi.fn() },
}));
vi.mock("utils/config/service-helpers", () => ({
getServiceItem,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
vi.mock("ping", () => ({
promise: ping,
}));
import handler from "pages/api/ping";
describe("pages/api/ping", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 400 when service item isn't found", async () => {
getServiceItem.mockResolvedValueOnce(null);
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toContain("Unable to find service");
});
it("returns 400 when ping host isn't configured", async () => {
getServiceItem.mockResolvedValueOnce({ ping: "" });
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toBe("No ping host given");
});
it("pings the hostname extracted from a URL", async () => {
getServiceItem.mockResolvedValueOnce({ ping: "http://example.com:1234/path" });
ping.probe.mockResolvedValueOnce({ alive: true });
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(ping.probe).toHaveBeenCalledWith("example.com");
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ alive: true });
});
it("returns 400 when ping throws", async () => {
getServiceItem.mockResolvedValueOnce({ ping: "example.com" });
ping.probe.mockRejectedValueOnce(new Error("nope"));
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toContain("Error attempting ping");
});
});

View File

@@ -1,148 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getProxmoxConfig, httpProxy, logger } = vi.hoisted(() => ({
getProxmoxConfig: vi.fn(),
httpProxy: vi.fn(),
logger: { error: vi.fn() },
}));
vi.mock("utils/config/proxmox", () => ({
getProxmoxConfig,
}));
vi.mock("utils/proxy/http", () => ({
httpProxy,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/proxmox/stats/[...service]";
describe("pages/api/proxmox/stats/[...service]", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 400 when node param is missing", async () => {
const req = { query: { service: [], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual({ error: "Proxmox node parameter is required" });
});
it("returns 500 when proxmox config is missing", async () => {
getProxmoxConfig.mockReturnValue(null);
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Proxmox server configuration not found" });
});
it("returns 400 when node config is missing and legacy credentials are not present", async () => {
getProxmoxConfig.mockReturnValue({ other: { url: "http://x", token: "t", secret: "s" } });
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual(
expect.objectContaining({
error: expect.stringContaining("Proxmox config not found for the specified node"),
}),
);
});
it("returns status/cpu/mem for a successful Proxmox response using per-node credentials", async () => {
getProxmoxConfig.mockReturnValue({
pve: { url: "http://pve", token: "tok", secret: "sec" },
});
httpProxy.mockResolvedValueOnce([
200,
"application/json",
Buffer.from(JSON.stringify({ data: { status: "running", cpu: 0.2, mem: 123 } })),
]);
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenCalledWith("http://pve/api2/json/nodes/pve/qemu/100/status/current", {
method: "GET",
headers: { Authorization: "PVEAPIToken=tok=sec" },
});
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "running", cpu: 0.2, mem: 123 });
});
it("falls back to legacy top-level credentials when no node block exists", async () => {
getProxmoxConfig.mockReturnValue({ url: "http://pve", token: "tok", secret: "sec" });
httpProxy.mockResolvedValueOnce([
200,
"application/json",
Buffer.from(JSON.stringify({ data: { cpu: 0.1, mem: 1 } })),
]);
const req = { query: { service: ["pve", "100"], type: "lxc" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenCalledWith("http://pve/api2/json/nodes/pve/lxc/100/status/current", expect.any(Object));
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: "unknown", cpu: 0.1, mem: 1 });
});
it("returns a non-200 status when Proxmox responds with an error", async () => {
getProxmoxConfig.mockReturnValue({ url: "http://pve", token: "tok", secret: "sec" });
httpProxy.mockResolvedValueOnce([401, "application/json", Buffer.from(JSON.stringify({ error: "no" }))]);
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(401);
expect(res.body).toEqual({ error: "Failed to fetch Proxmox qemu status" });
});
it("returns 500 when the Proxmox response is missing expected data", async () => {
getProxmoxConfig.mockReturnValue({ url: "http://pve", token: "tok", secret: "sec" });
httpProxy.mockResolvedValueOnce([200, "application/json", Buffer.from(JSON.stringify({}))]);
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Invalid response from Proxmox API" });
});
it("logs and returns 500 when an unexpected error occurs", async () => {
getProxmoxConfig.mockReturnValue({ url: "http://pve", token: "tok", secret: "sec" });
httpProxy.mockRejectedValueOnce(new Error("boom"));
const req = { query: { service: ["pve", "100"], type: "qemu" } };
const res = createMockRes();
await handler(req, res);
expect(logger.error).toHaveBeenCalled();
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Failed to fetch Proxmox status" });
});
});

View File

@@ -1,46 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { cachedRequest, logger } = vi.hoisted(() => ({
cachedRequest: vi.fn(),
logger: { error: vi.fn() },
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
vi.mock("utils/proxy/http", () => ({
cachedRequest,
}));
import handler from "pages/api/releases";
describe("pages/api/releases", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns cached GitHub releases", async () => {
cachedRequest.mockResolvedValueOnce([{ tag_name: "v1" }]);
const req = {};
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual([{ tag_name: "v1" }]);
});
it("returns [] when cachedRequest throws", async () => {
cachedRequest.mockRejectedValueOnce(new Error("nope"));
const req = {};
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual([]);
});
});

View File

@@ -1,29 +0,0 @@
import { describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
import handler from "pages/api/revalidate";
describe("pages/api/revalidate", () => {
it("revalidates and returns {revalidated:true}", async () => {
const req = {};
const res = createMockRes();
res.revalidate = vi.fn().mockResolvedValueOnce(undefined);
await handler(req, res);
expect(res.revalidate).toHaveBeenCalledWith("/");
expect(res.body).toEqual({ revalidated: true });
});
it("returns 500 when revalidate throws", async () => {
const req = {};
const res = createMockRes();
res.revalidate = vi.fn().mockRejectedValueOnce(new Error("nope"));
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toBe("Error revalidating");
});
});

View File

@@ -1,106 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { providers, getSettings, widgetsFromConfig, cachedRequest } = vi.hoisted(() => ({
providers: {
custom: { name: "Custom", url: false, suggestionUrl: null },
google: { name: "Google", url: "https://google?q=", suggestionUrl: "https://google/suggest?q=" },
empty: { name: "NoSuggest", url: "x", suggestionUrl: null },
},
getSettings: vi.fn(),
widgetsFromConfig: vi.fn(),
cachedRequest: vi.fn(),
}));
vi.mock("components/widgets/search/search", () => ({
searchProviders: {
custom: providers.custom,
google: providers.google,
empty: providers.empty,
},
}));
vi.mock("utils/config/config", () => ({
getSettings,
}));
vi.mock("utils/config/widget-helpers", () => ({
widgetsFromConfig,
}));
vi.mock("utils/proxy/http", () => ({
cachedRequest,
}));
import handler from "pages/api/search/searchSuggestion";
describe("pages/api/search/searchSuggestion", () => {
beforeEach(() => {
vi.clearAllMocks();
// Reset provider objects since handler mutates the Custom provider.
providers.custom.url = false;
providers.custom.suggestionUrl = null;
});
it("returns empty suggestions when providerName is unknown", async () => {
const req = { query: { query: "hello", providerName: "Unknown" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual(["hello", []]);
});
it("returns empty suggestions when provider has no suggestionUrl", async () => {
const req = { query: { query: "hello", providerName: "NoSuggest" } };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual(["hello", []]);
});
it("calls cachedRequest for a standard provider", async () => {
cachedRequest.mockResolvedValueOnce(["q", ["a"]]);
const req = { query: { query: "hello world", providerName: "Google" } };
const res = createMockRes();
await handler(req, res);
expect(cachedRequest).toHaveBeenCalledWith("https://google/suggest?q=hello%20world", 5, "Mozilla/5.0");
expect(res.body).toEqual(["q", ["a"]]);
});
it("resolves Custom provider suggestionUrl from widgets.yaml when present", async () => {
widgetsFromConfig.mockResolvedValueOnce([
{ type: "search", options: { url: "https://custom?q=", suggestionUrl: "https://custom/suggest?q=" } },
]);
cachedRequest.mockResolvedValueOnce(["q", ["x"]]);
const req = { query: { query: "hello", providerName: "Custom" } };
const res = createMockRes();
await handler(req, res);
expect(cachedRequest).toHaveBeenCalledWith("https://custom/suggest?q=hello", 5, "Mozilla/5.0");
expect(res.body).toEqual(["q", ["x"]]);
});
it("falls back to quicklaunch custom settings when no search widget is configured", async () => {
widgetsFromConfig.mockResolvedValueOnce([]);
getSettings.mockReturnValueOnce({
quicklaunch: { provider: "custom", url: "https://ql?q=", suggestionUrl: "https://ql/suggest?q=" },
});
cachedRequest.mockResolvedValueOnce(["q", ["y"]]);
const req = { query: { query: "hello", providerName: "Custom" } };
const res = createMockRes();
await handler(req, res);
expect(cachedRequest).toHaveBeenCalledWith("https://ql/suggest?q=hello", 5, "Mozilla/5.0");
});
});

View File

@@ -1,30 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { servicesResponse } = vi.hoisted(() => ({
servicesResponse: vi.fn(),
}));
vi.mock("utils/config/api-response", () => ({
servicesResponse,
}));
import handler from "pages/api/services/index";
describe("pages/api/services/index", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns servicesResponse()", async () => {
servicesResponse.mockResolvedValueOnce({ services: [] });
const req = {};
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual({ services: [] });
});
});

View File

@@ -1,347 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
const { state, getServiceWidget, calendarProxy } = vi.hoisted(() => ({
state: {
genericResult: { ok: true },
},
getServiceWidget: vi.fn(),
calendarProxy: vi.fn(),
}));
vi.mock("utils/logger", () => ({
default: () => ({ debug: vi.fn(), error: vi.fn() }),
}));
vi.mock("utils/config/service-helpers", () => ({ default: getServiceWidget }));
const handlerFn = vi.hoisted(() => ({ handler: vi.fn() }));
vi.mock("utils/proxy/handlers/generic", () => ({ default: handlerFn.handler }));
// Calendar proxy is only used for an exception; keep it stubbed.
vi.mock("widgets/calendar/proxy", () => ({ default: calendarProxy }));
// Provide a minimal widget registry for mapping tests.
vi.mock("widgets/widgets", () => ({
default: {
linkwarden: {
api: "{url}/api/v1/{endpoint}",
mappings: {
collections: { endpoint: "collections" },
},
},
segments: {
api: "{url}/{endpoint}",
mappings: {
item: { endpoint: "items/{id}", segments: ["id"] },
},
},
queryparams: {
api: "{url}/{endpoint}",
mappings: {
list: { endpoint: "list", params: ["limit"], optionalParams: ["q"] },
},
},
endpointproxy: {
api: "{url}/{endpoint}",
mappings: {
list: { endpoint: "list", proxyHandler: handlerFn.handler, headers: { "X-Test": "1" } },
},
},
regex: {
api: "{url}/{endpoint}",
allowedEndpoints: /^ok\//,
},
ical: {
api: "{url}/{endpoint}",
proxyHandler: calendarProxy,
},
unifi_console: {
api: "{url}/{endpoint}",
proxyHandler: handlerFn.handler,
},
},
}));
import servicesProxy from "pages/api/services/proxy";
function createMockRes() {
const res = {
statusCode: undefined,
body: undefined,
status: (code) => {
res.statusCode = code;
return res;
},
json: (data) => {
res.body = data;
return res;
},
send: (data) => {
res.body = data;
return res;
},
end: () => res,
setHeader: vi.fn(),
};
return res;
}
describe("pages/api/services/proxy", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("maps opaque endpoints using widget.mappings and calls the handler", async () => {
getServiceWidget.mockResolvedValue({ type: "linkwarden" });
handlerFn.handler.mockImplementation(async (req, res) => res.status(200).json({ endpoint: req.query.endpoint }));
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "collections" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(handlerFn.handler).toHaveBeenCalled();
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ endpoint: "collections" });
});
it("returns 403 for unsupported endpoint mapping", async () => {
getServiceWidget.mockResolvedValue({ type: "linkwarden" });
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "nope" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(403);
expect(res.body).toEqual({ error: "Unsupported service endpoint" });
});
it("returns 403 for unknown widget types", async () => {
getServiceWidget.mockResolvedValue({ type: "does_not_exist" });
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "collections" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(403);
expect(res.body).toEqual({ error: "Unknown proxy service type" });
});
it("quick-returns the proxy handler when no endpoint is provided", async () => {
getServiceWidget.mockResolvedValue({ type: "linkwarden" });
handlerFn.handler.mockImplementation(async (_req, res) => res.status(200).json(state.genericResult));
const req = { method: "GET", query: { group: "g", service: "s", index: "0" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(handlerFn.handler).toHaveBeenCalledTimes(1);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ ok: true });
});
it("applies the calendar exception and always delegates to calendarProxyHandler", async () => {
getServiceWidget.mockResolvedValue({ type: "calendar" });
calendarProxy.mockImplementation(async (_req, res) => res.status(200).json({ ok: "calendar" }));
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "events" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(calendarProxy).toHaveBeenCalledTimes(1);
expect(handlerFn.handler).not.toHaveBeenCalled();
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ ok: "calendar" });
});
it("applies the unifi_console exception when service and group are unifi_console", async () => {
getServiceWidget.mockResolvedValue({ type: "something_else" });
handlerFn.handler.mockImplementation(async (_req, res) => res.status(200).json({ ok: "unifi" }));
const req = {
method: "GET",
query: { group: "unifi_console", service: "unifi_console", index: "0" },
};
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ ok: "unifi" });
});
it("rejects unsupported mapping methods", async () => {
getServiceWidget.mockResolvedValue({ type: "linkwarden" });
// Inject a mapping with a method requirement through the mocked registry.
const widgets = (await import("widgets/widgets")).default;
const originalMethod = widgets.linkwarden.mappings.collections.method;
widgets.linkwarden.mappings.collections.method = "POST";
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "collections" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(403);
expect(res.body).toEqual({ error: "Unsupported method" });
widgets.linkwarden.mappings.collections.method = originalMethod;
});
it("replaces endpoint segments and rejects unsupported segment keys/values", async () => {
getServiceWidget.mockResolvedValue({ type: "segments" });
handlerFn.handler.mockImplementation(async (req, res) => res.status(200).json({ endpoint: req.query.endpoint }));
const res1 = createMockRes();
await servicesProxy(
{
method: "GET",
query: { group: "g", service: "s", index: "0", endpoint: "item", segments: JSON.stringify({ id: "123" }) },
},
res1,
);
expect(res1.statusCode).toBe(200);
expect(res1.body).toEqual({ endpoint: "items/123" });
const res2 = createMockRes();
await servicesProxy(
{
method: "GET",
query: { group: "g", service: "s", index: "0", endpoint: "item", segments: JSON.stringify({ nope: "123" }) },
},
res2,
);
expect(res2.statusCode).toBe(403);
expect(res2.body).toEqual({ error: "Unsupported segment" });
const res3 = createMockRes();
await servicesProxy(
{
method: "GET",
query: { group: "g", service: "s", index: "0", endpoint: "item", segments: JSON.stringify({ id: "../123" }) },
},
res3,
);
expect(res3.statusCode).toBe(403);
expect(res3.body).toEqual({ error: "Unsupported segment" });
});
it("adds query params based on mapping params + optionalParams", async () => {
getServiceWidget.mockResolvedValue({ type: "queryparams" });
handlerFn.handler.mockImplementation(async (req, res) => res.status(200).json({ endpoint: req.query.endpoint }));
const req = {
method: "GET",
query: {
group: "g",
service: "s",
index: "0",
endpoint: "list",
query: JSON.stringify({ limit: 10, q: "test" }),
},
};
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(200);
expect(res.body.endpoint).toBe("list?limit=10&q=test");
});
it("passes mapping headers via req.extraHeaders and uses mapping.proxyHandler when provided", async () => {
getServiceWidget.mockResolvedValue({ type: "endpointproxy" });
handlerFn.handler.mockImplementation(async (req, res) =>
res.status(200).json({ headers: req.extraHeaders ?? null }),
);
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "list" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(handlerFn.handler).toHaveBeenCalledTimes(1);
expect(res.statusCode).toBe(200);
expect(res.body.headers).toEqual({ "X-Test": "1" });
});
it("allows regex endpoints when widget.allowedEndpoints matches", async () => {
getServiceWidget.mockResolvedValue({ type: "regex" });
handlerFn.handler.mockImplementation(async (_req, res) => res.status(200).json({ ok: true }));
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "ok/test" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(200);
});
it("rejects unmapped proxy requests when no mapping and regex does not match", async () => {
getServiceWidget.mockResolvedValue({ type: "regex" });
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "nope" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(403);
expect(res.body).toEqual({ error: "Unmapped proxy request." });
});
it("falls back to the service proxy handler when mapping.proxyHandler is not a function", async () => {
getServiceWidget.mockResolvedValue({ type: "mapbroken" });
handlerFn.handler.mockImplementation(async (req, res) => res.status(200).json({ endpoint: req.query.endpoint }));
const widgets = (await import("widgets/widgets")).default;
widgets.mapbroken = {
api: "{url}/{endpoint}",
mappings: {
x: { endpoint: "ok", proxyHandler: "nope" },
},
};
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "x" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(handlerFn.handler).toHaveBeenCalled();
expect(res.statusCode).toBe(200);
expect(res.body.endpoint).toBe("ok");
});
it("returns 403 when a widget defines a non-function proxyHandler", async () => {
getServiceWidget.mockResolvedValue({ type: "brokenhandler" });
const widgets = (await import("widgets/widgets")).default;
widgets.brokenhandler = {
api: "{url}/{endpoint}",
proxyHandler: "nope",
};
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "any" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(403);
expect(res.body).toEqual({ error: "Unknown proxy service type" });
});
it("returns 500 on unexpected errors", async () => {
getServiceWidget.mockRejectedValueOnce(new Error("boom"));
const req = { method: "GET", query: { group: "g", service: "s", index: "0", endpoint: "collections" } };
const res = createMockRes();
await servicesProxy(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "Unexpected error" });
});
});

View File

@@ -1,103 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getServiceItem, httpProxy, perf, logger } = vi.hoisted(() => ({
getServiceItem: vi.fn(),
httpProxy: vi.fn(),
perf: { now: vi.fn() },
logger: { debug: vi.fn() },
}));
vi.mock("perf_hooks", () => ({
performance: perf,
}));
vi.mock("utils/config/service-helpers", () => ({
getServiceItem,
}));
vi.mock("utils/proxy/http", () => ({
httpProxy,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/siteMonitor";
describe("pages/api/siteMonitor", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 400 when the service item is missing", async () => {
getServiceItem.mockResolvedValueOnce(null);
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toContain("Unable to find service");
});
it("returns 400 when the monitor URL is missing", async () => {
getServiceItem.mockResolvedValueOnce({ siteMonitor: "" });
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toBe("No http monitor URL given");
});
it("uses HEAD and returns status + latency when the response is OK", async () => {
getServiceItem.mockResolvedValueOnce({ siteMonitor: "http://example.com" });
perf.now.mockReturnValueOnce(1).mockReturnValueOnce(11);
httpProxy.mockResolvedValueOnce([200]);
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenCalledWith("http://example.com", { method: "HEAD" });
expect(res.statusCode).toBe(200);
expect(res.body.status).toBe(200);
expect(res.body.latency).toBe(10);
});
it("falls back to GET when HEAD is rejected", async () => {
getServiceItem.mockResolvedValueOnce({ siteMonitor: "http://example.com" });
perf.now.mockReturnValueOnce(1).mockReturnValueOnce(2).mockReturnValueOnce(5).mockReturnValueOnce(15);
httpProxy.mockResolvedValueOnce([500]).mockResolvedValueOnce([200]);
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenNthCalledWith(1, "http://example.com", { method: "HEAD" });
expect(httpProxy).toHaveBeenNthCalledWith(2, "http://example.com");
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ status: 200, latency: 10 });
});
it("returns 400 when httpProxy throws", async () => {
getServiceItem.mockResolvedValueOnce({ siteMonitor: "http://example.com" });
httpProxy.mockRejectedValueOnce(new Error("nope"));
const req = { query: { groupName: "g", serviceName: "s" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toContain("Error attempting http monitor");
});
});

View File

@@ -1,41 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { checkAndCopyConfig, getSettings } = vi.hoisted(() => ({
checkAndCopyConfig: vi.fn(),
getSettings: vi.fn(),
}));
vi.mock("utils/config/config", () => ({
default: checkAndCopyConfig,
getSettings,
}));
import handler from "pages/api/theme";
describe("pages/api/theme", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns defaults when settings are missing", () => {
getSettings.mockReturnValueOnce({});
const res = createMockRes();
handler({ res });
expect(checkAndCopyConfig).toHaveBeenCalledWith("settings.yaml");
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({ color: "slate", theme: "dark" });
});
it("returns configured color + theme when present", () => {
getSettings.mockReturnValueOnce({ color: "red", theme: "light" });
const res = createMockRes();
handler({ res });
expect(res.body).toEqual({ color: "red", theme: "light" });
});
});

View File

@@ -1,30 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { checkAndCopyConfig } = vi.hoisted(() => ({
checkAndCopyConfig: vi.fn(),
}));
vi.mock("utils/config/config", () => ({
default: checkAndCopyConfig,
}));
import handler from "pages/api/validate";
describe("pages/api/validate", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns errors for any configs that don't validate", async () => {
checkAndCopyConfig.mockReturnValueOnce(true).mockReturnValueOnce("settings bad").mockReturnValue(true);
const req = {};
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual(["settings bad"]);
});
});

View File

@@ -1,123 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { getPrivateWidgetOptions, httpProxy, logger } = vi.hoisted(() => ({
getPrivateWidgetOptions: vi.fn(),
httpProxy: vi.fn(),
logger: { error: vi.fn() },
}));
vi.mock("utils/config/widget-helpers", () => ({
getPrivateWidgetOptions,
}));
vi.mock("utils/proxy/http", () => ({
httpProxy,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/widgets/glances";
describe("pages/api/widgets/glances", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 400 when the widget URL is missing", async () => {
getPrivateWidgetOptions.mockResolvedValueOnce({});
const req = { query: { index: "0" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body.error).toBe("Missing Glances URL");
});
it("returns cpu/load/mem and includes optional endpoints when requested", async () => {
getPrivateWidgetOptions.mockResolvedValueOnce({ url: "http://glances", username: "u", password: "p" });
httpProxy
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ total: 1 }))]) // cpu
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ avg: 2 }))]) // load
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ available: 3 }))]) // mem
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify("1 days"))]) // uptime
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify([{ label: "cpu_thermal", value: 50 }]))]) // sensors
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify([{ mnt_point: "/", percent: 1 }]))]); // fs
const req = { query: { index: "0", uptime: "1", cputemp: "1", disk: "1", version: "4" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenCalledWith(
"http://glances/api/4/cpu",
expect.objectContaining({
method: "GET",
headers: expect.objectContaining({ Authorization: expect.any(String) }),
}),
);
expect(res.statusCode).toBe(200);
expect(res.body).toEqual({
cpu: { total: 1 },
load: { avg: 2 },
mem: { available: 3 },
uptime: "1 days",
sensors: [{ label: "cpu_thermal", value: 50 }],
fs: [{ mnt_point: "/", percent: 1 }],
});
});
it("does not call optional endpoints unless requested", async () => {
getPrivateWidgetOptions.mockResolvedValueOnce({ url: "http://glances" });
httpProxy
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ total: 1 }))]) // cpu
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ avg: 2 }))]) // load
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ available: 3 }))]); // mem
const req = { query: { index: "0" } };
const res = createMockRes();
await handler(req, res);
expect(httpProxy).toHaveBeenCalledTimes(3);
expect(httpProxy.mock.calls[0][1].headers.Authorization).toBeUndefined();
expect(res.statusCode).toBe(200);
});
it("returns 400 when glances returns 401", async () => {
getPrivateWidgetOptions.mockResolvedValueOnce({ url: "http://glances" });
httpProxy.mockResolvedValueOnce([401, null, Buffer.from("nope")]);
const req = { query: { index: "0" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual(expect.objectContaining({ error: expect.stringContaining("Authorization failure") }));
});
it("returns 400 when glances returns a non-200 status for a downstream call", async () => {
getPrivateWidgetOptions.mockResolvedValueOnce({ url: "http://glances" });
httpProxy
.mockResolvedValueOnce([200, null, Buffer.from(JSON.stringify({ total: 1 }))]) // cpu
.mockResolvedValueOnce([500, null, Buffer.from("nope")]); // load
const req = { query: { index: "0" } };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(400);
expect(res.body).toEqual(expect.objectContaining({ error: expect.stringContaining("HTTP 500") }));
});
});

View File

@@ -1,30 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { widgetsResponse } = vi.hoisted(() => ({
widgetsResponse: vi.fn(),
}));
vi.mock("utils/config/api-response", () => ({
widgetsResponse,
}));
import handler from "pages/api/widgets/index";
describe("pages/api/widgets/index", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns widgetsResponse()", async () => {
widgetsResponse.mockResolvedValueOnce([{ type: "logo", options: {} }]);
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.body).toEqual([{ type: "logo", options: {} }]);
});
});

View File

@@ -1,204 +0,0 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import createMockRes from "test-utils/create-mock-res";
const { kc, coreApi, metricsApi, getKubeConfig, parseCpu, parseMemory, logger } = vi.hoisted(() => {
const coreApi = { listNode: vi.fn() };
const metricsApi = { getNodeMetrics: vi.fn() };
const kc = {
makeApiClient: vi.fn(() => coreApi),
};
return {
kc,
coreApi,
metricsApi,
getKubeConfig: vi.fn(),
parseCpu: vi.fn(),
parseMemory: vi.fn(),
logger: { error: vi.fn(), debug: vi.fn() },
};
});
vi.mock("@kubernetes/client-node", () => ({
CoreV1Api: class CoreV1Api {},
Metrics: class Metrics {
constructor() {
return metricsApi;
}
},
}));
vi.mock("utils/config/kubernetes", () => ({
getKubeConfig,
}));
vi.mock("utils/kubernetes/utils", () => ({
parseCpu,
parseMemory,
}));
vi.mock("utils/logger", () => ({
default: () => logger,
}));
import handler from "pages/api/widgets/kubernetes";
describe("pages/api/widgets/kubernetes", () => {
beforeEach(() => {
vi.clearAllMocks();
});
it("returns 500 when no kube config is available", async () => {
getKubeConfig.mockReturnValueOnce(null);
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body.error).toBe("No kubernetes configuration");
});
it("returns 500 when listing nodes fails", async () => {
getKubeConfig.mockReturnValueOnce(kc);
coreApi.listNode.mockResolvedValueOnce(null);
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body.error).toContain("fetching nodes");
});
it("logs and returns 500 when listing nodes throws", async () => {
getKubeConfig.mockReturnValueOnce(kc);
coreApi.listNode.mockRejectedValueOnce({ statusCode: 500, body: "nope", response: "nope" });
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(logger.error).toHaveBeenCalled();
expect(logger.debug).toHaveBeenCalled();
expect(res.statusCode).toBe(500);
expect(res.body.error).toContain("fetching nodes");
});
it("returns 500 when metrics lookup fails", async () => {
getKubeConfig.mockReturnValueOnce(kc);
parseMemory.mockReturnValue(100);
coreApi.listNode.mockResolvedValueOnce({
items: [
{
metadata: { name: "n1" },
status: { capacity: { cpu: "1", memory: "100" }, conditions: [{ type: "Ready", status: "True" }] },
},
],
});
metricsApi.getNodeMetrics.mockRejectedValueOnce(new Error("nope"));
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body.error).toContain("Error getting metrics");
});
it("returns cluster totals and per-node usage", async () => {
getKubeConfig.mockReturnValueOnce(kc);
parseMemory.mockImplementation((value) => {
if (value === "100") return 100;
if (value === "50") return 50;
if (value === "30") return 30;
return 0;
});
parseCpu.mockImplementation((value) => {
if (value === "100m") return 0.1;
if (value === "200m") return 0.2;
return 0;
});
coreApi.listNode.mockResolvedValueOnce({
items: [
{
metadata: { name: "n1" },
status: { capacity: { cpu: "1", memory: "100" }, conditions: [{ type: "Ready", status: "True" }] },
},
{
metadata: { name: "n2" },
status: { capacity: { cpu: "2", memory: "50" }, conditions: [{ type: "Ready", status: "False" }] },
},
],
});
metricsApi.getNodeMetrics.mockResolvedValueOnce({
items: [
{ metadata: { name: "n1" }, usage: { cpu: "100m", memory: "30" } },
{ metadata: { name: "n2" }, usage: { cpu: "200m", memory: "50" } },
],
});
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(200);
expect(res.body.cluster.cpu.total).toBe(3);
expect(res.body.cluster.cpu.load).toBeCloseTo(0.3);
expect(res.body.cluster.memory.total).toBe(150);
expect(res.body.nodes).toHaveLength(2);
expect(res.body.nodes.find((n) => n.name === "n1").cpu.percent).toBeCloseTo(10);
});
it("returns a metrics error when metrics contain an unexpected node name", async () => {
getKubeConfig.mockReturnValueOnce(kc);
parseMemory.mockReturnValue(100);
parseCpu.mockReturnValue(0.1);
coreApi.listNode.mockResolvedValueOnce({
items: [
{
metadata: { name: "n1" },
status: { capacity: { cpu: "1", memory: "100" }, conditions: [{ type: "Ready", status: "True" }] },
},
],
});
metricsApi.getNodeMetrics.mockResolvedValueOnce({
items: [{ metadata: { name: "n2" }, usage: { cpu: "100m", memory: "30" } }],
});
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body.error).toContain("Error getting metrics");
expect(logger.error).toHaveBeenCalled();
});
it("returns 500 when an unexpected error is thrown", async () => {
getKubeConfig.mockImplementationOnce(() => {
throw new Error("boom");
});
const req = { query: {} };
const res = createMockRes();
await handler(req, res);
expect(res.statusCode).toBe(500);
expect(res.body).toEqual({ error: "unknown error" });
expect(logger.error).toHaveBeenCalled();
});
});

Some files were not shown because too many files have changed in this diff Show More