mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
Compare commits
56 Commits
7a7d93519d
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd34796b9d | ||
|
|
0d788e3d06 | ||
|
|
ed1dafadde | ||
|
|
96ac9046b3 | ||
|
|
6d5f35f07e | ||
|
|
c77dfa4c64 | ||
|
|
307d7f4b2d | ||
|
|
fb9927ab0c | ||
|
|
d13165699b | ||
|
|
65ff248ee7 | ||
|
|
87e5643892 | ||
|
|
8887281246 | ||
|
|
5b50e8ff81 | ||
|
|
c36c6a9012 | ||
|
|
cf990063b9 | ||
|
|
610f1bd974 | ||
|
|
4031178831 | ||
|
|
b65c8399d8 | ||
|
|
6b63cfd491 | ||
|
|
196c51bf73 | ||
|
|
17c9b2631e | ||
|
|
1a21189643 | ||
|
|
b6b428363c | ||
|
|
e707fa46cf | ||
|
|
3d040362cb | ||
|
|
57b193b037 | ||
|
|
8a75c9b6e3 | ||
|
|
0dafc792f7 | ||
|
|
afc0fe29ee | ||
|
|
817a9bbce5 | ||
|
|
3ef7031eb0 | ||
|
|
6faf32eae9 | ||
|
|
455e86571a | ||
|
|
7d1e0c087a | ||
|
|
d48ef4c038 | ||
|
|
4a2eeaa8b9 | ||
|
|
faa2e6bb36 | ||
|
|
438543d8cd | ||
|
|
5a350cc9ce | ||
|
|
529814cf03 | ||
|
|
9b5275a854 | ||
|
|
e623196ac0 | ||
|
|
973b1f7aaf | ||
|
|
81a322cc99 | ||
|
|
36e82a8b90 | ||
|
|
1383e22acd | ||
|
|
a756a01d63 | ||
|
|
937efc9f1b | ||
|
|
fe6f32f072 | ||
|
|
226603770c | ||
|
|
2f48d21bfd | ||
|
|
4457baffa5 | ||
|
|
91d12c401c | ||
|
|
3f8da51aeb | ||
|
|
837717461f | ||
|
|
f7a6b7dbf4 |
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -38,3 +38,4 @@ What type of change does your PR introduce to Homepage?
|
||||
- [ ] 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.
|
||||
- [ ] In the description above I have disclosed the use of AI tools in the coding of this PR.
|
||||
|
||||
2
.github/workflows/crowdin.yml
vendored
2
.github/workflows/crowdin.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
- name: crowdin action
|
||||
uses: crowdin/github-action@v2
|
||||
with:
|
||||
|
||||
12
.github/workflows/docker-publish.yml
vendored
12
.github/workflows/docker-publish.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install python
|
||||
uses: actions/setup-python@v6
|
||||
@@ -35,10 +35,11 @@ jobs:
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
@@ -61,7 +62,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
@@ -93,10 +94,11 @@ jobs:
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
@@ -127,7 +129,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3.6.0
|
||||
uses: docker/setup-qemu-action@v3.7.0
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
6
.github/workflows/docs-publish.yml
vendored
6
.github/workflows/docs-publish.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
- name: Install python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
needs:
|
||||
- pre-commit
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.x
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
needs:
|
||||
- pre-commit
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- name: Configure Git Credentials
|
||||
run: |
|
||||
git config user.name github-actions[bot]
|
||||
|
||||
@@ -51,6 +51,8 @@ COPY --link --from=builder --chown=1000:1000 /app/.next/static/ ./.next/static
|
||||
|
||||
RUN apk add --no-cache su-exec iputils-ping shadow
|
||||
|
||||
USER root
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
ENV PORT=3000
|
||||
|
||||
@@ -57,8 +57,8 @@ if [ -d /app/.next ]; then
|
||||
fi
|
||||
|
||||
# Drop privileges (when asked to) if root, otherwise run as current user
|
||||
if [ "$(id -u)" == "0" ] && [ "${PUID}" != "0" ]; then
|
||||
su-exec ${PUID}:${PGID} "$@"
|
||||
if [ "$(id -u)" = "0" ] && [ "${PUID}" != "0" ]; then
|
||||
exec su-exec ${PUID}:${PGID} "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
@@ -271,4 +271,4 @@ You can show the docker stats by clicking the status indicator but this can also
|
||||
showStats: true
|
||||
```
|
||||
|
||||
Also see the settings for [show docker stats](settings.md#show-docker-stats).
|
||||
Also see the settings for [show docker stats](settings.md#show-container-stats).
|
||||
|
||||
@@ -118,6 +118,60 @@ Each widget can optionally provide a list of which fields should be visible via
|
||||
key: apikeyapikeyapikeyapikeyapikey
|
||||
```
|
||||
|
||||
### Block Highlighting
|
||||
|
||||
Widgets can tint their metric block text automatically based on rules defined alongside the service. Attach a `highlight` section to the widget configuration and map each block to one or more numeric or string rules using the field key (for example, `queued`, `lan_users`).
|
||||
|
||||
```yaml
|
||||
- Sonarr:
|
||||
icon: sonarr.png
|
||||
href: http://sonarr.host.or.ip
|
||||
widget:
|
||||
type: sonarr
|
||||
url: http://sonarr.host.or.ip
|
||||
key: ${SONARR_API_KEY}
|
||||
highlight:
|
||||
queued:
|
||||
numeric:
|
||||
- level: danger
|
||||
when: gte
|
||||
value: 20
|
||||
- level: warn
|
||||
when: gte
|
||||
value: 5
|
||||
- level: good
|
||||
when: eq
|
||||
value: 0
|
||||
status:
|
||||
string:
|
||||
- level: danger
|
||||
when: regex
|
||||
value: "(failed|import) pending"
|
||||
- level: good
|
||||
when: equals
|
||||
value: "All good"
|
||||
status_code:
|
||||
string:
|
||||
- level: warn
|
||||
when: regex
|
||||
value: "^5\\d{2}$"
|
||||
```
|
||||
|
||||
Supported numeric operators for the `when` property are `gt`, `gte`, `lt`, `lte`, `eq`, `ne`, `between`, and `outside`. String rules support `equals`, `includes`, `startsWith`, `endsWith`, and `regex`. Each rule can be inverted with `negate: true`, and string rules may pass `caseSensitive: true` or custom regex `flags`. The highlight engine does its best to coerce formatted values, but you will get the most reliable results when you pass plain numbers or strings into `<Block>`.
|
||||
|
||||
#### Value Only Highlighting
|
||||
|
||||
You can optionally apply highlighting only to the value portion of a block (not the label) by setting `valueOnly: true` on the field configuration. This keeps the label visible while highlighting only the metric value itself.
|
||||
|
||||
```yaml
|
||||
- Sonarr:
|
||||
...
|
||||
highlight:
|
||||
queued:
|
||||
valueOnly: true
|
||||
...
|
||||
```
|
||||
|
||||
## Descriptions
|
||||
|
||||
Services may have descriptions,
|
||||
|
||||
@@ -109,6 +109,20 @@ color: slate
|
||||
|
||||
Supported colors are: `slate`, `gray`, `zinc`, `neutral`, `stone`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose`, `red`, `white`
|
||||
|
||||
## Block Highlight Levels
|
||||
|
||||
You can override the default Tailwind classes applied when a widget highlight rule resolves to the `good`, `warn`, or `danger` level.
|
||||
|
||||
```yaml
|
||||
blockHighlights:
|
||||
levels:
|
||||
good: "bg-emerald-500/40 text-emerald-950 dark:bg-emerald-900/60 dark:text-emerald-400"
|
||||
warn: "bg-amber-300/30 text-amber-900 dark:bg-amber-900/30 dark:text-amber-200"
|
||||
danger: "bg-rose-700/45 text-rose-200 dark:bg-rose-950/70 dark:text-rose-400"
|
||||
```
|
||||
|
||||
Any unspecified level falls back to the built-in defaults.
|
||||
|
||||
## Layout
|
||||
|
||||
You can configure service and bookmarks sections to be either "column" or "row" based layouts, like so:
|
||||
@@ -382,7 +396,9 @@ Set your desired language using:
|
||||
language: fr
|
||||
```
|
||||
|
||||
Currently supported languages: ca, de, en, es, fr, he, hr, hu, it, nb-NO, nl, pt, ru, sv, vi, zh-CN, zh-Hant
|
||||
Currently supported languages: ca, de, en, es, fr, he, hr, hu, it, nb-NO, nl, pt, ru, sv, vi, zh-Hans (Simplified), zh-Hant (Traditional)
|
||||
|
||||
`zh-CN` will still work and is automatically mapped to `zh-Hans` for backwards compatibility.
|
||||
|
||||
You can also specify locales e.g. for the DateTime widget, e.g. en-AU, en-GB, etc.
|
||||
|
||||
@@ -486,9 +502,9 @@ logpath: /logfile/path
|
||||
|
||||
By default, logs are sent both to `stdout` and to a file at the path specified. This can be changed by setting the `LOG_TARGETS` environment variable to one of `both` (default), `stdout` or `file`.
|
||||
|
||||
## Show Docker Stats
|
||||
## Show Container Stats
|
||||
|
||||
You can show all docker stats expanded in `settings.yaml`:
|
||||
You can show all docker or proxmox stats expanded in `settings.yaml`:
|
||||
|
||||
```yaml
|
||||
showStats: true
|
||||
@@ -557,3 +573,18 @@ or per service widget (`services.yaml`) with:
|
||||
```
|
||||
|
||||
If either value is set to true, the error message will be hidden.
|
||||
|
||||
## Disable Search Engine Indexing
|
||||
|
||||
You can request that search engines not to index your Homepage instance by enabling the `disableIndexing` setting.
|
||||
|
||||
```yaml
|
||||
disableIndexing: true
|
||||
```
|
||||
|
||||
When enabled, this will:
|
||||
|
||||
- Disallow all crawlers in `robots.txt`
|
||||
- Add `<meta name="robots" content="noindex, nofollow">` tags to prevent indexing
|
||||
|
||||
By default this feature is disabled.
|
||||
|
||||
@@ -14,7 +14,7 @@ services:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- /path/to/config:/app/config # Make sure your local config directory exists
|
||||
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations
|
||||
environment:
|
||||
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
|
||||
```
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- /path/to/config:/app/config # Make sure your local config directory exists
|
||||
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations, see alternative methods
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations, see alternative methods
|
||||
environment:
|
||||
HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
|
||||
PUID: $PUID
|
||||
|
||||
@@ -68,7 +68,19 @@ All service widgets work essentially the same, that is, homepage makes a proxied
|
||||
|
||||
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
|
||||
## Enabling IPv6 for the homepage container
|
||||
|
||||
To enable IPv6 support for the homepage container, you can set the `HOSTNAME` environment variable, for example:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
homepage:
|
||||
...
|
||||
environment:
|
||||
- HOSTNAME=::
|
||||
```
|
||||
|
||||
## 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.
|
||||
|
||||
|
||||
@@ -62,3 +62,4 @@ To ensure cohesiveness of various widgets, the following should be used as a gui
|
||||
- Minimize the number of API calls
|
||||
- Avoid the use of custom proxy unless absolutely necessary
|
||||
- Widgets should be 'read-only', as in they should not make write changes using the relevant tool's API. Homepage widgets are designed to surface information, not to be a (usually worse) replacement for the tool itself.
|
||||
- Widgets should not allow manually overriding the "refresh interval" setting, as misconfigured refresh intervals can easily lead to performance issues for users.
|
||||
|
||||
@@ -8,6 +8,9 @@ Learn more about [Crowdsec](https://crowdsec.net).
|
||||
See the [crowdsec docs](https://docs.crowdsec.net/docs/local_api/intro/#machines) for information about registering a machine,
|
||||
in most instances you can use the default credentials (`/etc/crowdsec/local_api_credentials.yaml`).
|
||||
|
||||
!!! note
|
||||
Without the `limit24h` option, the widget will fetch all alerts which is limited to 100 by the API to avoid performance issues.
|
||||
|
||||
Allowed fields: `["alerts", "bans"]`.
|
||||
|
||||
```yaml
|
||||
@@ -16,4 +19,5 @@ widget:
|
||||
url: http://crowdsechostorip:port
|
||||
username: localhost # machine_id in crowdsec
|
||||
password: password
|
||||
limit24h: true # optional, limits alerts to last 24h. Default: false
|
||||
```
|
||||
|
||||
@@ -14,4 +14,6 @@ widget:
|
||||
type: frigate
|
||||
url: http://frigate.host.or.ip:port
|
||||
enableRecentEvents: true # Optional, defaults to false
|
||||
username: username # optional
|
||||
password: password # optional
|
||||
```
|
||||
|
||||
@@ -15,7 +15,7 @@ See the [official docs](https://github.com/ghostfolio/ghostfolio#authorization-b
|
||||
|
||||
_Note that the Bearer token is valid for 6 months, after which a new one must be generated._
|
||||
|
||||
Allowed fields: `["gross_percent_today", "gross_percent_1y", "gross_percent_max"]`
|
||||
Allowed fields: `["gross_percent_today", "gross_percent_1y", "gross_percent_max", "net_worth"]`
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
|
||||
@@ -12,11 +12,17 @@ Learn more about [Gluetun](https://github.com/qdm12/gluetun).
|
||||
Allowed fields: `["public_ip", "region", "country", "port_forwarded"]`.
|
||||
Default fields: `["public_ip", "region", "country"]`.
|
||||
|
||||
To setup authentication, follow [the official Gluetun documentation](https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication). Note that to use the api key method, you must add the route `GET /v1/publicip/ip` to the `routes` array in your Gluetun config.toml. Similarly, if you want to include the `port_forwarded` field, you must add the route `GET /v1/openvpn/portforwarded` to your Gluetun config.toml.
|
||||
To setup authentication, follow [the official Gluetun documentation](https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication). Note that to use the api key method, you must add the route `GET /v1/publicip/ip` to the `routes` array in your Gluetun config.toml. Similarly, if you want to include the `port_forwarded` field, you must add the route `GET /v1/openvpn/portforwarded` (or `/v1/portforward`) to your Gluetun config.toml.
|
||||
|
||||
| Gluetun Version | Homepage Widget Version |
|
||||
| --------------- | ----------------------- |
|
||||
| < 3.40.1 | 1 (default) |
|
||||
| >= 3.40.1 | 2 |
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
type: gluetun
|
||||
url: http://gluetun.host.or.ip:port
|
||||
key: gluetunkey # Not required if /v1/publicip/ip endpoint is configured with `auth = none`
|
||||
version: 2 # optional, default is 1
|
||||
```
|
||||
|
||||
@@ -17,6 +17,6 @@ widget:
|
||||
url: http://komodo.hostname.or.ip:port
|
||||
key: K-xxxxxx...
|
||||
secret: S-xxxxxx...
|
||||
showSummary: true # optional, default: false
|
||||
showSummary: true # optional, default: false. Takes precedence over showStacks
|
||||
showStacks: true # optional, default: false
|
||||
```
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Omada
|
||||
description: Omada Widget Configuration
|
||||
---
|
||||
|
||||
The widget supports controller versions 3, 4 and 5.
|
||||
The widget supports controller versions 3, 4, 5 and 6.
|
||||
|
||||
Allowed fields: `["connectedAp", "activeUser", "alerts", "connectedGateways", "connectedSwitches"]`.
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ The Unraid widget allows you to monitor the resources of an Unraid server.
|
||||
**Minimum Requirements:**
|
||||
|
||||
- Unraid 7.2 -or- Unraid Connect plugin 2025.08.19.1850
|
||||
- API key with the **GUEST** (read only) role: [Managing API Keys](https://docs.unraid.net/go/managing-api-keys)
|
||||
- API key with the **ADMIN** role: [Managing API Keys](https://docs.unraid.net/go/managing-api-keys)
|
||||
|
||||
The widget can display metrics for selected Unraid pools. If using one of the "pool" fields, you must also add the pool name to the settings.
|
||||
|
||||
**Allowed fields:** `["cpu","memoryPercent","memoryAvailable","memoryUsed","notifications","arrayFreeSpace","arrayUsedSpace","arrayUsedPercent","status","pool1UsedSpace","pool1FreeSpace","pool1UsedPercent","pool2UsedSpace","pool2FreeSpace","pool2UsedPercent","pool3UsedSpace","pool3FreeSpace","pool3UsedPercent","pool4UsedSpace","pool4FreeSpace","pool4UsedPercent"]`
|
||||
**Allowed fields:** `["cpu","memoryPercent","memoryAvailable","memoryUsed","notifications","arrayFree","arrayUsedSpace","arrayUsedPercent","status","pool1UsedSpace","pool1FreeSpace","pool1UsedPercent","pool2UsedSpace","pool2FreeSpace","pool2UsedPercent","pool3UsedSpace","pool3FreeSpace","pool3UsedPercent","pool4UsedSpace","pool4FreeSpace","pool4UsedPercent"]`
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
|
||||
25
package.json
25
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "1.5.0",
|
||||
"version": "1.7.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
@@ -11,7 +11,7 @@
|
||||
"telemetry": "next telemetry disable"
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^2.2.7",
|
||||
"@headlessui/react": "^2.2.9",
|
||||
"@kubernetes/client-node": "^1.0.0",
|
||||
"classnames": "^2.5.1",
|
||||
"compare-versions": "^6.1.1",
|
||||
@@ -25,18 +25,18 @@
|
||||
"luxon": "^3.6.1",
|
||||
"memory-cache": "^0.2.0",
|
||||
"minecraftstatuspinger": "^1.2.2",
|
||||
"next": "^15.5.2",
|
||||
"next": "^15.5.7",
|
||||
"next-i18next": "^12.1.0",
|
||||
"ping": "^0.4.4",
|
||||
"pretty-bytes": "^6.1.1",
|
||||
"raw-body": "^3.0.1",
|
||||
"pretty-bytes": "^7.1.0",
|
||||
"raw-body": "^3.0.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-i18next": "^15.5.3",
|
||||
"react-icons": "^5.4.0",
|
||||
"recharts": "^3.1.2",
|
||||
"swr": "^2.3.3",
|
||||
"systeminformation": "^5.27.7",
|
||||
"systeminformation": "^5.27.11",
|
||||
"tough-cookie": "^6.0.0",
|
||||
"urbackup-server-api": "^0.8.9",
|
||||
"winston": "^3.17.0",
|
||||
@@ -47,15 +47,15 @@
|
||||
"@tailwindcss/postcss": "^4.1.14",
|
||||
"eslint": "^9.25.1",
|
||||
"eslint-config-next": "^15.2.4",
|
||||
"eslint-config-prettier": "^10.1.1",
|
||||
"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",
|
||||
"postcss": "^8.5.6",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-organize-imports": "^4.1.0",
|
||||
"prettier": "^3.7.3",
|
||||
"prettier-plugin-organize-imports": "^4.3.0",
|
||||
"tailwind-scrollbar": "^4.0.2",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"typescript": "^5.7.3"
|
||||
@@ -63,13 +63,6 @@
|
||||
"optionalDependencies": {
|
||||
"osx-temperature-sensor": "^1.0.8"
|
||||
},
|
||||
"packageManager": "pnpm@10.8.1",
|
||||
"devEngines": {
|
||||
"packageManager": {
|
||||
"name": "pnpm",
|
||||
"version": "10.8.1"
|
||||
}
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"osx-temperature-sensor",
|
||||
|
||||
537
pnpm-lock.yaml
generated
537
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1093,7 +1093,7 @@
|
||||
"DISABLE_DISK": "Skyf Gedeaktiveer",
|
||||
"SWAP_DSBL": "Ruil Gedeaktiveer",
|
||||
"INVALID_EXPANSION": "Ongeldige Uitbreiding",
|
||||
"PARITY_NOT_BIGGEST": "Pariteit nie die grootste nie",
|
||||
"PARITY_NOT_BIGGEST": "Pariteit nie die Grootste nie",
|
||||
"TOO_MANY_MISSING_DISKS": "Te Veel Ontbrekende Skywe",
|
||||
"NEW_DISK_TOO_SMALL": "Nuwe Skyf te Klein",
|
||||
"NO_DATA_DISKS": "Geen Data Skywe",
|
||||
|
||||
@@ -93,8 +93,8 @@
|
||||
"http_status": "HTTP-Status",
|
||||
"error": "Fehler",
|
||||
"response": "Antwort",
|
||||
"down": "Online",
|
||||
"up": "Offline",
|
||||
"down": "Offline",
|
||||
"up": "Online",
|
||||
"not_available": "Nicht verfügbar"
|
||||
},
|
||||
"emby": {
|
||||
@@ -276,7 +276,7 @@
|
||||
"pending": "Wartend",
|
||||
"approved": "Genehmigt",
|
||||
"available": "Verfügbar",
|
||||
"issues": "Open Issues"
|
||||
"issues": "Offene Issues"
|
||||
},
|
||||
"overseerr": {
|
||||
"pending": "Wartend",
|
||||
@@ -1088,22 +1088,22 @@
|
||||
"unraid": {
|
||||
"STARTED": "Gestartet",
|
||||
"STOPPED": "Angehalten",
|
||||
"NEW_ARRAY": "New Array",
|
||||
"RECON_DISK": "Reconstructing Disk",
|
||||
"DISABLE_DISK": "Disk Disabled",
|
||||
"SWAP_DSBL": "Swap Disable",
|
||||
"INVALID_EXPANSION": "Invalid Expansion",
|
||||
"NEW_ARRAY": "Neues Array",
|
||||
"RECON_DISK": "Festplatte wird neu aufgebaut",
|
||||
"DISABLE_DISK": "Festplatte deaktiviert",
|
||||
"SWAP_DSBL": "Swap deaktivieren",
|
||||
"INVALID_EXPANSION": "Üngültige Erweiterung",
|
||||
"PARITY_NOT_BIGGEST": "Parity Not Biggest",
|
||||
"TOO_MANY_MISSING_DISKS": "Too Many Missing Disks",
|
||||
"NEW_DISK_TOO_SMALL": "New Disk Too Small",
|
||||
"TOO_MANY_MISSING_DISKS": "Zu viele fehlende Festplatten",
|
||||
"NEW_DISK_TOO_SMALL": "Neue Festplatte zu klein",
|
||||
"NO_DATA_DISKS": "Keine Datenträger",
|
||||
"notifications": "Mitteilungen",
|
||||
"status": "Status",
|
||||
"cpu": "CPU",
|
||||
"memoryUsed": "Speichernutzung",
|
||||
"memoryAvailable": "Verfügbarer Speicher",
|
||||
"arrayUsed": "Array Used",
|
||||
"arrayFree": "Array Free",
|
||||
"arrayUsed": "Array verwendet",
|
||||
"arrayFree": "Array frei",
|
||||
"poolUsed": "{{pool}} verwendet",
|
||||
"poolFree": "{{pool}} frei"
|
||||
},
|
||||
@@ -1111,9 +1111,9 @@
|
||||
"num_plans": "Pläne",
|
||||
"num_success_30": "Erfolgreich",
|
||||
"num_failure_30": "Fehlerhaft",
|
||||
"num_success_latest": "Succeeding",
|
||||
"num_failure_latest": "Failing",
|
||||
"bytes_added_30": "Bytes Added"
|
||||
"num_success_latest": "Erfolgreich",
|
||||
"num_failure_latest": "Fehlgeschlagen",
|
||||
"bytes_added_30": "Bytes hinzugefügt"
|
||||
},
|
||||
"yourspotify": {
|
||||
"songs": "Titel",
|
||||
|
||||
@@ -759,7 +759,8 @@
|
||||
"ghostfolio": {
|
||||
"gross_percent_today": "Today",
|
||||
"gross_percent_1y": "One year",
|
||||
"gross_percent_max": "All time"
|
||||
"gross_percent_max": "All time",
|
||||
"net_worth": "Net Worth"
|
||||
},
|
||||
"audiobookshelf": {
|
||||
"podcasts": "Podcasts",
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
"pending": "Pendiente",
|
||||
"approved": "Aprobado",
|
||||
"available": "Disponible",
|
||||
"issues": "Open Issues"
|
||||
"issues": "Issues Abiertos"
|
||||
},
|
||||
"overseerr": {
|
||||
"pending": "Pendiente",
|
||||
@@ -1108,16 +1108,16 @@
|
||||
"poolFree": "{{pool}} Libre"
|
||||
},
|
||||
"backrest": {
|
||||
"num_plans": "Plans",
|
||||
"num_success_30": "Successes",
|
||||
"num_failure_30": "Failures",
|
||||
"num_success_latest": "Succeeding",
|
||||
"num_failure_latest": "Failing",
|
||||
"bytes_added_30": "Bytes Added"
|
||||
"num_plans": "Planes",
|
||||
"num_success_30": "Éxitos",
|
||||
"num_failure_30": "Fallos",
|
||||
"num_success_latest": "Exitosa",
|
||||
"num_failure_latest": "Fallida",
|
||||
"bytes_added_30": "Bytes Añadidos"
|
||||
},
|
||||
"yourspotify": {
|
||||
"songs": "Songs",
|
||||
"time": "Time",
|
||||
"artists": "Artists"
|
||||
"songs": "Canciones",
|
||||
"time": "Tiempo",
|
||||
"artists": "Artistas"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@
|
||||
"pending": "En attente",
|
||||
"approved": "Approuvé",
|
||||
"available": "Disponible",
|
||||
"issues": "Open Issues"
|
||||
"issues": "Problèmes non résolus"
|
||||
},
|
||||
"overseerr": {
|
||||
"pending": "En attente",
|
||||
@@ -1086,38 +1086,38 @@
|
||||
"nextRenewingSubscription": "Prochain paiement"
|
||||
},
|
||||
"unraid": {
|
||||
"STARTED": "Started",
|
||||
"STOPPED": "Stopped",
|
||||
"NEW_ARRAY": "New Array",
|
||||
"RECON_DISK": "Reconstructing Disk",
|
||||
"DISABLE_DISK": "Disk Disabled",
|
||||
"STARTED": "Commencé",
|
||||
"STOPPED": "Arrêté",
|
||||
"NEW_ARRAY": "Nouveau tableau",
|
||||
"RECON_DISK": "Reconstruction du disque",
|
||||
"DISABLE_DISK": "Disque désactivé",
|
||||
"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",
|
||||
"INVALID_EXPANSION": "Extension invalide",
|
||||
"PARITY_NOT_BIGGEST": "La parité n'est pas la plus grande",
|
||||
"TOO_MANY_MISSING_DISKS": "Trop de disques manquants",
|
||||
"NEW_DISK_TOO_SMALL": "Nouveau disque trop petit",
|
||||
"NO_DATA_DISKS": "Aucun disque de données",
|
||||
"notifications": "Notifications",
|
||||
"status": "État",
|
||||
"cpu": "UCT",
|
||||
"memoryUsed": "Mémoire Utilisé",
|
||||
"memoryAvailable": "Mémoire Disponible",
|
||||
"arrayUsed": "Array Used",
|
||||
"arrayFree": "Array Free",
|
||||
"poolUsed": "{{pool}} Used",
|
||||
"poolFree": "{{pool}} Free"
|
||||
"arrayUsed": "RAID utilisé",
|
||||
"arrayFree": "RAID libre",
|
||||
"poolUsed": "{{pool}} Utilisé",
|
||||
"poolFree": "{{pool}} Libre"
|
||||
},
|
||||
"backrest": {
|
||||
"num_plans": "Plans",
|
||||
"num_success_30": "Successes",
|
||||
"num_failure_30": "Failures",
|
||||
"num_success_latest": "Succeeding",
|
||||
"num_failure_latest": "Failing",
|
||||
"bytes_added_30": "Bytes Added"
|
||||
"num_plans": "Abonnements",
|
||||
"num_success_30": "Succès",
|
||||
"num_failure_30": "Échecs",
|
||||
"num_success_latest": "Réussi",
|
||||
"num_failure_latest": "Échoué",
|
||||
"bytes_added_30": "Octets ajoutés"
|
||||
},
|
||||
"yourspotify": {
|
||||
"songs": "Songs",
|
||||
"time": "Time",
|
||||
"artists": "Artists"
|
||||
"songs": "Musiques",
|
||||
"time": "Durée",
|
||||
"artists": "Artistes"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
"wlan_devices": "Dispositivos WLAN",
|
||||
"lan_users": "Usuários de LAN",
|
||||
"wlan_users": "Usuários de WLAN",
|
||||
"up": "UP",
|
||||
"up": "ATIVO",
|
||||
"down": "Desligado",
|
||||
"wait": "Por favor, aguarde",
|
||||
"empty_data": "Status do Subsistema desconhecido"
|
||||
@@ -246,7 +246,7 @@
|
||||
"unknown": "Desconhecido"
|
||||
},
|
||||
"radarr": {
|
||||
"wanted": "Wanted",
|
||||
"wanted": "Desejado",
|
||||
"missing": "Faltando",
|
||||
"queued": "Em fila",
|
||||
"movies": "Filmes",
|
||||
@@ -254,13 +254,13 @@
|
||||
"unknown": "Desconhecido"
|
||||
},
|
||||
"lidarr": {
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"wanted": "Desejado",
|
||||
"queued": "Na fila",
|
||||
"artists": "Artistas"
|
||||
},
|
||||
"readarr": {
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"wanted": "Desejado",
|
||||
"queued": "Na fila",
|
||||
"books": "Livros"
|
||||
},
|
||||
"bazarr": {
|
||||
@@ -273,20 +273,20 @@
|
||||
"available": "Disponível"
|
||||
},
|
||||
"jellyseerr": {
|
||||
"pending": "Pending",
|
||||
"approved": "Approved",
|
||||
"available": "Available",
|
||||
"issues": "Open Issues"
|
||||
"pending": "Pendente",
|
||||
"approved": "Aprovado",
|
||||
"available": "Disponível",
|
||||
"issues": "Incidentes Abertos"
|
||||
},
|
||||
"overseerr": {
|
||||
"pending": "Pending",
|
||||
"pending": "Pendente",
|
||||
"processing": "Processando",
|
||||
"approved": "Approved",
|
||||
"available": "Available"
|
||||
"approved": "Aprovado",
|
||||
"available": "Disponível"
|
||||
},
|
||||
"netalertx": {
|
||||
"total": "Total",
|
||||
"connected": "Connected",
|
||||
"connected": "Conectado",
|
||||
"new_devices": "Novos dispositivos",
|
||||
"down_alerts": "Alertas de Inatividade"
|
||||
},
|
||||
@@ -297,26 +297,26 @@
|
||||
"gravity": "Gravidade"
|
||||
},
|
||||
"adguard": {
|
||||
"queries": "Queries",
|
||||
"blocked": "Blocked",
|
||||
"queries": "Consultas",
|
||||
"blocked": "Bloqueado",
|
||||
"filtered": "Filtrado",
|
||||
"latency": "Latência"
|
||||
},
|
||||
"speedtest": {
|
||||
"upload": "Upload",
|
||||
"download": "Download",
|
||||
"upload": "Enviar",
|
||||
"download": "Baixar",
|
||||
"ping": "Ping"
|
||||
},
|
||||
"portainer": {
|
||||
"running": "Running",
|
||||
"running": "Executando",
|
||||
"stopped": "Parado",
|
||||
"total": "Total"
|
||||
},
|
||||
"suwayomi": {
|
||||
"download": "Downloaded",
|
||||
"download": "Baixado",
|
||||
"nondownload": "Não Baixado",
|
||||
"read": "Read",
|
||||
"unread": "Unread",
|
||||
"read": "Lido",
|
||||
"unread": "Não lido",
|
||||
"downloadedread": "Baixado e Lido",
|
||||
"downloadedunread": "Baixado e Não Lido",
|
||||
"nondownloadedread": "Não Baixado e Lido",
|
||||
@@ -337,7 +337,7 @@
|
||||
"ago": "{{value}} Atrás"
|
||||
},
|
||||
"technitium": {
|
||||
"totalQueries": "Queries",
|
||||
"totalQueries": "Consultas",
|
||||
"totalNoError": "Sucesso",
|
||||
"totalServerFailure": "Falhas",
|
||||
"totalNxDomain": "Domínios NX",
|
||||
@@ -345,12 +345,12 @@
|
||||
"totalAuthoritative": "Autoritativo",
|
||||
"totalRecursive": "Recursivo",
|
||||
"totalCached": "Em cache",
|
||||
"totalBlocked": "Blocked",
|
||||
"totalBlocked": "Bloqueado",
|
||||
"totalDropped": "Perdidos",
|
||||
"totalClients": "Clientes"
|
||||
},
|
||||
"tdarr": {
|
||||
"queue": "Queue",
|
||||
"queue": "Fila de espera",
|
||||
"processed": "Processado",
|
||||
"errored": "Erro",
|
||||
"saved": "Guardado"
|
||||
@@ -361,13 +361,13 @@
|
||||
"middleware": ""
|
||||
},
|
||||
"trilium": {
|
||||
"version": "Version",
|
||||
"version": "Versão",
|
||||
"notesCount": "Notas",
|
||||
"dbSize": "Tamanho do banco de dados",
|
||||
"unknown": "Unknown"
|
||||
"unknown": "Desconhecido"
|
||||
},
|
||||
"navidrome": {
|
||||
"nothing_streaming": "No Active Streams",
|
||||
"nothing_streaming": "Sem Streams Ativos",
|
||||
"please_wait": "Por favor, aguarde"
|
||||
},
|
||||
"npm": {
|
||||
@@ -384,49 +384,49 @@
|
||||
},
|
||||
"gotify": {
|
||||
"apps": "Aplicações",
|
||||
"clients": "Clients",
|
||||
"clients": "Clientes",
|
||||
"messages": "Mensagens"
|
||||
},
|
||||
"prowlarr": {
|
||||
"enableIndexers": "Indexadores",
|
||||
"numberOfGrabs": "Agarrados",
|
||||
"numberOfQueries": "Queries",
|
||||
"numberOfQueries": "Consultas",
|
||||
"numberOfFailGrabs": "Falhados",
|
||||
"numberOfFailQueries": "Pesquisas falhadas"
|
||||
},
|
||||
"jackett": {
|
||||
"configured": "Configurado",
|
||||
"errored": "Errored"
|
||||
"errored": "Falhou"
|
||||
},
|
||||
"strelaysrv": {
|
||||
"numActiveSessions": "Sessões",
|
||||
"numConnections": "Conexões",
|
||||
"dataRelayed": "Retransmitido",
|
||||
"transferRate": "Rate"
|
||||
"transferRate": "Taxa"
|
||||
},
|
||||
"mastodon": {
|
||||
"user_count": "Users",
|
||||
"user_count": "Usuários",
|
||||
"status_count": "Postagens",
|
||||
"domain_count": "Domínios"
|
||||
},
|
||||
"medusa": {
|
||||
"wanted": "Wanted",
|
||||
"queued": "Queued",
|
||||
"series": "Series"
|
||||
"wanted": "Desejado",
|
||||
"queued": "Na fila",
|
||||
"series": "Séries"
|
||||
},
|
||||
"minecraft": {
|
||||
"players": "Reprodutores",
|
||||
"version": "Versão",
|
||||
"status": "Status",
|
||||
"up": "Online",
|
||||
"down": "Offline"
|
||||
"down": "Desconectado"
|
||||
},
|
||||
"miniflux": {
|
||||
"read": "Lido",
|
||||
"unread": "Unread"
|
||||
"unread": "Não lido"
|
||||
},
|
||||
"authentik": {
|
||||
"users": "Users",
|
||||
"users": "Usuários",
|
||||
"loginsLast24H": "Inícios de sessão (24h)",
|
||||
"failedLoginsLast24H": "Inícios de sessão falhados (24h)"
|
||||
},
|
||||
@@ -438,19 +438,19 @@
|
||||
},
|
||||
"glances": {
|
||||
"cpu": "CPU",
|
||||
"load": "Load",
|
||||
"wait": "Please wait",
|
||||
"temp": "TEMP",
|
||||
"load": "Carga",
|
||||
"wait": "Por favor, aguarde",
|
||||
"temp": "TEMPERATURA",
|
||||
"_temp": "Temperatura",
|
||||
"warn": "Aviso",
|
||||
"uptime": "UP",
|
||||
"uptime": "ATIVO",
|
||||
"total": "Total",
|
||||
"free": "Free",
|
||||
"used": "Used",
|
||||
"free": "Livre",
|
||||
"used": "Utilizado",
|
||||
"days": "d",
|
||||
"hours": "h",
|
||||
"crit": "Crítico",
|
||||
"read": "Read",
|
||||
"read": "Leitura",
|
||||
"write": "Escrita",
|
||||
"gpu": "GPU",
|
||||
"mem": "Memória",
|
||||
@@ -471,57 +471,57 @@
|
||||
"1-day": "Maioritariamente ensolarado",
|
||||
"1-night": "Maioritariamente Limpo",
|
||||
"2-day": "Parcialmente Nublado",
|
||||
"2-night": "Partly Cloudy",
|
||||
"2-night": "Parcialmente Nublado",
|
||||
"3-day": "Nublado",
|
||||
"3-night": "Cloudy",
|
||||
"3-night": "Nublado",
|
||||
"45-day": "Nevoeiro",
|
||||
"45-night": "Foggy",
|
||||
"48-day": "Foggy",
|
||||
"48-night": "Foggy",
|
||||
"45-night": "Nevoeiro",
|
||||
"48-day": "Nevoeiro",
|
||||
"48-night": "Nevoeiro",
|
||||
"51-day": "Aguaceiros",
|
||||
"51-night": "Light Drizzle",
|
||||
"51-night": "Leve Garoa",
|
||||
"53-day": "Chuvisco",
|
||||
"53-night": "Drizzle",
|
||||
"53-night": "Garoa",
|
||||
"55-day": "Aguaceiro Forte",
|
||||
"55-night": "Heavy Drizzle",
|
||||
"55-night": "Garoa Forte",
|
||||
"56-day": "Leve Garoa Congelante",
|
||||
"56-night": "Light Freezing Drizzle",
|
||||
"56-night": "Garoa Congelante Fraca",
|
||||
"57-day": "Garoa Congelante",
|
||||
"57-night": "Freezing Drizzle",
|
||||
"57-night": "Garoa Congelante",
|
||||
"61-day": "Chuva fraca",
|
||||
"61-night": "Light Rain",
|
||||
"61-night": "Chuva Fraca",
|
||||
"63-day": "Chuva",
|
||||
"63-night": "Rain",
|
||||
"63-night": "Chuva",
|
||||
"65-day": "Chuva forte",
|
||||
"65-night": "Heavy Rain",
|
||||
"65-night": "Chuva Forte",
|
||||
"66-day": "Chuva Congelante",
|
||||
"66-night": "Freezing Rain",
|
||||
"67-day": "Freezing Rain",
|
||||
"67-night": "Freezing Rain",
|
||||
"66-night": "Chuva Congelante",
|
||||
"67-day": "Chuva Congelante",
|
||||
"67-night": "Chuva Congelante",
|
||||
"71-day": "Neve fraca",
|
||||
"71-night": "Light Snow",
|
||||
"71-night": "Neve Fraca",
|
||||
"73-day": "Neve",
|
||||
"73-night": "Snow",
|
||||
"73-night": "Neve",
|
||||
"75-day": "Neve forte",
|
||||
"75-night": "Heavy Snow",
|
||||
"75-night": "Neve Forte",
|
||||
"77-day": "Grãos de Neve",
|
||||
"77-night": "Snow Grains",
|
||||
"77-night": "Grãos de Neve",
|
||||
"80-day": "Neve fraca",
|
||||
"80-night": "Light Showers",
|
||||
"80-night": "Pancadas de Chuva Leves",
|
||||
"81-day": "Chuviscos",
|
||||
"81-night": "Showers",
|
||||
"81-night": "Pancadas de Chuva",
|
||||
"82-day": "Chuviscos fortes",
|
||||
"82-night": "Heavy Showers",
|
||||
"82-night": "Pancadas de Chuva Forte",
|
||||
"85-day": "Precipitação de Neve",
|
||||
"85-night": "Snow Showers",
|
||||
"86-day": "Snow Showers",
|
||||
"86-night": "Snow Showers",
|
||||
"85-night": "Pancadas de Neve",
|
||||
"86-day": "Pancadas de Neve",
|
||||
"86-night": "Pancadas de Neve",
|
||||
"95-day": "Trovoada",
|
||||
"95-night": "Thunderstorm",
|
||||
"95-night": "Tempestade Com Raios",
|
||||
"96-day": "Trovoada com granizo",
|
||||
"96-night": "Thunderstorm With Hail",
|
||||
"99-day": "Thunderstorm With Hail",
|
||||
"99-night": "Thunderstorm With Hail"
|
||||
"96-night": "Tempestade Com Raios e Granizo",
|
||||
"99-day": "Tempestade Com Raios e Granizo",
|
||||
"99-night": "Tempestade Com Raios e Granizo"
|
||||
},
|
||||
"homebridge": {
|
||||
"available_update": "Sistema",
|
||||
@@ -530,15 +530,15 @@
|
||||
"up_to_date": "Atualizado",
|
||||
"child_bridges": "Pontes Filhas",
|
||||
"child_bridges_status": "{{ok}}/{{total}}",
|
||||
"up": "Up",
|
||||
"pending": "Pending",
|
||||
"down": "Down"
|
||||
"up": "Ativo",
|
||||
"pending": "Pendente",
|
||||
"down": "Inativo"
|
||||
},
|
||||
"healthchecks": {
|
||||
"new": "Novo",
|
||||
"up": "Up",
|
||||
"up": "Ativo",
|
||||
"grace": "Em Período Gratuito",
|
||||
"down": "Down",
|
||||
"down": "Inativo",
|
||||
"paused": "Pausado",
|
||||
"status": "Status",
|
||||
"last_ping": "Ultimo Ping",
|
||||
@@ -550,26 +550,26 @@
|
||||
"containers_failed": "Falhou"
|
||||
},
|
||||
"autobrr": {
|
||||
"approvedPushes": "Approved",
|
||||
"approvedPushes": "Aprovado",
|
||||
"rejectedPushes": "Rejeitado",
|
||||
"filters": "Filtros",
|
||||
"indexers": "Indexers"
|
||||
"indexers": "Indexadores"
|
||||
},
|
||||
"tubearchivist": {
|
||||
"downloads": "Queue",
|
||||
"downloads": "Fila de espera",
|
||||
"videos": "Vídeos",
|
||||
"channels": "Canais",
|
||||
"playlists": "Listas"
|
||||
},
|
||||
"truenas": {
|
||||
"load": "Carga do sistema",
|
||||
"uptime": "Uptime",
|
||||
"alerts": "Alerts"
|
||||
"uptime": "Tempo ativo",
|
||||
"alerts": "Alertas"
|
||||
},
|
||||
"pyload": {
|
||||
"speed": "Velocidade",
|
||||
"active": "Active",
|
||||
"queue": "Queue",
|
||||
"active": "Ativo",
|
||||
"queue": "Fila de espera",
|
||||
"total": "Total"
|
||||
},
|
||||
"gluetun": {
|
||||
@@ -579,21 +579,21 @@
|
||||
"port_forwarded": "Porta Encaminhada"
|
||||
},
|
||||
"hdhomerun": {
|
||||
"channels": "Channels",
|
||||
"channels": "Canais",
|
||||
"hd": "HD",
|
||||
"tunerCount": "Sintonizadores",
|
||||
"channelNumber": "Canal",
|
||||
"channelNetwork": "Rede",
|
||||
"signalStrength": "Potência",
|
||||
"signalQuality": "Qualidade",
|
||||
"symbolQuality": "Quality",
|
||||
"symbolQuality": "Qualidade",
|
||||
"networkRate": "Bitrate",
|
||||
"clientIP": "Cliente"
|
||||
},
|
||||
"scrutiny": {
|
||||
"passed": "Aprovado",
|
||||
"failed": "Failed",
|
||||
"unknown": "Unknown"
|
||||
"failed": "Falhou",
|
||||
"unknown": "Desconhecido"
|
||||
},
|
||||
"paperlessngx": {
|
||||
"inbox": "Caixa de entrada",
|
||||
@@ -608,18 +608,18 @@
|
||||
"low_battery": "Bateria Fraca"
|
||||
},
|
||||
"nextdns": {
|
||||
"wait": "Please Wait",
|
||||
"wait": "Por favor, aguarde",
|
||||
"no_devices": "Nenhum dado do dispositivo recebido"
|
||||
},
|
||||
"mikrotik": {
|
||||
"cpuLoad": "Carga do CPU",
|
||||
"memoryUsed": "Memória Utilizada",
|
||||
"uptime": "Uptime",
|
||||
"uptime": "Tempo ativo",
|
||||
"numberOfLeases": "Concessões"
|
||||
},
|
||||
"xteve": {
|
||||
"streams_all": "Todos os Streams",
|
||||
"streams_active": "Active Streams",
|
||||
"streams_active": "Streams Ativas",
|
||||
"streams_xepg": "Canais XEPG"
|
||||
},
|
||||
"opendtu": {
|
||||
@@ -629,7 +629,7 @@
|
||||
"limit": "Limite"
|
||||
},
|
||||
"opnsense": {
|
||||
"cpu": "CPU Load",
|
||||
"cpu": "Carga do CPU",
|
||||
"memory": "Memória Ativa",
|
||||
"wanUpload": "Envio WAN",
|
||||
"wanDownload": "WAN Descarga"
|
||||
@@ -654,9 +654,9 @@
|
||||
"load": "Carga Média",
|
||||
"memory": "Uso de memória",
|
||||
"wanStatus": "Estado WAN",
|
||||
"up": "Up",
|
||||
"down": "Down",
|
||||
"temp": "Temp",
|
||||
"up": "Ativo",
|
||||
"down": "Inativo",
|
||||
"temp": "Temp.",
|
||||
"disk": "Uso do disco",
|
||||
"wanIP": "IP WAN"
|
||||
},
|
||||
@@ -667,49 +667,49 @@
|
||||
"memory_usage": "Memória"
|
||||
},
|
||||
"immich": {
|
||||
"users": "Users",
|
||||
"users": "Usuários",
|
||||
"photos": "Fotos",
|
||||
"videos": "Videos",
|
||||
"videos": "Vídeos",
|
||||
"storage": "Armazenamento"
|
||||
},
|
||||
"uptimekuma": {
|
||||
"up": "Sites no Ar",
|
||||
"down": "Sites Fora do Ar",
|
||||
"uptime": "Uptime",
|
||||
"uptime": "Tempo ativo",
|
||||
"incident": "Incidente",
|
||||
"m": "m"
|
||||
},
|
||||
"atsumeru": {
|
||||
"series": "Series",
|
||||
"series": "Séries",
|
||||
"archives": "Arquivos",
|
||||
"chapters": "Capítulos",
|
||||
"categories": "Categorias"
|
||||
},
|
||||
"komga": {
|
||||
"libraries": "Bibliotecas",
|
||||
"series": "Series",
|
||||
"books": "Books"
|
||||
"series": "Séries",
|
||||
"books": "Livros"
|
||||
},
|
||||
"diskstation": {
|
||||
"days": "Days",
|
||||
"uptime": "Uptime",
|
||||
"volumeAvailable": "Available"
|
||||
"days": "Dias",
|
||||
"uptime": "Tempo ativo",
|
||||
"volumeAvailable": "Disponível"
|
||||
},
|
||||
"mylar": {
|
||||
"series": "Series",
|
||||
"series": "Séries",
|
||||
"issues": "Problemas",
|
||||
"wanted": "Wanted"
|
||||
"wanted": "Desejado"
|
||||
},
|
||||
"photoprism": {
|
||||
"albums": "Albums",
|
||||
"photos": "Photos",
|
||||
"videos": "Videos",
|
||||
"albums": "Álbuns",
|
||||
"photos": "Fotos",
|
||||
"videos": "Vídeos",
|
||||
"people": "Pessoa"
|
||||
},
|
||||
"fileflows": {
|
||||
"queue": "Queue",
|
||||
"processing": "Processing",
|
||||
"processed": "Processed",
|
||||
"queue": "Fila de espera",
|
||||
"processing": "Processando",
|
||||
"processed": "Processado",
|
||||
"time": "Hora"
|
||||
},
|
||||
"firefly": {
|
||||
@@ -735,7 +735,7 @@
|
||||
"size": "Tamanho",
|
||||
"lastrun": "Ultima Execução",
|
||||
"nextrun": "Próxima Execução",
|
||||
"failed": "Failed"
|
||||
"failed": "Falhou"
|
||||
},
|
||||
"unmanic": {
|
||||
"active_workers": "Workers Ativos",
|
||||
@@ -752,20 +752,20 @@
|
||||
"targets_total": "Total de Alvos"
|
||||
},
|
||||
"gatus": {
|
||||
"up": "Sites Up",
|
||||
"down": "Sites Down",
|
||||
"uptime": "Uptime"
|
||||
"up": "Sites no Ar",
|
||||
"down": "Sites Fora do Ar",
|
||||
"uptime": "Tempo ativo"
|
||||
},
|
||||
"ghostfolio": {
|
||||
"gross_percent_today": "Today",
|
||||
"gross_percent_today": "Hoje",
|
||||
"gross_percent_1y": "Um ano",
|
||||
"gross_percent_max": "Todo o tempo"
|
||||
},
|
||||
"audiobookshelf": {
|
||||
"podcasts": "Podcasts",
|
||||
"books": "Books",
|
||||
"books": "Livros",
|
||||
"podcastsDuration": "Duração",
|
||||
"booksDuration": "Duration"
|
||||
"booksDuration": "Duração"
|
||||
},
|
||||
"homeassistant": {
|
||||
"people_home": "Pessoas em Casa",
|
||||
@@ -774,23 +774,23 @@
|
||||
},
|
||||
"whatsupdocker": {
|
||||
"monitoring": "Monitorando",
|
||||
"updates": "Updates"
|
||||
"updates": "Atualizações"
|
||||
},
|
||||
"calibreweb": {
|
||||
"books": "Books",
|
||||
"books": "Livros",
|
||||
"authors": "Autores",
|
||||
"categories": "Categories",
|
||||
"series": "Series"
|
||||
"categories": "Categorias",
|
||||
"series": "Séries"
|
||||
},
|
||||
"jdownloader": {
|
||||
"downloadCount": "Queue",
|
||||
"downloadBytesRemaining": "Remaining",
|
||||
"downloadTotalBytes": "Size",
|
||||
"downloadSpeed": "Speed"
|
||||
"downloadCount": "Fila de espera",
|
||||
"downloadBytesRemaining": "Restante",
|
||||
"downloadTotalBytes": "Tamanho",
|
||||
"downloadSpeed": "Velocidade"
|
||||
},
|
||||
"kavita": {
|
||||
"seriesCount": "Series",
|
||||
"totalFiles": "Files"
|
||||
"seriesCount": "Séries",
|
||||
"totalFiles": "Arquivos"
|
||||
},
|
||||
"azuredevops": {
|
||||
"result": "Resultado",
|
||||
@@ -798,21 +798,21 @@
|
||||
"buildId": "ID Compilação",
|
||||
"succeeded": "Bem-sucedido",
|
||||
"notStarted": "Não iniciado",
|
||||
"failed": "Failed",
|
||||
"failed": "Falhou",
|
||||
"canceled": "Cancelado",
|
||||
"inProgress": "Em Progresso",
|
||||
"totalPrs": "Total de PRs",
|
||||
"myPrs": "Minhas PRs",
|
||||
"approved": "Approved"
|
||||
"approved": "Aprovado"
|
||||
},
|
||||
"gamedig": {
|
||||
"status": "Status",
|
||||
"online": "Online",
|
||||
"offline": "Offline",
|
||||
"offline": "Desconectado",
|
||||
"name": "Nome",
|
||||
"map": "Mapa",
|
||||
"currentPlayers": "Jogadores atuais",
|
||||
"players": "Players",
|
||||
"players": "Jogadores",
|
||||
"maxPlayers": "Número Máximo de Jogadores",
|
||||
"bots": "Robôs",
|
||||
"ping": "Ping"
|
||||
@@ -825,39 +825,39 @@
|
||||
},
|
||||
"mealie": {
|
||||
"recipes": "Receitas",
|
||||
"users": "Users",
|
||||
"categories": "Categories",
|
||||
"users": "Usuários",
|
||||
"categories": "Categorias",
|
||||
"tags": "Marcadores"
|
||||
},
|
||||
"openmediavault": {
|
||||
"downloading": "Baixando",
|
||||
"total": "Total",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"passed": "Passed",
|
||||
"failed": "Failed"
|
||||
"running": "Executando",
|
||||
"stopped": "Parado",
|
||||
"passed": "Aprovado",
|
||||
"failed": "Falhou"
|
||||
},
|
||||
"openwrt": {
|
||||
"uptime": "Uptime",
|
||||
"uptime": "Tempo ativo",
|
||||
"cpuLoad": "Carga da CPU média (5m)",
|
||||
"up": "Up",
|
||||
"down": "Down",
|
||||
"up": "Ativo",
|
||||
"down": "Inativo",
|
||||
"bytesTx": "Transmitido",
|
||||
"bytesRx": "Received"
|
||||
"bytesRx": "Recebido"
|
||||
},
|
||||
"uptimerobot": {
|
||||
"status": "Status",
|
||||
"uptime": "Uptime",
|
||||
"uptime": "Tempo ativo",
|
||||
"lastDown": "Última inatividade",
|
||||
"downDuration": "Duração de inatividade",
|
||||
"sitesUp": "Sites Up",
|
||||
"sitesDown": "Sites Down",
|
||||
"paused": "Paused",
|
||||
"sitesUp": "Sites no Ar",
|
||||
"sitesDown": "Sites Fora do Ar",
|
||||
"paused": "Pausado",
|
||||
"notyetchecked": "Não conferidos ainda",
|
||||
"up": "Up",
|
||||
"up": "Ativo",
|
||||
"seemsdown": "Parece Desconectado",
|
||||
"down": "Down",
|
||||
"unknown": "Unknown"
|
||||
"down": "Inativo",
|
||||
"unknown": "Desconhecido"
|
||||
},
|
||||
"calendar": {
|
||||
"inCinemas": "Nos cinemas",
|
||||
@@ -876,10 +876,10 @@
|
||||
"totalfilesize": "Tamanho total"
|
||||
},
|
||||
"mailcow": {
|
||||
"domains": "Domains",
|
||||
"domains": "Domínios",
|
||||
"mailboxes": "Caixas de e-mail",
|
||||
"mails": "Mensagens",
|
||||
"storage": "Storage"
|
||||
"storage": "Armazenamento"
|
||||
},
|
||||
"netdata": {
|
||||
"warnings": "Alertas",
|
||||
@@ -888,12 +888,12 @@
|
||||
"plantit": {
|
||||
"events": "Eventos",
|
||||
"plants": "Plantas",
|
||||
"photos": "Photos",
|
||||
"photos": "Fotos",
|
||||
"species": "Espécies"
|
||||
},
|
||||
"gitea": {
|
||||
"notifications": "Notificações",
|
||||
"issues": "Issues",
|
||||
"issues": "Problemas",
|
||||
"pulls": "Solicitações de Envio",
|
||||
"repositories": "Repositórios"
|
||||
},
|
||||
@@ -909,13 +909,13 @@
|
||||
"galleries": "Galerias",
|
||||
"performers": "Atores",
|
||||
"studios": "Estúdios",
|
||||
"movies": "Movies",
|
||||
"tags": "Tags",
|
||||
"movies": "Filmes",
|
||||
"tags": "Etiquetas",
|
||||
"oCount": "Contagem 0"
|
||||
},
|
||||
"tandoor": {
|
||||
"users": "Users",
|
||||
"recipes": "Recipes",
|
||||
"users": "Usuários",
|
||||
"recipes": "Receitas",
|
||||
"keywords": "Palavras-chave"
|
||||
},
|
||||
"homebox": {
|
||||
@@ -923,17 +923,17 @@
|
||||
"totalWithWarranty": "Com Garantia",
|
||||
"locations": "Localização",
|
||||
"labels": "Rótulos",
|
||||
"users": "Users",
|
||||
"users": "Usuários",
|
||||
"totalValue": "Valor Total"
|
||||
},
|
||||
"crowdsec": {
|
||||
"alerts": "Alerts",
|
||||
"alerts": "Alertas",
|
||||
"bans": "Banimentos"
|
||||
},
|
||||
"wgeasy": {
|
||||
"connected": "Connected",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled",
|
||||
"connected": "Conectado",
|
||||
"enabled": "Ativo",
|
||||
"disabled": "Desativado",
|
||||
"total": "Total"
|
||||
},
|
||||
"swagdashboard": {
|
||||
@@ -944,8 +944,8 @@
|
||||
},
|
||||
"myspeed": {
|
||||
"ping": "Ping",
|
||||
"download": "Download",
|
||||
"upload": "Upload"
|
||||
"download": "Baixar",
|
||||
"upload": "Enviar"
|
||||
},
|
||||
"stocks": {
|
||||
"stocks": "Ações",
|
||||
@@ -956,17 +956,17 @@
|
||||
},
|
||||
"frigate": {
|
||||
"cameras": "Câmeras",
|
||||
"uptime": "Uptime",
|
||||
"version": "Version"
|
||||
"uptime": "Tempo ativo",
|
||||
"version": "Versão"
|
||||
},
|
||||
"linkwarden": {
|
||||
"links": "Links",
|
||||
"collections": "Coleções",
|
||||
"tags": "Tags"
|
||||
"tags": "Etiquetas"
|
||||
},
|
||||
"zabbix": {
|
||||
"unclassified": "Não classificado",
|
||||
"information": "Information",
|
||||
"information": "Informação",
|
||||
"warning": "Aviso",
|
||||
"average": "Médio",
|
||||
"high": "Alto",
|
||||
@@ -987,24 +987,24 @@
|
||||
"tasksInProgress": "Tarefas em Andamento"
|
||||
},
|
||||
"headscale": {
|
||||
"name": "Name",
|
||||
"address": "Address",
|
||||
"last_seen": "Last Seen",
|
||||
"name": "Nome",
|
||||
"address": "Endereço",
|
||||
"last_seen": "Visto por último",
|
||||
"status": "Status",
|
||||
"online": "Online",
|
||||
"offline": "Offline"
|
||||
"offline": "Desconectado"
|
||||
},
|
||||
"beszel": {
|
||||
"name": "Name",
|
||||
"name": "Nome",
|
||||
"systems": "Sistemas",
|
||||
"up": "Up",
|
||||
"down": "Down",
|
||||
"paused": "Paused",
|
||||
"pending": "Pending",
|
||||
"up": "Ativo",
|
||||
"down": "Inativo",
|
||||
"paused": "Pausado",
|
||||
"pending": "Pendente",
|
||||
"status": "Status",
|
||||
"updated": "Updated",
|
||||
"updated": "Atualizado",
|
||||
"cpu": "CPU",
|
||||
"memory": "MEM",
|
||||
"memory": "MEM.",
|
||||
"disk": "Disco",
|
||||
"network": "Rede"
|
||||
},
|
||||
@@ -1012,26 +1012,26 @@
|
||||
"apps": "Aplicativos",
|
||||
"synced": "Sincronizado",
|
||||
"outOfSync": "Fora de sincronia",
|
||||
"healthy": "Healthy",
|
||||
"healthy": "Saudável",
|
||||
"degraded": "Degradado",
|
||||
"progressing": "Progredindo",
|
||||
"missing": "Missing",
|
||||
"missing": "Faltando",
|
||||
"suspended": "Suspenso"
|
||||
},
|
||||
"spoolman": {
|
||||
"loading": "Loading"
|
||||
"loading": "Carregando"
|
||||
},
|
||||
"gitlab": {
|
||||
"groups": "Grupos",
|
||||
"issues": "Issues",
|
||||
"issues": "Problemas",
|
||||
"merges": "Solicitações de mesclagem",
|
||||
"projects": "Projetos"
|
||||
},
|
||||
"apcups": {
|
||||
"status": "Status",
|
||||
"load": "Load",
|
||||
"bcharge": "Battery Charge",
|
||||
"timeleft": "Time Left"
|
||||
"load": "Carga",
|
||||
"bcharge": "Carga da Bateria",
|
||||
"timeleft": "Tempo Restante"
|
||||
},
|
||||
"karakeep": {
|
||||
"bookmarks": "Marcadores",
|
||||
@@ -1039,23 +1039,23 @@
|
||||
"archived": "Arquivados",
|
||||
"highlights": "Destaques",
|
||||
"lists": "Listas",
|
||||
"tags": "Tags"
|
||||
"tags": "Etiquetas"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"slskStatus": "Rede",
|
||||
"connected": "Conectado",
|
||||
"disconnected": "Desconectado",
|
||||
"updateStatus": "Atualize",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"update_yes": "Disponível",
|
||||
"update_no": "Atualizado",
|
||||
"downloads": "Transferências",
|
||||
"uploads": "Envios",
|
||||
"sharedFiles": "Files"
|
||||
"sharedFiles": "Arquivos"
|
||||
},
|
||||
"jellystat": {
|
||||
"songs": "Songs",
|
||||
"movies": "Movies",
|
||||
"episodes": "Episodes",
|
||||
"songs": "Músicas",
|
||||
"movies": "Filmes",
|
||||
"episodes": "Episódios",
|
||||
"other": "Outro"
|
||||
},
|
||||
"checkmk": {
|
||||
@@ -1064,60 +1064,60 @@
|
||||
},
|
||||
"komodo": {
|
||||
"total": "Total",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"down": "Down",
|
||||
"unhealthy": "Unhealthy",
|
||||
"unknown": "Unknown",
|
||||
"servers": "Servers",
|
||||
"stacks": "Stacks",
|
||||
"containers": "Containers"
|
||||
"running": "Executando",
|
||||
"stopped": "Parado",
|
||||
"down": "Inativo",
|
||||
"unhealthy": "Não-saudável",
|
||||
"unknown": "Desconhecido",
|
||||
"servers": "Servidores",
|
||||
"stacks": "Pilhas",
|
||||
"containers": "Contêineres"
|
||||
},
|
||||
"filebrowser": {
|
||||
"available": "Available",
|
||||
"used": "Used",
|
||||
"available": "Disponível",
|
||||
"used": "Utilizado",
|
||||
"total": "Total"
|
||||
},
|
||||
"wallos": {
|
||||
"activeSubscriptions": "Subscriptions",
|
||||
"thisMonthlyCost": "This Month",
|
||||
"nextMonthlyCost": "Next Month",
|
||||
"previousMonthlyCost": "Prev. Month",
|
||||
"nextRenewingSubscription": "Next Payment"
|
||||
"activeSubscriptions": "Assinaturas",
|
||||
"thisMonthlyCost": "Este Mês",
|
||||
"nextMonthlyCost": "Próximo Mês",
|
||||
"previousMonthlyCost": "Mês Anterior",
|
||||
"nextRenewingSubscription": "Próximo Pagamento"
|
||||
},
|
||||
"unraid": {
|
||||
"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",
|
||||
"STARTED": "Iniciado",
|
||||
"STOPPED": "Parado",
|
||||
"NEW_ARRAY": "Nova Array",
|
||||
"RECON_DISK": "Reconstruindo Disco",
|
||||
"DISABLE_DISK": "Disco Desativado",
|
||||
"SWAP_DSBL": "Swap Desabilitado",
|
||||
"INVALID_EXPANSION": "Expansão Inválida",
|
||||
"PARITY_NOT_BIGGEST": "Paridade Não É O Maior Disco",
|
||||
"TOO_MANY_MISSING_DISKS": "Muitos Discos Ausentes",
|
||||
"NEW_DISK_TOO_SMALL": "Novo Disco É Muito Pequeno",
|
||||
"NO_DATA_DISKS": "Sem Discos de Dados",
|
||||
"notifications": "Notificações",
|
||||
"status": "Status",
|
||||
"cpu": "CPU",
|
||||
"memoryUsed": "Memory Used",
|
||||
"memoryAvailable": "Memory Available",
|
||||
"arrayUsed": "Array Used",
|
||||
"arrayFree": "Array Free",
|
||||
"poolUsed": "{{pool}} Used",
|
||||
"poolFree": "{{pool}} Free"
|
||||
"memoryUsed": "Memória Utilizada",
|
||||
"memoryAvailable": "Memória Disponível",
|
||||
"arrayUsed": "Array Utilizado",
|
||||
"arrayFree": "Array Disponível",
|
||||
"poolUsed": "{{pool}} Utilizado",
|
||||
"poolFree": "{{pool}} Livre"
|
||||
},
|
||||
"backrest": {
|
||||
"num_plans": "Plans",
|
||||
"num_success_30": "Successes",
|
||||
"num_failure_30": "Failures",
|
||||
"num_success_latest": "Succeeding",
|
||||
"num_failure_latest": "Failing",
|
||||
"bytes_added_30": "Bytes Added"
|
||||
"num_plans": "Planos",
|
||||
"num_success_30": "Sucessos",
|
||||
"num_failure_30": "Falhas",
|
||||
"num_success_latest": "Executando com sucesso",
|
||||
"num_failure_latest": "Falhando",
|
||||
"bytes_added_30": "Bytes Adicionados"
|
||||
},
|
||||
"yourspotify": {
|
||||
"songs": "Songs",
|
||||
"time": "Time",
|
||||
"artists": "Artists"
|
||||
"songs": "Músicas",
|
||||
"time": "Tempo",
|
||||
"artists": "Artistas"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,750 +0,0 @@
|
||||
{
|
||||
"widget": {
|
||||
"missing_type": "缺少小部件类型:{{type}}",
|
||||
"api_error": "API错误",
|
||||
"status": "状态",
|
||||
"information": "信息",
|
||||
"url": "URL",
|
||||
"raw_error": "原始错误",
|
||||
"response_data": "返回数据"
|
||||
},
|
||||
"search": {
|
||||
"placeholder": "搜索…"
|
||||
},
|
||||
"resources": {
|
||||
"total": "总计",
|
||||
"free": "空闲",
|
||||
"used": "已用",
|
||||
"load": "负载",
|
||||
"cpu": "处理器",
|
||||
"mem": "内存",
|
||||
"temp": "温度",
|
||||
"max": "最大",
|
||||
"uptime": "运行时间",
|
||||
"months": "月",
|
||||
"days": "天",
|
||||
"hours": "时",
|
||||
"minutes": "分"
|
||||
},
|
||||
"docker": {
|
||||
"rx": "接收",
|
||||
"tx": "发送",
|
||||
"mem": "内存",
|
||||
"cpu": "处理器",
|
||||
"offline": "离线",
|
||||
"error": "错误",
|
||||
"unknown": "未知问题",
|
||||
"starting": "启动中",
|
||||
"unhealthy": "不健康的",
|
||||
"not_found": "未找到",
|
||||
"running": "运行中",
|
||||
"exited": "已退出",
|
||||
"partial": "部分",
|
||||
"healthy": "健康的"
|
||||
},
|
||||
"emby": {
|
||||
"playing": "播放中",
|
||||
"transcoding": "转码",
|
||||
"bitrate": "比特率",
|
||||
"no_active": "暂无播放",
|
||||
"movies": "电影",
|
||||
"series": "系列",
|
||||
"episodes": "剧集",
|
||||
"songs": "歌曲"
|
||||
},
|
||||
"tautulli": {
|
||||
"playing": "播放中",
|
||||
"transcoding": "转码",
|
||||
"bitrate": "比特率",
|
||||
"no_active": "暂无播放",
|
||||
"plex_connection_error": "Check Plex Connection"
|
||||
},
|
||||
"rutorrent": {
|
||||
"active": "活动中",
|
||||
"upload": "上传",
|
||||
"download": "下载"
|
||||
},
|
||||
"sonarr": {
|
||||
"wanted": "想看",
|
||||
"queued": "排队",
|
||||
"series": "系列",
|
||||
"queue": "Queue",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"radarr": {
|
||||
"wanted": "想看",
|
||||
"queued": "队列",
|
||||
"movies": "电影",
|
||||
"missing": "丢失",
|
||||
"queue": "Queue",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"readarr": {
|
||||
"wanted": "订阅",
|
||||
"queued": "队列",
|
||||
"books": "书籍"
|
||||
},
|
||||
"ombi": {
|
||||
"pending": "待办的",
|
||||
"approved": "已批准",
|
||||
"available": "可用的"
|
||||
},
|
||||
"jellyseerr": {
|
||||
"pending": "待办的",
|
||||
"approved": "得到正式认可的",
|
||||
"available": "可用的"
|
||||
},
|
||||
"pihole": {
|
||||
"queries": "查询",
|
||||
"blocked": "阻止",
|
||||
"gravity": "重力",
|
||||
"blocked_percent": "拦截 %"
|
||||
},
|
||||
"speedtest": {
|
||||
"upload": "上传",
|
||||
"download": "下载",
|
||||
"ping": "ping"
|
||||
},
|
||||
"portainer": {
|
||||
"running": "运行中",
|
||||
"stopped": "停止",
|
||||
"total": "总计"
|
||||
},
|
||||
"traefik": {
|
||||
"routers": "路由器",
|
||||
"services": "服务",
|
||||
"middleware": "中间件"
|
||||
},
|
||||
"npm": {
|
||||
"enabled": "已启用",
|
||||
"disabled": "禁用",
|
||||
"total": "全部的"
|
||||
},
|
||||
"weather": {
|
||||
"current": "当前定位",
|
||||
"allow": "点击并允许",
|
||||
"updating": "更新中",
|
||||
"wait": "请稍候"
|
||||
},
|
||||
"overseerr": {
|
||||
"pending": "待办",
|
||||
"approved": "已批准",
|
||||
"available": "可用",
|
||||
"processing": "处理中"
|
||||
},
|
||||
"sabnzbd": {
|
||||
"rate": "速率",
|
||||
"queue": "队列",
|
||||
"timeleft": "剩余时间"
|
||||
},
|
||||
"nzbget": {
|
||||
"rate": "速率",
|
||||
"remaining": "剩余",
|
||||
"downloaded": "下载"
|
||||
},
|
||||
"coinmarketcap": {
|
||||
"configure": "配置一个或多个需要追踪的加密",
|
||||
"1hour": "1小时",
|
||||
"1day": "1天",
|
||||
"7days": "7天",
|
||||
"30days": "30天"
|
||||
},
|
||||
"gotify": {
|
||||
"apps": "应用",
|
||||
"clients": "客户端",
|
||||
"messages": "信息"
|
||||
},
|
||||
"prowlarr": {
|
||||
"enableIndexers": "索引器",
|
||||
"numberOfGrabs": "抓取",
|
||||
"numberOfQueries": "查询",
|
||||
"numberOfFailGrabs": "抓取失败",
|
||||
"numberOfFailQueries": "查询失败"
|
||||
},
|
||||
"transmission": {
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"leech": "下载中",
|
||||
"seed": "做种"
|
||||
},
|
||||
"jackett": {
|
||||
"configured": "已配置",
|
||||
"errored": "出错了"
|
||||
},
|
||||
"bazarr": {
|
||||
"missingEpisodes": "缺少的剧集",
|
||||
"missingMovies": "缺少的电影"
|
||||
},
|
||||
"lidarr": {
|
||||
"wanted": "订阅",
|
||||
"queued": "队列",
|
||||
"artists": "Artists"
|
||||
},
|
||||
"adguard": {
|
||||
"queries": "查询",
|
||||
"blocked": "阻止",
|
||||
"filtered": "过滤",
|
||||
"latency": "延迟"
|
||||
},
|
||||
"qbittorrent": {
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"leech": "下载中",
|
||||
"seed": "做种"
|
||||
},
|
||||
"mastodon": {
|
||||
"user_count": "用户",
|
||||
"status_count": "帖子",
|
||||
"domain_count": "域"
|
||||
},
|
||||
"strelaysrv": {
|
||||
"numActiveSessions": "会话",
|
||||
"dataRelayed": "中继",
|
||||
"numConnections": "连接",
|
||||
"transferRate": "速度"
|
||||
},
|
||||
"authentik": {
|
||||
"users": "用户",
|
||||
"loginsLast24H": "登录 (24h)",
|
||||
"failedLoginsLast24H": "登录失败 (24h)"
|
||||
},
|
||||
"proxmox": {
|
||||
"mem": "内存",
|
||||
"cpu": "处理器",
|
||||
"lxc": "容器",
|
||||
"vms": "虚拟机"
|
||||
},
|
||||
"unifi": {
|
||||
"users": "用户",
|
||||
"uptime": "系统运行时间",
|
||||
"days": "天",
|
||||
"wan": "广域网",
|
||||
"lan_users": "局域网用户",
|
||||
"wlan_users": "无线局域网用户",
|
||||
"up": "向上",
|
||||
"down": "向下",
|
||||
"wait": "请稍候",
|
||||
"lan": "局域网",
|
||||
"wlan": "无线局域网",
|
||||
"devices": "设备",
|
||||
"lan_devices": "局域网设备",
|
||||
"wlan_devices": "无线局域网设备",
|
||||
"empty_data": "子系统状态未知"
|
||||
},
|
||||
"plex": {
|
||||
"streams": "活动流",
|
||||
"movies": "电影",
|
||||
"tv": "电视节目",
|
||||
"albums": "专辑"
|
||||
},
|
||||
"glances": {
|
||||
"cpu": "处理器",
|
||||
"wait": "请稍等",
|
||||
"temp": "温度",
|
||||
"uptime": "运行时间",
|
||||
"days": "天",
|
||||
"hours": "时",
|
||||
"load": "Load",
|
||||
"warn": "Warn",
|
||||
"total": "Total",
|
||||
"free": "Free",
|
||||
"used": "Used",
|
||||
"crit": "Crit",
|
||||
"read": "Read",
|
||||
"write": "Write",
|
||||
"gpu": "GPU",
|
||||
"mem": "Mem",
|
||||
"swap": "Swap",
|
||||
"_temp": "Temp"
|
||||
},
|
||||
"changedetectionio": {
|
||||
"totalObserved": "观察到的总数",
|
||||
"diffsDetected": "检测到差异"
|
||||
},
|
||||
"wmo": {
|
||||
"0-day": "晴天",
|
||||
"0-night": "晴朗",
|
||||
"1-day": "主要是晴天",
|
||||
"3-day": "阴天",
|
||||
"3-night": "阴天",
|
||||
"45-day": "有雾",
|
||||
"48-day": "有雾",
|
||||
"51-day": "小雨",
|
||||
"73-night": "中雪",
|
||||
"75-day": "大雪",
|
||||
"1-night": "大部晴朗",
|
||||
"2-day": "多云",
|
||||
"2-night": "多云",
|
||||
"45-night": "有雾",
|
||||
"48-night": "有雾",
|
||||
"51-night": "小雨",
|
||||
"53-day": "小雨",
|
||||
"53-night": "小雨",
|
||||
"55-day": "毛毛雨",
|
||||
"55-night": "毛毛雨",
|
||||
"56-day": "小冻毛雨",
|
||||
"56-night": "小冻毛雨",
|
||||
"57-day": "冻毛雨",
|
||||
"57-night": "冻毛雨",
|
||||
"61-day": "小雨",
|
||||
"61-night": "小雨",
|
||||
"63-day": "雨",
|
||||
"63-night": "雨",
|
||||
"65-day": "大雨",
|
||||
"65-night": "大雨",
|
||||
"66-day": "冻雨",
|
||||
"66-night": "冻雨",
|
||||
"67-day": "冻雨",
|
||||
"67-night": "冻雨",
|
||||
"71-day": "小雪",
|
||||
"71-night": "小雪",
|
||||
"73-day": "中雪",
|
||||
"75-night": "大雪",
|
||||
"77-day": "雪粒",
|
||||
"77-night": "雪粒",
|
||||
"80-day": "微阵雨",
|
||||
"80-night": "微阵雨",
|
||||
"81-day": "阵雨",
|
||||
"81-night": "阵雨",
|
||||
"82-day": "强阵雨",
|
||||
"82-night": "强阵雨",
|
||||
"85-day": "阵雪",
|
||||
"85-night": "阵雪",
|
||||
"86-day": "阵雪",
|
||||
"86-night": "阵雪",
|
||||
"95-day": "雷雨",
|
||||
"95-night": "雷雨",
|
||||
"96-day": "雷雨伴随冰雹",
|
||||
"96-night": "雷雨伴随冰雹",
|
||||
"99-day": "雷雨伴随冰雹",
|
||||
"99-night": "雷雨伴随冰雹"
|
||||
},
|
||||
"quicklaunch": {
|
||||
"bookmark": "书签",
|
||||
"service": "服务",
|
||||
"search": "搜索",
|
||||
"custom": "自定",
|
||||
"visit": "访问",
|
||||
"url": "网址"
|
||||
},
|
||||
"homebridge": {
|
||||
"available_update": "System",
|
||||
"updates": "更新",
|
||||
"update_available": "有可用的更新",
|
||||
"up_to_date": "Up to Date",
|
||||
"child_bridges": "子网桥",
|
||||
"child_bridges_status": "{{ok}}/{{total}}",
|
||||
"up": "Up",
|
||||
"pending": "待定中",
|
||||
"down": "Down"
|
||||
},
|
||||
"autobrr": {
|
||||
"approvedPushes": "已核准",
|
||||
"rejectedPushes": "拒绝",
|
||||
"filters": "Filters",
|
||||
"indexers": "索引器"
|
||||
},
|
||||
"watchtower": {
|
||||
"containers_scanned": "已扫描",
|
||||
"containers_updated": "已升级",
|
||||
"containers_failed": "失败"
|
||||
},
|
||||
"tubearchivist": {
|
||||
"downloads": "队列",
|
||||
"videos": "影片",
|
||||
"channels": "频道",
|
||||
"playlists": "播放清单"
|
||||
},
|
||||
"truenas": {
|
||||
"load": "系统负载",
|
||||
"uptime": "运行时间",
|
||||
"alerts": "警报",
|
||||
"time": "{{value, number(style: unit; unitDisplay: long;)}}"
|
||||
},
|
||||
"navidrome": {
|
||||
"nothing_streaming": "暂无播放",
|
||||
"please_wait": "请等待"
|
||||
},
|
||||
"pyload": {
|
||||
"speed": "速度",
|
||||
"active": "Active",
|
||||
"queue": "队列",
|
||||
"total": "Total"
|
||||
},
|
||||
"gluetun": {
|
||||
"public_ip": "公网 IP",
|
||||
"region": "区域",
|
||||
"country": "国家"
|
||||
},
|
||||
"hdhomerun": {
|
||||
"channels": "频道",
|
||||
"hd": "HD"
|
||||
},
|
||||
"ping": {
|
||||
"error": "错误",
|
||||
"ping": "Ping",
|
||||
"up": "Up",
|
||||
"down": "Down"
|
||||
},
|
||||
"scrutiny": {
|
||||
"passed": "通过",
|
||||
"failed": "失败",
|
||||
"unknown": "未知的"
|
||||
},
|
||||
"paperlessngx": {
|
||||
"inbox": "收件箱",
|
||||
"total": "Total"
|
||||
},
|
||||
"deluge": {
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"leech": "下载中",
|
||||
"seed": "做种"
|
||||
},
|
||||
"flood": {
|
||||
"leech": "下载中",
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"seed": "做种"
|
||||
},
|
||||
"tdarr": {
|
||||
"saved": "已保存",
|
||||
"queue": "队列",
|
||||
"processed": "已处理",
|
||||
"errored": "出错"
|
||||
},
|
||||
"miniflux": {
|
||||
"read": "已读",
|
||||
"unread": "未读"
|
||||
},
|
||||
"nextdns": {
|
||||
"wait": "请稍候",
|
||||
"no_devices": "没有接收到设备数据"
|
||||
},
|
||||
"common": {
|
||||
"bibyterate": "{{value, rate(bits: false; binary: true)}}",
|
||||
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
|
||||
},
|
||||
"omada": {
|
||||
"connectedAp": "连接中的AP",
|
||||
"activeUser": "活跃设备",
|
||||
"alerts": "警报",
|
||||
"connectedGateway": "已连接网关",
|
||||
"connectedSwitches": "已连接开关"
|
||||
},
|
||||
"downloadstation": {
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"leech": "下载中",
|
||||
"seed": "做种"
|
||||
},
|
||||
"mikrotik": {
|
||||
"cpuLoad": "处理器",
|
||||
"memoryUsed": "内存",
|
||||
"uptime": "运行时间",
|
||||
"numberOfLeases": "租约"
|
||||
},
|
||||
"xteve": {
|
||||
"streams_all": "所有播放活动",
|
||||
"streams_active": "正在播放",
|
||||
"streams_xepg": "XEPG 频道"
|
||||
},
|
||||
"opnsense": {
|
||||
"cpu": "处理器",
|
||||
"memory": "内存",
|
||||
"wanUpload": "WAN上传",
|
||||
"wanDownload": "WAN下载"
|
||||
},
|
||||
"moonraker": {
|
||||
"printer_state": "打印机状态",
|
||||
"print_status": "打印状态",
|
||||
"print_progress": "打印进程",
|
||||
"layers": "层"
|
||||
},
|
||||
"medusa": {
|
||||
"wanted": "关注中",
|
||||
"queued": "已加入队列",
|
||||
"series": "Series"
|
||||
},
|
||||
"octoprint": {
|
||||
"printer_state": "打印机状态",
|
||||
"temp_tool": "喷头温度",
|
||||
"temp_bed": "平台温度",
|
||||
"job_completion": "完成度"
|
||||
},
|
||||
"cloudflared": {
|
||||
"origin_ip": "源IP",
|
||||
"status": "状态"
|
||||
},
|
||||
"proxmoxbackupserver": {
|
||||
"datastore_usage": "数据存储",
|
||||
"failed_tasks_24h": "24h失败任务",
|
||||
"cpu_usage": "处理器",
|
||||
"memory_usage": "内存"
|
||||
},
|
||||
"immich": {
|
||||
"users": "使用者",
|
||||
"photos": "照片",
|
||||
"videos": "影片",
|
||||
"storage": "储存空间"
|
||||
},
|
||||
"uptimekuma": {
|
||||
"up": "在线网站",
|
||||
"down": "离线网站",
|
||||
"uptime": "运行时间",
|
||||
"incident": "严重事件",
|
||||
"m": "m"
|
||||
},
|
||||
"komga": {
|
||||
"libraries": "书库",
|
||||
"series": "系列",
|
||||
"books": "书刊"
|
||||
},
|
||||
"mylar": {
|
||||
"series": "系列",
|
||||
"issues": "问题",
|
||||
"wanted": "关注中"
|
||||
},
|
||||
"photoprism": {
|
||||
"albums": "相册",
|
||||
"photos": "照片",
|
||||
"videos": "视频",
|
||||
"people": "人物"
|
||||
},
|
||||
"diskstation": {
|
||||
"uptime": "运行时间",
|
||||
"volumeAvailable": "剩余存储",
|
||||
"days": "天"
|
||||
},
|
||||
"fileflows": {
|
||||
"queue": "队列",
|
||||
"processing": "处理中",
|
||||
"processed": "已处理",
|
||||
"time": "时间"
|
||||
},
|
||||
"grafana": {
|
||||
"totalalerts": "警报总数",
|
||||
"dashboards": "控制面板",
|
||||
"datasources": "数据来源",
|
||||
"alertstriggered": "触发的警报"
|
||||
},
|
||||
"nextcloud": {
|
||||
"cpuload": "处理器",
|
||||
"memoryusage": "内存",
|
||||
"freespace": "剩余空间",
|
||||
"activeusers": "活跃用户",
|
||||
"numfiles": "Files",
|
||||
"numshares": "共享项目"
|
||||
},
|
||||
"kopia": {
|
||||
"status": "状态",
|
||||
"size": "大小",
|
||||
"lastrun": "最后运行",
|
||||
"nextrun": "下次运行",
|
||||
"failed": "失败"
|
||||
},
|
||||
"unmanic": {
|
||||
"active_workers": "在线工作节点",
|
||||
"total_workers": "工作节点总数",
|
||||
"records_total": "队列长度"
|
||||
},
|
||||
"healthchecks": {
|
||||
"new": "新建立",
|
||||
"up": "在线的",
|
||||
"grace": "延缓中",
|
||||
"down": "离线",
|
||||
"paused": "暂停",
|
||||
"status": "状态",
|
||||
"last_ping": "上次检查",
|
||||
"never": "尚未检查"
|
||||
},
|
||||
"pterodactyl": {
|
||||
"servers": "服务器",
|
||||
"nodes": "节点"
|
||||
},
|
||||
"prometheus": {
|
||||
"targets_up": "目标上线",
|
||||
"targets_down": "目标在线",
|
||||
"targets_total": "总目标"
|
||||
},
|
||||
"minecraft": {
|
||||
"players": "玩家",
|
||||
"version": "版本",
|
||||
"status": "状态",
|
||||
"up": "在线的",
|
||||
"down": "离线"
|
||||
},
|
||||
"ghostfolio": {
|
||||
"gross_percent_today": "今天",
|
||||
"gross_percent_1y": "一年",
|
||||
"gross_percent_max": "所有时间"
|
||||
},
|
||||
"audiobookshelf": {
|
||||
"podcasts": "播客",
|
||||
"books": "图书",
|
||||
"podcastsDuration": "持续时间",
|
||||
"booksDuration": "持续时间"
|
||||
},
|
||||
"homeassistant": {
|
||||
"people_home": "房间",
|
||||
"lights_on": "照明开",
|
||||
"switches_on": "开关开"
|
||||
},
|
||||
"freshrss": {
|
||||
"subscriptions": "订阅",
|
||||
"unread": "未读"
|
||||
},
|
||||
"channelsdvrserver": {
|
||||
"shows": "节目",
|
||||
"recordings": "录像",
|
||||
"scheduled": "已计划的",
|
||||
"passes": "通行证"
|
||||
},
|
||||
"whatsupdocker": {
|
||||
"monitoring": "监测中",
|
||||
"updates": "可更新"
|
||||
},
|
||||
"tailscale": {
|
||||
"address": "地址",
|
||||
"expires": "失效",
|
||||
"never": "从不",
|
||||
"last_seen": "最后上线",
|
||||
"days": "{{number}}d",
|
||||
"hours": "{{number}}h",
|
||||
"minutes": "{{number}}m",
|
||||
"seconds": "{{number}}s",
|
||||
"ago": "{{value}} 以前",
|
||||
"now": "现在",
|
||||
"years": "{{number}}年",
|
||||
"weeks": "{{number}}周"
|
||||
},
|
||||
"qnap": {
|
||||
"cpuUsage": "处理器",
|
||||
"memUsage": "内存",
|
||||
"systemTempC": "系统温度",
|
||||
"poolUsage": "存储池",
|
||||
"volumeUsage": "Volume Usage",
|
||||
"invalid": "Invalid"
|
||||
},
|
||||
"pfsense": {
|
||||
"load": "平均负载",
|
||||
"memory": "内存",
|
||||
"wanStatus": "WAN 状态",
|
||||
"up": "上传",
|
||||
"down": "下载",
|
||||
"temp": "温度",
|
||||
"disk": "磁盘",
|
||||
"wanIP": "WAN IP"
|
||||
},
|
||||
"caddy": {
|
||||
"upstreams": "上游",
|
||||
"requests": "当前请求",
|
||||
"requests_failed": "失败请求"
|
||||
},
|
||||
"evcc": {
|
||||
"pv_power": "正式环境",
|
||||
"battery_soc": "Battery",
|
||||
"grid_power": "Grid",
|
||||
"home_power": "Consumption",
|
||||
"charge_power": "Charger",
|
||||
"watt_hour": "Wh"
|
||||
},
|
||||
"pialert": {
|
||||
"total": "Total",
|
||||
"connected": "Connected",
|
||||
"new_devices": "New Devices",
|
||||
"down_alerts": "Down Alerts"
|
||||
},
|
||||
"jdownloader": {
|
||||
"downloadCount": "Queue Count",
|
||||
"downloadSpeed": "Download Speed",
|
||||
"downloadBytesRemaining": "Remaining",
|
||||
"downloadTotalBytes": "Size"
|
||||
},
|
||||
"kavita": {
|
||||
"seriesCount": "系列",
|
||||
"totalFiles": "文件"
|
||||
},
|
||||
"gamedig": {
|
||||
"name": "Name",
|
||||
"map": "Map",
|
||||
"currentPlayers": "Current players",
|
||||
"players": "Players",
|
||||
"maxPlayers": "Max players",
|
||||
"bots": "Bots",
|
||||
"ping": "Ping",
|
||||
"status": "Status",
|
||||
"online": "Online",
|
||||
"offline": "Offline"
|
||||
},
|
||||
"azuredevops": {
|
||||
"canceled": "Canceled",
|
||||
"inProgress": "In Progress",
|
||||
"result": "Result",
|
||||
"status": "Status",
|
||||
"buildId": "Build ID",
|
||||
"succeeded": "Succeeded",
|
||||
"notStarted": "Not Started",
|
||||
"failed": "Failed",
|
||||
"totalPrs": "Total PRs",
|
||||
"myPrs": "My PRs",
|
||||
"approved": "Approved"
|
||||
},
|
||||
"urbackup": {
|
||||
"ok": "Ok",
|
||||
"errored": "Errors",
|
||||
"noRecent": "Out of Date",
|
||||
"totalUsed": "Used Storage"
|
||||
},
|
||||
"openmediavault": {
|
||||
"downloading": "Downloading",
|
||||
"total": "Total",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"passed": "Passed",
|
||||
"failed": "Failed"
|
||||
},
|
||||
"mealie": {
|
||||
"recipes": "Recipes",
|
||||
"users": "Users",
|
||||
"categories": "Categories",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"atsumeru": {
|
||||
"series": "Series",
|
||||
"archives": "Archives",
|
||||
"chapters": "Chapters",
|
||||
"categories": "Categories"
|
||||
},
|
||||
"calibreweb": {
|
||||
"books": "书籍",
|
||||
"authors": "作者",
|
||||
"categories": "分类",
|
||||
"series": "丛书"
|
||||
},
|
||||
"uptimerobot": {
|
||||
"status": "Status",
|
||||
"uptime": "Uptime",
|
||||
"lastDown": "Last Downtime",
|
||||
"downDuration": "Downtime Duration",
|
||||
"sitesUp": "Sites Up",
|
||||
"sitesDown": "Sites Down",
|
||||
"paused": "Paused",
|
||||
"notyetchecked": "Not Yet Checked",
|
||||
"up": "Up",
|
||||
"seemsdown": "Seems Down",
|
||||
"down": "Down",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"opendtu": {
|
||||
"relativePower": "Power %",
|
||||
"yieldDay": "Today",
|
||||
"limit": "Limit",
|
||||
"absolutePower": "Power"
|
||||
},
|
||||
"calendar": {
|
||||
"physicalRelease": "Physical release",
|
||||
"inCinemas": "In cinemas",
|
||||
"digitalRelease": "Digital release"
|
||||
}
|
||||
}
|
||||
@@ -200,10 +200,10 @@
|
||||
"rutorrent": {
|
||||
"active": "活动中",
|
||||
"upload": "Upload",
|
||||
"download": "Download"
|
||||
"download": "下载"
|
||||
},
|
||||
"transmission": {
|
||||
"download": "Download",
|
||||
"download": "下载",
|
||||
"upload": "",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
@@ -223,8 +223,8 @@
|
||||
"invalid": "Invalid"
|
||||
},
|
||||
"deluge": {
|
||||
"download": "Download",
|
||||
"upload": "Upload",
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"leech": "Leech",
|
||||
"seed": "Seed"
|
||||
},
|
||||
|
||||
@@ -1,19 +1,56 @@
|
||||
import classNames from "classnames";
|
||||
import { useTranslation } from "next-i18next";
|
||||
import { useContext, useMemo } from "react";
|
||||
|
||||
export default function Block({ value, label }) {
|
||||
import { BlockHighlightContext } from "./highlight-context";
|
||||
|
||||
import { evaluateHighlight, getHighlightClass } from "utils/highlights";
|
||||
|
||||
export default function Block({ value, label, field }) {
|
||||
const { t } = useTranslation();
|
||||
const highlightConfig = useContext(BlockHighlightContext);
|
||||
|
||||
const highlight = useMemo(() => {
|
||||
if (!highlightConfig) return null;
|
||||
const labels = Array.isArray(label) ? label : [label];
|
||||
const candidates = [];
|
||||
if (typeof field === "string") candidates.push(field);
|
||||
for (const candidateLabel of labels) {
|
||||
if (typeof candidateLabel === "string") candidates.push(candidateLabel);
|
||||
}
|
||||
|
||||
for (const candidate of candidates) {
|
||||
const result = evaluateHighlight(candidate, value, highlightConfig);
|
||||
if (result) return result;
|
||||
}
|
||||
|
||||
return null;
|
||||
}, [field, label, value, highlightConfig]);
|
||||
|
||||
const highlightClass = useMemo(() => {
|
||||
if (!highlight?.level) return undefined;
|
||||
return getHighlightClass(highlight.level, highlightConfig);
|
||||
}, [highlight, highlightConfig]);
|
||||
|
||||
const applyToValueOnly = highlight?.valueOnly === true;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
"bg-theme-200/50 dark:bg-theme-900/20 rounded-sm m-1 flex-1 flex flex-col items-center justify-center text-center p-1",
|
||||
value === undefined ? "animate-pulse" : "",
|
||||
highlightClass,
|
||||
"service-block",
|
||||
)}
|
||||
data-highlight-level={highlight?.level}
|
||||
data-highlight-source={highlight?.source}
|
||||
>
|
||||
<div className="font-thin text-sm">{value === undefined || value === null ? "-" : value}</div>
|
||||
<div className="font-bold text-xs uppercase">{t(label)}</div>
|
||||
<div
|
||||
className={classNames("font-bold text-xs uppercase", applyToValueOnly && "text-theme-700 dark:text-theme-200")}
|
||||
>
|
||||
{t(label)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { useContext } from "react";
|
||||
import { useContext, useMemo } from "react";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
|
||||
import Error from "./error";
|
||||
import { BlockHighlightContext } from "./highlight-context";
|
||||
|
||||
import { buildHighlightConfig } from "utils/highlights";
|
||||
|
||||
const ALIASED_WIDGETS = {
|
||||
pialert: "netalertx",
|
||||
@@ -11,6 +14,11 @@ const ALIASED_WIDGETS = {
|
||||
export default function Container({ error = false, children, service }) {
|
||||
const { settings } = useContext(SettingsContext);
|
||||
|
||||
const highlightConfig = useMemo(
|
||||
() => buildHighlightConfig(settings?.blockHighlights, service?.widget?.highlight, service?.widget?.type),
|
||||
[settings?.blockHighlights, service?.widget?.highlight, service?.widget?.type],
|
||||
);
|
||||
|
||||
if (error) {
|
||||
if (settings.hideErrors || service.widget.hide_errors) {
|
||||
return null;
|
||||
@@ -51,6 +59,11 @@ export default function Container({ error = false, children, service }) {
|
||||
}),
|
||||
);
|
||||
}
|
||||
const content = <div className="relative flex flex-row w-full service-container">{visibleChildren}</div>;
|
||||
|
||||
return <div className="relative flex flex-row w-full service-container">{visibleChildren}</div>;
|
||||
if (!highlightConfig) {
|
||||
return content;
|
||||
}
|
||||
|
||||
return <BlockHighlightContext.Provider value={highlightConfig}>{content}</BlockHighlightContext.Provider>;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ export default function Error({ error }) {
|
||||
|
||||
if (typeof error === "string") {
|
||||
error = { message: error }; // eslint-disable-line no-param-reassign
|
||||
} else if (typeof error === "number") {
|
||||
error = { message: `Error ${error}` }; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
|
||||
if (error?.data?.error) {
|
||||
|
||||
3
src/components/services/widget/highlight-context.jsx
Normal file
3
src/components/services/widget/highlight-context.jsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
export const BlockHighlightContext = createContext(null);
|
||||
@@ -55,8 +55,7 @@ export default function Version({ disableUpdateCheck = false }) {
|
||||
</span>
|
||||
{!validate(version)
|
||||
? null
|
||||
: releaseData &&
|
||||
latestRelease &&
|
||||
: latestRelease &&
|
||||
compareVersions(latestRelease.tag_name, version) > 0 && (
|
||||
<a
|
||||
href={latestRelease.html_url}
|
||||
|
||||
@@ -113,7 +113,7 @@ export default function Widget({ options }) {
|
||||
<Resource
|
||||
icon={FaMemory}
|
||||
value={t("common.bytes", {
|
||||
value: data.mem.free,
|
||||
value: data.mem.available,
|
||||
maximumFractionDigits: 1,
|
||||
binary: true,
|
||||
})}
|
||||
|
||||
@@ -41,6 +41,17 @@ const Version = dynamic(() => import("components/version"), {
|
||||
|
||||
const rightAlignedWidgets = ["weatherapi", "openweathermap", "weather", "openmeteo", "search", "datetime"];
|
||||
|
||||
// Normalize language codes so older config values like zh-CN still point to Crowdin-provided ones
|
||||
const LANGUAGE_ALIASES = {
|
||||
"zh-cn": "zh-Hans",
|
||||
};
|
||||
|
||||
const normalizeLanguage = (language) => {
|
||||
if (!language) return "en";
|
||||
const alias = LANGUAGE_ALIASES[language.toLowerCase()];
|
||||
return alias || language;
|
||||
};
|
||||
|
||||
export async function getStaticProps() {
|
||||
let logger;
|
||||
try {
|
||||
@@ -50,6 +61,7 @@ export async function getStaticProps() {
|
||||
const services = await servicesResponse();
|
||||
const bookmarks = await bookmarksResponse();
|
||||
const widgets = await widgetsResponse();
|
||||
const language = normalizeLanguage(settings.language);
|
||||
|
||||
return {
|
||||
props: {
|
||||
@@ -60,7 +72,7 @@ export async function getStaticProps() {
|
||||
"/api/widgets": widgets,
|
||||
"/api/hash": false,
|
||||
},
|
||||
...(await serverSideTranslations(settings.language ?? "en")),
|
||||
...(await serverSideTranslations(language)),
|
||||
},
|
||||
};
|
||||
} catch (e) {
|
||||
@@ -218,8 +230,9 @@ function Home({ initialSettings }) {
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (settings.language) {
|
||||
i18n.changeLanguage(settings.language);
|
||||
const language = normalizeLanguage(settings.language);
|
||||
if (language) {
|
||||
i18n.changeLanguage(language);
|
||||
}
|
||||
|
||||
if (settings.theme && theme !== settings.theme) {
|
||||
@@ -400,6 +413,7 @@ function Home({ initialSettings }) {
|
||||
"A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations."
|
||||
}
|
||||
/>
|
||||
{settings.disableIndexing && <meta name="robots" content="noindex, nofollow" />}
|
||||
{settings.base && <base href={settings.base} />}
|
||||
{settings.favicon ? (
|
||||
<>
|
||||
@@ -425,7 +439,7 @@ function Home({ initialSettings }) {
|
||||
<div
|
||||
className={classNames(
|
||||
settings.fullWidth ? "" : "container",
|
||||
"relative m-auto flex flex-col justify-start z-10 h-full",
|
||||
"relative m-auto flex flex-col justify-start z-10 h-full min-h-screen",
|
||||
)}
|
||||
>
|
||||
<QuickLaunch
|
||||
|
||||
19
src/pages/robots.txt.js
Normal file
19
src/pages/robots.txt.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { getSettings } from "utils/config/config";
|
||||
|
||||
export async function getServerSideProps({ res }) {
|
||||
const settings = getSettings();
|
||||
const content = ["User-agent: *", !!settings.disableIndexing ? "Disallow: /" : "Allow: /"].join("\n");
|
||||
|
||||
res.setHeader("Content-Type", "text/plain");
|
||||
res.write(content);
|
||||
res.end();
|
||||
|
||||
return {
|
||||
props: {},
|
||||
};
|
||||
}
|
||||
|
||||
export default function RobotsTxt() {
|
||||
// placeholder component
|
||||
return null;
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export async function servicesFromDocker() {
|
||||
};
|
||||
}
|
||||
let substitutedVal = substituteEnvironmentVars(containerLabels[label]);
|
||||
if (value === "widget.version") {
|
||||
if (value === "widget.version" || /^widgets\[\d+\]\.version$/.test(value)) {
|
||||
substitutedVal = parseInt(substitutedVal, 10);
|
||||
}
|
||||
shvl.set(constructedService, value, substitutedVal);
|
||||
@@ -254,6 +254,7 @@ export function cleanServiceGroups(groups) {
|
||||
// all widgets
|
||||
fields,
|
||||
hideErrors,
|
||||
highlight,
|
||||
type,
|
||||
|
||||
// azuredevops
|
||||
@@ -278,6 +279,9 @@ export function cleanServiceGroups(groups) {
|
||||
slugs,
|
||||
symbols,
|
||||
|
||||
// crowdsec
|
||||
limit24h,
|
||||
|
||||
// customapi
|
||||
mappings,
|
||||
display,
|
||||
@@ -441,6 +445,21 @@ export function cleanServiceGroups(groups) {
|
||||
index,
|
||||
};
|
||||
|
||||
if (highlight) {
|
||||
let parsedHighlight = highlight;
|
||||
if (typeof highlight === "string") {
|
||||
try {
|
||||
parsedHighlight = JSON.parse(highlight);
|
||||
} catch (e) {
|
||||
logger.error("Invalid highlight configuration detected in config for service '%s'", service.name);
|
||||
parsedHighlight = null;
|
||||
}
|
||||
}
|
||||
if (parsedHighlight && typeof parsedHighlight === "object") {
|
||||
widget.highlight = parsedHighlight;
|
||||
}
|
||||
}
|
||||
|
||||
if (type === "azuredevops") {
|
||||
if (userEmail) widget.userEmail = userEmail;
|
||||
if (repositoryId) widget.repositoryId = repositoryId;
|
||||
@@ -457,6 +476,10 @@ export function cleanServiceGroups(groups) {
|
||||
if (defaultinterval) widget.defaultinterval = defaultinterval;
|
||||
}
|
||||
|
||||
if (limit24h !== undefined) {
|
||||
widget.limit24h = !!limit24h;
|
||||
}
|
||||
|
||||
if (type === "docker") {
|
||||
if (server) widget.server = server;
|
||||
if (container) widget.container = container;
|
||||
@@ -540,6 +563,7 @@ export function cleanServiceGroups(groups) {
|
||||
"speedtest",
|
||||
"wgeasy",
|
||||
"grafana",
|
||||
"gluetun",
|
||||
].includes(type)
|
||||
) {
|
||||
if (version) widget.version = parseInt(version, 10);
|
||||
|
||||
257
src/utils/highlights.js
Normal file
257
src/utils/highlights.js
Normal file
@@ -0,0 +1,257 @@
|
||||
const DEFAULT_LEVEL_CLASSES = {
|
||||
good: "bg-emerald-500/40 text-emerald-950 dark:bg-emerald-900/60 dark:text-emerald-400",
|
||||
warn: "bg-amber-300/30 text-amber-900 dark:bg-amber-900/30 dark:text-amber-200",
|
||||
danger: "bg-rose-700/45 text-rose-200 dark:bg-rose-950/70 dark:text-rose-400",
|
||||
};
|
||||
|
||||
const normalizeFieldKeys = (fields, widgetType) => {
|
||||
if (!fields || typeof fields !== "object") return {};
|
||||
|
||||
return Object.entries(fields).reduce((acc, [key, value]) => {
|
||||
if (value === null || value === undefined) return acc;
|
||||
if (typeof key !== "string") return acc;
|
||||
const trimmedKey = key.trim();
|
||||
if (trimmedKey === "") return acc;
|
||||
|
||||
acc[trimmedKey] = value;
|
||||
|
||||
if (widgetType && !trimmedKey.includes(".")) {
|
||||
const namespacedKey = `${widgetType}.${trimmedKey}`;
|
||||
if (!(namespacedKey in acc)) {
|
||||
acc[namespacedKey] = value;
|
||||
}
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, {});
|
||||
};
|
||||
|
||||
export const buildHighlightConfig = (globalConfig, widgetConfig, widgetType) => {
|
||||
const levels = {
|
||||
...DEFAULT_LEVEL_CLASSES,
|
||||
...(globalConfig?.levels || {}),
|
||||
...(widgetConfig?.levels || {}),
|
||||
};
|
||||
|
||||
const { levels: _levels, ...fields } = widgetConfig || {};
|
||||
const normalizedFields = normalizeFieldKeys(fields, widgetType);
|
||||
|
||||
const hasLevels = Object.values(levels).some(Boolean);
|
||||
const hasFields = Object.keys(normalizedFields).length > 0;
|
||||
|
||||
if (!hasLevels && !hasFields) return null;
|
||||
|
||||
return { levels, fields: normalizedFields };
|
||||
};
|
||||
|
||||
const NUMERIC_OPERATORS = {
|
||||
gt: (value, target) => value > target,
|
||||
gte: (value, target) => value >= target,
|
||||
lt: (value, target) => value < target,
|
||||
lte: (value, target) => value <= target,
|
||||
eq: (value, target) => value === target,
|
||||
ne: (value, target) => value !== target,
|
||||
};
|
||||
|
||||
const STRING_OPERATORS = {
|
||||
equals: (value, target, caseSensitive) =>
|
||||
caseSensitive ? value === target : value.toLowerCase() === target.toLowerCase(),
|
||||
includes: (value, target, caseSensitive) =>
|
||||
caseSensitive ? value.includes(target) : value.toLowerCase().includes(target.toLowerCase()),
|
||||
startsWith: (value, target, caseSensitive) =>
|
||||
caseSensitive ? value.startsWith(target) : value.toLowerCase().startsWith(target.toLowerCase()),
|
||||
endsWith: (value, target, caseSensitive) =>
|
||||
caseSensitive ? value.endsWith(target) : value.toLowerCase().endsWith(target.toLowerCase()),
|
||||
};
|
||||
|
||||
const toNumber = (value) => {
|
||||
if (typeof value === "number" && Number.isFinite(value)) return value;
|
||||
if (typeof value === "string" && value.trim()) {
|
||||
const trimmed = value.trim();
|
||||
const candidate = Number(trimmed);
|
||||
if (!Number.isNaN(candidate)) return candidate;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const parseNumericValue = (value) => {
|
||||
if (value === null || value === undefined) return undefined;
|
||||
if (typeof value === "number" && Number.isFinite(value)) return value;
|
||||
|
||||
if (typeof value === "string") {
|
||||
const trimmed = value.trim();
|
||||
if (!trimmed) return undefined;
|
||||
|
||||
const direct = Number(trimmed);
|
||||
if (!Number.isNaN(direct)) return direct;
|
||||
|
||||
const compact = trimmed.replace(/\s+/g, "");
|
||||
if (!compact || !/^[-+]?[0-9.,]+$/.test(compact)) return undefined;
|
||||
|
||||
const commaCount = (compact.match(/,/g) || []).length;
|
||||
const dotCount = (compact.match(/\./g) || []).length;
|
||||
|
||||
if (commaCount && dotCount) {
|
||||
const lastComma = compact.lastIndexOf(",");
|
||||
const lastDot = compact.lastIndexOf(".");
|
||||
if (lastComma > lastDot) {
|
||||
const asDecimal = compact.replace(/\./g, "").replace(/,/g, ".");
|
||||
const parsed = Number(asDecimal);
|
||||
return Number.isNaN(parsed) ? undefined : parsed;
|
||||
}
|
||||
const asThousands = compact.replace(/,/g, "");
|
||||
const parsed = Number(asThousands);
|
||||
return Number.isNaN(parsed) ? undefined : parsed;
|
||||
}
|
||||
|
||||
if (commaCount) {
|
||||
const parts = compact.split(",");
|
||||
if (commaCount === 1 && parts[1]?.length <= 2) {
|
||||
const parsed = Number(compact.replace(",", "."));
|
||||
if (!Number.isNaN(parsed)) return parsed;
|
||||
}
|
||||
const isGrouped = parts.length > 1 && parts.slice(1).every((part) => part.length === 3);
|
||||
if (isGrouped) {
|
||||
const parsed = Number(compact.replace(/,/g, ""));
|
||||
if (!Number.isNaN(parsed)) return parsed;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (dotCount) {
|
||||
const parts = compact.split(".");
|
||||
if (dotCount === 1 && parts[1]?.length <= 2) {
|
||||
const parsed = Number(compact);
|
||||
if (!Number.isNaN(parsed)) return parsed;
|
||||
}
|
||||
const isGrouped = parts.length > 1 && parts.slice(1).every((part) => part.length === 3);
|
||||
if (isGrouped) {
|
||||
const parsed = Number(compact.replace(/\./g, ""));
|
||||
if (!Number.isNaN(parsed)) return parsed;
|
||||
}
|
||||
const parsed = Number(compact);
|
||||
return Number.isNaN(parsed) ? undefined : parsed;
|
||||
}
|
||||
|
||||
const parsed = Number(compact);
|
||||
return Number.isNaN(parsed) ? undefined : parsed;
|
||||
}
|
||||
|
||||
if (typeof value === "object" && value !== null && "props" in value) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const evaluateNumericRule = (value, rule) => {
|
||||
if (!rule || typeof rule !== "object") return false;
|
||||
const operator = rule.when && NUMERIC_OPERATORS[rule.when];
|
||||
const numericValue = toNumber(rule.value);
|
||||
if (operator && numericValue !== undefined) {
|
||||
const passes = operator(value, numericValue);
|
||||
return rule.negate ? !passes : passes;
|
||||
}
|
||||
|
||||
if (rule.when === "between") {
|
||||
const min = toNumber(rule.min ?? rule.value?.min);
|
||||
const max = toNumber(rule.max ?? rule.value?.max);
|
||||
if (min === undefined && max === undefined) return false;
|
||||
const lowerBound = min ?? Number.NEGATIVE_INFINITY;
|
||||
const upperBound = max ?? Number.POSITIVE_INFINITY;
|
||||
const passes = value >= lowerBound && value <= upperBound;
|
||||
return rule.negate ? !passes : passes;
|
||||
}
|
||||
|
||||
if (rule.when === "outside") {
|
||||
const min = toNumber(rule.min ?? rule.value?.min);
|
||||
const max = toNumber(rule.max ?? rule.value?.max);
|
||||
if (min === undefined && max === undefined) return false;
|
||||
const passes = value < (min ?? Number.NEGATIVE_INFINITY) || value > (max ?? Number.POSITIVE_INFINITY);
|
||||
return rule.negate ? !passes : passes;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
const evaluateStringRule = (value, rule) => {
|
||||
if (!rule || typeof rule !== "object") return false;
|
||||
if (rule.when === "regex" && typeof rule.value === "string") {
|
||||
try {
|
||||
const flags = rule.flags || (rule.caseSensitive ? "" : "i");
|
||||
const regex = new RegExp(rule.value, flags);
|
||||
const passes = regex.test(value);
|
||||
return rule.negate ? !passes : passes;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const operator = rule.when && STRING_OPERATORS[rule.when];
|
||||
if (!operator || typeof rule.value !== "string") return false;
|
||||
const passes = operator(value, rule.value, Boolean(rule.caseSensitive));
|
||||
return rule.negate ? !passes : passes;
|
||||
};
|
||||
|
||||
const ensureArray = (value) => {
|
||||
if (Array.isArray(value)) return value;
|
||||
if (value === undefined || value === null) return [];
|
||||
return [value];
|
||||
};
|
||||
|
||||
const findHighlightLevel = (ruleSet, numericValue, stringValue) => {
|
||||
const { numeric, string, valueOnly } = ruleSet;
|
||||
|
||||
if (numeric && numericValue !== undefined) {
|
||||
const numericRules = ensureArray(numeric);
|
||||
const numericCandidates = Array.isArray(numericValue) ? numericValue : [numericValue];
|
||||
for (const candidate of numericCandidates) {
|
||||
for (const rule of numericRules) {
|
||||
if (rule?.level && evaluateNumericRule(candidate, rule)) {
|
||||
return { level: rule.level, source: "numeric", rule, valueOnly };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (string && stringValue !== undefined) {
|
||||
const stringRules = ensureArray(string);
|
||||
for (const rule of stringRules) {
|
||||
if (rule?.level && evaluateStringRule(stringValue, rule)) {
|
||||
return { level: rule.level, source: "string", rule, valueOnly };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export const evaluateHighlight = (fieldKey, value, highlightConfig) => {
|
||||
if (!highlightConfig || !fieldKey) return null;
|
||||
const { fields } = highlightConfig;
|
||||
if (!fields || typeof fields !== "object") return null;
|
||||
|
||||
const ruleSet = fields[fieldKey];
|
||||
if (!ruleSet) return null;
|
||||
|
||||
const numericValue = parseNumericValue(value);
|
||||
let stringValue;
|
||||
if (typeof value === "string") {
|
||||
stringValue = value;
|
||||
} else if (typeof value === "number" || typeof value === "bigint") {
|
||||
stringValue = String(value);
|
||||
} else if (typeof value === "boolean") {
|
||||
stringValue = value ? "true" : "false";
|
||||
}
|
||||
|
||||
const normalizedString = typeof stringValue === "string" ? stringValue.trim() : stringValue;
|
||||
|
||||
return findHighlightLevel(ruleSet, numericValue, normalizedString);
|
||||
};
|
||||
|
||||
export const getHighlightClass = (level, highlightConfig) => {
|
||||
if (!level || !highlightConfig) return undefined;
|
||||
return highlightConfig.levels?.[level];
|
||||
};
|
||||
|
||||
export const getDefaultHighlightLevels = () => DEFAULT_LEVEL_CLASSES;
|
||||
@@ -111,7 +111,7 @@ export async function cachedRequest(url, duration = 5, ua = "homepage") {
|
||||
export async function httpProxy(url, params = {}) {
|
||||
const constructedUrl = new URL(url);
|
||||
const disableIpv6 = process.env.HOMEPAGE_PROXY_DISABLE_IPV6 === "true";
|
||||
const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : {};
|
||||
const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : { autoSelectFamilyAttemptTimeout: 500 };
|
||||
|
||||
let request = null;
|
||||
if (constructedUrl.protocol === "https:") {
|
||||
|
||||
@@ -24,10 +24,11 @@ function buildResponse(plans) {
|
||||
|
||||
plans.forEach((plan) => {
|
||||
const statuses = plan?.recentBackups?.status;
|
||||
// See https://github.com/garethgeorge/backrest/blob/4357295a17cb2e71639473c9929a060c4dd1b624/proto/v1/operations.proto#L78-L87
|
||||
if (Array.isArray(statuses) && statuses.length > 0) {
|
||||
if (statuses[0] === "STATUS_SUCCESS") {
|
||||
numSuccessLatest++;
|
||||
} else {
|
||||
} else if (statuses[0] === "STATUS_ERROR") {
|
||||
numFailureLatest++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,13 +106,19 @@ export default function Integration({ config, params, setEvents, hideErrors, tim
|
||||
};
|
||||
|
||||
const eventsToAdd = [];
|
||||
events.forEach((event, index) => {
|
||||
events.forEach((event) => {
|
||||
const occurrences = getOcurrencesFromRange(event);
|
||||
|
||||
occurrences.forEach((icalDate) => {
|
||||
const date = icalDate.toJSDate();
|
||||
|
||||
const hash = simpleHash(`${event.id}-${event.title}-${index}-${date.toString()}`);
|
||||
const occurrenceTimestamp = date.getTime();
|
||||
const eventIdentifier =
|
||||
event.id ??
|
||||
simpleHash(
|
||||
`${event.title ?? ""}-${event.type ?? ""}-${event.status ?? ""}-${event.url ?? ""}-${event.location ?? ""}`,
|
||||
);
|
||||
const hash = simpleHash(`${eventIdentifier}-${occurrenceTimestamp}`);
|
||||
|
||||
let title = event.title;
|
||||
if (showName) {
|
||||
|
||||
@@ -9,7 +9,7 @@ export default function Component({ service }) {
|
||||
|
||||
const { widget } = service;
|
||||
|
||||
const { data: alerts, error: alertsError } = useWidgetAPI(widget, "alerts");
|
||||
const { data: alerts, error: alertsError } = useWidgetAPI(widget, !!widget.limit24h ? "alerts24h" : "alerts");
|
||||
const { data: bans, error: bansError } = useWidgetAPI(widget, "bans");
|
||||
|
||||
if (alertsError || bansError) {
|
||||
|
||||
@@ -9,6 +9,9 @@ const widget = {
|
||||
alerts: {
|
||||
endpoint: "alerts",
|
||||
},
|
||||
alerts24h: {
|
||||
endpoint: "alerts?limit=0&since=24h",
|
||||
},
|
||||
bans: {
|
||||
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
|
||||
},
|
||||
|
||||
@@ -166,7 +166,11 @@ export default function Component({ service }) {
|
||||
refreshInterval: Math.max(1000, refreshInterval),
|
||||
});
|
||||
|
||||
if (customError) {
|
||||
// if mappings includes an error field and the data contains an error field then show data even if there is an error
|
||||
const mappingsIncludesError = Array.isArray(mappings) && mappings.find((mapping) => mapping.field === "error");
|
||||
const errorIsData = customData && typeof customData === "object" && "error" in customData;
|
||||
|
||||
if (customError && !(mappingsIncludesError && errorIsData)) {
|
||||
return <Container service={service} error={customError} />;
|
||||
}
|
||||
|
||||
|
||||
@@ -205,13 +205,14 @@ export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { widget } = service;
|
||||
const enableNowPlaying = service.widget?.enableNowPlaying ?? true;
|
||||
|
||||
const {
|
||||
data: sessionsData,
|
||||
error: sessionsError,
|
||||
mutate: sessionMutate,
|
||||
} = useWidgetAPI(widget, "Sessions", {
|
||||
refreshInterval: 5000,
|
||||
} = useWidgetAPI(widget, enableNowPlaying ? "Sessions" : "", {
|
||||
refreshInterval: enableNowPlaying ? 5000 : undefined,
|
||||
});
|
||||
|
||||
const { data: countData, error: countError } = useWidgetAPI(widget, "Count", {
|
||||
@@ -239,13 +240,12 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
const enableBlocks = service.widget?.enableBlocks;
|
||||
const enableNowPlaying = service.widget?.enableNowPlaying ?? true;
|
||||
const enableMediaControl = service.widget?.enableMediaControl !== false; // default is true
|
||||
const enableUser = !!service.widget?.enableUser; // default is false
|
||||
const expandOneStreamToTwoRows = service.widget?.expandOneStreamToTwoRows !== false; // default is true
|
||||
const showEpisodeNumber = !!service.widget?.showEpisodeNumber; // default is false
|
||||
|
||||
if (!sessionsData || !countData) {
|
||||
if ((enableNowPlaying && !sessionsData) || !countData) {
|
||||
return (
|
||||
<>
|
||||
{enableBlocks && <CountBlocks service={service} countData={null} />}
|
||||
|
||||
@@ -14,6 +14,12 @@ export default function Component({ service }) {
|
||||
return <Container service={service} error={resultError} />;
|
||||
}
|
||||
|
||||
if (!widget.fields || widget.fields.length === 0) {
|
||||
widget.fields = ["online", "offline", "offline_alt", "total"];
|
||||
} else if (widget.fields.length > 4) {
|
||||
widget.fields = widget.fields.slice(0, 4);
|
||||
}
|
||||
|
||||
if (!resultData) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
|
||||
95
src/widgets/frigate/proxy.js
Normal file
95
src/widgets/frigate/proxy.js
Normal file
@@ -0,0 +1,95 @@
|
||||
import getServiceWidget from "utils/config/service-helpers";
|
||||
import createLogger from "utils/logger";
|
||||
import { asJson, formatApiCall, sanitizeErrorURL } from "utils/proxy/api-helpers";
|
||||
import { addCookieToJar } from "utils/proxy/cookie-jar";
|
||||
import { httpProxy } from "utils/proxy/http";
|
||||
import widgets from "widgets/widgets";
|
||||
|
||||
const proxyName = "frigateProxyHandler";
|
||||
const logger = createLogger(proxyName);
|
||||
|
||||
export default async function frigateProxyHandler(req, res, map) {
|
||||
const { group, service, endpoint, index } = req.query;
|
||||
|
||||
if (group && service) {
|
||||
const widget = await getServiceWidget(group, service, index);
|
||||
|
||||
if (!widgets?.[widget.type]?.api) {
|
||||
return res.status(403).json({ error: "Service does not support API calls" });
|
||||
}
|
||||
|
||||
if (widget) {
|
||||
const url = formatApiCall(widgets[widget.type].api, { endpoint, ...widget });
|
||||
|
||||
const params = {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
};
|
||||
|
||||
let [status, , data] = await httpProxy(url, params);
|
||||
|
||||
if (status === 401 && widget.username && widget.password) {
|
||||
const loginUrl = `${widget.url}/api/login`;
|
||||
logger.debug("Attempting login to Frigate at %s", loginUrl);
|
||||
const [loginStatus, , , loginResponseHeaders] = await httpProxy(loginUrl, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ user: widget.username, password: widget.password }),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
if (loginStatus !== 200) {
|
||||
logger.error("HTTP Error %d calling %s", loginStatus, sanitizeErrorURL(loginUrl));
|
||||
return res.status(status).json({
|
||||
error: {
|
||||
message: `HTTP Error ${status} while trying to login to Frigate`,
|
||||
url: sanitizeErrorURL(url),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
addCookieToJar(url, loginResponseHeaders);
|
||||
// Retry original request with cookie set
|
||||
[status, , data] = await httpProxy(url, params);
|
||||
}
|
||||
|
||||
if (status >= 400) {
|
||||
logger.error("HTTP Error %d calling %s", status, sanitizeErrorURL(url));
|
||||
return res.status(status).json({
|
||||
error: {
|
||||
message: `HTTP Error ${status} from Frigate`,
|
||||
url: sanitizeErrorURL(url),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
data = asJson(data);
|
||||
|
||||
if (endpoint == "stats") {
|
||||
res.status(status).send({
|
||||
num_cameras: data?.cameras !== undefined ? Object.keys(data?.cameras).length : 0,
|
||||
uptime: data?.service?.uptime,
|
||||
version: data?.service.version,
|
||||
});
|
||||
} else if (endpoint == "events") {
|
||||
return res.status(status).send(
|
||||
data.slice(0, 5).map((event) => ({
|
||||
id: event.id,
|
||||
camera: event.camera,
|
||||
label: event.label,
|
||||
start_time: new Date(event.start_time * 1000),
|
||||
thumbnail: event.thumbnail,
|
||||
score: event.data.score,
|
||||
type: event.data.type,
|
||||
})),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
logger.debug("Invalid or missing proxy service type '%s' in group '%s'", service, group);
|
||||
return res.status(400).json({ error: "Invalid proxy service type" });
|
||||
}
|
||||
@@ -1,37 +1,12 @@
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
import frigateProxyHandler from "./proxy";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/{endpoint}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
proxyHandler: frigateProxyHandler,
|
||||
|
||||
mappings: {
|
||||
stats: {
|
||||
endpoint: "stats",
|
||||
map: (data) => {
|
||||
const jsonData = asJson(data);
|
||||
return {
|
||||
num_cameras: jsonData?.cameras !== undefined ? Object.keys(jsonData?.cameras).length : 0,
|
||||
uptime: jsonData?.service?.uptime,
|
||||
version: jsonData?.service.version,
|
||||
};
|
||||
},
|
||||
},
|
||||
events: {
|
||||
endpoint: "events",
|
||||
map: (data) =>
|
||||
asJson(data)
|
||||
.slice(0, 5)
|
||||
.map((event) => ({
|
||||
id: event.id,
|
||||
camera: event.camera,
|
||||
label: event.label,
|
||||
start_time: new Date(event.start_time * 1000),
|
||||
thumbnail: event.thumbnail,
|
||||
score: event.data.score,
|
||||
type: event.data.type,
|
||||
})),
|
||||
},
|
||||
stats: { endpoint: "stats" },
|
||||
events: { endpoint: "events" },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -38,11 +38,7 @@ export default function Component({ service }) {
|
||||
);
|
||||
}
|
||||
|
||||
const status = serverData.online ? (
|
||||
<span className="text-green-500">{t("gamedig.online")}</span>
|
||||
) : (
|
||||
<span className="text-red-500">{t("gamedig.offline")}</span>
|
||||
);
|
||||
const status = serverData.online ? t("gamedig.online") : t("gamedig.offline");
|
||||
const name = serverData.online ? serverData.name : "-";
|
||||
const map = serverData.online ? serverData.map : "-";
|
||||
const currentPlayers = serverData.online ? `${serverData.players} / ${serverData.maxplayers}` : "-";
|
||||
|
||||
@@ -20,13 +20,15 @@ function getPerformancePercent(t, performanceRange) {
|
||||
export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
const { widget } = service;
|
||||
const includeNetWorth = widget.fields?.includes("net_worth");
|
||||
|
||||
const { data: performanceToday, error: ghostfolioErrorToday } = useWidgetAPI(widget, "today");
|
||||
const { data: performanceYear, error: ghostfolioErrorYear } = useWidgetAPI(widget, "year");
|
||||
const { data: performanceMax, error: ghostfolioErrorMax } = useWidgetAPI(widget, "max");
|
||||
const { data: userInfo, error: ghostfolioErrorUserInfo } = useWidgetAPI(widget, includeNetWorth ? "userInfo" : "");
|
||||
|
||||
if (ghostfolioErrorToday || ghostfolioErrorYear || ghostfolioErrorMax) {
|
||||
const finalError = ghostfolioErrorToday ?? ghostfolioErrorYear ?? ghostfolioErrorMax;
|
||||
if (ghostfolioErrorToday || ghostfolioErrorYear || ghostfolioErrorMax || ghostfolioErrorUserInfo) {
|
||||
const finalError = ghostfolioErrorToday ?? ghostfolioErrorYear ?? ghostfolioErrorMax ?? ghostfolioErrorUserInfo;
|
||||
return <Container service={service} error={finalError} />;
|
||||
}
|
||||
|
||||
@@ -34,12 +36,13 @@ export default function Component({ service }) {
|
||||
return <Container service={service} error={performanceToday} />;
|
||||
}
|
||||
|
||||
if (!performanceToday || !performanceYear || !performanceMax) {
|
||||
if (!performanceToday || !performanceYear || !performanceMax || (includeNetWorth && !userInfo)) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="ghostfolio.gross_percent_today" />
|
||||
<Block label="ghostfolio.gross_percent_1y" />
|
||||
<Block label="ghostfolio.gross_percent_max" />
|
||||
{includeNetWorth && <Block label="ghostfolio.net_worth" />}
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
@@ -49,6 +52,12 @@ export default function Component({ service }) {
|
||||
<Block label="ghostfolio.gross_percent_today" value={getPerformancePercent(t, performanceToday)} />
|
||||
<Block label="ghostfolio.gross_percent_1y" value={getPerformancePercent(t, performanceYear)} />
|
||||
<Block label="ghostfolio.gross_percent_max" value={getPerformancePercent(t, performanceMax)} />
|
||||
{includeNetWorth && (
|
||||
<Block
|
||||
label="ghostfolio.net_worth"
|
||||
value={`${performanceToday.performance.currentNetWorth.toFixed(2)} ${userInfo?.settings?.currency ?? ""}`}
|
||||
/>
|
||||
)}
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/v2/portfolio/performance?range={endpoint}",
|
||||
api: "{url}/api/{endpoint}",
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
today: {
|
||||
endpoint: "1d",
|
||||
endpoint: "v2/portfolio/performance?range=1d",
|
||||
},
|
||||
year: {
|
||||
endpoint: "1y",
|
||||
endpoint: "v2/portfolio/performance?range=1y",
|
||||
},
|
||||
max: {
|
||||
endpoint: "max",
|
||||
endpoint: "v2/portfolio/performance?range=max",
|
||||
},
|
||||
userInfo: {
|
||||
endpoint: "v1/user",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@ export default function Component({ service }) {
|
||||
useEffect(() => {
|
||||
if (data) {
|
||||
setDataPoints((prevDataPoints) => {
|
||||
const newDataPoints = [...prevDataPoints, { a: data.used, b: data.free }];
|
||||
const newDataPoints = [...prevDataPoints, { a: data.used, b: data.available }];
|
||||
if (newDataPoints.length > pointsLimit) {
|
||||
newDataPoints.shift();
|
||||
}
|
||||
@@ -67,10 +67,10 @@ export default function Component({ service }) {
|
||||
|
||||
{data && !error && (
|
||||
<Block position="bottom-3 left-3">
|
||||
{data.free && chart && (
|
||||
{data.available && chart && (
|
||||
<div className="text-xs opacity-50">
|
||||
{t("common.bytes", {
|
||||
value: data.free,
|
||||
value: data.available,
|
||||
maximumFractionDigits: 1,
|
||||
binary: true,
|
||||
})}{" "}
|
||||
@@ -93,10 +93,10 @@ export default function Component({ service }) {
|
||||
|
||||
{!chart && (
|
||||
<Block position="top-3 right-3">
|
||||
{data.free && (
|
||||
{data.available && (
|
||||
<div className="text-xs opacity-50">
|
||||
{t("common.bytes", {
|
||||
value: data.free,
|
||||
value: data.available,
|
||||
maximumFractionDigits: 1,
|
||||
binary: true,
|
||||
})}{" "}
|
||||
|
||||
@@ -12,10 +12,8 @@ export default function Component({ service }) {
|
||||
|
||||
const { data: gluetunData, error: gluetunError } = useWidgetAPI(widget, "ip");
|
||||
const includePF = widget.fields.includes("port_forwarded");
|
||||
const { data: portForwardedData, error: portForwardedError } = useWidgetAPI(
|
||||
widget,
|
||||
includePF ? "port_forwarded" : "",
|
||||
);
|
||||
const pfEndpoint = widget.version > 1 ? "port_forwarded_v2" : "port_forwarded";
|
||||
const { data: portForwardedData, error: portForwardedError } = useWidgetAPI(widget, includePF ? pfEndpoint : "");
|
||||
|
||||
if (gluetunError || (includePF && portForwardedError)) {
|
||||
return <Container service={service} error={gluetunError || portForwardedError} />;
|
||||
|
||||
@@ -13,6 +13,10 @@ const widget = {
|
||||
endpoint: "openvpn/portforwarded",
|
||||
validate: ["port"],
|
||||
},
|
||||
port_forwarded_v2: {
|
||||
endpoint: "portforward",
|
||||
validate: ["port"],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default function Component({ service }) {
|
||||
|
||||
if (
|
||||
(!widget.showStacks && !containersData) ||
|
||||
(widget.showSummary && (!stacksData || !serversData)) ||
|
||||
(widget.showSummary && (!containersData || !stacksData || !serversData)) ||
|
||||
(widget.showStacks && !stacksData)
|
||||
) {
|
||||
return widget.showSummary ? (
|
||||
|
||||
@@ -22,11 +22,7 @@ export default function Component({ service }) {
|
||||
);
|
||||
}
|
||||
|
||||
const statusIndicator = serverData.online ? (
|
||||
<span className="text-green-500">{t("minecraft.up")}</span>
|
||||
) : (
|
||||
<span className="text-red-500">{t("minecraft.down")}</span>
|
||||
);
|
||||
const statusIndicator = serverData.online ? t("minecraft.up") : t("minecraft.down");
|
||||
const players = serverData.players ? `${serverData.players.online} / ${serverData.players.max}` : "-";
|
||||
const version = serverData.version || "-";
|
||||
|
||||
|
||||
@@ -24,23 +24,15 @@ export default function Component({ service }) {
|
||||
if (!data || (data && data.length === 0)) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="myspeed.ping" />
|
||||
<Block label="myspeed.download" />
|
||||
<Block label="myspeed.upload" />
|
||||
<Block label="myspeed.ping" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block
|
||||
label="myspeed.ping"
|
||||
value={t("common.ms", {
|
||||
value: data[0].ping,
|
||||
style: "unit",
|
||||
unit: "millisecond",
|
||||
})}
|
||||
/>
|
||||
<Block
|
||||
label="myspeed.download"
|
||||
value={t("common.bitrate", {
|
||||
@@ -55,6 +47,14 @@ export default function Component({ service }) {
|
||||
decimals: 2,
|
||||
})}
|
||||
/>
|
||||
<Block
|
||||
label="myspeed.ping"
|
||||
value={t("common.ms", {
|
||||
value: data[0].ping,
|
||||
style: "unit",
|
||||
unit: "millisecond",
|
||||
})}
|
||||
/>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default async function omadaProxyHandler(req, res) {
|
||||
|
||||
const controllerVersionMajor = parseInt(controllerVersion.split(".")[0], 10);
|
||||
|
||||
if (![3, 4, 5].includes(controllerVersionMajor)) {
|
||||
if (![3, 4, 5, 6].includes(controllerVersionMajor)) {
|
||||
return res.status(500).json({ error: { message: "Error determining controller version", data } });
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ export default async function omadaProxyHandler(req, res) {
|
||||
loginUrl = `${url}/api/v2/login`;
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
loginUrl = `${url}/${cId}/api/v2/login`;
|
||||
break;
|
||||
default:
|
||||
@@ -122,6 +123,7 @@ export default async function omadaProxyHandler(req, res) {
|
||||
sitesUrl = `${url}/api/v2/sites?token=${token}¤tPage=1¤tPageSize=1000`;
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
sitesUrl = `${url}/${cId}/api/v2/sites?token=${token}¤tPage=1¤tPageSize=1000`;
|
||||
break;
|
||||
default:
|
||||
@@ -207,8 +209,8 @@ export default async function omadaProxyHandler(req, res) {
|
||||
connectedAp = siteResponseData.result.connectedAp;
|
||||
activeUser = siteResponseData.result.activeUser;
|
||||
alerts = siteResponseData.result.alerts;
|
||||
} else if (controllerVersionMajor === 4 || controllerVersionMajor === 5) {
|
||||
const siteName = controllerVersionMajor === 5 ? site.id : site.key;
|
||||
} else if ([4, 5, 6].includes(controllerVersionMajor)) {
|
||||
const siteName = controllerVersionMajor > 4 ? site.id : site.key;
|
||||
const siteStatsUrl =
|
||||
controllerVersionMajor === 4
|
||||
? `${url}/api/v2/sites/${siteName}/dashboard/overviewDiagram?token=${token}¤tPage=1¤tPageSize=1000`
|
||||
|
||||
@@ -20,16 +20,7 @@ export default function Component({ service }) {
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block
|
||||
label="widget.status"
|
||||
value={
|
||||
up ? (
|
||||
<span className="text-green-500">{t("openwrt.up")}</span>
|
||||
) : (
|
||||
<span className="text-red-500">{t("openwrt.down")}</span>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<Block label="widget.status" value={up ? t("openwrt.up") : t("openwrt.down")} />
|
||||
<Block label="openwrt.bytesTx" value={t("common.bytes", { value: bytesTx })} />
|
||||
<Block label="openwrt.bytesRx" value={t("common.bytes", { value: bytesRx })} />
|
||||
</Container>
|
||||
|
||||
@@ -56,16 +56,7 @@ export default function Component({ service }) {
|
||||
label="pfsense.temp"
|
||||
value={t("common.number", { value: systemData.data.temp_c, style: "unit", unit: "celsius" })}
|
||||
/>
|
||||
<Block
|
||||
label="pfsense.wanStatus"
|
||||
value={
|
||||
wan.status === "up" ? (
|
||||
<span className="text-green-500">{t("pfsense.up")}</span>
|
||||
) : (
|
||||
<span className="text-red-500">{t("pfsense.down")}</span>
|
||||
)
|
||||
}
|
||||
/>
|
||||
<Block label="pfsense.wanStatus" value={wan.status === "up" ? t("pfsense.up") : t("pfsense.down")} />
|
||||
{showWanIP && <Block label="pfsense.wanIP" value={wan.ipaddr} />}
|
||||
{showDiskUsage && <Block label="pfsense.disk" value={t("common.percent", { value: diskUsage.toFixed(2) })} />}
|
||||
</Container>
|
||||
|
||||
@@ -52,6 +52,7 @@ export default function Component({ service }) {
|
||||
let status;
|
||||
let uptime = 0;
|
||||
let logIndex = 0;
|
||||
const hasLogs = Array.isArray(monitor.logs) && monitor.logs.length > 0;
|
||||
|
||||
switch (monitor.status) {
|
||||
case 0:
|
||||
@@ -62,7 +63,7 @@ export default function Component({ service }) {
|
||||
break;
|
||||
case 2:
|
||||
status = t("uptimerobot.up");
|
||||
uptime = t("common.duration", { value: monitor.logs[0].duration });
|
||||
uptime = t("common.duration", { value: hasLogs ? monitor.logs[0].duration : 0 });
|
||||
logIndex = 1;
|
||||
break;
|
||||
case 8:
|
||||
@@ -76,14 +77,14 @@ export default function Component({ service }) {
|
||||
break;
|
||||
}
|
||||
|
||||
const lastDown = new Date(monitor.logs[logIndex].datetime * 1000).toLocaleString();
|
||||
const downDuration = t("common.duration", { value: monitor.logs[logIndex].duration });
|
||||
const hideDown = logIndex === 1 && monitor.logs[logIndex].type !== 1;
|
||||
const lastDown = hasLogs ? new Date(monitor.logs[logIndex].datetime * 1000).toLocaleString() : "";
|
||||
const downDuration = t("common.duration", { value: hasLogs ? monitor.logs[logIndex].duration : 0 });
|
||||
const hideDown = !hasLogs || (logIndex === 1 && monitor.logs[logIndex].type !== 1);
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="uptimerobot.status" value={status} />
|
||||
<Block label="uptimerobot.uptime" value={uptime} />
|
||||
{hasLogs && <Block label="uptimerobot.uptime" value={uptime} />}
|
||||
{!hideDown && <Block label="uptimerobot.lastDown" value={lastDown} />}
|
||||
{!hideDown && <Block label="uptimerobot.downDuration" value={downDuration} />}
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user