Compare commits

..
Author SHA1 Message Date
Meier Lukas f089c4b232 fix: unable to find socket-cleanup when running with docker 2026-04-15 20:19:29 +02:00
KimP0ssible-no b6f6701eda fix: cap V8 heap and enable effective garbage collection for nextjs
Add --max-old-space-size=1024 to the node process running the Next.js
server. This caps V8's old-generation heap at 1024MB, forcing the
garbage collector to run more aggressively as memory usage approaches
the limit.

Previously, users saw Next.js RSS grow to 4GB+. This was caused by a
reference chain that prevented GC from freeing memory:

  AfterContext (vercel/next.js#89091) retained ServerResponse objects
  after client disconnect, which held zlib Transform streams (from
  compress: true), which allocated native C++ buffers outside V8's
  heap entirely — invisible to GC and uncapped by --max-old-space-size.

Combined with the prior commit's fixes (compress: false moves gzip to
nginx, httpBatchLink closes connections faster, socket-cleanup.cjs
destroys zombie CLOSE_WAIT sockets every 60s), GC can now actually
reclaim memory because:

- zlib native buffers no longer exist (compress: false)
- The AfterContext → ServerResponse reference chain is broken by
  socket cleanup destroying the underlying sockets
- The JS heap is capped at 1024MB so V8 GCs more frequently for
  the memory it does control

Also fixes the Dockerfile to copy socket-cleanup.cjs from the builder
stage instead of the host context.

Ref: https://github.com/homarr-labs/homarr/issues/3759
2026-04-15 12:49:48 +02:00
KimP0ssible-no c5e69c3e40 fix: memory leak fixes for nextjs.
Addresses high memory usage by adding gzip compression to nginx (removing it from nextjs)
socket cleanup handling, and tRPC client optimizations.

Ref: https://github.com/homarr-labs/homarr/issues/3759
2026-04-15 12:15:29 +02:00
135 changed files with 2483 additions and 4658 deletions

No files matched your search

