Compare commits
36
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03688f7cd2 | ||
|
|
4e6272dbe2 | ||
|
|
f5bc090d36 | ||
|
|
f23e06dff1 | ||
|
|
24188ce51f | ||
|
|
e31f60fdec | ||
|
|
6bb547f3c5 | ||
|
|
b07cc14d0e | ||
|
|
0dc93c1a02 | ||
|
|
00661c9b3d | ||
|
|
2e8fddd29f | ||
|
|
302d5a0d04 | ||
|
|
a9ed95856a | ||
|
|
4d42eb65e4 | ||
|
|
82858ecd75 | ||
|
|
0e365ed53c | ||
|
|
a55dc98487 | ||
|
|
5b91687912 | ||
|
|
a3df31ff05 | ||
|
|
c5c9daf5a5 | ||
|
|
ab0e878fbf | ||
|
|
885be1b9a1 | ||
|
|
0f8a86fdde | ||
|
|
59c084bc57 | ||
|
|
f6cf262bab | ||
|
|
ba860aacaa | ||
|
|
161dafbdb8 | ||
|
|
a382c75968 | ||
|
|
6f47a05cc2 | ||
|
|
d8d5894b28 | ||
|
|
46ae756d15 | ||
|
|
8b63799f1b | ||
|
|
60a69e31ef | ||
|
|
57ef0af4a2 | ||
|
|
597b5fbc8d | ||
|
|
5412577519 |
No files matched your search
@@ -33,6 +33,7 @@ body:
|
|||||||
options:
|
options:
|
||||||
# The below comment is used to insert a new version with on-release.yml
|
# The below comment is used to insert a new version with on-release.yml
|
||||||
#NEXT_VERSION#
|
#NEXT_VERSION#
|
||||||
|
- 1.69.2
|
||||||
- 1.69.0
|
- 1.69.0
|
||||||
- 1.68.0
|
- 1.68.0
|
||||||
- 1.67.0
|
- 1.67.0
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
if: github.actor_id == 158783068 || github.actor_id == 190541745 || github.actor_id == 210161987 || github.actor_id == 175486441
|
if: github.actor_id == 158783068 || github.actor_id == 190541745 || github.actor_id == 210161987 || github.actor_id == 175486441
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
- name: Obtain token
|
- name: Obtain token
|
||||||
id: obtainToken
|
id: obtainToken
|
||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
@@ -124,7 +124,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
@@ -153,7 +153,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup
|
- name: Setup
|
||||||
@@ -163,65 +163,3 @@ jobs:
|
|||||||
run: cp .env.example .env
|
run: cp .env.example .env
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm turbo build --affected
|
run: pnpm turbo build --affected
|
||||||
|
|
||||||
memory-regression:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v4
|
|
||||||
- name: Build Docker image
|
|
||||||
uses: docker/build-push-action@v7
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
context: .
|
|
||||||
push: false
|
|
||||||
load: true
|
|
||||||
tags: homarr-memory-test
|
|
||||||
network: host
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
env:
|
|
||||||
SKIP_ENV_VALIDATION: true
|
|
||||||
- name: Start container and measure memory
|
|
||||||
run: |
|
|
||||||
docker run -d --name homarr-mem-test -p 17575:7575 homarr-memory-test
|
|
||||||
# Wait for container to be healthy (up to 60s)
|
|
||||||
healthy=false
|
|
||||||
for i in $(seq 1 30); do
|
|
||||||
if curl -sf http://localhost:17575/api/health 2>/dev/null; then
|
|
||||||
echo "Container healthy after $((i * 2))s"
|
|
||||||
healthy=true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
if [ "$healthy" != "true" ]; then
|
|
||||||
echo "ERROR: Container never became healthy"
|
|
||||||
docker logs homarr-mem-test --tail 50
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# Warm up: hit the dashboard page a few times
|
|
||||||
for i in $(seq 1 5); do
|
|
||||||
curl -sf http://localhost:17575/ > /dev/null 2>&1 || true
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
# Measure RSS after warmup
|
|
||||||
MEM_KB=$(docker stats --no-stream --format '{{.MemUsage}}' homarr-mem-test | sed 's| /.*||')
|
|
||||||
echo "Raw memory: $MEM_KB"
|
|
||||||
# Convert to numeric MB (handles GiB and MiB suffixes)
|
|
||||||
MEM_NUM=$(echo "$MEM_KB" | awk '{
|
|
||||||
if ($0 ~ /GiB/) { gsub(/GiB/,""); print $1 * 1024 }
|
|
||||||
else if ($0 ~ /MiB/) { gsub(/MiB/,""); print $1 }
|
|
||||||
else if ($0 ~ /KiB/) { gsub(/KiB/,""); print $1 / 1024 }
|
|
||||||
else { print $1 / 1048576 }
|
|
||||||
}')
|
|
||||||
echo "Memory usage: ${MEM_NUM} MB"
|
|
||||||
MAX_MB=700
|
|
||||||
if awk "BEGIN {exit !($MEM_NUM > $MAX_MB)}"; then
|
|
||||||
echo "ERROR: Memory usage ${MEM_NUM} MB exceeds ${MAX_MB} MB threshold"
|
|
||||||
docker logs homarr-mem-test --tail 50
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "Memory check passed: ${MEM_NUM} MB <= ${MAX_MB} MB"
|
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Obtain token
|
- name: Obtain token
|
||||||
id: obtainToken
|
id: obtainToken
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Upload Crowdin translations
|
- name: Upload Crowdin translations
|
||||||
uses: crowdin/github-action@v2
|
uses: crowdin/github-action@v2
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: "Beta release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
args: "Beta release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get Next Version
|
- name: Get Next Version
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
permission-contents: write # required to commit package.json & changelog changes, merge them to dev / next and publish the release
|
permission-contents: write # required to commit package.json & changelog changes, merge them to dev / next and publish the release
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
@@ -119,7 +119,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
digest: ${{ steps.build.outputs.digest }}
|
digest: ${{ steps.build.outputs.digest }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.git_ref }}
|
ref: ${{ needs.release.outputs.git_ref }}
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
digest: ${{ steps.build.outputs.digest }}
|
digest: ${{ steps.build.outputs.digest }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.git_ref }}
|
ref: ${{ needs.release.outputs.git_ref }}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get Next Version
|
- name: Get Next Version
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Validate prebuilt dependencies for amd64
|
- name: Validate prebuilt dependencies for amd64
|
||||||
id: validate-amd64
|
id: validate-amd64
|
||||||
uses: ./.github/actions/prebuilt-debian
|
uses: ./.github/actions/prebuilt-debian
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Validate prebuilt dependencies for arm64
|
- name: Validate prebuilt dependencies for arm64
|
||||||
id: validate-arm64
|
id: validate-arm64
|
||||||
uses: ./.github/actions/prebuilt-debian
|
uses: ./.github/actions/prebuilt-debian
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- run: |
|
- run: |
|
||||||
npx --yes --package renovate -- \
|
npx --yes --package renovate -- \
|
||||||
renovate-config-validator --strict .github/renovate.json5
|
renovate-config-validator --strict .github/renovate.json5
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
permission-contents: write # required to commit to branch
|
permission-contents: write # required to commit to branch
|
||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.obtainToken.outputs.token }}
|
token: ${{ steps.obtainToken.outputs.token }}
|
||||||
ref: dev
|
ref: dev
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
permission-contents: write # required to commit to branch
|
permission-contents: write # required to commit to branch
|
||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
- name: Setup
|
- name: Setup
|
||||||
|
|||||||
@@ -1,3 +1,15 @@
|
|||||||
|
## [1.69.2](https://github.com/homarr-labs/homarr/compare/v1.69.1...v1.69.2) (2026-07-06)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **layout:** raise AppShellHeader z-index above Indicator dots ([687edb9](https://github.com/homarr-labs/homarr/commit/687edb9226307cb83986097abb24fe7f672e1778)), closes [#6194](https://github.com/homarr-labs/homarr/issues/6194)
|
||||||
|
|
||||||
|
## [1.69.1](https://github.com/homarr-labs/homarr/compare/v1.69.0...v1.69.1) (2026-07-04)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* unblock query cache mutations in demo mode and add cache buster ([#6176](https://github.com/homarr-labs/homarr/issues/6176)) ([a382c75](https://github.com/homarr-labs/homarr/commit/a382c75968e73bafff55b5890b1e95f0779b50d3))
|
||||||
|
|
||||||
## [1.69.0](https://github.com/homarr-labs/homarr/compare/v1.68.1...v1.69.0) (2026-07-03)
|
## [1.69.0](https://github.com/homarr-labs/homarr/compare/v1.68.1...v1.69.0) (2026-07-03)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -39,13 +39,26 @@ import { immichServerStatsWidget } from '../../widgets/immich-server-stats';
|
|||||||
'Scroll down to "API Keys"',
|
'Scroll down to "API Keys"',
|
||||||
'Click "New API Key"',
|
'Click "New API Key"',
|
||||||
'Enter a name, e.g. "Homarr"',
|
'Enter a name, e.g. "Homarr"',
|
||||||
(<span>
|
(
|
||||||
Select the following permissions:{" "}
|
|
||||||
<code>album.read</code>,{" "}
|
<span>
|
||||||
<code>user.read</code>,{" "}
|
|
||||||
<code>server.statistics</code>,{" "}
|
Select the following permissions:{" "}
|
||||||
<code>asset.download</code>
|
<code>album.statistics</code>,{" "}
|
||||||
</span>),
|
<code>album.read</code>,{" "}
|
||||||
|
<code>album.create</code>,{" "}
|
||||||
|
<code>user.read</code>,{" "}
|
||||||
|
<code>user.update</code>,{" "}
|
||||||
|
<code>asset.read</code>,{" "}
|
||||||
|
<code>asset.download</code>,{" "}
|
||||||
|
<code>asset.statistics</code>,{" "}
|
||||||
|
<code>server.statistics</code>,{" "}
|
||||||
|
<code>server.about</code>.
|
||||||
|
<br />
|
||||||
|
Additional permissions may be required depending on your Immich version. If you encounter authorization errors, grant any missing permissions requested by the server.
|
||||||
|
</span>
|
||||||
|
|
||||||
|
),
|
||||||
'Create the integration in Homarr and copy the API key to there'
|
'Create the integration in Homarr and copy the API key to there'
|
||||||
]
|
]
|
||||||
}]} />
|
}]} />
|
||||||
@@ -71,15 +71,3 @@ API key authentication enables programmatic access for:
|
|||||||
- Third-party integrations
|
- Third-party integrations
|
||||||
- Custom dashboards and monitoring tools
|
- Custom dashboards and monitoring tools
|
||||||
- Container orchestration systems that need to sync app definitions
|
- Container orchestration systems that need to sync app definitions
|
||||||
|
|
||||||
## Board Automation
|
|
||||||
|
|
||||||
The OpenAPI and MCP APIs include board management endpoints for common automation workflows:
|
|
||||||
|
|
||||||
- Create, duplicate, rename and delete boards
|
|
||||||
- Change board visibility
|
|
||||||
- Update board visual and behavior settings
|
|
||||||
- Set desktop and mobile home boards for the current user
|
|
||||||
- Configure global board defaults such as public home boards and status behavior
|
|
||||||
|
|
||||||
Use the interactive API reference to inspect the exact request body for each endpoint under the `boards` and `settings` tags.
|
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"@scalar/api-reference-react": "catalog:",
|
"@scalar/api-reference-react": "catalog:",
|
||||||
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
|
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
|
||||||
"@tabler/icons-react": "catalog:",
|
"@tabler/icons-react": "catalog:",
|
||||||
"@tailwindcss/postcss": "^4.3.1",
|
"@tailwindcss/postcss": "^4.3.2",
|
||||||
"clsx": "catalog:",
|
"clsx": "catalog:",
|
||||||
"dayjs": "catalog:",
|
"dayjs": "catalog:",
|
||||||
"docusaurus-plugin-image-zoom": "^3.0.1",
|
"docusaurus-plugin-image-zoom": "^3.0.1",
|
||||||
@@ -43,8 +43,8 @@
|
|||||||
"random-word-slugs": "^0.1.7",
|
"random-word-slugs": "^0.1.7",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"swiper": "^12.2.0",
|
"swiper": "^14.0.1",
|
||||||
"tailwindcss": "^4.3.1"
|
"tailwindcss": "^4.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "^3.10.1",
|
"@docusaurus/module-type-aliases": "^3.10.1",
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
|
@import url("https://api.fontshare.com/v2/css?f[]=work-sans@2,1&display=swap");
|
||||||
@import "tailwindcss/theme" layer(theme);
|
@import "tailwindcss/theme" layer(theme);
|
||||||
@import "tailwindcss/utilities" layer(utilities);
|
@import "tailwindcss/utilities" layer(utilities);
|
||||||
|
|
||||||
@import url(https://api.fontshare.com/v2/css?f[]=work-sans@2,1&display=swap);
|
|
||||||
|
|
||||||
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"openapi":"3.1.0","info":{"title":"Homarr API documentation","version":"1.1.0"},"servers":[{"url":"http://localhost:3000"}],"externalDocs":{"url":"https://homarr.dev"},"paths":{"/api/apps/paginated":{"get":{"operationId":"appRouter-getPaginated","tags":["apps"],"security":[{"apikey":[]}],"parameters":[{"in":"query","name":"search","schema":{"type":"string"}},{"in":"query","name":"pageSize","schema":{"default":10,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"page","schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["items","totalCount"],"additionalProperties":false}}}},"400":{"description":"Invalid input data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.BAD_REQUEST"}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.NOT_FOUND"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}}},"/api/apps":{"get":{"operationId":"appRouter-all","tags":["apps"],"security":[{"apikey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}},"post":{"operationId":"appRouter-create","tags":["apps"],"security":[{"apikey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"iconUrl":{"type":"string","minLength":1},"href":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^(?!javascript)[a-zA-Z]*:\\/\\/"},{"type":"string","const":""}]},{"type":"null"}]},"pingUrl":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^https?:\\/\\/"},{"type":"string","const":""}]},{"type":"null"}]}},"required":["name","description","iconUrl","href","pingUrl"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"appId":{"type":"string"}},"required":["appId"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}]}}}},"400":{"description":"Invalid input data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.BAD_REQUEST"}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}}},"/api/apps/search":{"get":{"operationId":"appRouter-search","tags":["apps"],"security":[{"apikey":[]}],"parameters":[{"in":"query","name":"query","schema":{"type":"string"},"required":true},{"in":"queLine truncated
|
{"openapi":"3.1.0","info":{"title":"Homarr API documentation","version":"1.0.0"},"servers":[{"url":"http://localhost:3000"}],"externalDocs":{"url":"https://homarr.dev"},"paths":{"/api/apps/paginated":{"get":{"operationId":"appRouter-getPaginated","tags":["apps"],"security":[{"apikey":[]}],"parameters":[{"in":"query","name":"search","schema":{"type":"string"}},{"in":"query","name":"pageSize","schema":{"default":10,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"page","schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["items","totalCount"],"additionalProperties":false}}}},"400":{"description":"Invalid input data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.BAD_REQUEST"}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.NOT_FOUND"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}}},"/api/apps":{"get":{"operationId":"appRouter-all","tags":["apps"],"security":[{"apikey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}},"post":{"operationId":"appRouter-create","tags":["apps"],"security":[{"apikey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"iconUrl":{"type":"string","minLength":1},"href":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^(?!javascript)[a-zA-Z]*:\\/\\/"},{"type":"string","const":""}]},{"type":"null"}]},"pingUrl":{"anyOf":[{"anyOf":[{"type":"string","pattern":"^https?:\\/\\/"},{"type":"string","const":""}]},{"type":"null"}]}},"required":["name","description","iconUrl","href","pingUrl"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"appId":{"type":"string"}},"required":["appId"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"type":"string"},"href":{"anyOf":[{"type":"string"},{"type":"null"}]},"pingUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","description","iconUrl","href","pingUrl"],"additionalProperties":false}]}}}},"400":{"description":"Invalid input data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.BAD_REQUEST"}}}},"401":{"description":"Authorization not provided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.UNAUTHORIZED"}}}},"403":{"description":"Insufficient access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.FORBIDDEN"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error.INTERNAL_SERVER_ERROR"}}}}}}},"/api/apps/search":{"get":{"operationId":"appRouter-search","tags":["apps"],"security":[{"apikey":[]}],"parameters":[{"in":"query","name":"query","schema":{"type":"string"},"required":true},{"in":"queLine truncated
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": "@docusaurus/tsconfig",
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"ignoreDeprecations": "6.0",
|
"target": "ES2022",
|
||||||
"baseUrl": ".",
|
|
||||||
"target": "es5",
|
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
@@ -12,10 +9,14 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
|
"paths": {
|
||||||
|
"@site/*": ["./*"]
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
|
|||||||
+12
-14
@@ -5,21 +5,9 @@ import "@homarr/common/env";
|
|||||||
import "@homarr/core/infrastructure/logs/env";
|
import "@homarr/core/infrastructure/logs/env";
|
||||||
import "@homarr/docker/env";
|
import "@homarr/docker/env";
|
||||||
|
|
||||||
import { readFileSync } from "fs";
|
|
||||||
|
|
||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
import createNextIntlPlugin from "next-intl/plugin";
|
import createNextIntlPlugin from "next-intl/plugin";
|
||||||
|
|
||||||
const homarrVersion = (() => {
|
|
||||||
for (const candidate of ["../../package.json", "./package.json"]) {
|
|
||||||
try {
|
|
||||||
const pkg = JSON.parse(readFileSync(candidate, "utf-8"));
|
|
||||||
if (pkg.name === "homarr") return pkg.version as string;
|
|
||||||
} catch {}
|
|
||||||
}
|
|
||||||
return "unknown";
|
|
||||||
})();
|
|
||||||
|
|
||||||
// Package path does not work... so we need to use relative path
|
// Package path does not work... so we need to use relative path
|
||||||
const withNextIntl = createNextIntlPlugin({
|
const withNextIntl = createNextIntlPlugin({
|
||||||
requestConfig: "../../packages/translation/src/request.ts",
|
requestConfig: "../../packages/translation/src/request.ts",
|
||||||
@@ -27,7 +15,7 @@ const withNextIntl = createNextIntlPlugin({
|
|||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
env: {
|
env: {
|
||||||
HOMARR_VERSION: homarrVersion,
|
HOMARR_VERSION: process.env.HOMARR_VERSION ?? "unknown",
|
||||||
},
|
},
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
@@ -43,9 +31,19 @@ const nextConfig: NextConfig = {
|
|||||||
experimental: {
|
experimental: {
|
||||||
optimizePackageImports: ["@mantine/core", "@mantine/hooks", "@tabler/icons-react"],
|
optimizePackageImports: ["@mantine/core", "@mantine/hooks", "@tabler/icons-react"],
|
||||||
turbopackFileSystemCacheForDev: true,
|
turbopackFileSystemCacheForDev: true,
|
||||||
preloadEntriesOnStart: false,
|
|
||||||
webpackMemoryOptimizations: true,
|
webpackMemoryOptimizations: true,
|
||||||
},
|
},
|
||||||
|
turbopack: {
|
||||||
|
// ponytail: known Turbopack NFT warning from path.join(process.cwd(), …) in
|
||||||
|
// src/app/api/backup/{route,shared}.ts. No working placement in 16.2.x
|
||||||
|
// (see vercel/next.js#95125). Suppress until upstream fix lands.
|
||||||
|
ignoreIssue: [
|
||||||
|
{
|
||||||
|
path: "**/*",
|
||||||
|
title: "Encountered unexpected file in NFT list",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
||||||
images: {
|
images: {
|
||||||
localPatterns: [
|
localPatterns: [
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm with-env next build",
|
"build": "HOMARR_VERSION=$(node -p \"require('../../package.json').version\") pnpm with-env next build",
|
||||||
"clean": "git clean -xdf .next .turbo node_modules",
|
"clean": "git clean -xdf .next .turbo node_modules",
|
||||||
"dev": "pnpm with-env next dev",
|
"dev": "pnpm with-env next dev",
|
||||||
"format": "oxfmt .",
|
"format": "oxfmt .",
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import type { AppRouter } from "@homarr/api";
|
|||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import {
|
import {
|
||||||
isPersistableWidgetQueryKey,
|
isPersistableWidgetQueryKey,
|
||||||
|
queryCacheBuster,
|
||||||
queryCacheDefaultGcTimeMs,
|
queryCacheDefaultGcTimeMs,
|
||||||
queryCacheDefaultRefetchIntervalMs,
|
queryCacheDefaultRefetchIntervalMs,
|
||||||
queryCacheDefaultStaleTimeMs,
|
queryCacheDefaultStaleTimeMs,
|
||||||
@@ -136,6 +137,7 @@ export function TRPCReactProvider(props: PropsWithChildren) {
|
|||||||
client={queryClient}
|
client={queryClient}
|
||||||
persistOptions={{
|
persistOptions={{
|
||||||
persister,
|
persister,
|
||||||
|
buster: queryCacheBuster,
|
||||||
maxAge: queryCacheDefaultGcTimeMs,
|
maxAge: queryCacheDefaultGcTimeMs,
|
||||||
dehydrateOptions: {
|
dehydrateOptions: {
|
||||||
shouldDehydrateQuery: (query) =>
|
shouldDehydrateQuery: (query) =>
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import "~/styles/gridstack.scss";
|
|||||||
|
|
||||||
import { dehydrate, HydrationBoundary } from "@tanstack/react-query";
|
import { dehydrate, HydrationBoundary } from "@tanstack/react-query";
|
||||||
import type { PersistedClient } from "@tanstack/react-query-persist-client";
|
import type { PersistedClient } from "@tanstack/react-query-persist-client";
|
||||||
|
import superjson from "superjson";
|
||||||
|
import { queryCacheBuster } from "@homarr/api/query-cache";
|
||||||
import { getQueryClient } from "@homarr/api/server";
|
import { getQueryClient } from "@homarr/api/server";
|
||||||
import { IntegrationProvider } from "@homarr/auth/client";
|
import { IntegrationProvider } from "@homarr/auth/client";
|
||||||
import { auth } from "@homarr/auth/next";
|
import { auth } from "@homarr/auth/next";
|
||||||
@@ -121,7 +123,8 @@ async function QueryCacheHydration({ userId, boardId }: { userId: string; boardI
|
|||||||
const serialized = await getQueryCacheAsync(userId, boardId);
|
const serialized = await getQueryCacheAsync(userId, boardId);
|
||||||
if (!serialized) return null;
|
if (!serialized) return null;
|
||||||
|
|
||||||
const persisted = JSON.parse(serialized) as PersistedClient;
|
const persisted = superjson.parse<PersistedClient>(serialized);
|
||||||
|
if (persisted.buster !== queryCacheBuster) return null;
|
||||||
if (!persisted?.clientState?.queries?.length) return null;
|
if (!persisted?.clientState?.queries?.length) return null;
|
||||||
|
|
||||||
return <HydrationBoundary state={persisted.clientState} />;
|
return <HydrationBoundary state={persisted.clientState} />;
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ export const WidgetPreviewPageContent = ({ kind, integrationData }: WidgetPrevie
|
|||||||
const currentDefinition = useMemo(() => widgetImports[kind].definition, [kind]);
|
const currentDefinition = useMemo(() => widgetImports[kind].definition, [kind]);
|
||||||
const [editMode, setEditMode] = useState(false);
|
const [editMode, setEditMode] = useState(false);
|
||||||
const [dimensions, setDimensions] = useState<Dimensions>({
|
const [dimensions, setDimensions] = useState<Dimensions>({
|
||||||
width: 128,
|
width: 960,
|
||||||
height: 128,
|
height: 640,
|
||||||
});
|
});
|
||||||
const [state, setState] = useState<{
|
const [state, setState] = useState<{
|
||||||
options: Record<string, unknown>;
|
options: Record<string, unknown>;
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
const migrationsFolderCandidates = [
|
export const findMigrationsFolder = () => {
|
||||||
path.join(process.cwd(), "db/migrations/sqlite"),
|
const cwd = process.cwd();
|
||||||
path.join(process.cwd(), "packages/db/migrations/sqlite"),
|
const migrationsFolderCandidates = [
|
||||||
path.resolve(process.cwd(), "../../db/migrations/sqlite"),
|
path.join(cwd, "db/migrations/sqlite"),
|
||||||
"/app/db/migrations/sqlite",
|
path.join(cwd, "packages/db/migrations/sqlite"),
|
||||||
];
|
path.resolve(cwd, "../../db/migrations/sqlite"),
|
||||||
|
"/app/db/migrations/sqlite",
|
||||||
export const findMigrationsFolder = () => migrationsFolderCandidates.find((candidate) => fs.existsSync(candidate));
|
];
|
||||||
|
return migrationsFolderCandidates.find((candidate) => fs.existsSync(candidate));
|
||||||
|
};
|
||||||
@@ -18,7 +18,7 @@ interface Props {
|
|||||||
|
|
||||||
export const MainHeader = ({ logo, actions, hasNavigation = true }: Props) => {
|
export const MainHeader = ({ logo, actions, hasNavigation = true }: Props) => {
|
||||||
return (
|
return (
|
||||||
<AppShellHeader maw="100vw" style={{ overflowX: "hidden" }}>
|
<AppShellHeader maw="100vw" zIndex={201} style={{ overflowX: "hidden" }}>
|
||||||
<Group h="100%" gap="xl" px="md" justify="apart" wrap="nowrap">
|
<Group h="100%" gap="xl" px="md" justify="apart" wrap="nowrap">
|
||||||
<Group h="100%" align="center" style={{ flex: 1 }} wrap="nowrap">
|
<Group h="100%" align="center" style={{ flex: 1 }} wrap="nowrap">
|
||||||
{hasNavigation && <ClientBurger />}
|
{hasNavigation && <ClientBurger />}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "homarr-prebuilt-debian",
|
"name": "homarr-prebuilt-debian",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^12.10.0"
|
"better-sqlite3": "^12.11.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.18.0",
|
"node": ">=24.18.0",
|
||||||
|
|||||||
+5
-5
@@ -9,16 +9,16 @@ importers:
|
|||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: ^12.10.0
|
specifier: ^12.11.1
|
||||||
version: 12.10.0
|
version: 12.11.1
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
base64-js@1.5.1:
|
base64-js@1.5.1:
|
||||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||||
|
|
||||||
better-sqlite3@12.10.0:
|
better-sqlite3@12.11.1:
|
||||||
resolution: {integrity: sha512-CyzaZRQKyHkB2ZInfTTl2nvT33EbDpjkLEbE8/Zck3Ll6O0qqvuGdrJ45HgtH+HykRg88ITY3AdreBGN70aBSQ==}
|
resolution: {integrity: sha512-dq9AtApgg5PGFtBzPFSBl3HZQjHok5gaQCM6zh2Yk0aSmDCs1CbnVI8/HgASQkNKsWFpseIO9beg5xxpYhbIfA==}
|
||||||
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x || 26.x}
|
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x || 26.x}
|
||||||
|
|
||||||
bindings@1.5.0:
|
bindings@1.5.0:
|
||||||
@@ -148,7 +148,7 @@ snapshots:
|
|||||||
|
|
||||||
base64-js@1.5.1: {}
|
base64-js@1.5.1: {}
|
||||||
|
|
||||||
better-sqlite3@12.10.0:
|
better-sqlite3@12.11.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
bindings: 1.5.0
|
bindings: 1.5.0
|
||||||
prebuild-install: 7.1.3
|
prebuild-install: 7.1.3
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "1.69.0",
|
"version": "1.69.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env CI=true turbo build",
|
"build": "cross-env CI=true turbo build",
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
"@semantic-release/release-notes-generator": "catalog:",
|
"@semantic-release/release-notes-generator": "catalog:",
|
||||||
"@testcontainers/redis": "catalog:",
|
"@testcontainers/redis": "catalog:",
|
||||||
"@turbo/gen": "catalog:",
|
"@turbo/gen": "catalog:",
|
||||||
|
|
||||||
"@vitejs/plugin-react": "catalog:",
|
"@vitejs/plugin-react": "catalog:",
|
||||||
"@vitest/coverage-v8": "catalog:",
|
"@vitest/coverage-v8": "catalog:",
|
||||||
"@vitest/ui": "catalog:",
|
"@vitest/ui": "catalog:",
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { iconsRouter } from "./router/icons";
|
|||||||
import { infoRouter } from "./router/info";
|
import { infoRouter } from "./router/info";
|
||||||
import { integrationRouter } from "./router/integration/integration-router";
|
import { integrationRouter } from "./router/integration/integration-router";
|
||||||
import { inviteRouter } from "./router/invite";
|
import { inviteRouter } from "./router/invite";
|
||||||
import { serverSettingsRouter } from "./router/serverSettings";
|
|
||||||
import { beszelRouter } from "./router/widgets/beszel";
|
import { beszelRouter } from "./router/widgets/beszel";
|
||||||
import { calendarRouter } from "./router/widgets/calendar";
|
import { calendarRouter } from "./router/widgets/calendar";
|
||||||
import { dnsHoleRouter } from "./router/widgets/dns-hole";
|
import { dnsHoleRouter } from "./router/widgets/dns-hole";
|
||||||
@@ -29,7 +28,6 @@ export const mcpRouter = createTRPCRouter({
|
|||||||
info: infoRouter,
|
info: infoRouter,
|
||||||
integration: integrationRouter,
|
integration: integrationRouter,
|
||||||
invite: inviteRouter,
|
invite: inviteRouter,
|
||||||
serverSettings: serverSettingsRouter,
|
|
||||||
beszel: beszelRouter,
|
beszel: beszelRouter,
|
||||||
calendar: calendarRouter,
|
calendar: calendarRouter,
|
||||||
dnsHole: dnsHoleRouter,
|
dnsHole: dnsHoleRouter,
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { appRouter } from "./router/app";
|
|||||||
import { boardRouter } from "./router/board";
|
import { boardRouter } from "./router/board";
|
||||||
import { infoRouter } from "./router/info";
|
import { infoRouter } from "./router/info";
|
||||||
import { inviteRouter } from "./router/invite";
|
import { inviteRouter } from "./router/invite";
|
||||||
import { serverSettingsRouter } from "./router/serverSettings";
|
|
||||||
import { userRouter } from "./router/user";
|
import { userRouter } from "./router/user";
|
||||||
import { createTRPCRouter } from "./trpc";
|
import { createTRPCRouter } from "./trpc";
|
||||||
|
|
||||||
@@ -15,14 +14,13 @@ export const openApiRouter = createTRPCRouter({
|
|||||||
boardRouter,
|
boardRouter,
|
||||||
infoRouter,
|
infoRouter,
|
||||||
inviteRouter,
|
inviteRouter,
|
||||||
serverSettingsRouter,
|
|
||||||
userRouter,
|
userRouter,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const openApiDocument = (base: string) =>
|
export const openApiDocument = (base: string) =>
|
||||||
generateOpenApiDocument(openApiRouter, {
|
generateOpenApiDocument(openApiRouter, {
|
||||||
title: "Homarr API documentation",
|
title: "Homarr API documentation",
|
||||||
version: "1.1.0",
|
version: "1.0.0",
|
||||||
baseUrl: base,
|
baseUrl: base,
|
||||||
docsUrl: "https://homarr.dev",
|
docsUrl: "https://homarr.dev",
|
||||||
securitySchemes: {
|
securitySchemes: {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export const queryCacheDefaultRefetchIntervalMs = 30_000;
|
|||||||
export const queryCacheDefaultGcTimeMs = 1000 * 60 * 60 * 24;
|
export const queryCacheDefaultGcTimeMs = 1000 * 60 * 60 * 24;
|
||||||
export const queryCacheMaxValueBytes = 1024 * 1024;
|
export const queryCacheMaxValueBytes = 1024 * 1024;
|
||||||
export const queryCacheStoragePrefix = "homarr-widget-query";
|
export const queryCacheStoragePrefix = "homarr-widget-query";
|
||||||
|
export const queryCacheBuster = "v2-superjson";
|
||||||
|
|
||||||
let activeQueryCacheBoardId: string | null = null;
|
let activeQueryCacheBoardId: string | null = null;
|
||||||
|
|
||||||
|
|||||||
@@ -330,16 +330,7 @@ export const boardRouter = createTRPCRouter({
|
|||||||
}),
|
}),
|
||||||
duplicateBoard: permissionRequiredProcedure
|
duplicateBoard: permissionRequiredProcedure
|
||||||
.requiresPermission("board-create")
|
.requiresPermission("board-create")
|
||||||
.meta({
|
|
||||||
openapi: { method: "POST", path: "/api/boards/{id}/duplicate", tags: ["boards"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Duplicate an existing board into a new board. Requires board-create permission and view permission on the source board. REQUIRED: id (source board ID), name (unique name for the new board). Returns { boardId }",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(boardDuplicateSchema)
|
.input(boardDuplicateSchema)
|
||||||
.output(z.object({ boardId: z.string() }))
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
.mutation(async ({ ctx, input }) => {
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
||||||
await noBoardWithSimilarNameAsync(ctx.db, input.name);
|
await noBoardWithSimilarNameAsync(ctx.db, input.name);
|
||||||
@@ -553,57 +544,33 @@ export const boardRouter = createTRPCRouter({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return { boardId: newBoardId };
|
|
||||||
}),
|
}),
|
||||||
renameBoard: protectedProcedure
|
renameBoard: protectedProcedure.input(boardRenameSchema).mutation(async ({ ctx, input }) => {
|
||||||
.meta({
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "full");
|
||||||
openapi: { method: "PATCH", path: "/api/boards/{id}/name", tags: ["boards"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Rename a board by ID. Requires full permission on the board. REQUIRED: id (board ID), name (new unique board name)",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(boardRenameSchema)
|
|
||||||
.output(z.void())
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "full");
|
|
||||||
|
|
||||||
await noBoardWithSimilarNameAsync(ctx.db, input.name, [input.id]);
|
await noBoardWithSimilarNameAsync(ctx.db, input.name, [input.id]);
|
||||||
|
|
||||||
await ctx.db.update(boards).set({ name: input.name }).where(eq(boards.id, input.id));
|
await ctx.db.update(boards).set({ name: input.name }).where(eq(boards.id, input.id));
|
||||||
}),
|
}),
|
||||||
changeBoardVisibility: protectedProcedure
|
changeBoardVisibility: protectedProcedure.input(boardChangeVisibilitySchema).mutation(async ({ ctx, input }) => {
|
||||||
.meta({
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "full");
|
||||||
openapi: { method: "PATCH", path: "/api/boards/{id}/visibility", tags: ["boards"], protect: true },
|
const boardSettings = await getServerSettingByKeyAsync(ctx.db, "board");
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Change board visibility. Requires full permission on the board. REQUIRED: id (board ID), visibility ('public' or 'private'). Home boards cannot be made private",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(boardChangeVisibilitySchema)
|
|
||||||
.output(z.void())
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "full");
|
|
||||||
const boardSettings = await getServerSettingByKeyAsync(ctx.db, "board");
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
input.visibility !== "public" &&
|
input.visibility !== "public" &&
|
||||||
(boardSettings.homeBoardId === input.id || boardSettings.mobileHomeBoardId === input.id)
|
(boardSettings.homeBoardId === input.id || boardSettings.mobileHomeBoardId === input.id)
|
||||||
) {
|
) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
code: "BAD_REQUEST",
|
code: "BAD_REQUEST",
|
||||||
message: "Cannot make home board private",
|
message: "Cannot make home board private",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await ctx.db
|
await ctx.db
|
||||||
.update(boards)
|
.update(boards)
|
||||||
.set({ isPublic: input.visibility === "public" })
|
.set({ isPublic: input.visibility === "public" })
|
||||||
.where(eq(boards.id, input.id));
|
.where(eq(boards.id, input.id));
|
||||||
}),
|
}),
|
||||||
deleteBoard: protectedProcedure
|
deleteBoard: protectedProcedure
|
||||||
.meta({
|
.meta({
|
||||||
openapi: { method: "DELETE", path: "/api/boards/{id}", tags: ["boards"], protect: true },
|
openapi: { method: "DELETE", path: "/api/boards/{id}", tags: ["boards"], protect: true },
|
||||||
@@ -620,38 +587,16 @@ export const boardRouter = createTRPCRouter({
|
|||||||
|
|
||||||
await ctx.db.delete(boards).where(eq(boards.id, input.id));
|
await ctx.db.delete(boards).where(eq(boards.id, input.id));
|
||||||
}),
|
}),
|
||||||
setHomeBoard: protectedProcedure
|
setHomeBoard: protectedProcedure.input(z.object({ id: z.string() })).mutation(async ({ ctx, input }) => {
|
||||||
.meta({
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
||||||
openapi: { method: "PATCH", path: "/api/boards/{id}/home", tags: ["boards"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Set the current user's desktop home board. Requires view permission on the board. REQUIRED: id (board ID)",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(z.object({ id: z.string() }))
|
|
||||||
.output(z.void())
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
|
||||||
|
|
||||||
await ctx.db.update(users).set({ homeBoardId: input.id }).where(eq(users.id, ctx.session.user.id));
|
await ctx.db.update(users).set({ homeBoardId: input.id }).where(eq(users.id, ctx.session.user.id));
|
||||||
}),
|
}),
|
||||||
setMobileHomeBoard: protectedProcedure
|
setMobileHomeBoard: protectedProcedure.input(z.object({ id: z.string() })).mutation(async ({ ctx, input }) => {
|
||||||
.meta({
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
||||||
openapi: { method: "PATCH", path: "/api/boards/{id}/mobile-home", tags: ["boards"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Set the current user's mobile home board. Requires view permission on the board. REQUIRED: id (board ID)",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(z.object({ id: z.string() }))
|
|
||||||
.output(z.void())
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "view");
|
|
||||||
|
|
||||||
await ctx.db.update(users).set({ mobileHomeBoardId: input.id }).where(eq(users.id, ctx.session.user.id));
|
await ctx.db.update(users).set({ mobileHomeBoardId: input.id }).where(eq(users.id, ctx.session.user.id));
|
||||||
}),
|
}),
|
||||||
getHomeBoard: publicProcedure.query(async ({ ctx }) => {
|
getHomeBoard: publicProcedure.query(async ({ ctx }) => {
|
||||||
const userId = ctx.session?.user.id;
|
const userId = ctx.session?.user.id;
|
||||||
const user = userId
|
const user = userId
|
||||||
@@ -807,16 +752,7 @@ export const boardRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
savePartialBoardSettings: protectedProcedure
|
savePartialBoardSettings: protectedProcedure
|
||||||
.meta({
|
.input(boardSavePartialSettingsSchema.and(z.object({ id: z.string() })))
|
||||||
openapi: { method: "PATCH", path: "/api/boards/{id}/settings", tags: ["boards"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Update visual and behavior settings for a board. Requires modify permission. REQUIRED: id (board ID). Optional fields include pageTitle, metaTitle, logoImageUrl, faviconImageUrl, backgroundImageUrl, colors, opacity, customCss, itemRadius, and disableStatus",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(boardSavePartialSettingsSchema.extend({ id: z.string() }))
|
|
||||||
.output(z.void())
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
.mutation(async ({ ctx, input }) => {
|
||||||
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "modify");
|
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "modify");
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { boards } from "@homarr/db/schema";
|
|||||||
import { removeQueryCacheAsync, setQueryCacheAsync } from "@homarr/redis";
|
import { removeQueryCacheAsync, setQueryCacheAsync } from "@homarr/redis";
|
||||||
|
|
||||||
import { queryCacheDefaultGcTimeMs, queryCacheMaxValueBytes } from "../query-cache";
|
import { queryCacheDefaultGcTimeMs, queryCacheMaxValueBytes } from "../query-cache";
|
||||||
import { createTRPCRouter, publicProcedure } from "../trpc";
|
import { createTRPCRouter, internalProcedure } from "../trpc";
|
||||||
import { throwIfActionForbiddenAsync } from "./board/board-access";
|
import { throwIfActionForbiddenAsync } from "./board/board-access";
|
||||||
|
|
||||||
const queryCacheBoardInput = z.object({
|
const queryCacheBoardInput = z.object({
|
||||||
@@ -21,7 +21,7 @@ const validateBoardAccessAsync = async (ctx: Parameters<typeof throwIfActionForb
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const queryCacheRouter = createTRPCRouter({
|
export const queryCacheRouter = createTRPCRouter({
|
||||||
setItem: publicProcedure.input(queryCacheSetInput).mutation(async ({ ctx, input }) => {
|
setItem: internalProcedure.input(queryCacheSetInput).mutation(async ({ ctx, input }) => {
|
||||||
await validateBoardAccessAsync(ctx, input.boardId);
|
await validateBoardAccessAsync(ctx, input.boardId);
|
||||||
const userId = ctx.session?.user.id ?? "anonymous";
|
const userId = ctx.session?.user.id ?? "anonymous";
|
||||||
return {
|
return {
|
||||||
@@ -34,7 +34,7 @@ export const queryCacheRouter = createTRPCRouter({
|
|||||||
),
|
),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
removeItem: publicProcedure.input(queryCacheBoardInput).mutation(async ({ ctx, input }) => {
|
removeItem: internalProcedure.input(queryCacheBoardInput).mutation(async ({ ctx, input }) => {
|
||||||
await validateBoardAccessAsync(ctx, input.boardId);
|
await validateBoardAccessAsync(ctx, input.boardId);
|
||||||
const userId = ctx.session?.user.id ?? "anonymous";
|
const userId = ctx.session?.user.id ?? "anonymous";
|
||||||
await removeQueryCacheAsync(userId, input.boardId);
|
await removeQueryCacheAsync(userId, input.boardId);
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
|
||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
import { and, eq, inArray } from "@homarr/db";
|
import { getServerSettingByKeyAsync, getServerSettingsAsync, updateServerSettingByKeyAsync } from "@homarr/db/queries";
|
||||||
import {
|
|
||||||
getServerSettingByKeyAsync,
|
|
||||||
getServerSettingsAsync,
|
|
||||||
insertServerSettingByKeyAsync,
|
|
||||||
updateServerSettingByKeyAsync,
|
|
||||||
} from "@homarr/db/queries";
|
|
||||||
import { boards, serverSettings } from "@homarr/db/schema";
|
|
||||||
import type { ServerSettings } from "@homarr/server-settings";
|
import type { ServerSettings } from "@homarr/server-settings";
|
||||||
import { defaultServerSettingsKeys } from "@homarr/server-settings";
|
import { defaultServerSettingsKeys } from "@homarr/server-settings";
|
||||||
import { settingsInitSchema } from "@homarr/validation/settings";
|
import { settingsInitSchema } from "@homarr/validation/settings";
|
||||||
@@ -16,15 +8,6 @@ import { settingsInitSchema } from "@homarr/validation/settings";
|
|||||||
import { createTRPCRouter, onboardingProcedure, permissionRequiredProcedure, publicProcedure } from "../trpc";
|
import { createTRPCRouter, onboardingProcedure, permissionRequiredProcedure, publicProcedure } from "../trpc";
|
||||||
import { nextOnboardingStepAsync } from "./onboard/onboard-queries";
|
import { nextOnboardingStepAsync } from "./onboard/onboard-queries";
|
||||||
|
|
||||||
const boardServerSettingsSchema = z.object({
|
|
||||||
homeBoardId: z.string().nullable(),
|
|
||||||
mobileHomeBoardId: z.string().nullable(),
|
|
||||||
enableStatusByDefault: z.boolean(),
|
|
||||||
forceDisableStatus: z.boolean(),
|
|
||||||
}) satisfies z.ZodType<ServerSettings["board"]>;
|
|
||||||
|
|
||||||
const boardServerSettingsUpdateSchema = boardServerSettingsSchema.partial();
|
|
||||||
|
|
||||||
export const serverSettingsRouter = createTRPCRouter({
|
export const serverSettingsRouter = createTRPCRouter({
|
||||||
getCulture: publicProcedure.query(async ({ ctx }) => {
|
getCulture: publicProcedure.query(async ({ ctx }) => {
|
||||||
return await getServerSettingByKeyAsync(ctx.db, "culture");
|
return await getServerSettingByKeyAsync(ctx.db, "culture");
|
||||||
@@ -32,67 +15,6 @@ export const serverSettingsRouter = createTRPCRouter({
|
|||||||
getAll: permissionRequiredProcedure.requiresPermission("admin").query(async ({ ctx }) => {
|
getAll: permissionRequiredProcedure.requiresPermission("admin").query(async ({ ctx }) => {
|
||||||
return await getServerSettingsAsync(ctx.db);
|
return await getServerSettingsAsync(ctx.db);
|
||||||
}),
|
}),
|
||||||
getBoardSettings: permissionRequiredProcedure
|
|
||||||
.requiresPermission("admin")
|
|
||||||
.meta({
|
|
||||||
openapi: { method: "GET", path: "/api/settings/board", tags: ["settings"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Get global board defaults, including desktop/mobile home board IDs and status behavior. Requires admin permission",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(z.void())
|
|
||||||
.output(boardServerSettingsSchema)
|
|
||||||
.query(async ({ ctx }) => {
|
|
||||||
return await getServerSettingByKeyAsync(ctx.db, "board");
|
|
||||||
}),
|
|
||||||
updateBoardSettings: permissionRequiredProcedure
|
|
||||||
.requiresPermission("admin")
|
|
||||||
.meta({
|
|
||||||
openapi: { method: "PATCH", path: "/api/settings/board", tags: ["settings"], protect: true },
|
|
||||||
mcp: {
|
|
||||||
enabled: true,
|
|
||||||
description:
|
|
||||||
"Update global board defaults. Requires admin permission. Optional fields: homeBoardId, mobileHomeBoardId, enableStatusByDefault, forceDisableStatus. Home board IDs must reference public boards or be null",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.input(boardServerSettingsUpdateSchema)
|
|
||||||
.output(boardServerSettingsSchema)
|
|
||||||
.mutation(async ({ ctx, input }) => {
|
|
||||||
const inputBoardIds = [input.homeBoardId, input.mobileHomeBoardId].filter(
|
|
||||||
(id) => id !== undefined && id !== null,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (inputBoardIds.length > 0) {
|
|
||||||
const publicBoards = await ctx.db.query.boards.findMany({
|
|
||||||
columns: { id: true },
|
|
||||||
where: and(inArray(boards.id, inputBoardIds), eq(boards.isPublic, true)),
|
|
||||||
});
|
|
||||||
const publicBoardIds = new Set(publicBoards.map((board) => board.id));
|
|
||||||
const invalidBoardIds = inputBoardIds.filter((id) => !publicBoardIds.has(id));
|
|
||||||
if (invalidBoardIds.length > 0) {
|
|
||||||
throw new TRPCError({
|
|
||||||
code: "BAD_REQUEST",
|
|
||||||
message: `Board settings home board IDs must reference public boards: ${invalidBoardIds.join(", ")}`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const current = await getServerSettingByKeyAsync(ctx.db, "board");
|
|
||||||
const next = { ...current, ...input };
|
|
||||||
const existing = await ctx.db.query.serverSettings.findFirst({
|
|
||||||
where: eq(serverSettings.settingKey, "board"),
|
|
||||||
});
|
|
||||||
|
|
||||||
if (existing) {
|
|
||||||
await updateServerSettingByKeyAsync(ctx.db, "board", next);
|
|
||||||
} else {
|
|
||||||
await insertServerSettingByKeyAsync(ctx.db, "board", next);
|
|
||||||
}
|
|
||||||
|
|
||||||
return next;
|
|
||||||
}),
|
|
||||||
saveSettings: permissionRequiredProcedure
|
saveSettings: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(
|
.input(
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { stringify } from "superjson";
|
import SuperJSON from "superjson";
|
||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
import { createId } from "@homarr/common";
|
import { createId } from "@homarr/common";
|
||||||
import { boards, serverSettings } from "@homarr/db/schema";
|
import { serverSettings } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ describe("getAll server settings", () => {
|
|||||||
await db.insert(serverSettings).values([
|
await db.insert(serverSettings).values([
|
||||||
{
|
{
|
||||||
settingKey: defaultServerSettingsKeys[0],
|
settingKey: defaultServerSettingsKeys[0],
|
||||||
value: stringify(defaultServerSettings.analytics),
|
value: SuperJSON.stringify(defaultServerSettings.analytics),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ describe("saveSettings", () => {
|
|||||||
await db.insert(serverSettings).values([
|
await db.insert(serverSettings).values([
|
||||||
{
|
{
|
||||||
settingKey: defaultServerSettingsKeys[0],
|
settingKey: defaultServerSettingsKeys[0],
|
||||||
value: stringify(defaultServerSettings.analytics),
|
value: SuperJSON.stringify(defaultServerSettings.analytics),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ describe("saveSettings", () => {
|
|||||||
expect(dbSettings).toStrictEqual([
|
expect(dbSettings).toStrictEqual([
|
||||||
{
|
{
|
||||||
settingKey: "analytics",
|
settingKey: "analytics",
|
||||||
value: stringify({
|
value: SuperJSON.stringify({
|
||||||
enableGeneral: true,
|
enableGeneral: true,
|
||||||
instanceId: null,
|
instanceId: null,
|
||||||
}),
|
}),
|
||||||
@@ -90,91 +90,3 @@ describe("saveSettings", () => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("board settings API", () => {
|
|
||||||
test("getBoardSettings should return board defaults", async () => {
|
|
||||||
const db = createDb();
|
|
||||||
const caller = serverSettingsRouter.createCaller({
|
|
||||||
db,
|
|
||||||
deviceType: undefined,
|
|
||||||
session: defaultSession,
|
|
||||||
});
|
|
||||||
|
|
||||||
await expect(caller.getBoardSettings()).resolves.toStrictEqual(defaultServerSettings.board);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("updateBoardSettings should insert settings when defaults are not persisted", async () => {
|
|
||||||
const db = createDb();
|
|
||||||
const caller = serverSettingsRouter.createCaller({
|
|
||||||
db,
|
|
||||||
deviceType: undefined,
|
|
||||||
session: defaultSession,
|
|
||||||
});
|
|
||||||
const boardId = createId();
|
|
||||||
await db.insert(boards).values({ id: boardId, name: "default", isPublic: true });
|
|
||||||
|
|
||||||
const result = await caller.updateBoardSettings({
|
|
||||||
homeBoardId: boardId,
|
|
||||||
forceDisableStatus: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(result).toStrictEqual({
|
|
||||||
...defaultServerSettings.board,
|
|
||||||
homeBoardId: boardId,
|
|
||||||
forceDisableStatus: true,
|
|
||||||
});
|
|
||||||
const dbSettings = await db.select().from(serverSettings);
|
|
||||||
expect(dbSettings).toStrictEqual([
|
|
||||||
{
|
|
||||||
settingKey: "board",
|
|
||||||
value: stringify(result),
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("updateBoardSettings should update existing settings", async () => {
|
|
||||||
const db = createDb();
|
|
||||||
const caller = serverSettingsRouter.createCaller({
|
|
||||||
db,
|
|
||||||
deviceType: undefined,
|
|
||||||
session: defaultSession,
|
|
||||||
});
|
|
||||||
const boardId = createId();
|
|
||||||
await db.insert(boards).values({ id: boardId, name: "default", isPublic: true });
|
|
||||||
|
|
||||||
await caller.updateBoardSettings({ homeBoardId: boardId });
|
|
||||||
const result = await caller.updateBoardSettings({
|
|
||||||
mobileHomeBoardId: boardId,
|
|
||||||
enableStatusByDefault: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(result).toStrictEqual({
|
|
||||||
...defaultServerSettings.board,
|
|
||||||
homeBoardId: boardId,
|
|
||||||
mobileHomeBoardId: boardId,
|
|
||||||
enableStatusByDefault: false,
|
|
||||||
});
|
|
||||||
const dbSettings = await db.select().from(serverSettings);
|
|
||||||
expect(dbSettings).toStrictEqual([
|
|
||||||
{
|
|
||||||
settingKey: "board",
|
|
||||||
value: stringify(result),
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("updateBoardSettings should reject private home boards", async () => {
|
|
||||||
const db = createDb();
|
|
||||||
const caller = serverSettingsRouter.createCaller({
|
|
||||||
db,
|
|
||||||
deviceType: undefined,
|
|
||||||
session: defaultSession,
|
|
||||||
});
|
|
||||||
const boardId = createId();
|
|
||||||
await db.insert(boards).values({ id: boardId, name: "private", isPublic: false });
|
|
||||||
|
|
||||||
const actAsync = async () => await caller.updateBoardSettings({ homeBoardId: boardId });
|
|
||||||
|
|
||||||
await expect(actAsync()).rejects.toThrow("must reference public boards");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -2,20 +2,16 @@ import { expect, test, vi } from "vitest";
|
|||||||
import { extractToolsFromProcedures } from "trpc-to-mcp";
|
import { extractToolsFromProcedures } from "trpc-to-mcp";
|
||||||
|
|
||||||
import { appRouter } from "../router/app";
|
import { appRouter } from "../router/app";
|
||||||
import { boardRouter } from "../router/board";
|
|
||||||
import { infoRouter } from "../router/info";
|
import { infoRouter } from "../router/info";
|
||||||
import { inviteRouter } from "../router/invite";
|
import { inviteRouter } from "../router/invite";
|
||||||
import { serverSettingsRouter } from "../router/serverSettings";
|
|
||||||
import { createTRPCRouter } from "../trpc";
|
import { createTRPCRouter } from "../trpc";
|
||||||
|
|
||||||
vi.mock("@homarr/auth", () => ({}));
|
vi.mock("@homarr/auth", () => ({}));
|
||||||
|
|
||||||
const mcpTestRouter = createTRPCRouter({
|
const mcpTestRouter = createTRPCRouter({
|
||||||
app: appRouter,
|
app: appRouter,
|
||||||
board: boardRouter,
|
|
||||||
info: infoRouter,
|
info: infoRouter,
|
||||||
invite: inviteRouter,
|
invite: inviteRouter,
|
||||||
serverSettings: serverSettingsRouter,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("MCP tools should be extractable from the router", () => {
|
test("MCP tools should be extractable from the router", () => {
|
||||||
@@ -32,12 +28,8 @@ test("MCP tools should contain expected procedures", () => {
|
|||||||
expect(toolNames).toContain("app_all");
|
expect(toolNames).toContain("app_all");
|
||||||
expect(toolNames).toContain("app_byId");
|
expect(toolNames).toContain("app_byId");
|
||||||
expect(toolNames).toContain("app_create");
|
expect(toolNames).toContain("app_create");
|
||||||
expect(toolNames).toContain("board_savePartialBoardSettings");
|
|
||||||
expect(toolNames).toContain("board_duplicateBoard");
|
|
||||||
expect(toolNames).toContain("info_getInfo");
|
expect(toolNames).toContain("info_getInfo");
|
||||||
expect(toolNames).toContain("invite_getAll");
|
expect(toolNames).toContain("invite_getAll");
|
||||||
expect(toolNames).toContain("serverSettings_getBoardSettings");
|
|
||||||
expect(toolNames).toContain("serverSettings_updateBoardSettings");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("MCP tools should have descriptions", () => {
|
test("MCP tools should have descriptions", () => {
|
||||||
|
|||||||
@@ -14,12 +14,3 @@ test("OpenAPI documentation should be generated", () => {
|
|||||||
// Assert
|
// Assert
|
||||||
expect(act).not.toThrow();
|
expect(act).not.toThrow();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("OpenAPI documentation should expose board automation endpoints", () => {
|
|
||||||
const document = openApiDocument("https://homarr.dev");
|
|
||||||
|
|
||||||
expect(document.info.version).toBe("1.1.0");
|
|
||||||
expect(document.paths).toHaveProperty("/api/boards/{id}/settings");
|
|
||||||
expect(document.paths).toHaveProperty("/api/boards/{id}/duplicate");
|
|
||||||
expect(document.paths).toHaveProperty("/api/settings/board");
|
|
||||||
});
|
|
||||||
@@ -116,6 +116,8 @@ const baseProcedure = env.DEMO_MODE ? t.procedure.use(enforceDemoModeReadOnly) :
|
|||||||
*/
|
*/
|
||||||
export const publicProcedure = baseProcedure;
|
export const publicProcedure = baseProcedure;
|
||||||
|
|
||||||
|
export const internalProcedure = t.procedure;
|
||||||
|
|
||||||
const enforceUserIsAuthed = t.middleware(({ ctx, next }) => {
|
const enforceUserIsAuthed = t.middleware(({ ctx, next }) => {
|
||||||
if (!ctx.session?.user) {
|
if (!ctx.session?.user) {
|
||||||
throw new TRPCError({ code: "UNAUTHORIZED" });
|
throw new TRPCError({ code: "UNAUTHORIZED" });
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ export function parseCookies(cookieString: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function setClientCookie(name: string, value: string, options: SerializeOptions = {}) {
|
export function setClientCookie(name: string, value: string, options: SerializeOptions = {}) {
|
||||||
document.cookie = stringifySetCookie(name, value, options);
|
document.cookie = stringifySetCookie({ name, value, ...options });
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ export class AxiosHttpErrorHandler extends HttpErrorHandler {
|
|||||||
|
|
||||||
return new RequestError(requestErrorInput, {
|
return new RequestError(requestErrorInput, {
|
||||||
cause: error,
|
cause: error,
|
||||||
});
|
}) as AnyRequestError;
|
||||||
}
|
}
|
||||||
handleResponseError(error: unknown): ResponseError | undefined {
|
handleResponseError(error: unknown): ResponseError | undefined {
|
||||||
if (!(error instanceof AxiosError)) return undefined;
|
if (!(error instanceof AxiosError)) return undefined;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export class FetchHttpErrorHandler extends HttpErrorHandler {
|
|||||||
const result = matchErrorCode(error.cause.code);
|
const result = matchErrorCode(error.cause.code);
|
||||||
if (!result) return undefined;
|
if (!result) return undefined;
|
||||||
|
|
||||||
return new RequestError(result, { cause: error });
|
return new RequestError(result, { cause: error }) as AnyRequestError;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -59,7 +59,7 @@ export const matchErrorCode = (code: string): AnyRequestErrorInput | undefined =
|
|||||||
type: key,
|
type: key,
|
||||||
reason: found[0] as RequestErrorReason<typeof key>,
|
reason: found[0] as RequestErrorReason<typeof key>,
|
||||||
code: code as RequestErrorCode,
|
code: code as RequestErrorCode,
|
||||||
};
|
} as AnyRequestErrorInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class NodeFetchHttpErrorHandler extends HttpErrorHandler {
|
|||||||
|
|
||||||
return new RequestError(requestErrorInput, {
|
return new RequestError(requestErrorInput, {
|
||||||
cause: error,
|
cause: error,
|
||||||
});
|
}) as AnyRequestError;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
CREATE TABLE `widget_secret` (
|
||||||
|
`item_id` varchar(64) NOT NULL,
|
||||||
|
`kind` varchar(64) NOT NULL,
|
||||||
|
`value` text NOT NULL,
|
||||||
|
`updated_at` timestamp NOT NULL,
|
||||||
|
CONSTRAINT `widget_secret_item_id_kind_pk` PRIMARY KEY(`item_id`,`kind`)
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE `widget_secret` ADD CONSTRAINT `widget_secret_item_id_item_id_fk` FOREIGN KEY (`item_id`) REFERENCES `item`(`id`) ON DELETE cascade ON UPDATE no action;
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -295,6 +295,13 @@
|
|||||||
"when": 1780764500000,
|
"when": 1780764500000,
|
||||||
"tag": "0041_merge_custom_widget_url",
|
"tag": "0041_merge_custom_widget_url",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 42,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1783176100870,
|
||||||
|
"tag": "0042_add_widget_secret",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
CREATE TABLE "widget_secret" (
|
||||||
|
"item_id" varchar(64) NOT NULL,
|
||||||
|
"kind" varchar(64) NOT NULL,
|
||||||
|
"value" text NOT NULL,
|
||||||
|
"updated_at" timestamp NOT NULL,
|
||||||
|
CONSTRAINT "widget_secret_item_id_kind_pk" PRIMARY KEY("item_id","kind")
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE "widget_secret" ADD CONSTRAINT "widget_secret_item_id_item_id_fk" FOREIGN KEY ("item_id") REFERENCES "public"."item"("id") ON DELETE cascade ON UPDATE no action;
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -57,6 +57,13 @@
|
|||||||
"when": 1780764500000,
|
"when": 1780764500000,
|
||||||
"tag": "0007_merge_custom_widget_url",
|
"tag": "0007_merge_custom_widget_url",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 8,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1783176100870,
|
||||||
|
"tag": "0008_add_widget_secret",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
CREATE TABLE `widget_secret` (
|
||||||
|
`item_id` text NOT NULL,
|
||||||
|
`kind` text NOT NULL,
|
||||||
|
`value` text NOT NULL,
|
||||||
|
`updated_at` integer NOT NULL,
|
||||||
|
PRIMARY KEY(`item_id`, `kind`),
|
||||||
|
FOREIGN KEY (`item_id`) REFERENCES `item`(`id`) ON UPDATE no action ON DELETE cascade
|
||||||
|
);
|
||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -281,6 +281,13 @@
|
|||||||
"when": 1780764500000,
|
"when": 1780764500000,
|
||||||
"tag": "0039_merge_custom_widget_url",
|
"tag": "0039_merge_custom_widget_url",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 40,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1783176100870,
|
||||||
|
"tag": "0040_add_widget_secret",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -60,8 +60,8 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/connections"
|
| "/docs/tags/connections"
|
||||||
| "/docs/tags/custom-widgets"
|
| "/docs/tags/custom-widgets"
|
||||||
| "/docs/tags/customization"
|
| "/docs/tags/customization"
|
||||||
| "/docs/tags/data"
|
|
||||||
| "/docs/tags/data-sources"
|
| "/docs/tags/data-sources"
|
||||||
|
| "/docs/tags/data"
|
||||||
| "/docs/tags/database"
|
| "/docs/tags/database"
|
||||||
| "/docs/tags/developer"
|
| "/docs/tags/developer"
|
||||||
| "/docs/tags/development"
|
| "/docs/tags/development"
|
||||||
@@ -99,8 +99,8 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/redis"
|
| "/docs/tags/redis"
|
||||||
| "/docs/tags/responsive"
|
| "/docs/tags/responsive"
|
||||||
| "/docs/tags/roles"
|
| "/docs/tags/roles"
|
||||||
| "/docs/tags/search"
|
|
||||||
| "/docs/tags/search-engines"
|
| "/docs/tags/search-engines"
|
||||||
|
| "/docs/tags/search"
|
||||||
| "/docs/tags/secrets"
|
| "/docs/tags/secrets"
|
||||||
| "/docs/tags/security"
|
| "/docs/tags/security"
|
||||||
| "/docs/tags/self-signed"
|
| "/docs/tags/self-signed"
|
||||||
@@ -132,6 +132,15 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/advanced/running-as-different-user"
|
| "/docs/advanced/running-as-different-user"
|
||||||
| "/docs/advanced/single-sign-on"
|
| "/docs/advanced/single-sign-on"
|
||||||
| "/docs/advanced/styling"
|
| "/docs/advanced/styling"
|
||||||
|
| "/docs/category/advanced"
|
||||||
|
| "/docs/category/community"
|
||||||
|
| "/docs/category/developer-guides"
|
||||||
|
| "/docs/category/getting-started"
|
||||||
|
| "/docs/category/installation-1"
|
||||||
|
| "/docs/category/installation"
|
||||||
|
| "/docs/category/integrations"
|
||||||
|
| "/docs/category/management"
|
||||||
|
| "/docs/category/widgets"
|
||||||
| "/docs/community/donate"
|
| "/docs/community/donate"
|
||||||
| "/docs/community/faq"
|
| "/docs/community/faq"
|
||||||
| "/docs/community/get-in-touch"
|
| "/docs/community/get-in-touch"
|
||||||
@@ -196,11 +205,9 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/integrations/slskd"
|
| "/docs/integrations/slskd"
|
||||||
| "/docs/integrations/sonarr"
|
| "/docs/integrations/sonarr"
|
||||||
| "/docs/integrations/speedtest-tracker"
|
| "/docs/integrations/speedtest-tracker"
|
||||||
| "/docs/integrations/synology"
|
|
||||||
| "/docs/integrations/tdarr"
|
| "/docs/integrations/tdarr"
|
||||||
| "/docs/integrations/technitium-dns"
|
| "/docs/integrations/technitium-dns"
|
||||||
| "/docs/integrations/tracearr"
|
| "/docs/integrations/tracearr"
|
||||||
| "/docs/integrations/traefik"
|
|
||||||
| "/docs/integrations/transmission"
|
| "/docs/integrations/transmission"
|
||||||
| "/docs/integrations/truenas"
|
| "/docs/integrations/truenas"
|
||||||
| "/docs/integrations/umami"
|
| "/docs/integrations/umami"
|
||||||
@@ -259,11 +266,9 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/widgets/smart-home-execute-automation"
|
| "/docs/widgets/smart-home-execute-automation"
|
||||||
| "/docs/widgets/speedtest-tracker"
|
| "/docs/widgets/speedtest-tracker"
|
||||||
| "/docs/widgets/stock-price"
|
| "/docs/widgets/stock-price"
|
||||||
| "/docs/widgets/system-disks"
|
|
||||||
| "/docs/widgets/system-resources"
|
| "/docs/widgets/system-resources"
|
||||||
| "/docs/widgets/timetable"
|
| "/docs/widgets/timetable"
|
||||||
| "/docs/widgets/tracearr"
|
| "/docs/widgets/tracearr"
|
||||||
| "/docs/widgets/traefik"
|
|
||||||
| "/docs/widgets/umami"
|
| "/docs/widgets/umami"
|
||||||
| "/docs/widgets/ups"
|
| "/docs/widgets/ups"
|
||||||
| "/docs/widgets/uptime-kuma"
|
| "/docs/widgets/uptime-kuma"
|
||||||
|
|||||||
@@ -72,7 +72,14 @@ export const AppForm = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
form.initialize(toFormValues(initialValues));
|
form.initialize(toFormValues(initialValues));
|
||||||
}, [initialValuesKey, form, initialValues]);
|
// `form` is a new object every render (Mantine useForm returns a fresh literal),
|
||||||
|
// so it must not be a dep here — it would re-run every render and, since
|
||||||
|
// form.initialize() always calls clearErrors() (new {} object) internally,
|
||||||
|
// trigger an infinite update loop. initialValuesKey (a primitive string)
|
||||||
|
// already captures the only case this effect exists for: re-initializing
|
||||||
|
// when initialValues actually changes (e.g. navigating between edit pages).
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [initialValuesKey]);
|
||||||
|
|
||||||
// Debounce the name value with 200ms delay
|
// Debounce the name value with 200ms delay
|
||||||
const [debouncedName] = useDebouncedValue(form.values.name, 200);
|
const [debouncedName] = useDebouncedValue(form.values.name, 200);
|
||||||
|
|||||||
@@ -6,12 +6,9 @@ interface Options<TData, TInput extends Record<string, unknown>> {
|
|||||||
type CacheEntry<TData> = { data: TData; timestamp: Date; expiresAt: number };
|
type CacheEntry<TData> = { data: TData; timestamp: Date; expiresAt: number };
|
||||||
|
|
||||||
const MAX_CACHE_SIZE = 1000;
|
const MAX_CACHE_SIZE = 1000;
|
||||||
const cache = new Map<string, CacheEntry<unknown>>();
|
|
||||||
const inflight = new Map<string, Promise<CacheEntry<unknown>>>();
|
|
||||||
|
|
||||||
const DEFAULT_TTL_MS = 10_000;
|
const DEFAULT_TTL_MS = 10_000;
|
||||||
|
|
||||||
const evictExpired = () => {
|
const evictExpired = <TData>(cache: Map<string, CacheEntry<TData>>) => {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
for (const [key, entry] of cache) {
|
for (const [key, entry] of cache) {
|
||||||
if (now >= entry.expiresAt) cache.delete(key);
|
if (now >= entry.expiresAt) cache.delete(key);
|
||||||
@@ -20,41 +17,46 @@ const evictExpired = () => {
|
|||||||
|
|
||||||
export const createRequestHandler = <TData, TInput extends Record<string, unknown>>(
|
export const createRequestHandler = <TData, TInput extends Record<string, unknown>>(
|
||||||
options: Options<TData, TInput>,
|
options: Options<TData, TInput>,
|
||||||
) => ({
|
) => {
|
||||||
handler: (input: TInput) => ({
|
const cache = new Map<string, CacheEntry<TData>>();
|
||||||
async getDataAsync(): Promise<{ data: TData; timestamp: Date }> {
|
const inflight = new Map<string, Promise<CacheEntry<TData>>>();
|
||||||
const ttl = options.cacheTtlMs ?? DEFAULT_TTL_MS;
|
|
||||||
const key = JSON.stringify(input);
|
|
||||||
|
|
||||||
const cached = cache.get(key) as CacheEntry<TData> | undefined;
|
return {
|
||||||
if (cached && Date.now() < cached.expiresAt) {
|
handler: (input: TInput) => ({
|
||||||
return { data: cached.data, timestamp: cached.timestamp };
|
async getDataAsync(): Promise<{ data: TData; timestamp: Date }> {
|
||||||
}
|
const ttl = options.cacheTtlMs ?? DEFAULT_TTL_MS;
|
||||||
if (cached) cache.delete(key);
|
const key = JSON.stringify(input);
|
||||||
|
|
||||||
const existing = inflight.get(key);
|
const cached = cache.get(key);
|
||||||
if (existing) return existing as Promise<CacheEntry<TData>>;
|
if (cached && Date.now() < cached.expiresAt) {
|
||||||
|
return { data: cached.data, timestamp: cached.timestamp };
|
||||||
|
}
|
||||||
|
if (cached) cache.delete(key);
|
||||||
|
|
||||||
const promise = options
|
const existing = inflight.get(key);
|
||||||
.requestAsync(input)
|
if (existing) return existing;
|
||||||
.then((data) => {
|
|
||||||
if (cache.size >= MAX_CACHE_SIZE) evictExpired();
|
|
||||||
if (cache.size >= MAX_CACHE_SIZE) {
|
|
||||||
const oldest = cache.keys().next().value;
|
|
||||||
if (oldest) cache.delete(oldest);
|
|
||||||
}
|
|
||||||
const entry: CacheEntry<TData> = { data, timestamp: new Date(), expiresAt: Date.now() + ttl };
|
|
||||||
cache.set(key, entry as CacheEntry<unknown>);
|
|
||||||
inflight.delete(key);
|
|
||||||
return entry;
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
inflight.delete(key);
|
|
||||||
throw err;
|
|
||||||
});
|
|
||||||
|
|
||||||
inflight.set(key, promise as Promise<CacheEntry<unknown>>);
|
const promise = options
|
||||||
return promise;
|
.requestAsync(input)
|
||||||
},
|
.then((data) => {
|
||||||
}),
|
if (cache.size >= MAX_CACHE_SIZE) evictExpired(cache);
|
||||||
});
|
if (cache.size >= MAX_CACHE_SIZE) {
|
||||||
|
const oldest = cache.keys().next().value;
|
||||||
|
if (oldest) cache.delete(oldest);
|
||||||
|
}
|
||||||
|
const entry: CacheEntry<TData> = { data, timestamp: new Date(), expiresAt: Date.now() + ttl };
|
||||||
|
cache.set(key, entry);
|
||||||
|
inflight.delete(key);
|
||||||
|
return entry;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
inflight.delete(key);
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
|
|
||||||
|
inflight.set(key, promise);
|
||||||
|
return promise;
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -732,8 +732,8 @@
|
|||||||
"displayType": "",
|
"displayType": "",
|
||||||
"jsonPath": "",
|
"jsonPath": "",
|
||||||
"jsonPathHint": "",
|
"jsonPathHint": "",
|
||||||
"label": "",
|
"label": "Étiquette",
|
||||||
"unit": "",
|
"unit": "Unité",
|
||||||
"mappings": "",
|
"mappings": "",
|
||||||
"tablePath": "",
|
"tablePath": "",
|
||||||
"tablePathHint": "",
|
"tablePathHint": "",
|
||||||
@@ -755,14 +755,14 @@
|
|||||||
"striped": "",
|
"striped": "",
|
||||||
"compact": "",
|
"compact": "",
|
||||||
"maxHeight": "",
|
"maxHeight": "",
|
||||||
"color": "",
|
"color": "Couleur",
|
||||||
"buttonLabel": "",
|
"buttonLabel": "",
|
||||||
"buttonColor": "",
|
"buttonColor": "",
|
||||||
"confirmText": "",
|
"confirmText": "Texte de confirmation",
|
||||||
"confirmTextHint": "",
|
"confirmTextHint": "",
|
||||||
"successMessage": "",
|
"successMessage": "Message de réussite",
|
||||||
"successMessageHint": "",
|
"successMessageHint": "",
|
||||||
"enabled": "",
|
"enabled": "Activé",
|
||||||
"template": {
|
"template": {
|
||||||
"label": "",
|
"label": "",
|
||||||
"description": ""
|
"description": ""
|
||||||
@@ -1017,13 +1017,13 @@
|
|||||||
"timetable": "",
|
"timetable": "",
|
||||||
"photoService": "",
|
"photoService": "",
|
||||||
"documents": "",
|
"documents": "",
|
||||||
"notes": "",
|
"notes": "Notes",
|
||||||
"mediaMonitoring": "",
|
"mediaMonitoring": "Supervision",
|
||||||
"speedtest": "",
|
"speedtest": "Test de débit",
|
||||||
"analytics": "",
|
"analytics": "",
|
||||||
"vpn": "",
|
"vpn": "",
|
||||||
"mediaLibrary": "",
|
"mediaLibrary": "Bibliothèque de médias",
|
||||||
"uptimeMonitoring": ""
|
"uptimeMonitoring": "Surveillance des disponibilités"
|
||||||
},
|
},
|
||||||
"testConnection": {
|
"testConnection": {
|
||||||
"action": {
|
"action": {
|
||||||
@@ -1298,7 +1298,7 @@
|
|||||||
"newLabel": "Nouvelle clé privée"
|
"newLabel": "Nouvelle clé privée"
|
||||||
},
|
},
|
||||||
"slug": {
|
"slug": {
|
||||||
"label": "",
|
"label": "Slug de la page de statut",
|
||||||
"newLabel": ""
|
"newLabel": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1599,7 +1599,7 @@
|
|||||||
"menu": {
|
"menu": {
|
||||||
"label": {
|
"label": {
|
||||||
"settings": "Impostazioni",
|
"settings": "Impostazioni",
|
||||||
"refresh": "",
|
"refresh": "Aggiorna",
|
||||||
"options": "Opzioni",
|
"options": "Opzioni",
|
||||||
"actions": "Azioni"
|
"actions": "Azioni"
|
||||||
}
|
}
|
||||||
@@ -1904,7 +1904,7 @@
|
|||||||
"noStation": "Nessuna stazione selezionata",
|
"noStation": "Nessuna stazione selezionata",
|
||||||
"option": {
|
"option": {
|
||||||
"baseUrl": {
|
"baseUrl": {
|
||||||
"label": ""
|
"label": "Url Search.ch"
|
||||||
},
|
},
|
||||||
"station": {
|
"station": {
|
||||||
"label": "Stazione"
|
"label": "Stazione"
|
||||||
@@ -2791,8 +2791,8 @@
|
|||||||
"description": "Visualizza la data dell'immagine e l'indice corrente nella parte inferiore della presentazione"
|
"description": "Visualizza la data dell'immagine e l'indice corrente nella parte inferiore della presentazione"
|
||||||
},
|
},
|
||||||
"randomizePhotos": {
|
"randomizePhotos": {
|
||||||
"label": "",
|
"label": "Immagini casuali",
|
||||||
"description": ""
|
"description": "Mostra le foto in ordine casuale invece di iniziare sempre con lo stesso ordine degli album."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Presentazione delle immagini nel tuo album Immich",
|
"description": "Presentazione delle immagini nel tuo album Immich",
|
||||||
@@ -3158,7 +3158,7 @@
|
|||||||
"label": "Provider"
|
"label": "Provider"
|
||||||
},
|
},
|
||||||
"providerUrl": {
|
"providerUrl": {
|
||||||
"label": ""
|
"label": "URL Provider"
|
||||||
},
|
},
|
||||||
"identifier": {
|
"identifier": {
|
||||||
"label": "Identificatore",
|
"label": "Identificatore",
|
||||||
@@ -3209,10 +3209,10 @@
|
|||||||
"tooltip": "Impossibile analizzare il provider, impostarlo manualmente dopo aver importato le immagini"
|
"tooltip": "Impossibile analizzare il provider, impostarlo manualmente dopo aver importato le immagini"
|
||||||
},
|
},
|
||||||
"tokens": {
|
"tokens": {
|
||||||
"label": "",
|
"label": "Token Provider",
|
||||||
"token": "",
|
"token": "Token",
|
||||||
"configured": "",
|
"configured": "Token configurato",
|
||||||
"notConfigured": "",
|
"notConfigured": "Nessun token impostato",
|
||||||
"save": "Salva"
|
"save": "Salva"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3236,9 +3236,9 @@
|
|||||||
"invalidIdentifier": "Identificatore non valido",
|
"invalidIdentifier": "Identificatore non valido",
|
||||||
"noMatchingVersion": "Nessuna versione corrispondente trovata",
|
"noMatchingVersion": "Nessuna versione corrispondente trovata",
|
||||||
"noReleasesFound": "Nessun rilascio trovato",
|
"noReleasesFound": "Nessun rilascio trovato",
|
||||||
"noProviderSelected": "",
|
"noProviderSelected": "Nessun provider selezionato",
|
||||||
"noProviderResponse": "Nessuna risposta dal provider",
|
"noProviderResponse": "Nessuna risposta dal provider",
|
||||||
"unexpected": ""
|
"unexpected": "Errore provider inaspettato"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"action": {
|
"action": {
|
||||||
"scratch": "",
|
"scratch": "Sākt no jauna",
|
||||||
"importOldmarr": "",
|
"importOldmarr": "",
|
||||||
"restoreSqlite": "",
|
"restoreSqlite": "SQLite rezerves kopija",
|
||||||
"restoreSqliteDescription": "",
|
"restoreSqliteDescription": "",
|
||||||
"backToOptions": ""
|
"backToOptions": ""
|
||||||
}
|
}
|
||||||
@@ -26,19 +26,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"importSettings": {
|
"importSettings": {
|
||||||
"title": "",
|
"title": "Importēt iestatījumus",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"boardSelection": {
|
"boardSelection": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"action": {
|
"action": {
|
||||||
"selectAll": "",
|
"selectAll": "Atzīmēt visu",
|
||||||
"unselectAll": ""
|
"unselectAll": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"summary": {
|
"summary": {
|
||||||
"title": "",
|
"title": "Importēšanas kopsavilkums",
|
||||||
"description": "",
|
"description": "",
|
||||||
"action": {
|
"action": {
|
||||||
"import": ""
|
"import": ""
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"entities": {
|
"entities": {
|
||||||
"apps": "Lietotnes",
|
"apps": "Lietotnes",
|
||||||
"boards": "Dēļi",
|
"boards": "Dēļi",
|
||||||
"integrations": "",
|
"integrations": "Integrācijas",
|
||||||
"credentialUsers": ""
|
"credentialUsers": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -67,15 +67,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"title": "",
|
"title": "Administratora lietotājs",
|
||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"title": "",
|
"title": "Lietotājs izveidots",
|
||||||
"message": ""
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": ""
|
"title": "Lietotāja izveide neizdevās"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -94,19 +94,19 @@
|
|||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
"integrations": {
|
"integrations": {
|
||||||
"title": "",
|
"title": "Integrācijas",
|
||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"action": {
|
"action": {
|
||||||
"continue": "",
|
"continue": "Turpināt",
|
||||||
"skip": ""
|
"skip": "Pagaidām izlaist šo soli"
|
||||||
},
|
},
|
||||||
"configure": {
|
"configure": {
|
||||||
"progress": "",
|
"progress": "{current} no {total}",
|
||||||
"skip": "",
|
"skip": "Izlaist šo integrāciju",
|
||||||
"finishing": "",
|
"finishing": "",
|
||||||
"error": {
|
"error": {
|
||||||
"title": "",
|
"title": "Neizdevās iestatīt!",
|
||||||
"message": ""
|
"message": ""
|
||||||
},
|
},
|
||||||
"helpers": {
|
"helpers": {
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"urlTemplate": {
|
"urlTemplate": {
|
||||||
"label": "",
|
"label": "Bāzes URL",
|
||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
"hint": "",
|
"hint": "",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
@@ -136,14 +136,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"finish": {
|
"finish": {
|
||||||
"title": "",
|
"title": "Pabeigt Iestatīšanu",
|
||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"action": {
|
"action": {
|
||||||
"goToBoard": "",
|
"goToBoard": "",
|
||||||
"createBoard": "",
|
"createBoard": "",
|
||||||
"inviteUser": "",
|
"inviteUser": "Ielūgt citus lietotājus",
|
||||||
"docs": ""
|
"docs": "Lasīt dokumentāciju"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
"invite": {
|
"invite": {
|
||||||
"title": "",
|
"title": "Pievienoties Homarr",
|
||||||
"subtitle": "",
|
"subtitle": "",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
@@ -177,20 +177,20 @@
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"label": "Parole",
|
"label": "Parole",
|
||||||
"suggestionsTitle": "",
|
"suggestionsTitle": "Paroles ieteikumi",
|
||||||
"suggestion": {
|
"suggestion": {
|
||||||
"length": "",
|
"length": "Vismaz 8 rakstzīmes",
|
||||||
"lowercase": "Ietver mazo burtu",
|
"lowercase": "Ietver mazo burtu",
|
||||||
"uppercase": "Ietver lielo burtu",
|
"uppercase": "Ietver lielo burtu",
|
||||||
"number": "Ietver numuru",
|
"number": "Ietver numuru",
|
||||||
"special": ""
|
"special": "Iekļauj speciālo simbolu"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"passwordConfirm": {
|
"passwordConfirm": {
|
||||||
"label": "Apstipriniet paroli"
|
"label": "Apstipriniet paroli"
|
||||||
},
|
},
|
||||||
"previousPassword": {
|
"previousPassword": {
|
||||||
"label": ""
|
"label": "Iepriekšējā parole"
|
||||||
},
|
},
|
||||||
"homeBoard": {
|
"homeBoard": {
|
||||||
"label": ""
|
"label": ""
|
||||||
@@ -218,10 +218,10 @@
|
|||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"message": ""
|
"message": "Jūs esat veiksmīgi pieteicies"
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "",
|
"title": "Pieteikšanās neizdevās",
|
||||||
"message": ""
|
"message": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -245,13 +245,13 @@
|
|||||||
},
|
},
|
||||||
"create": "Izveidot lietotāju",
|
"create": "Izveidot lietotāju",
|
||||||
"changePassword": {
|
"changePassword": {
|
||||||
"label": "",
|
"label": "Mainīt paroli",
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"message": ""
|
"message": "Parole veiksmīgi nomainīta."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": ""
|
"message": "Nav iespējams nomainīt paroli"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -595,12 +595,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultGroup": {
|
"defaultGroup": {
|
||||||
"name": "",
|
"name": "Noklusētā grupa",
|
||||||
"description": ""
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"search": "",
|
"search": "Atrast aplikāciju",
|
||||||
"page": {
|
"page": {
|
||||||
"list": {
|
"list": {
|
||||||
"title": "Lietotnes",
|
"title": "Lietotnes",
|
||||||
@@ -689,7 +689,7 @@
|
|||||||
"list": {
|
"list": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"noResults": "",
|
"noResults": "",
|
||||||
"loading": ""
|
"loading": "Notiek ielāde..."
|
||||||
},
|
},
|
||||||
"create": {
|
"create": {
|
||||||
"title": "",
|
"title": "",
|
||||||
@@ -700,7 +700,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"create": "",
|
"create": "Izveidot",
|
||||||
"import": "",
|
"import": "",
|
||||||
"save": "",
|
"save": "",
|
||||||
"delete": "",
|
"delete": "",
|
||||||
|
|||||||
@@ -1599,7 +1599,7 @@
|
|||||||
"menu": {
|
"menu": {
|
||||||
"label": {
|
"label": {
|
||||||
"settings": "Ustawienia",
|
"settings": "Ustawienia",
|
||||||
"refresh": "",
|
"refresh": "Odśwież",
|
||||||
"options": "Opcje",
|
"options": "Opcje",
|
||||||
"actions": "Akcje"
|
"actions": "Akcje"
|
||||||
}
|
}
|
||||||
@@ -1904,7 +1904,7 @@
|
|||||||
"noStation": "Nie wybrano stacji",
|
"noStation": "Nie wybrano stacji",
|
||||||
"option": {
|
"option": {
|
||||||
"baseUrl": {
|
"baseUrl": {
|
||||||
"label": ""
|
"label": "Szukaj adresu URL"
|
||||||
},
|
},
|
||||||
"station": {
|
"station": {
|
||||||
"label": "Stacja"
|
"label": "Stacja"
|
||||||
@@ -2791,8 +2791,8 @@
|
|||||||
"description": "Wyświetl datę zdjęcia oraz bieżący indeks na dole pokazu slajdów"
|
"description": "Wyświetl datę zdjęcia oraz bieżący indeks na dole pokazu slajdów"
|
||||||
},
|
},
|
||||||
"randomizePhotos": {
|
"randomizePhotos": {
|
||||||
"label": "",
|
"label": "Losowe zdjęcia",
|
||||||
"description": ""
|
"description": "Pokaż zdjęcia w losowej kolejności, zamiast zawsze rozpoczynać się od tej samej kolejności albumu."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Pokaz slajdów zdjęć z Twojego albumu w Immich",
|
"description": "Pokaz slajdów zdjęć z Twojego albumu w Immich",
|
||||||
@@ -3158,7 +3158,7 @@
|
|||||||
"label": "Dostawca"
|
"label": "Dostawca"
|
||||||
},
|
},
|
||||||
"providerUrl": {
|
"providerUrl": {
|
||||||
"label": ""
|
"label": "URL dostawcy"
|
||||||
},
|
},
|
||||||
"identifier": {
|
"identifier": {
|
||||||
"label": "Identyfikator",
|
"label": "Identyfikator",
|
||||||
@@ -3209,11 +3209,11 @@
|
|||||||
"tooltip": "Nie udało się rozpoznać dostawcy. Ustaw go ręcznie po zaimportowaniu obrazów."
|
"tooltip": "Nie udało się rozpoznać dostawcy. Ustaw go ręcznie po zaimportowaniu obrazów."
|
||||||
},
|
},
|
||||||
"tokens": {
|
"tokens": {
|
||||||
"label": "",
|
"label": "Tokeny dostawcy",
|
||||||
"token": "",
|
"token": "Token",
|
||||||
"configured": "",
|
"configured": "Token skonfigurowany",
|
||||||
"notConfigured": "",
|
"notConfigured": "Brak ustawionych tokenów",
|
||||||
"save": ""
|
"save": "Zapisz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3236,9 +3236,9 @@
|
|||||||
"invalidIdentifier": "Nieprawidłowy identyfikator",
|
"invalidIdentifier": "Nieprawidłowy identyfikator",
|
||||||
"noMatchingVersion": "Nie znaleziono pasującej wersji",
|
"noMatchingVersion": "Nie znaleziono pasującej wersji",
|
||||||
"noReleasesFound": "Nie znaleziono wydań!",
|
"noReleasesFound": "Nie znaleziono wydań!",
|
||||||
"noProviderSelected": "",
|
"noProviderSelected": "Nie wybrano dostawcy",
|
||||||
"noProviderResponse": "Brak odpowiedzi od dostawcy",
|
"noProviderResponse": "Brak odpowiedzi od dostawcy",
|
||||||
"unexpected": ""
|
"unexpected": "Nieoczekiwany błąd dostawcy"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3132,7 +3132,7 @@
|
|||||||
"label": ""
|
"label": ""
|
||||||
},
|
},
|
||||||
"showOnlyIcon": {
|
"showOnlyIcon": {
|
||||||
"label": ""
|
"label": "Показати тільки іконку"
|
||||||
},
|
},
|
||||||
"topReleases": {
|
"topReleases": {
|
||||||
"label": "",
|
"label": "",
|
||||||
@@ -3229,7 +3229,7 @@
|
|||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
"projectDescription": "",
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "Створено",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
"messages": {
|
"messages": {
|
||||||
@@ -3350,7 +3350,7 @@
|
|||||||
"label": ""
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latestResult": "",
|
"latestResult": "Останній результат",
|
||||||
"averages": "",
|
"averages": "",
|
||||||
"tests": "",
|
"tests": "",
|
||||||
"recentResults": "",
|
"recentResults": "",
|
||||||
@@ -3437,7 +3437,7 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"maxNowPlayingItems": {
|
"maxNowPlayingItems": {
|
||||||
"label": "",
|
"label": "Максимум елементів для відтворення",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"showLibraryCount": {
|
"showLibraryCount": {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ import {
|
|||||||
} from "@homarr/definitions";
|
} from "@homarr/definitions";
|
||||||
import { findBestIconMatch, IconPicker } from "@homarr/forms-collection";
|
import { findBestIconMatch, IconPicker } from "@homarr/forms-collection";
|
||||||
import { createModal, useModalAction } from "@homarr/modals";
|
import { createModal, useModalAction } from "@homarr/modals";
|
||||||
|
import { showErrorNotification } from "@homarr/notifications";
|
||||||
import { useScopedI18n } from "@homarr/translation/client";
|
import { useScopedI18n } from "@homarr/translation/client";
|
||||||
import { MaskedImage } from "@homarr/ui";
|
import { MaskedImage } from "@homarr/ui";
|
||||||
|
|
||||||
@@ -269,8 +270,24 @@ const providersWithAuth: ReleaseProviderKind[] = [
|
|||||||
const ProviderTokensSection = ({ itemId, repositories }: { itemId: string; repositories: ReleasesRepository[] }) => {
|
const ProviderTokensSection = ({ itemId, repositories }: { itemId: string; repositories: ReleasesRepository[] }) => {
|
||||||
const tRepository = useScopedI18n("widget.releases.option.repositories");
|
const tRepository = useScopedI18n("widget.releases.option.repositories");
|
||||||
const { data: configuredKinds = [], refetch } = clientApi.widget.secrets.getConfiguredKinds.useQuery({ itemId });
|
const { data: configuredKinds = [], refetch } = clientApi.widget.secrets.getConfiguredKinds.useQuery({ itemId });
|
||||||
const setSecret = clientApi.widget.secrets.setSecret.useMutation({ onSuccess: () => refetch() });
|
const setSecret = clientApi.widget.secrets.setSecret.useMutation({
|
||||||
const deleteSecret = clientApi.widget.secrets.deleteSecret.useMutation({ onSuccess: () => refetch() });
|
onSuccess: () => refetch(),
|
||||||
|
onError: (error) => {
|
||||||
|
showErrorNotification({
|
||||||
|
title: "Failed to save token",
|
||||||
|
message: error.message,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const deleteSecret = clientApi.widget.secrets.deleteSecret.useMutation({
|
||||||
|
onSuccess: () => refetch(),
|
||||||
|
onError: (error) => {
|
||||||
|
showErrorNotification({
|
||||||
|
title: "Failed to delete token",
|
||||||
|
message: error.message,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const authProviders = useMemo(() => {
|
const authProviders = useMemo(() => {
|
||||||
const usedProviders = repositories.map((r) => r.provider).filter((p): p is ReleaseProviderKind => p !== undefined);
|
const usedProviders = repositories.map((r) => r.provider).filter((p): p is ReleaseProviderKind => p !== undefined);
|
||||||
|
|||||||
Generated
+817
-779
File diff suppressed because it is too large.
Load diff
+42
-36
@@ -14,7 +14,7 @@ catalog:
|
|||||||
"@dnd-kit/utilities": ^3.2.2
|
"@dnd-kit/utilities": ^3.2.2
|
||||||
"@drizzle-team/brocli": ^0.12.0
|
"@drizzle-team/brocli": ^0.12.0
|
||||||
"@extractus/feed-extractor": 7.2.1
|
"@extractus/feed-extractor": 7.2.1
|
||||||
'@gfazioli/mantine-onboarding-tour': ^4.0.6
|
"@gfazioli/mantine-onboarding-tour": ^4.0.6
|
||||||
"@gitbeaker/rest": ^43.8.0
|
"@gitbeaker/rest": ^43.8.0
|
||||||
"@homarr/gridstack": ^1.12.0
|
"@homarr/gridstack": ^1.12.0
|
||||||
"@homarr/node-unifi": ^2.6.0
|
"@homarr/node-unifi": ^2.6.0
|
||||||
@@ -40,19 +40,19 @@ catalog:
|
|||||||
"@semantic-release/changelog": ^6.0.3
|
"@semantic-release/changelog": ^6.0.3
|
||||||
"@semantic-release/commit-analyzer": ^13.0.1
|
"@semantic-release/commit-analyzer": ^13.0.1
|
||||||
"@semantic-release/git": ^10.0.1
|
"@semantic-release/git": ^10.0.1
|
||||||
"@semantic-release/github": ^12.0.8
|
"@semantic-release/github": ^12.0.9
|
||||||
"@semantic-release/npm": ^13.1.5
|
"@semantic-release/npm": ^13.1.5
|
||||||
"@semantic-release/release-notes-generator": ^14.1.1
|
"@semantic-release/release-notes-generator": ^14.1.1
|
||||||
"@t3-oss/env-nextjs": ^0.13.11
|
"@t3-oss/env-nextjs": ^0.13.11
|
||||||
"@tabler/icons-react": ^3.44.0
|
"@tabler/icons-react": ^3.44.0
|
||||||
"@tanstack/query-async-storage-persister": ^5.101.0
|
"@tanstack/query-async-storage-persister": ^5.101.2
|
||||||
"@tanstack/react-query": ^5.101.0
|
"@tanstack/react-query": ^5.101.2
|
||||||
"@tanstack/react-query-devtools": ^5.101.0
|
"@tanstack/react-query-devtools": ^5.101.2
|
||||||
"@tanstack/react-query-next-experimental": ^5.101.0
|
"@tanstack/react-query-next-experimental": ^5.101.2
|
||||||
"@tanstack/react-query-persist-client": ^5.101.0
|
"@tanstack/react-query-persist-client": ^5.101.2
|
||||||
"@testcontainers/mysql": ^12.0.3
|
"@testcontainers/mysql": ^12.0.4
|
||||||
"@testcontainers/postgresql": ^12.0.3
|
"@testcontainers/postgresql": ^12.0.4
|
||||||
"@testcontainers/redis": ^12.0.3
|
"@testcontainers/redis": ^12.0.4
|
||||||
"@tiptap/extension-color": 3.27.1
|
"@tiptap/extension-color": 3.27.1
|
||||||
"@tiptap/extension-highlight": 3.27.1
|
"@tiptap/extension-highlight": 3.27.1
|
||||||
"@tiptap/extension-image": 3.27.1
|
"@tiptap/extension-image": 3.27.1
|
||||||
@@ -69,12 +69,12 @@ catalog:
|
|||||||
"@tiptap/extension-underline": 3.27.1
|
"@tiptap/extension-underline": 3.27.1
|
||||||
"@tiptap/react": ^3.27.1
|
"@tiptap/react": ^3.27.1
|
||||||
"@tiptap/starter-kit": ^3.27.1
|
"@tiptap/starter-kit": ^3.27.1
|
||||||
"@trpc/client": ^11.17.0
|
"@trpc/client": ^11.18.0
|
||||||
"@trpc/next": ^11.17.0
|
"@trpc/next": ^11.18.0
|
||||||
"@trpc/react-query": ^11.17.0
|
"@trpc/react-query": ^11.18.0
|
||||||
"@trpc/server": ^11.17.0
|
"@trpc/server": ^11.18.0
|
||||||
"@trpc/tanstack-react-query": ^11.17.0
|
"@trpc/tanstack-react-query": ^11.18.0
|
||||||
"@turbo/gen": ^2.10.0
|
"@turbo/gen": ^2.10.2
|
||||||
"@types/adm-zip": 0.5.8
|
"@types/adm-zip": 0.5.8
|
||||||
"@types/bcrypt": 6.0.0
|
"@types/bcrypt": 6.0.0
|
||||||
"@types/better-sqlite3": 7.6.13
|
"@types/better-sqlite3": 7.6.13
|
||||||
@@ -89,29 +89,29 @@ catalog:
|
|||||||
"@types/prismjs": ^1.26.6
|
"@types/prismjs": ^1.26.6
|
||||||
"@types/react": 19.2.17
|
"@types/react": 19.2.17
|
||||||
"@types/react-dom": 19.2.3
|
"@types/react-dom": 19.2.3
|
||||||
"@scalar/api-reference-react": ^0.9.49
|
"@scalar/api-reference-react": ^0.9.50
|
||||||
"@types/video.js": ^7.3.58
|
"@types/video.js": ^7.3.58
|
||||||
"@types/ws": ^8.18.1
|
"@types/ws": ^8.18.1
|
||||||
"@types/xml2js": ^0.4.14
|
"@types/xml2js": ^0.4.14
|
||||||
posthog-js: ^1.395.0
|
posthog-js: ^1.396.4
|
||||||
posthog-node: ^4.18.0
|
posthog-node: ^5.39.2
|
||||||
"@vitejs/plugin-react": ^6.0.3
|
"@vitejs/plugin-react": ^6.0.3
|
||||||
"@vitest/coverage-v8": ^4.1.9
|
"@vitest/coverage-v8": ^4.1.9
|
||||||
"@vitest/ui": ^4.1.9
|
"@vitest/ui": ^4.1.9
|
||||||
"@xterm/addon-canvas": ^0.7.0
|
"@xterm/addon-canvas": ^0.7.0
|
||||||
"@xterm/addon-fit": 0.11.0
|
"@xterm/addon-fit": 0.11.0
|
||||||
"@xterm/xterm": ^6.0.0
|
"@xterm/xterm": ^6.0.0
|
||||||
adm-zip: 0.5.17
|
adm-zip: 0.5.18
|
||||||
jszip: ^3.10.1
|
jszip: ^3.10.1
|
||||||
sql.js: ^1.14.1
|
sql.js: ^1.14.1
|
||||||
babel-plugin-react-compiler: ^1.0.0
|
babel-plugin-react-compiler: ^1.0.0
|
||||||
bcrypt: ^6.0.0
|
bcrypt: ^6.0.0
|
||||||
better-sqlite3: ^12.10.0
|
better-sqlite3: ^12.11.1
|
||||||
chroma-js: ^3.2.0
|
chroma-js: ^3.2.0
|
||||||
clsx: ^2.1.1
|
clsx: ^2.1.1
|
||||||
concurrently: ^10.0.3
|
concurrently: ^10.0.3
|
||||||
conventional-changelog-conventionalcommits: ^9.3.1
|
conventional-changelog-conventionalcommits: ^10.2.0
|
||||||
cookie: 1.1.1
|
cookie: 2.0.1
|
||||||
cookies: ^0.9.1
|
cookies: ^0.9.1
|
||||||
croner: 10.0.1
|
croner: 10.0.1
|
||||||
cross-env: ^10.1.0
|
cross-env: ^10.1.0
|
||||||
@@ -139,7 +139,7 @@ catalog:
|
|||||||
jsonpath-plus: ^10.4.0
|
jsonpath-plus: ^10.4.0
|
||||||
ldapts: 8.1.8
|
ldapts: 8.1.8
|
||||||
lodash.clonedeep: ^4.5.0
|
lodash.clonedeep: ^4.5.0
|
||||||
lucide-react: ^1.22.0
|
lucide-react: ^1.23.0
|
||||||
"mantine-contextmenu": ^9.3.1
|
"mantine-contextmenu": ^9.3.1
|
||||||
mantine-datatable: ^9.3.1
|
mantine-datatable: ^9.3.1
|
||||||
mantine-react-table: npm:mantine-react-table-open@9.0.3
|
mantine-react-table: npm:mantine-react-table-open@9.0.3
|
||||||
@@ -148,11 +148,11 @@ catalog:
|
|||||||
mysql2: 3.22.5
|
mysql2: 3.22.5
|
||||||
next: 16.2.9
|
next: 16.2.9
|
||||||
next-auth: 5.0.0-beta.31
|
next-auth: 5.0.0-beta.31
|
||||||
next-intl: 4.13.0
|
next-intl: 4.13.1
|
||||||
node-loader: ^2.1.0
|
node-loader: ^2.1.0
|
||||||
octokit: ^5.0.5
|
octokit: ^5.0.5
|
||||||
oxfmt: ^0.56.0
|
oxfmt: ^0.57.0
|
||||||
oxlint: ^1.71.0
|
oxlint: ^1.72.0
|
||||||
pg: ^8.22.0
|
pg: ^8.22.0
|
||||||
postcss-preset-mantine: ^1.18.0
|
postcss-preset-mantine: ^1.18.0
|
||||||
prismjs: ^1.30.0
|
prismjs: ^1.30.0
|
||||||
@@ -164,22 +164,22 @@ catalog:
|
|||||||
react-markdown: ^10.1.0
|
react-markdown: ^10.1.0
|
||||||
react-quill-new: ^3.8.3
|
react-quill-new: ^3.8.3
|
||||||
react-simple-code-editor: ^0.14.1
|
react-simple-code-editor: ^0.14.1
|
||||||
recharts: ^3.9.0
|
recharts: ^3.9.1
|
||||||
sass: ^1.101.0
|
sass: ^1.101.0
|
||||||
semantic-release: ^25.0.5
|
semantic-release: ^25.0.5
|
||||||
semver-parser: ^4.2.1
|
semver-parser: ^4.2.1
|
||||||
superjson: 2.2.6
|
superjson: 2.2.6
|
||||||
svgson: ^5.3.1
|
svgson: ^5.3.1
|
||||||
testcontainers: ^12.0.3
|
testcontainers: ^12.0.4
|
||||||
timezones-ical-library: ^2.2.1
|
timezones-ical-library: ^2.2.1
|
||||||
trpc-to-mcp: ^1.3.2
|
trpc-to-mcp: ^1.3.2
|
||||||
trpc-to-openapi: ^3.3.0
|
trpc-to-openapi: ^3.3.0
|
||||||
tsdav: ^2.2.2
|
tsdav: ^2.3.0
|
||||||
tsx: 4.20.4
|
tsx: 4.20.4
|
||||||
turbo: ^2.10.0
|
turbo: ^2.10.2
|
||||||
typescript: ^6.0.3
|
typescript: ^6.0.3
|
||||||
vite: ^8.1.0
|
vite: ^8.1.2
|
||||||
undici: 7.27.2
|
undici: 7.28.0
|
||||||
use-deep-compare-effect: ^1.8.1
|
use-deep-compare-effect: ^1.8.1
|
||||||
video.js: ^8.23.9
|
video.js: ^8.23.9
|
||||||
vite-tsconfig-paths: ^6.1.1
|
vite-tsconfig-paths: ^6.1.1
|
||||||
@@ -191,6 +191,7 @@ catalog:
|
|||||||
zod: ^4.4.3
|
zod: ^4.4.3
|
||||||
zod-form-data: ^3.0.2
|
zod-form-data: ^3.0.2
|
||||||
zod-validation-error: ^5.0.0
|
zod-validation-error: ^5.0.0
|
||||||
|
|
||||||
catalogMode: strict
|
catalogMode: strict
|
||||||
nodeLinker: hoisted
|
nodeLinker: hoisted
|
||||||
strictPeerDependencies: false
|
strictPeerDependencies: false
|
||||||
@@ -205,29 +206,34 @@ minimumReleaseAgeExclude:
|
|||||||
- turbo@2.9.14
|
- turbo@2.9.14
|
||||||
# Renovate security update: form-data@4.0.6
|
# Renovate security update: form-data@4.0.6
|
||||||
- form-data@4.0.6
|
- form-data@4.0.6
|
||||||
|
# Renovate security update: undici@7.28.0
|
||||||
|
- undici@7.28.0
|
||||||
|
# Renovate security update: esbuild@0.28.1
|
||||||
|
- esbuild@0.28.1
|
||||||
overrides:
|
overrides:
|
||||||
"@babel/helpers@<7.26.10": ">=7.29.7"
|
"@babel/helpers@<7.26.10": ">=7.29.7"
|
||||||
"@babel/runtime@<7.26.10": ">=7.29.7"
|
"@babel/runtime@<7.26.10": ">=7.29.7"
|
||||||
"axios@>=1.0.0 <1.8.2": ">=1.18.1"
|
"axios@>=1.0.0 <1.8.2": ">=1.18.1"
|
||||||
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.7"
|
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.7"
|
||||||
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.7"
|
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.7"
|
||||||
"esbuild@<=0.24.2": ">=0.28.0"
|
"esbuild@<=0.24.2": ">=0.28.1"
|
||||||
"form-data@>=4.0.0 <4.0.4": ">=4.0.6"
|
"form-data@>=4.0.0 <4.0.4": ">=4.0.6"
|
||||||
"hono@<4.6.5": ">=4.12.27"
|
"hono@<4.6.5": ">=4.12.27"
|
||||||
"linkifyjs@<4.3.2": ">=4.3.3"
|
"linkifyjs@<4.3.2": ">=4.3.3"
|
||||||
"nanoid@>=4.0.0 <5.0.9": ">=5.1.16"
|
"nanoid@>=4.0.0 <5.0.9": ">=5.1.16"
|
||||||
"prismjs@<1.30.0": ">=1.30.0"
|
"prismjs@<1.30.0": ">=1.30.0"
|
||||||
"proxmox-api>undici": "7.27.1"
|
"proxmox-api>undici": "7.28.0"
|
||||||
"react-is": "^19.2.7"
|
"react-is": "^19.2.7"
|
||||||
"rollup@>=4.0.0 <4.22.4": ">=4.62.2"
|
"rollup@>=4.0.0 <4.22.4": ">=4.62.2"
|
||||||
"sha.js@<=2.4.11": ">=2.4.12"
|
"sha.js@<=2.4.11": ">=2.4.12"
|
||||||
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.3"
|
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.3"
|
||||||
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.3"
|
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.3"
|
||||||
"tmp@<=0.2.3": ">=0.2.7"
|
"tmp@<=0.2.3": ">=0.2.7"
|
||||||
"vite@>=5.0.0 <=5.4.18": ">=8.1.0"
|
"vite@>=5.0.0 <=5.4.18": ">=8.1.2"
|
||||||
patchedDependencies:
|
patchedDependencies:
|
||||||
"@types/node-unifi": "patches/@types__node-unifi.patch"
|
"@types/node-unifi": "patches/@types__node-unifi.patch"
|
||||||
"trpc-to-openapi": "patches/trpc-to-openapi.patch"
|
"trpc-to-openapi": "patches/trpc-to-openapi.patch"
|
||||||
|
|
||||||
allowUnusedPatches: true
|
allowUnusedPatches: true
|
||||||
allowBuilds:
|
allowBuilds:
|
||||||
"@tree-sitter-grammars/tree-sitter-yaml": true
|
"@tree-sitter-grammars/tree-sitter-yaml": true
|
||||||
|
|||||||
Reference in new issue
Block a user