Compare commits

..

35 Commits

Author SHA1 Message Date
shamoon
4239e8fe97 Update contributing / development guidelines 2024-04-08 08:11:55 -07:00
shamoon
f82a122e26 Fix site monitor with error 2024-04-06 20:00:16 -07:00
shamoon
d49a06efd9 Fix: rename pialert to netalertx (#3253) 2024-04-06 17:35:12 -07:00
mrmorganmurphy
9904c2db2f Documentation: update diskstation instructions (#3230) 2024-04-03 10:03:12 -07:00
XavierDupuis
60db01cc57 Documentation: fix allowed fields uniformity (#3224) 2024-04-02 15:42:34 -07:00
rgon10
4e69ea6088 Fix: TrueNAS Core support for pool stats (#3206)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-04-01 14:32:39 -07:00
dependabot[bot]
268d8efa0e Chore(deps-dev): Bump tailwindcss from 3.4.1 to 3.4.3 (#3214)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.1 to 3.4.3.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.3/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.1...v3.4.3)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 14:18:39 -07:00
dependabot[bot]
43bbb69d53 Chore(deps-dev): Bump eslint-plugin-react from 7.33.2 to 7.34.1 (#3213)
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.33.2 to 7.34.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.34.1/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.33.2...v7.34.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 14:18:29 -07:00
dependabot[bot]
cdfb5a11f7 Chore(deps): Bump recharts from 2.12.2 to 2.12.3 (#3215)
Bumps [recharts](https://github.com/recharts/recharts) from 2.12.2 to 2.12.3.
- [Release notes](https://github.com/recharts/recharts/releases)
- [Changelog](https://github.com/recharts/recharts/blob/3.x/CHANGELOG.md)
- [Commits](https://github.com/recharts/recharts/compare/v2.12.2...v2.12.3)

---
updated-dependencies:
- dependency-name: recharts
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 14:18:07 -07:00
Luca Herrero
2ebcb311e8 Fix: homebridge widget with numeric username or password (#3220) 2024-04-01 14:17:56 -07:00
dependabot[bot]
0d7b77260f Chore(deps-dev): Bump postcss from 8.4.35 to 8.4.38 (#3212)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.35 to 8.4.38.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.35...8.4.38)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 10:18:28 -07:00
dependabot[bot]
6f07acab15 Chore(deps): Bump follow-redirects from 1.15.5 to 1.15.6 (#3211)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 10:17:34 -07:00
shamoon
29447c55ff Fix: remove invalid form attribute (#3210) 2024-04-01 07:49:58 -07:00
Jalin Wang
dd819ad677 Documentation: correct link for Docker automatic service discovery (#3208) 2024-04-01 07:25:14 -07:00
Jalin Wang
212e517ebb Chore: fix ypos in the PR template (#3209)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-04-01 07:23:52 -07:00
shamoon
29ac7bfea7 Feature: Support pi-hole v6 (#3207) 2024-03-31 20:34:46 -07:00
shamoon
b0d57866a0 Fix glances service widgets handling of default version 2024-03-29 06:32:25 -07:00
shamoon
97d193faf1 Fix crowdsec widget with no bans / alerts 2024-03-28 21:50:10 -07:00
shamoon
d4c0e482d3 Feature: crowdsec widget (#3197) 2024-03-28 13:39:40 -07:00
shamoon
def9b27006 Enhancement: support for glances v4 (#3196) 2024-03-28 11:16:00 -05:00
ThorTheStorm
4fe4ae9622 Documentation: Update authentik api key info (#3195)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-03-28 09:51:07 -05:00
github-actions[bot]
0af975b3d9 New Crowdin translations by GitHub Action (#3096)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-03-24 00:09:15 -07:00
shamoon
01a2495e47 Fix: correctly handle direct tab navigation with encoded chars (#3172) 2024-03-23 23:22:27 -07:00
SunnyCloudy
e4b4eba445 Fix: Glances widget display (#3164)
Co-Authored-By: shamoon <4887959+shamoon@users.noreply.github.com>
2024-03-23 23:21:02 -07:00
Dawud
885b2624a8 Enhancement: support Jackett widget with admin password (#3097) (#3165)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-03-23 01:34:07 -07:00
Joseph M
f06214a295 Documentation: note that "issue" permissions are also required for Gitea widget (#3157) 2024-03-21 11:59:31 -07:00
zmweske
7627f9c5a7 Documentation: add info re pfSense API token auth (#3145) 2024-03-20 13:21:56 -07:00
she11sh0cked
556450c8de Fix: log error when getting services from Docker server fails (#3147) 2024-03-20 07:26:11 -07:00
Lukas H
edc38c93e2 Documentation: fix minor typo (#3136) 2024-03-18 15:56:04 -07:00
shamoon
b9e1a514cb Update settings.md 2024-03-17 08:06:49 -07:00
shamoon
7e0fbed06b Remove commented out code 2024-03-15 07:23:19 -07:00
Rob Gonnella
358633638f Documentation: Adds sticky cookie note for k8s multiple replica setups (#3120) 2024-03-14 21:07:35 -07:00
shamoon
fa1d343f2a Documentation: add optional auth to whatsupdocker documentation
Co-Authored-By: zmweske <31971632+zmweske@users.noreply.github.com>
2024-03-14 21:07:35 -07:00
RoboMagus
247f73f0db Fix: Add alternative 'offline' status to EspHome widget (#3107) 2024-03-11 07:06:27 -07:00
shamoon
54db9ac551 Fix: field parsing fails with docker labels (#3101) 2024-03-10 22:27:38 -07:00
107 changed files with 2149 additions and 751 deletions

View File

@@ -1,12 +1,12 @@
## Proposed change
<!--
Please include a summary of the change. Screenshots and / or videos can also be helpful if appropriate.
Please include a summary of the change. Screenshots and/or videos can also be helpful if appropriate.
*** Please see the development guidelines for new widgets: https://gethomepage.dev/latest/more/development/#service-widget-guidelines
*** If you do not follow these guidelines your PR will likely be closed without review.
New service widgets should include example(s) of relevant relevant API output as well updates to the docs for the new widget.
New service widgets should include example(s) of relevant API output as well as updates to the docs for the new widget.
-->
Closes # (issue)

View File

@@ -48,11 +48,15 @@ Please see information in the docs regarding [code formatting with pre-commit ho
By contributing, you agree that your contributions will be licensed under its GNU General Public License.
## Use of AI for pull requests
In general, homepage does not accept "AI-generated" PRs. If you choose to use something like that to aid the development process to generate a significant proportion of the pull request, please make sure this is explicitly stated in the PR itself.
## References
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/main/CONTRIBUTING.md)
# Automatic Respository Maintenance
## Automatic Respository Maintenance
The homepage team appreciates all effort and interest from the community in filing bug reports, creating feature requests, sharing ideas and helping other community members. That said, in an effort to keep the repository organized and managebale the project uses automatic handling of certain areas:

View File

@@ -41,7 +41,7 @@ With features like quick search, bookmarks, weather support, a wide range of int
## Docker Integration
Homepage has built-in support for Docker, and can automatically discover and add services to the homepage based on labels. See the [Docker](https://gethomepage.dev/latest/installation/docker/) page for more information.
Homepage has built-in support for Docker, and can automatically discover and add services to the homepage based on labels. See the [Docker Service Discovery](https://gethomepage.dev/latest/configs/docker/#automatic-service-discovery) page for more information.
## Service Widgets

View File

@@ -85,7 +85,7 @@ Or you may pass the path to a local image relative to the `/app/public` director
## Theme
You can configure a fixed them (and disable the theme switcher) by passing the `theme` option, like so:
You can configure a fixed theme (and disable the theme switcher) by passing the `theme` option, like so:
```yaml
theme: dark # or light
@@ -211,13 +211,13 @@ layout:
### Five Columns
You can add a fifth column (when `style: columns` which is default) by adding:
You can add a fifth column to services (when `style: columns` which is default) by adding:
```yaml
fiveColumns: true
```
By default homepage will max out at 4 columns for column style
By default homepage will max out at 4 columns for services with `columns` style
### Collapsible sections

View File

@@ -361,3 +361,33 @@ spec:
port:
number: 3000
```
### Multiple Replicas
If you plan to deploy homepage with a replica count greater than 1, you may
want to consider enabling sticky sessions on the homepage route. This will
prevent unnecessary re-renders on page loads and window / tab focusing. The
procedure for enabling sticky sessions depends on your Ingress controller. Below
is an example using Traefik as the Ingress controller.
```
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: homepage.example.com
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`homepage.example.com`)
services:
- kind: Service
name: homepage
port: 3000
sticky:
cookie:
httpOnly: true
secure: true
sameSite: none
```

View File

@@ -39,6 +39,11 @@ Once installed, hooks will run when you commit. If the formatting isn't quite ri
See the [pre-commit documentation](https://pre-commit.com/#install) to get started.
## Preferring self-hosted open-source software
In general, homepage is meant to be a dashboard for 'self-hosted' services and we believe it is a small way we can help showcase this kind of software. While exceptions are made, mostly when there is no viable
self-hosted / open-source alternative, we ask that any widgets, etc. are developed primarily for a self-hosted tool.
## New Feature Guidelines
- New features should be linked to an existing feature request with at least 10 'up-votes'. The purpose of this requirement is to avoid the addition (and maintenance) of features that might only benefit a small number of users.

View File

@@ -12,6 +12,7 @@ The Glances widget allows you to monitor the resources (CPU, memory, storage, te
url: http://host.or.ip:port
username: user # optional if auth enabled in Glances
password: pass # optional if auth enabled in Glances
version: 4 # required only if running glances v4 or higher, defaults to 3
cpu: true # optional, enabled by default, disable by setting to false
mem: true # optional, enabled by default, disable by setting to false
cputemp: true # disabled by default

View File

@@ -7,14 +7,15 @@ Learn more about [Authentik](https://github.com/goauthentik/authentik).
This widget reads the number of active users in the system, as well as logins for the last 24 hours.
You will need to generate an API token for an existing user. To do so follow these steps:
You will need to generate an API token for an existing user under `Admin Portal` > `Directory` > `Tokens & App passwords`.
Make sure to set Intent to "API Token".
1. Navigate to the Authentik Admin Portal
2. Expand Directory, the click Tokens & App passwords
3. Click the Create button
4. Fill out the dialog making sure to set Intent to API Token
5. Click the Create button on the dialog
6. Click the copy button on the far right of the newly created API Token
The account you made the API token for also needs the following **Assigned global permissions** in Authentik:
- authentik Core
- User
- authentik Events
- Event
Allowed fields: `["users", "loginsLast24H", "failedLoginsLast24H"]`.

View File

@@ -7,10 +7,10 @@ Learn more about [Azure DevOps](https://azure.microsoft.com/en-us/products/devop
This widget has 2 functions:
1. Pipelines: checks if the relevant pipeline is running or not, and if not, reports the last status.\
1. Pipelines: checks if the relevant pipeline is running or not, and if not, reports the last status.<br>
Allowed fields: `["result", "status"]`.
2. Pull Requests: returns the amount of open PRs, the amount of the PRs you have open, and how many PRs that you open are marked as 'Approved' by at least 1 person and not yet completed.\
2. Pull Requests: returns the amount of open PRs, the amount of the PRs you have open, and how many PRs that you open are marked as 'Approved' by at least 1 person and not yet completed.<br>
Allowed fields: `["totalPrs", "myPrs", "approved"]`.
You will need to generate a personal access token for an existing user, see the [azure documentation](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#create-a-pat)

View File

@@ -0,0 +1,19 @@
---
title: Crowdsec
description: Crowdsec Widget Configuration
---
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`).
Allowed fields: `["alerts", "bans"]`.
```yaml
widget:
type: crowdsec
url: http://crowdsechostorip:port
username: localhost # machine_id in crowdsec
passowrd: password
```

View File

@@ -11,22 +11,27 @@ An optional 'volume' parameter can be supplied to specify which volume's free sp
Allowed fields: `["uptime", "volumeAvailable", "resources.cpu", "resources.mem"]`.
To access these system metrics you need to connect to the DiskStation with an account that is a member of the default `Administrators` group. That is because these metrics are requested from the API's `SYNO.Core.System` part that is only available to admin users. In order to keep the security impact as small as possible we can set the account in DSM up to limit the user's permissions inside the Synology system. In DSM 7.x, for instance, follow these steps:
To access these system metrics you need to connect to the DiskStation (`DSM`) with an account that is a member of the default `Administrators` group. That is because these metrics are requested from the API's `SYNO.Core.System` part that is only available to admin users. In order to keep the security impact as small as possible we can set the account in DSM up to limit the user's permissions inside the Synology system. In DSM 7.x, for instance, follow these steps:
1. Create a new user, i.e. `remote_stats`.
2. Set up a strong password for the new user
3. Under the `User Groups` tab of the user config dialogue check the box for `Administrators`.
4. On the `Permissions` tab check the top box for `No Access`, effectively prohibiting the user from accessing anything in the shared folders.
5. Under `Applications` check the box next to `Deny` in the header to explicitly prohibit login to all applications.
6. Now _only_ allow login to the `Download Station` application, either by
6. Now _only_ allow login to the `DSM` application, either by
- unchecking `Deny` in the respective row, or (if inheriting permission doesn't work because of other group settings)
- checking `Allow` for this app, or
- checking `By IP` for this app to limit the source of login attempts to one or more IP addresses/subnets.
7. When the `Preview` column shows `Allow` in the `Download Station` row, click `Save`.
7. When the `Preview` column shows `Allow` in the `DSM` row, click `Save`.
Now configure the widget with the correct login information and test it.
If you encounter issues during testing, make sure to uncheck the option for automatic blocking due to invalid logins under `Control Panel > Security > Protection`. If desired, this setting can be reactivated once the login is established working.
If you encounter issues during testing:
1. Make sure to uncheck the option for automatic blocking due to invalid logins under `Control Panel > Security > Protection`.
- If desired, this setting can be reactivated once the login is established working.
2. Login to your Synology DSM with the newly created account and accept terms and conditions.
3. Reattempt
```yaml
widget:

View File

@@ -7,7 +7,10 @@ Learn more about [ESPHome](https://esphome.io/).
Show the number of ESPHome devices based on their state.
Allowed fields: `["total", "online", "offline", "unknown"]`.
Allowed fields: `["total", "online", "offline", "offline_alt", "unknown"]` (maximum of 4).
By default ESPHome will only mark devices as `offline` if their address cannot be pinged. If it has an invalid config or its name cannot be resolved (by DNS) its status will be marked as `unknown`.
To group both `offline` and `unknown` devices together, users should use the `offline_alt` field instead. This sums all devices that are _not_ online together.
```yaml
widget:

View File

@@ -5,9 +5,9 @@ description: Gitea Widget Configuration
Learn more about [Gitea](https://gitea.com).
API token requires `notifications` and `repository` permissions. See the [gitea documentation](https://docs.gitea.com/development/api-usage#generating-and-listing-api-tokens) for details on generating tokens.
API token requires `notifications`, `repository` and `issue` permissions. See the [gitea documentation](https://docs.gitea.com/development/api-usage#generating-and-listing-api-tokens) for details on generating tokens.
Allowed fields: ["notifications", "issues", "pulls"]
Allowed fields: `["notifications", "issues", "pulls"]`.
```yaml
widget:

View File

@@ -17,8 +17,11 @@ widget:
url: http://glances.host.or.ip:port
username: user # optional if auth enabled in Glances
password: pass # optional if auth enabled in Glances
version: 4 # required only if running glances v4 or higher, defaults to 3
metric: cpu
diskUnits: bytes # optional, bytes (default) or bbytes. Only applies to disk
refreshInterval: 5000 # optional - in milliseconds, defaults to 1000 or more, depending on the metric
pointsLimit: 15 # optional, defaults to 15
```
_Please note, this widget does not need an `href`, `icon` or `description` on its parent service. To achieve the same effect as the examples above, see as an example:_

View File

@@ -5,7 +5,7 @@ description: Jackett Widget Configuration
Learn more about [Jackett](https://github.com/Jackett/Jackett).
Jackett must not have any authentication for the widget to work.
If Jackett has an admin password set, you must set the `password` field for the widget to work.
Allowed fields: `["configured", "errored"]`.
@@ -13,5 +13,5 @@ Allowed fields: `["configured", "errored"]`.
widget:
type: jackett
url: http://jackett.host.or.ip
key: jackettapikey
password: jackettadminpassword # optional
```

View File

@@ -0,0 +1,16 @@
---
title: NetAlertX
description: NetAlertX (formerly PiAlert) Widget Configuration
---
Learn more about [NetAlertX](https://github.com/jokob-sk/NetAlertX).
_Note that the project was renamed from PiAlert to NetAlertX._
Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`.
```yaml
widget:
type: netalertx
url: http://ip:port
```

View File

@@ -9,7 +9,7 @@ This widget adds support for [Network UPS Tools](https://networkupstools.org/) v
The default ups name is `ups`. To configure more than one ups, you must create multiple peanut services.
Allowed fields: `["battery_charge", "ups_load", "ups_status"]`
Allowed fields: `["battery_charge", "ups_load", "ups_status"]`.
!!! note

View File

@@ -9,9 +9,9 @@ This widget requires the installation of the [pfsense-api](https://github.com/ja
Once pfSense API is installed, you can set the API to be read-only in System > API > Settings.
Currently the only supported authentication mode is 'Local Database'.
There are two currently supported authentication modes: 'Local Database' and 'API Token'. For 'Local Database', use `username` and `password` with the credentials of an admin user. For 'API Token', utilize the `headers` parameter with `client_token` and `client_id` obtained from pfSense as shown below. Do not use both headers and username / password.
WAN interface to monitor can be defined by updating the `wan` param.
The interface to monitor is defined by updating the `wan` parameter. It should be referenced as it is shown under Interfaces > Assignments in pfSense.
Load is returned instead of cpu utilization. This is a limitation in the pfSense API due to the complexity of this calculation. This may become available in future versions.
@@ -21,7 +21,10 @@ Allowed fields: `["load", "memory", "temp", "wanStatus", "wanIP", "disk"]` (maxi
widget:
type: pfsense
url: http://pfsense.host.or.ip:port
username: user
password: pass
username: user # optional, or API token
password: pass # optional, or API token
headers: # optional, or username/password
Authorization: client_id client_token
wan: igb0
fields: ["load", "memory", "temp", "wanStatus"] # optional
```

View File

@@ -1,16 +0,0 @@
---
title: PiAlert
description: PiAlert Widget Configuration
---
Learn more about [PiAlert](https://github.com/jokob-sk/Pi.Alert).
Note that [pucherot/PiAlert](https://github.com/pucherot/Pi.Alert) has been abandoned and might not work properly.
Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`.
```yaml
widget:
type: pialert
url: http://ip:port
```

View File

@@ -15,6 +15,7 @@ Note: by default the "blocked" and "blocked_percent" fields are merged e.g. "1,2
widget:
type: pihole
url: http://pi.hole.or.ip
version: 6 # required if running v6 or higher, defaults to 5
key: yourpiholeapikey # optional
```

View File

@@ -5,7 +5,7 @@ description: Prometheus Widget Configuration
Learn more about [Prometheus](https://github.com/prometheus/prometheus).
Allowed fields: `["targets_up", "targets_down", "targets_total"]`
Allowed fields: `["targets_up", "targets_down", "targets_total"]`.
```yaml
widget:

View File

@@ -5,7 +5,7 @@ description: Pterodactyl Widget Configuration
Learn more about [Pterodactyl](https://github.com/pterodactyl).
Allowed fields: `["nodes", "servers"]`
Allowed fields: `["nodes", "servers"]`.
```yaml
widget:

View File

@@ -11,6 +11,8 @@ To create an API Key, follow [the official TrueNAS documentation](https://www.tr
A detailed pool listing is disabled by default, but can be enabled with the `enablePools` option.
To use the `enablePools` option with TrueNAS Core, the `nasType` parameter is required.
```yaml
widget:
type: truenas
@@ -19,4 +21,5 @@ widget:
password: pass # not required if using api key
key: yourtruenasapikey # not required if using username / password
enablePools: true # optional, defaults to false
nasType: scale # defaults to scale, must be set to 'core' if using enablePools with TrueNAS Core
```

View File

@@ -1,11 +1,9 @@
---
title: Whats Up Docker
description: WhatsUpDocker Widget Configuration
title: What's Up Docker
description: What's Up Docker Widget Configuration
---
Learn more about [Whats Up Docker](https://github.com/fmartinou/whats-up-docker).
Currently requires unauthenticated whatsupdocker instance.
Learn more about [What's Up Docker](https://github.com/fmartinou/whats-up-docker).
Allowed fields: `["monitoring", "updates"]`.
@@ -13,4 +11,6 @@ Allowed fields: `["monitoring", "updates"]`.
widget:
type: whatsupdocker
url: http://whatsupdocker:port
username: username # optional
password: password # optional
```

View File

@@ -44,6 +44,7 @@ nav:
- widgets/services/channelsdvrserver.md
- widgets/services/cloudflared.md
- widgets/services/coin-market-cap.md
- widgets/services/crowdsec.md
- widgets/services/customapi.md
- widgets/services/deluge.md
- widgets/services/diskstation.md

660
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,7 +16,7 @@
"classnames": "^2.5.1",
"compare-versions": "^6.1.0",
"dockerode": "^4.0.2",
"follow-redirects": "^1.15.5",
"follow-redirects": "^1.15.6",
"gamedig": "^4.3.1",
"i18next": "^21.10.0",
"js-yaml": "^4.1.0",
@@ -33,7 +33,7 @@
"react-dom": "^18.2.0",
"react-i18next": "^11.18.6",
"react-icons": "^4.12.0",
"recharts": "^2.12.2",
"recharts": "^2.12.3",
"rrule": "^2.8.1",
"swr": "^1.3.0",
"systeminformation": "^5.22.0",
@@ -52,12 +52,12 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.35",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"tailwind-scrollbar": "^3.0.5",
"tailwindcss": "^3.4.1",
"tailwindcss": "^3.4.3",
"typescript": "^4.9.5"
},
"optionalDependencies": {

553
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Vanlyn",
"offline_alt": "Vanlyn",
"online": "Aanlyn",
"total": "Totaal",
"unknown": "Onbekend"
@@ -863,5 +864,13 @@
"users": "Gebruikers",
"recipes": "Resepte",
"keywords": "Sleutelwoorde"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "Met Waarborg",
"locations": "Plekke",
"labels": "Etikette",
"users": "Gebruikers",
"totalValue": "Totale Waarde"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "غير متصل",
"offline_alt": "غير متصل",
"online": "مُتّصل",
"total": "المجموع",
"unknown": "مجهول"
@@ -863,5 +864,13 @@
"users": "المستخدمون",
"recipes": "وصفات",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "المستخدمون",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Изключен",
"offline_alt": "Изключен",
"online": "Online",
"total": "Общо",
"unknown": "Неизв."
@@ -863,5 +864,13 @@
"users": "Потребители",
"recipes": "Рецепти",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Потребители",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Fora de línia",
"offline_alt": "Fora de línia",
"online": "Online",
"total": "Total",
"unknown": "Desconegut"
@@ -863,5 +864,13 @@
"users": "Usuaris",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Usuaris",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Celkem",
"unknown": "Neznámý"
@@ -863,5 +864,13 @@
"users": "Uživatelé",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Uživatelé",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Ukendt"
@@ -863,5 +864,13 @@
"users": "Brugere",
"recipes": "Opskrifter",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Brugere",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Gesamt",
"unknown": "Unbekannt"
@@ -863,5 +864,13 @@
"users": "Benutzer",
"recipes": "Rezepte",
"keywords": "Schlagwörter"
},
"homebox": {
"items": "Objekte",
"totalWithWarranty": "Mit Garantie",
"locations": "Orte",
"labels": "Labels",
"users": "Benutzer",
"totalValue": "Gesamtwert"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Εκτός σύνδεσης",
"offline_alt": "Εκτός σύνδεσης",
"online": "Συνδεδεμένοι",
"total": "Σύνολο",
"unknown": "Άγνωστο"
@@ -863,5 +864,13 @@
"users": "Χρήστες",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Χρήστες",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Unknown"
@@ -276,7 +277,7 @@
"approved": "Approved",
"available": "Available"
},
"pialert": {
"netalertx": {
"total": "Total",
"connected": "Connected",
"new_devices": "New Devices",
@@ -871,5 +872,9 @@
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
},
"crowdsec": {
"alerts": "Alerts",
"bans": "Bans"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Malkonekta",
"offline_alt": "Malkonekta",
"online": "Online",
"total": "Totalo",
"unknown": "Nekonata"
@@ -863,5 +864,13 @@
"users": "Uzantoj",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Uzantoj",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Desconectado",
"offline_alt": "Desconectado",
"online": "En línea",
"total": "Total",
"unknown": "Desconocido"
@@ -544,7 +545,7 @@
"channels": "Canales",
"hd": "Alta definición",
"tunerCount": "Tuners",
"channelNumber": "Channel",
"channelNumber": "Canal",
"channelNetwork": "Network",
"signalStrength": "Strength",
"signalQuality": "Quality",
@@ -850,9 +851,9 @@
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"images": "Imágenes",
"imageSize": "Images Size",
"galleries": "Galleries",
"galleries": "Galerías",
"performers": "Performers",
"studios": "Studios",
"movies": "Películas",
@@ -863,5 +864,13 @@
"users": "Usuarios",
"recipes": "Recetas",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "Con Garantía",
"locations": "Ubicaciones",
"labels": "Labels",
"users": "Usuarios",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Guztira",
"unknown": "Ezezaguna"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Yhteensä",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Hors ligne",
"offline_alt": "Hors ligne",
"online": "En ligne",
"total": "Total",
"unknown": "Inconnu"
@@ -863,5 +864,13 @@
"users": "Utilisateurs",
"recipes": "Recettes",
"keywords": "Mots-clés"
},
"homebox": {
"items": "Objets",
"totalWithWarranty": "Avec garantie",
"locations": "Emplacements",
"labels": "Étiquettes",
"users": "Utilisateurs",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "כבוי",
"offline_alt": "כבוי",
"online": "Online",
"total": "סה\"כ",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -11,14 +11,14 @@
"percent": "{{value, percent}}",
"number": "{{value, number}}",
"ms": "{{value, number}}",
"date": "{{value, date}}",
"date": "{value, date}",
"relativeDate": "{{value, relativeDate}}",
"uptime": "{{value, uptime}}",
"months": "mo",
"months": "माह",
"days": "d",
"hours": "h",
"hours": "घं.",
"minutes": "m",
"seconds": "s"
"seconds": "पल"
},
"widget": {
"missing_type": "Missing Widget Type: {{type}}",
@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Unknown"
@@ -411,7 +412,7 @@
"free": "Free",
"used": "Used",
"days": "d",
"hours": "h",
"hours": "घं.",
"crit": "Crit",
"read": "Read",
"write": "Write",
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Ukupno",
"unknown": "Nepoznato"
@@ -863,5 +864,13 @@
"users": "Korisnici",
"recipes": "Recepti",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Korisnici",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Nem elérhető",
"offline_alt": "Nem elérhető",
"online": "Csatlakozva",
"total": "Összes",
"unknown": "Ismeretlen"
@@ -124,8 +125,8 @@
"flood": {
"download": "Letöltés",
"upload": "Feltöltés",
"leech": "Letöltés",
"seed": "Feltöltés"
"leech": "Leech",
"seed": "Seed"
},
"freshrss": {
"subscriptions": "Előfizetések",
@@ -202,14 +203,14 @@
"transmission": {
"download": "Letöltés",
"upload": "Feltöltés",
"leech": "Letöltés",
"seed": "Feltöltés"
"leech": "Leech",
"seed": "Seed"
},
"qbittorrent": {
"download": "Letöltés",
"upload": "Feltöltés",
"leech": "Letöltés",
"seed": "Feltöltés"
"leech": "Leech",
"seed": "Seed"
},
"qnap": {
"cpuUsage": "Processzor Használat",
@@ -222,14 +223,14 @@
"deluge": {
"download": "Letöltés",
"upload": "Feltöltés",
"leech": "Letöltés",
"seed": "Feltöltés"
"leech": "Leech",
"seed": "Seed"
},
"downloadstation": {
"download": "Letöltés",
"upload": "Feltöltés",
"leech": "Letöltés",
"seed": "Feltöltés"
"leech": "Leech",
"seed": "Seed"
},
"sonarr": {
"wanted": "Keresett",
@@ -396,7 +397,7 @@
"proxmox": {
"mem": "RAM",
"cpu": "Processzor",
"lxc": "LXC",
"lxc": "LXC-k",
"vms": "VM-ek"
},
"glances": {
@@ -525,7 +526,7 @@
"playlists": "Lejátszási listák"
},
"truenas": {
"load": "Rendszerterheltség",
"load": "Rendszerterhelés",
"uptime": "Üzemidő",
"alerts": "Riasztások"
},
@@ -543,14 +544,14 @@
"hdhomerun": {
"channels": "Csatornák",
"hd": "HD",
"tunerCount": "Tuners",
"channelNumber": "Channel",
"channelNetwork": "Network",
"signalStrength": "Strength",
"signalQuality": "Quality",
"symbolQuality": "Quality",
"tunerCount": "Tuner-ek",
"channelNumber": "Csatorna",
"channelNetwork": "Hálózat",
"signalStrength": "Erősség",
"signalQuality": "Minőség",
"symbolQuality": "Minőség",
"networkRate": "Bitráta",
"clientIP": "Client"
"clientIP": "Kliens"
},
"scrutiny": {
"passed": "Megfelelt",
@@ -797,10 +798,10 @@
},
"openwrt": {
"uptime": "Üzemidő",
"cpuLoad": "CPU Load Avg (5m)",
"cpuLoad": "Átlag CPU terhelés (5p)",
"up": "Fel",
"down": "Le",
"bytesTx": "Transmitted",
"bytesTx": "Továbbított",
"bytesRx": "Fogadott"
},
"uptimerobot": {
@@ -833,35 +834,43 @@
"criticals": "Kritikusok"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"events": "Események",
"plants": "Növények",
"photos": "Fényképek",
"species": "Species"
"species": "Fajok"
},
"gitea": {
"notifications": "Notifications",
"notifications": "Üzenetek",
"issues": "Problémák",
"pulls": "Pull Requests"
"pulls": "Pull request-ek"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"scenes": "Jelenetek",
"scenesPlayed": "Lejátszott jelenetek",
"playCount": "Összes leátszás",
"playDuration": "Nézett idő",
"sceneSize": "Jelenetek mérete",
"sceneDuration": "Jelenetek hossza",
"images": "Képek",
"imageSize": "Képek mérete",
"galleries": "Galériák",
"performers": "Előadók",
"studios": "Stúdiók",
"movies": "Film",
"tags": "Címkék",
"oCount": "O Count"
"oCount": "O szám"
},
"tandoor": {
"users": "Felhasználók",
"recipes": "Receptek",
"keywords": "Keywords"
"keywords": "Kulcsszavak"
},
"homebox": {
"items": "Tárgyak",
"totalWithWarranty": "Garanciával",
"locations": "Helyek",
"labels": "Címkék",
"users": "Felhasználók",
"totalValue": "Teljes érték"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Tidak Diketahui"
@@ -863,5 +864,13 @@
"users": "Pengguna",
"recipes": "Resep",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Pengguna",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Non in linea",
"offline_alt": "Non in linea",
"online": "Online",
"total": "Totale",
"unknown": "Sconosciuto"
@@ -863,5 +864,13 @@
"users": "Utenti",
"recipes": "Ricette",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Utenti",
"totalValue": "Total Value"
}
}

View File

@@ -14,7 +14,7 @@
"date": "{{value, date}}",
"relativeDate": "{{value, relativeDate}}",
"uptime": "{{value, uptime}}",
"months": "mo",
"months": "",
"days": "日",
"hours": "時間",
"minutes": "分",
@@ -92,7 +92,7 @@
"siteMonitor": {
"http_status": "HTTP ステータス",
"error": "エラー",
"response": "Response",
"response": "応答",
"down": "下へ",
"up": "上へ",
"not_available": "利用できません。"
@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "オフライン",
"offline_alt": "オフライン",
"online": "オンライン",
"total": "合計",
"unknown": "不明"
@@ -133,21 +134,21 @@
},
"fritzbox": {
"connectionStatus": "状態",
"connectionStatusUnconfigured": "Unconfigured",
"connectionStatusConnecting": "Connecting",
"connectionStatusAuthenticating": "Authenticating",
"connectionStatusPendingDisconnect": "Pending Disconnect",
"connectionStatusDisconnecting": "Disconnecting",
"connectionStatusDisconnected": "Disconnected",
"connectionStatusUnconfigured": "未設定",
"connectionStatusConnecting": "接続中",
"connectionStatusAuthenticating": "認証中",
"connectionStatusPendingDisconnect": "接続を切断する",
"connectionStatusDisconnecting": "接続を切断中",
"connectionStatusDisconnected": "切断されました",
"connectionStatusConnected": "接続済み",
"uptime": "稼働時間",
"maxDown": "Max. Down",
"maxUp": "Max. Up",
"maxDown": "最大ダウン",
"maxUp": "最大アップ",
"down": "下へ",
"up": "上へ",
"received": "受信済み",
"sent": "送信済み",
"externalIPAddress": "Ext. IP"
"externalIPAddress": "退出ID"
},
"caddy": {
"upstreams": "アップストリーム",
@@ -543,7 +544,7 @@
"hdhomerun": {
"channels": "チャンネル",
"hd": "HD",
"tunerCount": "Tuners",
"tunerCount": "チューナー",
"channelNumber": "チャンネル",
"channelNetwork": "ネットワーク",
"signalStrength": "強さ",
@@ -562,7 +563,7 @@
"total": "合計"
},
"peanut": {
"battery_charge": "Battery Charge",
"battery_charge": "バッテリー充電",
"ups_load": "UPS 負荷",
"ups_status": "UPS 状態",
"online": "オンライン",
@@ -825,43 +826,51 @@
"noEventsFound": "予定が見つかりません"
},
"romm": {
"platforms": "Platforms",
"totalRoms": "Total ROMs"
"platforms": "プラットフォーム",
"totalRoms": "ROMの合計"
},
"netdata": {
"warnings": "警告",
"criticals": "重大"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"events": "イベント",
"plants": "植物",
"photos": "写真",
"species": "Species"
"species": ""
},
"gitea": {
"notifications": "Notifications",
"notifications": "通知",
"issues": "課題",
"pulls": "Pull Requests"
"pulls": "プルリクエスト"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"scenes": "シーン",
"scenesPlayed": "再生されたシーン",
"playCount": "合計再生数",
"playDuration": "視聴時間",
"sceneSize": "シーンサイズ",
"sceneDuration": "シーンの長さ",
"images": "画像",
"imageSize": "画像サイズ",
"galleries": "ギャラリー",
"performers": "出演者",
"studios": "スタジオ",
"movies": "映画",
"tags": "タグ",
"oCount": "O Count"
"oCount": "O カウント"
},
"tandoor": {
"users": "ユーザ",
"recipes": "レシピ",
"keywords": "Keywords"
"keywords": "キーワード"
},
"homebox": {
"items": "アイテム",
"totalWithWarranty": "保証付き",
"locations": "場所",
"labels": "ラベル",
"users": "ユーザ",
"totalValue": "合計値"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "중지",
"offline_alt": "중지",
"online": "Online",
"total": "총합",
"unknown": "알 수 없음"
@@ -863,5 +864,13 @@
"users": "사용자",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "사용자",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Bezsaistē",
"offline_alt": "Bezsaistē",
"online": "Online",
"total": "Kopā",
"unknown": "Nezināms"
@@ -863,5 +864,13 @@
"users": "Lietotāji",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Lietotāji",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Luar talian",
"offline_alt": "Luar talian",
"online": "Dalam Talian",
"total": "Jumlah",
"unknown": "Tidak Diketahui"
@@ -863,5 +864,13 @@
"users": "Pengguna",
"recipes": "Resipi",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Pengguna",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Onbereikbaar",
"offline_alt": "Onbereikbaar",
"online": "Bereikbaar",
"total": "Totaal",
"unknown": "Onbekend"
@@ -863,5 +864,13 @@
"users": "Gebruikers",
"recipes": "Recepten",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "Met garantie",
"locations": "Locaties",
"labels": "Labels",
"users": "Gebruikers",
"totalValue": "Totale waarde"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Nieosiągalny",
"offline_alt": "Nieosiągalny",
"online": "Dostępny",
"total": "Całkowite",
"unknown": "Nieznany"
@@ -863,5 +864,13 @@
"users": "Użytkownicy",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Użytkownicy",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Desligado",
"offline_alt": "Desligado",
"online": "Online",
"total": "Total",
"unknown": "Desconhecido"
@@ -863,5 +864,13 @@
"users": "Utilizadores",
"recipes": "Receitas",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Utilizadores",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Desligado",
"offline_alt": "Desligado",
"online": "Online",
"total": "Total",
"unknown": "Desconhecido"
@@ -863,5 +864,13 @@
"users": "Utilizadores",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Utilizadores",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Necunoscut"
@@ -863,5 +864,13 @@
"users": "Utilizatori",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Utilizatori",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Не в сети",
"offline_alt": "Не в сети",
"online": "В сети",
"total": "Всего",
"unknown": "Неизвестен"
@@ -830,38 +831,46 @@
},
"netdata": {
"warnings": "Предупреждения",
"criticals": "Криты"
"criticals": "Критические"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"events": "События",
"plants": "Растения",
"photos": "Фото",
"species": "Species"
"species": "Виды"
},
"gitea": {
"notifications": "Notifications",
"notifications": "Уведомления",
"issues": "Вопросы",
"pulls": "Pull Requests"
"pulls": "Запросы на слияние (Pull Request)"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"scenes": "Сцены",
"scenesPlayed": "Проигранных сцен",
"playCount": "Всего проиграно",
"playDuration": "Просмотрено времени",
"sceneSize": "Размер сцены",
"sceneDuration": "Длительность сцен",
"images": "Изображения",
"imageSize": "Размер изображений",
"galleries": "Галереи",
"performers": "Исполнители",
"studios": "Студии",
"movies": "Фильмы",
"tags": "Теги",
"oCount": "O Count"
"oCount": "0"
},
"tandoor": {
"users": "Пользователи",
"recipes": "Рецепты",
"keywords": "Keywords"
"keywords": "Ключевые слова"
},
"homebox": {
"items": "Элементы",
"totalWithWarranty": "С гарантией",
"locations": "Местоположения",
"labels": "Ярлыки",
"users": "Пользователи",
"totalValue": "Общая стоимость"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Nedostupný",
"offline_alt": "Nedostupný",
"online": "Online",
"total": "Celkovo",
"unknown": "Neznáme"
@@ -833,28 +834,28 @@
"criticals": "Kritické"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"events": "Udalosti",
"plants": "Rastliny",
"photos": "Fotografie",
"species": "Species"
"species": "Druhy"
},
"gitea": {
"notifications": "Notifications",
"notifications": "Oznámenia",
"issues": "Problémy",
"pulls": "Pull Requests"
"pulls": "Pull requesty"
},
"stash": {
"scenes": "Scenes",
"scenes": "Scény",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"playCount": "Celkovo prehraní",
"playDuration": "Pozeraný čas",
"sceneSize": "Veľkosť obrazovky",
"sceneDuration": "Dĺžka scény",
"images": "Obrázky",
"imageSize": "Veľkosť obrázkov",
"galleries": "Galérie",
"performers": "Herci",
"studios": "Štúdiá",
"movies": "Filmy",
"tags": "Štítky",
"oCount": "O Count"
@@ -862,6 +863,14 @@
"tandoor": {
"users": "Používatelia",
"recipes": "Recepty",
"keywords": "Keywords"
"keywords": "Kľúčové slová"
},
"homebox": {
"items": "Položky",
"totalWithWarranty": "So zárukou",
"locations": "Umiestnenia",
"labels": "Labels",
"users": "Používatelia",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Ni povezan",
"offline_alt": "Ni povezan",
"online": "Na spletu",
"total": "Skupaj",
"unknown": "Neznano"
@@ -863,5 +864,13 @@
"users": "Uporabniki",
"recipes": "Recepti",
"keywords": "Ključne besede"
},
"homebox": {
"items": "Predmeti",
"totalWithWarranty": "Z garancijo",
"locations": "Lokacije",
"labels": "Oznake",
"users": "Uporabniki",
"totalValue": "Skupna vrednost"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Offline",
"offline_alt": "Offline",
"online": "Online",
"total": "Total",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Användare",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Användare",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "ఆఫ్‌లైన్",
"offline_alt": "ఆఫ్‌లైన్",
"online": "Online",
"total": "మొత్తం",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "వినియోగదారులు",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "వినియోగదారులు",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "ออฟไลน์",
"offline_alt": "ออฟไลน์",
"online": "Online",
"total": "ทั้งหมด",
"unknown": "ไม่ทราบ"
@@ -863,5 +864,13 @@
"users": "ผู้ใช้",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "ผู้ใช้",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Çevrimdışı",
"offline_alt": "Çevrimdışı",
"online": "Çevrimiçi",
"total": "Toplam",
"unknown": "Bilinmiyor"
@@ -136,18 +137,18 @@
"connectionStatusUnconfigured": "Yapılandırılmamış",
"connectionStatusConnecting": "Bağlanıyor",
"connectionStatusAuthenticating": "Kimlik doğrulanıyor",
"connectionStatusPendingDisconnect": "Pending Disconnect",
"connectionStatusPendingDisconnect": "Bağlantının Kesilmesi Bekleniyor",
"connectionStatusDisconnecting": "Bağlantı kesiliyor...",
"connectionStatusDisconnected": "Bağlantı kesildi",
"connectionStatusConnected": "Bağlandı",
"uptime": "Çalışma Süresi",
"maxDown": "Max. Down",
"maxUp": "Max. Up",
"maxDown": "Max. Indirme",
"maxUp": "Max. Gönderme",
"down": "İndirme",
"up": "Yükleme",
"received": "Alınan",
"sent": "Gönderilen",
"externalIPAddress": "Ext. IP"
"externalIPAddress": "Harici IP"
},
"caddy": {
"upstreams": "Akış",
@@ -169,7 +170,7 @@
"transcoding": "Dönüştürülüyor",
"bitrate": "Bit Oranı",
"no_active": "Aktif akış yok",
"plex_connection_error": "Check Plex Connection"
"plex_connection_error": "Plex Bağlantısı Kontrol Ediliyor"
},
"omada": {
"connectedAp": "Bağlı AP'ler",
@@ -426,7 +427,7 @@
"custom": "Özel",
"visit": "Ziyaret",
"url": "URL",
"searchsuggestion": "Suggestion"
"searchsuggestion": "Öneri"
},
"wmo": {
"0-day": "Güneşli",
@@ -498,14 +499,14 @@
"down": "İndirme"
},
"healthchecks": {
"new": "New",
"new": "Yeni",
"up": "Yükleme",
"grace": "In Grace Period",
"grace": "Tolerans Döneminde",
"down": "İndirme",
"paused": "Paused",
"paused": "Durduruldu",
"status": "Durum",
"last_ping": "Son Ping",
"never": "No pings yet"
"never": "Henüz ping yok"
},
"watchtower": {
"containers_scanned": "Tarandı",
@@ -543,14 +544,14 @@
"hdhomerun": {
"channels": "Kanallar",
"hd": "HD",
"tunerCount": "Tuners",
"channelNumber": "Channel",
"channelNetwork": "Network",
"signalStrength": "Strength",
"signalQuality": "Quality",
"symbolQuality": "Quality",
"tunerCount": "Ayarlayıcılar",
"channelNumber": "Kanal",
"channelNetwork": "",
"signalStrength": "Sağlamlık",
"signalQuality": "Kalite",
"symbolQuality": "Kalite",
"networkRate": "Bit Oranı",
"clientIP": "Client"
"clientIP": "Alıcı"
},
"scrutiny": {
"passed": "Geçti",
@@ -563,11 +564,11 @@
},
"peanut": {
"battery_charge": "Pil Yüzdesi",
"ups_load": "UPS Load",
"ups_status": "UPS Status",
"ups_load": "UPS Yükü",
"ups_status": "UPS Durumu",
"online": "Çevrimiçi",
"on_battery": "Pilde",
"low_battery": "Low Battery"
"low_battery": "Düşük Pil"
},
"nextdns": {
"wait": "Lütfen Bekleyin",
@@ -577,7 +578,7 @@
"cpuLoad": "CPU Yükü",
"memoryUsed": "Bellek Kullanımı",
"uptime": "Çalışma Süresi",
"numberOfLeases": "Leases"
"numberOfLeases": "Kiralama"
},
"xteve": {
"streams_all": "Tüm Akışlar",
@@ -585,9 +586,9 @@
"streams_xepg": "XEPG Kanalları"
},
"opendtu": {
"yieldDay": "Today",
"absolutePower": "Power",
"relativePower": "Power %",
"yieldDay": "Bugün",
"absolutePower": "Güç",
"relativePower": "Güç %",
"limit": "Limit"
},
"opnsense": {
@@ -606,25 +607,25 @@
"printer_state": "Durum",
"temp_tool": "Araç sıcaklığı",
"temp_bed": "Yatak sıcaklığı",
"job_completion": "Completion"
"job_completion": "Tamamlanma"
},
"cloudflared": {
"origin_ip": "Origin IP",
"origin_ip": "Gerçek IP",
"status": "Durum"
},
"pfsense": {
"load": "Load Avg",
"memory": "Mem Usage",
"wanStatus": "WAN Status",
"load": "Ort. Yükleme",
"memory": "Bellek Kullanımı",
"wanStatus": "WAN Durumu",
"up": "Yükleme",
"down": "İndirme",
"temp": "Sıcaklık",
"disk": "Disk Usage",
"disk": "Disk Kullanımı",
"wanIP": "WAN IP"
},
"proxmoxbackupserver": {
"datastore_usage": "Datastore",
"failed_tasks_24h": "Failed Tasks 24h",
"datastore_usage": "Veri deposu",
"failed_tasks_24h": "Başarısız Görevler 24h",
"cpu_usage": "CPU",
"memory_usage": "Bellek"
},
@@ -638,14 +639,14 @@
"up": "Sites Up",
"down": "Sites Down",
"uptime": "Çalışma Süresi",
"incident": "Incident",
"incident": "Olay",
"m": "dk"
},
"atsumeru": {
"series": "Diziler",
"archives": "Archives",
"chapters": "Chapters",
"categories": "Categories"
"archives": "Arşivler",
"chapters": "Bölümler",
"categories": "Kategoriler"
},
"komga": {
"libraries": "Kütüphane",
@@ -672,42 +673,42 @@
"queue": "Kuyruk",
"processing": "İşleniyor",
"processed": "İşlendi",
"time": "Time"
"time": "Zaman"
},
"grafana": {
"dashboards": "Dashboards",
"datasources": "Data Sources",
"totalalerts": "Total Alerts",
"alertstriggered": "Alerts Triggered"
"dashboards": "Kontrol Paneli",
"datasources": "Veri Kaynakları",
"totalalerts": "Toplam Uyarılar",
"alertstriggered": "Uyarılar Tetiklendi"
},
"nextcloud": {
"cpuload": "Cpu Load",
"memoryusage": "Memory Usage",
"freespace": "Free Space",
"activeusers": "Active Users",
"numfiles": "Files",
"numshares": "Shared Items"
"cpuload": "Cpu Yükü",
"memoryusage": "Bellek Kullanımı",
"freespace": "Boş Alan",
"activeusers": "Aktif Kullanıcılar",
"numfiles": "Dosyalar",
"numshares": "Paylaşılan Öğeler"
},
"kopia": {
"status": "Durum",
"size": "Size",
"lastrun": "Last Run",
"nextrun": "Next Run",
"size": "Boyut",
"lastrun": "Son Çalışma",
"nextrun": "Sonraki Çalışma",
"failed": "Başarısız"
},
"unmanic": {
"active_workers": "Active Workers",
"total_workers": "Total Workers",
"records_total": "Queue Length"
"active_workers": "Aktif Kullanıcılar",
"total_workers": "Toplam Kullanıcılar",
"records_total": "Sıra Uzunluğu"
},
"pterodactyl": {
"servers": "Servers",
"nodes": "Nodes"
"servers": "Sunucular",
"nodes": "Düğümler"
},
"prometheus": {
"targets_up": "Targets Up",
"targets_down": "Targets Down",
"targets_total": "Total Targets"
"targets_total": "Toplam Hedef"
},
"gatus": {
"up": "Sites Up",
@@ -715,50 +716,50 @@
"uptime": "Çalışma Süresi"
},
"ghostfolio": {
"gross_percent_today": "Today",
"gross_percent_1y": "One year",
"gross_percent_max": "All time"
"gross_percent_today": "Bugün",
"gross_percent_1y": "Bir yıl",
"gross_percent_max": "Tüm zaman"
},
"audiobookshelf": {
"podcasts": "Podcasts",
"podcasts": "Podcast",
"books": "Kitaplar",
"podcastsDuration": "Duration",
"booksDuration": "Duration"
"podcastsDuration": "Süre",
"booksDuration": "Süre"
},
"homeassistant": {
"people_home": "People Home",
"lights_on": "Lights On",
"switches_on": "Switches On"
"lights_on": "ıklar Açık",
"switches_on": ""
},
"whatsupdocker": {
"monitoring": "Monitoring",
"monitoring": "İzleme",
"updates": "Güncellemeler"
},
"calibreweb": {
"books": "Kitaplar",
"authors": "Authors",
"categories": "Categories",
"authors": "Yazarlar",
"categories": "Kategoriler",
"series": "Diziler"
},
"jdownloader": {
"downloadCount": "Kuyruk",
"downloadBytesRemaining": "Kalan",
"downloadTotalBytes": "Size",
"downloadTotalBytes": "Boyut",
"downloadSpeed": "Hız"
},
"kavita": {
"seriesCount": "Diziler",
"totalFiles": "Files"
"totalFiles": "Dosyalar"
},
"azuredevops": {
"result": "Result",
"result": "Sonuç",
"status": "Durum",
"buildId": "Build ID",
"succeeded": "Succeeded",
"notStarted": "Not Started",
"succeeded": "Başarılı",
"notStarted": "Henüz Başlamadı",
"failed": "Başarısız",
"canceled": "Canceled",
"inProgress": "In Progress",
"canceled": "İptal edildi",
"inProgress": "Sürüyor",
"totalPrs": "Total PRs",
"myPrs": "My PRs",
"approved": "Onaylı"
@@ -767,28 +768,28 @@
"status": "Durum",
"online": "Çevrimiçi",
"offline": "Çevrimdışı",
"name": "Name",
"map": "Map",
"currentPlayers": "Current players",
"name": "İsim",
"map": "Harita",
"currentPlayers": "Mevcut oyuncular",
"players": "Oyuncular",
"maxPlayers": "Max players",
"bots": "Bots",
"maxPlayers": "Maks. oyuncu",
"bots": "Botlar",
"ping": "Gecikme"
},
"urbackup": {
"ok": "Ok",
"errored": "Errors",
"noRecent": "Out of Date",
"totalUsed": "Used Storage"
"ok": "Tamam",
"errored": "Hatalar",
"noRecent": "Tarihi geçmiş",
"totalUsed": "Kullanılan depolama alanı"
},
"mealie": {
"recipes": "Recipes",
"recipes": "Tarifler",
"users": "Kullanıcılar",
"categories": "Categories",
"tags": "Tags"
"categories": "Kategoriler",
"tags": "Etiketler"
},
"openmediavault": {
"downloading": "Downloading",
"downloading": "İndiriliyor",
"total": "Toplam",
"running": "Çalışan",
"stopped": "Durduruldu",
@@ -797,71 +798,79 @@
},
"openwrt": {
"uptime": "Çalışma Süresi",
"cpuLoad": "CPU Load Avg (5m)",
"cpuLoad": "CPU Yükü Ortalaması (5dk)",
"up": "Yükleme",
"down": "İndirme",
"bytesTx": "Transmitted",
"bytesTx": "İletilen",
"bytesRx": "Alınan"
},
"uptimerobot": {
"status": "Durum",
"uptime": "Çalışma Süresi",
"lastDown": "Last Downtime",
"downDuration": "Downtime Duration",
"lastDown": "Son Kesinti",
"downDuration": "Kesinti Süresi",
"sitesUp": "Sites Up",
"sitesDown": "Sites Down",
"paused": "Paused",
"notyetchecked": "Not Yet Checked",
"paused": "Durduruldu",
"notyetchecked": "Henüz Kontrol Edilmedi",
"up": "Yükleme",
"seemsdown": "Seems Down",
"seemsdown": "Kapalı görünüyor",
"down": "İndirme",
"unknown": "Bilinmiyor"
},
"calendar": {
"inCinemas": "In cinemas",
"physicalRelease": "Physical release",
"digitalRelease": "Digital release",
"noEventsToday": "No events for today!",
"noEventsFound": "No events found"
"inCinemas": "Sinemalarda",
"physicalRelease": "Fiziksel Yayınlanan",
"digitalRelease": "Dijital Yayınlanan",
"noEventsToday": "Bugün için etkinlik yok!",
"noEventsFound": "Etkinlik bulunamadı"
},
"romm": {
"platforms": "Platforms",
"totalRoms": "Total ROMs"
"platforms": "Platformlar",
"totalRoms": "Toplam ROM'lar"
},
"netdata": {
"warnings": "Warnings",
"criticals": "Criticals"
"warnings": "Uyarılar",
"criticals": "Kritik"
},
"plantit": {
"events": "Events",
"events": "Etkinlikler",
"plants": "Plants",
"photos": "Fotoğraflar",
"species": "Species"
"species": "Türler"
},
"gitea": {
"notifications": "Notifications",
"notifications": "Bildirimler",
"issues": "Sorunlar",
"pulls": "Pull Requests"
"pulls": "Değişiklik İstekleri"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"scenes": "Sahneler",
"scenesPlayed": "Oynanan Sahneler",
"playCount": "Toplam Oynatma",
"playDuration": "İzlenen Süre",
"sceneSize": "Sahne Boyutu",
"sceneDuration": "Sahne Süresi",
"images": "Görseller",
"imageSize": "Görsel Boyutu",
"galleries": "Galeriler",
"performers": "Performers",
"studios": "Studios",
"studios": "Stüdyolar",
"movies": "Filmler",
"tags": "Tags",
"tags": "Etiketler",
"oCount": "O Count"
},
"tandoor": {
"users": "Kullanıcılar",
"recipes": "Recipes",
"keywords": "Keywords"
"recipes": "Tarifler",
"keywords": "Anahtar Sözcükler"
},
"homebox": {
"items": "Ögeler",
"totalWithWarranty": "Garantili",
"locations": "Konum",
"labels": "Etiketler",
"users": "Kullanıcılar",
"totalValue": "Toplam Değer"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Офлайн",
"offline_alt": "Офлайн",
"online": "Онлайн",
"total": "Усього",
"unknown": "Невідомий"
@@ -863,5 +864,13 @@
"users": "Користувачі",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Користувачі",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "Ngoại tuyến",
"offline_alt": "Ngoại tuyến",
"online": "Online",
"total": "Tổng",
"unknown": "Unknown"
@@ -863,5 +864,13 @@
"users": "Users",
"recipes": "Recipes",
"keywords": "Keywords"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "Users",
"totalValue": "Total Value"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "離線",
"offline_alt": "離線",
"online": "在線",
"total": "全部",
"unknown": "未知"
@@ -862,6 +863,14 @@
"tandoor": {
"users": "使用者",
"recipes": "食譜",
"keywords": "Keywords"
"keywords": "關鍵字"
},
"homebox": {
"items": "項目",
"totalWithWarranty": "With Warranty",
"locations": "位置",
"labels": "標籤",
"users": "使用者",
"totalValue": "總共"
}
}

View File

@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "离线",
"offline_alt": "离线",
"online": "在线",
"total": "总计",
"unknown": "未知"
@@ -141,13 +142,13 @@
"connectionStatusDisconnected": "未连接",
"connectionStatusConnected": "已连接",
"uptime": "运行时间",
"maxDown": "",
"maxDown": "最大下载速度",
"maxUp": "",
"down": "离线",
"up": "在线",
"received": "已接收",
"received": "最大上传数",
"sent": "已发送",
"externalIPAddress": "Ext. IP"
"externalIPAddress": "外部IP"
},
"caddy": {
"upstreams": "上行",
@@ -543,8 +544,8 @@
"hdhomerun": {
"channels": "频道",
"hd": "HD",
"tunerCount": "Tuners",
"channelNumber": "Channel",
"tunerCount": "电台数",
"channelNumber": "频道数",
"channelNetwork": "网络",
"signalStrength": "强度",
"signalQuality": "质量",
@@ -801,7 +802,7 @@
"up": "在线",
"down": "离线",
"bytesTx": "已传输",
"bytesRx": "已接收"
"bytesRx": "最大上传数"
},
"uptimerobot": {
"status": "状态",
@@ -833,28 +834,28 @@
"criticals": "严重"
},
"plantit": {
"events": "Events",
"plants": "Plants",
"events": "事件",
"plants": "植物",
"photos": "照片",
"species": "Species"
"species": "物种"
},
"gitea": {
"notifications": "Notifications",
"notifications": "通知",
"issues": "出版",
"pulls": "Pull Requests"
"pulls": "PR"
},
"stash": {
"scenes": "Scenes",
"scenesPlayed": "Scenes Played",
"playCount": "Total Plays",
"playDuration": "Time Watched",
"sceneSize": "Scenes Size",
"sceneDuration": "Scenes Duration",
"images": "Images",
"imageSize": "Images Size",
"galleries": "Galleries",
"performers": "Performers",
"studios": "Studios",
"scenes": "场景",
"scenesPlayed": "已播放场景",
"playCount": "播放总数",
"playDuration": "播放时间",
"sceneSize": "场景大小",
"sceneDuration": "场景时长",
"images": "图片",
"imageSize": "图像大小",
"galleries": "图库",
"performers": "演员",
"studios": "工作室",
"movies": "电影",
"tags": "标签",
"oCount": "O Count"
@@ -862,6 +863,14 @@
"tandoor": {
"users": "用户数",
"recipes": "食谱",
"keywords": "Keywords"
"keywords": "关键词"
},
"homebox": {
"items": "Items",
"totalWithWarranty": "With Warranty",
"locations": "Locations",
"labels": "Labels",
"users": "用户数",
"totalValue": "Total Value"
}
}

View File

@@ -50,7 +50,7 @@
"uptime": "運作時間"
},
"unifi": {
"users": "使用者",
"users": "用戶",
"uptime": "運行時間",
"days": "天",
"wan": "WAN",
@@ -109,6 +109,7 @@
},
"esphome": {
"offline": "離線",
"offline_alt": "離線",
"online": "在線",
"total": "全部",
"unknown": "未知"
@@ -368,7 +369,7 @@
"transferRate": "速率"
},
"mastodon": {
"user_count": "使用者",
"user_count": "用戶",
"status_count": "文章",
"domain_count": "網域"
},
@@ -389,7 +390,7 @@
"unread": "未讀"
},
"authentik": {
"users": "使用者",
"users": "用戶",
"loginsLast24H": "登入 (過去 24 小時)",
"failedLoginsLast24H": "登入失敗 (過去 24 小時)"
},
@@ -629,7 +630,7 @@
"memory_usage": "記憶體"
},
"immich": {
"users": "使用者",
"users": "用戶",
"photos": "照片",
"videos": "影片",
"storage": "儲存空間"
@@ -783,7 +784,7 @@
},
"mealie": {
"recipes": "食譜",
"users": "使用者",
"users": "用戶",
"categories": "類別",
"tags": "標籤"
},
@@ -860,8 +861,16 @@
"oCount": "O Count"
},
"tandoor": {
"users": "使用者",
"users": "用戶",
"recipes": "食譜",
"keywords": "Keywords"
"keywords": "關鍵字"
},
"homebox": {
"items": "項目",
"totalWithWarranty": "With Warranty",
"locations": "位置",
"labels": "標籤",
"users": "用戶",
"totalValue": "總共"
}
}

View File

@@ -12,7 +12,7 @@ export default function SiteMonitor({ group, service, style }) {
let statusTitle = t("siteMonitor.http_status");
let statusText = "";
if (error) {
if (error || (data && data.error)) {
colorClass = "text-rose-500";
statusText = t("siteMonitor.error");
statusTitle += ` ${t("siteMonitor.error")}`;

View File

@@ -3,13 +3,19 @@ import classNames from "classnames";
import { TabContext } from "utils/contexts/tab";
export function slugify(tabName) {
return tabName !== undefined ? encodeURIComponent(tabName.toString().replace(/\s+/g, "-").toLowerCase()) : "";
function slugify(tabName) {
return tabName.toString().replace(/\s+/g, "-").toLowerCase();
}
export function slugifyAndEncode(tabName) {
return tabName !== undefined ? encodeURIComponent(slugify(tabName)) : "";
}
export default function Tab({ tab }) {
const { activeTab, setActiveTab } = useContext(TabContext);
const matchesTab = decodeURI(activeTab) === slugify(tab);
return (
<li
key={tab}
@@ -21,16 +27,14 @@ export default function Tab({ tab }) {
type="button"
role="tab"
aria-controls={`#${tab}`}
aria-selected={activeTab === slugify(tab) ? "true" : "false"}
aria-selected={matchesTab ? "true" : "false"}
className={classNames(
"w-full rounded-md m-1",
activeTab === slugify(tab)
? "bg-theme-300/20 dark:bg-white/10"
: "hover:bg-theme-100/20 dark:hover:bg-white/5",
matchesTab ? "bg-theme-300/20 dark:bg-white/10" : "hover:bg-theme-100/20 dark:hover:bg-white/5",
)}
onClick={() => {
setActiveTab(slugify(tab));
window.location.hash = `#${slugify(tab)}`;
setActiveTab(slugifyAndEncode(tab));
window.location.hash = `#${slugifyAndEncode(tab)}`;
}}
>
{tab}

View File

@@ -84,8 +84,6 @@ export default function OpenMeteo({ options }) {
}
};
// if (!requesting && !location) requestLocation();
if (!location) {
return (
<ContainerButton

View File

@@ -2,11 +2,7 @@ import { getAllClasses, getInnerBlock, getBottomBlock } from "./container";
export default function ContainerForm({ children = [], options, additionalClassNames = "", callback }) {
return (
<form
type="button"
onSubmit={callback}
className={`${getAllClasses(options, additionalClassNames)} information-widget-form`}
>
<form onSubmit={callback} className={`${getAllClasses(options, additionalClassNames)} information-widget-form`}>
{getInnerBlock(children)}
{getBottomBlock(children)}
</form>

View File

@@ -13,7 +13,7 @@ async function retrieveFromGlancesAPI(privateWidgetOptions, endpoint) {
throw new Error(errorMessage);
}
const apiUrl = `${url}/api/3/${endpoint}`;
const apiUrl = `${url}/api/${privateWidgetOptions.version}/${endpoint}`;
const headers = {
"Accept-Encoding": "application/json",
};
@@ -42,9 +42,10 @@ async function retrieveFromGlancesAPI(privateWidgetOptions, endpoint) {
}
export default async function handler(req, res) {
const { index, cputemp: includeCpuTemp, uptime: includeUptime, disk: includeDisks } = req.query;
const { index, cputemp: includeCpuTemp, uptime: includeUptime, disk: includeDisks, version } = req.query;
const privateWidgetOptions = await getPrivateWidgetOptions("glances", index);
privateWidgetOptions.version = version ?? 3;
try {
const cpuData = await retrieveFromGlancesAPI(privateWidgetOptions, "cpu");

View File

@@ -10,7 +10,7 @@ import { BiError } from "react-icons/bi";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { useRouter } from "next/router";
import Tab, { slugify } from "components/tab";
import Tab, { slugifyAndEncode } from "components/tab";
import ServicesGroup from "components/services/group";
import BookmarksGroup from "components/bookmarks/group";
import Widget from "components/widgets/widget";
@@ -258,13 +258,13 @@ function Home({ initialSettings }) {
useEffect(() => {
if (!activeTab) {
const initialTab = decodeURI(asPath.substring(asPath.indexOf("#") + 1));
setActiveTab(initialTab === "/" ? slugify(tabs["0"]) : initialTab);
const initialTab = asPath.substring(asPath.indexOf("#") + 1);
setActiveTab(initialTab === "/" ? slugifyAndEncode(tabs["0"]) : initialTab);
}
});
const servicesAndBookmarksGroups = useMemo(() => {
const tabGroupFilter = (g) => g && [activeTab, ""].includes(slugify(settings.layout?.[g.name]?.tab));
const tabGroupFilter = (g) => g && [activeTab, ""].includes(slugifyAndEncode(settings.layout?.[g.name]?.tab));
const undefinedGroupFilter = (g) => settings.layout?.[g.name] === undefined;
const layoutGroups = Object.keys(settings.layout ?? {})

View File

@@ -117,6 +117,8 @@ export async function servicesFromDocker() {
return { server: serverName, services: discovered.filter((filteredService) => filteredService) };
} catch (e) {
logger.error("Error getting services from Docker server '%s': %s", serverName, e);
// a server failed, but others may succeed
return { server: serverName, services: [] };
}
@@ -391,6 +393,9 @@ export function cleanServiceGroups(groups) {
enableBlocks,
enableNowPlaying,
// glances, pihole
version,
// glances
chart,
metric,
@@ -445,6 +450,7 @@ export function cleanServiceGroups(groups) {
// truenas
enablePools,
nasType,
// unifi
site,
@@ -453,7 +459,7 @@ export function cleanServiceGroups(groups) {
let fieldsList = fields;
if (typeof fields === "string") {
try {
JSON.parse(fields);
fieldsList = JSON.parse(fields);
} catch (e) {
logger.error("Invalid fields list detected in config for service '%s'", service.name);
fieldsList = null;
@@ -517,6 +523,7 @@ export function cleanServiceGroups(groups) {
}
if (type === "truenas") {
if (enablePools !== undefined) cleanedService.widget.enablePools = JSON.parse(enablePools);
if (nasType !== undefined) cleanedService.widget.nasType = nasType;
}
if (["diskstation", "qnap"].includes(type)) {
if (volume) cleanedService.widget.volume = volume;
@@ -525,6 +532,9 @@ export function cleanServiceGroups(groups) {
if (snapshotHost) cleanedService.widget.snapshotHost = snapshotHost;
if (snapshotPath) cleanedService.widget.snapshotPath = snapshotPath;
}
if (["glances", "pihole"].includes(type)) {
if (version) cleanedService.widget.version = version;
}
if (type === "glances") {
if (metric) cleanedService.widget.metric = metric;
if (chart !== undefined) {

View File

@@ -103,7 +103,7 @@ export async function httpProxy(url, params = {}) {
try {
const [status, contentType, data, responseHeaders] = await request;
return [status, contentType, data, responseHeaders];
return [status, contentType, data, responseHeaders, params];
} catch (err) {
logger.error(
"Error calling %s//%s%s%s...",

View File

@@ -15,6 +15,7 @@ const components = {
channelsdvrserver: dynamic(() => import("./channelsdvrserver/component")),
cloudflared: dynamic(() => import("./cloudflared/component")),
coinmarketcap: dynamic(() => import("./coinmarketcap/component")),
crowdsec: dynamic(() => import("./crowdsec/component")),
iframe: dynamic(() => import("./iframe/component")),
customapi: dynamic(() => import("./customapi/component")),
deluge: dynamic(() => import("./deluge/component")),
@@ -62,6 +63,7 @@ const components = {
moonraker: dynamic(() => import("./moonraker/component")),
mylar: dynamic(() => import("./mylar/component")),
navidrome: dynamic(() => import("./navidrome/component")),
netalertx: dynamic(() => import("./netalertx/component")),
netdata: dynamic(() => import("./netdata/component")),
nextcloud: dynamic(() => import("./nextcloud/component")),
nextdns: dynamic(() => import("./nextdns/component")),
@@ -79,7 +81,7 @@ const components = {
pfsense: dynamic(() => import("./pfsense/component")),
photoprism: dynamic(() => import("./photoprism/component")),
proxmoxbackupserver: dynamic(() => import("./proxmoxbackupserver/component")),
pialert: dynamic(() => import("./pialert/component")),
pialert: dynamic(() => import("./netalertx/component")),
pihole: dynamic(() => import("./pihole/component")),
plantit: dynamic(() => import("./plantit/component")),
plex: dynamic(() => import("./plex/component")),

View File

@@ -0,0 +1,34 @@
import { useTranslation } from "next-i18next";
import Container from "components/services/widget/container";
import Block from "components/services/widget/block";
import useWidgetAPI from "utils/proxy/use-widget-api";
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { data: alerts, error: alertsError } = useWidgetAPI(widget, "alerts");
const { data: bans, error: bansError } = useWidgetAPI(widget, "bans");
if (alertsError || bansError) {
return <Container service={service} error={alertsError ?? bansError} />;
}
if (!alerts && !bans) {
return (
<Container service={service}>
<Block label="crowdsec.alerts" />
<Block label="crowdsec.bans" />
</Container>
);
}
return (
<Container service={service}>
<Block label="crowdsec.alerts" value={t("common.number", { value: alerts?.length ?? 0 })} />
<Block label="crowdsec.bans" value={t("common.number", { value: bans?.length ?? 0 })} />
</Container>
);
}

View File

@@ -0,0 +1,86 @@
import cache from "memory-cache";
import { httpProxy } from "utils/proxy/http";
import { formatApiCall } from "utils/proxy/api-helpers";
import getServiceWidget from "utils/config/service-helpers";
import createLogger from "utils/logger";
import widgets from "widgets/widgets";
const proxyName = "crowdsecProxyHandler";
const logger = createLogger(proxyName);
const sessionTokenCacheKey = `${proxyName}__sessionToken`;
async function login(widget, service) {
const url = formatApiCall(widgets[widget.type].loginURL, widget);
const [status, , data] = await httpProxy(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0", // Crowdsec requires a user-agent
},
body: JSON.stringify({
machine_id: widget.username,
password: widget.password,
scenarios: [],
}),
});
const dataParsed = JSON.parse(data);
if (!(status === 200) || !dataParsed.token) {
logger.error("Failed to login to Crowdsec API, status: %d", status);
cache.del(`${sessionTokenCacheKey}.${service}`);
}
cache.put(`${sessionTokenCacheKey}.${service}`, dataParsed.token, new Date(dataParsed.expire) - new Date());
}
export default async function crowdsecProxyHandler(req, res) {
const { group, service, endpoint } = req.query;
if (!group || !service) {
logger.error("Invalid or missing service '%s' or group '%s'", service, group);
return res.status(400).json({ error: "Invalid proxy service type" });
}
const widget = await getServiceWidget(group, service);
if (!widget || !widgets[widget.type].api) {
logger.error("Invalid or missing widget for service '%s' in group '%s'", service, group);
return res.status(400).json({ error: "Invalid widget configuration" });
}
if (!cache.get(`${sessionTokenCacheKey}.${service}`)) {
await login(widget, service);
}
const token = cache.get(`${sessionTokenCacheKey}.${service}`);
if (!token) {
return res.status(500).json({ error: "Failed to authenticate with Crowdsec" });
}
const url = new URL(formatApiCall(widgets[widget.type].api, { endpoint, ...widget }));
try {
const params = {
method: "GET",
headers: {
"User-Agent": "Mozilla/5.0", // Crowdsec requires a user-agent
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
};
logger.debug("Calling Crowdsec API endpoint: %s", endpoint);
const [status, , data] = await httpProxy(url, params);
if (status !== 200) {
logger.error("Error calling Crowdsec API: %d. Data: %s", status, data);
return res.status(status).json({ error: "Crowdsec API Error", data });
}
return res.status(status).send(data);
} catch (error) {
logger.error("Exception calling Crowdsec API: %s", error.message);
return res.status(500).json({ error: "Crowdsec API Error", message: error.message });
}
}

View File

@@ -0,0 +1,18 @@
import crowdsecProxyHandler from "./proxy";
const widget = {
api: "{url}/v1/{endpoint}",
loginURL: "{url}/v1/watchers/login",
proxyHandler: crowdsecProxyHandler,
mappings: {
alerts: {
endpoint: "alerts",
},
bans: {
endpoint: "alerts?decision_type=ban&origin=crowdsec&has_active_decision=1",
},
},
};
export default widget;

View File

@@ -19,6 +19,7 @@ export default function Component({ service }) {
<Container service={service}>
<Block label="esphome.online" />
<Block label="esphome.offline" />
<Block label="esphome.offline_alt" />
<Block label="esphome.unknown" />
<Block label="esphome.total" />
</Container>
@@ -27,6 +28,7 @@ export default function Component({ service }) {
const total = Object.keys(resultData).length;
const online = Object.entries(resultData).filter(([, v]) => v === true).length;
const notOnline = Object.entries(resultData).filter(([, v]) => v !== true).length;
const offline = Object.entries(resultData).filter(([, v]) => v === false).length;
const unknown = Object.entries(resultData).filter(([, v]) => v === null).length;
@@ -34,6 +36,7 @@ export default function Component({ service }) {
<Container service={service}>
<Block label="esphome.online" value={t("common.number", { value: online })} />
<Block label="esphome.offline" value={t("common.number", { value: offline })} />
<Block label="esphome.offline_alt" value={t("common.number", { value: notOnline })} />
<Block label="esphome.unknown" value={t("common.number", { value: unknown })} />
<Block label="esphome.total" value={t("common.number", { value: total })} />
</Container>

View File

@@ -16,15 +16,15 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit } = widget;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit, version = 3 } = widget;
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ value: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(service.widget, "cpu", {
const { data, error } = useWidgetAPI(service.widget, `${version}/cpu`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});
const { data: systemData, error: systemError } = useWidgetAPI(service.widget, "system");
const { data: quicklookData, error: quicklookError } = useWidgetAPI(service.widget, `${version}/quicklook`);
useEffect(() => {
if (data) {
@@ -71,22 +71,15 @@ export default function Component({ service }) {
/>
)}
{!chart && systemData && !systemError && (
{!chart && quicklookData && !quicklookError && (
<Block position="top-3 right-3">
<div className="text-xs opacity-50">
{systemData.linux_distro && `${systemData.linux_distro} - `}
{systemData.os_version && systemData.os_version}
</div>
<div className="text-[0.6rem] opacity-50">{quicklookData.cpu_name && quicklookData.cpu_name}</div>
</Block>
)}
{systemData && !systemError && (
{quicklookData && !quicklookError && (
<Block position="bottom-3 left-3">
{systemData.linux_distro && chart && <div className="text-xs opacity-50">{systemData.linux_distro}</div>}
{systemData.os_version && chart && <div className="text-xs opacity-50">{systemData.os_version}</div>}
{systemData.hostname && <div className="text-xs opacity-50">{systemData.hostname}</div>}
{quicklookData.cpu_name && chart && <div className="text-xs opacity-50">{quicklookData.cpu_name}</div>}
</Block>
)}

View File

@@ -16,7 +16,7 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit } = widget;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit, version = 3 } = widget;
const [, diskName] = widget.metric.split(":");
const [dataPoints, setDataPoints] = useState(
@@ -24,7 +24,7 @@ export default function Component({ service }) {
);
const [ratePoints, setRatePoints] = useState(new Array(pointsLimit).fill({ a: 0, b: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(service.widget, "diskio", {
const { data, error } = useWidgetAPI(service.widget, `${version}/diskio`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});

View File

@@ -11,11 +11,11 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval } = widget;
const { chart, refreshInterval = defaultInterval, version = 3 } = widget;
const [, fsName] = widget.metric.split("fs:");
const diskUnits = widget.diskUnits === "bbytes" ? "common.bbytes" : "common.bytes";
const { data, error } = useWidgetAPI(widget, "fs", {
const { data, error } = useWidgetAPI(widget, `${version}/fs`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});

View File

@@ -16,12 +16,12 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit } = widget;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit, version = 3 } = widget;
const [, gpuName] = widget.metric.split(":");
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ a: 0, b: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(widget, "gpu", {
const { data, error } = useWidgetAPI(widget, `${version}/gpu`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});

View File

@@ -74,13 +74,13 @@ const defaultSystemInterval = 30000; // This data (OS, hostname, distribution) i
export default function Component({ service }) {
const { widget } = service;
const { chart, refreshInterval = defaultInterval } = widget;
const { chart, refreshInterval = defaultInterval, version = 3 } = widget;
const { data: quicklookData, errorL: quicklookError } = useWidgetAPI(service.widget, "quicklook", {
const { data: quicklookData, errorL: quicklookError } = useWidgetAPI(service.widget, `${version}/quicklook`, {
refreshInterval,
});
const { data: systemData, errorL: systemError } = useWidgetAPI(service.widget, "system", {
const { data: systemData, errorL: systemError } = useWidgetAPI(service.widget, `${version}/system`, {
refreshInterval: defaultSystemInterval,
});
@@ -122,7 +122,10 @@ export default function Component({ service }) {
)}
{!chart && quicklookData?.swap === 0 && (
<div className="text-[0.6rem] opacity-50">{quicklookData.cpu_name}</div>
<div className="text-[0.6rem] opacity-50">
{systemData && systemData.linux_distro && `${systemData.linux_distro} - `}
{systemData && systemData.os_version}
</div>
)}
<div className="w-[4rem]">{!chart && <Swap quicklookData={quicklookData} className="opacity-25" />}</div>
@@ -137,7 +140,7 @@ export default function Component({ service }) {
)}
{!chart && (
<Block position="bottom-3 left-3 w-[3rem]">
<Block position="bottom-3 left-3 w-[4rem]">
<CPU quicklookData={quicklookData} className="opacity-75" />
</Block>
)}

View File

@@ -17,11 +17,11 @@ export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart } = widget;
const { refreshInterval = defaultInterval(chart), pointsLimit = defaultPointsLimit } = widget;
const { refreshInterval = defaultInterval(chart), pointsLimit = defaultPointsLimit, version = 3 } = widget;
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ value: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(service.widget, "mem", {
const { data, error } = useWidgetAPI(service.widget, `${version}/mem`, {
refreshInterval: Math.max(defaultInterval(chart), refreshInterval),
});

View File

@@ -17,13 +17,16 @@ export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, metric } = widget;
const { refreshInterval = defaultInterval(chart), pointsLimit = defaultPointsLimit } = widget;
const { refreshInterval = defaultInterval(chart), pointsLimit = defaultPointsLimit, version = 3 } = widget;
const rxKey = version === 3 ? "rx" : "bytes_recv";
const txKey = version === 3 ? "tx" : "bytes_sent";
const [, interfaceName] = metric.split(":");
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ value: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(widget, "network", {
const { data, error } = useWidgetAPI(widget, `${version}/network`, {
refreshInterval: Math.max(defaultInterval(chart), refreshInterval),
});
@@ -36,8 +39,8 @@ export default function Component({ service }) {
const newDataPoints = [
...prevDataPoints,
{
a: (interfaceData.rx * 8) / interfaceData.time_since_update,
b: (interfaceData.tx * 8) / interfaceData.time_since_update,
a: (interfaceData[rxKey] * 8) / interfaceData.time_since_update,
b: (interfaceData[txKey] * 8) / interfaceData.time_since_update,
},
];
if (newDataPoints.length > pointsLimit) {
@@ -47,7 +50,7 @@ export default function Component({ service }) {
});
}
}
}, [data, interfaceName, pointsLimit]);
}, [data, interfaceName, pointsLimit, rxKey, txKey]);
if (error) {
return (
@@ -97,7 +100,7 @@ export default function Component({ service }) {
<div className="text-xs opacity-75">
{t("common.bitrate", {
value: (interfaceData.rx * 8) / interfaceData.time_since_update,
value: (interfaceData[rxKey] * 8) / interfaceData.time_since_update,
maximumFractionDigits: 0,
})}{" "}
{t("docker.rx")}
@@ -115,7 +118,7 @@ export default function Component({ service }) {
<Block position="bottom-3 right-3">
<div className="text-xs opacity-75">
{t("common.bitrate", {
value: (interfaceData.tx * 8) / interfaceData.time_since_update,
value: (interfaceData[txKey] * 8) / interfaceData.time_since_update,
maximumFractionDigits: 0,
})}{" "}
{t("docker.tx")}

View File

@@ -22,9 +22,11 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval } = widget;
const { chart, refreshInterval = defaultInterval, version = 3 } = widget;
const { data, error } = useWidgetAPI(service.widget, "processlist", {
const memoryInfoKey = version === 3 ? 0 : "data";
const { data, error } = useWidgetAPI(service.widget, `${version}/processlist`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});
@@ -66,7 +68,7 @@ export default function Component({ service }) {
<div className="opacity-25 w-14 text-right">{item.cpu_percent.toFixed(1)}%</div>
<div className="opacity-25 w-14 text-right">
{t("common.bytes", {
value: item.memory_info[0],
value: item.memory_info[memoryInfoKey],
maximumFractionDigits: 0,
})}
</div>

View File

@@ -16,12 +16,12 @@ const defaultInterval = 1000;
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit } = widget;
const { chart, refreshInterval = defaultInterval, pointsLimit = defaultPointsLimit, version = 3 } = widget;
const [, sensorName] = widget.metric.split(":");
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ value: 0 }, 0, pointsLimit));
const { data, error } = useWidgetAPI(service.widget, "sensors", {
const { data, error } = useWidgetAPI(service.widget, `${version}/sensors`, {
refreshInterval: Math.max(defaultInterval, refreshInterval),
});

View File

@@ -1,7 +1,7 @@
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/api/3/{endpoint}",
api: "{url}/api/{endpoint}",
proxyHandler: credentialedProxyHandler,
};

View File

@@ -14,7 +14,7 @@ async function login(widget, service) {
const endpoint = "auth/login";
const api = widgets?.[widget.type]?.api;
const loginUrl = new URL(formatApiCall(api, { endpoint, ...widget }));
const loginBody = { username: widget.username, password: widget.password };
const loginBody = { username: widget.username.toString(), password: widget.password.toString() };
const headers = { "Content-Type": "application/json" };
// eslint-disable-next-line no-unused-vars
const [status, contentType, data, responseHeaders] = await httpProxy(loginUrl, {

View File

@@ -0,0 +1,68 @@
import { httpProxy } from "utils/proxy/http";
import { formatApiCall } from "utils/proxy/api-helpers";
import getServiceWidget from "utils/config/service-helpers";
import createLogger from "utils/logger";
import widgets from "widgets/widgets";
const logger = createLogger("jackettProxyHandler");
async function fetchJackettCookie(widget, loginURL) {
const url = new URL(formatApiCall(loginURL, widget));
const loginData = `password=${encodeURIComponent(widget.password)}`;
const [status, , , , params] = await httpProxy(url, {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: loginData,
});
if (!(status === 200) || !params?.headers?.Cookie) {
logger.error("Failed to fetch Jackett cookie, status: %d", status);
return null;
}
return params.headers.Cookie;
}
export default async function jackettProxyHandler(req, res) {
const { group, service, endpoint } = req.query;
if (!group || !service) {
logger.error("Invalid or missing service '%s' or group '%s'", service, group);
return res.status(400).json({ error: "Invalid proxy service type" });
}
const widget = await getServiceWidget(group, service);
if (!widget || !widgets[widget.type].api) {
logger.error("Invalid or missing widget for service '%s' in group '%s'", service, group);
return res.status(400).json({ error: "Invalid widget configuration" });
}
if (widget.password) {
const jackettCookie = await fetchJackettCookie(widget, widgets[widget.type].loginURL);
if (!jackettCookie) {
return res.status(500).json({ error: "Failed to authenticate with Jackett" });
}
// Add the cookie to the widget for use in subsequent requests
widget.headers = { ...widget.headers, Cookie: jackettCookie };
}
const url = new URL(formatApiCall(widgets[widget.type].api, { endpoint, ...widget }));
try {
const [status, , data] = await httpProxy(url, {
method: "GET",
headers: widget.headers,
});
if (status !== 200) {
logger.error("Error calling Jackett API: %d. Data: %s", status, data);
return res.status(status).json({ error: "Failed to call Jackett API", data });
}
return res.status(status).send(data);
} catch (error) {
logger.error("Exception calling Jackett API: %s", error.message);
return res.status(500).json({ error: "Server error", message: error.message });
}
}

View File

@@ -1,8 +1,9 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
import jackettProxyHandler from "./proxy";
const widget = {
api: "{url}/api/v2.0/{endpoint}?apikey={key}&configured=true",
proxyHandler: genericProxyHandler,
proxyHandler: jackettProxyHandler,
loginURL: "{url}/UI/Dashboard",
mappings: {
indexers: {

View File

@@ -0,0 +1,37 @@
import { useTranslation } from "next-i18next";
import Container from "components/services/widget/container";
import Block from "components/services/widget/block";
import useWidgetAPI from "utils/proxy/use-widget-api";
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { data: netalertxData, error: netalertxError } = useWidgetAPI(widget, "data");
if (netalertxError) {
return <Container service={service} error={netalertxError} />;
}
if (!netalertxData) {
return (
<Container service={service}>
<Block label="netalertx.total" />
<Block label="netalertx.connected" />
<Block label="netalertx.new_devices" />
<Block label="netalertx.down_alerts" />
</Container>
);
}
return (
<Container service={service}>
<Block label="netalertx.total" value={t("common.number", { value: parseInt(netalertxData[0], 10) })} />
<Block label="netalertx.connected" value={t("common.number", { value: parseInt(netalertxData[1], 10) })} />
<Block label="netalertx.new_devices" value={t("common.number", { value: parseInt(netalertxData[3], 10) })} />
<Block label="netalertx.down_alerts" value={t("common.number", { value: parseInt(netalertxData[4], 10) })} />
</Container>
);
}

View File

@@ -1,37 +0,0 @@
import { useTranslation } from "next-i18next";
import Container from "components/services/widget/container";
import Block from "components/services/widget/block";
import useWidgetAPI from "utils/proxy/use-widget-api";
export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { data: pialertData, error: pialertError } = useWidgetAPI(widget, "data");
if (pialertError) {
return <Container service={service} error={pialertError} />;
}
if (!pialertData) {
return (
<Container service={service}>
<Block label="pialert.total" />
<Block label="pialert.connected" />
<Block label="pialert.new_devices" />
<Block label="pialert.down_alerts" />
</Container>
);
}
return (
<Container service={service}>
<Block label="pialert.total" value={t("common.number", { value: parseInt(pialertData[0], 10) })} />
<Block label="pialert.connected" value={t("common.number", { value: parseInt(pialertData[1], 10) })} />
<Block label="pialert.new_devices" value={t("common.number", { value: parseInt(pialertData[3], 10) })} />
<Block label="pialert.down_alerts" value={t("common.number", { value: parseInt(pialertData[4], 10) })} />
</Container>
);
}

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