-4
View File
@@ -33,10 +33,6 @@ body:
options: options:
# The below comment is used to insert a new version with on-release.yml # The below comment is used to insert a new version with on-release.yml
#NEXT_VERSION# #NEXT_VERSION#
- 1.60.1-beta.1
- 1.60.0
- 1.59.3
- 1.59.2
- 1.59.1 - 1.59.1
- 1.59.0 - 1.59.0
- 1.58.1 - 1.58.1
+5 -5
View File
@@ -25,16 +25,16 @@ body:
label: Public API available? label: Public API available?
description: Is there a public API available, that we can consume in Homarr? description: Is there a public API available, that we can consume in Homarr?
options: options:
- "Yes, available on a website" - Yes, available on a website
- "Yes, available in the application itself" - Yes, available in the application itself
- "No" - No
validations: validations:
required: true required: true
- type: dropdown - type: dropdown
attributes: attributes:
label: Are you willing to contribute this yourself? label: Are you willing to contribute this yourself?
options: options:
- "Yes" - Yes
- "No" - No
validations: validations:
required: true required: true
+2 -2
View File
@@ -24,7 +24,7 @@ body:
attributes: attributes:
label: Are you willing to contribute this yourself? label: Are you willing to contribute this yourself?
options: options:
- "Yes" - Yes
- "No" - No
validations: validations:
required: true required: true
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }} app-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
permission-pull-requests: write # required to approve pull request permission-pull-requests: write # required to approve pull request
- name: Install GitHub CLI - name: Install GitHub CLI
+6 -2
View File
@@ -11,10 +11,14 @@ on:
concurrency: concurrency:
group: "${{ github.workflow }}-${{ github.ref }}" group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env: env:
FORCE_COLOR: 3 FORCE_COLOR: 3
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
jobs: jobs:
lint: lint:
@@ -55,7 +59,7 @@ jobs:
uses: ./tooling/github/setup uses: ./tooling/github/setup
- name: Typecheck - name: Typecheck
run: pnpm typecheck run: turbo typecheck
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -22,7 +22,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.CROWDIN_APP_PRIVATE_KEY }} private-key: ${{ secrets.CROWDIN_APP_PRIVATE_KEY }}
client-id: ${{ secrets.CROWDIN_APP_ID }} app-id: ${{ secrets.CROWDIN_APP_ID }}
permission-contents: write # required to commit to crowdin branch permission-contents: write # required to commit to crowdin branch
permission-pull-requests: write # required to create pull request permission-pull-requests: write # required to create pull request
@@ -1,104 +0,0 @@
name: "[Deployment] Beta Release"
on:
workflow_dispatch:
inputs:
send-notifications:
type: boolean
required: false
default: true
description: Send notifications
permissions:
contents: write
pull-requests: write
jobs:
create-and-merge-pr:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Discord notification
if: ${{ github.event.inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0
with:
args: "Beta release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: next
- name: Create pull request
id: create-pull-request
run: 'gh pr create --title "chore(release): release ${{ steps.semver.outputs.next }}-beta" --body "Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}-beta``" --base beta --head next --label automerge'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Discord notification
if: ${{ github.event.inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0
with:
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }}-beta (new behaviour: ${{ steps.semver.outputs.bump }})"
- name: Obtain token
id: obtainApprovalToken
uses: actions/create-github-app-token@v3
with:
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
permission-pull-requests: write
- name: Approve PR
env:
GITHUB_TOKEN: ${{ steps.obtainApprovalToken.outputs.token }}
run: |
gh pr review --approve --body "Automatically approved by GitHub Action"
- name: Obtain token
id: obtainMergeToken
uses: actions/create-github-app-token@v3
with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
permission-contents: write # write to beta branch (due to merge)
permission-pull-requests: write # merge pull request
- id: automerge
if: ${{ steps.semver.outputs.bump != 'major' }}
name: automerge
uses: "pascalgn/automerge-action@v0.16.4"
env:
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
MERGE_METHOD: merge # we prefer merge commits for merging to beta
MERGE_COMMIT_MESSAGE: "chore(release): release ${{ steps.semver.outputs.next }}-beta"
MERGE_DELETE_BRANCH: false # never set to true!
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
MERGE_RETRIES: 20 # 20 retries * MERGE_RETRY_SLEEP until step fails
MERGE_RETRY_SLEEP: 10000 # 10 seconds * MERGE_RETRIES until step fails
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
- name: Merged Discord notification
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.event.inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0
with:
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
- name: Major Bump Discord notification
if: ${{ steps.semver.outputs.bump == 'major' && github.event.inputs.send-notifications }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0
with:
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
- name: Discord Fail Notification
if: failure() && github.event.inputs.send-notifications
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0
with:
args: "The beta release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
@@ -53,19 +53,19 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }} app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
permission-contents: write # required to commit package.json & changelog changes, merge them to dev and publish the release permission-contents: write # required to commit package.json & changelog changes, merge them to dev and publish the release
- uses: actions/checkout@v6 - uses: actions/checkout@v6
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
with: with:
persist-credentials: false persist-credentials: false
- uses: pnpm/action-setup@v6 - uses: pnpm/action-setup@v5
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
- uses: actions/setup-node@v6 - uses: actions/setup-node@v6
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
with: with:
node-version: 24.15.0 node-version: 24.14.1
cache: "pnpm" cache: "pnpm"
- run: npm i -g pnpm - run: npm i -g pnpm
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
@@ -234,7 +234,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }} app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
permission-contents: write # required to publish the release permission-contents: write # required to publish the release
- name: Log in to the Container registry - name: Log in to the Container registry
@@ -274,6 +274,6 @@ jobs:
- name: Discord notification - name: Discord notification
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**." args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**."
+13 -14
View File
@@ -21,10 +21,10 @@ jobs:
timeout-minutes: 2 timeout-minutes: 2
steps: steps:
- name: Discord notification - name: Discord notification
if: ${{ github.event.inputs.send-notifications }} if: ${{ github.events.inputs.send-notifications }}
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
- name: Checkout repository - name: Checkout repository
@@ -38,15 +38,14 @@ jobs:
token: ${{ github.token }} token: ${{ github.token }}
branch: dev branch: dev
- name: Create pull request - name: Create pull request
id: create-pull-request
run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base main --head dev --label automerge' run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base main --head dev --label automerge'
env: env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Discord notification - name: Discord notification
if: ${{ github.event.inputs.send-notifications }} if: ${{ github.events.inputs.send-notifications }}
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})" args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
- name: Obtain token - name: Obtain token
@@ -54,7 +53,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }} app-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
permission-pull-requests: write permission-pull-requests: write
- name: Approve PR - name: Approve PR
env: env:
@@ -66,7 +65,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }} app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
permission-contents: write # write to main branch (due to merge) permission-contents: write # write to main branch (due to merge)
permission-pull-requests: write # merge pull request permission-pull-requests: write # merge pull request
- id: automerge - id: automerge
@@ -75,7 +74,7 @@ jobs:
uses: "pascalgn/automerge-action@v0.16.4" uses: "pascalgn/automerge-action@v0.16.4"
env: env:
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }} GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
MERGE_METHOD: merge # we prefer merge commits for merging to main MERGE_METHOD: merge # we prefer merge commits for merging to master
MERGE_COMMIT_MESSAGE: "chore(release): automatic release ${{ steps.semver.outputs.next }}" MERGE_COMMIT_MESSAGE: "chore(release): automatic release ${{ steps.semver.outputs.next }}"
MERGE_DELETE_BRANCH: false # never set to true! MERGE_DELETE_BRANCH: false # never set to true!
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}" PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
@@ -84,23 +83,23 @@ jobs:
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
- name: Merged Discord notification - name: Merged Discord notification
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.event.inputs.send-notifications }} if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.events.inputs.send-notifications }}
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}" args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
- name: Major Bump Discord notification - name: Major Bump Discord notification
if: ${{ steps.semver.outputs.bump == 'major' && github.event.inputs.send-notifications }} if: ${{ steps.semver.outputs.bump == 'major' && github.events.inputs.send-notifications }}
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}" args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
- name: Discord Fail Notification - name: Discord Fail Notification
if: failure() && github.event.inputs.send-notifications if: failure() && github.events.inputs.send-notifications
env: env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.4.0 uses: Ilshidur/action-discord@master
with: with:
args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed" args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
+2 -2
View File
@@ -15,7 +15,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }} private-key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }}
client-id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }} app-id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }}
owner: homarr-labs owner: homarr-labs
repositories: | repositories: |
documentation documentation
@@ -48,7 +48,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }} app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
permission-contents: write # required to commit to branch permission-contents: write # required to commit to branch
permission-pull-requests: write # required to create pr & enable automerge permission-pull-requests: write # required to create pr & enable automerge
- name: Checkout code - name: Checkout code
+2 -2
View File
@@ -24,7 +24,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }} private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
client-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }} app-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
permission-contents: write # required to commit to branch permission-contents: write # required to commit to branch
permission-pull-requests: write # required to create pr & enable automerge permission-pull-requests: write # required to create pr & enable automerge
@@ -33,7 +33,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }} GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
- uses: pnpm/action-setup@v6 - uses: pnpm/action-setup@v5
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
@@ -24,7 +24,7 @@ jobs:
uses: actions/create-github-app-token@v3 uses: actions/create-github-app-token@v3
with: with:
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }} private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
client-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }} app-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
permission-contents: write # required to commit to branch permission-contents: write # required to commit to branch
permission-pull-requests: write # required to create pr & enable automerge permission-pull-requests: write # required to create pr & enable automerge
- name: Checkout code - name: Checkout code
+2
View File
@@ -72,3 +72,5 @@ en.d.json.ts
# personal agent config # personal agent config
AGENTS.md AGENTS.md
.opencode .opencode
.claude/CLAUDE.md
.claude/settings.json
+1 -1
View File
@@ -1 +1 @@
24.15.0 24.14.1
-63
View File
@@ -1,66 +1,3 @@
## [1.60.0](https://github.com/homarr-labs/homarr/compare/v1.59.3...v1.60.0) (2026-05-01)
### Features
* **about:** add opencollective contributors ([#5481](https://github.com/homarr-labs/homarr/issues/5481)) ([3d202d4](https://github.com/homarr-labs/homarr/commit/3d202d409febf33d0218b589c979744c84f87407))
### Bug Fixes
* migrate from node-cron to croner ([#5407](https://github.com/homarr-labs/homarr/issues/5407)) ([e8edc20](https://github.com/homarr-labs/homarr/commit/e8edc203b6c862141668b043ef4232c22b8fae24))
* **openapi:** openapi document empty ([#5579](https://github.com/homarr-labs/homarr/issues/5579)) ([ce8e330](https://github.com/homarr-labs/homarr/commit/ce8e330c82bc0be9f299f3071a1e80daafc5f789))
### Performance Improvements
* **icons:** updater takes 10 seconds to run with high cpu usage ([#5608](https://github.com/homarr-labs/homarr/issues/5608)) ([ed6680b](https://github.com/homarr-labs/homarr/commit/ed6680ba6a42864185818eb8d90b2303846c1761))
## [1.60.0](https://github.com/homarr-labs/homarr/compare/v1.59.3...v1.60.0) (2026-05-01)
### Features
* **about:** add opencollective contributors ([#5481](https://github.com/homarr-labs/homarr/issues/5481)) ([3d202d4](https://github.com/homarr-labs/homarr/commit/3d202d409febf33d0218b589c979744c84f87407))
### Bug Fixes
* migrate from node-cron to croner ([#5407](https://github.com/homarr-labs/homarr/issues/5407)) ([e8edc20](https://github.com/homarr-labs/homarr/commit/e8edc203b6c862141668b043ef4232c22b8fae24))
* **openapi:** openapi document empty ([#5579](https://github.com/homarr-labs/homarr/issues/5579)) ([ce8e330](https://github.com/homarr-labs/homarr/commit/ce8e330c82bc0be9f299f3071a1e80daafc5f789))
### Performance Improvements
* **icons:** updater takes 10 seconds to run with high cpu usage ([#5608](https://github.com/homarr-labs/homarr/issues/5608)) ([ed6680b](https://github.com/homarr-labs/homarr/commit/ed6680ba6a42864185818eb8d90b2303846c1761))
## [1.59.3](https://github.com/homarr-labs/homarr/compare/v1.59.2...v1.59.3) (2026-04-24)
### Bug Fixes
* **deps:** update dependency better-sqlite3 to ^12.9.0 ([#5531](https://github.com/homarr-labs/homarr/issues/5531)) ([7852f1d](https://github.com/homarr-labs/homarr/commit/7852f1d987d40707ae13494f9c934a563581f97f))
## [1.59.3](https://github.com/homarr-labs/homarr/compare/v1.59.2...v1.59.3) (2026-04-24)
### Bug Fixes
* **deps:** update dependency better-sqlite3 to ^12.9.0 ([#5531](https://github.com/homarr-labs/homarr/issues/5531)) ([7852f1d](https://github.com/homarr-labs/homarr/commit/7852f1d987d40707ae13494f9c934a563581f97f))
## [1.59.2](https://github.com/homarr-labs/homarr/compare/v1.59.1...v1.59.2) (2026-04-17)
### Bug Fixes
* **about:** add missing dependencies ([#5480](https://github.com/homarr-labs/homarr/issues/5480)) ([c48588c](https://github.com/homarr-labs/homarr/commit/c48588c6a748920b05f8afcd79fad17dc65f2930))
* **deps:** update dependency @drizzle-team/brocli to ^0.12.0 ([#5489](https://github.com/homarr-labs/homarr/issues/5489)) ([74611b7](https://github.com/homarr-labs/homarr/commit/74611b75a736df43a77ebc780d2e0eee5c40e3f3))
* **deps:** update dependency @immich/sdk to ^2.7.0 ([#5490](https://github.com/homarr-labs/homarr/issues/5490)) ([9cdf2aa](https://github.com/homarr-labs/homarr/commit/9cdf2aa1f2b1477522879095b603b100c1dd3ac0))
* **deps:** update dependency @immich/sdk to ^2.7.2 ([#5494](https://github.com/homarr-labs/homarr/issues/5494)) ([0927f45](https://github.com/homarr-labs/homarr/commit/0927f45b2573753152fd5e9e318ba62b88abca35))
* **deps:** update dependency fast-xml-parser to ^5.5.11 ([#5500](https://github.com/homarr-labs/homarr/issues/5500)) ([652ed1a](https://github.com/homarr-labs/homarr/commit/652ed1a5ed0beeb2dbd44976890f24dc12b90cf6))
* **deps:** update dependency isomorphic-dompurify to ^3.8.0 ([#5503](https://github.com/homarr-labs/homarr/issues/5503)) ([0731b7c](https://github.com/homarr-labs/homarr/commit/0731b7c5ef272bcf69c566cdec723f2696309e67))
* **deps:** update dependency jotai to ^2.19.1 ([#5487](https://github.com/homarr-labs/homarr/issues/5487)) ([efd8a55](https://github.com/homarr-labs/homarr/commit/efd8a55b6ea113bc42bc90d9ccb0db6c1d2b68ef))
* **deps:** update dependency next-intl to v4.9.1 [security] ([#5470](https://github.com/homarr-labs/homarr/issues/5470)) ([f2437c4](https://github.com/homarr-labs/homarr/commit/f2437c473106689e9fa93e7dcbea84b00800ea4a))
* **deps:** update dependency swagger-ui-react to ^5.32.2 ([#5488](https://github.com/homarr-labs/homarr/issues/5488)) ([cf131c5](https://github.com/homarr-labs/homarr/commit/cf131c5c51f6c21f942ab89d02353f93dc05774c))
* **deps:** update dependency typescript-eslint to ^8.58.1 ([#5496](https://github.com/homarr-labs/homarr/issues/5496)) ([f88984c](https://github.com/homarr-labs/homarr/commit/f88984cda844beb1099a08c9cdeb6691ad13b5a8))
* **deps:** update react monorepo to v19.2.5 ([#5502](https://github.com/homarr-labs/homarr/issues/5502)) ([c8a61a9](https://github.com/homarr-labs/homarr/commit/c8a61a9df3087de28c76f573623725eec246dd32))
* **deps:** update testcontainers-node monorepo to ^11.14.0 ([#5498](https://github.com/homarr-labs/homarr/issues/5498)) ([1057b47](https://github.com/homarr-labs/homarr/commit/1057b478c37d02e9de7bcd155f0b3fb764149abe))
* **deps:** update tiptap monorepo to v3.22.3 ([#5499](https://github.com/homarr-labs/homarr/issues/5499)) ([95abd2c](https://github.com/homarr-labs/homarr/commit/95abd2c9d3a563c7eaebe12f3b8015e3299e27e8))
* **deps:** update turbo monorepo to ^2.9.4 ([#5476](https://github.com/homarr-labs/homarr/issues/5476)) ([813f2fa](https://github.com/homarr-labs/homarr/commit/813f2fa5efb999d3364882578fdf456537dba3a6))
* **deps:** update turbo monorepo to ^2.9.5 ([#5491](https://github.com/homarr-labs/homarr/issues/5491)) ([ed24ce6](https://github.com/homarr-labs/homarr/commit/ed24ce6381466fa530ce225363231303be4ed92e))
* preserve all-day event dates in Nextcloud calendar integration ([#5523](https://github.com/homarr-labs/homarr/issues/5523)) ([2e78979](https://github.com/homarr-labs/homarr/commit/2e789795ed11c816550b6a3ce88fe92a360ede9c))
## [1.59.1](https://github.com/homarr-labs/homarr/compare/v1.59.0...v1.59.1) (2026-04-10) ## [1.59.1](https://github.com/homarr-labs/homarr/compare/v1.59.0...v1.59.1) (2026-04-10)
### Bug Fixes ### Bug Fixes
+2 -1
View File
@@ -1,4 +1,4 @@
FROM node:24.15.0-alpine AS base FROM node:24.14.1-alpine AS base
FROM base AS builder FROM base AS builder
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
@@ -52,6 +52,7 @@ COPY --from=builder /app/packages/db/migrations ./db/migrations
# Automatically leverage output traces to reduce image size # Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing # https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/apps/nextjs/.next/standalone ./ COPY --from=builder /app/apps/nextjs/.next/standalone ./
COPY --from=builder /app/apps/nextjs/socket-cleanup.cjs ./apps/nextjs/socket-cleanup.cjs
COPY --from=builder /app/apps/nextjs/.next/static ./apps/nextjs/.next/static COPY --from=builder /app/apps/nextjs/.next/static ./apps/nextjs/.next/static
COPY --from=builder /app/apps/nextjs/public ./apps/nextjs/public COPY --from=builder /app/apps/nextjs/public ./apps/nextjs/public
COPY scripts/run.sh ./run.sh COPY scripts/run.sh ./run.sh
+1
View File
@@ -19,6 +19,7 @@ const withNextIntl = createNextIntlPlugin({
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
compress: false, // Workaround for vercel/next.js#89091 - zlib retains ServerResponse after client disconnect, causing CLOSE-WAIT socket leak
reactStrictMode: true, reactStrictMode: true,
// react compiler breaks mantine-react-table, so disabled for now // react compiler breaks mantine-react-table, so disabled for now
//reactCompiler: true, //reactCompiler: true,
+26
View File
@@ -0,0 +1,26 @@
// Periodic cleanup of zombie CLOSE-WAIT sockets in Next.js standalone mode.
// Workaround for vercel/next.js#89091 — AfterContext retains ServerResponse
// after client disconnect, leaving sockets in CLOSE-WAIT indefinitely.
//
// Usage: node --require ./socket-cleanup.cjs server.js
const INTERVAL_MS = 60_000; // Check every 60 seconds
setInterval(() => {
let destroyed = 0;
for (const handle of process._getActiveHandles()) {
if (
handle.constructor?.name === "Socket" &&
handle.localPort === 3000 &&
handle.readyState === "writeOnly" &&
!handle._httpMessage &&
handle.bytesWritten === 0
) {
handle.destroy();
destroyed++;
}
}
if (destroyed > 0) {
console.log(`[socket-cleanup] Destroyed ${destroyed} zombie socket(s)`);
}
}, INTERVAL_MS).unref(); // unref() so this timer doesn't prevent process exit
@@ -8,12 +8,13 @@ import dayjs from "dayjs";
import { clientApi } from "@homarr/api/client"; import { clientApi } from "@homarr/api/client";
import { useSession } from "@homarr/auth/client"; import { useSession } from "@homarr/auth/client";
import { parseCookies, setClientCookie } from "@homarr/common"; import { parseCookies, setClientCookie } from "@homarr/common";
import type { ColorScheme } from "@homarr/definitions";
import { colorSchemeCookieKey } from "@homarr/definitions"; import { colorSchemeCookieKey } from "@homarr/definitions";
export const CustomMantineProvider = ({ export const CustomMantineProvider = ({
children, children,
defaultColorScheme, defaultColorScheme,
}: PropsWithChildren<{ defaultColorScheme: MantineColorScheme }>) => { }: PropsWithChildren<{ defaultColorScheme: ColorScheme }>) => {
const manager = useColorSchemeManager(); const manager = useColorSchemeManager();
return ( return (
<DirectionProvider> <DirectionProvider>
@@ -34,7 +35,7 @@ export const CustomMantineProvider = ({
export function useColorSchemeManager(): MantineColorSchemeManager { export function useColorSchemeManager(): MantineColorSchemeManager {
const { data: session } = useSession(); const { data: session } = useSession();
const updateCookieValue = (value: MantineColorScheme) => { const updateCookieValue = (value: Exclude<MantineColorScheme, "auto">) => {
setClientCookie(colorSchemeCookieKey, value, { expires: dayjs().add(1, "year").toDate(), path: "/" }); setClientCookie(colorSchemeCookieKey, value, { expires: dayjs().add(1, "year").toDate(), path: "/" });
}; };
@@ -59,6 +60,7 @@ export function useColorSchemeManager(): MantineColorSchemeManager {
}, },
set: (value) => { set: (value) => {
if (value === "auto") return;
try { try {
if (session) { if (session) {
mutateColorScheme({ colorScheme: value }); mutateColorScheme({ colorScheme: value });
@@ -7,7 +7,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental"; import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental";
import { import {
createWSClient, createWSClient,
httpBatchStreamLink, httpBatchLink,
httpLink, httpLink,
isNonJsonSerializable, isNonJsonSerializable,
loggerLink, loggerLink,
@@ -90,7 +90,7 @@ export function TRPCReactProvider(props: PropsWithChildren) {
url: getTrpcUrl(), url: getTrpcUrl(),
headers: createHeadersCallbackForSource("nextjs-react (form-data)"), headers: createHeadersCallbackForSource("nextjs-react (form-data)"),
}), }),
false: httpBatchStreamLink({ false: httpBatchLink({
transformer: superjson, transformer: superjson,
url: getTrpcUrl(), url: getTrpcUrl(),
maxURLLength: 2083, // Suggested by tRPC: https://trpc.io/docs/client/links/httpBatchLink#setting-a-maximum-url-length maxURLLength: 2083, // Suggested by tRPC: https://trpc.io/docs/client/links/httpBatchLink#setting-a-maximum-url-length
+1 -2
View File
@@ -4,7 +4,6 @@ import { Inter } from "next/font/google";
import "@homarr/notifications/styles.css"; import "@homarr/notifications/styles.css";
import "@homarr/spotlight/styles.css"; import "@homarr/spotlight/styles.css";
import "@homarr/ui/styles.css"; import "@homarr/ui/styles.css";
import "~/styles/color-scheme.scss";
import "~/styles/scroll-area.scss"; import "~/styles/scroll-area.scss";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
@@ -130,7 +129,7 @@ export default async function Layout(props: {
dir={direction} dir={direction}
data-mantine-color-scheme={colorScheme} data-mantine-color-scheme={colorScheme}
style={{ style={{
backgroundColor: colorScheme === "dark" ? "#242424" : colorScheme === "auto" ? undefined : "#fff", backgroundColor: colorScheme === "dark" ? "#242424" : "#fff",
}} }}
suppressHydrationWarning suppressHydrationWarning
> >
@@ -25,14 +25,7 @@ import {
Title, Title,
UnstyledButton, UnstyledButton,
} from "@mantine/core"; } from "@mantine/core";
import { import { IconKeyboard, IconLanguage, IconLibrary, IconPackage, IconUsers } from "@tabler/icons-react";
IconKeyboard,
IconLanguage,
IconLibrary,
IconMoneybagHeart,
IconPackage,
IconUsers,
} from "@tabler/icons-react";
import { capitalize, objectEntries } from "@homarr/common"; import { capitalize, objectEntries } from "@homarr/common";
import { hotkeys } from "@homarr/definitions"; import { hotkeys } from "@homarr/definitions";
@@ -44,7 +37,6 @@ import { createMetaTitle } from "~/metadata";
import type { PackageJsonDependencies } from "~/versions/package-reader"; import type { PackageJsonDependencies } from "~/versions/package-reader";
import { getPackageVersion } from "~/versions/package-reader"; import { getPackageVersion } from "~/versions/package-reader";
import type githubContributorsJson from "../../../../../../../static-data/contributors.json"; import type githubContributorsJson from "../../../../../../../static-data/contributors.json";
import type openCollectiveContributorsJson from "../../../../../../../static-data/opencollective-contributors.json";
import type crowdinContributorsJson from "../../../../../../../static-data/translators.json"; import type crowdinContributorsJson from "../../../../../../../static-data/translators.json";
import classes from "./about.module.css"; import classes from "./about.module.css";
@@ -79,10 +71,6 @@ export default async function AboutPage() {
res.json(), res.json(),
)) as typeof crowdinContributorsJson; )) as typeof crowdinContributorsJson;
const openCollectiveContributors = (await fetch(`${baseServerUrl}/api/about/contributors/opencollective`).then(
(res) => res.json(),
)) as typeof openCollectiveContributorsJson;
return ( return (
<div> <div>
<DynamicBreadcrumb /> <DynamicBreadcrumb />
@@ -148,30 +136,6 @@ export default async function AboutPage() {
</Flex> </Flex>
</AccordionPanel> </AccordionPanel>
</AccordionItem> </AccordionItem>
<AccordionItem value="sponsors">
<AccordionControl icon={<IconMoneybagHeart size="1rem" />}>
<Stack gap={0}>
<Text>{t("accordion.sponsors.title")}</Text>
<Text size="sm" c="dimmed">
{t("accordion.sponsors.subtitle", {
count: String(openCollectiveContributors.length),
})}
</Text>
</Stack>
</AccordionControl>
<AccordionPanel>
<Flex wrap="wrap" gap="xs">
{openCollectiveContributors.map((sponsor) => (
<GenericContributorLinkCard
key={sponsor.slug}
link={`https://opencollective.com/${sponsor.slug}`}
image={sponsor.imageUrl}
name={sponsor.name}
/>
))}
</Flex>
</AccordionPanel>
</AccordionItem>
<AccordionItem value="libraries"> <AccordionItem value="libraries">
<AccordionControl icon={<IconLibrary size="1rem" />}> <AccordionControl icon={<IconLibrary size="1rem" />}>
<Stack gap={0}> <Stack gap={0}>
@@ -1,7 +1,7 @@
"use client"; "use client";
import { Group, Text } from "@mantine/core"; import { Group, Text } from "@mantine/core";
import { IconDeviceDesktop, IconMoon, IconSun } from "@tabler/icons-react"; import { IconMoon, IconSun } from "@tabler/icons-react";
import type { ColorScheme } from "@homarr/definitions"; import type { ColorScheme } from "@homarr/definitions";
import { colorSchemes } from "@homarr/definitions"; import { colorSchemes } from "@homarr/definitions";
@@ -34,7 +34,6 @@ export const AppearanceSettingsForm = ({ defaultValues }: { defaultValues: Serve
}; };
const appearanceIcons = { const appearanceIcons = {
auto: IconDeviceDesktop,
light: IconSun, light: IconSun,
dark: IconMoon, dark: IconMoon,
}; };
@@ -2,7 +2,7 @@ import { headers } from "next/headers";
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { Stack, Tabs, TabsList, TabsPanel, TabsTab } from "@mantine/core"; import { Stack, Tabs, TabsList, TabsPanel, TabsTab } from "@mantine/core";
import { openApiDocument } from "@homarr/api/open-api"; import { openApiDocument } from "@homarr/api";
import { api } from "@homarr/api/server"; import { api } from "@homarr/api/server";
import { auth } from "@homarr/auth/next"; import { auth } from "@homarr/auth/next";
import { extractBaseUrlFromHeaders } from "@homarr/common"; import { extractBaseUrlFromHeaders } from "@homarr/common";
@@ -30,7 +30,7 @@ export const FirstDayOfWeek = ({ user }: FirstDayOfWeekProps) => {
}, },
onSuccess(_, variables) { onSuccess(_, variables) {
form.setInitialValues({ form.setInitialValues({
firstDayOfWeek: variables.firstDayOfWeek as DayOfWeek, firstDayOfWeek: variables.firstDayOfWeek,
}); });
showSuccessNotification({ showSuccessNotification({
message: t("user.action.changeFirstDayOfWeek.notification.success.message"), message: t("user.action.changeFirstDayOfWeek.notification.success.message"),
+2 -3
View File
@@ -2,8 +2,7 @@ import type { NextRequest } from "next/server";
import { userAgent } from "next/server"; import { userAgent } from "next/server";
import { createOpenApiFetchHandler } from "trpc-to-openapi"; import { createOpenApiFetchHandler } from "trpc-to-openapi";
import { createTRPCContext } from "@homarr/api"; import { appRouter, createTRPCContext } from "@homarr/api";
import { openApiRouter } from "@homarr/api/open-api";
import { API_KEY_HEADER_NAME, getSessionFromApiKeyAsync } from "@homarr/auth/api-key"; import { API_KEY_HEADER_NAME, getSessionFromApiKeyAsync } from "@homarr/auth/api-key";
import { ipAddressFromHeaders } from "@homarr/common/server"; import { ipAddressFromHeaders } from "@homarr/common/server";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
@@ -31,7 +30,7 @@ const handlerAsync = async (req: NextRequest) => {
return createOpenApiFetchHandler({ return createOpenApiFetchHandler({
req, req,
endpoint: "/", endpoint: "/",
router: openApiRouter, router: appRouter,
createContext: () => createTRPCContext({ session, headers: req.headers }), createContext: () => createTRPCContext({ session, headers: req.headers }),
onError({ error, path, type }) { onError({ error, path, type }) {
logger.error(new ErrorWithMetadata("tRPC Error occured", { path, type }, { cause: error })); logger.error(new ErrorWithMetadata("tRPC Error occured", { path, type }, { cause: error }));
@@ -1,9 +0,0 @@
import { NextResponse } from "next/server";
import openCollectiveContributors from "../../../../../../../../static-data/opencollective-contributors.json";
export const GET = () => {
return NextResponse.json(openCollectiveContributors);
};
export const dynamic = "force-static";
+1 -1
View File
@@ -1,6 +1,6 @@
import { NextResponse } from "next/server"; import { NextResponse } from "next/server";
import { openApiDocument } from "@homarr/api/open-api"; import { openApiDocument } from "@homarr/api";
import { extractBaseUrlFromHeaders } from "@homarr/common"; import { extractBaseUrlFromHeaders } from "@homarr/common";
export function GET(request: Request) { export function GET(request: Request) {
@@ -1,94 +0,0 @@
"use client";
import React from "react";
import { Combobox, Group, InputBase, Text, useCombobox } from "@mantine/core";
import { IconCheck, IconDeviceDesktop, IconMoon, IconSun } from "@tabler/icons-react";
import type { ColorScheme } from "@homarr/definitions";
import { colorSchemes } from "@homarr/definitions";
import { useScopedI18n } from "@homarr/translation/client";
const schemeIcons: Record<ColorScheme, React.ElementType> = {
auto: IconDeviceDesktop,
light: IconSun,
dark: IconMoon,
};
interface ColorSchemeComboboxProps {
value: ColorScheme;
onChange: (value: ColorScheme) => void;
width?: string;
}
export const ColorSchemeCombobox = ({ value, onChange, width }: ColorSchemeComboboxProps) => {
const tOptions = useScopedI18n("common.colorScheme.options");
const combobox = useCombobox({
onDropdownClose: () => combobox.resetSelectedOption(),
});
const handleOnOptionSubmit = React.useCallback(
(val: string) => {
if (!val) return;
onChange(val as ColorScheme);
combobox.closeDropdown();
},
[onChange, combobox],
);
const handleOnClick = React.useCallback(() => {
combobox.toggleDropdown();
}, [combobox]);
return (
<Combobox store={combobox} onOptionSubmit={handleOnOptionSubmit}>
<Combobox.Target>
<InputBase
component="button"
type="button"
pointer
rightSection={<Combobox.Chevron />}
rightSectionPointerEvents="none"
onClick={handleOnClick}
variant="filled"
w={width}
>
<OptionItem scheme={value} currentScheme={value} tOptions={tOptions} />
</InputBase>
</Combobox.Target>
<Combobox.Dropdown>
<Combobox.Options>
{colorSchemes.map((scheme) => (
<Combobox.Option value={scheme} key={scheme}>
<OptionItem scheme={scheme} currentScheme={value} tOptions={tOptions} showCheck />
</Combobox.Option>
))}
</Combobox.Options>
</Combobox.Dropdown>
</Combobox>
);
};
const OptionItem = ({
scheme,
currentScheme,
tOptions,
showCheck,
}: {
scheme: ColorScheme;
currentScheme: ColorScheme;
tOptions: (key: ColorScheme) => string;
showCheck?: boolean;
}) => {
const Icon = schemeIcons[scheme];
return (
<Group wrap="nowrap" justify="space-between">
<Group wrap="nowrap">
<Icon size={16} stroke={1.5} />
<Text>{tOptions(scheme)}</Text>
</Group>
{showCheck && scheme === currentScheme && <IconCheck color="currentColor" size={16} />}
</Group>
);
};
@@ -1,17 +1,49 @@
"use client"; "use client";
import { useMantineColorScheme } from "@mantine/core"; import { Group, Text, useMantineColorScheme } from "@mantine/core";
import { IconMoon, IconSun } from "@tabler/icons-react";
import type { ColorScheme } from "@homarr/definitions"; import type { ColorScheme } from "@homarr/definitions";
import { colorSchemes } from "@homarr/definitions";
import { ColorSchemeCombobox } from "./color-scheme-combobox"; import { useScopedI18n } from "@homarr/translation/client";
import { SelectWithCustomItems } from "@homarr/ui";
interface CurrentColorSchemeComboboxProps { interface CurrentColorSchemeComboboxProps {
w?: string; w?: string;
} }
export const CurrentColorSchemeCombobox = ({ w }: CurrentColorSchemeComboboxProps) => { export const CurrentColorSchemeCombobox = ({ w }: CurrentColorSchemeComboboxProps) => {
const tOptions = useScopedI18n("common.colorScheme.options");
const { colorScheme, setColorScheme } = useMantineColorScheme(); const { colorScheme, setColorScheme } = useMantineColorScheme();
return <ColorSchemeCombobox value={colorScheme as ColorScheme} onChange={setColorScheme} width={w} />; return (
<SelectWithCustomItems
value={colorScheme}
onChange={(value) => setColorScheme((value as ColorScheme | null) ?? "light")}
data={colorSchemes.map((scheme) => ({
value: scheme,
label: tOptions(scheme),
}))}
SelectOption={ColorSchemeCustomOption}
w={w}
/>
);
};
const appearanceIcons = {
light: IconSun,
dark: IconMoon,
};
const ColorSchemeCustomOption = ({ value, label }: { value: ColorScheme; label: string }) => {
const Icon = appearanceIcons[value];
return (
<Group>
<Icon size={16} stroke={1.5} />
<Text fz="sm" fw={500}>
{label}
</Text>
</Group>
);
}; };
@@ -5,7 +5,16 @@ import { useCallback, useEffect } from "react";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { Center, Menu, Stack, Text, useMantineColorScheme } from "@mantine/core"; import { Center, Menu, Stack, Text, useMantineColorScheme } from "@mantine/core";
import { useHotkeys, useTimeout } from "@mantine/hooks"; import { useHotkeys, useTimeout } from "@mantine/hooks";
import { IconCheck, IconHome, IconLogin, IconLogout, IconSettings, IconTool } from "@tabler/icons-react"; import {
IconCheck,
IconHome,
IconLogin,
IconLogout,
IconMoon,
IconSettings,
IconSun,
IconTool,
} from "@tabler/icons-react";
import type { RouterOutputs } from "@homarr/api"; import type { RouterOutputs } from "@homarr/api";
import { signOut, useSession } from "@homarr/auth/client"; import { signOut, useSession } from "@homarr/auth/client";
@@ -15,7 +24,6 @@ import { useScopedI18n } from "@homarr/translation/client";
import { Link } from "@homarr/ui"; import { Link } from "@homarr/ui";
import { useAuthContext } from "~/app/[locale]/_client-providers/session"; import { useAuthContext } from "~/app/[locale]/_client-providers/session";
import { CurrentColorSchemeCombobox } from "./color-scheme/current-color-scheme-combobox";
import { CurrentLanguageCombobox } from "./language/current-language-combobox"; import { CurrentLanguageCombobox } from "./language/current-language-combobox";
import { AvailableUpdatesMenuItem } from "./layout/header/update"; import { AvailableUpdatesMenuItem } from "./layout/header/update";
@@ -26,9 +34,13 @@ interface UserAvatarMenuProps {
export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatarMenuProps) => { export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatarMenuProps) => {
const t = useScopedI18n("common.userAvatar.menu"); const t = useScopedI18n("common.userAvatar.menu");
const { toggleColorScheme } = useMantineColorScheme(); const { colorScheme, toggleColorScheme } = useMantineColorScheme();
useHotkeys([[hotkeys.toggleColorScheme, toggleColorScheme]]); useHotkeys([[hotkeys.toggleColorScheme, toggleColorScheme]]);
const ColorSchemeIcon = colorScheme === "dark" ? IconSun : IconMoon;
const colorSchemeText = colorScheme === "dark" ? t("switchToLightMode") : t("switchToDarkMode");
const session = useSession(); const session = useSession();
const router = useRouter(); const router = useRouter();
@@ -55,14 +67,14 @@ export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatar
<Menu width={300} withArrow withinPortal keepMounted> <Menu width={300} withArrow withinPortal keepMounted>
<Menu.Dropdown> <Menu.Dropdown>
<AvailableUpdatesMenuItem availableUpdatesPromise={availableUpdatesPromise} /> <AvailableUpdatesMenuItem availableUpdatesPromise={availableUpdatesPromise} />
<Menu.Item onClick={toggleColorScheme} leftSection={<ColorSchemeIcon size="1rem" />}>
{colorSchemeText}
</Menu.Item>
<Menu.Item component={Link} href="/boards" leftSection={<IconHome size="1rem" />}> <Menu.Item component={Link} href="/boards" leftSection={<IconHome size="1rem" />}>
{t("homeBoard")} {t("homeBoard")}
</Menu.Item> </Menu.Item>
<Menu.Divider /> <Menu.Divider />
<Menu.Item p={0} closeMenuOnClick={false} component="div">
<CurrentColorSchemeCombobox />
</Menu.Item>
<Menu.Item p={0} closeMenuOnClick={false} component="div"> <Menu.Item p={0} closeMenuOnClick={false} component="div">
<CurrentLanguageCombobox /> <CurrentLanguageCombobox />
</Menu.Item> </Menu.Item>
-12
View File
@@ -1,12 +0,0 @@
// Prevent flash of white background when color scheme is "auto" and OS prefers dark.
// CSS media queries are evaluated synchronously during the browser's initial paint,
// before any JavaScript executes, so this eliminates the white→dark flicker.
html[data-mantine-color-scheme="auto"] {
background-color: #fff;
}
@media (prefers-color-scheme: dark) {
html[data-mantine-color-scheme="auto"] {
background-color: #242424;
}
}
-1
View File
@@ -37,7 +37,6 @@
"@homarr/server-settings": "workspace:^0.1.0", "@homarr/server-settings": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0", "@homarr/validation": "workspace:^0.1.0",
"@homarr/widgets": "workspace:^0.1.0", "@homarr/widgets": "workspace:^0.1.0",
"croner": "catalog:",
"dayjs": "catalog:", "dayjs": "catalog:",
"dotenv": "catalog:", "dotenv": "catalog:",
"fastify": "catalog:", "fastify": "catalog:",
+15 -24
View File
@@ -1,4 +1,4 @@
import { Cron } from "croner"; import { schedule, validate as validateCron } from "node-cron";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import type { IJobManager } from "@homarr/cron-job-api"; import type { IJobManager } from "@homarr/cron-job-api";
@@ -21,31 +21,28 @@ export class JobManager implements IJobManager {
public async triggerAsync(name: JobGroupKeys): Promise<void> { public async triggerAsync(name: JobGroupKeys): Promise<void> {
await this.jobGroup.runManuallyAsync(name); await this.jobGroup.runManuallyAsync(name);
} }
public stop(name: JobGroupKeys): void { public async stopAsync(name: JobGroupKeys): Promise<void> {
this.jobGroup.stop(name); await this.jobGroup.stopAsync(name);
} }
public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> { public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> {
logger.info("Updating cron job interval", { name, expression: cron }); logger.info("Updating cron job interval", { name, expression: cron });
const job = this.jobGroup.getJobRegistry().get(name); const job = this.jobGroup.getJobRegistry().get(name);
if (!job) throw new Error(`Job ${name} not found`); if (!job) throw new Error(`Job ${name} not found`);
if (!validateCron(cron)) {
throw new Error(`Invalid cron expression: ${cron}`);
}
if (job.preventCustomInterval && cron !== job.cronExpression) { if (job.preventCustomInterval && cron !== job.cronExpression) {
throw new Error(`Custom cron expressions are not allowed for job ${name}`); throw new Error(`Custom cron expressions are not allowed for job ${name}`);
} }
const updatedConfig = await this.updateConfigurationAsync(name, { cronExpression: cron }); await this.updateConfigurationAsync(name, { cronExpression: cron });
this.jobGroup.getTask(name)?.stop(); await this.jobGroup.getTask(name)?.destroy();
this.jobGroup.setTask( this.jobGroup.setTask(
name, name,
new Cron( schedule(cron, () => void job.executeAsync(), {
cron, name,
{ }),
name,
timezone: job.timezone,
paused: !updatedConfig.isEnabled,
},
() => void job.executeAsync(),
),
); );
logger.info("Cron job interval updated", { name, expression: cron }); logger.info("Cron job interval updated", { name, expression: cron });
} }
@@ -55,7 +52,7 @@ export class JobManager implements IJobManager {
if (!job) throw new Error(`Job ${name} not found`); if (!job) throw new Error(`Job ${name} not found`);
await this.updateConfigurationAsync(name, { isEnabled: false }); await this.updateConfigurationAsync(name, { isEnabled: false });
this.jobGroup.stop(name); await this.jobGroup.stopAsync(name);
logger.info("Cron job disabled", { name }); logger.info("Cron job disabled", { name });
} }
public async enableAsync(name: JobGroupKeys): Promise<void> { public async enableAsync(name: JobGroupKeys): Promise<void> {
@@ -89,27 +86,21 @@ export class JobManager implements IJobManager {
name, name,
configuration: JSON.stringify(configuration), configuration: JSON.stringify(configuration),
}); });
return { return;
name,
cronExpression: configuration.cronExpression ?? existingConfig.cronExpression,
isEnabled: configuration.isEnabled ?? existingConfig.isEnabled,
};
} }
const job = this.jobGroup.getJobRegistry().get(name); const job = this.jobGroup.getJobRegistry().get(name);
if (!job) throw new Error(`Job ${name} not found`); if (!job) throw new Error(`Job ${name} not found`);
const updatedConfig = { await this.db.insert(cronJobConfigurations).values({
name, name,
cronExpression: configuration.cronExpression ?? job.cronExpression, cronExpression: configuration.cronExpression ?? job.cronExpression,
isEnabled: configuration.isEnabled ?? true, isEnabled: configuration.isEnabled ?? true,
}; });
await this.db.insert(cronJobConfigurations).values(updatedConfig);
logger.debug("Cron job configuration updated", { logger.debug("Cron job configuration updated", {
name, name,
configuration: JSON.stringify(configuration), configuration: JSON.stringify(configuration),
}); });
return updatedConfig;
} }
public async getAllAsync(): Promise< public async getAllAsync(): Promise<
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:24.15.0-trixie AS base FROM node:24.14.1-trixie AS base
WORKDIR /app WORKDIR /app
COPY package.json . COPY package.json .
COPY pnpm-lock.yaml . COPY pnpm-lock.yaml .
+4 -4
View File
@@ -2,12 +2,12 @@
"name": "homarr-prebuilt-debian", "name": "homarr-prebuilt-debian",
"private": true, "private": true,
"dependencies": { "dependencies": {
"better-sqlite3": "^12.9.0" "better-sqlite3": "^12.8.0"
}, },
"packageManager": "pnpm@10.33.2", "packageManager": "pnpm@10.33.0",
"engines": { "engines": {
"node": ">=24.15.0", "node": ">=24.14.1",
"pnpm": ">=10.33.2" "pnpm": ">=10.33.0"
}, },
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
+5 -5
View File
@@ -9,16 +9,16 @@ importers:
.: .:
dependencies: dependencies:
better-sqlite3: better-sqlite3:
specifier: ^12.9.0 specifier: ^12.8.0
version: 12.9.0 version: 12.8.0
packages: packages:
base64-js@1.5.1: base64-js@1.5.1:
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
better-sqlite3@12.9.0: better-sqlite3@12.8.0:
resolution: {integrity: sha512-wqUv4Gm3toFpHDQmaKD4QhZm3g1DjUBI0yzS4UBl6lElUmXFYdTQmmEDpAFa5o8FiFiymURypEnfVHzILKaxqQ==} resolution: {integrity: sha512-RxD2Vd96sQDjQr20kdP+F+dK/1OUNiVOl200vKBZY8u0vTwysfolF6Hq+3ZK2+h8My9YvZhHsF+RSGZW2VYrPQ==}
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x} engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}
bindings@1.5.0: bindings@1.5.0:
@@ -148,7 +148,7 @@ snapshots:
base64-js@1.5.1: {} base64-js@1.5.1: {}
better-sqlite3@12.9.0: better-sqlite3@12.8.0:
dependencies: dependencies:
bindings: 1.5.0 bindings: 1.5.0
prebuild-install: 7.1.3 prebuild-install: 7.1.3
+6
View File
@@ -3,6 +3,12 @@ events {
} }
http { http {
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml;
gzip_min_length 1000;
gzip_proxied any;
gzip_vary on;
server { server {
listen 7575; listen 7575;
listen [::]:7575; listen [::]:7575;
+9 -9
View File
@@ -1,6 +1,6 @@
{ {
"name": "homarr", "name": "homarr",
"version": "1.60.0", "version": "1.59.1",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "cross-env CI=true turbo build", "build": "cross-env CI=true turbo build",
@@ -59,10 +59,10 @@
"vite-tsconfig-paths": "catalog:", "vite-tsconfig-paths": "catalog:",
"vitest": "catalog:" "vitest": "catalog:"
}, },
"packageManager": "pnpm@10.33.2", "packageManager": "pnpm@10.33.0",
"engines": { "engines": {
"node": ">=24.15.0", "node": ">=24.14.1",
"pnpm": ">=10.33.2" "pnpm": ">=10.33.0"
}, },
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
@@ -79,23 +79,23 @@
"overrides": { "overrides": {
"@babel/helpers@<7.26.10": ">=7.29.2", "@babel/helpers@<7.26.10": ">=7.29.2",
"@babel/runtime@<7.26.10": ">=7.29.2", "@babel/runtime@<7.26.10": ">=7.29.2",
"axios@>=1.0.0 <1.8.2": ">=1.15.2", "axios@>=1.0.0 <1.8.2": ">=1.15.0",
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5", "brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5",
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5", "brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5",
"esbuild@<=0.24.2": ">=0.28.0", "esbuild@<=0.24.2": ">=0.28.0",
"form-data@>=4.0.0 <4.0.4": ">=4.0.5", "form-data@>=4.0.0 <4.0.4": ">=4.0.5",
"hono@<4.6.5": ">=4.12.16", "hono@<4.6.5": ">=4.12.12",
"linkifyjs@<4.3.2": ">=4.3.2", "linkifyjs@<4.3.2": ">=4.3.2",
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11", "nanoid@>=4.0.0 <5.0.9": ">=5.1.7",
"prismjs@<1.30.0": ">=1.30.0", "prismjs@<1.30.0": ">=1.30.0",
"proxmox-api>undici": "7.24.6", "proxmox-api>undici": "7.24.6",
"react-is": "^19.2.5", "react-is": "^19.2.5",
"rollup@>=4.0.0 <4.22.4": ">=4.60.2", "rollup@>=4.0.0 <4.22.4": ">=4.60.1",
"sha.js@<=2.4.11": ">=2.4.12", "sha.js@<=2.4.11": ">=2.4.12",
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2", "tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2", "tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
"tmp@<=0.2.3": ">=0.2.5", "tmp@<=0.2.3": ">=0.2.5",
"vite@>=5.0.0 <=5.4.18": ">=8.0.10" "vite@>=5.0.0 <=5.4.18": ">=8.0.8"
}, },
"patchedDependencies": { "patchedDependencies": {
"@types/node-unifi": "patches/@types__node-unifi.patch", "@types/node-unifi": "patches/@types__node-unifi.patch",
+1 -2
View File
@@ -9,8 +9,7 @@
"./client": "./src/client.ts", "./client": "./src/client.ts",
"./server": "./src/server.ts", "./server": "./src/server.ts",
"./websocket": "./src/websocket.ts", "./websocket": "./src/websocket.ts",
"./shared": "./src/shared.ts", "./shared": "./src/shared.ts"
"./open-api": "./src/open-api.ts"
}, },
"main": "./index.ts", "main": "./index.ts",
"types": "./index.ts", "types": "./index.ts",
+2 -1
View File
@@ -1,5 +1,6 @@
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server"; import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
import { openApiDocument } from "./open-api";
import type { AppRouter } from "./root"; import type { AppRouter } from "./root";
import { appRouter } from "./root"; import { appRouter } from "./root";
import { createCallerFactory, createTRPCContext } from "./trpc"; import { createCallerFactory, createTRPCContext } from "./trpc";
@@ -29,5 +30,5 @@ type RouterInputs = inferRouterInputs<AppRouter>;
**/ **/
type RouterOutputs = inferRouterOutputs<AppRouter>; type RouterOutputs = inferRouterOutputs<AppRouter>;
export { createTRPCContext, appRouter, createCaller }; export { createTRPCContext, appRouter, createCaller, openApiDocument };
export type { AppRouter, RouterInputs, RouterOutputs }; export type { AppRouter, RouterInputs, RouterOutputs };
+2 -13
View File
@@ -2,21 +2,10 @@ import { generateOpenApiDocument } from "trpc-to-openapi";
import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key"; import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key";
import { appRouter } from "./router/app"; import { appRouter } from "./root";
import { infoRouter } from "./router/info";
import { inviteRouter } from "./router/invite";
import { userRouter } from "./router/user";
import { createTRPCRouter } from "./trpc";
export const openApiRouter = createTRPCRouter({
appRouter,
infoRouter,
inviteRouter,
userRouter,
});
export const openApiDocument = (base: string) => export const openApiDocument = (base: string) =>
generateOpenApiDocument(openApiRouter, { generateOpenApiDocument(appRouter, {
title: "Homarr API documentation", title: "Homarr API documentation",
version: "1.0.0", version: "1.0.0",
baseUrl: base, baseUrl: base,
+2 -2
View File
@@ -2,7 +2,7 @@ import { observable } from "@trpc/server/observable";
import z from "zod/v4"; import z from "zod/v4";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import { jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api"; import { cronExpressionSchema, jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api";
import { cronJobApi } from "@homarr/cron-job-api/client"; import { cronJobApi } from "@homarr/cron-job-api/client";
import type { TaskStatus } from "@homarr/cron-job-status"; import type { TaskStatus } from "@homarr/cron-job-status";
import { createCronJobStatusChannel } from "@homarr/cron-job-status"; import { createCronJobStatusChannel } from "@homarr/cron-job-status";
@@ -35,7 +35,7 @@ export const cronJobsRouter = createTRPCRouter({
.input( .input(
z.object({ z.object({
name: jobNameSchema, name: jobNameSchema,
cron: z.string(), cron: cronExpressionSchema,
}), }),
) )
.mutation(async ({ input }) => { .mutation(async ({ input }) => {
+1 -1
View File
@@ -110,7 +110,7 @@ export const userRouter = createTRPCRouter({
const queryResult = (await trx.delete(schema.invites).where(inviteWhere)) as const queryResult = (await trx.delete(schema.invites).where(inviteWhere)) as
| QueryResult | QueryResult
| MySqlRawQueryResult; | MySqlRawQueryResult;
let count: number; let count = 0;
if (Array.isArray(queryResult)) { if (Array.isArray(queryResult)) {
count = queryResult[0].affectedRows; count = queryResult[0].affectedRows;
} else { } else {
-1
View File
@@ -30,5 +30,4 @@ export const widgetRouter = createTRPCRouter({
timetable: lazy(() => import("./timetable").then((mod) => mod.timetableRouter)), timetable: lazy(() => import("./timetable").then((mod) => mod.timetableRouter)),
tracearr: lazy(() => import("./tracearr").then((mod) => mod.tracearrRouter)), tracearr: lazy(() => import("./tracearr").then((mod) => mod.tracearrRouter)),
speedtestTracker: lazy(() => import("./speedtest-tracker").then((mod) => mod.speedtestTrackerRouter)), speedtestTracker: lazy(() => import("./speedtest-tracker").then((mod) => mod.speedtestTrackerRouter)),
umami: lazy(() => import("./umami").then((mod) => mod.umamiRouter)),
}); });
-205
View File
@@ -1,205 +0,0 @@
import { observable } from "@trpc/server/observable";
import { z } from "zod/v4";
import { createLogger } from "@homarr/core/infrastructure/logs";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import { createIntegrationAsync } from "@homarr/integrations";
import {
umamiActiveVisitorsRequestHandler,
umamiEventNamesRequestHandler,
umamiMultiEventRequestHandler,
umamiRequestHandler,
umamiTopPagesRequestHandler,
umamiTopReferrersRequestHandler,
} from "@homarr/request-handler/umami";
import { createManyIntegrationMiddleware, createOneIntegrationMiddleware } from "../../middlewares/integration";
import { createTRPCRouter, publicProcedure } from "../../trpc";
const logger = createLogger({ module: "umami-router" });
export const umamiRouter = createTRPCRouter({
getWebsites: publicProcedure.concat(createOneIntegrationMiddleware("query", "umami")).query(async ({ ctx }) => {
try {
const instance = await createIntegrationAsync(ctx.integration);
return await instance.getWebsitesAsync();
} catch (error) {
logger.warn(new Error("Failed to load websites", { cause: error }));
return [];
}
}),
getVisitorStats: publicProcedure
.input(
z.object({
websiteId: z.string(),
timeFrame: z.string(),
eventName: z.string().optional(),
}),
)
.concat(createManyIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
const results = await Promise.all(
ctx.integrations.map(async (integration) => {
const innerHandler = umamiRequestHandler.handler(integration, {
websiteId: input.websiteId,
timeFrame: input.timeFrame,
eventName: input.eventName,
});
const { data, timestamp } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return {
integrationId: integration.id,
integrationName: integration.name,
integrationUrl: integration.url,
visitorStats: data,
updatedAt: timestamp,
};
}),
);
return results;
}),
getEventNames: publicProcedure
.input(z.object({ websiteId: z.string() }))
.concat(createOneIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
try {
const innerHandler = umamiEventNamesRequestHandler.handler(ctx.integration, { websiteId: input.websiteId });
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
} catch (error) {
logger.warn(
new ErrorWithMetadata("Failed to load event names", { websiteId: input.websiteId }, { cause: error }),
);
return [];
}
}),
getTopPages: publicProcedure
.input(
z.object({
websiteId: z.string(),
timeFrame: z.string(),
limit: z.number().int().min(1).max(500),
}),
)
.concat(createOneIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
try {
const innerHandler = umamiTopPagesRequestHandler.handler(ctx.integration, {
websiteId: input.websiteId,
timeFrame: input.timeFrame,
limit: input.limit,
});
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
} catch (error) {
logger.warn(
new ErrorWithMetadata(
"Failed to load top pages",
{ websiteId: input.websiteId, timeFrame: input.timeFrame, limit: input.limit },
{ cause: error },
),
);
return [];
}
}),
getTopReferrers: publicProcedure
.input(
z.object({
websiteId: z.string(),
timeFrame: z.string(),
limit: z.number().int().min(1).max(500),
}),
)
.concat(createOneIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
try {
const innerHandler = umamiTopReferrersRequestHandler.handler(ctx.integration, {
websiteId: input.websiteId,
timeFrame: input.timeFrame,
limit: input.limit,
});
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
} catch (error) {
logger.warn(
new ErrorWithMetadata(
"Failed to load top referrers",
{ websiteId: input.websiteId, timeFrame: input.timeFrame, limit: input.limit },
{ cause: error },
),
);
return [];
}
}),
getMultiEventTimeSeries: publicProcedure
.input(
z.object({
websiteId: z.string(),
timeFrame: z.string(),
eventNames: z.array(z.string()),
}),
)
.concat(createOneIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
try {
const sortedNames = [...input.eventNames].sort();
const innerHandler = umamiMultiEventRequestHandler.handler(ctx.integration, {
websiteId: input.websiteId,
timeFrame: input.timeFrame,
eventNames: sortedNames,
});
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
} catch (error) {
logger.warn(
new ErrorWithMetadata(
"Failed to load multi-event time series",
{ websiteId: input.websiteId, timeFrame: input.timeFrame, eventNames: JSON.stringify(input.eventNames) },
{ cause: error },
),
);
return [];
}
}),
getActiveVisitors: publicProcedure
.input(z.object({ websiteId: z.string() }))
.concat(createOneIntegrationMiddleware("query", "umami"))
.query(async ({ ctx, input }) => {
try {
const innerHandler = umamiActiveVisitorsRequestHandler.handler(ctx.integration, {
websiteId: input.websiteId,
});
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
} catch (error) {
logger.warn(
new ErrorWithMetadata("Failed to load active visitors", { websiteId: input.websiteId }, { cause: error }),
);
return 0;
}
}),
subscribeActiveVisitors: publicProcedure
.input(z.object({ websiteId: z.string() }))
.concat(createOneIntegrationMiddleware("query", "umami"))
.subscription(({ ctx, input }) => {
return observable<number>((emit) => {
const innerHandler = umamiActiveVisitorsRequestHandler.handler(ctx.integration, {
websiteId: input.websiteId,
});
const unsubscribe = innerHandler.subscribe((count) => {
emit.next(count);
});
return () => {
unsubscribe();
};
});
}),
});
+1 -1
View File
@@ -36,7 +36,7 @@ export const createSessionAsync = async (
...user, ...user,
email: user.email ?? "", email: user.email ?? "",
permissions: await getCurrentUserPermissionsAsync(db, user.id), permissions: await getCurrentUserPermissionsAsync(db, user.id),
colorScheme: "auto", colorScheme: "dark",
}, },
} as Session; } as Session;
}; };
-4
View File
@@ -41,10 +41,6 @@ export class Stopwatch {
return dayjs().millisecond(this.startTime).fromNow(true); return dayjs().millisecond(this.startTime).fromNow(true);
} }
getElapsedInFormattedMilliseconds() {
return `${this.getElapsedInMilliseconds().toFixed(0)}ms`;
}
getElapsedInMilliseconds() { getElapsedInMilliseconds() {
return performance.now() - this.startTime; return performance.now() - this.startTime;
} }
+2
View File
@@ -32,6 +32,7 @@
"@trpc/client": "catalog:", "@trpc/client": "catalog:",
"@trpc/server": "catalog:", "@trpc/server": "catalog:",
"@trpc/tanstack-react-query": "catalog:", "@trpc/tanstack-react-query": "catalog:",
"node-cron": "catalog:",
"react": "catalog:", "react": "catalog:",
"zod": "catalog:" "zod": "catalog:"
}, },
@@ -39,6 +40,7 @@
"@homarr/eslint-config": "workspace:^0.2.0", "@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0", "@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0", "@homarr/tsconfig": "workspace:^0.1.0",
"@types/node-cron": "catalog:",
"@types/react": "catalog:", "@types/react": "catalog:",
"eslint": "catalog:", "eslint": "catalog:",
"typescript": "catalog:" "typescript": "catalog:"
+9 -4
View File
@@ -1,4 +1,5 @@
import { initTRPC, TRPCError } from "@trpc/server"; import { initTRPC, TRPCError } from "@trpc/server";
import { validate } from "node-cron";
import { z } from "zod/v4"; import { z } from "zod/v4";
import type { JobGroupKeys } from "@homarr/cron-jobs"; import type { JobGroupKeys } from "@homarr/cron-jobs";
@@ -12,7 +13,7 @@ export const jobNameSchema = z.enum(jobGroup.getKeys());
export interface IJobManager { export interface IJobManager {
startAsync(name: JobGroupKeys): Promise<void>; startAsync(name: JobGroupKeys): Promise<void>;
triggerAsync(name: JobGroupKeys): Promise<void>; triggerAsync(name: JobGroupKeys): Promise<void>;
stop(name: JobGroupKeys): void; stopAsync(name: JobGroupKeys): Promise<void>;
updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>; updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>;
disableAsync(name: JobGroupKeys): Promise<void>; disableAsync(name: JobGroupKeys): Promise<void>;
enableAsync(name: JobGroupKeys): Promise<void>; enableAsync(name: JobGroupKeys): Promise<void>;
@@ -51,6 +52,10 @@ const apiKeyProcedure = t.procedure.use(({ ctx, next }) => {
}); });
}); });
export const cronExpressionSchema = z.string().refine((expression) => validate(expression), {
error: "Invalid cron expression",
});
export const jobRouter = createTrpcRouter({ export const jobRouter = createTrpcRouter({
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => { start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.startAsync(input); await ctx.manager.startAsync(input);
@@ -58,14 +63,14 @@ export const jobRouter = createTrpcRouter({
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => { trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.triggerAsync(input); await ctx.manager.triggerAsync(input);
}), }),
stop: apiKeyProcedure.input(jobNameSchema).mutation(({ input, ctx }) => { stop: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
ctx.manager.stop(input); await ctx.manager.stopAsync(input);
}), }),
updateInterval: apiKeyProcedure updateInterval: apiKeyProcedure
.input( .input(
z.object({ z.object({
name: jobNameSchema, name: jobNameSchema,
cron: z.string(), cron: cronExpressionSchema,
}), }),
) )
.mutation(async ({ input, ctx }) => { .mutation(async ({ input, ctx }) => {
+2 -1
View File
@@ -27,12 +27,13 @@
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/core": "workspace:^", "@homarr/core": "workspace:^",
"@homarr/db": "workspace:^0.1.0", "@homarr/db": "workspace:^0.1.0",
"croner": "catalog:" "node-cron": "catalog:"
}, },
"devDependencies": { "devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0", "@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0", "@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0", "@homarr/tsconfig": "workspace:^0.1.0",
"@types/node-cron": "catalog:",
"eslint": "catalog:", "eslint": "catalog:",
"typescript": "catalog:" "typescript": "catalog:"
} }
+12 -11
View File
@@ -1,4 +1,4 @@
import { Cron } from "croner"; import { createTask, validate } from "node-cron";
import { Stopwatch } from "@homarr/common"; import { Stopwatch } from "@homarr/common";
import type { MaybePromise } from "@homarr/common/types"; import type { MaybePromise } from "@homarr/common/types";
@@ -83,15 +83,10 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
? defaultCronExpression ? defaultCronExpression
: (configuration?.cronExpression ?? defaultCronExpression); : (configuration?.cronExpression ?? defaultCronExpression);
const scheduledTask = new Cron( const scheduledTask = createTask(cronExpression, () => void catchingCallbackAsync(), {
cronExpression, name,
{ timezone: creatorOptions.timezone,
name, });
timezone: creatorOptions.timezone,
paused: true,
},
() => void catchingCallbackAsync(),
);
creatorOptions.logger.logDebug("The scheduled task for cron job was created", { creatorOptions.logger.logDebug("The scheduled task for cron job was created", {
name, name,
cronExpression: defaultCronExpression, cronExpression: defaultCronExpression,
@@ -121,7 +116,6 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
}, },
preventManualExecution: options.preventManualExecution ?? false, preventManualExecution: options.preventManualExecution ?? false,
preventCustomInterval: options.preventCustomInterval ?? false, preventCustomInterval: options.preventCustomInterval ?? false,
timezone: creatorOptions.timezone,
}; };
}; };
}; };
@@ -138,6 +132,13 @@ export const createCronJobCreator = <TAllowedNames extends string = string>(
defaultCronExpression: TExpression, defaultCronExpression: TExpression,
options: CreateCronJobOptions = { runOnStart: false }, options: CreateCronJobOptions = { runOnStart: false },
) => { ) => {
creatorOptions.logger.logDebug("Validating cron expression for cron job", {
name,
cronExpression: defaultCronExpression,
});
if (!validate(defaultCronExpression)) {
throw new Error(`Invalid cron expression '${defaultCronExpression}' for job '${name}'`);
}
creatorOptions.logger.logDebug("Cron job expression for cron job is valid", { creatorOptions.logger.logDebug("Cron job expression for cron job is valid", {
name, name,
cronExpression: defaultCronExpression, cronExpression: defaultCronExpression,
+11 -11
View File
@@ -1,4 +1,4 @@
import type { Cron } from "croner"; import type { ScheduledTask } from "node-cron";
import { objectEntries, objectKeys } from "@homarr/common"; import { objectEntries, objectKeys } from "@homarr/common";
import { db } from "@homarr/db"; import { db } from "@homarr/db";
@@ -34,7 +34,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
}); });
} }
const tasks = new Map<string, Cron>(); const tasks = new Map<string, ScheduledTask>();
return { return {
initializeAsync: async () => { initializeAsync: async () => {
@@ -62,7 +62,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
name: job.name, name: job.name,
}); });
await job.onStartAsync(); await job.onStartAsync();
tasks.get(name as string)?.resume(); await tasks.get(name as string)?.start();
}, },
startAllAsync: async () => { startAllAsync: async () => {
for (const job of jobRegistry.values()) { for (const job of jobRegistry.values()) {
@@ -74,7 +74,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
name: job.name, name: job.name,
}); });
await job.onStartAsync(); await job.onStartAsync();
tasks.get(job.name)?.resume(); await tasks.get(job.name)?.start();
} }
}, },
runManuallyAsync: async (name: keyof TJobs) => { runManuallyAsync: async (name: keyof TJobs) => {
@@ -87,23 +87,23 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
options.logger.logInfo("Running schedule cron job manually.", { options.logger.logInfo("Running schedule cron job manually.", {
name: job.name, name: job.name,
}); });
await tasks.get(name as string)?.trigger(); await tasks.get(name as string)?.execute();
}, },
stop: (name: keyof TJobs) => { stopAsync: async (name: keyof TJobs) => {
const job = jobRegistry.get(name as string); const job = jobRegistry.get(name as string);
if (!job) return; if (!job) return;
options.logger.logInfo("Stopping schedule of cron job.", { options.logger.logInfo("Stopping schedule of cron job.", {
name: job.name, name: job.name,
}); });
tasks.get(name as string)?.pause(); await tasks.get(name as string)?.stop();
}, },
stopAll: () => { stopAllAsync: async () => {
for (const job of jobRegistry.values()) { for (const job of jobRegistry.values()) {
options.logger.logInfo("Stopping schedule of cron job.", { options.logger.logInfo("Stopping schedule of cron job.", {
name: job.name, name: job.name,
}); });
tasks.get(job.name)?.pause(); await tasks.get(job.name)?.stop();
} }
}, },
getJobRegistry() { getJobRegistry() {
@@ -112,8 +112,8 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
getTask(name: keyof TJobs) { getTask(name: keyof TJobs) {
return tasks.get(name as string) ?? null; return tasks.get(name as string) ?? null;
}, },
setTask(name: keyof TJobs, cron: Cron) { setTask(name: keyof TJobs, task: ScheduledTask) {
tasks.set(name as string, cron); tasks.set(name as string, task);
}, },
getKeys() { getKeys() {
return objectKeys(jobs); return objectKeys(jobs);
-2
View File
@@ -20,7 +20,6 @@ import { networkControllerJob } from "./jobs/integrations/network-controller";
import { refreshNotificationsJob } from "./jobs/integrations/notifications"; import { refreshNotificationsJob } from "./jobs/integrations/notifications";
import { timetableJob } from "./jobs/integrations/timetable"; import { timetableJob } from "./jobs/integrations/timetable";
import { tracearrJob } from "./jobs/integrations/tracearr"; import { tracearrJob } from "./jobs/integrations/tracearr";
import { umamiActiveVisitorsJob } from "./jobs/integrations/umami";
import { minecraftServerStatusJob } from "./jobs/minecraft-server-status"; import { minecraftServerStatusJob } from "./jobs/minecraft-server-status";
import { pingJob } from "./jobs/ping"; import { pingJob } from "./jobs/ping";
import { rssFeedsJob } from "./jobs/rss-feeds"; import { rssFeedsJob } from "./jobs/rss-feeds";
@@ -55,7 +54,6 @@ export const jobGroup = createCronJobGroup({
weather: weatherJob, weather: weatherJob,
timetable: timetableJob, timetable: timetableJob,
tracearr: tracearrJob, tracearr: tracearrJob,
umamiActiveVisitors: umamiActiveVisitorsJob,
}); });
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number]; export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
+52 -44
View File
@@ -1,12 +1,9 @@
import type { MySqlRawQueryResult } from "drizzle-orm/mysql2";
import type { QueryResult } from "pg";
import { createId, splitToNChunks, Stopwatch } from "@homarr/common"; import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
import { env } from "@homarr/common/env"; import { env } from "@homarr/common/env";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions"; import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
import type { InferInsertModel } from "@homarr/db"; import type { InferInsertModel } from "@homarr/db";
import { and, db, eq, handleTransactionsAsync, inArray, notInArray, or } from "@homarr/db"; import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
import { iconRepositories, icons } from "@homarr/db/schema"; import { iconRepositories, icons } from "@homarr/db/schema";
import { fetchIconsAsync } from "@homarr/icons"; import { fetchIconsAsync } from "@homarr/icons";
@@ -29,7 +26,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
logger.info("Fetched icons from repositories", { logger.info("Fetched icons from repositories", {
repositoryCount: repositoryIconGroups.length, repositoryCount: repositoryIconGroups.length,
iconCount: countIcons, iconCount: countIcons,
duration: stopWatch.getElapsedInFormattedMilliseconds(), duration: stopWatch.getElapsedInHumanWords(),
}); });
const databaseIconRepositories = await db.query.iconRepositories.findMany({ const databaseIconRepositories = await db.query.iconRepositories.findMany({
@@ -38,7 +35,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
}, },
}); });
const skippedChecksums = new Map<string, string[]>(); const skippedChecksums: `${string}.${string}`[] = [];
let countDeleted = 0; let countDeleted = 0;
let countInserted = 0; let countInserted = 0;
@@ -53,7 +50,6 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
if (!repositoryIconGroup.success) { if (!repositoryIconGroup.success) {
continue; continue;
} }
const localSkippedChecksums: string[] = [];
const repositoryInDb = databaseIconRepositories.find( const repositoryInDb = databaseIconRepositories.find(
(dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug, (dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug,
@@ -70,7 +66,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
for (const icon of repositoryIconGroup.icons) { for (const icon of repositoryIconGroup.icons) {
if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) { if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) {
localSkippedChecksums.push(icon.checksum); skippedChecksums.push(`${iconRepositoryId}.${icon.checksum}`);
continue; continue;
} }
@@ -83,38 +79,19 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
}); });
countInserted++; countInserted++;
} }
skippedChecksums.set(iconRepositoryId, localSkippedChecksums);
} }
const deadIcons = allDbIcons.filter(
(icon) => !skippedChecksums.includes(`${icon.iconRepositoryId}.${icon.checksum}`),
);
const deadIconRepositories = databaseIconRepositories.filter( const deadIconRepositories = databaseIconRepositories.filter(
(iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug), (iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug),
); );
const deadIconsFilter = or(
...[...skippedChecksums.entries()].map(([iconRepositoryId, checksums]) =>
and(eq(icons.iconRepositoryId, iconRepositoryId), notInArray(icons.checksum, checksums)),
),
);
await handleTransactionsAsync(db, { await handleTransactionsAsync(db, {
async handleAsync(db, schema) { async handleAsync(db, schema) {
await db.transaction(async (transaction) => { await db.transaction(async (transaction) => {
const result = (await transaction.delete(schema.icons).where(deadIconsFilter)) as
| MySqlRawQueryResult
| QueryResult;
countDeleted += Array.isArray(result) ? result[0].affectedRows : (result.rowCount ?? 0);
if (deadIconRepositories.length >= 1) {
await transaction.delete(schema.iconRepositories).where(
inArray(
iconRepositories.id,
deadIconRepositories.map((iconRepository) => iconRepository.id),
),
);
}
if (newIconRepositories.length >= 1) { if (newIconRepositories.length >= 1) {
await transaction.insert(schema.iconRepositories).values(newIconRepositories); await transaction.insert(schema.iconRepositories).values(newIconRepositories);
} }
@@ -125,12 +102,52 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
await transaction.insert(schema.icons).values(chunck); await transaction.insert(schema.icons).values(chunck);
} }
} }
if (deadIcons.length >= 1) {
await transaction.delete(schema.icons).where(
inArray(
// Combine iconRepositoryId and checksum to allow same icons on different repositories
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
),
);
}
if (deadIconRepositories.length >= 1) {
await transaction.delete(schema.iconRepositories).where(
inArray(
iconRepositories.id,
deadIconRepositories.map((iconRepository) => iconRepository.id),
),
);
}
countDeleted += deadIcons.length;
}); });
}, },
handleSync() { handleSync() {
db.transaction((transaction) => { db.transaction((transaction) => {
const result = transaction.delete(icons).where(deadIconsFilter).run(); if (newIconRepositories.length >= 1) {
countDeleted += result.changes; transaction.insert(iconRepositories).values(newIconRepositories).run();
}
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run();
}
}
if (deadIcons.length >= 1) {
transaction
.delete(icons)
.where(
inArray(
// Combine iconRepositoryId and checksum to allow same icons on different repositories
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
),
)
.run();
}
if (deadIconRepositories.length >= 1) { if (deadIconRepositories.length >= 1) {
transaction transaction
@@ -144,22 +161,13 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
.run(); .run();
} }
if (newIconRepositories.length >= 1) { countDeleted += deadIcons.length;
transaction.insert(iconRepositories).values(newIconRepositories).run();
}
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run();
}
}
}); });
}, },
}); });
logger.info("Updated icons in database", { logger.info("Updated icons in database", {
duration: stopWatch.getElapsedInFormattedMilliseconds(), duration: stopWatch.getElapsedInHumanWords(),
added: countInserted, added: countInserted,
deleted: countDeleted, deleted: countDeleted,
}); });
@@ -1,14 +0,0 @@
import { EVERY_30_SECONDS } from "@homarr/cron-jobs-core/expressions";
import { createRequestIntegrationJobHandler } from "@homarr/request-handler/lib/cached-request-integration-job-handler";
import { umamiActiveVisitorsRequestHandler } from "@homarr/request-handler/umami";
import { createCronJob } from "../../lib";
export const umamiActiveVisitorsJob = createCronJob("umamiActiveVisitors", EVERY_30_SECONDS).withCallback(
createRequestIntegrationJobHandler(umamiActiveVisitorsRequestHandler.handler, {
widgetKinds: ["umami"],
getInput: {
umami: (options) => (options.websiteId ? { websiteId: options.websiteId } : []),
},
}),
);
+1 -3
View File
@@ -4,7 +4,6 @@ import {
everyoneGroup, everyoneGroup,
getIntegrationDefaultUrl, getIntegrationDefaultUrl,
getIntegrationName, getIntegrationName,
integrationDefs,
integrationKinds, integrationKinds,
} from "@homarr/definitions"; } from "@homarr/definitions";
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings"; import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
@@ -144,9 +143,8 @@ const seedDefaultIntegrationsAsync = async (db: Database) => {
const defaultIntegrations = integrationKinds.reduce<Integration[]>((acc, kind) => { const defaultIntegrations = integrationKinds.reduce<Integration[]>((acc, kind) => {
const name = getIntegrationName(kind); const name = getIntegrationName(kind);
const defaultUrl = getIntegrationDefaultUrl(kind); const defaultUrl = getIntegrationDefaultUrl(kind);
const hasNoAuthOption = integrationDefs[kind].secretKinds.some((kinds) => kinds.length === 0);
if (defaultUrl !== undefined && hasNoAuthOption) { if (defaultUrl !== undefined) {
acc.push({ acc.push({
id: "new", id: "new",
name: `${name} Default`, name: `${name} Default`,
-2
View File
@@ -37,8 +37,6 @@
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts", "push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
"seed": "pnpm with-env tsx ./migrations/run-seed.ts", "seed": "pnpm with-env tsx ./migrations/run-seed.ts",
"studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts", "studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts",
"studio:mysql": "pnpm with-env drizzle-kit studio --config ./configs/mysql.config.ts",
"studio:postgresql": "pnpm with-env drizzle-kit studio --config ./configs/postgresql.config.ts",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --" "with-env": "dotenv -e ../../.env --"
}, },
-10
View File
@@ -370,15 +370,6 @@ export const integrationDefs = {
category: ["speedtest"], category: ["speedtest"],
documentationUrl: createDocumentationLink("/docs/integrations/speedtest-tracker"), documentationUrl: createDocumentationLink("/docs/integrations/speedtest-tracker"),
}, },
umami: {
name: "Umami",
secretKinds: [["username", "password"], ["apiKey"]],
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/umami.svg",
category: ["analytics"],
defaultUrl: "https://api.umami.is/v1",
// @ts-expect-error - docs page will be created when integration is merged
documentationUrl: createDocumentationLink("/docs/integrations/umami"),
},
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page) // This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
mock: { mock: {
name: "Mock", name: "Mock",
@@ -470,7 +461,6 @@ export const integrationCategories = [
"notes", "notes",
"mediaMonitoring", "mediaMonitoring",
"speedtest", "speedtest",
"analytics",
] as const; ] as const;
export type IntegrationCategory = (typeof integrationCategories)[number]; export type IntegrationCategory = (typeof integrationCategories)[number];
+1 -1
View File
@@ -1,2 +1,2 @@
export const colorSchemes = ["auto", "light", "dark"] as const; export const colorSchemes = ["light", "dark"] as const;
export type ColorScheme = (typeof colorSchemes)[number]; export type ColorScheme = (typeof colorSchemes)[number];
-1
View File
@@ -37,6 +37,5 @@ export const widgetKinds = [
"immich-albumCarousel", "immich-albumCarousel",
"tracearr", "tracearr",
"speedtestTracker", "speedtestTracker",
"umami",
] as const; ] as const;
export type WidgetKind = (typeof widgetKinds)[number]; export type WidgetKind = (typeof widgetKinds)[number];
@@ -77,7 +77,7 @@ export class AnchorIntegration extends Integration {
}); });
if (!response.ok) { if (!response.ok) {
let errorBody: string | null; let errorBody: string | null = null;
try { try {
errorBody = await response.text(); errorBody = await response.text();
} catch { } catch {
@@ -46,7 +46,6 @@ import { SeerrIntegration } from "../seerr/seerr-integration";
import { SpeedtestTrackerIntegration } from "../speedtest-tracker/speedtest-tracker-integration"; import { SpeedtestTrackerIntegration } from "../speedtest-tracker/speedtest-tracker-integration";
import { TracearrIntegration } from "../tracearr/tracearr-integration"; import { TracearrIntegration } from "../tracearr/tracearr-integration";
import { TrueNasIntegration } from "../truenas/truenas-integration"; import { TrueNasIntegration } from "../truenas/truenas-integration";
import { UmamiIntegration } from "../umami/umami-integration";
import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration"; import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration";
import { UnraidIntegration } from "../unraid/unraid-integration"; import { UnraidIntegration } from "../unraid/unraid-integration";
import type { Integration, IntegrationInput } from "./integration"; import type { Integration, IntegrationInput } from "./integration";
@@ -122,7 +121,6 @@ export const integrationCreators = {
searchCh: SearchChIntegration, searchCh: SearchChIntegration,
immich: ImmichIntegration, immich: ImmichIntegration,
speedtestTracker: SpeedtestTrackerIntegration, speedtestTracker: SpeedtestTrackerIntegration,
umami: UmamiIntegration,
} satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>; } satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>;
type IntegrationInstanceOfKind<TKind extends keyof typeof integrationCreators> = { type IntegrationInstanceOfKind<TKind extends keyof typeof integrationCreators> = {
-2
View File
@@ -33,7 +33,6 @@ export { CoolifyIntegration } from "./coolify/coolify-integration";
export { ImmichIntegration } from "./immich/immich-integration"; export { ImmichIntegration } from "./immich/immich-integration";
export { TracearrIntegration } from "./tracearr/tracearr-integration"; export { TracearrIntegration } from "./tracearr/tracearr-integration";
export { SpeedtestTrackerIntegration } from "./speedtest-tracker/speedtest-tracker-integration"; export { SpeedtestTrackerIntegration } from "./speedtest-tracker/speedtest-tracker-integration";
export { UmamiIntegration } from "./umami/umami-integration";
// Types // Types
export type { IntegrationInput } from "./base/integration"; export type { IntegrationInput } from "./base/integration";
@@ -69,7 +68,6 @@ export type {
} from "./anchor/anchor-types"; } from "./anchor/anchor-types";
export type { TracearrDashboardData } from "./tracearr/tracearr-types"; export type { TracearrDashboardData } from "./tracearr/tracearr-types";
export type { SpeedtestTrackerDashboardData } from "./speedtest-tracker/speedtest-tracker-types"; export type { SpeedtestTrackerDashboardData } from "./speedtest-tracker/speedtest-tracker-types";
export type { UmamiVisitorStats } from "./umami/umami-types";
// Schemas // Schemas
export { anchorNotesListInputSchema } from "./anchor/anchor-types"; export { anchorNotesListInputSchema } from "./anchor/anchor-types";
@@ -113,9 +113,7 @@ export class NextcloudIntegration extends Integration implements ICalendarIntegr
// next actually returns undefined when there are no more occurrences // next actually returns undefined when there are no more occurrences
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
while ((next = iterator.next())) { while ((next = iterator.next())) {
const nextStartDate = next.isDate const nextStartDate = next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();
? next.toJSDate()
: next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();
if (nextStartDate > end) break; if (nextStartDate > end) break;
const nextEndDate = new Date(nextStartDate.getTime() + durationMs); const nextEndDate = new Date(nextStartDate.getTime() + durationMs);
if (nextEndDate < start) continue; if (nextEndDate < start) continue;
@@ -123,11 +121,7 @@ export class NextcloudIntegration extends Integration implements ICalendarIntegr
startDates.push(nextStartDate); startDates.push(nextStartDate);
} }
} else { } else {
startDates = [ startDates = [veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate()];
veventObject.startDate.isDate
? veventObject.startDate.toJSDate()
: veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate(),
];
} }
return startDates.map((startDate) => { return startDates.map((startDate) => {
-1
View File
@@ -16,4 +16,3 @@ export * from "./anchor/anchor-types";
export * from "./interfaces/timetable/timetable-types"; export * from "./interfaces/timetable/timetable-types";
export * from "./tracearr/tracearr-types"; export * from "./tracearr/tracearr-types";
export * from "./speedtest-tracker/speedtest-tracker-types"; export * from "./speedtest-tracker/speedtest-tracker-types";
export * from "./umami/umami-types";
@@ -1,450 +0,0 @@
import dayjs from "dayjs";
import { ResponseError } from "@homarr/common/server";
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
import { createLogger } from "@homarr/core/infrastructure/logs";
import type { IntegrationTestingInput } from "../base/integration";
import { Integration } from "../base/integration";
import { TestConnectionError } from "../base/test-connection/test-connection-error";
import type { TestingResult } from "../base/test-connection/test-connection-service";
import type {
UmamiEventSeries,
UmamiMetricItem,
UmamiPageviewDataPoint,
UmamiPageviews,
UmamiStats,
UmamiVisitorStats,
UmamiWebsite,
} from "./umami-types";
import {
umamiActiveVisitorsSchema,
umamiAuthResponseSchema,
umamiMetricItemSchema,
umamiPageviewDataPointSchema,
umamiPageviewsSchema,
umamiStatsSchema,
umamiWebsiteSchema,
} from "./umami-types";
// Umami event type ID for custom events (type 1 = page view, type 2 = custom event)
const UMAMI_CUSTOM_EVENT_TYPE = 2;
const logger = createLogger({ module: "umami-integration" });
export class UmamiIntegration extends Integration {
protected async testingAsync(input: IntegrationTestingInput): Promise<TestingResult> {
const authHeaders = await this.getAuthHeadersAsync();
const url = this.url("/websites");
const response = await input.fetchAsync(url, {
headers: authHeaders,
});
if (!response.ok) {
return TestConnectionError.StatusResult(response);
}
return { success: true };
}
public async getWebsitesAsync(): Promise<UmamiWebsite[]> {
const authHeaders = await this.getAuthHeadersAsync();
const url = this.url("/websites");
const response = await fetchWithTrustedCertificatesAsync(url, { headers: authHeaders });
if (!response.ok) throw new ResponseError(response);
const json = await response.json();
// Response envelope differs by hosting:
// - Umami self-hosted returns the array directly: [website, ...]
// - Umami Cloud wraps it: { data: [website, ...] }
// Same divergence applies to the /events list responses below.
return Array.isArray(json)
? umamiWebsiteSchema.array().parse(json)
: umamiWebsiteSchema.array().parse((json as { data: unknown }).data);
}
// Server-side timeFrame resolution is intentional. Keeping `timeFrame` (a
// stable string like "7d") in the cache key means all users viewing the same
// dashboard share one Redis cache entry per (integration, website, timeFrame)
// for the 5-minute TTL. Client-supplied startAt/endAt would include a
// per-second `now` and fragment the cache one-per-user-per-second.
//
// Window bounds mirror Umami UI preset semantics, verified against the
// Umami Cloud dashboard for the same site and timeFrame: each "Last N"
// preset includes the in-progress period as one of N + 1 buckets, snapped
// to bucket boundaries.
// - "24h": current hour + 24 prior hours (25-bucket hour grid)
// - "7d": current day + 7 prior days ( 8-bucket day grid)
// - "30d": current day + 30 prior days (31-bucket day grid)
// - "today" / "month" / "lastMonth": calendar-aligned windows.
//
// Caveat: dayjs() uses the server's local timezone. Callers needing user-local
// boundaries (e.g. "today") may see off-by-one behaviour when the server
// runs in UTC but the user is in a different timezone.
private computeTimeRange(timeFrame: string): { startAt: number; endAt: number; unit: string } {
const startOfToday = dayjs().startOf("day");
const endOfToday = dayjs().endOf("day");
switch (timeFrame) {
case "today":
return { startAt: startOfToday.valueOf(), endAt: endOfToday.valueOf(), unit: "hour" };
case "7d":
return {
startAt: startOfToday.subtract(7, "day").valueOf(),
endAt: endOfToday.valueOf(),
unit: "day",
};
case "30d":
return {
startAt: startOfToday.subtract(30, "day").valueOf(),
endAt: endOfToday.valueOf(),
unit: "day",
};
case "month":
return {
startAt: dayjs().startOf("month").valueOf(),
endAt: dayjs().endOf("month").valueOf(),
unit: "day",
};
case "lastMonth": {
const lastMonth = dayjs().subtract(1, "month");
return {
startAt: lastMonth.startOf("month").valueOf(),
endAt: lastMonth.endOf("month").valueOf(),
unit: "day",
};
}
case "24h":
default:
return {
startAt: dayjs().subtract(24, "hour").startOf("hour").valueOf(),
endAt: dayjs().endOf("hour").valueOf(),
unit: "hour",
};
}
}
public async getVisitorStatsAsync(
websiteId: string,
timeFrame = "24h",
eventName?: string,
): Promise<UmamiVisitorStats> {
const authHeaders = await this.getAuthHeadersAsync();
const website = await this.getWebsiteByIdAsync(websiteId, authHeaders);
const { startAt, endAt, unit } = this.computeTimeRange(timeFrame);
const [stats, pageviews, eventMetrics, eventTimeSeries] = await Promise.all([
this.getWebsiteStatsAsync(website.id, startAt, endAt, authHeaders),
this.getWebsitePageviewsAsync(website.id, startAt, endAt, authHeaders, unit),
eventName ? this.getWebsiteEventMetricsAsync(website.id, startAt, endAt, authHeaders) : Promise.resolve(null),
eventName
? this.getWebsiteEventTimeSeriesAsync(website.id, startAt, endAt, unit, eventName, authHeaders)
: Promise.resolve(null),
]);
const eventCount = eventName && eventMetrics ? (eventMetrics.find(({ x }) => x === eventName)?.y ?? 0) : undefined;
const eventByTimestamp = new Map<number, number>(
(eventTimeSeries ?? []).map(({ x, y }) => [this.parseUmamiDate(x), y]),
);
const dataPoints = pageviews.sessions.map((point) => ({
timestamp: point.x,
visitors: point.y,
...(eventTimeSeries ? { events: eventByTimestamp.get(this.parseUmamiDate(point.x)) ?? 0 } : {}),
}));
return {
domain: website.domain,
websiteName: website.name,
websiteId: website.id,
totalVisitors: stats.visitors,
totalPageviews: stats.pageviews,
totalVisits: stats.visits,
bounceRate: stats.visits > 0 ? Math.round((stats.bounces / stats.visits) * 100) : 0,
avgDuration: stats.visits > 0 ? Math.round(stats.totaltime / stats.visits) : 0,
dataPoints,
timeFrame,
eventCount,
};
}
public async getEventNamesAsync(websiteId: string): Promise<string[]> {
const authHeaders = await this.getAuthHeadersAsync();
const now = Date.now();
const startAt = dayjs().subtract(30, "day").valueOf();
const url = this.url(`/websites/${websiteId}/events`, {
startAt: startAt.toString(),
endAt: now.toString(),
pageSize: "100000",
});
const response = await fetchWithTrustedCertificatesAsync(url, { headers: authHeaders });
if (!response.ok) {
logger.warn("Failed to load event names", { status: response.status, websiteId });
return [];
}
const json = await response.json();
const rawArray: unknown[] = Array.isArray(json)
? json
: json && typeof json === "object" && "data" in json && Array.isArray((json as { data: unknown }).data)
? (json as { data: unknown[] }).data
: [];
const names = new Set<string>();
for (const item of rawArray) {
const record = item as Record<string, unknown>;
if (typeof record.eventName === "string" && record.eventName) {
names.add(record.eventName);
}
}
return [...names].sort();
}
public async getActiveVisitorsAsync(websiteId: string): Promise<number> {
const authHeaders = await this.getAuthHeadersAsync();
const url = this.url(`/websites/${websiteId}/active`);
const response = await fetchWithTrustedCertificatesAsync(url, { headers: authHeaders });
if (!response.ok) {
logger.warn("Failed to load active visitors", { status: response.status, websiteId });
return 0;
}
return umamiActiveVisitorsSchema.parse(await response.json()).visitors;
}
/**
* Umami self-hosted returns "YYYY-MM-DD HH:MM:SS"; Umami Cloud returns ISO 8601.
* Normalise both to epoch ms so timestamps from /pageviews and /events join.
*/
private parseUmamiDate(dateString: string): number {
return new Date(dateString.includes("T") ? dateString : `${dateString.replace(" ", "T")}Z`).getTime();
}
private async getWebsiteByIdAsync(websiteId: string, authHeaders: Record<string, string>): Promise<UmamiWebsite> {
const url = this.url(`/websites/${websiteId}`);
const response = await fetchWithTrustedCertificatesAsync(url, { headers: authHeaders });
if (!response.ok) throw new ResponseError(response);
return umamiWebsiteSchema.parse(await response.json());
}
public async getTopPagesAsync(websiteId: string, timeFrame: string, limit: number): Promise<UmamiMetricItem[]> {
const authHeaders = await this.getAuthHeadersAsync();
const { startAt, endAt } = this.computeTimeRange(timeFrame);
return this.getWebsiteMetricsAsync(websiteId, startAt, endAt, "path", authHeaders, limit);
}
public async getTopReferrersAsync(websiteId: string, timeFrame: string, limit: number): Promise<UmamiMetricItem[]> {
const authHeaders = await this.getAuthHeadersAsync();
const { startAt, endAt } = this.computeTimeRange(timeFrame);
return this.getWebsiteMetricsAsync(websiteId, startAt, endAt, "referrer", authHeaders, limit);
}
public async getMultiEventTimeSeriesAsync(
websiteId: string,
timeFrame: string,
eventNames: string[],
): Promise<UmamiEventSeries[]> {
const authHeaders = await this.getAuthHeadersAsync();
const { startAt, endAt, unit } = this.computeTimeRange(timeFrame);
const results = await Promise.all(
eventNames.map(async (eventName) => {
const dataPoints = await this.getWebsiteEventTimeSeriesAsync(
websiteId,
startAt,
endAt,
unit,
eventName,
authHeaders,
);
return { eventName, dataPoints: dataPoints ?? [] };
}),
);
return results;
}
private async getWebsiteEventMetricsAsync(
websiteId: string,
startAt: number,
endAt: number,
authHeaders: Record<string, string>,
): Promise<UmamiMetricItem[]> {
return await this.getWebsiteMetricsAsync(websiteId, startAt, endAt, "event", authHeaders);
}
private async getWebsiteMetricsAsync(
websiteId: string,
startAt: number,
endAt: number,
type: "event" | "path" | "referrer",
authHeaders: Record<string, string>,
limit?: number,
): Promise<UmamiMetricItem[]> {
const params: Record<string, string> = {
startAt: startAt.toString(),
endAt: endAt.toString(),
type,
};
if (limit !== undefined) params.limit = limit.toString();
const url = this.url(`/websites/${websiteId}/metrics`, params);
const response = await fetchWithTrustedCertificatesAsync(url, {
headers: authHeaders,
});
if (!response.ok) {
logger.warn("Failed to load website metrics", { status: response.status, websiteId, type });
return [];
}
const json = await response.json();
if (Array.isArray(json)) return umamiMetricItemSchema.array().parse(json);
logger.warn("Unexpected metrics response shape", { websiteId, type });
return [];
}
private async getWebsiteEventTimeSeriesAsync(
websiteId: string,
startAt: number,
endAt: number,
unit: string,
eventName: string,
authHeaders: Record<string, string>,
): Promise<UmamiPageviewDataPoint[] | undefined> {
const url = this.url(`/websites/${websiteId}/events`, {
startAt: startAt.toString(),
endAt: endAt.toString(),
unit,
timezone: "UTC",
eventName,
pageSize: "100000",
});
const response = await fetchWithTrustedCertificatesAsync(url, {
headers: authHeaders,
});
if (!response.ok) {
logger.warn("Failed to load event time series", { status: response.status, websiteId, eventName });
return undefined;
}
const json = await response.json();
const rawArray: unknown[] = Array.isArray(json)
? json
: json && typeof json === "object" && "data" in json && Array.isArray((json as { data: unknown }).data)
? (json as { data: unknown[] }).data
: [];
if (rawArray.length === 0) return undefined;
const firstItem = rawArray[0] as Record<string, unknown>;
// Two response shapes coexist:
// - Umami self-hosted returns aggregated buckets: { x: timestamp, y: count }
// - Umami Cloud returns raw event records: { createdAt, eventName, eventType }
// We aggregate the raw Cloud records ourselves into the same bucket grid so
// the result joins cleanly with /pageviews timestamps.
// Aggregated { x, y } format — parse directly (self-hosted instances)
if ("x" in firstItem && "y" in firstItem) {
const points = umamiPageviewDataPointSchema.array().parse(rawArray);
return points.length === 0 ? undefined : points;
}
// Raw event records — aggregate by time bucket (Umami Cloud)
if ("createdAt" in firstItem) {
const pad = (number: number) => String(number).padStart(2, "0");
// Format must match Umami's pageview x-axis timestamps: "YYYY-MM-DD HH:MM:SS"
const truncate = (isoDate: string): string => {
const date = new Date(isoDate);
const dateString = `${date.getUTCFullYear()}-${pad(date.getUTCMonth() + 1)}-${pad(date.getUTCDate())}`;
if (unit === "hour") {
return `${dateString} ${pad(date.getUTCHours())}:00:00`;
}
if (unit === "month") {
return `${date.getUTCFullYear()}-${pad(date.getUTCMonth() + 1)}-01 00:00:00`;
}
return `${dateString} 00:00:00`;
};
const buckets = new Map<string, number>();
for (const item of rawArray) {
const event = item as { eventType?: number; eventName?: string; createdAt: string };
if (event.eventType !== UMAMI_CUSTOM_EVENT_TYPE || event.eventName !== eventName) continue;
const bucket = truncate(event.createdAt);
buckets.set(bucket, (buckets.get(bucket) ?? 0) + 1);
}
if (buckets.size === 0) return undefined;
return (
Array.from(buckets.entries())
.sort(([itemA], [itemB]) => itemA.localeCompare(itemB))
// eslint-disable-next-line id-length
.map(([x, y]) => ({ x, y }))
);
}
return undefined;
}
private async getWebsiteStatsAsync(
websiteId: string,
startAt: number,
endAt: number,
authHeaders: Record<string, string>,
): Promise<UmamiStats> {
const url = this.url(`/websites/${websiteId}/stats`, {
startAt: startAt.toString(),
endAt: endAt.toString(),
});
const response = await fetchWithTrustedCertificatesAsync(url, {
headers: authHeaders,
});
if (!response.ok) {
throw new ResponseError(response);
}
return umamiStatsSchema.parse(await response.json());
}
private async getWebsitePageviewsAsync(
websiteId: string,
startAt: number,
endAt: number,
authHeaders: Record<string, string>,
unit = "hour",
): Promise<UmamiPageviews> {
const url = this.url(`/websites/${websiteId}/pageviews`, {
startAt: startAt.toString(),
endAt: endAt.toString(),
unit,
timezone: "UTC",
});
const response = await fetchWithTrustedCertificatesAsync(url, {
headers: authHeaders,
});
if (!response.ok) {
throw new ResponseError(response);
}
return umamiPageviewsSchema.parse(await response.json());
}
private async getAuthHeadersAsync(): Promise<Record<string, string>> {
if (this.hasSecretValue("apiKey")) {
return { "x-umami-api-key": this.getSecretValue("apiKey") };
}
const token = await this.getJwtTokenAsync();
return { Authorization: `Bearer ${token}` };
}
private async getJwtTokenAsync(): Promise<string> {
const url = this.url("/auth/login");
const response = await fetchWithTrustedCertificatesAsync(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
username: this.getSecretValue("username"),
password: this.getSecretValue("password"),
}),
});
if (!response.ok) throw new ResponseError(response);
return umamiAuthResponseSchema.parse(await response.json()).token;
}
}
@@ -1,84 +0,0 @@
import { z } from "zod/v4";
export const umamiWebsiteSchema = z.object({
id: z.string(),
name: z.string(),
domain: z.string(),
});
export type UmamiWebsite = z.infer<typeof umamiWebsiteSchema>;
export const umamiAuthResponseSchema = z.object({
token: z.string(),
});
export type UmamiAuthResponse = z.infer<typeof umamiAuthResponseSchema>;
export const umamiStatsSchema = z.object({
pageviews: z.number(),
visitors: z.number(),
visits: z.number(),
bounces: z.number(),
totaltime: z.number(),
});
export type UmamiStats = z.infer<typeof umamiStatsSchema>;
export const umamiPageviewDataPointSchema = z.object({
x: z.string(),
y: z.number(),
});
export type UmamiPageviewDataPoint = z.infer<typeof umamiPageviewDataPointSchema>;
export const umamiPageviewsSchema = z.object({
pageviews: z.array(umamiPageviewDataPointSchema),
sessions: z.array(umamiPageviewDataPointSchema),
});
export type UmamiPageviews = z.infer<typeof umamiPageviewsSchema>;
export const umamiMetricItemSchema = z.object({
// x can be null for direct traffic (no referrer) in the referrers endpoint
x: z
.string()
.nullable()
.transform((value) => value ?? ""),
y: z.number(),
});
export type UmamiMetricItem = z.infer<typeof umamiMetricItemSchema>;
export const umamiEventRecordSchema = z.object({
id: z.string(),
eventName: z.string(),
createdAt: z.string(),
});
export type UmamiEventRecord = z.infer<typeof umamiEventRecordSchema>;
export const umamiActiveVisitorsSchema = z.object({
visitors: z.number(),
});
export type UmamiActiveVisitors = z.infer<typeof umamiActiveVisitorsSchema>;
// Internal aggregated type returned by the integration — not a direct API response
export interface UmamiEventSeries {
eventName: string;
dataPoints: UmamiPageviewDataPoint[];
}
export interface UmamiVisitorStats {
domain: string;
websiteId: string;
websiteName: string;
totalVisitors: number;
totalPageviews: number;
totalVisits: number;
bounceRate: number;
avgDuration: number;
dataPoints: { timestamp: string; visitors: number; events?: number }[];
timeFrame: string;
eventCount?: number;
}
+1 -1
View File
@@ -24,7 +24,7 @@ export const mapAndDecryptUsers = (importUsers: OldmarrImportUser[], encryptionT
oldId: id, oldId: id,
id: createId(), id: createId(),
name: user.name.toLowerCase(), name: user.name.toLowerCase(),
colorScheme: settings?.colorScheme === "environment" ? "auto" : settings?.colorScheme, colorScheme: settings?.colorScheme === "environment" ? undefined : settings?.colorScheme,
firstDayOfWeek: settings?.firstDayOfWeek === "sunday" ? 0 : settings?.firstDayOfWeek === "monday" ? 1 : 6, firstDayOfWeek: settings?.firstDayOfWeek === "sunday" ? 0 : settings?.firstDayOfWeek === "monday" ? 1 : 6,
provider: "credentials", provider: "credentials",
pingIconsEnabled: settings?.replacePingWithIcons, pingIconsEnabled: settings?.replacePingWithIcons,
@@ -1,138 +0,0 @@
import type { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods";
import { Octokit } from "octokit";
import { beforeEach, describe, expect, test, vi } from "vitest";
import { getAvailableUpdatesAsync } from "../update-checker";
const mockEnv = vi.hoisted(() => ({
NO_EXTERNAL_CONNECTION: false,
}));
vi.mock("@homarr/common/env", () => ({
env: mockEnv,
}));
vi.mock("octokit", () => {
const mockOctokit = {
rest: {
repos: {
listReleases: vi.fn(),
},
},
};
return {
Octokit: class {
rest = mockOctokit.rest;
},
};
});
describe("getAvailableUpdatesAsync", () => {
beforeEach(() => {
mockEnv.NO_EXTERNAL_CONNECTION = false;
});
test("should return available non pre-release updates", async () => {
// Arrange
const currentVersion = "v1.2.3";
const releases = fakeReleasesWithPrereleases();
const listReleasesSpy = vi.spyOn(new Octokit().rest.repos, "listReleases");
listReleasesSpy.mockReturnValue(Promise.resolve({ data: releases, status: 200, headers: {}, url: "" }));
// Act
const result = await getAvailableUpdatesAsync(currentVersion);
// Assert
expect(result.map((update) => update.tagName)).toEqual(["v1.3.0", "v1.2.4"]);
expect(listReleasesSpy).toHaveBeenCalledWith({
owner: "homarr-labs",
repo: "homarr",
});
});
test("should return all available updates", async () => {
// Arrange
const currentVersion = "v1.2.4-beta.2";
const releases = fakeReleasesWithPrereleases();
const listReleasesSpy = vi.spyOn(new Octokit().rest.repos, "listReleases");
listReleasesSpy.mockReturnValue(Promise.resolve({ data: releases, status: 200, headers: {}, url: "" }));
// Act
const result = await getAvailableUpdatesAsync(currentVersion);
// Assert
expect(result.map((update) => update.tagName)).toEqual([
"v1.3.1-beta.1",
"v1.3.0",
"v1.3.0-beta.1",
"v1.2.4",
"v1.2.4-beta.3",
]);
expect(listReleasesSpy).toHaveBeenCalledWith({
owner: "homarr-labs",
repo: "homarr",
query: undefined,
});
});
test("should skip releases with invalid semver tags", async () => {
// Arrange
const currentVersion = "v1.2.3";
const releases = fakeReleases(["v1.2.4", false], ["invalid-tag", false], ["v1.3.0", false]);
const listReleasesSpy = vi.spyOn(new Octokit().rest.repos, "listReleases");
listReleasesSpy.mockReturnValue(Promise.resolve({ data: releases, status: 200, headers: {}, url: "" }));
// Act
const result = await getAvailableUpdatesAsync(currentVersion);
// Assert
expect(result.map((update) => update.tagName)).toEqual(["v1.3.0", "v1.2.4"]);
});
test("should throw error for invalid current version", async () => {
// Arrange
const currentVersion = "invalid-version";
// Act
const act = () => getAvailableUpdatesAsync(currentVersion);
// Assert
await expect(act()).rejects.toThrow("non semantic current version");
});
test("should return empty array when NO_EXTERNAL_CONNECTION=true", async () => {
// Arrange
mockEnv.NO_EXTERNAL_CONNECTION = true;
const currentVersion = "v1.0.0";
// Act
const result = await getAvailableUpdatesAsync(currentVersion);
// Assert
expect(result).toEqual([]);
});
});
const fakeReleases = (...inputs: [string, boolean][]) => inputs.map(fakeRelease);
const fakeRelease = ([tagName, isPrerelease]: [string, boolean]) =>
({
tag_name: tagName,
html_url: `https://github.com/homarr-labs/homarr/releases/tag/${tagName}`,
name: tagName,
body_html: undefined,
prerelease: isPrerelease,
}) as RestEndpointMethodTypes["repos"]["listReleases"]["response"]["data"][number];
const fakeReleasesWithPrereleases = () =>
fakeReleases(
["v1.1.0", false],
["v1.2.2", false],
["v1.2.3", false],
["v1.2.4-beta.1", true],
["v1.2.4-beta.2", true],
["v1.2.4-beta.3", true],
["v1.2.4", false],
["v1.3.0-beta.1", true],
["v1.3.0", false],
["v1.3.1-beta.1", true],
);
-84
View File
@@ -1,84 +0,0 @@
import dayjs from "dayjs";
import { createIntegrationAsync } from "@homarr/integrations";
import type { UmamiEventSeries, UmamiMetricItem, UmamiVisitorStats } from "@homarr/integrations/types";
import { createCachedIntegrationRequestHandler } from "./lib/cached-integration-request-handler";
export const umamiRequestHandler = createCachedIntegrationRequestHandler<
UmamiVisitorStats,
"umami",
{ websiteId: string; timeFrame: string; eventName?: string }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getVisitorStatsAsync(input.websiteId, input.timeFrame, input.eventName);
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "umamiVisitorStats",
});
export const umamiEventNamesRequestHandler = createCachedIntegrationRequestHandler<
string[],
"umami",
{ websiteId: string }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getEventNamesAsync(input.websiteId);
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "umamiEventNames",
});
export const umamiTopPagesRequestHandler = createCachedIntegrationRequestHandler<
UmamiMetricItem[],
"umami",
{ websiteId: string; timeFrame: string; limit: number }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getTopPagesAsync(input.websiteId, input.timeFrame, input.limit);
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "umamiTopPages",
});
export const umamiTopReferrersRequestHandler = createCachedIntegrationRequestHandler<
UmamiMetricItem[],
"umami",
{ websiteId: string; timeFrame: string; limit: number }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getTopReferrersAsync(input.websiteId, input.timeFrame, input.limit);
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "umamiTopReferrers",
});
export const umamiMultiEventRequestHandler = createCachedIntegrationRequestHandler<
UmamiEventSeries[],
"umami",
{ websiteId: string; timeFrame: string; eventNames: string[] }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getMultiEventTimeSeriesAsync(input.websiteId, input.timeFrame, input.eventNames);
},
cacheDuration: dayjs.duration(5, "minutes"),
queryKey: "umamiMultiEvent",
});
export const umamiActiveVisitorsRequestHandler = createCachedIntegrationRequestHandler<
number,
"umami",
{ websiteId: string }
>({
async requestAsync(integration, input) {
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getActiveVisitorsAsync(input.websiteId);
},
cacheDuration: dayjs.duration(30, "seconds"),
queryKey: "umamiActiveVisitors",
});
+48 -92
View File
@@ -1,11 +1,10 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import { Octokit } from "octokit"; import { Octokit } from "octokit";
import { compareSemVer, isValidSemVer, parseSemVer } from "semver-parser"; import { compareSemVer, isValidSemVer } from "semver-parser";
import { env } from "@homarr/common/env"; import { env } from "@homarr/common/env";
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http"; import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import { createChannelWithLatestAndEvents } from "@homarr/redis"; import { createChannelWithLatestAndEvents } from "@homarr/redis";
import { createCachedRequestHandler } from "@homarr/request-handler/lib/cached-request-handler"; import { createCachedRequestHandler } from "@homarr/request-handler/lib/cached-request-handler";
@@ -17,101 +16,58 @@ export const updateCheckerRequestHandler = createCachedRequestHandler({
queryKey: "homarr-update-checker", queryKey: "homarr-update-checker",
cacheDuration: dayjs.duration(1, "hour"), cacheDuration: dayjs.duration(1, "hour"),
async requestAsync(_) { async requestAsync(_) {
if (env.NO_EXTERNAL_CONNECTION)
return {
availableUpdates: [],
};
const octokit = new Octokit({
request: {
fetch: fetchWithTrustedCertificatesAsync,
},
});
const releases = await octokit.rest.repos.listReleases({
owner: "homarr-labs",
repo: "homarr",
});
const currentVersion = (packageJson as { version: string }).version;
const availableReleases = [];
for (const release of releases.data) {
if (!isValidSemVer(release.tag_name)) {
logger.warn("Unable to parse semantic tag. Update check might not work.", { tagName: release.tag_name });
continue;
}
availableReleases.push(release);
}
const availableNewerReleases = availableReleases
.filter((release) => compareSemVer(release.tag_name, currentVersion) > 0)
.sort((releaseA, releaseB) => compareSemVer(releaseB.tag_name, releaseA.tag_name));
if (availableNewerReleases.length > 0) {
logger.info(
"Update checker found a new available version",
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
{ version: availableReleases[0]!.tag_name, currentVersion },
);
} else {
logger.debug("Update checker did not find any available updates", { currentVersion });
}
return { return {
availableUpdates: await getAvailableUpdatesAsync(packageJson.version), availableUpdates: availableNewerReleases.map((release) => ({
name: release.name,
contentHtml: release.body_html,
url: release.html_url,
tagName: release.tag_name,
})),
}; };
}, },
createRedisChannel() { createRedisChannel() {
return createChannelWithLatestAndEvents<{ return createChannelWithLatestAndEvents<{
availableUpdates: Update[]; availableUpdates: { name: string | null; contentHtml?: string; url: string; tagName: string }[];
}>("homarr:update"); }>("homarr:update");
}, },
}); });
interface Update {
name: string | null;
contentHtml?: string;
url: string;
tagName: string;
isPrerelease: boolean;
}
const isPrereleaseTag = (tagName: string) => {
try {
const parsed = parseSemVer(tagName);
return Boolean(parsed.pre?.length);
} catch {
return false;
}
};
export const getAvailableUpdatesAsync = async (currentVersion: string) => {
if (env.NO_EXTERNAL_CONNECTION) return [];
if (!isValidSemVer(currentVersion)) {
throw new ErrorWithMetadata("Unable to check for updates due to non semantic current version", {
currentVersion,
});
}
const octokit = new Octokit({
request: {
fetch: fetchWithTrustedCertificatesAsync,
},
});
const isCurrentPrerelease = isPrereleaseTag(currentVersion);
const releases = await octokit.rest.repos.listReleases({
owner: "homarr-labs",
repo: "homarr",
});
const { skippedTags, semanticReleases } = releases.data
.map((release) => ({
name: release.name,
contentHtml: release.body_html,
url: release.html_url,
tagName: release.tag_name,
isPrerelease: release.prerelease,
}))
.reduce(
(prev, curr) => {
if (!isValidSemVer(curr.tagName)) {
prev.skippedTags.push(curr.tagName);
return prev;
}
prev.semanticReleases.push(curr);
return prev;
},
{ semanticReleases: [] as Update[], skippedTags: [] as string[] },
);
if (skippedTags.length > 0) {
logger.warn(
"Some releases were skipped during the update check because their tag name is not a valid semantic version",
{
skippedTags: skippedTags.join(","),
},
);
}
const availableUpdates = semanticReleases
.filter((release) => isCurrentPrerelease || !release.isPrerelease)
.filter((release) => compareSemVer(release.tagName, currentVersion) > 0)
.sort((releaseA, releaseB) => compareSemVer(releaseB.tagName, releaseA.tagName));
if (availableUpdates.length === 0) {
logger.debug("No available updates found", { currentVersion });
return [];
}
logger.info("Found available updates", {
version: availableUpdates[0]?.tagName,
count: availableUpdates.length,
currentVersion,
});
return availableUpdates;
};
+1 -1
View File
@@ -36,7 +36,7 @@ export const defaultServerSettings = {
enableGravatar: true, enableGravatar: true,
}, },
appearance: { appearance: {
defaultColorScheme: "auto" as ColorScheme, defaultColorScheme: "light" as ColorScheme,
}, },
culture: { culture: {
defaultLocale: "en" as SupportedLanguage, defaultLocale: "en" as SupportedLanguage,
@@ -1,8 +1,7 @@
import { Group, Text, useComputedColorScheme, useMantineColorScheme } from "@mantine/core"; import { Group, Text, useMantineColorScheme } from "@mantine/core";
import { import {
IconBox, IconBox,
IconCategoryPlus, IconCategoryPlus,
IconDeviceDesktop,
IconFileImport, IconFileImport,
IconLanguage, IconLanguage,
IconMailForward, IconMailForward,
@@ -53,17 +52,13 @@ export const globalCommandGroup = createGroup<Command>({
useOptions() { useOptions() {
const tOption = useScopedI18n("search.mode.command.group.globalCommand.option"); const tOption = useScopedI18n("search.mode.command.group.globalCommand.option");
const { colorScheme } = useMantineColorScheme(); const { colorScheme } = useMantineColorScheme();
const computedColorScheme = useComputedColorScheme("light");
const { data: session } = useSession(); const { data: session } = useSession();
const commands: (Command & { hidden?: boolean })[] = [ const commands: (Command & { hidden?: boolean })[] = [
{ {
commandKey: "colorScheme", commandKey: "colorScheme",
icon: colorScheme === "auto" ? IconDeviceDesktop : computedColorScheme === "dark" ? IconSun : IconMoon, icon: colorScheme === "dark" ? IconSun : IconMoon,
name: name: tOption(`colorScheme.${colorScheme === "dark" ? "light" : "dark"}`),
colorScheme === "auto"
? tOption("colorScheme.auto")
: tOption(`colorScheme.${computedColorScheme === "dark" ? "light" : "dark"}`),
useInteraction: () => { useInteraction: () => {
const { toggleColorScheme } = useMantineColorScheme(); const { toggleColorScheme } = useMantineColorScheme();
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
+25 -29
View File
@@ -1614,22 +1614,22 @@
"label": "" "label": ""
}, },
"showTitle": { "showTitle": {
"label": "显示标题" "label": ""
}, },
"showUpdatedAt": { "showUpdatedAt": {
"label": "显示最近更新" "label": ""
} }
}, },
"empty": "选择要显示的笔记", "empty": "",
"emptyContent": "此笔记没有内容", "emptyContent": "",
"notFound": "未找到笔记", "notFound": "",
"noNotes": "", "noNotes": "",
"integrationRequired": "", "integrationRequired": "",
"updatedAt": "更新时间:{date}", "updatedAt": "",
"untitled": "未命名", "untitled": "",
"edit": "编辑", "edit": "",
"save": "保存", "save": "",
"cancel": "取消", "cancel": "",
"readOnlyViewer": "", "readOnlyViewer": "",
"saveForbidden": "", "saveForbidden": "",
"saveFailed": "" "saveFailed": ""
@@ -1901,7 +1901,7 @@
"label": "显示内存信息" "label": "显示内存信息"
}, },
"gpu": { "gpu": {
"label": "显示 GPU 信息" "label": ""
}, },
"showUptime": { "showUptime": {
"label": "显示运行时间" "label": "显示运行时间"
@@ -2200,15 +2200,15 @@
"description": "" "description": ""
}, },
"showPhotos": { "showPhotos": {
"label": "显示图片", "label": "",
"description": "" "description": ""
}, },
"showVideos": { "showVideos": {
"label": "显示视频", "label": "",
"description": "" "description": ""
}, },
"showStorage": { "showStorage": {
"label": "显示存储", "label": "",
"description": "" "description": ""
} }
}, },
@@ -2229,7 +2229,7 @@
"description": "" "description": ""
}, },
"showPhotoInfo": { "showPhotoInfo": {
"label": "显示图片信息", "label": "",
"description": "" "description": ""
} }
}, },
@@ -2783,17 +2783,17 @@
"recentResults": "", "recentResults": "",
"recentResultsSpeed": "", "recentResultsSpeed": "",
"recentResultsPing": "", "recentResultsPing": "",
"download": "下载", "download": "",
"upload": "上传", "upload": "",
"ping": "Ping", "ping": "",
"status": "状态", "status": "",
"avgDownload": "平均下载", "avgDownload": "",
"avgUpload": "平均上传", "avgUpload": "",
"avgPing": "平均Ping", "avgPing": "",
"healthy": "", "healthy": "",
"unhealthy": "", "unhealthy": "",
"ok": "", "ok": "",
"fail": "失败", "fail": "",
"noSectionsEnabled": "", "noSectionsEnabled": "",
"error": { "error": {
"internalServerError": "" "internalServerError": ""
@@ -2812,7 +2812,7 @@
"option": { "option": {
"cpu": "CPU", "cpu": "CPU",
"memory": "内存", "memory": "内存",
"gpu": "GPU", "gpu": "",
"network": "网络" "network": "网络"
} }
}, },
@@ -2829,7 +2829,7 @@
"card": { "card": {
"cpu": "CPU", "cpu": "CPU",
"memory": "内存", "memory": "内存",
"gpu": "GPU", "gpu": "",
"network": "网络", "network": "网络",
"up": "上传", "up": "上传",
"down": "下载" "down": "下载"
@@ -3790,10 +3790,6 @@
"title": "翻译人员", "title": "翻译人员",
"subtitle": "在许多语言中,有{count}人贡献了翻译" "subtitle": "在许多语言中,有{count}人贡献了翻译"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "相关的库", "title": "相关的库",
"subtitle": "{count} 用于 Homarr 代码中" "subtitle": "{count} 用于 Homarr 代码中"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "crwdns1884:0crwdne1884:0", "title": "crwdns1884:0crwdne1884:0",
"subtitle": "crwdns1886:0{count}crwdne1886:0" "subtitle": "crwdns1886:0{count}crwdne1886:0"
}, },
"sponsors": {
"title": "crwdns4100:0crwdne4100:0",
"subtitle": "crwdns4102:0{count}crwdne4102:0"
},
"libraries": { "libraries": {
"title": "crwdns1888:0crwdne1888:0", "title": "crwdns1888:0crwdne1888:0",
"subtitle": "crwdns1890:0{count}crwdne1890:0" "subtitle": "crwdns1890:0{count}crwdne1890:0"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Překladatelé", "title": "Překladatelé",
"subtitle": "{count} přispívá překladem do mnoha jazyků" "subtitle": "{count} přispívá překladem do mnoha jazyků"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Oversættere", "title": "Oversættere",
"subtitle": "{count} bidragende oversættere på mange sprog" "subtitle": "{count} bidragende oversættere på mange sprog"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Biblioteker", "title": "Biblioteker",
"subtitle": "{count} brugt i koden for Homarr" "subtitle": "{count} brugt i koden for Homarr"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Übersetzer", "title": "Übersetzer",
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei" "subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Bibliotheken", "title": "Bibliotheken",
"subtitle": "{count} im Code von Homarr verwendet" "subtitle": "{count} im Code von Homarr verwendet"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Übersetzer", "title": "Übersetzer",
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei" "subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Bibliotheken", "title": "Bibliotheken",
"subtitle": "{count} im Code von Homarr verwendet" "subtitle": "{count} im Code von Homarr verwendet"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
+18 -22
View File
@@ -1607,32 +1607,32 @@
} }
}, },
"anchorNote": { "anchorNote": {
"name": "Anchor Note", "name": "",
"description": "Displays a selected note from Anchor", "description": "",
"option": { "option": {
"noteId": { "noteId": {
"label": "Note" "label": ""
}, },
"showTitle": { "showTitle": {
"label": "Show title" "label": ""
}, },
"showUpdatedAt": { "showUpdatedAt": {
"label": "Show last updated" "label": ""
} }
}, },
"empty": "Select a note to display", "empty": "",
"emptyContent": "This note has no content", "emptyContent": "",
"notFound": "Note not found", "notFound": "",
"noNotes": "No notes found", "noNotes": "",
"integrationRequired": "Select an Anchor integration first", "integrationRequired": "",
"updatedAt": "Updated {date}", "updatedAt": "",
"untitled": "Untitled", "untitled": "",
"edit": "Edit", "edit": "",
"save": "Save", "save": "",
"cancel": "Cancel", "cancel": "",
"readOnlyViewer": "You have viewer access to this note. Editing is disabled.", "readOnlyViewer": "",
"saveForbidden": "You do not have permission to edit this note.", "saveForbidden": "",
"saveFailed": "Failed to save this note. Please try again." "saveFailed": ""
}, },
"iframe": { "iframe": {
"name": "iFrame", "name": "iFrame",
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-108
View File
@@ -1080,7 +1080,6 @@
}, },
"colorScheme": { "colorScheme": {
"options": { "options": {
"auto": "Auto",
"light": "Light", "light": "Light",
"dark": "Dark" "dark": "Dark"
} }
@@ -2097,104 +2096,6 @@
"internalServerError": "Failed to fetch Tracearr data" "internalServerError": "Failed to fetch Tracearr data"
} }
}, },
"umami": {
"name": "Umami Analytics",
"description": "Display visitor stats from your Umami analytics instance",
"visitors": "visitors",
"active": "active",
"pageviews": "pageviews",
"visits": "visits",
"bounceRate": "bounce",
"avgDuration": "avg",
"option": {
"websiteId": {
"label": "Website",
"description": "Select a website tracked by your Umami instance",
"placeholder": "Select a website",
"loading": "Loading websites...",
"noWebsites": "No websites found",
"configureIntegrationFirst": "Connect a Umami integration first"
},
"timeFrame": {
"label": "Time frame",
"description": "The time period to display visitor data for",
"option": {
"today": "Today",
"24h": "Last 24 hours",
"7d": "Last 7 days",
"30d": "Last 30 days",
"month": "This month",
"lastMonth": "Last month"
}
},
"eventName": {
"label": "Event",
"description": "Show total occurrences of a specific event",
"placeholder": "Select an event",
"loading": "Loading events...",
"noEvents": "No events found",
"none": "No event",
"configureWebsiteFirst": "Select a website first to load events"
},
"chartType": {
"label": "Chart type",
"description": "Display style for the chart",
"option": {
"bar": "Bar chart",
"sparkline": "Sparkline"
}
},
"chartStyle": {
"label": "Chart style",
"description": "How to display the event series in the chart",
"option": {
"grouped": "Side by side",
"overlay": "Overlay (subset)"
}
},
"viewMode": {
"label": "View",
"description": "What to display in the widget body",
"option": {
"chart": "Chart",
"events": "Events chart",
"topPages": "Top pages",
"topReferrers": "Top referrers"
}
},
"eventNames": {
"label": "Events",
"description": "Select one or more events to chart",
"placeholder": "Select events...",
"loading": "Loading events...",
"noEvents": "No events found",
"configureWebsiteFirst": "Select a website first to load events"
},
"topCount": {
"label": "Items to show",
"description": "Number of top items to display (max 500)"
}
},
"event": {
"occurrences": "events",
"label": "events"
},
"topPages": {
"direct": "Direct"
},
"topReferrers": {
"direct": "Direct"
},
"events": {
"selectPrompt": "Select events to chart"
},
"error": {
"noIntegration": "No Umami integration configured",
"noWebsite": "No website configured",
"noData": "No data available",
"internalServerError": "Failed to fetch Umami data"
}
},
"common": { "common": {
"location": { "location": {
"query": "City / Postal code", "query": "City / Postal code",
@@ -3667,7 +3568,6 @@
"defaultColorScheme": { "defaultColorScheme": {
"label": "Default color scheme", "label": "Default color scheme",
"options": { "options": {
"auto": "Auto",
"light": "Light", "light": "Light",
"dark": "Dark" "dark": "Dark"
} }
@@ -3768,9 +3668,6 @@
}, },
"tracearr": { "tracearr": {
"label": "Tracearr" "label": "Tracearr"
},
"umamiActiveVisitors": {
"label": "Umami Active Visitors"
} }
}, },
"interval": { "interval": {
@@ -3893,10 +3790,6 @@
"title": "Translators", "title": "Translators",
"subtitle": "{count} contributing translations in many languages" "subtitle": "{count} contributing translations in many languages"
}, },
"sponsors": {
"title": "Sponsors",
"subtitle": "{count} supporting the project financially"
},
"libraries": { "libraries": {
"title": "Libraries", "title": "Libraries",
"subtitle": "{count} used in the Code of Homarr" "subtitle": "{count} used in the Code of Homarr"
@@ -4483,7 +4376,6 @@
"title": "Global commands", "title": "Global commands",
"option": { "option": {
"colorScheme": { "colorScheme": {
"auto": "Toggle appearance mode",
"light": "Switch to light mode", "light": "Switch to light mode",
"dark": "Switch to dark mode" "dark": "Switch to dark mode"
}, },
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Traductores", "title": "Traductores",
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas" "subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Librerías", "title": "Librerías",
"subtitle": "{count} usadas en el Código de Homarr" "subtitle": "{count} usadas en el Código de Homarr"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Traducteurs", "title": "Traducteurs",
"subtitle": "{count} ont contribué à des traductions dans de nombreuses langues" "subtitle": "{count} ont contribué à des traductions dans de nombreuses langues"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Bibliothèques", "title": "Bibliothèques",
"subtitle": "{count} utilisés dans le Code d'Homarr" "subtitle": "{count} utilisés dans le Code d'Homarr"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "מתרגמים", "title": "מתרגמים",
"subtitle": "{count} תורמים בתרגום לשפות שונות" "subtitle": "{count} תורמים בתרגום לשפות שונות"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "ספריות", "title": "ספריות",
"subtitle": "{count} בשימוש בקוד של Homarr" "subtitle": "{count} בשימוש בקוד של Homarr"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
+146 -150
View File
@@ -2101,7 +2101,7 @@
"query": "Város / Irányítószám", "query": "Város / Irányítószám",
"latitude": "Szélesség", "latitude": "Szélesség",
"longitude": "Hosszúság", "longitude": "Hosszúság",
"disabledTooltip": "Adj meg egy várost vagy irányítószámot", "disabledTooltip": "",
"unknownLocation": "Ismeretlen hely", "unknownLocation": "Ismeretlen hely",
"search": "Keresés", "search": "Keresés",
"table": { "table": {
@@ -2120,16 +2120,16 @@
} }
}, },
"integration": { "integration": {
"noData": "Nem találtam integrációt", "noData": "",
"description": "Kattintson <here></here> egy új integráció létrehozásához" "description": ""
}, },
"app": { "app": {
"noData": "Nem található alkalmazás", "noData": "Nem található alkalmazás",
"description": "Kattintson <here></here> egy új alkalmazás létrehozásához", "description": "",
"quickCreate": "Alkalmazás létrehozása pillanatok alatt" "quickCreate": ""
}, },
"error": { "error": {
"noIntegration": "Nincs kiválasztva integráció", "noIntegration": "",
"noData": "Nincs elérhető integrációs adat" "noData": "Nincs elérhető integrációs adat"
}, },
"option": {} "option": {}
@@ -2325,20 +2325,20 @@
"detailsTitle": "Összes letöltés" "detailsTitle": "Összes letöltés"
}, },
"sent": { "sent": {
"columnTitle": "Teljesen fönn", "columnTitle": "",
"detailsTitle": "Teljesen föltöltött" "detailsTitle": ""
}, },
"size": { "size": {
"columnTitle": "Fájl mérete", "columnTitle": "",
"detailsTitle": "A kijelölt elemek/fájlok teljes mérete" "detailsTitle": ""
}, },
"state": { "state": {
"columnTitle": "Állapot", "columnTitle": "Állapot",
"detailsTitle": "A feladat állapota" "detailsTitle": ""
}, },
"time": { "time": {
"columnTitle": "Befejezési idő", "columnTitle": "",
"detailsTitle": "A befejezésig hátralévő idő" "detailsTitle": ""
}, },
"type": { "type": {
"columnTitle": "Típus", "columnTitle": "Típus",
@@ -2364,57 +2364,57 @@
"actions": { "actions": {
"clients": { "clients": {
"modalTitle": "Letöltkliensek listája", "modalTitle": "Letöltkliensek listája",
"pause": "Minden kliens/elem felfüggesztése", "pause": "",
"resume": "Minden kliens/elem folytatása" "resume": ""
}, },
"client": { "client": {
"pause": "Kliens felfüggesztése", "pause": "",
"resume": "Kliens folytatása" "resume": ""
}, },
"item": { "item": {
"pause": "Elem felfüggesztése", "pause": "",
"resume": "Elem folytatása", "resume": "",
"delete": { "delete": {
"title": "Elem törlése", "title": "",
"modalTitle": "Biztosan törli ezt a feladatot?", "modalTitle": "",
"entry": "Bejegyzés törlése", "entry": "",
"entryAndFiles": "Bejegyzés és file(ok) törlése" "entryAndFiles": ""
} }
} }
}, },
"globalRatio": "Összes arány" "globalRatio": ""
}, },
"mediaReleases": { "mediaReleases": {
"name": "Sajtóközlemények", "name": "",
"description": "Az egyes integrációkból származó újonnan hozzáadott médiafájlok vagy hamarosan megjelenő kiadványok megjelenítése", "description": "",
"option": { "option": {
"layout": { "layout": {
"label": "Elrendezés", "label": "",
"option": { "option": {
"backdrop": { "backdrop": {
"label": "Háttér" "label": ""
}, },
"poster": { "poster": {
"label": "Poszter" "label": ""
} }
} }
}, },
"showDescriptionTooltip": { "showDescriptionTooltip": {
"label": "Leírás megjelenítése" "label": ""
}, },
"showType": { "showType": {
"label": "Médiatípus-jelölő megjelenítése" "label": ""
}, },
"showSource": { "showSource": {
"label": "Forrásintegráció megjelenítése" "label": ""
} }
}, },
"length": { "length": {
"duration": "{length}perc" "duration": ""
} }
}, },
"mediaRequests-requestList": { "mediaRequests-requestList": {
"name": "Médiakérések listája", "name": "",
"description": "Az Overseerr vagy Jellyseerr példány összes médiakérelmének listájának megtekintése", "description": "Az Overseerr vagy Jellyseerr példány összes médiakérelmének listájának megtekintése",
"option": { "option": {
"linksTargetNewTab": { "linksTargetNewTab": {
@@ -2422,31 +2422,31 @@
} }
}, },
"pending": { "pending": {
"approve": "Kérelem elfogadása", "approve": "",
"approving": "Kérelem elfogadása...", "approving": "",
"decline": "Kérés elutasítása" "decline": ""
}, },
"availability": { "availability": {
"unknown": "Ismeretlen", "unknown": "Ismeretlen",
"pending": "Függőben", "pending": "",
"processing": "Feldolgozás", "processing": "Feldolgozás",
"requested": "Kérve", "requested": "",
"partiallyAvailable": "Részleges", "partiallyAvailable": "Részleges",
"available": "Elérhető", "available": "Elérhető",
"blacklisted": "Tiltólistára került", "blacklisted": "",
"deleted": "Törölve" "deleted": ""
}, },
"status": { "status": {
"pending": "Függőben", "pending": "",
"approved": "Jóváhagyva", "approved": "",
"declined": "Elutasítva", "declined": "",
"failed": "Sikertelen", "failed": "",
"completed": "Befejezett" "completed": ""
}, },
"toBeDetermined": "TBD" "toBeDetermined": ""
}, },
"mediaRequests-requestStats": { "mediaRequests-requestStats": {
"name": "Médiakérések állapota", "name": "",
"description": "Statisztikák az Ön médiakéréseiről", "description": "Statisztikák az Ön médiakéréseiről",
"option": {}, "option": {},
"titles": { "titles": {
@@ -2528,56 +2528,56 @@
}, },
"rssFeed": { "rssFeed": {
"name": "RSS feedek", "name": "RSS feedek",
"description": "Egy vagy több általános RSS-, ATOM- vagy JSON-hírcsatorna figyelése és megjelenítése", "description": "",
"option": { "option": {
"feedUrls": { "feedUrls": {
"label": "Hírcsatorna URL" "label": ""
}, },
"enableRtl": { "enableRtl": {
"label": "RTL engedélyezése" "label": ""
}, },
"textLinesClamp": { "textLinesClamp": {
"label": "Leírás sorlimit" "label": ""
}, },
"maximumAmountPosts": { "maximumAmountPosts": {
"label": "Bejegyzések számának korlátja" "label": ""
}, },
"hideDescription": { "hideDescription": {
"label": "Leírás elrejtése" "label": ""
}, },
"showPosterImage": { "showPosterImage": {
"label": "Plakátkép megjelenítése" "label": ""
} }
} }
}, },
"releases": { "releases": {
"name": "Kiadások", "name": "",
"description": "Megjeleníti az adott tárolók aktuális verzióinak listáját a megadott verzió-kifejezés alapján.", "description": "",
"option": { "option": {
"newReleaseWithin": { "newReleaseWithin": {
"label": "Új kiadás a", "label": "",
"description": "Használati példa: 1w (1 hét), 10M (10 hónap). Elfogadott mértékegységek: h (óra), d (nap), w (hét), M (hónap), y (év). Ha nem szeretné, hogy az új kiadások kiemelve jelenjenek meg, hagyja üresen." "description": ""
}, },
"staleReleaseWithin": { "staleReleaseWithin": {
"label": "Elavult kiadás", "label": "",
"description": "Használati példa: 1w (1 hét), 10M (10 hónap). Elfogadott mértékegységek: h (óra), d (nap), w (hét), M (hónap), y (év). Ha nem szeretné, hogy a régi kiadások ki legyenek emelve, hagyja üresen." "description": ""
}, },
"showOnlyHighlighted": { "showOnlyHighlighted": {
"label": "Csak a kiemelt elemeket mutasd", "label": "",
"description": "Csak az új vagy lejárt kiadásokat mutassa. A fentiek szerint." "description": ""
}, },
"showDetails": { "showDetails": {
"label": "Részletek megjelenítése" "label": ""
}, },
"showOnlyIcon": { "showOnlyIcon": {
"label": "Csak ikonok megjelenítése" "label": ""
}, },
"topReleases": { "topReleases": {
"label": "Legnépszerűbb kiadások", "label": "",
"description": "A megjelenítendő legújabb kiadások maximális száma. A nulla érték korlátlan számot jelent." "description": ""
}, },
"repositories": { "repositories": {
"label": "Csomagtárolók", "label": "",
"addRepository": { "addRepository": {
"label": "Gyűjtemény Hozzáadása" "label": "Gyűjtemény Hozzáadása"
}, },
@@ -2597,39 +2597,39 @@
}, },
"identifier": { "identifier": {
"label": "Azonosító", "label": "Azonosító",
"placeholder": "Név vagy tulajdonos/név" "placeholder": ""
}, },
"name": { "name": {
"label": "Név" "label": ""
}, },
"versionFilter": { "versionFilter": {
"label": "Verziószűrő", "label": "",
"prefix": { "prefix": {
"label": "Előtag" "label": ""
}, },
"precision": { "precision": {
"label": "Pontosság", "label": "",
"options": { "options": {
"none": "Nem" "none": ""
} }
}, },
"suffix": { "suffix": {
"label": "Utótag" "label": ""
}, },
"regex": { "regex": {
"label": "Reguláris kifejezés" "label": ""
} }
}, },
"edit": { "edit": {
"label": "Szerkesztés" "label": ""
}, },
"editForm": { "editForm": {
"title": "Gyűjtemény Szerkesztése", "title": "",
"cancel": { "cancel": {
"label": "Mégse" "label": ""
}, },
"confirm": { "confirm": {
"label": "Megerősít" "label": ""
} }
}, },
"importForm": { "importForm": {
@@ -2742,94 +2742,94 @@
"fwname": "", "fwname": "",
"version": "", "version": "",
"versiontitle": "", "versiontitle": "",
"cputitle": "CPU használat", "cputitle": "",
"memorytitle": "Memória használat", "memorytitle": "",
"cpu": "CPU", "cpu": "",
"memory": "Memória", "memory": "",
"interfaces": { "interfaces": {
"name": "név", "name": "",
"trans": "Továbbított", "trans": "",
"recv": "Kézbesített", "recv": "",
"title": "Hálózati interfészek" "title": ""
} }
} }
}, },
"notifications": { "notifications": {
"name": "Értesítések", "name": "",
"description": "Egy integráció értesítési előzményeinek megjelenítése", "description": "",
"noItems": "Nincs megjelenítendő üzenet.", "noItems": "",
"option": {} "option": {}
}, },
"speedtestTracker": { "speedtestTracker": {
"name": "Hálózatsebesség Monitorozó", "name": "",
"description": "Megjeleníti a Hálózatsebesség Monitorozó példányából származó sebességteszt-eredményeket.", "description": "",
"option": { "option": {
"showLatestResult": { "showLatestResult": {
"label": "Legfrissebb eredmények megjelenítése" "label": ""
}, },
"showStats": { "showStats": {
"label": "Átlag mutatása" "label": ""
}, },
"showRecentResults": { "showRecentResults": {
"label": "Legutóbbi eredmények megjelenítése" "label": ""
}, },
"showPingGraph": { "showPingGraph": {
"label": "Válaszidő grafikon megjelenítése" "label": ""
} }
}, },
"latestResult": "Legfrissebb eredmény", "latestResult": "",
"averages": "Átlagok", "averages": "",
"tests": "{count} mérések", "tests": "",
"recentResults": "Legutóbbi eredmények", "recentResults": "",
"recentResultsSpeed": "Sebesség", "recentResultsSpeed": "",
"recentResultsPing": "Válaszidő", "recentResultsPing": "",
"download": "Letöltés", "download": "",
"upload": "Feltöltés", "upload": "",
"ping": "Válaszidő", "ping": "",
"status": "Állapot", "status": "",
"avgDownload": "Átlag Letöltés", "avgDownload": "",
"avgUpload": "Átlag Feltöltés", "avgUpload": "",
"avgPing": "Átlag válaszidő", "avgPing": "",
"healthy": "Normális", "healthy": "",
"unhealthy": "Rossz", "unhealthy": "",
"ok": "OK", "ok": "",
"fail": "Hiba", "fail": "",
"noSectionsEnabled": "A widget beállításaiban legalább egy szakaszt engedélyezzen.", "noSectionsEnabled": "",
"error": { "error": {
"internalServerError": "A sebességteszt-adatok letöltése nem sikerült" "internalServerError": ""
} }
}, },
"systemResources": { "systemResources": {
"name": "Rendszer erőforrások", "name": "",
"description": "A rendszer CPU-, memória-, lemez- és egyéb hardverhasználata", "description": "",
"option": { "option": {
"hasShadow": { "hasShadow": {
"label": "Diagram árnyékolás engedélyezése" "label": ""
}, },
"visibleCharts": { "visibleCharts": {
"label": "Látható diagramok", "label": "",
"description": "Válassza ki azokat a diagramokat, amelyeket meg szeretne jeleníteni.", "description": "",
"option": { "option": {
"cpu": "CPU", "cpu": "",
"memory": "Memória", "memory": "",
"gpu": "GPU", "gpu": "",
"network": "Hálózat" "network": ""
} }
}, },
"labelDisplayMode": { "labelDisplayMode": {
"label": "Címke megjelenítési mód", "label": "",
"option": { "option": {
"textWithIcon": "Szöveg megjelenítése ikonnal", "textWithIcon": "",
"text": "Csak a szöveget mutasd", "text": "",
"icon": "Csak az ikont mutatsd", "icon": "",
"hidden": "Címke elrejtése" "hidden": ""
} }
} }
}, },
"card": { "card": {
"cpu": "CPU", "cpu": "",
"memory": "RAM", "memory": "",
"gpu": "GPU", "gpu": "",
"network": "", "network": "",
"up": "", "up": "",
"down": "" "down": ""
@@ -2971,20 +2971,20 @@
}, },
"field": { "field": {
"pageTitle": { "pageTitle": {
"label": "Oldal cím" "label": ""
}, },
"metaTitle": { "metaTitle": {
"label": "Meta cím" "label": ""
}, },
"logoImageUrl": { "logoImageUrl": {
"label": "Logo kép URL" "label": ""
}, },
"faviconImageUrl": { "faviconImageUrl": {
"label": "A favicon képének URL-címe" "label": ""
}, },
"backgroundImageUrl": { "backgroundImageUrl": {
"label": "Háttérkép URL", "label": "",
"placeholder": "Kezdje el gépelni a helyi képek kereséséhez", "placeholder": "",
"group": { "group": {
"your": "", "your": "",
"other": "" "other": ""
@@ -3495,7 +3495,7 @@
"title": "", "title": "",
"general": { "general": {
"title": "", "title": "",
"text": "A Homarr az Umami nevű nyílt forráskódú szoftver segítségével névtelen elemzési adatokat küld. Ha ez az opció engedélyezve van, a következő adatokat gyűjtjük: a Homarr verziója, az adatbázis típusa (MySQL/PostgreSQL/SQLite), a Docker/Kubernetes állapota, az engedélyezett hitelesítési módszerek, valamint az egyes funkciók száma. Minden adat névtelen és összesített formában kerül rögzítésre – személyes adatokat, URL-eket, neveket vagy bármilyen azonosítható adatot soha nem gyűjtünk. Ez segít nyílt forráskódú fejlesztői csapatunknak a használati szokások megértésében és a fejlesztési feladatok fontossági sorrendjének meghatározásában." "text": ""
}, },
"widgetData": { "widgetData": {
"title": "", "title": "",
@@ -3652,10 +3652,10 @@
"label": "" "label": ""
}, },
"firewallCpu": { "firewallCpu": {
"label": "Tűzfal CPU" "label": ""
}, },
"firewallMemory": { "firewallMemory": {
"label": "Tűzfal Memória" "label": ""
}, },
"firewallVersion": { "firewallVersion": {
"label": "" "label": ""
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
@@ -3843,10 +3839,10 @@
}, },
"stats": { "stats": {
"cpu": { "cpu": {
"label": "CPU" "label": ""
}, },
"memory": { "memory": {
"label": "Memória" "label": ""
} }
}, },
"containerImage": { "containerImage": {
@@ -3984,10 +3980,10 @@
} }
}, },
"cpu": { "cpu": {
"label": "CPU" "label": ""
}, },
"memory": { "memory": {
"label": "RAM" "label": ""
}, },
"pods": { "pods": {
"label": "" "label": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Traduttori", "title": "Traduttori",
"subtitle": "{count} contribuendo alle traduzioni in molte lingue" "subtitle": "{count} contribuendo alle traduzioni in molte lingue"
}, },
"sponsors": {
"title": "Sponsor",
"subtitle": "{count} sostengono il progetto finanziariamente"
},
"libraries": { "libraries": {
"title": "Librerie", "title": "Librerie",
"subtitle": "{count} utilizzato nel Codice di Homarr" "subtitle": "{count} utilizzato nel Codice di Homarr"
+136 -140
View File
@@ -1138,9 +1138,9 @@
"dangerZone": "危険な操作", "dangerZone": "危険な操作",
"noResults": "結果が見つかりません", "noResults": "結果が見つかりません",
"unsavedChanges": "保存していない変更があります!", "unsavedChanges": "保存していない変更があります!",
"servers": "サーバー", "servers": "",
"applications": "アプリケーション", "applications": "",
"services": "サービス", "services": "",
"preview": { "preview": {
"show": "プレビューを表示", "show": "プレビューを表示",
"hide": "プレビューを閉じる" "hide": "プレビューを閉じる"
@@ -1526,13 +1526,13 @@
} }
}, },
"timetable": { "timetable": {
"name": "タイムテーブル", "name": "",
"description": "駅の出発時刻を表示します", "description": "",
"title": "{station} 出発時刻", "title": "",
"noStation": "駅が選択されていません", "noStation": "",
"option": { "option": {
"station": { "station": {
"label": "駅" "label": ""
} }
} }
}, },
@@ -1607,32 +1607,32 @@
} }
}, },
"anchorNote": { "anchorNote": {
"name": "アンカーノート", "name": "",
"description": "アンカーから選択したノートを表示する", "description": "",
"option": { "option": {
"noteId": { "noteId": {
"label": "ノート" "label": ""
}, },
"showTitle": { "showTitle": {
"label": "タイトルを表示" "label": ""
}, },
"showUpdatedAt": { "showUpdatedAt": {
"label": "最終更新を表示" "label": ""
} }
}, },
"empty": "表示するノートを選択", "empty": "",
"emptyContent": "このノートにはコンテンツがありません", "emptyContent": "",
"notFound": "ノートが見つかりません", "notFound": "",
"noNotes": "ノートがありません", "noNotes": "",
"integrationRequired": "アンカー統合を最初に選択してください", "integrationRequired": "",
"updatedAt": "{date} に更新しました", "updatedAt": "",
"untitled": "タイトルなし", "untitled": "",
"edit": "編集", "edit": "",
"save": "保存", "save": "",
"cancel": "キャンセル", "cancel": "",
"readOnlyViewer": "このノートを閲覧することができます。編集は無効になっています", "readOnlyViewer": "",
"saveForbidden": "このノートを編集する権限がありません。", "saveForbidden": "",
"saveFailed": "このノートを保存できませんでした。もう一度やり直してください。" "saveFailed": ""
}, },
"iframe": { "iframe": {
"name": "iFrame", "name": "iFrame",
@@ -1666,7 +1666,7 @@
"label": "位置情報を許可する" "label": "位置情報を許可する"
}, },
"allowModals": { "allowModals": {
"label": "モーダルを許可" "label": ""
} }
}, },
"error": { "error": {
@@ -1901,7 +1901,7 @@
"label": "メモリー情報を表示" "label": "メモリー情報を表示"
}, },
"gpu": { "gpu": {
"label": "GPU情報を表示" "label": ""
}, },
"showUptime": { "showUptime": {
"label": "稼働時間を表示" "label": "稼働時間を表示"
@@ -2009,91 +2009,91 @@
} }
}, },
"coolify": { "coolify": {
"name": "Coolify", "name": "",
"description": "サーバーとアプリケーションを使用した Coolify インスタンスの概要", "description": "",
"option": { "option": {
"showServers": { "showServers": {
"label": "サーバーを表示" "label": ""
}, },
"showApplications": { "showApplications": {
"label": "アプリケーションを表示" "label": ""
}, },
"showServices": { "showServices": {
"label": "サービスを表示" "label": ""
} }
}, },
"empty": { "empty": {
"servers": "サーバーが見つかりません", "servers": "",
"applications": "アプリケーションが見つかりません", "applications": "",
"services": "サービスが見つかりません" "services": ""
}, },
"footer": { "footer": {
"updated": "{when} に更新しました" "updated": ""
}, },
"error": { "error": {
"noIntegration": "Coolify 統合が設定されていません", "noIntegration": "",
"internalServerError": "Coolify データの取得に失敗しました" "internalServerError": ""
}, },
"server": { "server": {
"buildServer": "ビルド" "buildServer": ""
}, },
"instances": { "instances": {
"title": "インスタンス" "title": ""
} }
}, },
"tracearr": { "tracearr": {
"name": "Tracearr", "name": "",
"description": "詳細なストリームとトランスコーディングデータによるメディアサーバーのモニタリングの強化", "description": "",
"option": { "option": {
"showStreams": { "showStreams": {
"label": "アクティブなストリームを表示" "label": ""
}, },
"showStats": { "showStats": {
"label": "統計情報の概要を表示" "label": ""
}, },
"showRecentActivity": { "showRecentActivity": {
"label": "最近のアクティビティを表示" "label": ""
}, },
"showViolations": { "showViolations": {
"label": "違反を表示" "label": ""
} }
}, },
"stats": { "stats": {
"activeStreams": "アクティブなストリーム", "activeStreams": "",
"totalUsers": "総ユーザー数", "totalUsers": "",
"transcodes": "トランスコード", "transcodes": "",
"bandwidth": "帯域幅" "bandwidth": ""
}, },
"streams": { "streams": {
"empty": "アクティブなストリームがありません", "empty": "",
"user": "ユーザー", "user": "",
"media": "メディア", "media": "",
"state": "状態", "state": "",
"quality": "品質", "quality": "",
"device": "デバイス", "device": "",
"progress": "進捗状況", "progress": "",
"videoDecision": { "videoDecision": {
"directPlay": "ダイレクトプレイ", "directPlay": "",
"transcode": "トランスコード", "transcode": "",
"directStream": "ダイレクトストリーム" "directStream": ""
} }
}, },
"recentActivity": { "recentActivity": {
"title": "最近のアクティビティ", "title": "",
"empty": "最近のアクティビティなし", "empty": "",
"watched": "視聴済", "watched": "",
"partial": "一部" "partial": ""
}, },
"violations": { "violations": {
"title": "違反", "title": "",
"empty": "最近の違反はありません", "empty": "",
"rule": "ルール", "rule": "",
"user": "ユーザー" "user": ""
}, },
"noSectionsEnabled": "有効なセクションがありません", "noSectionsEnabled": "",
"error": { "error": {
"noIntegration": "Tracearrとの連携が設定されていません", "noIntegration": "",
"internalServerError": "Tracearrデータの取得に失敗しました" "internalServerError": ""
} }
}, },
"common": { "common": {
@@ -2192,50 +2192,50 @@
} }
}, },
"immich-serverStats": { "immich-serverStats": {
"name": "Immich サーバーの統計", "name": "",
"description": "Immich インスタンスに関する情報", "description": "",
"option": { "option": {
"showUsers": { "showUsers": {
"label": "ユーザを表示", "label": "",
"description": "インスタンスにユーザー数を表示する" "description": ""
}, },
"showPhotos": { "showPhotos": {
"label": "写真を表示", "label": "",
"description": "インスタンス上の写真数を表示する" "description": ""
}, },
"showVideos": { "showVideos": {
"label": "動画を表示", "label": "",
"description": "インスタンスに動画の数を表示する" "description": ""
}, },
"showStorage": { "showStorage": {
"label": "ストレージを表示", "label": "",
"description": "使用されたストレージの合計容量を表示します" "description": ""
} }
}, },
"users": "ユーザー", "users": "",
"photos": "写真", "photos": "",
"videos": "動画", "videos": "",
"storage": "ストレージ使用量" "storage": ""
}, },
"immich-albumCarousel": { "immich-albumCarousel": {
"name": "Immich アルバム", "name": "",
"option": { "option": {
"albumId": { "albumId": {
"label": "アルバム ID", "label": "",
"description": "これはImmichのアルバムを示す固有のIDです。 「a21aca09-9f05-47dc-b1a1-7b53c547226e」など、アルバムを開いてURLから一意の文字列をコピーすることでこのIDを見つけることができます。" "description": ""
}, },
"rotationIntervalSeconds": { "rotationIntervalSeconds": {
"label": "間隔 (秒)", "label": "",
"description": "アルバム内の写真をX秒ごとに回転させます。少なくとも1でなければなりません。3600未満でなければなりません。" "description": ""
}, },
"showPhotoInfo": { "showPhotoInfo": {
"label": "写真情報を表示", "label": "",
"description": "スライドショーの下部に画像の日付と現在の索引を表示します" "description": ""
} }
}, },
"description": "Immichアルバムの写真のスライド", "description": "",
"noAlbumSelected": "アルバムが選択されていない、ウィジェットを編集してアルバムを選択してください", "noAlbumSelected": "",
"noPhotos": "このアルバムには写真がありません" "noPhotos": ""
}, },
"downloads": { "downloads": {
"name": "クライアントをダウンロード", "name": "クライアントをダウンロード",
@@ -2546,7 +2546,7 @@
"label": "詳細を非表示" "label": "詳細を非表示"
}, },
"showPosterImage": { "showPosterImage": {
"label": "ポスターの画像を表示" "label": ""
} }
} }
}, },
@@ -2761,42 +2761,42 @@
"option": {} "option": {}
}, },
"speedtestTracker": { "speedtestTracker": {
"name": "スピードテストトラッカー", "name": "",
"description": "Speedtest Trackerインスタンスからスピードテストの結果を表示します。", "description": "",
"option": { "option": {
"showLatestResult": { "showLatestResult": {
"label": "最新の結果を表示" "label": ""
}, },
"showStats": { "showStats": {
"label": "平均を表示" "label": ""
}, },
"showRecentResults": { "showRecentResults": {
"label": "最近の結果を表示" "label": ""
}, },
"showPingGraph": { "showPingGraph": {
"label": "ping グラフを表示" "label": ""
} }
}, },
"latestResult": "直近の結果", "latestResult": "",
"averages": "平均値", "averages": "",
"tests": "{count} 回テスト", "tests": "",
"recentResults": "最近の結果", "recentResults": "",
"recentResultsSpeed": "スピード", "recentResultsSpeed": "",
"recentResultsPing": "Ping", "recentResultsPing": "",
"download": "ダウンロード", "download": "",
"upload": "アップロード", "upload": "",
"ping": "Ping", "ping": "",
"status": "ステータス", "status": "",
"avgDownload": "平均ダウンロード", "avgDownload": "",
"avgUpload": "平均アップロード", "avgUpload": "",
"avgPing": "平均 Ping", "avgPing": "",
"healthy": "正常", "healthy": "",
"unhealthy": "異常", "unhealthy": "",
"ok": "成功", "ok": "",
"fail": "失敗", "fail": "",
"noSectionsEnabled": "ウィジェットオプションで少なくとも1つのセクションを有効にします。", "noSectionsEnabled": "",
"error": { "error": {
"internalServerError": "スピードテストデータの取得に失敗しました" "internalServerError": ""
} }
}, },
"systemResources": { "systemResources": {
@@ -2812,7 +2812,7 @@
"option": { "option": {
"cpu": "CPU", "cpu": "CPU",
"memory": "メモリ", "memory": "メモリ",
"gpu": "GPU", "gpu": "",
"network": "ネットワーク" "network": "ネットワーク"
} }
}, },
@@ -2829,39 +2829,39 @@
"card": { "card": {
"cpu": "CPU", "cpu": "CPU",
"memory": "MEM", "memory": "MEM",
"gpu": "GPU", "gpu": "",
"network": "NET", "network": "NET",
"up": "UP", "up": "UP",
"down": "DOWN" "down": "DOWN"
} }
}, },
"systemDisks": { "systemDisks": {
"name": "システムディスク", "name": "",
"description": "システムのディスク使用量", "description": "",
"option": { "option": {
"showTemperatureIfAvailable": { "showTemperatureIfAvailable": {
"label": "利用可能な場合は温度を表示" "label": ""
}, },
"displayMode": { "displayMode": {
"label": "表示モード", "label": "",
"option": { "option": {
"percentage": { "percentage": {
"label": "割合 (例 76%)" "label": ""
}, },
"absolute": { "absolute": {
"label": "絶対値(例:800GB / 1TB)" "label": ""
}, },
"free": { "free": {
"label": "空き領域の割合(例:24%空き)" "label": ""
} }
} }
}, },
"showBackgroundBar": { "showBackgroundBar": {
"label": "バックグラウンドの使用状況バーを表示" "label": ""
} }
}, },
"status": { "status": {
"unhealthy": "異常" "unhealthy": ""
} }
} }
}, },
@@ -3495,7 +3495,7 @@
"title": "統計情報", "title": "統計情報",
"general": { "general": {
"title": "匿名の解析を送信", "title": "匿名の解析を送信",
"text": "Homarrは、オープンソースソフトウェアUmamiを使用して匿名化された分析を送信します。 有効にすると、以下が収集されます。Homarrバージョン、データベースタイプ(MySQL/PostgreSQL/SQLite)、Docker/Kubernetesステータス、認証方法、各機能の数。 すべてのデータは匿名で集計されます。個人情報、URL、名前、または識別可能なデータは収集されません。 これにより、オープンソースチームは利用パターンを理解し、開発に優先順位を付けることができます。" "text": "Homarr はオープンソースソフトウェア Umami を使用して匿名化された分析情報を送信します。個人情報を一切収集しないため、GDPRとCCPAに完全に準拠しています。分析機能を有効にすると、オープンソースチームが問題を特定し、バックログの優先順位付けを行うのに役立ちますので、ぜひ有効にしてください。"
}, },
"widgetData": { "widgetData": {
"title": "ウィジェットのデータ", "title": "ウィジェットのデータ",
@@ -3595,7 +3595,7 @@
"label": "Minecraft サーバーの状態" "label": "Minecraft サーバーの状態"
}, },
"timetable": { "timetable": {
"label": "タイムテーブル" "label": ""
}, },
"iconsUpdater": { "iconsUpdater": {
"label": "アイコンアップデータ" "label": "アイコンアップデータ"
@@ -3667,7 +3667,7 @@
"label": "天気" "label": "天気"
}, },
"tracearr": { "tracearr": {
"label": "Tracearr" "label": ""
} }
}, },
"interval": { "interval": {
@@ -3790,10 +3790,6 @@
"title": "翻訳者", "title": "翻訳者",
"subtitle": "{count} の多くの言語で翻訳を行っている" "subtitle": "{count} の多くの言語で翻訳を行っている"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "ライブラリ", "title": "ライブラリ",
"subtitle": "{count} 個が Homarr のコードで使用されています" "subtitle": "{count} 個が Homarr のコードで使用されています"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
-4
View File
@@ -3790,10 +3790,6 @@
"title": "Vertalers", "title": "Vertalers",
"subtitle": "{count} bijdragen aan vertalingen in vele talen" "subtitle": "{count} bijdragen aan vertalingen in vele talen"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Bibliotheken", "title": "Bibliotheken",
"subtitle": "{count} gebruikt in de code van Homarr" "subtitle": "{count} gebruikt in de code van Homarr"
+86 -90
View File
@@ -1526,13 +1526,13 @@
} }
}, },
"timetable": { "timetable": {
"name": "Timeplan", "name": "",
"description": "Viser avgangstid for en stasjon", "description": "",
"title": "Avganger {station}", "title": "",
"noStation": "Ingen stasjon valgt", "noStation": "",
"option": { "option": {
"station": { "station": {
"label": "Stasjon" "label": ""
} }
} }
}, },
@@ -1607,32 +1607,32 @@
} }
}, },
"anchorNote": { "anchorNote": {
"name": "Ankermerknad", "name": "",
"description": "Viser et valgt notat fra anker", "description": "",
"option": { "option": {
"noteId": { "noteId": {
"label": "Notat" "label": ""
}, },
"showTitle": { "showTitle": {
"label": "Vis tittel" "label": ""
}, },
"showUpdatedAt": { "showUpdatedAt": {
"label": "Vis sist oppdatert" "label": ""
} }
}, },
"empty": "Velg et notat som skal vises", "empty": "",
"emptyContent": "Dette notatet har ikke innhold", "emptyContent": "",
"notFound": "Notat ikke funnet", "notFound": "",
"noNotes": "Fant ingen notater", "noNotes": "",
"integrationRequired": "Velg en ankerintegrasjon først", "integrationRequired": "",
"updatedAt": "Oppdatert {date}", "updatedAt": "",
"untitled": "Uten navn", "untitled": "",
"edit": "Rediger", "edit": "",
"save": "Lagre", "save": "",
"cancel": "Avbryt", "cancel": "",
"readOnlyViewer": "Du har seertilgang til dette notatet. Redigering er deaktivert.", "readOnlyViewer": "",
"saveForbidden": "Du har ikke tillatelse til å redigere dette notatet.", "saveForbidden": "",
"saveFailed": "Kunne ikke lagre dette notatet. Prøv på nytt." "saveFailed": ""
}, },
"iframe": { "iframe": {
"name": "iFrame", "name": "iFrame",
@@ -1666,7 +1666,7 @@
"label": "Tillat geolokalisering" "label": "Tillat geolokalisering"
}, },
"allowModals": { "allowModals": {
"label": "Tillat modaler" "label": ""
} }
}, },
"error": { "error": {
@@ -1901,7 +1901,7 @@
"label": "Vis minneinfo" "label": "Vis minneinfo"
}, },
"gpu": { "gpu": {
"label": "Vis CPU-info" "label": ""
}, },
"showUptime": { "showUptime": {
"label": "Vis oppetid" "label": "Vis oppetid"
@@ -2042,58 +2042,58 @@
} }
}, },
"tracearr": { "tracearr": {
"name": "Tracearr", "name": "",
"description": "Forbedret medieserverovervåking med detaljert strøm- og transkodingsdata", "description": "",
"option": { "option": {
"showStreams": { "showStreams": {
"label": "Vis aktive strømmer" "label": ""
}, },
"showStats": { "showStats": {
"label": "Vis statistikksammendrag" "label": ""
}, },
"showRecentActivity": { "showRecentActivity": {
"label": "Vis nylig aktivitet" "label": ""
}, },
"showViolations": { "showViolations": {
"label": "Vis brudd" "label": ""
} }
}, },
"stats": { "stats": {
"activeStreams": "Aktive strømmninger", "activeStreams": "",
"totalUsers": "Totalt antall brukere", "totalUsers": "",
"transcodes": "Transkoder", "transcodes": "",
"bandwidth": "Båndbredde" "bandwidth": ""
}, },
"streams": { "streams": {
"empty": "Ingen aktive strømminger", "empty": "",
"user": "Bruker", "user": "",
"media": "Media", "media": "",
"state": "Tilstand", "state": "",
"quality": "Kvalitet", "quality": "",
"device": "Enhet", "device": "",
"progress": "Fremgang", "progress": "",
"videoDecision": { "videoDecision": {
"directPlay": "Direkte avspilling", "directPlay": "",
"transcode": "Transkode", "transcode": "",
"directStream": "Direktestrøm" "directStream": ""
} }
}, },
"recentActivity": { "recentActivity": {
"title": "Nylig aktivitet", "title": "",
"empty": "Ingen nylig aktivitet", "empty": "",
"watched": "Sett", "watched": "",
"partial": "Delvis" "partial": ""
}, },
"violations": { "violations": {
"title": "Brudd", "title": "",
"empty": "Ingen nylige brudd", "empty": "",
"rule": "Regel", "rule": "",
"user": "Bruker" "user": ""
}, },
"noSectionsEnabled": "Ingen seksjoner aktivert", "noSectionsEnabled": "",
"error": { "error": {
"noIntegration": "Ingen Tracearr-integrasjon konfigurert", "noIntegration": "",
"internalServerError": "Kunne ikke hente Tracearr data" "internalServerError": ""
} }
}, },
"common": { "common": {
@@ -2546,7 +2546,7 @@
"label": "Skjul beskrivelse" "label": "Skjul beskrivelse"
}, },
"showPosterImage": { "showPosterImage": {
"label": "Vis plakatbilde" "label": ""
} }
} }
}, },
@@ -2761,42 +2761,42 @@
"option": {} "option": {}
}, },
"speedtestTracker": { "speedtestTracker": {
"name": "Speedtest tracker", "name": "",
"description": "Viser hastighetstesten i fra din Speedtest Tracker-instans.", "description": "",
"option": { "option": {
"showLatestResult": { "showLatestResult": {
"label": "Vis siste resultat" "label": ""
}, },
"showStats": { "showStats": {
"label": "Vis gjennomsnitt" "label": ""
}, },
"showRecentResults": { "showRecentResults": {
"label": "Vis nylige resultater" "label": ""
}, },
"showPingGraph": { "showPingGraph": {
"label": "Vis ping-graf" "label": ""
} }
}, },
"latestResult": "Siste resultat", "latestResult": "",
"averages": "Gjennomsnitt", "averages": "",
"tests": "{count} tester", "tests": "",
"recentResults": "Nylige resultater", "recentResults": "",
"recentResultsSpeed": "Hastighet", "recentResultsSpeed": "",
"recentResultsPing": "Ping", "recentResultsPing": "",
"download": "Nedlasting", "download": "",
"upload": "Opplastning", "upload": "",
"ping": "Ping", "ping": "",
"status": "Status", "status": "",
"avgDownload": "Snitt nedlasting", "avgDownload": "",
"avgUpload": "Snitt opplasting", "avgUpload": "",
"avgPing": "Snitt ping", "avgPing": "",
"healthy": "Frisk", "healthy": "",
"unhealthy": "Usunn", "unhealthy": "",
"ok": "OK", "ok": "",
"fail": "Feil", "fail": "",
"noSectionsEnabled": "Aktiver minst ett avsnitt i widgetalternativer.", "noSectionsEnabled": "",
"error": { "error": {
"internalServerError": "Kunne ikke hente hastighetsteste data" "internalServerError": ""
} }
}, },
"systemResources": { "systemResources": {
@@ -2812,7 +2812,7 @@
"option": { "option": {
"cpu": "CPU", "cpu": "CPU",
"memory": "Minne", "memory": "Minne",
"gpu": "GPU", "gpu": "",
"network": "Nettverk" "network": "Nettverk"
} }
}, },
@@ -2829,7 +2829,7 @@
"card": { "card": {
"cpu": "CPU", "cpu": "CPU",
"memory": "Minne", "memory": "Minne",
"gpu": "GPU", "gpu": "",
"network": "NETT", "network": "NETT",
"up": "OPP", "up": "OPP",
"down": "NED" "down": "NED"
@@ -3595,7 +3595,7 @@
"label": "Minecraft serverstatus" "label": "Minecraft serverstatus"
}, },
"timetable": { "timetable": {
"label": "Timeplan" "label": ""
}, },
"iconsUpdater": { "iconsUpdater": {
"label": "Ikon oppdatering" "label": "Ikon oppdatering"
@@ -3667,7 +3667,7 @@
"label": "Vær" "label": "Vær"
}, },
"tracearr": { "tracearr": {
"label": "Tracearr" "label": ""
} }
}, },
"interval": { "interval": {
@@ -3790,10 +3790,6 @@
"title": "Oversettere", "title": "Oversettere",
"subtitle": "{count} bidrar med oversettelser på mange språk" "subtitle": "{count} bidrar med oversettelser på mange språk"
}, },
"sponsors": {
"title": "Sponsorer",
"subtitle": "{count} støtter prosjektet økonomisk"
},
"libraries": { "libraries": {
"title": "Biblioteker", "title": "Biblioteker",
"subtitle": "{count} brukt i koden til Homarr" "subtitle": "{count} brukt i koden til Homarr"
+78 -82
View File
@@ -2080,20 +2080,20 @@
}, },
"recentActivity": { "recentActivity": {
"title": "Ostatnia aktywność", "title": "Ostatnia aktywność",
"empty": "Brak ostatniej aktywności", "empty": "",
"watched": "Obejrzane", "watched": "",
"partial": "Częściowo" "partial": ""
}, },
"violations": { "violations": {
"title": "Naruszenia", "title": "",
"empty": "Brak ostatnich naruszeń", "empty": "",
"rule": "Reguła", "rule": "",
"user": "Użytkownik" "user": ""
}, },
"noSectionsEnabled": "Brak włączonych sekcji", "noSectionsEnabled": "",
"error": { "error": {
"noIntegration": "Brak skonfigurowanej integracji Tracearr", "noIntegration": "",
"internalServerError": "Nie udało się pobrać danych z Tracearr" "internalServerError": ""
} }
}, },
"common": { "common": {
@@ -2192,50 +2192,50 @@
} }
}, },
"immich-serverStats": { "immich-serverStats": {
"name": "Statystyki serwera Immich", "name": "",
"description": "Informacje o Twojej instancji Immich", "description": "",
"option": { "option": {
"showUsers": { "showUsers": {
"label": "Pokaż użytkowników", "label": "",
"description": "Pokaż liczbę użytkowników w Twojej instancji" "description": ""
}, },
"showPhotos": { "showPhotos": {
"label": "Pokaż zdjęcia", "label": "",
"description": "Pokaż liczbę zdjęć w Twojej instancji" "description": ""
}, },
"showVideos": { "showVideos": {
"label": "Pokaż filmy", "label": "",
"description": "Pokaż liczbę filmów w Twojej instancji" "description": ""
}, },
"showStorage": { "showStorage": {
"label": "Pokaż wykorzystanie pamięci", "label": "",
"description": "Pokaż całkowite wykorzystanie pamięci" "description": ""
} }
}, },
"users": "Użytkownicy", "users": "",
"photos": "Zdjęcia", "photos": "",
"videos": "Filmy", "videos": "",
"storage": "Wykorzystana przestrzeń" "storage": ""
}, },
"immich-albumCarousel": { "immich-albumCarousel": {
"name": "Album Immich", "name": "",
"option": { "option": {
"albumId": { "albumId": {
"label": "ID albumu", "label": "",
"description": "To unikalny identyfikator odnoszący się do Twojego albumu w Immich. Możesz go znaleźć, otwierając album i kopiując unikalny ciąg znaków z adresu URL, np. „a21aca09-9f05-47dc-b1a1-7b53c547226e”." "description": ""
}, },
"rotationIntervalSeconds": { "rotationIntervalSeconds": {
"label": "Interwał w sekundach", "label": "",
"description": "Zmieniaj zdjęcia w albumie co X sekund. Wartość musi wynosić co najmniej 1 i mniej niż 3600." "description": ""
}, },
"showPhotoInfo": { "showPhotoInfo": {
"label": "Pokaż informacje o zdjęciu", "label": "",
"description": "Wyświetl datę zdjęcia oraz bieżący indeks na dole pokazu slajdów" "description": ""
} }
}, },
"description": "Pokaz slajdów zdjęć z Twojego albumu w Immich", "description": "",
"noAlbumSelected": "Nie wybrano albumu. Edytuj widget i wybierz album", "noAlbumSelected": "",
"noPhotos": "Brak zdjęć w tym albumie" "noPhotos": ""
}, },
"downloads": { "downloads": {
"name": "Klient pobierania", "name": "Klient pobierania",
@@ -2488,8 +2488,8 @@
"title": "Ocena stanu zdrowia", "title": "Ocena stanu zdrowia",
"queued": "W kolejce", "queued": "W kolejce",
"status": { "status": {
"healthy": "Dobry", "healthy": "Zdrowy",
"unhealthy": "Zły" "unhealthy": "Niezdrowy"
} }
}, },
"panel": { "panel": {
@@ -2546,7 +2546,7 @@
"label": "Ukryj opis" "label": "Ukryj opis"
}, },
"showPosterImage": { "showPosterImage": {
"label": "Pokaż obraz okładki" "label": ""
} }
} }
}, },
@@ -2761,42 +2761,42 @@
"option": {} "option": {}
}, },
"speedtestTracker": { "speedtestTracker": {
"name": "Speedtest Tracker", "name": "",
"description": "Wyświetla wyniki testów prędkości z Twojej instancji Speedtest Tracker", "description": "",
"option": { "option": {
"showLatestResult": { "showLatestResult": {
"label": "Pokaż ostatni wynik" "label": ""
}, },
"showStats": { "showStats": {
"label": "Pokaż średnie" "label": ""
}, },
"showRecentResults": { "showRecentResults": {
"label": "Pokaż ostatnie wyniki" "label": ""
}, },
"showPingGraph": { "showPingGraph": {
"label": "Pokaż wykres pingu" "label": ""
} }
}, },
"latestResult": "Najnowszy wynik", "latestResult": "",
"averages": "Średnie", "averages": "",
"tests": "{count} testów", "tests": "",
"recentResults": "Ostatnie wyniki", "recentResults": "",
"recentResultsSpeed": "Prędkość", "recentResultsSpeed": "",
"recentResultsPing": "Ping", "recentResultsPing": "",
"download": "Pobieranie", "download": "",
"upload": "Wysyłanie", "upload": "",
"ping": "Ping", "ping": "",
"status": "Status", "status": "",
"avgDownload": "Średnie pobieranie", "avgDownload": "",
"avgUpload": "Średnie wysyłanie", "avgUpload": "",
"avgPing": "Średni ping", "avgPing": "",
"healthy": "Dobry", "healthy": "",
"unhealthy": "Zły", "unhealthy": "",
"ok": "Ok", "ok": "",
"fail": "Błąd", "fail": "",
"noSectionsEnabled": "Włącz co najmniej jedną sekcję w opcjach widgetu", "noSectionsEnabled": "",
"error": { "error": {
"internalServerError": "Nie udało się pobrać danych testu prędkości" "internalServerError": ""
} }
}, },
"systemResources": { "systemResources": {
@@ -2812,7 +2812,7 @@
"option": { "option": {
"cpu": "Procesor", "cpu": "Procesor",
"memory": "Pamięć", "memory": "Pamięć",
"gpu": "GPU", "gpu": "",
"network": "Sieć" "network": "Sieć"
} }
}, },
@@ -2829,39 +2829,39 @@
"card": { "card": {
"cpu": "Procesor", "cpu": "Procesor",
"memory": "Pamięć", "memory": "Pamięć",
"gpu": "GPU", "gpu": "",
"network": "Sieć", "network": "Sieć",
"up": "Aktywny", "up": "Aktywny",
"down": "Nieaktywny" "down": "Nieaktywny"
} }
}, },
"systemDisks": { "systemDisks": {
"name": "Dyski systemowe", "name": "",
"description": "Wykorzystanie dysku w Twoim systemie", "description": "",
"option": { "option": {
"showTemperatureIfAvailable": { "showTemperatureIfAvailable": {
"label": "Pokaż temperaturę, jeśli jest dostępna" "label": ""
}, },
"displayMode": { "displayMode": {
"label": "Tryb wyświetlania", "label": "",
"option": { "option": {
"percentage": { "percentage": {
"label": "Procentowo (np. 76%)" "label": ""
}, },
"absolute": { "absolute": {
"label": "Wartości bezwzględne (np. 800 GB / 1 TB)" "label": ""
}, },
"free": { "free": {
"label": "Procent wolnego miejsca (np. 24% wolne)" "label": ""
} }
} }
}, },
"showBackgroundBar": { "showBackgroundBar": {
"label": "Pokaż pasek wykorzystania w tle" "label": ""
} }
}, },
"status": { "status": {
"unhealthy": "Zły" "unhealthy": ""
} }
} }
}, },
@@ -3550,10 +3550,10 @@
} }
}, },
"user": { "user": {
"title": "Użytkownicy", "title": "",
"enableGravatar": { "enableGravatar": {
"label": "Włącz Gravatar", "label": "",
"description": "Używa awatarów z Libravatar/Gravatar, gdy nie ustawiono własnego awatara i skonfigurowano adres e-mail" "description": ""
} }
}, },
"search": { "search": {
@@ -3595,7 +3595,7 @@
"label": "Status serwera Minecraft" "label": "Status serwera Minecraft"
}, },
"timetable": { "timetable": {
"label": "Harmonogram" "label": ""
}, },
"iconsUpdater": { "iconsUpdater": {
"label": "Aktualizator ikon" "label": "Aktualizator ikon"
@@ -3667,7 +3667,7 @@
"label": "Pogoda" "label": "Pogoda"
}, },
"tracearr": { "tracearr": {
"label": "Tracearr" "label": ""
} }
}, },
"interval": { "interval": {
@@ -3790,10 +3790,6 @@
"title": "Tłumacze", "title": "Tłumacze",
"subtitle": "{count} współtworzy tłumaczenia w wielu językach" "subtitle": "{count} współtworzy tłumaczenia w wielu językach"
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "Biblioteki", "title": "Biblioteki",
"subtitle": "{count} używanych w kodzie Homarr" "subtitle": "{count} używanych w kodzie Homarr"
+4 -8
View File
@@ -27,7 +27,7 @@
"description": "Configure o comportamento da importação" "description": "Configure o comportamento da importação"
}, },
"boardSelection": { "boardSelection": {
"title": "{count} painéis encontrados", "title": "{count} Painéis encontrados",
"description": "Escolha todos os painéis com o tamanho que você deseja importar", "description": "Escolha todos os painéis com o tamanho que você deseja importar",
"action": { "action": {
"selectAll": "Selecionar todos", "selectAll": "Selecionar todos",
@@ -36,13 +36,13 @@
}, },
"summary": { "summary": {
"title": "Resumo da importação", "title": "Resumo da importação",
"description": "No resumo abaixo você pode ver o que será importado", "description": "No resumo abaixo, você pode ver o que será importado",
"action": { "action": {
"import": "Confirmar a importação e continuar" "import": "Confirmar a importação e continuar"
}, },
"entities": { "entities": {
"apps": "Aplicativos", "apps": "Aplicativos",
"boards": "Painéis", "boards": "Placas",
"integrations": "Integrações", "integrations": "Integrações",
"credentialUsers": "Usuários credenciados" "credentialUsers": "Usuários credenciados"
} }
@@ -164,7 +164,7 @@
}, },
"action": { "action": {
"login": { "login": {
"label": "Login", "label": "“Login”",
"labelWith": "Iniciar sessão com {provider}", "labelWith": "Iniciar sessão com {provider}",
"notification": { "notification": {
"success": { "success": {
@@ -3790,10 +3790,6 @@
"title": "Tradutores", "title": "Tradutores",
"subtitle": "{count} traduções contribuídas em vários idiomas" "subtitle": "{count} traduções contribuídas em vários idiomas"
}, },
"sponsors": {
"title": "Apoiadores",
"subtitle": "{count} apoiando o projeto financeiramente"
},
"libraries": { "libraries": {
"title": "Bibliotecas", "title": "Bibliotecas",
"subtitle": "{count} usadas no código do Homarr" "subtitle": "{count} usadas no código do Homarr"
-4
View File
@@ -3790,10 +3790,6 @@
"title": "", "title": "",
"subtitle": "" "subtitle": ""
}, },
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": { "libraries": {
"title": "", "title": "",
"subtitle": "" "subtitle": ""
Loaded 100 of 135 files, more files were not shown because too many files have changed in this diff. Show more