Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f089c4b232 | ||
|
|
b6f6701eda | ||
|
|
c5e69c3e40 |
No files matched your search
@@ -33,10 +33,6 @@ body:
|
||||
options:
|
||||
# The below comment is used to insert a new version with on-release.yml
|
||||
#NEXT_VERSION#
|
||||
- 1.60.1-beta.1
|
||||
- 1.60.0
|
||||
- 1.59.3
|
||||
- 1.59.2
|
||||
- 1.59.1
|
||||
- 1.59.0
|
||||
- 1.58.1
|
||||
|
||||
@@ -25,16 +25,16 @@ body:
|
||||
label: Public API available?
|
||||
description: Is there a public API available, that we can consume in Homarr?
|
||||
options:
|
||||
- "Yes, available on a website"
|
||||
- "Yes, available in the application itself"
|
||||
- "No"
|
||||
- Yes, available on a website
|
||||
- Yes, available in the application itself
|
||||
- No
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Are you willing to contribute this yourself?
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
- Yes
|
||||
- No
|
||||
validations:
|
||||
required: true
|
||||
@@ -24,7 +24,7 @@ body:
|
||||
attributes:
|
||||
label: Are you willing to contribute this yourself?
|
||||
options:
|
||||
- "Yes"
|
||||
- "No"
|
||||
- Yes
|
||||
- No
|
||||
validations:
|
||||
required: true
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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
|
||||
|
||||
- name: Install GitHub CLI
|
||||
|
||||
@@ -11,10 +11,14 @@ on:
|
||||
|
||||
concurrency:
|
||||
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:
|
||||
FORCE_COLOR: 3
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@@ -55,7 +59,7 @@ jobs:
|
||||
uses: ./tooling/github/setup
|
||||
|
||||
- name: Typecheck
|
||||
run: pnpm typecheck
|
||||
run: turbo typecheck
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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-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
|
||||
with:
|
||||
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
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
if: env.SKIP_RELEASE == 'false'
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@v6
|
||||
- uses: pnpm/action-setup@v5
|
||||
if: env.SKIP_RELEASE == 'false'
|
||||
- uses: actions/setup-node@v6
|
||||
if: env.SKIP_RELEASE == 'false'
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
node-version: 24.14.1
|
||||
cache: "pnpm"
|
||||
- run: npm i -g pnpm
|
||||
if: env.SKIP_RELEASE == 'false'
|
||||
@@ -234,7 +234,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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
|
||||
|
||||
- name: Log in to the Container registry
|
||||
@@ -274,6 +274,6 @@ jobs:
|
||||
- name: Discord notification
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**."
|
||||
@@ -21,10 +21,10 @@ jobs:
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- name: Discord notification
|
||||
if: ${{ github.event.inputs.send-notifications }}
|
||||
if: ${{ github.events.inputs.send-notifications }}
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||
- name: Checkout repository
|
||||
@@ -38,15 +38,14 @@ jobs:
|
||||
token: ${{ github.token }}
|
||||
branch: dev
|
||||
- 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'
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Discord notification
|
||||
if: ${{ github.event.inputs.send-notifications }}
|
||||
if: ${{ github.events.inputs.send-notifications }}
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
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
|
||||
@@ -54,7 +53,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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
|
||||
- name: Approve PR
|
||||
env:
|
||||
@@ -66,7 +65,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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-pull-requests: write # merge pull request
|
||||
- id: automerge
|
||||
@@ -75,7 +74,7 @@ jobs:
|
||||
uses: "pascalgn/automerge-action@v0.16.4"
|
||||
env:
|
||||
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_DELETE_BRANCH: false # never set to true!
|
||||
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
|
||||
@@ -84,23 +83,23 @@ jobs:
|
||||
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
|
||||
|
||||
- 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:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
|
||||
- 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:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
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 }}"
|
||||
- name: Discord Fail Notification
|
||||
if: failure() && github.event.inputs.send-notifications
|
||||
if: failure() && github.events.inputs.send-notifications
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: Ilshidur/action-discord@0.4.0
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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
|
||||
repositories: |
|
||||
documentation
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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-pull-requests: write # required to create pr & enable automerge
|
||||
- name: Checkout code
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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-pull-requests: write # required to create pr & enable automerge
|
||||
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||
|
||||
- uses: pnpm/action-setup@v6
|
||||
- uses: pnpm/action-setup@v5
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
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-pull-requests: write # required to create pr & enable automerge
|
||||
- name: Checkout code
|
||||
|
||||
@@ -72,3 +72,5 @@ en.d.json.ts
|
||||
# personal agent config
|
||||
AGENTS.md
|
||||
.opencode
|
||||
.claude/CLAUDE.md
|
||||
.claude/settings.json
|
||||
@@ -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)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
FROM node:24.15.0-alpine AS base
|
||||
FROM node:24.14.1-alpine AS base
|
||||
|
||||
FROM base AS builder
|
||||
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
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
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/public ./apps/nextjs/public
|
||||
COPY scripts/run.sh ./run.sh
|
||||
|
||||
@@ -19,6 +19,7 @@ const withNextIntl = createNextIntlPlugin({
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
compress: false, // Workaround for vercel/next.js#89091 - zlib retains ServerResponse after client disconnect, causing CLOSE-WAIT socket leak
|
||||
reactStrictMode: true,
|
||||
// react compiler breaks mantine-react-table, so disabled for now
|
||||
//reactCompiler: true,
|
||||
|
||||
@@ -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 { useSession } from "@homarr/auth/client";
|
||||
import { parseCookies, setClientCookie } from "@homarr/common";
|
||||
import type { ColorScheme } from "@homarr/definitions";
|
||||
import { colorSchemeCookieKey } from "@homarr/definitions";
|
||||
|
||||
export const CustomMantineProvider = ({
|
||||
children,
|
||||
defaultColorScheme,
|
||||
}: PropsWithChildren<{ defaultColorScheme: MantineColorScheme }>) => {
|
||||
}: PropsWithChildren<{ defaultColorScheme: ColorScheme }>) => {
|
||||
const manager = useColorSchemeManager();
|
||||
return (
|
||||
<DirectionProvider>
|
||||
@@ -34,7 +35,7 @@ export const CustomMantineProvider = ({
|
||||
export function useColorSchemeManager(): MantineColorSchemeManager {
|
||||
const { data: session } = useSession();
|
||||
|
||||
const updateCookieValue = (value: MantineColorScheme) => {
|
||||
const updateCookieValue = (value: Exclude<MantineColorScheme, "auto">) => {
|
||||
setClientCookie(colorSchemeCookieKey, value, { expires: dayjs().add(1, "year").toDate(), path: "/" });
|
||||
};
|
||||
|
||||
@@ -59,6 +60,7 @@ export function useColorSchemeManager(): MantineColorSchemeManager {
|
||||
},
|
||||
|
||||
set: (value) => {
|
||||
if (value === "auto") return;
|
||||
try {
|
||||
if (session) {
|
||||
mutateColorScheme({ colorScheme: value });
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental";
|
||||
import {
|
||||
createWSClient,
|
||||
httpBatchStreamLink,
|
||||
httpBatchLink,
|
||||
httpLink,
|
||||
isNonJsonSerializable,
|
||||
loggerLink,
|
||||
@@ -90,7 +90,7 @@ export function TRPCReactProvider(props: PropsWithChildren) {
|
||||
url: getTrpcUrl(),
|
||||
headers: createHeadersCallbackForSource("nextjs-react (form-data)"),
|
||||
}),
|
||||
false: httpBatchStreamLink({
|
||||
false: httpBatchLink({
|
||||
transformer: superjson,
|
||||
url: getTrpcUrl(),
|
||||
maxURLLength: 2083, // Suggested by tRPC: https://trpc.io/docs/client/links/httpBatchLink#setting-a-maximum-url-length
|
||||
|
||||
@@ -4,7 +4,6 @@ import { Inter } from "next/font/google";
|
||||
import "@homarr/notifications/styles.css";
|
||||
import "@homarr/spotlight/styles.css";
|
||||
import "@homarr/ui/styles.css";
|
||||
import "~/styles/color-scheme.scss";
|
||||
import "~/styles/scroll-area.scss";
|
||||
|
||||
import { notFound } from "next/navigation";
|
||||
@@ -130,7 +129,7 @@ export default async function Layout(props: {
|
||||
dir={direction}
|
||||
data-mantine-color-scheme={colorScheme}
|
||||
style={{
|
||||
backgroundColor: colorScheme === "dark" ? "#242424" : colorScheme === "auto" ? undefined : "#fff",
|
||||
backgroundColor: colorScheme === "dark" ? "#242424" : "#fff",
|
||||
}}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
|
||||
@@ -25,14 +25,7 @@ import {
|
||||
Title,
|
||||
UnstyledButton,
|
||||
} from "@mantine/core";
|
||||
import {
|
||||
IconKeyboard,
|
||||
IconLanguage,
|
||||
IconLibrary,
|
||||
IconMoneybagHeart,
|
||||
IconPackage,
|
||||
IconUsers,
|
||||
} from "@tabler/icons-react";
|
||||
import { IconKeyboard, IconLanguage, IconLibrary, IconPackage, IconUsers } from "@tabler/icons-react";
|
||||
|
||||
import { capitalize, objectEntries } from "@homarr/common";
|
||||
import { hotkeys } from "@homarr/definitions";
|
||||
@@ -44,7 +37,6 @@ import { createMetaTitle } from "~/metadata";
|
||||
import type { PackageJsonDependencies } from "~/versions/package-reader";
|
||||
import { getPackageVersion } from "~/versions/package-reader";
|
||||
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 classes from "./about.module.css";
|
||||
|
||||
@@ -79,10 +71,6 @@ export default async function AboutPage() {
|
||||
res.json(),
|
||||
)) as typeof crowdinContributorsJson;
|
||||
|
||||
const openCollectiveContributors = (await fetch(`${baseServerUrl}/api/about/contributors/opencollective`).then(
|
||||
(res) => res.json(),
|
||||
)) as typeof openCollectiveContributorsJson;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<DynamicBreadcrumb />
|
||||
@@ -148,30 +136,6 @@ export default async function AboutPage() {
|
||||
</Flex>
|
||||
</AccordionPanel>
|
||||
</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">
|
||||
<AccordionControl icon={<IconLibrary size="1rem" />}>
|
||||
<Stack gap={0}>
|
||||
|
||||
+1
-2
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
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 { colorSchemes } from "@homarr/definitions";
|
||||
@@ -34,7 +34,6 @@ export const AppearanceSettingsForm = ({ defaultValues }: { defaultValues: Serve
|
||||
};
|
||||
|
||||
const appearanceIcons = {
|
||||
auto: IconDeviceDesktop,
|
||||
light: IconSun,
|
||||
dark: IconMoon,
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@ import { headers } from "next/headers";
|
||||
import { notFound } from "next/navigation";
|
||||
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 { auth } from "@homarr/auth/next";
|
||||
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ export const FirstDayOfWeek = ({ user }: FirstDayOfWeekProps) => {
|
||||
},
|
||||
onSuccess(_, variables) {
|
||||
form.setInitialValues({
|
||||
firstDayOfWeek: variables.firstDayOfWeek as DayOfWeek,
|
||||
firstDayOfWeek: variables.firstDayOfWeek,
|
||||
});
|
||||
showSuccessNotification({
|
||||
message: t("user.action.changeFirstDayOfWeek.notification.success.message"),
|
||||
|
||||
@@ -2,8 +2,7 @@ import type { NextRequest } from "next/server";
|
||||
import { userAgent } from "next/server";
|
||||
import { createOpenApiFetchHandler } from "trpc-to-openapi";
|
||||
|
||||
import { createTRPCContext } from "@homarr/api";
|
||||
import { openApiRouter } from "@homarr/api/open-api";
|
||||
import { appRouter, createTRPCContext } from "@homarr/api";
|
||||
import { API_KEY_HEADER_NAME, getSessionFromApiKeyAsync } from "@homarr/auth/api-key";
|
||||
import { ipAddressFromHeaders } from "@homarr/common/server";
|
||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||
@@ -31,7 +30,7 @@ const handlerAsync = async (req: NextRequest) => {
|
||||
return createOpenApiFetchHandler({
|
||||
req,
|
||||
endpoint: "/",
|
||||
router: openApiRouter,
|
||||
router: appRouter,
|
||||
createContext: () => createTRPCContext({ session, headers: req.headers }),
|
||||
onError({ error, path, type }) {
|
||||
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,6 +1,6 @@
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
import { openApiDocument } from "@homarr/api/open-api";
|
||||
import { openApiDocument } from "@homarr/api";
|
||||
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
||||
|
||||
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";
|
||||
|
||||
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 { ColorSchemeCombobox } from "./color-scheme-combobox";
|
||||
import { colorSchemes } from "@homarr/definitions";
|
||||
import { useScopedI18n } from "@homarr/translation/client";
|
||||
import { SelectWithCustomItems } from "@homarr/ui";
|
||||
|
||||
interface CurrentColorSchemeComboboxProps {
|
||||
w?: string;
|
||||
}
|
||||
|
||||
export const CurrentColorSchemeCombobox = ({ w }: CurrentColorSchemeComboboxProps) => {
|
||||
const tOptions = useScopedI18n("common.colorScheme.options");
|
||||
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 { Center, Menu, Stack, Text, useMantineColorScheme } from "@mantine/core";
|
||||
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 { signOut, useSession } from "@homarr/auth/client";
|
||||
@@ -15,7 +24,6 @@ import { useScopedI18n } from "@homarr/translation/client";
|
||||
import { Link } from "@homarr/ui";
|
||||
|
||||
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 { AvailableUpdatesMenuItem } from "./layout/header/update";
|
||||
|
||||
@@ -26,9 +34,13 @@ interface UserAvatarMenuProps {
|
||||
|
||||
export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatarMenuProps) => {
|
||||
const t = useScopedI18n("common.userAvatar.menu");
|
||||
const { toggleColorScheme } = useMantineColorScheme();
|
||||
const { colorScheme, toggleColorScheme } = useMantineColorScheme();
|
||||
useHotkeys([[hotkeys.toggleColorScheme, toggleColorScheme]]);
|
||||
|
||||
const ColorSchemeIcon = colorScheme === "dark" ? IconSun : IconMoon;
|
||||
|
||||
const colorSchemeText = colorScheme === "dark" ? t("switchToLightMode") : t("switchToDarkMode");
|
||||
|
||||
const session = useSession();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -55,14 +67,14 @@ export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatar
|
||||
<Menu width={300} withArrow withinPortal keepMounted>
|
||||
<Menu.Dropdown>
|
||||
<AvailableUpdatesMenuItem availableUpdatesPromise={availableUpdatesPromise} />
|
||||
<Menu.Item onClick={toggleColorScheme} leftSection={<ColorSchemeIcon size="1rem" />}>
|
||||
{colorSchemeText}
|
||||
</Menu.Item>
|
||||
<Menu.Item component={Link} href="/boards" leftSection={<IconHome size="1rem" />}>
|
||||
{t("homeBoard")}
|
||||
</Menu.Item>
|
||||
<Menu.Divider />
|
||||
|
||||
<Menu.Item p={0} closeMenuOnClick={false} component="div">
|
||||
<CurrentColorSchemeCombobox />
|
||||
</Menu.Item>
|
||||
<Menu.Item p={0} closeMenuOnClick={false} component="div">
|
||||
<CurrentLanguageCombobox />
|
||||
</Menu.Item>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,6 @@
|
||||
"@homarr/server-settings": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@homarr/widgets": "workspace:^0.1.0",
|
||||
"croner": "catalog:",
|
||||
"dayjs": "catalog:",
|
||||
"dotenv": "catalog:",
|
||||
"fastify": "catalog:",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Cron } from "croner";
|
||||
import { schedule, validate as validateCron } from "node-cron";
|
||||
|
||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||
import type { IJobManager } from "@homarr/cron-job-api";
|
||||
@@ -21,31 +21,28 @@ export class JobManager implements IJobManager {
|
||||
public async triggerAsync(name: JobGroupKeys): Promise<void> {
|
||||
await this.jobGroup.runManuallyAsync(name);
|
||||
}
|
||||
public stop(name: JobGroupKeys): void {
|
||||
this.jobGroup.stop(name);
|
||||
public async stopAsync(name: JobGroupKeys): Promise<void> {
|
||||
await this.jobGroup.stopAsync(name);
|
||||
}
|
||||
public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> {
|
||||
logger.info("Updating cron job interval", { name, expression: cron });
|
||||
const job = this.jobGroup.getJobRegistry().get(name);
|
||||
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) {
|
||||
throw new Error(`Custom cron expressions are not allowed for job ${name}`);
|
||||
}
|
||||
|
||||
const updatedConfig = await this.updateConfigurationAsync(name, { cronExpression: cron });
|
||||
this.jobGroup.getTask(name)?.stop();
|
||||
await this.updateConfigurationAsync(name, { cronExpression: cron });
|
||||
await this.jobGroup.getTask(name)?.destroy();
|
||||
|
||||
this.jobGroup.setTask(
|
||||
name,
|
||||
new Cron(
|
||||
cron,
|
||||
{
|
||||
name,
|
||||
timezone: job.timezone,
|
||||
paused: !updatedConfig.isEnabled,
|
||||
},
|
||||
() => void job.executeAsync(),
|
||||
),
|
||||
schedule(cron, () => void job.executeAsync(), {
|
||||
name,
|
||||
}),
|
||||
);
|
||||
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`);
|
||||
|
||||
await this.updateConfigurationAsync(name, { isEnabled: false });
|
||||
this.jobGroup.stop(name);
|
||||
await this.jobGroup.stopAsync(name);
|
||||
logger.info("Cron job disabled", { name });
|
||||
}
|
||||
public async enableAsync(name: JobGroupKeys): Promise<void> {
|
||||
@@ -89,27 +86,21 @@ export class JobManager implements IJobManager {
|
||||
name,
|
||||
configuration: JSON.stringify(configuration),
|
||||
});
|
||||
return {
|
||||
name,
|
||||
cronExpression: configuration.cronExpression ?? existingConfig.cronExpression,
|
||||
isEnabled: configuration.isEnabled ?? existingConfig.isEnabled,
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
const job = this.jobGroup.getJobRegistry().get(name);
|
||||
if (!job) throw new Error(`Job ${name} not found`);
|
||||
|
||||
const updatedConfig = {
|
||||
await this.db.insert(cronJobConfigurations).values({
|
||||
name,
|
||||
cronExpression: configuration.cronExpression ?? job.cronExpression,
|
||||
isEnabled: configuration.isEnabled ?? true,
|
||||
};
|
||||
await this.db.insert(cronJobConfigurations).values(updatedConfig);
|
||||
});
|
||||
logger.debug("Cron job configuration updated", {
|
||||
name,
|
||||
configuration: JSON.stringify(configuration),
|
||||
});
|
||||
return updatedConfig;
|
||||
}
|
||||
|
||||
public async getAllAsync(): Promise<
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:24.15.0-trixie AS base
|
||||
FROM node:24.14.1-trixie AS base
|
||||
WORKDIR /app
|
||||
COPY package.json .
|
||||
COPY pnpm-lock.yaml .
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
"name": "homarr-prebuilt-debian",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"better-sqlite3": "^12.9.0"
|
||||
"better-sqlite3": "^12.8.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.33.2",
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"engines": {
|
||||
"node": ">=24.15.0",
|
||||
"pnpm": ">=10.33.2"
|
||||
"node": ">=24.14.1",
|
||||
"pnpm": ">=10.33.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
|
||||
+5
-5
@@ -9,16 +9,16 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
better-sqlite3:
|
||||
specifier: ^12.9.0
|
||||
version: 12.9.0
|
||||
specifier: ^12.8.0
|
||||
version: 12.8.0
|
||||
|
||||
packages:
|
||||
|
||||
base64-js@1.5.1:
|
||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||
|
||||
better-sqlite3@12.9.0:
|
||||
resolution: {integrity: sha512-wqUv4Gm3toFpHDQmaKD4QhZm3g1DjUBI0yzS4UBl6lElUmXFYdTQmmEDpAFa5o8FiFiymURypEnfVHzILKaxqQ==}
|
||||
better-sqlite3@12.8.0:
|
||||
resolution: {integrity: sha512-RxD2Vd96sQDjQr20kdP+F+dK/1OUNiVOl200vKBZY8u0vTwysfolF6Hq+3ZK2+h8My9YvZhHsF+RSGZW2VYrPQ==}
|
||||
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}
|
||||
|
||||
bindings@1.5.0:
|
||||
@@ -148,7 +148,7 @@ snapshots:
|
||||
|
||||
base64-js@1.5.1: {}
|
||||
|
||||
better-sqlite3@12.9.0:
|
||||
better-sqlite3@12.8.0:
|
||||
dependencies:
|
||||
bindings: 1.5.0
|
||||
prebuild-install: 7.1.3
|
||||
|
||||
@@ -3,6 +3,12 @@ events {
|
||||
}
|
||||
|
||||
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 {
|
||||
listen 7575;
|
||||
listen [::]:7575;
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homarr",
|
||||
"version": "1.60.0",
|
||||
"version": "1.59.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env CI=true turbo build",
|
||||
@@ -59,10 +59,10 @@
|
||||
"vite-tsconfig-paths": "catalog:",
|
||||
"vitest": "catalog:"
|
||||
},
|
||||
"packageManager": "pnpm@10.33.2",
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"engines": {
|
||||
"node": ">=24.15.0",
|
||||
"pnpm": ">=10.33.2"
|
||||
"node": ">=24.14.1",
|
||||
"pnpm": ">=10.33.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
@@ -79,23 +79,23 @@
|
||||
"overrides": {
|
||||
"@babel/helpers@<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@>=1.0.0 <=1.1.11": ">=5.0.5",
|
||||
"esbuild@<=0.24.2": ">=0.28.0",
|
||||
"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",
|
||||
"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",
|
||||
"proxmox-api>undici": "7.24.6",
|
||||
"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",
|
||||
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
|
||||
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
|
||||
"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": {
|
||||
"@types/node-unifi": "patches/@types__node-unifi.patch",
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"./client": "./src/client.ts",
|
||||
"./server": "./src/server.ts",
|
||||
"./websocket": "./src/websocket.ts",
|
||||
"./shared": "./src/shared.ts",
|
||||
"./open-api": "./src/open-api.ts"
|
||||
"./shared": "./src/shared.ts"
|
||||
},
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
||||
|
||||
import { openApiDocument } from "./open-api";
|
||||
import type { AppRouter } from "./root";
|
||||
import { appRouter } from "./root";
|
||||
import { createCallerFactory, createTRPCContext } from "./trpc";
|
||||
@@ -29,5 +30,5 @@ type RouterInputs = inferRouterInputs<AppRouter>;
|
||||
**/
|
||||
type RouterOutputs = inferRouterOutputs<AppRouter>;
|
||||
|
||||
export { createTRPCContext, appRouter, createCaller };
|
||||
export { createTRPCContext, appRouter, createCaller, openApiDocument };
|
||||
export type { AppRouter, RouterInputs, RouterOutputs };
|
||||
@@ -2,21 +2,10 @@ import { generateOpenApiDocument } from "trpc-to-openapi";
|
||||
|
||||
import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key";
|
||||
|
||||
import { appRouter } from "./router/app";
|
||||
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,
|
||||
});
|
||||
import { appRouter } from "./root";
|
||||
|
||||
export const openApiDocument = (base: string) =>
|
||||
generateOpenApiDocument(openApiRouter, {
|
||||
generateOpenApiDocument(appRouter, {
|
||||
title: "Homarr API documentation",
|
||||
version: "1.0.0",
|
||||
baseUrl: base,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { observable } from "@trpc/server/observable";
|
||||
import z from "zod/v4";
|
||||
|
||||
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 type { TaskStatus } from "@homarr/cron-job-status";
|
||||
import { createCronJobStatusChannel } from "@homarr/cron-job-status";
|
||||
@@ -35,7 +35,7 @@ export const cronJobsRouter = createTRPCRouter({
|
||||
.input(
|
||||
z.object({
|
||||
name: jobNameSchema,
|
||||
cron: z.string(),
|
||||
cron: cronExpressionSchema,
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input }) => {
|
||||
|
||||
@@ -110,7 +110,7 @@ export const userRouter = createTRPCRouter({
|
||||
const queryResult = (await trx.delete(schema.invites).where(inviteWhere)) as
|
||||
| QueryResult
|
||||
| MySqlRawQueryResult;
|
||||
let count: number;
|
||||
let count = 0;
|
||||
if (Array.isArray(queryResult)) {
|
||||
count = queryResult[0].affectedRows;
|
||||
} else {
|
||||
|
||||
@@ -30,5 +30,4 @@ export const widgetRouter = createTRPCRouter({
|
||||
timetable: lazy(() => import("./timetable").then((mod) => mod.timetableRouter)),
|
||||
tracearr: lazy(() => import("./tracearr").then((mod) => mod.tracearrRouter)),
|
||||
speedtestTracker: lazy(() => import("./speedtest-tracker").then((mod) => mod.speedtestTrackerRouter)),
|
||||
umami: lazy(() => import("./umami").then((mod) => mod.umamiRouter)),
|
||||
});
|
||||
@@ -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();
|
||||
};
|
||||
});
|
||||
}),
|
||||
});
|
||||
@@ -36,7 +36,7 @@ export const createSessionAsync = async (
|
||||
...user,
|
||||
email: user.email ?? "",
|
||||
permissions: await getCurrentUserPermissionsAsync(db, user.id),
|
||||
colorScheme: "auto",
|
||||
colorScheme: "dark",
|
||||
},
|
||||
} as Session;
|
||||
};
|
||||
|
||||
@@ -41,10 +41,6 @@ export class Stopwatch {
|
||||
return dayjs().millisecond(this.startTime).fromNow(true);
|
||||
}
|
||||
|
||||
getElapsedInFormattedMilliseconds() {
|
||||
return `${this.getElapsedInMilliseconds().toFixed(0)}ms`;
|
||||
}
|
||||
|
||||
getElapsedInMilliseconds() {
|
||||
return performance.now() - this.startTime;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"@trpc/client": "catalog:",
|
||||
"@trpc/server": "catalog:",
|
||||
"@trpc/tanstack-react-query": "catalog:",
|
||||
"node-cron": "catalog:",
|
||||
"react": "catalog:",
|
||||
"zod": "catalog:"
|
||||
},
|
||||
@@ -39,6 +40,7 @@
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||
"@types/node-cron": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { initTRPC, TRPCError } from "@trpc/server";
|
||||
import { validate } from "node-cron";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
import type { JobGroupKeys } from "@homarr/cron-jobs";
|
||||
@@ -12,7 +13,7 @@ export const jobNameSchema = z.enum(jobGroup.getKeys());
|
||||
export interface IJobManager {
|
||||
startAsync(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>;
|
||||
disableAsync(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({
|
||||
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||
await ctx.manager.startAsync(input);
|
||||
@@ -58,14 +63,14 @@ export const jobRouter = createTrpcRouter({
|
||||
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||
await ctx.manager.triggerAsync(input);
|
||||
}),
|
||||
stop: apiKeyProcedure.input(jobNameSchema).mutation(({ input, ctx }) => {
|
||||
ctx.manager.stop(input);
|
||||
stop: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||
await ctx.manager.stopAsync(input);
|
||||
}),
|
||||
updateInterval: apiKeyProcedure
|
||||
.input(
|
||||
z.object({
|
||||
name: jobNameSchema,
|
||||
cron: z.string(),
|
||||
cron: cronExpressionSchema,
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
|
||||
@@ -27,12 +27,13 @@
|
||||
"@homarr/common": "workspace:^0.1.0",
|
||||
"@homarr/core": "workspace:^",
|
||||
"@homarr/db": "workspace:^0.1.0",
|
||||
"croner": "catalog:"
|
||||
"node-cron": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||
"@types/node-cron": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Cron } from "croner";
|
||||
import { createTask, validate } from "node-cron";
|
||||
|
||||
import { Stopwatch } from "@homarr/common";
|
||||
import type { MaybePromise } from "@homarr/common/types";
|
||||
@@ -83,15 +83,10 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
|
||||
? defaultCronExpression
|
||||
: (configuration?.cronExpression ?? defaultCronExpression);
|
||||
|
||||
const scheduledTask = new Cron(
|
||||
cronExpression,
|
||||
{
|
||||
name,
|
||||
timezone: creatorOptions.timezone,
|
||||
paused: true,
|
||||
},
|
||||
() => void catchingCallbackAsync(),
|
||||
);
|
||||
const scheduledTask = createTask(cronExpression, () => void catchingCallbackAsync(), {
|
||||
name,
|
||||
timezone: creatorOptions.timezone,
|
||||
});
|
||||
creatorOptions.logger.logDebug("The scheduled task for cron job was created", {
|
||||
name,
|
||||
cronExpression: defaultCronExpression,
|
||||
@@ -121,7 +116,6 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
|
||||
},
|
||||
preventManualExecution: options.preventManualExecution ?? false,
|
||||
preventCustomInterval: options.preventCustomInterval ?? false,
|
||||
timezone: creatorOptions.timezone,
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -138,6 +132,13 @@ export const createCronJobCreator = <TAllowedNames extends string = string>(
|
||||
defaultCronExpression: TExpression,
|
||||
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", {
|
||||
name,
|
||||
cronExpression: defaultCronExpression,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Cron } from "croner";
|
||||
import type { ScheduledTask } from "node-cron";
|
||||
|
||||
import { objectEntries, objectKeys } from "@homarr/common";
|
||||
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 {
|
||||
initializeAsync: async () => {
|
||||
@@ -62,7 +62,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
||||
name: job.name,
|
||||
});
|
||||
await job.onStartAsync();
|
||||
tasks.get(name as string)?.resume();
|
||||
await tasks.get(name as string)?.start();
|
||||
},
|
||||
startAllAsync: async () => {
|
||||
for (const job of jobRegistry.values()) {
|
||||
@@ -74,7 +74,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
||||
name: job.name,
|
||||
});
|
||||
await job.onStartAsync();
|
||||
tasks.get(job.name)?.resume();
|
||||
await tasks.get(job.name)?.start();
|
||||
}
|
||||
},
|
||||
runManuallyAsync: async (name: keyof TJobs) => {
|
||||
@@ -87,23 +87,23 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
||||
options.logger.logInfo("Running schedule cron job manually.", {
|
||||
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);
|
||||
if (!job) return;
|
||||
|
||||
options.logger.logInfo("Stopping schedule of cron job.", {
|
||||
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()) {
|
||||
options.logger.logInfo("Stopping schedule of cron job.", {
|
||||
name: job.name,
|
||||
});
|
||||
tasks.get(job.name)?.pause();
|
||||
await tasks.get(job.name)?.stop();
|
||||
}
|
||||
},
|
||||
getJobRegistry() {
|
||||
@@ -112,8 +112,8 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
||||
getTask(name: keyof TJobs) {
|
||||
return tasks.get(name as string) ?? null;
|
||||
},
|
||||
setTask(name: keyof TJobs, cron: Cron) {
|
||||
tasks.set(name as string, cron);
|
||||
setTask(name: keyof TJobs, task: ScheduledTask) {
|
||||
tasks.set(name as string, task);
|
||||
},
|
||||
getKeys() {
|
||||
return objectKeys(jobs);
|
||||
|
||||
@@ -20,7 +20,6 @@ import { networkControllerJob } from "./jobs/integrations/network-controller";
|
||||
import { refreshNotificationsJob } from "./jobs/integrations/notifications";
|
||||
import { timetableJob } from "./jobs/integrations/timetable";
|
||||
import { tracearrJob } from "./jobs/integrations/tracearr";
|
||||
import { umamiActiveVisitorsJob } from "./jobs/integrations/umami";
|
||||
import { minecraftServerStatusJob } from "./jobs/minecraft-server-status";
|
||||
import { pingJob } from "./jobs/ping";
|
||||
import { rssFeedsJob } from "./jobs/rss-feeds";
|
||||
@@ -55,7 +54,6 @@ export const jobGroup = createCronJobGroup({
|
||||
weather: weatherJob,
|
||||
timetable: timetableJob,
|
||||
tracearr: tracearrJob,
|
||||
umamiActiveVisitors: umamiActiveVisitorsJob,
|
||||
});
|
||||
|
||||
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
|
||||
@@ -1,12 +1,9 @@
|
||||
import type { MySqlRawQueryResult } from "drizzle-orm/mysql2";
|
||||
import type { QueryResult } from "pg";
|
||||
|
||||
import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
|
||||
import { env } from "@homarr/common/env";
|
||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
|
||||
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 { fetchIconsAsync } from "@homarr/icons";
|
||||
|
||||
@@ -29,7 +26,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
||||
logger.info("Fetched icons from repositories", {
|
||||
repositoryCount: repositoryIconGroups.length,
|
||||
iconCount: countIcons,
|
||||
duration: stopWatch.getElapsedInFormattedMilliseconds(),
|
||||
duration: stopWatch.getElapsedInHumanWords(),
|
||||
});
|
||||
|
||||
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 countInserted = 0;
|
||||
|
||||
@@ -53,7 +50,6 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
||||
if (!repositoryIconGroup.success) {
|
||||
continue;
|
||||
}
|
||||
const localSkippedChecksums: string[] = [];
|
||||
|
||||
const repositoryInDb = databaseIconRepositories.find(
|
||||
(dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug,
|
||||
@@ -70,7 +66,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
||||
|
||||
for (const icon of repositoryIconGroup.icons) {
|
||||
if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) {
|
||||
localSkippedChecksums.push(icon.checksum);
|
||||
skippedChecksums.push(`${iconRepositoryId}.${icon.checksum}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -83,38 +79,19 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
||||
});
|
||||
countInserted++;
|
||||
}
|
||||
|
||||
skippedChecksums.set(iconRepositoryId, localSkippedChecksums);
|
||||
}
|
||||
|
||||
const deadIcons = allDbIcons.filter(
|
||||
(icon) => !skippedChecksums.includes(`${icon.iconRepositoryId}.${icon.checksum}`),
|
||||
);
|
||||
|
||||
const deadIconRepositories = databaseIconRepositories.filter(
|
||||
(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, {
|
||||
async handleAsync(db, schema) {
|
||||
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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
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() {
|
||||
db.transaction((transaction) => {
|
||||
const result = transaction.delete(icons).where(deadIconsFilter).run();
|
||||
countDeleted += result.changes;
|
||||
if (newIconRepositories.length >= 1) {
|
||||
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) {
|
||||
transaction
|
||||
@@ -144,22 +161,13 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
||||
.run();
|
||||
}
|
||||
|
||||
if (newIconRepositories.length >= 1) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
countDeleted += deadIcons.length;
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
logger.info("Updated icons in database", {
|
||||
duration: stopWatch.getElapsedInFormattedMilliseconds(),
|
||||
duration: stopWatch.getElapsedInHumanWords(),
|
||||
added: countInserted,
|
||||
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 } : []),
|
||||
},
|
||||
}),
|
||||
);
|
||||
@@ -4,7 +4,6 @@ import {
|
||||
everyoneGroup,
|
||||
getIntegrationDefaultUrl,
|
||||
getIntegrationName,
|
||||
integrationDefs,
|
||||
integrationKinds,
|
||||
} from "@homarr/definitions";
|
||||
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
||||
@@ -144,9 +143,8 @@ const seedDefaultIntegrationsAsync = async (db: Database) => {
|
||||
const defaultIntegrations = integrationKinds.reduce<Integration[]>((acc, kind) => {
|
||||
const name = getIntegrationName(kind);
|
||||
const defaultUrl = getIntegrationDefaultUrl(kind);
|
||||
const hasNoAuthOption = integrationDefs[kind].secretKinds.some((kinds) => kinds.length === 0);
|
||||
|
||||
if (defaultUrl !== undefined && hasNoAuthOption) {
|
||||
if (defaultUrl !== undefined) {
|
||||
acc.push({
|
||||
id: "new",
|
||||
name: `${name} Default`,
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
|
||||
"seed": "pnpm with-env tsx ./migrations/run-seed.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",
|
||||
"with-env": "dotenv -e ../../.env --"
|
||||
},
|
||||
|
||||
@@ -370,15 +370,6 @@ export const integrationDefs = {
|
||||
category: ["speedtest"],
|
||||
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)
|
||||
mock: {
|
||||
name: "Mock",
|
||||
@@ -470,7 +461,6 @@ export const integrationCategories = [
|
||||
"notes",
|
||||
"mediaMonitoring",
|
||||
"speedtest",
|
||||
"analytics",
|
||||
] as const;
|
||||
|
||||
export type IntegrationCategory = (typeof integrationCategories)[number];
|
||||
@@ -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];
|
||||
@@ -37,6 +37,5 @@ export const widgetKinds = [
|
||||
"immich-albumCarousel",
|
||||
"tracearr",
|
||||
"speedtestTracker",
|
||||
"umami",
|
||||
] as const;
|
||||
export type WidgetKind = (typeof widgetKinds)[number];
|
||||
@@ -77,7 +77,7 @@ export class AnchorIntegration extends Integration {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
let errorBody: string | null;
|
||||
let errorBody: string | null = null;
|
||||
try {
|
||||
errorBody = await response.text();
|
||||
} catch {
|
||||
|
||||
@@ -46,7 +46,6 @@ import { SeerrIntegration } from "../seerr/seerr-integration";
|
||||
import { SpeedtestTrackerIntegration } from "../speedtest-tracker/speedtest-tracker-integration";
|
||||
import { TracearrIntegration } from "../tracearr/tracearr-integration";
|
||||
import { TrueNasIntegration } from "../truenas/truenas-integration";
|
||||
import { UmamiIntegration } from "../umami/umami-integration";
|
||||
import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration";
|
||||
import { UnraidIntegration } from "../unraid/unraid-integration";
|
||||
import type { Integration, IntegrationInput } from "./integration";
|
||||
@@ -122,7 +121,6 @@ export const integrationCreators = {
|
||||
searchCh: SearchChIntegration,
|
||||
immich: ImmichIntegration,
|
||||
speedtestTracker: SpeedtestTrackerIntegration,
|
||||
umami: UmamiIntegration,
|
||||
} satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>;
|
||||
|
||||
type IntegrationInstanceOfKind<TKind extends keyof typeof integrationCreators> = {
|
||||
|
||||
@@ -33,7 +33,6 @@ export { CoolifyIntegration } from "./coolify/coolify-integration";
|
||||
export { ImmichIntegration } from "./immich/immich-integration";
|
||||
export { TracearrIntegration } from "./tracearr/tracearr-integration";
|
||||
export { SpeedtestTrackerIntegration } from "./speedtest-tracker/speedtest-tracker-integration";
|
||||
export { UmamiIntegration } from "./umami/umami-integration";
|
||||
|
||||
// Types
|
||||
export type { IntegrationInput } from "./base/integration";
|
||||
@@ -69,7 +68,6 @@ export type {
|
||||
} from "./anchor/anchor-types";
|
||||
export type { TracearrDashboardData } from "./tracearr/tracearr-types";
|
||||
export type { SpeedtestTrackerDashboardData } from "./speedtest-tracker/speedtest-tracker-types";
|
||||
export type { UmamiVisitorStats } from "./umami/umami-types";
|
||||
|
||||
// Schemas
|
||||
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
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
while ((next = iterator.next())) {
|
||||
const nextStartDate = next.isDate
|
||||
? next.toJSDate()
|
||||
: next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();
|
||||
const nextStartDate = next.convertToZone(ICAL.Timezone.utcTimezone).toJSDate();
|
||||
if (nextStartDate > end) break;
|
||||
const nextEndDate = new Date(nextStartDate.getTime() + durationMs);
|
||||
if (nextEndDate < start) continue;
|
||||
@@ -123,11 +121,7 @@ export class NextcloudIntegration extends Integration implements ICalendarIntegr
|
||||
startDates.push(nextStartDate);
|
||||
}
|
||||
} else {
|
||||
startDates = [
|
||||
veventObject.startDate.isDate
|
||||
? veventObject.startDate.toJSDate()
|
||||
: veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate(),
|
||||
];
|
||||
startDates = [veventObject.startDate.convertToZone(ICAL.Timezone.utcTimezone).toJSDate()];
|
||||
}
|
||||
|
||||
return startDates.map((startDate) => {
|
||||
|
||||
@@ -16,4 +16,3 @@ export * from "./anchor/anchor-types";
|
||||
export * from "./interfaces/timetable/timetable-types";
|
||||
export * from "./tracearr/tracearr-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;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export const mapAndDecryptUsers = (importUsers: OldmarrImportUser[], encryptionT
|
||||
oldId: id,
|
||||
id: createId(),
|
||||
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,
|
||||
provider: "credentials",
|
||||
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],
|
||||
);
|
||||
@@ -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",
|
||||
});
|
||||
@@ -1,11 +1,10 @@
|
||||
import dayjs from "dayjs";
|
||||
import { Octokit } from "octokit";
|
||||
import { compareSemVer, isValidSemVer, parseSemVer } from "semver-parser";
|
||||
import { compareSemVer, isValidSemVer } from "semver-parser";
|
||||
|
||||
import { env } from "@homarr/common/env";
|
||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
|
||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
|
||||
import { createChannelWithLatestAndEvents } from "@homarr/redis";
|
||||
import { createCachedRequestHandler } from "@homarr/request-handler/lib/cached-request-handler";
|
||||
|
||||
@@ -17,101 +16,58 @@ export const updateCheckerRequestHandler = createCachedRequestHandler({
|
||||
queryKey: "homarr-update-checker",
|
||||
cacheDuration: dayjs.duration(1, "hour"),
|
||||
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 {
|
||||
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() {
|
||||
return createChannelWithLatestAndEvents<{
|
||||
availableUpdates: Update[];
|
||||
availableUpdates: { name: string | null; contentHtml?: string; url: string; tagName: string }[];
|
||||
}>("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;
|
||||
};
|
||||
@@ -36,7 +36,7 @@ export const defaultServerSettings = {
|
||||
enableGravatar: true,
|
||||
},
|
||||
appearance: {
|
||||
defaultColorScheme: "auto" as ColorScheme,
|
||||
defaultColorScheme: "light" as ColorScheme,
|
||||
},
|
||||
culture: {
|
||||
defaultLocale: "en" as SupportedLanguage,
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Group, Text, useComputedColorScheme, useMantineColorScheme } from "@mantine/core";
|
||||
import { Group, Text, useMantineColorScheme } from "@mantine/core";
|
||||
import {
|
||||
IconBox,
|
||||
IconCategoryPlus,
|
||||
IconDeviceDesktop,
|
||||
IconFileImport,
|
||||
IconLanguage,
|
||||
IconMailForward,
|
||||
@@ -53,17 +52,13 @@ export const globalCommandGroup = createGroup<Command>({
|
||||
useOptions() {
|
||||
const tOption = useScopedI18n("search.mode.command.group.globalCommand.option");
|
||||
const { colorScheme } = useMantineColorScheme();
|
||||
const computedColorScheme = useComputedColorScheme("light");
|
||||
const { data: session } = useSession();
|
||||
|
||||
const commands: (Command & { hidden?: boolean })[] = [
|
||||
{
|
||||
commandKey: "colorScheme",
|
||||
icon: colorScheme === "auto" ? IconDeviceDesktop : computedColorScheme === "dark" ? IconSun : IconMoon,
|
||||
name:
|
||||
colorScheme === "auto"
|
||||
? tOption("colorScheme.auto")
|
||||
: tOption(`colorScheme.${computedColorScheme === "dark" ? "light" : "dark"}`),
|
||||
icon: colorScheme === "dark" ? IconSun : IconMoon,
|
||||
name: tOption(`colorScheme.${colorScheme === "dark" ? "light" : "dark"}`),
|
||||
useInteraction: () => {
|
||||
const { toggleColorScheme } = useMantineColorScheme();
|
||||
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -1614,22 +1614,22 @@
|
||||
"label": ""
|
||||
},
|
||||
"showTitle": {
|
||||
"label": "显示标题"
|
||||
"label": ""
|
||||
},
|
||||
"showUpdatedAt": {
|
||||
"label": "显示最近更新"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"empty": "选择要显示的笔记",
|
||||
"emptyContent": "此笔记没有内容",
|
||||
"notFound": "未找到笔记",
|
||||
"empty": "",
|
||||
"emptyContent": "",
|
||||
"notFound": "",
|
||||
"noNotes": "",
|
||||
"integrationRequired": "",
|
||||
"updatedAt": "更新时间:{date}",
|
||||
"untitled": "未命名",
|
||||
"edit": "编辑",
|
||||
"save": "保存",
|
||||
"cancel": "取消",
|
||||
"updatedAt": "",
|
||||
"untitled": "",
|
||||
"edit": "",
|
||||
"save": "",
|
||||
"cancel": "",
|
||||
"readOnlyViewer": "",
|
||||
"saveForbidden": "",
|
||||
"saveFailed": ""
|
||||
@@ -1901,7 +1901,7 @@
|
||||
"label": "显示内存信息"
|
||||
},
|
||||
"gpu": {
|
||||
"label": "显示 GPU 信息"
|
||||
"label": ""
|
||||
},
|
||||
"showUptime": {
|
||||
"label": "显示运行时间"
|
||||
@@ -2200,15 +2200,15 @@
|
||||
"description": ""
|
||||
},
|
||||
"showPhotos": {
|
||||
"label": "显示图片",
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showVideos": {
|
||||
"label": "显示视频",
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showStorage": {
|
||||
"label": "显示存储",
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
@@ -2229,7 +2229,7 @@
|
||||
"description": ""
|
||||
},
|
||||
"showPhotoInfo": {
|
||||
"label": "显示图片信息",
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
@@ -2783,17 +2783,17 @@
|
||||
"recentResults": "",
|
||||
"recentResultsSpeed": "",
|
||||
"recentResultsPing": "",
|
||||
"download": "下载",
|
||||
"upload": "上传",
|
||||
"ping": "Ping",
|
||||
"status": "状态",
|
||||
"avgDownload": "平均下载",
|
||||
"avgUpload": "平均上传",
|
||||
"avgPing": "平均Ping",
|
||||
"download": "",
|
||||
"upload": "",
|
||||
"ping": "",
|
||||
"status": "",
|
||||
"avgDownload": "",
|
||||
"avgUpload": "",
|
||||
"avgPing": "",
|
||||
"healthy": "",
|
||||
"unhealthy": "",
|
||||
"ok": "",
|
||||
"fail": "失败",
|
||||
"fail": "",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"internalServerError": ""
|
||||
@@ -2812,7 +2812,7 @@
|
||||
"option": {
|
||||
"cpu": "CPU",
|
||||
"memory": "内存",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "网络"
|
||||
}
|
||||
},
|
||||
@@ -2829,7 +2829,7 @@
|
||||
"card": {
|
||||
"cpu": "CPU",
|
||||
"memory": "内存",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "网络",
|
||||
"up": "上传",
|
||||
"down": "下载"
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "翻译人员",
|
||||
"subtitle": "在许多语言中,有{count}人贡献了翻译"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "相关的库",
|
||||
"subtitle": "{count} 用于 Homarr 代码中"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "crwdns1884:0crwdne1884:0",
|
||||
"subtitle": "crwdns1886:0{count}crwdne1886:0"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "crwdns4100:0crwdne4100:0",
|
||||
"subtitle": "crwdns4102:0{count}crwdne4102:0"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "crwdns1888:0crwdne1888:0",
|
||||
"subtitle": "crwdns1890:0{count}crwdne1890:0"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Překladatelé",
|
||||
"subtitle": "{count} přispívá překladem do mnoha jazyků"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Oversættere",
|
||||
"subtitle": "{count} bidragende oversættere på mange sprog"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteker",
|
||||
"subtitle": "{count} brugt i koden for Homarr"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Übersetzer",
|
||||
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotheken",
|
||||
"subtitle": "{count} im Code von Homarr verwendet"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Übersetzer",
|
||||
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotheken",
|
||||
"subtitle": "{count} im Code von Homarr verwendet"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -1607,32 +1607,32 @@
|
||||
}
|
||||
},
|
||||
"anchorNote": {
|
||||
"name": "Anchor Note",
|
||||
"description": "Displays a selected note from Anchor",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"noteId": {
|
||||
"label": "Note"
|
||||
"label": ""
|
||||
},
|
||||
"showTitle": {
|
||||
"label": "Show title"
|
||||
"label": ""
|
||||
},
|
||||
"showUpdatedAt": {
|
||||
"label": "Show last updated"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"empty": "Select a note to display",
|
||||
"emptyContent": "This note has no content",
|
||||
"notFound": "Note not found",
|
||||
"noNotes": "No notes found",
|
||||
"integrationRequired": "Select an Anchor integration first",
|
||||
"updatedAt": "Updated {date}",
|
||||
"untitled": "Untitled",
|
||||
"edit": "Edit",
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"readOnlyViewer": "You have viewer access to this note. Editing is disabled.",
|
||||
"saveForbidden": "You do not have permission to edit this note.",
|
||||
"saveFailed": "Failed to save this note. Please try again."
|
||||
"empty": "",
|
||||
"emptyContent": "",
|
||||
"notFound": "",
|
||||
"noNotes": "",
|
||||
"integrationRequired": "",
|
||||
"updatedAt": "",
|
||||
"untitled": "",
|
||||
"edit": "",
|
||||
"save": "",
|
||||
"cancel": "",
|
||||
"readOnlyViewer": "",
|
||||
"saveForbidden": "",
|
||||
"saveFailed": ""
|
||||
},
|
||||
"iframe": {
|
||||
"name": "iFrame",
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -1080,7 +1080,6 @@
|
||||
},
|
||||
"colorScheme": {
|
||||
"options": {
|
||||
"auto": "Auto",
|
||||
"light": "Light",
|
||||
"dark": "Dark"
|
||||
}
|
||||
@@ -2097,104 +2096,6 @@
|
||||
"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": {
|
||||
"location": {
|
||||
"query": "City / Postal code",
|
||||
@@ -3667,7 +3568,6 @@
|
||||
"defaultColorScheme": {
|
||||
"label": "Default color scheme",
|
||||
"options": {
|
||||
"auto": "Auto",
|
||||
"light": "Light",
|
||||
"dark": "Dark"
|
||||
}
|
||||
@@ -3768,9 +3668,6 @@
|
||||
},
|
||||
"tracearr": {
|
||||
"label": "Tracearr"
|
||||
},
|
||||
"umamiActiveVisitors": {
|
||||
"label": "Umami Active Visitors"
|
||||
}
|
||||
},
|
||||
"interval": {
|
||||
@@ -3893,10 +3790,6 @@
|
||||
"title": "Translators",
|
||||
"subtitle": "{count} contributing translations in many languages"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "Sponsors",
|
||||
"subtitle": "{count} supporting the project financially"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Libraries",
|
||||
"subtitle": "{count} used in the Code of Homarr"
|
||||
@@ -4483,7 +4376,6 @@
|
||||
"title": "Global commands",
|
||||
"option": {
|
||||
"colorScheme": {
|
||||
"auto": "Toggle appearance mode",
|
||||
"light": "Switch to light mode",
|
||||
"dark": "Switch to dark mode"
|
||||
},
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Traductores",
|
||||
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Librerías",
|
||||
"subtitle": "{count} usadas en el Código de Homarr"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Traducteurs",
|
||||
"subtitle": "{count} ont contribué à des traductions dans de nombreuses langues"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliothèques",
|
||||
"subtitle": "{count} utilisés dans le Code d'Homarr"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "מתרגמים",
|
||||
"subtitle": "{count} תורמים בתרגום לשפות שונות"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "ספריות",
|
||||
"subtitle": "{count} בשימוש בקוד של Homarr"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -2101,7 +2101,7 @@
|
||||
"query": "Város / Irányítószám",
|
||||
"latitude": "Szélesség",
|
||||
"longitude": "Hosszúság",
|
||||
"disabledTooltip": "Adj meg egy várost vagy irányítószámot",
|
||||
"disabledTooltip": "",
|
||||
"unknownLocation": "Ismeretlen hely",
|
||||
"search": "Keresés",
|
||||
"table": {
|
||||
@@ -2120,16 +2120,16 @@
|
||||
}
|
||||
},
|
||||
"integration": {
|
||||
"noData": "Nem találtam integrációt",
|
||||
"description": "Kattintson <here></here> egy új integráció létrehozásához"
|
||||
"noData": "",
|
||||
"description": ""
|
||||
},
|
||||
"app": {
|
||||
"noData": "Nem található alkalmazás",
|
||||
"description": "Kattintson <here></here> egy új alkalmazás létrehozásához",
|
||||
"quickCreate": "Alkalmazás létrehozása pillanatok alatt"
|
||||
"description": "",
|
||||
"quickCreate": ""
|
||||
},
|
||||
"error": {
|
||||
"noIntegration": "Nincs kiválasztva integráció",
|
||||
"noIntegration": "",
|
||||
"noData": "Nincs elérhető integrációs adat"
|
||||
},
|
||||
"option": {}
|
||||
@@ -2325,20 +2325,20 @@
|
||||
"detailsTitle": "Összes letöltés"
|
||||
},
|
||||
"sent": {
|
||||
"columnTitle": "Teljesen fönn",
|
||||
"detailsTitle": "Teljesen föltöltött"
|
||||
"columnTitle": "",
|
||||
"detailsTitle": ""
|
||||
},
|
||||
"size": {
|
||||
"columnTitle": "Fájl mérete",
|
||||
"detailsTitle": "A kijelölt elemek/fájlok teljes mérete"
|
||||
"columnTitle": "",
|
||||
"detailsTitle": ""
|
||||
},
|
||||
"state": {
|
||||
"columnTitle": "Állapot",
|
||||
"detailsTitle": "A feladat állapota"
|
||||
"detailsTitle": ""
|
||||
},
|
||||
"time": {
|
||||
"columnTitle": "Befejezési idő",
|
||||
"detailsTitle": "A befejezésig hátralévő idő"
|
||||
"columnTitle": "",
|
||||
"detailsTitle": ""
|
||||
},
|
||||
"type": {
|
||||
"columnTitle": "Típus",
|
||||
@@ -2364,57 +2364,57 @@
|
||||
"actions": {
|
||||
"clients": {
|
||||
"modalTitle": "Letöltkliensek listája",
|
||||
"pause": "Minden kliens/elem felfüggesztése",
|
||||
"resume": "Minden kliens/elem folytatása"
|
||||
"pause": "",
|
||||
"resume": ""
|
||||
},
|
||||
"client": {
|
||||
"pause": "Kliens felfüggesztése",
|
||||
"resume": "Kliens folytatása"
|
||||
"pause": "",
|
||||
"resume": ""
|
||||
},
|
||||
"item": {
|
||||
"pause": "Elem felfüggesztése",
|
||||
"resume": "Elem folytatása",
|
||||
"pause": "",
|
||||
"resume": "",
|
||||
"delete": {
|
||||
"title": "Elem törlése",
|
||||
"modalTitle": "Biztosan törli ezt a feladatot?",
|
||||
"entry": "Bejegyzés törlése",
|
||||
"entryAndFiles": "Bejegyzés és file(ok) törlése"
|
||||
"title": "",
|
||||
"modalTitle": "",
|
||||
"entry": "",
|
||||
"entryAndFiles": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"globalRatio": "Összes arány"
|
||||
"globalRatio": ""
|
||||
},
|
||||
"mediaReleases": {
|
||||
"name": "Sajtóközlemények",
|
||||
"description": "Az egyes integrációkból származó újonnan hozzáadott médiafájlok vagy hamarosan megjelenő kiadványok megjelenítése",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"layout": {
|
||||
"label": "Elrendezés",
|
||||
"label": "",
|
||||
"option": {
|
||||
"backdrop": {
|
||||
"label": "Háttér"
|
||||
"label": ""
|
||||
},
|
||||
"poster": {
|
||||
"label": "Poszter"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"showDescriptionTooltip": {
|
||||
"label": "Leírás megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"showType": {
|
||||
"label": "Médiatípus-jelölő megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"showSource": {
|
||||
"label": "Forrásintegráció megjelenítése"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"length": {
|
||||
"duration": "{length}perc"
|
||||
"duration": ""
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"option": {
|
||||
"linksTargetNewTab": {
|
||||
@@ -2422,31 +2422,31 @@
|
||||
}
|
||||
},
|
||||
"pending": {
|
||||
"approve": "Kérelem elfogadása",
|
||||
"approving": "Kérelem elfogadása...",
|
||||
"decline": "Kérés elutasítása"
|
||||
"approve": "",
|
||||
"approving": "",
|
||||
"decline": ""
|
||||
},
|
||||
"availability": {
|
||||
"unknown": "Ismeretlen",
|
||||
"pending": "Függőben",
|
||||
"pending": "",
|
||||
"processing": "Feldolgozás",
|
||||
"requested": "Kérve",
|
||||
"requested": "",
|
||||
"partiallyAvailable": "Részleges",
|
||||
"available": "Elérhető",
|
||||
"blacklisted": "Tiltólistára került",
|
||||
"deleted": "Törölve"
|
||||
"blacklisted": "",
|
||||
"deleted": ""
|
||||
},
|
||||
"status": {
|
||||
"pending": "Függőben",
|
||||
"approved": "Jóváhagyva",
|
||||
"declined": "Elutasítva",
|
||||
"failed": "Sikertelen",
|
||||
"completed": "Befejezett"
|
||||
"pending": "",
|
||||
"approved": "",
|
||||
"declined": "",
|
||||
"failed": "",
|
||||
"completed": ""
|
||||
},
|
||||
"toBeDetermined": "TBD"
|
||||
"toBeDetermined": ""
|
||||
},
|
||||
"mediaRequests-requestStats": {
|
||||
"name": "Médiakérések állapota",
|
||||
"name": "",
|
||||
"description": "Statisztikák az Ön médiakéréseiről",
|
||||
"option": {},
|
||||
"titles": {
|
||||
@@ -2528,56 +2528,56 @@
|
||||
},
|
||||
"rssFeed": {
|
||||
"name": "RSS feedek",
|
||||
"description": "Egy vagy több általános RSS-, ATOM- vagy JSON-hírcsatorna figyelése és megjelenítése",
|
||||
"description": "",
|
||||
"option": {
|
||||
"feedUrls": {
|
||||
"label": "Hírcsatorna URL"
|
||||
"label": ""
|
||||
},
|
||||
"enableRtl": {
|
||||
"label": "RTL engedélyezése"
|
||||
"label": ""
|
||||
},
|
||||
"textLinesClamp": {
|
||||
"label": "Leírás sorlimit"
|
||||
"label": ""
|
||||
},
|
||||
"maximumAmountPosts": {
|
||||
"label": "Bejegyzések számának korlátja"
|
||||
"label": ""
|
||||
},
|
||||
"hideDescription": {
|
||||
"label": "Leírás elrejtése"
|
||||
"label": ""
|
||||
},
|
||||
"showPosterImage": {
|
||||
"label": "Plakátkép megjelenítése"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"releases": {
|
||||
"name": "Kiadások",
|
||||
"description": "Megjeleníti az adott tárolók aktuális verzióinak listáját a megadott verzió-kifejezés alapján.",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"newReleaseWithin": {
|
||||
"label": "Új kiadás a",
|
||||
"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."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"staleReleaseWithin": {
|
||||
"label": "Elavult kiadás",
|
||||
"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."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showOnlyHighlighted": {
|
||||
"label": "Csak a kiemelt elemeket mutasd",
|
||||
"description": "Csak az új vagy lejárt kiadásokat mutassa. A fentiek szerint."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showDetails": {
|
||||
"label": "Részletek megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"showOnlyIcon": {
|
||||
"label": "Csak ikonok megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"topReleases": {
|
||||
"label": "Legnépszerűbb kiadások",
|
||||
"description": "A megjelenítendő legújabb kiadások maximális száma. A nulla érték korlátlan számot jelent."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"repositories": {
|
||||
"label": "Csomagtárolók",
|
||||
"label": "",
|
||||
"addRepository": {
|
||||
"label": "Gyűjtemény Hozzáadása"
|
||||
},
|
||||
@@ -2597,39 +2597,39 @@
|
||||
},
|
||||
"identifier": {
|
||||
"label": "Azonosító",
|
||||
"placeholder": "Név vagy tulajdonos/név"
|
||||
"placeholder": ""
|
||||
},
|
||||
"name": {
|
||||
"label": "Név"
|
||||
"label": ""
|
||||
},
|
||||
"versionFilter": {
|
||||
"label": "Verziószűrő",
|
||||
"label": "",
|
||||
"prefix": {
|
||||
"label": "Előtag"
|
||||
"label": ""
|
||||
},
|
||||
"precision": {
|
||||
"label": "Pontosság",
|
||||
"label": "",
|
||||
"options": {
|
||||
"none": "Nem"
|
||||
"none": ""
|
||||
}
|
||||
},
|
||||
"suffix": {
|
||||
"label": "Utótag"
|
||||
"label": ""
|
||||
},
|
||||
"regex": {
|
||||
"label": "Reguláris kifejezés"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"edit": {
|
||||
"label": "Szerkesztés"
|
||||
"label": ""
|
||||
},
|
||||
"editForm": {
|
||||
"title": "Gyűjtemény Szerkesztése",
|
||||
"title": "",
|
||||
"cancel": {
|
||||
"label": "Mégse"
|
||||
"label": ""
|
||||
},
|
||||
"confirm": {
|
||||
"label": "Megerősít"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"importForm": {
|
||||
@@ -2742,94 +2742,94 @@
|
||||
"fwname": "",
|
||||
"version": "",
|
||||
"versiontitle": "",
|
||||
"cputitle": "CPU használat",
|
||||
"memorytitle": "Memória használat",
|
||||
"cpu": "CPU",
|
||||
"memory": "Memória",
|
||||
"cputitle": "",
|
||||
"memorytitle": "",
|
||||
"cpu": "",
|
||||
"memory": "",
|
||||
"interfaces": {
|
||||
"name": "név",
|
||||
"trans": "Továbbított",
|
||||
"recv": "Kézbesített",
|
||||
"title": "Hálózati interfészek"
|
||||
"name": "",
|
||||
"trans": "",
|
||||
"recv": "",
|
||||
"title": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"notifications": {
|
||||
"name": "Értesítések",
|
||||
"description": "Egy integráció értesítési előzményeinek megjelenítése",
|
||||
"noItems": "Nincs megjelenítendő üzenet.",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"noItems": "",
|
||||
"option": {}
|
||||
},
|
||||
"speedtestTracker": {
|
||||
"name": "Hálózatsebesség Monitorozó",
|
||||
"description": "Megjeleníti a Hálózatsebesség Monitorozó példányából származó sebességteszt-eredményeket.",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showLatestResult": {
|
||||
"label": "Legfrissebb eredmények megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "Átlag mutatása"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentResults": {
|
||||
"label": "Legutóbbi eredmények megjelenítése"
|
||||
"label": ""
|
||||
},
|
||||
"showPingGraph": {
|
||||
"label": "Válaszidő grafikon megjelenítése"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"latestResult": "Legfrissebb eredmény",
|
||||
"averages": "Átlagok",
|
||||
"tests": "{count} mérések",
|
||||
"recentResults": "Legutóbbi eredmények",
|
||||
"recentResultsSpeed": "Sebesség",
|
||||
"recentResultsPing": "Válaszidő",
|
||||
"download": "Letöltés",
|
||||
"upload": "Feltöltés",
|
||||
"ping": "Válaszidő",
|
||||
"status": "Állapot",
|
||||
"avgDownload": "Átlag Letöltés",
|
||||
"avgUpload": "Átlag Feltöltés",
|
||||
"avgPing": "Átlag válaszidő",
|
||||
"healthy": "Normális",
|
||||
"unhealthy": "Rossz",
|
||||
"ok": "OK",
|
||||
"fail": "Hiba",
|
||||
"noSectionsEnabled": "A widget beállításaiban legalább egy szakaszt engedélyezzen.",
|
||||
"latestResult": "",
|
||||
"averages": "",
|
||||
"tests": "",
|
||||
"recentResults": "",
|
||||
"recentResultsSpeed": "",
|
||||
"recentResultsPing": "",
|
||||
"download": "",
|
||||
"upload": "",
|
||||
"ping": "",
|
||||
"status": "",
|
||||
"avgDownload": "",
|
||||
"avgUpload": "",
|
||||
"avgPing": "",
|
||||
"healthy": "",
|
||||
"unhealthy": "",
|
||||
"ok": "",
|
||||
"fail": "",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"internalServerError": "A sebességteszt-adatok letöltése nem sikerült"
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"systemResources": {
|
||||
"name": "Rendszer erőforrások",
|
||||
"description": "A rendszer CPU-, memória-, lemez- és egyéb hardverhasználata",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"hasShadow": {
|
||||
"label": "Diagram árnyékolás engedélyezése"
|
||||
"label": ""
|
||||
},
|
||||
"visibleCharts": {
|
||||
"label": "Látható diagramok",
|
||||
"description": "Válassza ki azokat a diagramokat, amelyeket meg szeretne jeleníteni.",
|
||||
"label": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"cpu": "CPU",
|
||||
"memory": "Memória",
|
||||
"gpu": "GPU",
|
||||
"network": "Hálózat"
|
||||
"cpu": "",
|
||||
"memory": "",
|
||||
"gpu": "",
|
||||
"network": ""
|
||||
}
|
||||
},
|
||||
"labelDisplayMode": {
|
||||
"label": "Címke megjelenítési mód",
|
||||
"label": "",
|
||||
"option": {
|
||||
"textWithIcon": "Szöveg megjelenítése ikonnal",
|
||||
"text": "Csak a szöveget mutasd",
|
||||
"icon": "Csak az ikont mutatsd",
|
||||
"hidden": "Címke elrejtése"
|
||||
"textWithIcon": "",
|
||||
"text": "",
|
||||
"icon": "",
|
||||
"hidden": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"card": {
|
||||
"cpu": "CPU",
|
||||
"memory": "RAM",
|
||||
"gpu": "GPU",
|
||||
"cpu": "",
|
||||
"memory": "",
|
||||
"gpu": "",
|
||||
"network": "",
|
||||
"up": "",
|
||||
"down": ""
|
||||
@@ -2971,20 +2971,20 @@
|
||||
},
|
||||
"field": {
|
||||
"pageTitle": {
|
||||
"label": "Oldal cím"
|
||||
"label": ""
|
||||
},
|
||||
"metaTitle": {
|
||||
"label": "Meta cím"
|
||||
"label": ""
|
||||
},
|
||||
"logoImageUrl": {
|
||||
"label": "Logo kép URL"
|
||||
"label": ""
|
||||
},
|
||||
"faviconImageUrl": {
|
||||
"label": "A favicon képének URL-címe"
|
||||
"label": ""
|
||||
},
|
||||
"backgroundImageUrl": {
|
||||
"label": "Háttérkép URL",
|
||||
"placeholder": "Kezdje el gépelni a helyi képek kereséséhez",
|
||||
"label": "",
|
||||
"placeholder": "",
|
||||
"group": {
|
||||
"your": "",
|
||||
"other": ""
|
||||
@@ -3495,7 +3495,7 @@
|
||||
"title": "",
|
||||
"general": {
|
||||
"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": {
|
||||
"title": "",
|
||||
@@ -3652,10 +3652,10 @@
|
||||
"label": ""
|
||||
},
|
||||
"firewallCpu": {
|
||||
"label": "Tűzfal CPU"
|
||||
"label": ""
|
||||
},
|
||||
"firewallMemory": {
|
||||
"label": "Tűzfal Memória"
|
||||
"label": ""
|
||||
},
|
||||
"firewallVersion": {
|
||||
"label": ""
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
@@ -3843,10 +3839,10 @@
|
||||
},
|
||||
"stats": {
|
||||
"cpu": {
|
||||
"label": "CPU"
|
||||
"label": ""
|
||||
},
|
||||
"memory": {
|
||||
"label": "Memória"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"containerImage": {
|
||||
@@ -3984,10 +3980,10 @@
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"label": "CPU"
|
||||
"label": ""
|
||||
},
|
||||
"memory": {
|
||||
"label": "RAM"
|
||||
"label": ""
|
||||
},
|
||||
"pods": {
|
||||
"label": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Traduttori",
|
||||
"subtitle": "{count} contribuendo alle traduzioni in molte lingue"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "Sponsor",
|
||||
"subtitle": "{count} sostengono il progetto finanziariamente"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Librerie",
|
||||
"subtitle": "{count} utilizzato nel Codice di Homarr"
|
||||
|
||||
@@ -1138,9 +1138,9 @@
|
||||
"dangerZone": "危険な操作",
|
||||
"noResults": "結果が見つかりません",
|
||||
"unsavedChanges": "保存していない変更があります!",
|
||||
"servers": "サーバー",
|
||||
"applications": "アプリケーション",
|
||||
"services": "サービス",
|
||||
"servers": "",
|
||||
"applications": "",
|
||||
"services": "",
|
||||
"preview": {
|
||||
"show": "プレビューを表示",
|
||||
"hide": "プレビューを閉じる"
|
||||
@@ -1526,13 +1526,13 @@
|
||||
}
|
||||
},
|
||||
"timetable": {
|
||||
"name": "タイムテーブル",
|
||||
"description": "駅の出発時刻を表示します",
|
||||
"title": "{station} 出発時刻",
|
||||
"noStation": "駅が選択されていません",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"noStation": "",
|
||||
"option": {
|
||||
"station": {
|
||||
"label": "駅"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1607,32 +1607,32 @@
|
||||
}
|
||||
},
|
||||
"anchorNote": {
|
||||
"name": "アンカーノート",
|
||||
"description": "アンカーから選択したノートを表示する",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"noteId": {
|
||||
"label": "ノート"
|
||||
"label": ""
|
||||
},
|
||||
"showTitle": {
|
||||
"label": "タイトルを表示"
|
||||
"label": ""
|
||||
},
|
||||
"showUpdatedAt": {
|
||||
"label": "最終更新を表示"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"empty": "表示するノートを選択",
|
||||
"emptyContent": "このノートにはコンテンツがありません",
|
||||
"notFound": "ノートが見つかりません",
|
||||
"noNotes": "ノートがありません",
|
||||
"integrationRequired": "アンカー統合を最初に選択してください",
|
||||
"updatedAt": "{date} に更新しました",
|
||||
"untitled": "タイトルなし",
|
||||
"edit": "編集",
|
||||
"save": "保存",
|
||||
"cancel": "キャンセル",
|
||||
"readOnlyViewer": "このノートを閲覧することができます。編集は無効になっています",
|
||||
"saveForbidden": "このノートを編集する権限がありません。",
|
||||
"saveFailed": "このノートを保存できませんでした。もう一度やり直してください。"
|
||||
"empty": "",
|
||||
"emptyContent": "",
|
||||
"notFound": "",
|
||||
"noNotes": "",
|
||||
"integrationRequired": "",
|
||||
"updatedAt": "",
|
||||
"untitled": "",
|
||||
"edit": "",
|
||||
"save": "",
|
||||
"cancel": "",
|
||||
"readOnlyViewer": "",
|
||||
"saveForbidden": "",
|
||||
"saveFailed": ""
|
||||
},
|
||||
"iframe": {
|
||||
"name": "iFrame",
|
||||
@@ -1666,7 +1666,7 @@
|
||||
"label": "位置情報を許可する"
|
||||
},
|
||||
"allowModals": {
|
||||
"label": "モーダルを許可"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
@@ -1901,7 +1901,7 @@
|
||||
"label": "メモリー情報を表示"
|
||||
},
|
||||
"gpu": {
|
||||
"label": "GPU情報を表示"
|
||||
"label": ""
|
||||
},
|
||||
"showUptime": {
|
||||
"label": "稼働時間を表示"
|
||||
@@ -2009,91 +2009,91 @@
|
||||
}
|
||||
},
|
||||
"coolify": {
|
||||
"name": "Coolify",
|
||||
"description": "サーバーとアプリケーションを使用した Coolify インスタンスの概要",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showServers": {
|
||||
"label": "サーバーを表示"
|
||||
"label": ""
|
||||
},
|
||||
"showApplications": {
|
||||
"label": "アプリケーションを表示"
|
||||
"label": ""
|
||||
},
|
||||
"showServices": {
|
||||
"label": "サービスを表示"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"empty": {
|
||||
"servers": "サーバーが見つかりません",
|
||||
"applications": "アプリケーションが見つかりません",
|
||||
"services": "サービスが見つかりません"
|
||||
"servers": "",
|
||||
"applications": "",
|
||||
"services": ""
|
||||
},
|
||||
"footer": {
|
||||
"updated": "{when} に更新しました"
|
||||
"updated": ""
|
||||
},
|
||||
"error": {
|
||||
"noIntegration": "Coolify 統合が設定されていません",
|
||||
"internalServerError": "Coolify データの取得に失敗しました"
|
||||
"noIntegration": "",
|
||||
"internalServerError": ""
|
||||
},
|
||||
"server": {
|
||||
"buildServer": "ビルド"
|
||||
"buildServer": ""
|
||||
},
|
||||
"instances": {
|
||||
"title": "インスタンス"
|
||||
"title": ""
|
||||
}
|
||||
},
|
||||
"tracearr": {
|
||||
"name": "Tracearr",
|
||||
"description": "詳細なストリームとトランスコーディングデータによるメディアサーバーのモニタリングの強化",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showStreams": {
|
||||
"label": "アクティブなストリームを表示"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "統計情報の概要を表示"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentActivity": {
|
||||
"label": "最近のアクティビティを表示"
|
||||
"label": ""
|
||||
},
|
||||
"showViolations": {
|
||||
"label": "違反を表示"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
"activeStreams": "アクティブなストリーム",
|
||||
"totalUsers": "総ユーザー数",
|
||||
"transcodes": "トランスコード",
|
||||
"bandwidth": "帯域幅"
|
||||
"activeStreams": "",
|
||||
"totalUsers": "",
|
||||
"transcodes": "",
|
||||
"bandwidth": ""
|
||||
},
|
||||
"streams": {
|
||||
"empty": "アクティブなストリームがありません",
|
||||
"user": "ユーザー",
|
||||
"media": "メディア",
|
||||
"state": "状態",
|
||||
"quality": "品質",
|
||||
"device": "デバイス",
|
||||
"progress": "進捗状況",
|
||||
"empty": "",
|
||||
"user": "",
|
||||
"media": "",
|
||||
"state": "",
|
||||
"quality": "",
|
||||
"device": "",
|
||||
"progress": "",
|
||||
"videoDecision": {
|
||||
"directPlay": "ダイレクトプレイ",
|
||||
"transcode": "トランスコード",
|
||||
"directStream": "ダイレクトストリーム"
|
||||
"directPlay": "",
|
||||
"transcode": "",
|
||||
"directStream": ""
|
||||
}
|
||||
},
|
||||
"recentActivity": {
|
||||
"title": "最近のアクティビティ",
|
||||
"empty": "最近のアクティビティなし",
|
||||
"watched": "視聴済",
|
||||
"partial": "一部"
|
||||
"title": "",
|
||||
"empty": "",
|
||||
"watched": "",
|
||||
"partial": ""
|
||||
},
|
||||
"violations": {
|
||||
"title": "違反",
|
||||
"empty": "最近の違反はありません",
|
||||
"rule": "ルール",
|
||||
"user": "ユーザー"
|
||||
"title": "",
|
||||
"empty": "",
|
||||
"rule": "",
|
||||
"user": ""
|
||||
},
|
||||
"noSectionsEnabled": "有効なセクションがありません",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"noIntegration": "Tracearrとの連携が設定されていません",
|
||||
"internalServerError": "Tracearrデータの取得に失敗しました"
|
||||
"noIntegration": "",
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
@@ -2192,50 +2192,50 @@
|
||||
}
|
||||
},
|
||||
"immich-serverStats": {
|
||||
"name": "Immich サーバーの統計",
|
||||
"description": "Immich インスタンスに関する情報",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showUsers": {
|
||||
"label": "ユーザを表示",
|
||||
"description": "インスタンスにユーザー数を表示する"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showPhotos": {
|
||||
"label": "写真を表示",
|
||||
"description": "インスタンス上の写真数を表示する"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showVideos": {
|
||||
"label": "動画を表示",
|
||||
"description": "インスタンスに動画の数を表示する"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showStorage": {
|
||||
"label": "ストレージを表示",
|
||||
"description": "使用されたストレージの合計容量を表示します"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"users": "ユーザー",
|
||||
"photos": "写真",
|
||||
"videos": "動画",
|
||||
"storage": "ストレージ使用量"
|
||||
"users": "",
|
||||
"photos": "",
|
||||
"videos": "",
|
||||
"storage": ""
|
||||
},
|
||||
"immich-albumCarousel": {
|
||||
"name": "Immich アルバム",
|
||||
"name": "",
|
||||
"option": {
|
||||
"albumId": {
|
||||
"label": "アルバム ID",
|
||||
"description": "これはImmichのアルバムを示す固有のIDです。 「a21aca09-9f05-47dc-b1a1-7b53c547226e」など、アルバムを開いてURLから一意の文字列をコピーすることでこのIDを見つけることができます。"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"rotationIntervalSeconds": {
|
||||
"label": "間隔 (秒)",
|
||||
"description": "アルバム内の写真をX秒ごとに回転させます。少なくとも1でなければなりません。3600未満でなければなりません。"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showPhotoInfo": {
|
||||
"label": "写真情報を表示",
|
||||
"description": "スライドショーの下部に画像の日付と現在の索引を表示します"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"description": "Immichアルバムの写真のスライド",
|
||||
"noAlbumSelected": "アルバムが選択されていない、ウィジェットを編集してアルバムを選択してください",
|
||||
"noPhotos": "このアルバムには写真がありません"
|
||||
"description": "",
|
||||
"noAlbumSelected": "",
|
||||
"noPhotos": ""
|
||||
},
|
||||
"downloads": {
|
||||
"name": "クライアントをダウンロード",
|
||||
@@ -2546,7 +2546,7 @@
|
||||
"label": "詳細を非表示"
|
||||
},
|
||||
"showPosterImage": {
|
||||
"label": "ポスターの画像を表示"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2761,42 +2761,42 @@
|
||||
"option": {}
|
||||
},
|
||||
"speedtestTracker": {
|
||||
"name": "スピードテストトラッカー",
|
||||
"description": "Speedtest Trackerインスタンスからスピードテストの結果を表示します。",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showLatestResult": {
|
||||
"label": "最新の結果を表示"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "平均を表示"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentResults": {
|
||||
"label": "最近の結果を表示"
|
||||
"label": ""
|
||||
},
|
||||
"showPingGraph": {
|
||||
"label": "ping グラフを表示"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"latestResult": "直近の結果",
|
||||
"averages": "平均値",
|
||||
"tests": "{count} 回テスト",
|
||||
"recentResults": "最近の結果",
|
||||
"recentResultsSpeed": "スピード",
|
||||
"recentResultsPing": "Ping",
|
||||
"download": "ダウンロード",
|
||||
"upload": "アップロード",
|
||||
"ping": "Ping",
|
||||
"status": "ステータス",
|
||||
"avgDownload": "平均ダウンロード",
|
||||
"avgUpload": "平均アップロード",
|
||||
"avgPing": "平均 Ping",
|
||||
"healthy": "正常",
|
||||
"unhealthy": "異常",
|
||||
"ok": "成功",
|
||||
"fail": "失敗",
|
||||
"noSectionsEnabled": "ウィジェットオプションで少なくとも1つのセクションを有効にします。",
|
||||
"latestResult": "",
|
||||
"averages": "",
|
||||
"tests": "",
|
||||
"recentResults": "",
|
||||
"recentResultsSpeed": "",
|
||||
"recentResultsPing": "",
|
||||
"download": "",
|
||||
"upload": "",
|
||||
"ping": "",
|
||||
"status": "",
|
||||
"avgDownload": "",
|
||||
"avgUpload": "",
|
||||
"avgPing": "",
|
||||
"healthy": "",
|
||||
"unhealthy": "",
|
||||
"ok": "",
|
||||
"fail": "",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"internalServerError": "スピードテストデータの取得に失敗しました"
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"systemResources": {
|
||||
@@ -2812,7 +2812,7 @@
|
||||
"option": {
|
||||
"cpu": "CPU",
|
||||
"memory": "メモリ",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "ネットワーク"
|
||||
}
|
||||
},
|
||||
@@ -2829,39 +2829,39 @@
|
||||
"card": {
|
||||
"cpu": "CPU",
|
||||
"memory": "MEM",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "NET",
|
||||
"up": "UP",
|
||||
"down": "DOWN"
|
||||
}
|
||||
},
|
||||
"systemDisks": {
|
||||
"name": "システムディスク",
|
||||
"description": "システムのディスク使用量",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showTemperatureIfAvailable": {
|
||||
"label": "利用可能な場合は温度を表示"
|
||||
"label": ""
|
||||
},
|
||||
"displayMode": {
|
||||
"label": "表示モード",
|
||||
"label": "",
|
||||
"option": {
|
||||
"percentage": {
|
||||
"label": "割合 (例 76%)"
|
||||
"label": ""
|
||||
},
|
||||
"absolute": {
|
||||
"label": "絶対値(例:800GB / 1TB)"
|
||||
"label": ""
|
||||
},
|
||||
"free": {
|
||||
"label": "空き領域の割合(例:24%空き)"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"showBackgroundBar": {
|
||||
"label": "バックグラウンドの使用状況バーを表示"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"unhealthy": "異常"
|
||||
"unhealthy": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3495,7 +3495,7 @@
|
||||
"title": "統計情報",
|
||||
"general": {
|
||||
"title": "匿名の解析を送信",
|
||||
"text": "Homarrは、オープンソースソフトウェアUmamiを使用して匿名化された分析を送信します。 有効にすると、以下が収集されます。Homarrバージョン、データベースタイプ(MySQL/PostgreSQL/SQLite)、Docker/Kubernetesステータス、認証方法、各機能の数。 すべてのデータは匿名で集計されます。個人情報、URL、名前、または識別可能なデータは収集されません。 これにより、オープンソースチームは利用パターンを理解し、開発に優先順位を付けることができます。"
|
||||
"text": "Homarr はオープンソースソフトウェア Umami を使用して匿名化された分析情報を送信します。個人情報を一切収集しないため、GDPRとCCPAに完全に準拠しています。分析機能を有効にすると、オープンソースチームが問題を特定し、バックログの優先順位付けを行うのに役立ちますので、ぜひ有効にしてください。"
|
||||
},
|
||||
"widgetData": {
|
||||
"title": "ウィジェットのデータ",
|
||||
@@ -3595,7 +3595,7 @@
|
||||
"label": "Minecraft サーバーの状態"
|
||||
},
|
||||
"timetable": {
|
||||
"label": "タイムテーブル"
|
||||
"label": ""
|
||||
},
|
||||
"iconsUpdater": {
|
||||
"label": "アイコンアップデータ"
|
||||
@@ -3667,7 +3667,7 @@
|
||||
"label": "天気"
|
||||
},
|
||||
"tracearr": {
|
||||
"label": "Tracearr"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"interval": {
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "翻訳者",
|
||||
"subtitle": "{count} の多くの言語で翻訳を行っている"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "ライブラリ",
|
||||
"subtitle": "{count} 個が Homarr のコードで使用されています"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Vertalers",
|
||||
"subtitle": "{count} bijdragen aan vertalingen in vele talen"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotheken",
|
||||
"subtitle": "{count} gebruikt in de code van Homarr"
|
||||
|
||||
@@ -1526,13 +1526,13 @@
|
||||
}
|
||||
},
|
||||
"timetable": {
|
||||
"name": "Timeplan",
|
||||
"description": "Viser avgangstid for en stasjon",
|
||||
"title": "Avganger {station}",
|
||||
"noStation": "Ingen stasjon valgt",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"noStation": "",
|
||||
"option": {
|
||||
"station": {
|
||||
"label": "Stasjon"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1607,32 +1607,32 @@
|
||||
}
|
||||
},
|
||||
"anchorNote": {
|
||||
"name": "Ankermerknad",
|
||||
"description": "Viser et valgt notat fra anker",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"noteId": {
|
||||
"label": "Notat"
|
||||
"label": ""
|
||||
},
|
||||
"showTitle": {
|
||||
"label": "Vis tittel"
|
||||
"label": ""
|
||||
},
|
||||
"showUpdatedAt": {
|
||||
"label": "Vis sist oppdatert"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"empty": "Velg et notat som skal vises",
|
||||
"emptyContent": "Dette notatet har ikke innhold",
|
||||
"notFound": "Notat ikke funnet",
|
||||
"noNotes": "Fant ingen notater",
|
||||
"integrationRequired": "Velg en ankerintegrasjon først",
|
||||
"updatedAt": "Oppdatert {date}",
|
||||
"untitled": "Uten navn",
|
||||
"edit": "Rediger",
|
||||
"save": "Lagre",
|
||||
"cancel": "Avbryt",
|
||||
"readOnlyViewer": "Du har seertilgang til dette notatet. Redigering er deaktivert.",
|
||||
"saveForbidden": "Du har ikke tillatelse til å redigere dette notatet.",
|
||||
"saveFailed": "Kunne ikke lagre dette notatet. Prøv på nytt."
|
||||
"empty": "",
|
||||
"emptyContent": "",
|
||||
"notFound": "",
|
||||
"noNotes": "",
|
||||
"integrationRequired": "",
|
||||
"updatedAt": "",
|
||||
"untitled": "",
|
||||
"edit": "",
|
||||
"save": "",
|
||||
"cancel": "",
|
||||
"readOnlyViewer": "",
|
||||
"saveForbidden": "",
|
||||
"saveFailed": ""
|
||||
},
|
||||
"iframe": {
|
||||
"name": "iFrame",
|
||||
@@ -1666,7 +1666,7 @@
|
||||
"label": "Tillat geolokalisering"
|
||||
},
|
||||
"allowModals": {
|
||||
"label": "Tillat modaler"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
@@ -1901,7 +1901,7 @@
|
||||
"label": "Vis minneinfo"
|
||||
},
|
||||
"gpu": {
|
||||
"label": "Vis CPU-info"
|
||||
"label": ""
|
||||
},
|
||||
"showUptime": {
|
||||
"label": "Vis oppetid"
|
||||
@@ -2042,58 +2042,58 @@
|
||||
}
|
||||
},
|
||||
"tracearr": {
|
||||
"name": "Tracearr",
|
||||
"description": "Forbedret medieserverovervåking med detaljert strøm- og transkodingsdata",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showStreams": {
|
||||
"label": "Vis aktive strømmer"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "Vis statistikksammendrag"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentActivity": {
|
||||
"label": "Vis nylig aktivitet"
|
||||
"label": ""
|
||||
},
|
||||
"showViolations": {
|
||||
"label": "Vis brudd"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
"activeStreams": "Aktive strømmninger",
|
||||
"totalUsers": "Totalt antall brukere",
|
||||
"transcodes": "Transkoder",
|
||||
"bandwidth": "Båndbredde"
|
||||
"activeStreams": "",
|
||||
"totalUsers": "",
|
||||
"transcodes": "",
|
||||
"bandwidth": ""
|
||||
},
|
||||
"streams": {
|
||||
"empty": "Ingen aktive strømminger",
|
||||
"user": "Bruker",
|
||||
"media": "Media",
|
||||
"state": "Tilstand",
|
||||
"quality": "Kvalitet",
|
||||
"device": "Enhet",
|
||||
"progress": "Fremgang",
|
||||
"empty": "",
|
||||
"user": "",
|
||||
"media": "",
|
||||
"state": "",
|
||||
"quality": "",
|
||||
"device": "",
|
||||
"progress": "",
|
||||
"videoDecision": {
|
||||
"directPlay": "Direkte avspilling",
|
||||
"transcode": "Transkode",
|
||||
"directStream": "Direktestrøm"
|
||||
"directPlay": "",
|
||||
"transcode": "",
|
||||
"directStream": ""
|
||||
}
|
||||
},
|
||||
"recentActivity": {
|
||||
"title": "Nylig aktivitet",
|
||||
"empty": "Ingen nylig aktivitet",
|
||||
"watched": "Sett",
|
||||
"partial": "Delvis"
|
||||
"title": "",
|
||||
"empty": "",
|
||||
"watched": "",
|
||||
"partial": ""
|
||||
},
|
||||
"violations": {
|
||||
"title": "Brudd",
|
||||
"empty": "Ingen nylige brudd",
|
||||
"rule": "Regel",
|
||||
"user": "Bruker"
|
||||
"title": "",
|
||||
"empty": "",
|
||||
"rule": "",
|
||||
"user": ""
|
||||
},
|
||||
"noSectionsEnabled": "Ingen seksjoner aktivert",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"noIntegration": "Ingen Tracearr-integrasjon konfigurert",
|
||||
"internalServerError": "Kunne ikke hente Tracearr data"
|
||||
"noIntegration": "",
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
@@ -2546,7 +2546,7 @@
|
||||
"label": "Skjul beskrivelse"
|
||||
},
|
||||
"showPosterImage": {
|
||||
"label": "Vis plakatbilde"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2761,42 +2761,42 @@
|
||||
"option": {}
|
||||
},
|
||||
"speedtestTracker": {
|
||||
"name": "Speedtest tracker",
|
||||
"description": "Viser hastighetstesten i fra din Speedtest Tracker-instans.",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showLatestResult": {
|
||||
"label": "Vis siste resultat"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "Vis gjennomsnitt"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentResults": {
|
||||
"label": "Vis nylige resultater"
|
||||
"label": ""
|
||||
},
|
||||
"showPingGraph": {
|
||||
"label": "Vis ping-graf"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"latestResult": "Siste resultat",
|
||||
"averages": "Gjennomsnitt",
|
||||
"tests": "{count} tester",
|
||||
"recentResults": "Nylige resultater",
|
||||
"recentResultsSpeed": "Hastighet",
|
||||
"recentResultsPing": "Ping",
|
||||
"download": "Nedlasting",
|
||||
"upload": "Opplastning",
|
||||
"ping": "Ping",
|
||||
"status": "Status",
|
||||
"avgDownload": "Snitt nedlasting",
|
||||
"avgUpload": "Snitt opplasting",
|
||||
"avgPing": "Snitt ping",
|
||||
"healthy": "Frisk",
|
||||
"unhealthy": "Usunn",
|
||||
"ok": "OK",
|
||||
"fail": "Feil",
|
||||
"noSectionsEnabled": "Aktiver minst ett avsnitt i widgetalternativer.",
|
||||
"latestResult": "",
|
||||
"averages": "",
|
||||
"tests": "",
|
||||
"recentResults": "",
|
||||
"recentResultsSpeed": "",
|
||||
"recentResultsPing": "",
|
||||
"download": "",
|
||||
"upload": "",
|
||||
"ping": "",
|
||||
"status": "",
|
||||
"avgDownload": "",
|
||||
"avgUpload": "",
|
||||
"avgPing": "",
|
||||
"healthy": "",
|
||||
"unhealthy": "",
|
||||
"ok": "",
|
||||
"fail": "",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"internalServerError": "Kunne ikke hente hastighetsteste data"
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"systemResources": {
|
||||
@@ -2812,7 +2812,7 @@
|
||||
"option": {
|
||||
"cpu": "CPU",
|
||||
"memory": "Minne",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "Nettverk"
|
||||
}
|
||||
},
|
||||
@@ -2829,7 +2829,7 @@
|
||||
"card": {
|
||||
"cpu": "CPU",
|
||||
"memory": "Minne",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "NETT",
|
||||
"up": "OPP",
|
||||
"down": "NED"
|
||||
@@ -3595,7 +3595,7 @@
|
||||
"label": "Minecraft serverstatus"
|
||||
},
|
||||
"timetable": {
|
||||
"label": "Timeplan"
|
||||
"label": ""
|
||||
},
|
||||
"iconsUpdater": {
|
||||
"label": "Ikon oppdatering"
|
||||
@@ -3667,7 +3667,7 @@
|
||||
"label": "Vær"
|
||||
},
|
||||
"tracearr": {
|
||||
"label": "Tracearr"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"interval": {
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Oversettere",
|
||||
"subtitle": "{count} bidrar med oversettelser på mange språk"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "Sponsorer",
|
||||
"subtitle": "{count} støtter prosjektet økonomisk"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteker",
|
||||
"subtitle": "{count} brukt i koden til Homarr"
|
||||
|
||||
@@ -2080,20 +2080,20 @@
|
||||
},
|
||||
"recentActivity": {
|
||||
"title": "Ostatnia aktywność",
|
||||
"empty": "Brak ostatniej aktywności",
|
||||
"watched": "Obejrzane",
|
||||
"partial": "Częściowo"
|
||||
"empty": "",
|
||||
"watched": "",
|
||||
"partial": ""
|
||||
},
|
||||
"violations": {
|
||||
"title": "Naruszenia",
|
||||
"empty": "Brak ostatnich naruszeń",
|
||||
"rule": "Reguła",
|
||||
"user": "Użytkownik"
|
||||
"title": "",
|
||||
"empty": "",
|
||||
"rule": "",
|
||||
"user": ""
|
||||
},
|
||||
"noSectionsEnabled": "Brak włączonych sekcji",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"noIntegration": "Brak skonfigurowanej integracji Tracearr",
|
||||
"internalServerError": "Nie udało się pobrać danych z Tracearr"
|
||||
"noIntegration": "",
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
@@ -2192,50 +2192,50 @@
|
||||
}
|
||||
},
|
||||
"immich-serverStats": {
|
||||
"name": "Statystyki serwera Immich",
|
||||
"description": "Informacje o Twojej instancji Immich",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showUsers": {
|
||||
"label": "Pokaż użytkowników",
|
||||
"description": "Pokaż liczbę użytkowników w Twojej instancji"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showPhotos": {
|
||||
"label": "Pokaż zdjęcia",
|
||||
"description": "Pokaż liczbę zdjęć w Twojej instancji"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showVideos": {
|
||||
"label": "Pokaż filmy",
|
||||
"description": "Pokaż liczbę filmów w Twojej instancji"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showStorage": {
|
||||
"label": "Pokaż wykorzystanie pamięci",
|
||||
"description": "Pokaż całkowite wykorzystanie pamięci"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"users": "Użytkownicy",
|
||||
"photos": "Zdjęcia",
|
||||
"videos": "Filmy",
|
||||
"storage": "Wykorzystana przestrzeń"
|
||||
"users": "",
|
||||
"photos": "",
|
||||
"videos": "",
|
||||
"storage": ""
|
||||
},
|
||||
"immich-albumCarousel": {
|
||||
"name": "Album Immich",
|
||||
"name": "",
|
||||
"option": {
|
||||
"albumId": {
|
||||
"label": "ID albumu",
|
||||
"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”."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"rotationIntervalSeconds": {
|
||||
"label": "Interwał w sekundach",
|
||||
"description": "Zmieniaj zdjęcia w albumie co X sekund. Wartość musi wynosić co najmniej 1 i mniej niż 3600."
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showPhotoInfo": {
|
||||
"label": "Pokaż informacje o zdjęciu",
|
||||
"description": "Wyświetl datę zdjęcia oraz bieżący indeks na dole pokazu slajdów"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"description": "Pokaz slajdów zdjęć z Twojego albumu w Immich",
|
||||
"noAlbumSelected": "Nie wybrano albumu. Edytuj widget i wybierz album",
|
||||
"noPhotos": "Brak zdjęć w tym albumie"
|
||||
"description": "",
|
||||
"noAlbumSelected": "",
|
||||
"noPhotos": ""
|
||||
},
|
||||
"downloads": {
|
||||
"name": "Klient pobierania",
|
||||
@@ -2488,8 +2488,8 @@
|
||||
"title": "Ocena stanu zdrowia",
|
||||
"queued": "W kolejce",
|
||||
"status": {
|
||||
"healthy": "Dobry",
|
||||
"unhealthy": "Zły"
|
||||
"healthy": "Zdrowy",
|
||||
"unhealthy": "Niezdrowy"
|
||||
}
|
||||
},
|
||||
"panel": {
|
||||
@@ -2546,7 +2546,7 @@
|
||||
"label": "Ukryj opis"
|
||||
},
|
||||
"showPosterImage": {
|
||||
"label": "Pokaż obraz okładki"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2761,42 +2761,42 @@
|
||||
"option": {}
|
||||
},
|
||||
"speedtestTracker": {
|
||||
"name": "Speedtest Tracker",
|
||||
"description": "Wyświetla wyniki testów prędkości z Twojej instancji Speedtest Tracker",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showLatestResult": {
|
||||
"label": "Pokaż ostatni wynik"
|
||||
"label": ""
|
||||
},
|
||||
"showStats": {
|
||||
"label": "Pokaż średnie"
|
||||
"label": ""
|
||||
},
|
||||
"showRecentResults": {
|
||||
"label": "Pokaż ostatnie wyniki"
|
||||
"label": ""
|
||||
},
|
||||
"showPingGraph": {
|
||||
"label": "Pokaż wykres pingu"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"latestResult": "Najnowszy wynik",
|
||||
"averages": "Średnie",
|
||||
"tests": "{count} testów",
|
||||
"recentResults": "Ostatnie wyniki",
|
||||
"recentResultsSpeed": "Prędkość",
|
||||
"recentResultsPing": "Ping",
|
||||
"download": "Pobieranie",
|
||||
"upload": "Wysyłanie",
|
||||
"ping": "Ping",
|
||||
"status": "Status",
|
||||
"avgDownload": "Średnie pobieranie",
|
||||
"avgUpload": "Średnie wysyłanie",
|
||||
"avgPing": "Średni ping",
|
||||
"healthy": "Dobry",
|
||||
"unhealthy": "Zły",
|
||||
"ok": "Ok",
|
||||
"fail": "Błąd",
|
||||
"noSectionsEnabled": "Włącz co najmniej jedną sekcję w opcjach widgetu",
|
||||
"latestResult": "",
|
||||
"averages": "",
|
||||
"tests": "",
|
||||
"recentResults": "",
|
||||
"recentResultsSpeed": "",
|
||||
"recentResultsPing": "",
|
||||
"download": "",
|
||||
"upload": "",
|
||||
"ping": "",
|
||||
"status": "",
|
||||
"avgDownload": "",
|
||||
"avgUpload": "",
|
||||
"avgPing": "",
|
||||
"healthy": "",
|
||||
"unhealthy": "",
|
||||
"ok": "",
|
||||
"fail": "",
|
||||
"noSectionsEnabled": "",
|
||||
"error": {
|
||||
"internalServerError": "Nie udało się pobrać danych testu prędkości"
|
||||
"internalServerError": ""
|
||||
}
|
||||
},
|
||||
"systemResources": {
|
||||
@@ -2812,7 +2812,7 @@
|
||||
"option": {
|
||||
"cpu": "Procesor",
|
||||
"memory": "Pamięć",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "Sieć"
|
||||
}
|
||||
},
|
||||
@@ -2829,39 +2829,39 @@
|
||||
"card": {
|
||||
"cpu": "Procesor",
|
||||
"memory": "Pamięć",
|
||||
"gpu": "GPU",
|
||||
"gpu": "",
|
||||
"network": "Sieć",
|
||||
"up": "Aktywny",
|
||||
"down": "Nieaktywny"
|
||||
}
|
||||
},
|
||||
"systemDisks": {
|
||||
"name": "Dyski systemowe",
|
||||
"description": "Wykorzystanie dysku w Twoim systemie",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showTemperatureIfAvailable": {
|
||||
"label": "Pokaż temperaturę, jeśli jest dostępna"
|
||||
"label": ""
|
||||
},
|
||||
"displayMode": {
|
||||
"label": "Tryb wyświetlania",
|
||||
"label": "",
|
||||
"option": {
|
||||
"percentage": {
|
||||
"label": "Procentowo (np. 76%)"
|
||||
"label": ""
|
||||
},
|
||||
"absolute": {
|
||||
"label": "Wartości bezwzględne (np. 800 GB / 1 TB)"
|
||||
"label": ""
|
||||
},
|
||||
"free": {
|
||||
"label": "Procent wolnego miejsca (np. 24% wolne)"
|
||||
"label": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"showBackgroundBar": {
|
||||
"label": "Pokaż pasek wykorzystania w tle"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"unhealthy": "Zły"
|
||||
"unhealthy": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3550,10 +3550,10 @@
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"title": "Użytkownicy",
|
||||
"title": "",
|
||||
"enableGravatar": {
|
||||
"label": "Włącz Gravatar",
|
||||
"description": "Używa awatarów z Libravatar/Gravatar, gdy nie ustawiono własnego awatara i skonfigurowano adres e-mail"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"search": {
|
||||
@@ -3595,7 +3595,7 @@
|
||||
"label": "Status serwera Minecraft"
|
||||
},
|
||||
"timetable": {
|
||||
"label": "Harmonogram"
|
||||
"label": ""
|
||||
},
|
||||
"iconsUpdater": {
|
||||
"label": "Aktualizator ikon"
|
||||
@@ -3667,7 +3667,7 @@
|
||||
"label": "Pogoda"
|
||||
},
|
||||
"tracearr": {
|
||||
"label": "Tracearr"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"interval": {
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Tłumacze",
|
||||
"subtitle": "{count} współtworzy tłumaczenia w wielu językach"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteki",
|
||||
"subtitle": "{count} używanych w kodzie Homarr"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"description": "Configure o comportamento da importação"
|
||||
},
|
||||
"boardSelection": {
|
||||
"title": "{count} painéis encontrados",
|
||||
"title": "{count} Painéis encontrados",
|
||||
"description": "Escolha todos os painéis com o tamanho que você deseja importar",
|
||||
"action": {
|
||||
"selectAll": "Selecionar todos",
|
||||
@@ -36,13 +36,13 @@
|
||||
},
|
||||
"summary": {
|
||||
"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": {
|
||||
"import": "Confirmar a importação e continuar"
|
||||
},
|
||||
"entities": {
|
||||
"apps": "Aplicativos",
|
||||
"boards": "Painéis",
|
||||
"boards": "Placas",
|
||||
"integrations": "Integrações",
|
||||
"credentialUsers": "Usuários credenciados"
|
||||
}
|
||||
@@ -164,7 +164,7 @@
|
||||
},
|
||||
"action": {
|
||||
"login": {
|
||||
"label": "Login",
|
||||
"label": "“Login”",
|
||||
"labelWith": "Iniciar sessão com {provider}",
|
||||
"notification": {
|
||||
"success": {
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "Tradutores",
|
||||
"subtitle": "{count} traduções contribuídas em vários idiomas"
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "Apoiadores",
|
||||
"subtitle": "{count} apoiando o projeto financeiramente"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotecas",
|
||||
"subtitle": "{count} usadas no código do Homarr"
|
||||
|
||||
@@ -3790,10 +3790,6 @@
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"libraries": {
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
|
||||
Loaded 100 of 135 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user