Compare commits

...
Author SHA1 Message Date
Meier Lukas 4aa43ae27a Merge branch 'dev' into beta [skip-ci] 2026-05-15 19:25:38 +02:00
homarr-update-contributors[bot] 6b67671e29 chore: update contributors (#5717)
Co-authored-by: Homarr Update Contributors <210161987+homarr-update-contributors[bot]@users.noreply.github.com>
2026-05-15 13:59:07 +00:00
homarr-renovate[bot] 220f361b69 chore(deps): update turbo monorepo to ^2.9.12 (#5712)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-14 10:24:19 +00:00
homarr-renovate[bot] a1d6457ced chore(deps): update semantic-release monorepo (#5709)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-14 07:50:20 +00:00
homarr-renovate[bot] f7ade3c676 chore(deps): update dependency @tabler/icons-react to ^3.44.0 (#5711)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-14 04:15:07 +00:00
homarr-renovate[bot] f656d9ca2d chore(deps): update turbo monorepo to ^2.9.11 (#5710)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-14 00:07:48 +00:00
homarr-renovate[bot] cefd90385d chore(deps): update dependency next-intl to v4.11.1 (#5707)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-13 15:51:14 +00:00
homarr-renovate[bot] e5021b1d78 chore(deps): update tiptap monorepo to v3.23.1 (#5708)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-13 12:16:00 +00:00
homarr-renovate[bot] f0bd5132a3 chore(deps): update dependency brace-expansion@>=2.0.0 <=2.0.1 to >=5.0.6 (#5706)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-13 09:52:26 +00:00
homarr-renovate[bot] d356fa41a0 chore(deps): update dependency brace-expansion@>=1.0.0 <=1.1.11 to >=5.0.6 (#5705)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-13 06:55:25 +00:00
homarr-renovate[bot] a9e9ac1cfa chore(deps): update dependency @types/node to ^24.12.3 (#5704)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-12 23:09:48 +00:00
homarr-renovate[bot] 1b3e720701 chore(deps): update dependency vite@>=5.0.0 <=5.4.18 to >=8.0.11 (#5701)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-12 21:28:14 +00:00
homarr-renovate[bot] 2461363d4f chore(deps): update dependency @next/eslint-plugin-next to v16.2.6 (#5703)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-12 20:02:16 +00:00
homarr-renovate[bot] f29e74b6f4 chore(deps): update turbo monorepo to ^2.9.10 (#5702)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-12 17:19:38 +00:00
homarr-renovate[bot] 89dfe82fe9 chore(deps): update dependency @tabler/icons-react to ^3.43.0 (#5700)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 23:02:13 +00:00
homarr-renovate[bot] 48a0f75c31 chore(deps): update react monorepo to v19.2.6 (#5698)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 21:25:44 +00:00
homarr-renovate[bot] 37103cf414 chore(deps): update dependency next to v16.2.6 [security] (#5699)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 19:56:51 +00:00
homarr-renovate[bot] dec34916b2 chore(deps): update nextjs monorepo to v16.2.5 (#5697)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 21:03:28 +02:00
homarr-renovate[bot] 64a4c196c0 chore(deps): update dependency tsdav to ^2.2.1 (#5696)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 17:33:08 +00:00
homarr-renovate[bot] 41d596a1c9 chore(deps): update pnpm to v10.33.4 (#5695)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 15:01:42 +00:00
homarr-renovate[bot] bac0bc7b84 chore(deps): update dependency jotai to ^2.20.0 (#5694)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-11 14:00:57 +00:00
homarr-renovate[bot] 1ac6774821 chore(deps): update pnpm to v10.33.3 (#5689)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-10 15:00:34 +00:00
homarr-renovate[bot] 7adb21ca59 chore(deps): update dependency @tabler/icons-react to ^3.42.0 (#5691)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-10 13:27:39 +00:00
homarr-renovate[bot] 4daf2729e5 chore(deps): update dependency rollup@>=4.0.0 <4.22.4 to >=4.60.3 (#5688)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-10 11:59:24 +00:00
homarr-renovate[bot] 1942c32128 chore(deps): update turbo monorepo to ^2.9.9 (#5690)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-10 10:24:31 +00:00
homarr-renovate[bot] b061a59433 chore(deps): update dependency fast-xml-parser to ^5.7.3 (#5692)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-10 09:01:25 +00:00
Meier Lukas ab867a9e50 chore: remove temporary ts-expect-error 2026-05-10 10:40:29 +02:00
homarr-crowdin[bot] 968338aa97 chore(lang): updated translations from crowdin (#5685)
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
2026-05-10 10:38:59 +02:00
Releases Homarr b34102a973 chore(release): 1.61.1-beta.1 [skip ci] 2026-05-08 21:55:01 +00:00
homarr-releases[bot] 378d1e1f1f chore(release): release v1.61.1-beta 2026-05-08 21:53:57 +00:00
Meier Lukas 3a8abe4415 chore(docs): update sitemap 2026-05-08 23:48:31 +02:00
Meier Lukas 6feb37dfd4 Merge branch 'main' into next 2026-05-08 23:46:21 +02:00
Meier Lukas 8042a18dc1 Merge branch 'main' into dev 2026-05-08 22:20:35 +02:00
homarr-releases[bot] c78bf05fc3 chore: update bug report template (#5682)
Co-authored-by: Releases Homarr <175486441+homarr-releases[bot]@users.noreply.github.com>
2026-05-08 20:17:34 +00:00
Releases Homarr 4635c51fe1 chore(release): 1.61.0 [skip ci] 2026-05-08 20:06:52 +00:00
homarr-releases[bot] 5cc0f97aa2 chore(release): automatic release v1.61.0 2026-05-08 20:05:49 +00:00
homarr-renovate[bot] b581f9b11a chore(deps): update dependency @extractus/feed-extractor to v7.2.1 (#5670)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-08 19:26:12 +00:00
Meier Lukas 756e8d1724 feat(qbittorrent): add api-key support (#5677) 2026-05-08 20:08:37 +02:00
homarr-renovate[bot] 7c64de5cbc chore(deps): update turbo monorepo to ^2.9.8 (#5669)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-08 17:25:39 +00:00
Ashton BattyandMeier Lukas 56af6bcaf0 feat(docker): Podman compatibility, multi-socket support, per-host error isolation (#5425)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2026-05-08 17:31:56 +02:00
homarr-renovate[bot] 84b269a80d chore(deps): update tanstack-query monorepo to ^5.100.9 (#5678)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-08 15:30:26 +00:00
Borislaw SotnikowandMeier Lukas 4d30a2e8c4 feat(installations): support secrets file for all environment variables (#5125)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2026-05-08 17:11:08 +02:00
Meier Lukas 2d15b3d407 chore(deps): update dependency zod to v4.4.3 (#5675) 2026-05-08 17:10:22 +02:00
Manuel 44a2973b1a revert(deps): downgrade pnpm to v10 (#5673) 2026-05-08 16:03:12 +02:00
Manuel 00a055283e fix(qbittorrent): support version 5.2 (#5672) 2026-05-08 15:44:04 +02:00
Manuel a474dcd961 chore: exclude renovate managed files from codeowners (#5676) 2026-05-08 15:37:41 +02:00
homarr-update-contributors[bot] 69fe180968 chore: update contributors (#5674)
Co-authored-by: Homarr Update Contributors <210161987+homarr-update-contributors[bot]@users.noreply.github.com>
2026-05-08 13:25:53 +00:00
Releases Homarr c83fdb2a6e chore(release): 1.60.1-beta.2 [skip ci] 2026-05-07 16:39:41 +00:00
homarr-releases[bot] 81fdd90e7a chore(release): release v1.60.1-beta 2026-05-07 16:38:37 +00:00
Thomas 5ee84f8cf4 perf: (next branch) reduce idle memory on startup (#5637) 2026-05-06 21:39:26 +00:00
Releases Homarr 80d18bb10d chore(release): 1.60.1-beta.1 [skip ci] 2026-05-01 20:44:34 +00:00
homarr-releases[bot] 2bb0f61da7 chore(release): release v1.60.1-beta 2026-05-01 20:43:32 +00:00
Meier Lukas 24386656fd Merge branch 'next' of https://github.com/homarr-labs/homarr into next 2026-05-01 22:42:07 +02:00
Meier Lukas 453360fe61 ci: disable package-manager cache 2026-05-01 22:42:02 +02:00
Releases Homarr beac1ed780 chore(release): 1.60.1-beta.1 [skip ci] 2026-05-01 20:41:02 +00:00
homarr-releases[bot] aa1b3810f1 chore(release): release v1.60.1-beta 2026-05-01 20:40:05 +00:00
Meier Lukas ce3c1b6cc1 chore: retrigger release v1.60.1-beta.1 2026-05-01 22:38:50 +02:00
Releases Homarr 3f6b830f9b chore(release): 1.60.1-beta.1 [skip ci] 2026-05-01 20:36:08 +00:00
homarr-releases[bot] f0cb79799a chore(release): release v1.60.1-beta 2026-05-01 20:35:08 +00:00
Meier Lukas 7561462594 Merge branch 'main' into next 2026-05-01 22:30:33 +02:00
Meier LukasandCopilot bfa8566284 ci: add beta release workflow (#5601)
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 22:18:45 +02:00
Meier LukasandCopilot a1aa5505a3 perf(memory): combine 3 node processes into one (#5600)
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 16:35:11 +02:00
Meier LukasandCopilot e77b9bb3d2 ci: support releases on next branch (#5599)
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 18:28:32 +02:00
83 changed files with 6131 additions and 5849 deletions

No files matched your search

+6 -4
View File
@@ -12,10 +12,6 @@ AUTH_SECRET="supersecret"
# or starting the project without any (which will show a randomly generated one). # or starting the project without any (which will show a randomly generated one).
SECRET_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000 SECRET_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
# Cron job API key is generated every time the container starts as it is required for communication between nextjs-api and tasks-api
# export CRON_JOB_API_KEY=$(openssl rand -base64 32)
# CRON_JOB_API_KEY="your-generated-api-key"
LOG_LEVEL='info' LOG_LEVEL='info'
# This is how you can use the sqlite driver: # This is how you can use the sqlite driver:
@@ -45,6 +41,12 @@ DB_URL='FULL_PATH_TO_YOUR_SQLITE_DB_FILE'
TURBO_TELEMETRY_DISABLED=1 TURBO_TELEMETRY_DISABLED=1
# Comma-separated paths to Docker-compatible Unix sockets.
# Useful for connecting to multiple runtimes (Docker + Podman) simultaneously.
# When unset and no TCP hosts configured, defaults to /var/run/docker.sock.
# Example: DOCKER_SOCKET_PATHS=/var/run/docker.sock,/run/user/1000/podman/podman.sock
# DOCKER_SOCKET_PATHS=
# Enable kubernetes tool # Enable kubernetes tool
# ENABLE_KUBERNETES=true # ENABLE_KUBERNETES=true
+1
View File
@@ -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.61.0
- 1.60.1-beta.1 - 1.60.1-beta.1
- 1.60.0 - 1.60.0
- 1.59.3 - 1.59.3
+2 -2
View File
@@ -22,7 +22,7 @@
automerge: true, automerge: true,
}, },
{ {
// disallow automerge for dependencies requiring postinstall scripts // disallow automerge for onlyBuiltDependencies
matchPackageNames: [ matchPackageNames: [
"@tree-sitter-grammars/tree-sitter-yaml", "@tree-sitter-grammars/tree-sitter-yaml",
"bcrypt", "bcrypt",
@@ -39,7 +39,7 @@
], ],
// Updates lockfile for prebuilt-debian after if package.json is updated, otherwise only root lockfile is updated // Updates lockfile for prebuilt-debian after if package.json is updated, otherwise only root lockfile is updated
postUpgradeTasks: { postUpgradeTasks: {
commands: ["cd deployments/prebuilt-debian && pnpm install --lockfile-only"], commands: ["cd deployments/prebuilt-debian && pnpm install --ignore-workspace --lockfile-only"],
fileFilters: ["deployments/prebuilt-debian/pnpm-lock.yaml"], fileFilters: ["deployments/prebuilt-debian/pnpm-lock.yaml"],
executionMode: "update", executionMode: "update",
}, },
+10 -8
View File
@@ -5,6 +5,7 @@ on:
branches: branches:
- main - main
- beta - beta
- next
- dev - dev
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@@ -34,7 +35,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
env: env:
SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' }} SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' || github.ref_name == 'next' }}
outputs: outputs:
version: ${{ steps.read-semver.outputs.version || steps.version-fallback.outputs.version }} version: ${{ steps.read-semver.outputs.version || steps.version-fallback.outputs.version }}
git_ref: ${{ steps.read-git-ref.outputs.ref || github.ref }} git_ref: ${{ steps.read-git-ref.outputs.ref || github.ref }}
@@ -54,7 +55,7 @@ jobs:
with: with:
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }} private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
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 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@v6
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
@@ -66,7 +67,7 @@ jobs:
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
with: with:
node-version: 24.15.0 node-version: 24.15.0
cache: "pnpm" package-manager-cache: false
- run: npm i -g pnpm - run: npm i -g pnpm
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
- name: Install dependencies - name: Install dependencies
@@ -95,20 +96,21 @@ jobs:
id: read-git-ref id: read-git-ref
run: | run: |
echo "ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" echo "ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Update dev branch - name: Update dev / next branch
if: env.SKIP_RELEASE == 'false' if: env.SKIP_RELEASE == 'false'
continue-on-error: true # Prevent pipeline from failing when merge fails continue-on-error: true # Prevent pipeline from failing when merge fails
env: env:
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }} GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
UPSTREAM_BRANCH: ${{ github.ref_name == 'main' && 'dev' || 'next' }}
run: | run: |
git config user.name "Releases Homarr" git config user.name "Releases Homarr"
git config user.email "175486441+homarr-releases[bot]@users.noreply.github.com" git config user.email "175486441+homarr-releases[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ steps.obtainToken.outputs.token }}@github.com/${{ github.repository }}.git git remote set-url origin https://x-access-token:${{ steps.obtainToken.outputs.token }}@github.com/${{ github.repository }}.git
git fetch origin dev git fetch origin ${{ env.UPSTREAM_BRANCH }}
git checkout dev git checkout ${{ env.UPSTREAM_BRANCH }}
git pull origin dev git pull origin ${{ env.UPSTREAM_BRANCH }}
git rebase ${{ github.ref_name }} git rebase ${{ github.ref_name }}
git push origin dev git push origin ${{ env.UPSTREAM_BRANCH }}
build-amd64: build-amd64:
name: Build docker image for amd64 name: Build docker image for amd64
needs: release needs: release
+6
View File
@@ -0,0 +1,6 @@
# Expo doesn't play nice with pnpm by default.
# The symbolic links of pnpm break the rules of Expo monorepos.
# @link https://docs.expo.dev/guides/monorepos/#common-issues
node-linker=hoisted
strict-peer-dependencies=false
engine-strict=true
+3875 -3831
View File
File diff suppressed because it is too large. Load diff
+4
View File
@@ -3,7 +3,11 @@
# Exempt Renovate‑managed files (no owners) # Exempt Renovate‑managed files (no owners)
package.json package.json
**/package.json
package-lock.json package-lock.json
**/package-lock.json
pnpm-lock.yaml pnpm-lock.yaml
**/pnpm-lock.yaml
pnpm-workspace.yaml
Dockerfile Dockerfile
docker-compose.yml docker-compose.yml
-2
View File
@@ -43,8 +43,6 @@ RUN mkdir -p /var/cache/nginx && \
COPY --from=builder /app/apps/nextjs/next.config.ts . COPY --from=builder /app/apps/nextjs/next.config.ts .
COPY --from=builder /app/apps/nextjs/package.json . COPY --from=builder /app/apps/nextjs/package.json .
COPY --from=builder /app/apps/tasks/tasks.cjs ./apps/tasks/tasks.cjs
COPY --from=builder /app/apps/websocket/wssServer.cjs ./apps/websocket/wssServer.cjs
COPY --from=builder /app/node_modules/better-sqlite3/build/Release/better_sqlite3.node /app/build/better_sqlite3.node COPY --from=builder /app/node_modules/better-sqlite3/build/Release/better_sqlite3.node /app/build/better_sqlite3.node
COPY --from=builder /app/packages/db/migrations ./db/migrations COPY --from=builder /app/packages/db/migrations ./db/migrations
+2
View File
@@ -32,6 +32,8 @@ 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,
}, },
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"], transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
images: { images: {
+2
View File
@@ -44,9 +44,11 @@
"@homarr/server-settings": "workspace:^0.1.0", "@homarr/server-settings": "workspace:^0.1.0",
"@homarr/settings": "workspace:^0.1.0", "@homarr/settings": "workspace:^0.1.0",
"@homarr/spotlight": "workspace:^0.1.0", "@homarr/spotlight": "workspace:^0.1.0",
"@homarr/tasks": "workspace:^0.1.0",
"@homarr/translation": "workspace:^0.1.0", "@homarr/translation": "workspace:^0.1.0",
"@homarr/ui": "workspace:^0.1.0", "@homarr/ui": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0", "@homarr/validation": "workspace:^0.1.0",
"@homarr/websocket": "workspace:^0.1.0",
"@homarr/widgets": "workspace:^0.1.0", "@homarr/widgets": "workspace:^0.1.0",
"@mantine/colors-generator": "catalog:", "@mantine/colors-generator": "catalog:",
"@mantine/core": "catalog:", "@mantine/core": "catalog:",
@@ -58,6 +58,18 @@ const createColumns = (
return <ContainerStateBadge state={cell.row.original.state} />; return <ContainerStateBadge state={cell.row.original.state} />;
}, },
}, },
{
accessorKey: "host",
header: t("docker.field.host.label"),
size: 140,
Cell({ row }) {
return (
<Text truncate="end" title={row.original.host}>
{row.original.host}
</Text>
);
},
},
{ {
accessorKey: "image", accessorKey: "image",
header: t("docker.field.containerImage.label"), header: t("docker.field.containerImage.label"),
+6
View File
@@ -0,0 +1,6 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("@homarr/tasks");
await import("@homarr/websocket");
}
}
+1 -3
View File
@@ -5,12 +5,11 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"type": "module", "type": "module",
"exports": { "exports": {
".": "./src/index.ts" ".": "./src/main.ts"
}, },
"main": "./src/main.ts", "main": "./src/main.ts",
"types": "./src/main.ts", "types": "./src/main.ts",
"scripts": { "scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:*.node --external:@opentelemetry/api --external:deasync --external:bcrypt --outfile=tasks.cjs",
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts", "dev": "pnpm with-env tsx ./src/main.ts",
"format": "prettier --check . --ignore-path ../../.gitignore", "format": "prettier --check . --ignore-path ../../.gitignore",
@@ -24,7 +23,6 @@
"@homarr/auth": "workspace:^0.1.0", "@homarr/auth": "workspace:^0.1.0",
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/core": "workspace:^", "@homarr/core": "workspace:^",
"@homarr/cron-job-api": "workspace:^0.1.0",
"@homarr/cron-jobs": "workspace:^0.1.0", "@homarr/cron-jobs": "workspace:^0.1.0",
"@homarr/cron-jobs-core": "workspace:^0.1.0", "@homarr/cron-jobs-core": "workspace:^0.1.0",
"@homarr/db": "workspace:^0.1.0", "@homarr/db": "workspace:^0.1.0",
-40
View File
@@ -1,52 +1,12 @@
// This import has to be the first import in the file so that the agent is overridden before any other modules are imported. // This import has to be the first import in the file so that the agent is overridden before any other modules are imported.
import "./overrides"; import "./overrides";
import type { FastifyTRPCPluginOptions } from "@trpc/server/adapters/fastify";
import { fastifyTRPCPlugin } from "@trpc/server/adapters/fastify";
import fastify from "fastify";
import { createLogger } from "@homarr/core/infrastructure/logs";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import type { JobRouter } from "@homarr/cron-job-api";
import { jobRouter } from "@homarr/cron-job-api";
import { CRON_JOB_API_KEY_HEADER, CRON_JOB_API_PATH, CRON_JOB_API_PORT } from "@homarr/cron-job-api/constants";
import { jobGroup } from "@homarr/cron-jobs"; import { jobGroup } from "@homarr/cron-jobs";
import { db } from "@homarr/db";
import { JobManager } from "./job-manager";
import { onStartAsync } from "./on-start"; import { onStartAsync } from "./on-start";
const logger = createLogger({ module: "tasksMain" });
const server = fastify({
maxParamLength: 5000,
});
server.register(fastifyTRPCPlugin, {
prefix: CRON_JOB_API_PATH,
trpcOptions: {
router: jobRouter,
createContext: ({ req }) => ({
manager: new JobManager(db, jobGroup),
apiKey: req.headers[CRON_JOB_API_KEY_HEADER] as string | undefined,
}),
onError({ path, error }) {
logger.error(new ErrorWithMetadata("Error in tasks tRPC handler", { path }, { cause: error }));
},
} satisfies FastifyTRPCPluginOptions<JobRouter>["trpcOptions"],
});
void (async () => { void (async () => {
await onStartAsync(); await onStartAsync();
await jobGroup.initializeAsync(); await jobGroup.initializeAsync();
await jobGroup.startAllAsync(); await jobGroup.startAllAsync();
try {
await server.listen({ port: CRON_JOB_API_PORT });
logger.info("Tasks web server started successfully", { port: CRON_JOB_API_PORT });
} catch (err) {
logger.error(
new ErrorWithMetadata("Failed to start tasks web server", { port: CRON_JOB_API_PORT }, { cause: err }),
);
process.exit(1);
}
})(); })();
+3 -1
View File
@@ -4,10 +4,12 @@
"private": true, "private": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"type": "module", "type": "module",
"exports": {
".": "./src/main.ts"
},
"main": "./src/main.ts", "main": "./src/main.ts",
"types": "./src/main.ts", "types": "./src/main.ts",
"scripts": { "scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:deasync --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text",
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts", "dev": "pnpm with-env tsx ./src/main.ts",
"format": "prettier --check . --ignore-path ../../.gitignore", "format": "prettier --check . --ignore-path ../../.gitignore",
-1
View File
@@ -2,6 +2,5 @@ FROM node:24.15.0-trixie AS base
WORKDIR /app WORKDIR /app
COPY package.json . COPY package.json .
COPY pnpm-lock.yaml . COPY pnpm-lock.yaml .
COPY pnpm-workspace.yaml .
RUN corepack enable pnpm && pnpm install --frozen-lockfile RUN corepack enable pnpm && pnpm install --frozen-lockfile
CMD ["sleep", "60s"] CMD ["sleep", "60s"]
+7 -2
View File
@@ -4,9 +4,14 @@
"dependencies": { "dependencies": {
"better-sqlite3": "^12.9.0" "better-sqlite3": "^12.9.0"
}, },
"packageManager": "pnpm@11.0.4", "packageManager": "pnpm@10.33.4",
"engines": { "engines": {
"node": ">=24.15.0", "node": ">=24.15.0",
"pnpm": ">=11.0.4" "pnpm": ">=10.33.4"
},
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3"
]
} }
} }
@@ -1,2 +0,0 @@
allowBuilds:
better-sqlite3: true
+49 -6
View File
@@ -1,6 +1,6 @@
{ {
"name": "homarr", "name": "homarr",
"version": "1.60.0", "version": "1.61.1-beta.1",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "cross-env CI=true turbo build", "build": "cross-env CI=true turbo build",
@@ -15,7 +15,7 @@
"db:migration:sqlite:run": "pnpm -F db migration:sqlite:run", "db:migration:sqlite:run": "pnpm -F db migration:sqlite:run",
"db:push": "pnpm -F db push:sqlite", "db:push": "pnpm -F db push:sqlite",
"db:studio": "pnpm -F db studio", "db:studio": "pnpm -F db studio",
"dev": "turbo dev --parallel", "dev": "pnpm -F nextjs dev",
"docker:dev": "docker compose -f ./development/development.docker-compose.yml up", "docker:dev": "docker compose -f ./development/development.docker-compose.yml up",
"format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache", "format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache",
"format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache", "format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache",
@@ -57,12 +57,55 @@
"turbo": "catalog:", "turbo": "catalog:",
"typescript": "catalog:", "typescript": "catalog:",
"vite-tsconfig-paths": "catalog:", "vite-tsconfig-paths": "catalog:",
"vitest": "catalog:", "vitest": "catalog:"
"yaml": "catalog:"
}, },
"packageManager": "pnpm@11.0.4", "packageManager": "pnpm@10.33.4",
"engines": { "engines": {
"node": ">=24.15.0", "node": ">=24.15.0",
"pnpm": ">=11.0.4" "pnpm": ">=10.33.4"
},
"pnpm": {
"onlyBuiltDependencies": [
"@tree-sitter-grammars/tree-sitter-yaml",
"bcrypt",
"better-sqlite3",
"cpu-features",
"esbuild",
"sharp",
"ssh2",
"tree-sitter",
"tree-sitter-json"
],
"overrides": {
"@babel/helpers@<7.26.10": ">=7.29.2",
"@babel/runtime@<7.26.10": ">=7.29.2",
"axios@>=1.0.0 <1.8.2": ">=1.16.0",
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.6",
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.6",
"esbuild@<=0.24.2": ">=0.28.0",
"form-data@>=4.0.0 <4.0.4": ">=4.0.5",
"hono@<4.6.5": ">=4.12.16",
"linkifyjs@<4.3.2": ">=4.3.2",
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11",
"prismjs@<1.30.0": ">=1.30.0",
"proxmox-api>undici": "7.24.6",
"react-is": "^19.2.6",
"rollup@>=4.0.0 <4.22.4": ">=4.60.3",
"sha.js@<=2.4.11": ">=2.4.12",
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
"tmp@<=0.2.3": ">=0.2.5",
"vite@>=5.0.0 <=5.4.18": ">=8.0.11"
},
"patchedDependencies": {
"@types/node-unifi": "patches/@types__node-unifi.patch",
"trpc-to-openapi": "patches/trpc-to-openapi.patch"
},
"allowUnusedPatches": true,
"ignoredBuiltDependencies": [
"@scarf/scarf",
"core-js-pure",
"protobufjs"
]
} }
} }
-1
View File
@@ -25,7 +25,6 @@
"@homarr/auth": "workspace:^0.1.0", "@homarr/auth": "workspace:^0.1.0",
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/core": "workspace:^0.1.0", "@homarr/core": "workspace:^0.1.0",
"@homarr/cron-job-api": "workspace:^0.1.0",
"@homarr/cron-job-status": "workspace:^0.1.0", "@homarr/cron-job-status": "workspace:^0.1.0",
"@homarr/cron-jobs": "workspace:^0.1.0", "@homarr/cron-jobs": "workspace:^0.1.0",
"@homarr/db": "workspace:^0.1.0", "@homarr/db": "workspace:^0.1.0",
+19 -16
View File
@@ -2,33 +2,36 @@ import { observable } from "@trpc/server/observable";
import z from "zod/v4"; import z from "zod/v4";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import { jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api";
import { cronJobApi } from "@homarr/cron-job-api/client";
import type { TaskStatus } from "@homarr/cron-job-status"; import type { TaskStatus } from "@homarr/cron-job-status";
import { createCronJobStatusChannel } from "@homarr/cron-job-status"; import { createCronJobStatusChannel } from "@homarr/cron-job-status";
import { jobGroup } from "@homarr/cron-jobs";
import { JobManager } from "@homarr/cron-jobs/job-manager";
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc"; import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
const jobGroupKeys = jobGroup.getKeys();
const jobNameSchema = z.enum(jobGroup.getKeys());
const logger = createLogger({ module: "cronJobsRouter" }); const logger = createLogger({ module: "cronJobsRouter" });
export const cronJobsRouter = createTRPCRouter({ export const cronJobsRouter = createTRPCRouter({
triggerJob: permissionRequiredProcedure triggerJob: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
.input(jobNameSchema) .input(jobNameSchema)
.mutation(async ({ input }) => { .mutation(async ({ input, ctx }) => {
await cronJobApi.trigger.mutate(input); await new JobManager(ctx.db, jobGroup).triggerAsync(input);
}), }),
startJob: permissionRequiredProcedure startJob: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
.input(jobNameSchema) .input(jobNameSchema)
.mutation(async ({ input }) => { .mutation(async ({ input, ctx }) => {
await cronJobApi.start.mutate(input); await new JobManager(ctx.db, jobGroup).startAsync(input);
}), }),
stopJob: permissionRequiredProcedure stopJob: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
.input(jobNameSchema) .input(jobNameSchema)
.mutation(async ({ input }) => { .mutation(({ input, ctx }) => {
await cronJobApi.stop.mutate(input); new JobManager(ctx.db, jobGroup).stop(input);
}), }),
updateJobInterval: permissionRequiredProcedure updateJobInterval: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
@@ -38,23 +41,23 @@ export const cronJobsRouter = createTRPCRouter({
cron: z.string(), cron: z.string(),
}), }),
) )
.mutation(async ({ input }) => { .mutation(async ({ input, ctx }) => {
await cronJobApi.updateInterval.mutate(input); await new JobManager(ctx.db, jobGroup).updateIntervalAsync(input.name, input.cron);
}), }),
disableJob: permissionRequiredProcedure disableJob: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
.input(jobNameSchema) .input(jobNameSchema)
.mutation(async ({ input }) => { .mutation(async ({ input, ctx }) => {
await cronJobApi.disable.mutate(input); await new JobManager(ctx.db, jobGroup).disableAsync(input);
}), }),
enableJob: permissionRequiredProcedure enableJob: permissionRequiredProcedure
.requiresPermission("admin") .requiresPermission("admin")
.input(jobNameSchema) .input(jobNameSchema)
.mutation(async ({ input }) => { .mutation(async ({ input, ctx }) => {
await cronJobApi.enable.mutate(input); await new JobManager(ctx.db, jobGroup).enableAsync(input);
}), }),
getJobs: permissionRequiredProcedure.requiresPermission("admin").query(async () => { getJobs: permissionRequiredProcedure.requiresPermission("admin").query(async ({ ctx }) => {
return await cronJobApi.getAll.query(); return await new JobManager(ctx.db, jobGroup).getAllAsync();
}), }),
subscribeToStatusUpdates: permissionRequiredProcedure.requiresPermission("admin").subscription(() => { subscribeToStatusUpdates: permissionRequiredProcedure.requiresPermission("admin").subscription(() => {
return observable<TaskStatus>((emit) => { return observable<TaskStatus>((emit) => {
@@ -138,6 +138,7 @@ const getContainerOrThrowAsync = async (id: string) => {
interface DockerContainer { interface DockerContainer {
name: string; name: string;
id: string; id: string;
host: string;
state: ContainerState; state: ContainerState;
image: string; image: string;
ports: Port[] | undefined; ports: Port[] | undefined;
-9
View File
@@ -1,9 +0,0 @@
import baseConfig from "@homarr/eslint-config/base";
/** @type {import('typescript-eslint').Config} */
export default [
{
ignores: [],
},
...baseConfig,
];
-46
View File
@@ -1,46 +0,0 @@
{
"name": "@homarr/cron-job-api",
"version": "0.1.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
"exports": {
".": "./src/index.ts",
"./env": "./src/env.ts",
"./constants": "./src/constants.ts",
"./client": "./src/client.ts"
},
"typesVersions": {
"*": {
"*": [
"src/*"
]
}
},
"scripts": {
"clean": "rm -rf .turbo node_modules",
"format": "prettier --check . --ignore-path ../../.gitignore",
"lint": "eslint",
"typecheck": "tsc --noEmit"
},
"prettier": "@homarr/prettier-config",
"dependencies": {
"@homarr/common": "workspace:^0.1.0",
"@homarr/core": "workspace:^0.1.0",
"@homarr/cron-jobs": "workspace:^0.1.0",
"@tanstack/react-query": "catalog:",
"@trpc/client": "catalog:",
"@trpc/server": "catalog:",
"@trpc/tanstack-react-query": "catalog:",
"react": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0",
"@types/react": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
}
-20
View File
@@ -1,20 +0,0 @@
import { createTRPCClient, httpLink } from "@trpc/client";
import type { JobRouter } from ".";
import { CRON_JOB_API_KEY_HEADER, CRON_JOB_API_PATH, CRON_JOB_API_PORT } from "./constants";
import { env } from "./env";
export const cronJobApi = createTRPCClient<JobRouter>({
links: [
httpLink({
url: `${getBaseUrl()}${CRON_JOB_API_PATH}`,
headers: {
[CRON_JOB_API_KEY_HEADER]: env.CRON_JOB_API_KEY,
},
}),
],
});
function getBaseUrl() {
return `http://localhost:${CRON_JOB_API_PORT}`;
}
-3
View File
@@ -1,3 +0,0 @@
export const CRON_JOB_API_PORT = 3002;
export const CRON_JOB_API_PATH = "/trpc";
export const CRON_JOB_API_KEY_HEADER = "cron-job-api-key";
-11
View File
@@ -1,11 +0,0 @@
import { z } from "zod/v4";
import { env as commonEnv } from "@homarr/common/env";
import { createEnv } from "@homarr/core/infrastructure/env";
export const env = createEnv({
server: {
CRON_JOB_API_KEY: commonEnv.NODE_ENV === "development" ? z.string().default("test") : z.string(),
},
experimental__runtimeEnv: process.env,
});
-85
View File
@@ -1,85 +0,0 @@
import { initTRPC, TRPCError } from "@trpc/server";
import { z } from "zod/v4";
import type { JobGroupKeys } from "@homarr/cron-jobs";
import { jobGroup } from "@homarr/cron-jobs";
import { env } from "./env";
export const jobGroupKeys = jobGroup.getKeys();
export const jobNameSchema = z.enum(jobGroup.getKeys());
export interface IJobManager {
startAsync(name: JobGroupKeys): Promise<void>;
triggerAsync(name: JobGroupKeys): Promise<void>;
stop(name: JobGroupKeys): void;
updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>;
disableAsync(name: JobGroupKeys): Promise<void>;
enableAsync(name: JobGroupKeys): Promise<void>;
getAllAsync(): Promise<
{
name: JobGroupKeys;
cron: string;
preventManualExecution: boolean;
preventCustomInterval: boolean;
isEnabled: boolean;
}[]
>;
}
const t = initTRPC
.context<{
manager: IJobManager;
apiKey?: string;
}>()
.create();
const createTrpcRouter = t.router;
const apiKeyProcedure = t.procedure.use(({ ctx, next }) => {
if (ctx.apiKey !== env.CRON_JOB_API_KEY) {
throw new TRPCError({
code: "FORBIDDEN",
message: "Missing or invalid API key",
});
}
return next({
ctx: {
...ctx,
apiKey: undefined, // Clear the API key after checking
},
});
});
export const jobRouter = createTrpcRouter({
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.startAsync(input);
}),
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.triggerAsync(input);
}),
stop: apiKeyProcedure.input(jobNameSchema).mutation(({ input, ctx }) => {
ctx.manager.stop(input);
}),
updateInterval: apiKeyProcedure
.input(
z.object({
name: jobNameSchema,
cron: z.string(),
}),
)
.mutation(async ({ input, ctx }) => {
await ctx.manager.updateIntervalAsync(input.name, input.cron);
}),
disable: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.disableAsync(input);
}),
enable: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
await ctx.manager.enableAsync(input);
}),
getAll: apiKeyProcedure.query(({ ctx }) => {
return ctx.manager.getAllAsync();
}),
});
export type JobRouter = typeof jobRouter;
-8
View File
@@ -1,8 +0,0 @@
{
"extends": "@homarr/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},
"include": ["*.ts", "src"],
"exclude": ["node_modules"]
}
+4 -2
View File
@@ -5,7 +5,8 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"type": "module", "type": "module",
"exports": { "exports": {
".": "./index.ts" ".": "./index.ts",
"./job-manager": "./src/job-manager.ts"
}, },
"typesVersions": { "typesVersions": {
"*": { "*": {
@@ -38,7 +39,8 @@
"@homarr/server-settings": "workspace:^0.1.0", "@homarr/server-settings": "workspace:^0.1.0",
"@homarr/translation": "workspace:^0.1.0", "@homarr/translation": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0", "@homarr/validation": "workspace:^0.1.0",
"semver-parser": "catalog:" "semver-parser": "catalog:",
"zod": "catalog:"
}, },
"devDependencies": { "devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0", "@homarr/eslint-config": "workspace:^0.2.0",
+40 -29
View File
@@ -28,34 +28,45 @@ import { updateCheckerJob } from "./jobs/update-checker";
import { weatherJob } from "./jobs/weather"; import { weatherJob } from "./jobs/weather";
import { createCronJobGroup } from "./lib"; import { createCronJobGroup } from "./lib";
export const jobGroup = createCronJobGroup({ const getJobGroup = () => {
analytics: analyticsJob, return createCronJobGroup({
iconsUpdater: iconsUpdaterJob, analytics: analyticsJob,
ping: pingJob, iconsUpdater: iconsUpdaterJob,
smartHomeEntityState: smartHomeEntityStateJob, ping: pingJob,
mediaServer: mediaServerJob, smartHomeEntityState: smartHomeEntityStateJob,
mediaOrganizer: mediaOrganizerJob, mediaServer: mediaServerJob,
downloads: downloadsJob, mediaOrganizer: mediaOrganizerJob,
dnsHole: dnsHoleJob, downloads: downloadsJob,
mediaRequestStats: mediaRequestStatsJob, dnsHole: dnsHoleJob,
mediaRequestList: mediaRequestListJob, mediaRequestStats: mediaRequestStatsJob,
rssFeeds: rssFeedsJob, mediaRequestList: mediaRequestListJob,
indexerManager: indexerManagerJob, rssFeeds: rssFeedsJob,
healthMonitoring: healthMonitoringJob, indexerManager: indexerManagerJob,
updateChecker: updateCheckerJob, healthMonitoring: healthMonitoringJob,
mediaTranscoding: mediaTranscodingJob, updateChecker: updateCheckerJob,
minecraftServerStatus: minecraftServerStatusJob, mediaTranscoding: mediaTranscodingJob,
dockerContainers: dockerContainersJob, minecraftServerStatus: minecraftServerStatusJob,
networkController: networkControllerJob, dockerContainers: dockerContainersJob,
firewallCpu: firewallCpuJob, networkController: networkControllerJob,
firewallMemory: firewallMemoryJob, firewallCpu: firewallCpuJob,
firewallVersion: firewallVersionJob, firewallMemory: firewallMemoryJob,
firewallInterfaces: firewallInterfacesJob, firewallVersion: firewallVersionJob,
refreshNotifications: refreshNotificationsJob, firewallInterfaces: firewallInterfacesJob,
weather: weatherJob, refreshNotifications: refreshNotificationsJob,
timetable: timetableJob, weather: weatherJob,
tracearr: tracearrJob, timetable: timetableJob,
umamiActiveVisitors: umamiActiveVisitorsJob, tracearr: tracearrJob,
}); umamiActiveVisitors: umamiActiveVisitorsJob,
});
};
// Add global type augmentation for homarr
declare global {
var cronJobs: ReturnType<typeof getJobGroup> | undefined;
}
global.cronJobs ??= getJobGroup();
export const jobGroup = global.cronJobs;
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number]; export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
@@ -1,7 +1,6 @@
import { Cron } from "croner"; import { Cron } from "croner";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import type { IJobManager } from "@homarr/cron-job-api";
import type { jobGroup as cronJobGroup, JobGroupKeys } from "@homarr/cron-jobs"; import type { jobGroup as cronJobGroup, JobGroupKeys } from "@homarr/cron-jobs";
import type { Database, InferInsertModel } from "@homarr/db"; import type { Database, InferInsertModel } from "@homarr/db";
import { eq } from "@homarr/db"; import { eq } from "@homarr/db";
@@ -9,7 +8,7 @@ import { cronJobConfigurations } from "@homarr/db/schema";
const logger = createLogger({ module: "jobManager" }); const logger = createLogger({ module: "jobManager" });
export class JobManager implements IJobManager { export class JobManager {
constructor( constructor(
private db: Database, private db: Database,
private jobGroup: typeof cronJobGroup, private jobGroup: typeof cronJobGroup,
@@ -93,6 +93,7 @@ export type HomarrDocumentationPath =
| "/docs/tags/roles" | "/docs/tags/roles"
| "/docs/tags/search" | "/docs/tags/search"
| "/docs/tags/search-engines" | "/docs/tags/search-engines"
| "/docs/tags/secrets"
| "/docs/tags/security" | "/docs/tags/security"
| "/docs/tags/self-signed" | "/docs/tags/self-signed"
| "/docs/tags/seo" | "/docs/tags/seo"
@@ -198,6 +199,7 @@ export type HomarrDocumentationPath =
| "/docs/integrations/tracearr" | "/docs/integrations/tracearr"
| "/docs/integrations/transmission" | "/docs/integrations/transmission"
| "/docs/integrations/truenas" | "/docs/integrations/truenas"
| "/docs/integrations/umami"
| "/docs/integrations/unifi-controller" | "/docs/integrations/unifi-controller"
| "/docs/integrations/unraid" | "/docs/integrations/unraid"
| "/docs/management/api" | "/docs/management/api"
@@ -244,6 +246,7 @@ export type HomarrDocumentationPath =
| "/docs/widgets/system-resources" | "/docs/widgets/system-resources"
| "/docs/widgets/timetable" | "/docs/widgets/timetable"
| "/docs/widgets/tracearr" | "/docs/widgets/tracearr"
| "/docs/widgets/umami"
| "/docs/widgets/video" | "/docs/widgets/video"
| "/docs/widgets/weather" | "/docs/widgets/weather"
| "" | ""
+1 -2
View File
@@ -61,7 +61,7 @@ export const integrationDefs = {
}, },
qBittorrent: { qBittorrent: {
name: "qBittorrent", name: "qBittorrent",
secretKinds: [["username", "password"]], secretKinds: [["apiKey"], ["username", "password"]],
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/qbittorrent.svg", iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/qbittorrent.svg",
category: ["downloadClient", "torrent"], category: ["downloadClient", "torrent"],
documentationUrl: createDocumentationLink("/docs/integrations/q-bittorent"), documentationUrl: createDocumentationLink("/docs/integrations/q-bittorent"),
@@ -376,7 +376,6 @@ export const integrationDefs = {
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/umami.svg", iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/umami.svg",
category: ["analytics"], category: ["analytics"],
defaultUrl: "https://api.umami.is/v1", defaultUrl: "https://api.umami.is/v1",
// @ts-expect-error - docs page will be created when integration is merged
documentationUrl: createDocumentationLink("/docs/integrations/umami"), documentationUrl: createDocumentationLink("/docs/integrations/umami"),
}, },
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page) // This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
+3 -1
View File
@@ -4,9 +4,11 @@ import { createBooleanSchema, createEnv } from "@homarr/core/infrastructure/env"
export const env = createEnv({ export const env = createEnv({
server: { server: {
// Comma separated list of docker hostnames that can be used to connect to query the docker endpoints (localhost:2375,host.docker.internal:2375, ...) // Comma separated list of docker hostnames that can be used to connect to query the docker endpoints (localhost,host.docker.internal, ...)
DOCKER_HOSTNAMES: z.string().optional(), DOCKER_HOSTNAMES: z.string().optional(),
DOCKER_PORTS: z.string().optional(), DOCKER_PORTS: z.string().optional(),
// Comma separated paths to Docker-compatible Unix sockets (e.g., /var/run/docker.sock,/run/user/1000/podman/podman.sock)
DOCKER_SOCKET_PATHS: z.string().optional(),
ENABLE_DOCKER: createBooleanSchema(true), ENABLE_DOCKER: createBooleanSchema(true),
ENABLE_KUBERNETES: createBooleanSchema(false), ENABLE_KUBERNETES: createBooleanSchema(false),
}, },
+32 -20
View File
@@ -11,31 +11,43 @@ export class DockerSingleton {
private static instances: DockerInstance[] | null = null; private static instances: DockerInstance[] | null = null;
private createInstances() { private createInstances() {
const socketPaths = env.DOCKER_SOCKET_PATHS;
const hostVariable = env.DOCKER_HOSTNAMES; const hostVariable = env.DOCKER_HOSTNAMES;
const portVariable = env.DOCKER_PORTS; const portVariable = env.DOCKER_PORTS;
if (hostVariable === undefined || portVariable === undefined) {
// Socket instances from DOCKER_SOCKET_PATHS
const socketInstances: DockerInstance[] = socketPaths
? socketPaths.split(",").map((socketPath) => ({
host: socketPath,
instance: new Docker({ socketPath }),
}))
: [];
// TCP instances from existing DOCKER_HOSTNAMES/DOCKER_PORTS
let tcpInstances: DockerInstance[] = [];
if (hostVariable !== undefined && portVariable !== undefined) {
const hostnames = hostVariable.split(",");
const ports = portVariable.split(",");
if (hostnames.length !== ports.length) {
throw new Error("The number of hosts and ports must match");
}
tcpInstances = hostnames.map((host, i) => ({
host: `${host}:${ports[i]}`,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
instance: new Docker({ host, port: parseInt(ports[i]!, 10) }),
}));
}
const instances = [...socketInstances, ...tcpInstances];
// Default: local socket if nothing else configured
if (instances.length === 0) {
return [{ host: "socket", instance: new Docker() }]; return [{ host: "socket", instance: new Docker() }];
} }
const hostnames = hostVariable.split(",");
const ports = portVariable.split(",");
if (hostnames.length !== ports.length) { return instances;
throw new Error("The number of hosts and ports must match");
}
return hostnames.map((host, i) => {
// Check above ensures that ports[i] is not undefined
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const port = ports[i]!;
return {
host: `${host}:${port}`,
instance: new Docker({
host,
port: parseInt(port, 10),
}),
};
});
} }
public static findInstance(host: string): DockerInstance | undefined { public static findInstance(host: string): DockerInstance | undefined {
+110
View File
@@ -0,0 +1,110 @@
import { beforeEach, describe, expect, test, vi } from "vitest";
import { DockerSingleton } from "../singleton";
const mockEnv = vi.hoisted(() => ({
DOCKER_SOCKET_PATHS: undefined as string | undefined,
DOCKER_HOSTNAMES: undefined as string | undefined,
DOCKER_PORTS: undefined as string | undefined,
ENABLE_DOCKER: true,
ENABLE_KUBERNETES: false,
}));
vi.mock("dockerode", () => {
return {
default: class MockDocker {
constructor(public opts?: Record<string, unknown>) {}
},
};
});
vi.mock("../env", () => ({
env: mockEnv,
}));
describe("DockerSingleton", () => {
beforeEach(() => {
// Reset singleton cache between tests
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
(DockerSingleton as any).instances = null;
// Reset env to defaults
mockEnv.DOCKER_SOCKET_PATHS = undefined;
mockEnv.DOCKER_HOSTNAMES = undefined;
mockEnv.DOCKER_PORTS = undefined;
});
test("should return default socket when no env vars set", () => {
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(1);
expect(instances[0]?.host).toBe("socket");
});
test("should return TCP instances only when DOCKER_HOSTNAMES and DOCKER_PORTS set", () => {
mockEnv.DOCKER_HOSTNAMES = "remote-host";
mockEnv.DOCKER_PORTS = "2375";
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(1);
expect(instances[0]?.host).toBe("remote-host:2375");
});
test("should return multiple TCP instances", () => {
mockEnv.DOCKER_HOSTNAMES = "host1,host2";
mockEnv.DOCKER_PORTS = "2375,2376";
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(2);
expect(instances[0]?.host).toBe("host1:2375");
expect(instances[1]?.host).toBe("host2:2376");
});
test("should throw when hostname and port counts do not match", () => {
mockEnv.DOCKER_HOSTNAMES = "host1,host2";
mockEnv.DOCKER_PORTS = "2375";
expect(() => DockerSingleton.getInstances()).toThrow("The number of hosts and ports must match");
});
test("should return socket instances when DOCKER_SOCKET_PATHS set", () => {
mockEnv.DOCKER_SOCKET_PATHS = "/var/run/docker.sock";
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(1);
expect(instances[0]?.host).toBe("/var/run/docker.sock");
});
test("should return multiple socket instances", () => {
mockEnv.DOCKER_SOCKET_PATHS = "/var/run/docker.sock,/run/user/1000/podman/podman.sock";
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(2);
expect(instances[0]?.host).toBe("/var/run/docker.sock");
expect(instances[1]?.host).toBe("/run/user/1000/podman/podman.sock");
});
test("should combine socket and TCP instances", () => {
mockEnv.DOCKER_SOCKET_PATHS = "/var/run/docker.sock,/run/user/1000/podman/podman.sock";
mockEnv.DOCKER_HOSTNAMES = "remote-host";
mockEnv.DOCKER_PORTS = "2375";
const instances = DockerSingleton.getInstances();
expect(instances).toHaveLength(3);
expect(instances[0]?.host).toBe("/var/run/docker.sock");
expect(instances[1]?.host).toBe("/run/user/1000/podman/podman.sock");
expect(instances[2]?.host).toBe("remote-host:2375");
});
test("should cache instances on subsequent calls", () => {
const first = DockerSingleton.getInstances();
const second = DockerSingleton.getInstances();
expect(first).toBe(second);
});
});
@@ -90,10 +90,18 @@ export class QBitTorrentIntegration extends Integration implements IDownloadClie
} }
private async getClientAsync(dispatcher?: Dispatcher) { private async getClientAsync(dispatcher?: Dispatcher) {
const credentials = this.hasSecretValue("apiKey")
? {
apiKey: this.getSecretValue("apiKey"),
}
: {
username: this.getSecretValue("username"),
password: this.getSecretValue("password"),
};
return new QBittorrent({ return new QBittorrent({
...credentials,
baseUrl: this.url("/").toString(), baseUrl: this.url("/").toString(),
username: this.getSecretValue("username"),
password: this.getSecretValue("password"),
dispatcher: dispatcher ?? (await createCertificateAgentAsync()), dispatcher: dispatcher ?? (await createCertificateAgentAsync()),
}); });
} }
+32 -12
View File
@@ -2,6 +2,8 @@ import dayjs from "dayjs";
import type { ContainerInfo, ContainerStats } from "dockerode"; import type { ContainerInfo, ContainerStats } from "dockerode";
import type Dockerode from "dockerode"; import type Dockerode from "dockerode";
import { createLogger } from "@homarr/core/infrastructure/logs";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import { db, like, or } from "@homarr/db"; import { db, like, or } from "@homarr/db";
import { icons } from "@homarr/db/schema"; import { icons } from "@homarr/db/schema";
import type { ContainerState } from "@homarr/docker"; import type { ContainerState } from "@homarr/docker";
@@ -9,6 +11,8 @@ import { dockerLabels, DockerSingleton } from "@homarr/docker";
import { createCachedWidgetRequestHandler } from "./lib/cached-widget-request-handler"; import { createCachedWidgetRequestHandler } from "./lib/cached-widget-request-handler";
const logger = createLogger({ module: "dockerRequestHandler" });
export const dockerContainersRequestHandler = createCachedWidgetRequestHandler({ export const dockerContainersRequestHandler = createCachedWidgetRequestHandler({
queryKey: "dockerContainersResult", queryKey: "dockerContainersResult",
widgetKind: "dockerContainers", widgetKind: "dockerContainers",
@@ -18,19 +22,34 @@ export const dockerContainersRequestHandler = createCachedWidgetRequestHandler({
cacheDuration: dayjs.duration(20, "seconds"), cacheDuration: dayjs.duration(20, "seconds"),
}); });
const dockerInstances = DockerSingleton.getInstances();
const extractImage = (container: ContainerInfo) => container.Image.split("/").at(-1)?.split(":").at(0) ?? ""; const extractImage = (container: ContainerInfo) => container.Image.split("/").at(-1)?.split(":").at(0) ?? "";
async function getContainersWithStatsAsync() { async function getContainersWithStatsAsync() {
const containers = await Promise.all( const dockerInstances = DockerSingleton.getInstances();
const results = await Promise.allSettled(
dockerInstances.map(async ({ instance, host }) => { dockerInstances.map(async ({ instance, host }) => {
const instanceContainers = await instance.listContainers({ all: true }); const instanceContainers = await instance.listContainers({ all: true });
return instanceContainers return instanceContainers
.filter((container) => !(dockerLabels.hide in container.Labels)) .filter((container) => !(dockerLabels.hide in container.Labels))
.map((container) => ({ ...container, instance: host })); .map((container) => ({ ...container, instance: host }));
}), }),
).then((res) => res.flat()); );
const containers = results.flatMap((result, index) => {
if (result.status === "fulfilled") return result.value;
logger.warn(
new ErrorWithMetadata(
"Failed to list containers from Docker host",
{
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
host: dockerInstances[index]!.host,
},
{ cause: result.reason },
),
);
return [];
});
const likeQueries = containers.map((container) => like(icons.name, `%${extractImage(container)}%`)); const likeQueries = containers.map((container) => like(icons.name, `%${extractImage(container)}%`));
const dbIcons = const dbIcons =
@@ -44,8 +63,6 @@ async function getContainersWithStatsAsync() {
const instance = dockerInstances.find(({ host }) => host === container.instance)?.instance; const instance = dockerInstances.find(({ host }) => host === container.instance)?.instance;
if (!instance) return null; if (!instance) return null;
// Get stats, falling back to an empty stats object if fetch fails
// calculateCpuUsage and calculateMemoryUsage will return 0 for invalid/missing stats
const stats = await instance const stats = await instance
.getContainer(container.Id) .getContainer(container.Id)
.stats({ stream: false, "one-shot": true }) .stats({ stream: false, "one-shot": true })
@@ -63,6 +80,7 @@ async function getContainersWithStatsAsync() {
return { return {
id: container.Id, id: container.Id,
name: container.Names[0]?.split("/")[1] ?? "Unknown", name: container.Names[0]?.split("/")[1] ?? "Unknown",
host: container.instance,
state: container.State as ContainerState, state: container.State as ContainerState,
iconUrl: iconUrl:
dbIcons.find((icon) => { dbIcons.find((icon) => {
@@ -80,9 +98,10 @@ async function getContainersWithStatsAsync() {
return (await Promise.all(containerStatsPromises)).filter((container) => container !== null); return (await Promise.all(containerStatsPromises)).filter((container) => container !== null);
} }
function calculateCpuUsage(stats: ContainerStats): number { export function calculateCpuUsage(stats: ContainerStats): number {
// Handle containers with missing or invalid stats (e.g., exited, dead containers) // Handle containers with missing or invalid stats (e.g., exited, dead containers, Podman responses)
if (!stats.cpu_stats.online_cpus || stats.cpu_stats.online_cpus === 0 || !stats.cpu_stats.cpu_usage.total_usage) { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!stats.cpu_stats?.online_cpus || stats.cpu_stats.online_cpus === 0 || !stats.cpu_stats.cpu_usage?.total_usage) {
return 0; return 0;
} }
@@ -95,9 +114,10 @@ function calculateCpuUsage(stats: ContainerStats): number {
return (stats.cpu_stats.cpu_usage.total_usage / usage) * numberOfCpus * 100; return (stats.cpu_stats.cpu_usage.total_usage / usage) * numberOfCpus * 100;
} }
function calculateMemoryUsage(stats: ContainerStats): number { export function calculateMemoryUsage(stats: ContainerStats): number {
// Handle containers with missing or invalid stats (e.g., exited, dead containers) // Handle containers with missing or invalid stats (e.g., exited, dead containers, Podman responses)
if (!stats.memory_stats.usage) { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!stats.memory_stats?.usage) {
return 0; return 0;
} }
@@ -0,0 +1,121 @@
import type { ContainerStats } from "dockerode";
import { describe, expect, test, vi } from "vitest";
import { createDb } from "@homarr/db/test";
import { calculateCpuUsage, calculateMemoryUsage } from "../docker";
vi.mock("@homarr/db", async (importActual) => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const actual = await importActual<typeof import("@homarr/db")>();
return {
...actual,
db: createDb(),
};
});
// Helper to create a partial stats object, cast to ContainerStats.
// This mirrors what Podman and other Docker-compatible runtimes may return
// at runtime, even though @types/dockerode declares all fields as required.
const createStats = (overrides: Record<string, unknown> = {}) => overrides as unknown as ContainerStats;
describe("calculateCpuUsage", () => {
test("should return 0 when cpu_stats is undefined (Podman)", () => {
const stats = createStats({ cpu_stats: undefined });
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should return 0 when online_cpus is 0", () => {
const stats = createStats({
cpu_stats: { online_cpus: 0, cpu_usage: { total_usage: 1000 }, system_cpu_usage: 5000 },
});
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should return 0 when online_cpus is undefined", () => {
const stats = createStats({
cpu_stats: { cpu_usage: { total_usage: 1000 }, system_cpu_usage: 5000 },
});
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should return 0 when cpu_usage is undefined", () => {
const stats = createStats({
cpu_stats: { online_cpus: 4, system_cpu_usage: 5000 },
});
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should return 0 when total_usage is 0", () => {
const stats = createStats({
cpu_stats: { online_cpus: 4, cpu_usage: { total_usage: 0 }, system_cpu_usage: 5000 },
});
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should return 0 when system_cpu_usage is 0", () => {
const stats = createStats({
cpu_stats: { online_cpus: 4, cpu_usage: { total_usage: 1000 }, system_cpu_usage: 0 },
});
expect(calculateCpuUsage(stats)).toBe(0);
});
test("should calculate correct CPU percentage for valid stats", () => {
const stats = createStats({
cpu_stats: { online_cpus: 4, cpu_usage: { total_usage: 2000 }, system_cpu_usage: 10000 },
});
// (2000 / 10000) * 4 * 100 = 80
expect(calculateCpuUsage(stats)).toBe(80);
});
test("should handle fractional CPU usage", () => {
const stats = createStats({
cpu_stats: { online_cpus: 2, cpu_usage: { total_usage: 500 }, system_cpu_usage: 100000 },
});
// (500 / 100000) * 2 * 100 = 1
expect(calculateCpuUsage(stats)).toBe(1);
});
});
describe("calculateMemoryUsage", () => {
test("should return 0 when memory_stats is undefined (Podman)", () => {
const stats = createStats({ memory_stats: undefined });
expect(calculateMemoryUsage(stats)).toBe(0);
});
test("should return 0 when memory_stats.usage is 0", () => {
const stats = createStats({ memory_stats: { usage: 0 } });
expect(calculateMemoryUsage(stats)).toBe(0);
});
test("should return 0 when memory_stats.usage is undefined", () => {
const stats = createStats({ memory_stats: {} });
expect(calculateMemoryUsage(stats)).toBe(0);
});
test("should subtract cache from usage", () => {
const stats = createStats({
memory_stats: { usage: 1000, stats: { cache: 200 } },
});
expect(calculateMemoryUsage(stats)).toBe(800);
});
test("should use total_inactive_file when cache is absent", () => {
const stats = createStats({
memory_stats: { usage: 1000, stats: { total_inactive_file: 300 } },
});
expect(calculateMemoryUsage(stats)).toBe(700);
});
test("should use inactive_file as last fallback", () => {
const stats = createStats({
memory_stats: { usage: 1000, stats: { inactive_file: 150 } },
});
expect(calculateMemoryUsage(stats)).toBe(850);
});
test("should return raw usage when memory_stats.stats is undefined", () => {
const stats = createStats({ memory_stats: { usage: 512 } });
expect(calculateMemoryUsage(stats)).toBe(512);
});
});
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+163 -160
View File
@@ -159,7 +159,7 @@
"label": "在新标签页中打开搜索结果" "label": "在新标签页中打开搜索结果"
}, },
"ddgBangs": { "ddgBangs": {
"label": "" "label": "启用 DuckDuckGo bangs"
} }
}, },
"error": { "error": {
@@ -252,10 +252,10 @@
"changeDdgBangs": { "changeDdgBangs": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "DuckDuckGo bangs 切换成功"
}, },
"error": { "error": {
"message": "" "message": "无法切换 DuckDuckGo bangs"
} }
} }
}, },
@@ -1093,7 +1093,7 @@
}, },
"colorScheme": { "colorScheme": {
"options": { "options": {
"auto": "", "auto": "自动",
"light": "日间", "light": "日间",
"dark": "暗黑" "dark": "暗黑"
} }
@@ -1540,13 +1540,13 @@
} }
}, },
"timetable": { "timetable": {
"name": "", "name": "时刻表",
"description": "", "description": "显示车站的出发时间",
"title": "", "title": "出发时间 {station}",
"noStation": "", "noStation": "未选择车站",
"option": { "option": {
"station": { "station": {
"label": "" "label": "车站"
} }
} }
}, },
@@ -1621,11 +1621,11 @@
} }
}, },
"anchorNote": { "anchorNote": {
"name": "", "name": "锚点笔记",
"description": "", "description": "显示来自锚点的所选笔记",
"option": { "option": {
"noteId": { "noteId": {
"label": "" "label": "笔记"
}, },
"showTitle": { "showTitle": {
"label": "显示标题" "label": "显示标题"
@@ -1637,16 +1637,16 @@
"empty": "选择要显示的笔记", "empty": "选择要显示的笔记",
"emptyContent": "此笔记没有内容", "emptyContent": "此笔记没有内容",
"notFound": "未找到笔记", "notFound": "未找到笔记",
"noNotes": "", "noNotes": "未找到笔记",
"integrationRequired": "", "integrationRequired": "请先选择锚点集成",
"updatedAt": "更新时间:{date}", "updatedAt": "更新时间:{date}",
"untitled": "未命名", "untitled": "未命名",
"edit": "编辑", "edit": "编辑",
"save": "保存", "save": "保存",
"cancel": "取消", "cancel": "取消",
"readOnlyViewer": "", "readOnlyViewer": "您对该笔记只有查看权限,编辑已禁用。",
"saveForbidden": "", "saveForbidden": "您没有编辑此笔记的权限。",
"saveFailed": "" "saveFailed": "保存此笔记失败,请重试。"
}, },
"iframe": { "iframe": {
"name": "iFrame", "name": "iFrame",
@@ -1680,7 +1680,7 @@
"label": "允许地理位置" "label": "允许地理位置"
}, },
"allowModals": { "allowModals": {
"label": "" "label": "允许弹窗"
} }
}, },
"error": { "error": {
@@ -2056,156 +2056,156 @@
} }
}, },
"tracearr": { "tracearr": {
"name": "", "name": "Tracearr",
"description": "", "description": "增强型媒体服务器监控,提供详细的流与转码数据",
"option": { "option": {
"showStreams": { "showStreams": {
"label": "" "label": "显示活跃流"
}, },
"showStats": { "showStats": {
"label": "" "label": "显示统计摘要"
}, },
"showRecentActivity": { "showRecentActivity": {
"label": "" "label": "显示近期活动"
}, },
"showViolations": { "showViolations": {
"label": "" "label": "显示违规记录"
} }
}, },
"stats": { "stats": {
"activeStreams": "", "activeStreams": "活跃流",
"totalUsers": "", "totalUsers": "总用户数",
"transcodes": "", "transcodes": "转码数",
"bandwidth": "" "bandwidth": "带宽"
}, },
"streams": { "streams": {
"empty": "", "empty": "无活跃流",
"user": "", "user": "用户",
"media": "", "media": "媒体",
"state": "", "state": "状态",
"quality": "", "quality": "画质",
"device": "", "device": "设备",
"progress": "", "progress": "进度",
"videoDecision": { "videoDecision": {
"directPlay": "", "directPlay": "直接播放",
"transcode": "", "transcode": "转码",
"directStream": "" "directStream": "直接串流"
} }
}, },
"recentActivity": { "recentActivity": {
"title": "", "title": "近期活动",
"empty": "", "empty": "暂无近期活动",
"watched": "", "watched": "已观看",
"partial": "" "partial": "部分观看"
}, },
"violations": { "violations": {
"title": "", "title": "违规记录",
"empty": "", "empty": "暂无近期违规",
"rule": "", "rule": "规则",
"user": "" "user": "用户"
}, },
"noSectionsEnabled": "", "noSectionsEnabled": "未启用任何分区",
"error": { "error": {
"noIntegration": "", "noIntegration": "未配置 Tracearr 集成",
"internalServerError": "" "internalServerError": "获取 Tracearr 数据失败"
} }
}, },
"umami": { "umami": {
"name": "", "name": "Umami 分析",
"description": "", "description": "显示来自 Umami 分析实例的访客统计",
"visitors": "", "visitors": "访客",
"active": "", "active": "活跃",
"pageviews": "", "pageviews": "浏览量",
"visits": "", "visits": "访问数",
"bounceRate": "", "bounceRate": "跳出率",
"avgDuration": "", "avgDuration": "平均",
"option": { "option": {
"websiteId": { "websiteId": {
"label": "", "label": "网站",
"description": "", "description": "选择您的 Umami 实例所追踪的网站",
"placeholder": "", "placeholder": "选择一个网站",
"loading": "", "loading": "正在加载网站……",
"noWebsites": "", "noWebsites": "未找到网站",
"configureIntegrationFirst": "" "configureIntegrationFirst": "请先添加 Umami 集成"
}, },
"timeFrame": { "timeFrame": {
"label": "", "label": "时间范围",
"description": "", "description": "用于展示访客数据的时间段",
"option": { "option": {
"today": "", "today": "今天",
"24h": "", "24h": "过去 24 小时",
"7d": "", "7d": "过去 7 天",
"30d": "", "30d": "过去 30 天",
"month": "", "month": "本月",
"lastMonth": "" "lastMonth": "上月"
} }
}, },
"eventName": { "eventName": {
"label": "", "label": "事件",
"description": "", "description": "显示特定事件的总发生次数",
"placeholder": "", "placeholder": "选择一个事件",
"loading": "", "loading": "正在加载事件……",
"noEvents": "", "noEvents": "未找到事件",
"none": "", "none": "无事件",
"configureWebsiteFirst": "" "configureWebsiteFirst": "请先选择网站以加载事件"
}, },
"chartType": { "chartType": {
"label": "", "label": "图表类型",
"description": "", "description": "图表的显示样式",
"option": { "option": {
"bar": "", "bar": "条形图",
"sparkline": "" "sparkline": "迷你趋势图"
} }
}, },
"chartStyle": { "chartStyle": {
"label": "", "label": "图表样式",
"description": "", "description": "如何在图表中显示事件序列",
"option": { "option": {
"grouped": "", "grouped": "并排",
"overlay": "" "overlay": "叠加(子集)"
} }
}, },
"viewMode": { "viewMode": {
"label": "", "label": "视图",
"description": "", "description": "组件主体中要显示的内容",
"option": { "option": {
"chart": "", "chart": "图表",
"events": "", "events": "事件图表",
"topPages": "", "topPages": "热门页面",
"topReferrers": "" "topReferrers": "热门来源"
} }
}, },
"eventNames": { "eventNames": {
"label": "", "label": "事件",
"description": "", "description": "选择一个或多个要图表化的事件",
"placeholder": "", "placeholder": "选择事件……",
"loading": "", "loading": "正在加载事件……",
"noEvents": "", "noEvents": "未找到事件",
"configureWebsiteFirst": "" "configureWebsiteFirst": "请先选择网站以加载事件"
}, },
"topCount": { "topCount": {
"label": "", "label": "显示数量",
"description": "" "description": "要显示的热门项目数量(最大 500)"
} }
}, },
"event": { "event": {
"occurrences": "", "occurrences": "事件",
"label": "" "label": "事件"
}, },
"topPages": { "topPages": {
"direct": "" "direct": "直接"
}, },
"topReferrers": { "topReferrers": {
"direct": "" "direct": "直接"
}, },
"events": { "events": {
"selectPrompt": "" "selectPrompt": "选择要图表化的事件"
}, },
"error": { "error": {
"noIntegration": "", "noIntegration": "未配置 Umami 集成",
"noWebsite": "", "noWebsite": "未配置网站",
"noData": "", "noData": "无可用数据",
"internalServerError": "" "internalServerError": "获取 Umami 数据失败"
} }
}, },
"common": { "common": {
@@ -2304,50 +2304,50 @@
} }
}, },
"immich-serverStats": { "immich-serverStats": {
"name": "", "name": "Immich 服务器统计",
"description": "", "description": "有关您的 Immich 实例的信息",
"option": { "option": {
"showUsers": { "showUsers": {
"label": "", "label": "显示用户",
"description": "" "description": "显示实例上的用户数量"
}, },
"showPhotos": { "showPhotos": {
"label": "显示图片", "label": "显示图片",
"description": "" "description": "显示实例上的照片数量"
}, },
"showVideos": { "showVideos": {
"label": "显示视频", "label": "显示视频",
"description": "" "description": "显示实例上的视频数量"
}, },
"showStorage": { "showStorage": {
"label": "显示存储", "label": "显示存储",
"description": "" "description": "显示已使用的总存储空间"
} }
}, },
"users": "", "users": "用户",
"photos": "", "photos": "照片",
"videos": "", "videos": "视频",
"storage": "" "storage": "已用存储"
}, },
"immich-albumCarousel": { "immich-albumCarousel": {
"name": "", "name": "Immich 相册",
"option": { "option": {
"albumId": { "albumId": {
"label": "", "label": "相册ID",
"description": "" "description": "这是一个唯一标识符,用于指向您的 Immich 相册。您可以通过打开相册并从 URL 中复制那段唯一字符串来找到该 ID,例如:'a21aca09-9f05-47dc-b1a1-7b53c547226e'"
}, },
"rotationIntervalSeconds": { "rotationIntervalSeconds": {
"label": "", "label": "间隔(秒)",
"description": "" "description": "每 X 秒切换一次相册中的图片。最小为 1,最大不得超过 3600。"
}, },
"showPhotoInfo": { "showPhotoInfo": {
"label": "显示图片信息", "label": "显示图片信息",
"description": "" "description": "在幻灯片底部显示图片日期和当前索引"
} }
}, },
"description": "", "description": "Immich 相册图片幻灯片",
"noAlbumSelected": "", "noAlbumSelected": "未选择相册,请编辑组件并选择一个相册",
"noPhotos": "" "noPhotos": "此相册中没有照片"
}, },
"downloads": { "downloads": {
"name": "下载客户端", "name": "下载客户端",
@@ -2658,7 +2658,7 @@
"label": "隐藏描述" "label": "隐藏描述"
}, },
"showPosterImage": { "showPosterImage": {
"label": "" "label": "显示封面图"
} }
} }
}, },
@@ -2873,28 +2873,28 @@
"option": {} "option": {}
}, },
"speedtestTracker": { "speedtestTracker": {
"name": "", "name": "网速测试追踪器",
"description": "", "description": "显示 网速测试追踪器 实例中的测速结果。",
"option": { "option": {
"showLatestResult": { "showLatestResult": {
"label": "" "label": "显示最新结果"
}, },
"showStats": { "showStats": {
"label": "" "label": "显示平均值"
}, },
"showRecentResults": { "showRecentResults": {
"label": "" "label": "显示近期结果"
}, },
"showPingGraph": { "showPingGraph": {
"label": "" "label": "显示 Ping 图表"
} }
}, },
"latestResult": "", "latestResult": "最新结果",
"averages": "", "averages": "平均值",
"tests": "", "tests": "{count}次测试",
"recentResults": "", "recentResults": "近期结果",
"recentResultsSpeed": "", "recentResultsSpeed": "速度",
"recentResultsPing": "", "recentResultsPing": "Ping",
"download": "下载", "download": "下载",
"upload": "上传", "upload": "上传",
"ping": "Ping", "ping": "Ping",
@@ -2902,13 +2902,13 @@
"avgDownload": "平均下载", "avgDownload": "平均下载",
"avgUpload": "平均上传", "avgUpload": "平均上传",
"avgPing": "平均Ping", "avgPing": "平均Ping",
"healthy": "", "healthy": "健康",
"unhealthy": "", "unhealthy": "不健康",
"ok": "", "ok": "正常",
"fail": "失败", "fail": "失败",
"noSectionsEnabled": "", "noSectionsEnabled": "请在组件选项中至少启用一个模块。",
"error": { "error": {
"internalServerError": "" "internalServerError": "获取测速数据失败"
} }
}, },
"systemResources": { "systemResources": {
@@ -3680,7 +3680,7 @@
"defaultColorScheme": { "defaultColorScheme": {
"label": "默认配色方案", "label": "默认配色方案",
"options": { "options": {
"auto": "", "auto": "自动",
"light": "日间", "light": "日间",
"dark": "暗黑" "dark": "暗黑"
} }
@@ -3708,7 +3708,7 @@
"label": "Minecraft 服务状态" "label": "Minecraft 服务状态"
}, },
"timetable": { "timetable": {
"label": "" "label": "时刻表"
}, },
"iconsUpdater": { "iconsUpdater": {
"label": "图标更新" "label": "图标更新"
@@ -3780,10 +3780,10 @@
"label": "天气" "label": "天气"
}, },
"tracearr": { "tracearr": {
"label": "" "label": "Tracearr"
}, },
"umamiActiveVisitors": { "umamiActiveVisitors": {
"label": "" "label": "Umami 活跃访客"
} }
}, },
"interval": { "interval": {
@@ -3907,8 +3907,8 @@
"subtitle": "在许多语言中,有{count}人贡献了翻译" "subtitle": "在许多语言中,有{count}人贡献了翻译"
}, },
"sponsors": { "sponsors": {
"title": "", "title": "赞助商",
"subtitle": "" "subtitle": "{count}人通过财务方式支持该项目"
}, },
"libraries": { "libraries": {
"title": "相关的库", "title": "相关的库",
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "端口" "label": "端口"
},
"host": {
"label": "宿主机"
} }
}, },
"action": { "action": {
@@ -4496,7 +4499,7 @@
"title": "全局命令", "title": "全局命令",
"option": { "option": {
"colorScheme": { "colorScheme": {
"auto": "", "auto": "切换外观模式",
"light": "切换到日间模式", "light": "切换到日间模式",
"dark": "切换到暗黑模式" "dark": "切换到暗黑模式"
}, },
@@ -4548,13 +4551,13 @@
"group": { "group": {
"searchEngine": { "searchEngine": {
"title": "搜索引擎", "title": "搜索引擎",
"tipDdgBangs": "", "tipDdgBangs": "提示:你也可以在此使用任何 DuckDuckGo Bangs,例如 !something",
"bang": { "bang": {
"searchWithQuery": "", "searchWithQuery": "使用“‘’{query}”搜索“{label}”",
"pressEnterToOpen": "", "pressEnterToOpen": "按 Enter 键打开",
"engineSelected": "", "engineSelected": "已选择{label}({bang})",
"typeQueryToContinue": "", "typeQueryToContinue": "输入搜索查询以继续",
"emptyBangHint": "" "emptyBangHint": "输入 bang,例如 !yt,然后按空格键进行选择"
}, },
"children": { "children": {
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "crwdns1920:0crwdne1920:0" "label": "crwdns1920:0crwdne1920:0"
},
"host": {
"label": "crwdns4249:0crwdne4249:0"
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porty" "label": "Porty"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porte" "label": "Porte"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Ports" "label": "Ports"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Θύρες" "label": "Θύρες"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Ports" "label": "Ports"
},
"host": {
"label": "Host"
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Puertos" "label": "Puertos"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Ports" "label": "Ports"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "יציאות" "label": "יציאות"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Portovi" "label": "Portovi"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+126 -123
View File
@@ -159,7 +159,7 @@
"label": "Nyissa meg a keresési eredményeket új ablakban" "label": "Nyissa meg a keresési eredményeket új ablakban"
}, },
"ddgBangs": { "ddgBangs": {
"label": "" "label": "DuckDuckGo parancsok engedélyezése"
} }
}, },
"error": { "error": {
@@ -252,10 +252,10 @@
"changeDdgBangs": { "changeDdgBangs": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "DuckDuckGo parancsok sikeresen bekapcsolódott"
}, },
"error": { "error": {
"message": "" "message": "DuckDuckGo parancsokkat nem sikerült bekapcsolni"
} }
} }
}, },
@@ -1093,7 +1093,7 @@
}, },
"colorScheme": { "colorScheme": {
"options": { "options": {
"auto": "", "auto": "Automatikus",
"light": "Világos", "light": "Világos",
"dark": "Sötét" "dark": "Sötét"
} }
@@ -2111,101 +2111,101 @@
} }
}, },
"umami": { "umami": {
"name": "", "name": "Umami Analitika",
"description": "", "description": "Umami elemzési rendszeréből származó látogatói statisztikák megjelenítése",
"visitors": "", "visitors": "látogatók",
"active": "", "active": "aktív",
"pageviews": "", "pageviews": "oldalletöltések",
"visits": "", "visits": "látogatások",
"bounceRate": "", "bounceRate": "visszapattan",
"avgDuration": "", "avgDuration": "átl",
"option": { "option": {
"websiteId": { "websiteId": {
"label": "", "label": "Honlap",
"description": "", "description": "Válasszon ki egy olyan webhelyet, amelyet az Ön Umami-példánya követ",
"placeholder": "", "placeholder": "Válasszon ki egy weboldalt",
"loading": "", "loading": "Weboldalak betöltése...",
"noWebsites": "", "noWebsites": "Nem található weboldal",
"configureIntegrationFirst": "" "configureIntegrationFirst": "Először csatlakoztassa az Umami integrációt"
}, },
"timeFrame": { "timeFrame": {
"label": "", "label": "Időkeret",
"description": "", "description": "Látogatói adatok megjelenítésének időtartama",
"option": { "option": {
"today": "", "today": "Ma",
"24h": "", "24h": "Elmúlt 24 óra",
"7d": "", "7d": "Elmúlt 7 nap",
"30d": "", "30d": "Elmúlt 30 nap",
"month": "", "month": "Ez a hónap",
"lastMonth": "" "lastMonth": "Előző hónap"
} }
}, },
"eventName": { "eventName": {
"label": "", "label": "Esemény",
"description": "", "description": "Egy adott esemény összes előfordulásának megjelenítése",
"placeholder": "", "placeholder": "Válasszon ki egy eseményt",
"loading": "", "loading": "Események betöltése...",
"noEvents": "", "noEvents": "Nem található esemény",
"none": "", "none": "Nincs esemény",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Először válasszon ki egy weboldalt az események betöltéséhez"
}, },
"chartType": { "chartType": {
"label": "", "label": "Diagramtípus",
"description": "", "description": "A diagram megjelenítési stílusa",
"option": { "option": {
"bar": "", "bar": "Oszlopdiagram",
"sparkline": "" "sparkline": "Mikrodiagram"
} }
}, },
"chartStyle": { "chartStyle": {
"label": "", "label": "Diagramstílus",
"description": "", "description": "Hogyan jeleníthetjük meg az eseménysorozatot a diagramon",
"option": { "option": {
"grouped": "", "grouped": "Egymás mellett",
"overlay": "" "overlay": "Átfedés (részhalmaz)"
} }
}, },
"viewMode": { "viewMode": {
"label": "", "label": "Megtekintés",
"description": "", "description": "Mit jelenítsen meg a widget törzse",
"option": { "option": {
"chart": "", "chart": "Ábra",
"events": "", "events": "Eseménynaptár",
"topPages": "", "topPages": "Legnépszerűbb oldalak",
"topReferrers": "" "topReferrers": "Legjobb hivatkozások"
} }
}, },
"eventNames": { "eventNames": {
"label": "", "label": "Események",
"description": "", "description": "Válasszon ki egy vagy több eseményt a grafikonhoz",
"placeholder": "", "placeholder": "Események kiválasztása...",
"loading": "", "loading": "Események betöltése...",
"noEvents": "", "noEvents": "Nem található esemény",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Először válasszon ki egy weboldalt az események betöltéséhez"
}, },
"topCount": { "topCount": {
"label": "", "label": "Items to show",
"description": "" "description": "Megjelenítendő legnépszerűbb elemek száma (max. 500)"
} }
}, },
"event": { "event": {
"occurrences": "", "occurrences": "események",
"label": "" "label": "események"
}, },
"topPages": { "topPages": {
"direct": "" "direct": "Közvetlen"
}, },
"topReferrers": { "topReferrers": {
"direct": "" "direct": "Közvetlen"
}, },
"events": { "events": {
"selectPrompt": "" "selectPrompt": "Válassza ki a grafikonra felveendő eseményeket"
}, },
"error": { "error": {
"noIntegration": "", "noIntegration": "Nincs beállítva az Umami-integráció",
"noWebsite": "", "noWebsite": "Nincs beállított webhely",
"noData": "", "noData": "Nincs elérhető adat",
"internalServerError": "" "internalServerError": "Umami-adatok letöltése nem sikerült"
} }
}, },
"common": { "common": {
@@ -2745,15 +2745,15 @@
} }
}, },
"importForm": { "importForm": {
"title": "" "title": "Importálás a Docker-ből"
}, },
"example": { "example": {
"label": "" "label": "Példa"
}, },
"invalid": "", "invalid": "A tároló meghatározása érvénytelen, kérjük, ellenőrizze az értékeket",
"noProvider": { "noProvider": {
"label": "", "label": "Nincs Szolgáltató",
"tooltip": "" "tooltip": "A szolgáltató adatai nem értelmezhetők; kérjük, az importálás után állítsa be azokat manuálisan"
} }
} }
}, },
@@ -2826,34 +2826,34 @@
} }
}, },
"error": { "error": {
"integrationsDisconnected": "", "integrationsDisconnected": "Nincs elérhető adat, az összes integráció le van választva",
"unknownContentOption": "" "unknownContentOption": "A hálózati állapot-widget ismeretlen tartalmi beállítása: "
}, },
"name": "", "name": "Hálózat állapota",
"description": "" "description": "A hálózathoz csatlakozó eszközök megjelenítése"
}, },
"networkController": { "networkController": {
"error": { "error": {
"internalServerError": "" "internalServerError": "A hálózati vezérlő összefoglalójának letöltése nem sikerült"
} }
}, },
"firewall": { "firewall": {
"name": "", "name": "Tűzfal-felügyelet",
"description": "", "description": "Megjeleníti a tűzfalak összefoglalóját",
"tab": { "tab": {
"system": "", "system": "Rendszer",
"interfaces": "" "interfaces": "Interfészek"
}, },
"error": { "error": {
"internalServerError": "" "internalServerError": "Nem sikerült adatokat lekérni a tűzfalról"
}, },
"option": { "option": {
"interfaces": "" "interfaces": "Megjelenítendő hálózati interfészek"
}, },
"widget": { "widget": {
"fwname": "", "fwname": "Név",
"version": "", "version": "Verzió",
"versiontitle": "", "versiontitle": "Verziók",
"cputitle": "CPU használat", "cputitle": "CPU használat",
"memorytitle": "Memória használat", "memorytitle": "Memória használat",
"cpu": "CPU", "cpu": "CPU",
@@ -2942,63 +2942,63 @@
"cpu": "CPU", "cpu": "CPU",
"memory": "RAM", "memory": "RAM",
"gpu": "GPU", "gpu": "GPU",
"network": "", "network": "NET",
"up": "", "up": "FÖNN",
"down": "" "down": "LENN"
} }
}, },
"systemDisks": { "systemDisks": {
"name": "", "name": "Rendszer lemezek",
"description": "", "description": "A rendszer lemezhasználata",
"option": { "option": {
"showTemperatureIfAvailable": { "showTemperatureIfAvailable": {
"label": "" "label": "Ha elérhető, mutassa a hőmérsékletet"
}, },
"displayMode": { "displayMode": {
"label": "", "label": "Megjelenítési mód",
"option": { "option": {
"percentage": { "percentage": {
"label": "" "label": "Százalék (pl: 76%)"
}, },
"absolute": { "absolute": {
"label": "" "label": "Abszolút értékek (pl. 800 Gb / 1 Tb)"
}, },
"free": { "free": {
"label": "" "label": "A szabad hely aránya (pl. 24% szabad)"
} }
} }
}, },
"showBackgroundBar": { "showBackgroundBar": {
"label": "" "label": "Háttérhasználati sáv megjelenítése"
} }
}, },
"status": { "status": {
"unhealthy": "" "unhealthy": "Hibás"
} }
} }
}, },
"widgetPreview": { "widgetPreview": {
"toggle": { "toggle": {
"enabled": "", "enabled": "Szerkesztési mód engedélyezve",
"disabled": "" "disabled": "Szerkesztési mód tiltva"
}, },
"dimensions": { "dimensions": {
"title": "" "title": "Dimenzió váltása"
} }
}, },
"board": { "board": {
"action": { "action": {
"duplicate": { "duplicate": {
"title": "", "title": "Tábla duplikálása",
"message": "", "message": "Ezzel a {name} tábla teljes tartalmával együtt duplikálódik. Ha a widgetek olyan integrációkra hivatkoznak, amelyek használata nem engedélyezett, azok eltávolításra kerülnek.",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Tábla duplikálva",
"message": "" "message": "A tábla sikeresen duplikálódott"
}, },
"error": { "error": {
"title": "", "title": "Nem lehet duplikálni a táblát",
"message": "" "message": "Nem tudtam duplikálni a táblát"
} }
} }
}, },
@@ -3006,44 +3006,44 @@
"notification": { "notification": {
"success": { "success": {
"title": "A módosítások sikeresen alkalmazva", "title": "A módosítások sikeresen alkalmazva",
"message": "" "message": "A tábla sikeresen elmentve"
}, },
"error": { "error": {
"title": "Nem sikerült alkalmazni a változtatásokat", "title": "Nem sikerült alkalmazni a változtatásokat",
"message": "" "message": "A táblát nem sikerült elmenteni"
} }
}, },
"confirmLeave": { "confirmLeave": {
"title": "", "title": "Mentetlen változtatások",
"message": "" "message": "Nem mentett változtatásai vannak, biztosan el akarja hagyni az oldalt?"
} }
}, },
"oldImport": { "oldImport": {
"label": "", "label": "Importálás a homarr 1.0.0 előtti verzióból",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Sikeres importálás",
"message": "" "message": "A tábla sikeresen importálva"
}, },
"error": { "error": {
"title": "", "title": "Importálás nem sikerült",
"message": "" "message": "Táblát nem sikerült importálni; további részletekért nézd meg a naplófájlokat"
} }
}, },
"form": { "form": {
"file": { "file": {
"label": "", "label": "JSON fájl kiválasztása",
"invalidError": "" "invalidError": "Érvénytelen konfigurációs fájl"
}, },
"apps": { "apps": {
"label": "Alkalmazások", "label": "Alkalmazások",
"avoidDuplicates": { "avoidDuplicates": {
"label": "", "label": "Kerülje az ismétlődéseket",
"description": "" "description": "Nem veszi figyelembe azokat az alkalmazásokat, amelyeknél már létezik azonos href-vel rendelkező alkalmazás"
}, },
"onlyImportApps": { "onlyImportApps": {
"label": "", "label": "Csak alkalmazások importálása",
"description": "" "description": "Csak az alkalmazásokat adja hozzá, a táblát manuálisan kell újra létrehozni"
} }
}, },
"name": { "name": {
@@ -3272,15 +3272,15 @@
"description": "" "description": ""
}, },
"private": { "private": {
"title": "", "title": "Nyilvános tábla készítése",
"description": "" "description": "Biztosan nyilvánossá szeretnéd tenni ezt a fórumot? Ezzel a fórum mindenki számára elérhetővé válik."
} }
} }
}, },
"delete": { "delete": {
"label": "", "label": "Törölje ezt a táblát",
"description": "", "description": "",
"button": "", "button": "Törölje ezt a táblát",
"confirm": { "confirm": {
"title": "Tábla törlése", "title": "Tábla törlése",
"description": "" "description": ""
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Portok" "label": "Portok"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+76 -73
View File
@@ -159,7 +159,7 @@
"label": "Apri risultati di ricerca in una nuova scheda" "label": "Apri risultati di ricerca in una nuova scheda"
}, },
"ddgBangs": { "ddgBangs": {
"label": "" "label": "Abilita bangs DuckDuckGo"
} }
}, },
"error": { "error": {
@@ -252,10 +252,10 @@
"changeDdgBangs": { "changeDdgBangs": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "DuckDuckGo bangs attivato con successo"
}, },
"error": { "error": {
"message": "" "message": "Impossibile attivare i bangs DuckDuckGo"
} }
} }
}, },
@@ -1093,7 +1093,7 @@
}, },
"colorScheme": { "colorScheme": {
"options": { "options": {
"auto": "", "auto": "Automatico",
"light": "Chiaro", "light": "Chiaro",
"dark": "Scuro" "dark": "Scuro"
} }
@@ -2111,101 +2111,101 @@
} }
}, },
"umami": { "umami": {
"name": "", "name": "Umami Analytics",
"description": "", "description": "Visualizza le statistiche dei visitatori dall'istanza Umami analytics",
"visitors": "", "visitors": "visitatori",
"active": "", "active": "attivo",
"pageviews": "", "pageviews": "pagine viste",
"visits": "", "visits": "visite",
"bounceRate": "", "bounceRate": "rimbalzo",
"avgDuration": "", "avgDuration": "media",
"option": { "option": {
"websiteId": { "websiteId": {
"label": "", "label": "Sito web",
"description": "", "description": "Seleziona un sito web tracciato dalla tua istanza di Umami",
"placeholder": "", "placeholder": "Seleziona un sito web",
"loading": "", "loading": "Caricamento siti web...",
"noWebsites": "", "noWebsites": "Nessun sito web trovato",
"configureIntegrationFirst": "" "configureIntegrationFirst": "Connetti prima un'integrazione Umami"
}, },
"timeFrame": { "timeFrame": {
"label": "", "label": "Intervallo di tempo",
"description": "", "description": "Il periodo di tempo per visualizzare i dati dei visitatori per",
"option": { "option": {
"today": "", "today": "Oggi",
"24h": "", "24h": "Ultime 24 ore",
"7d": "", "7d": "Ultimi 7 giorni",
"30d": "", "30d": "Ultimi 30 giorni",
"month": "", "month": "Questo mese",
"lastMonth": "" "lastMonth": "Mese precedente"
} }
}, },
"eventName": { "eventName": {
"label": "", "label": "Evento",
"description": "", "description": "Mostra le occorrenze totali di un evento specifico",
"placeholder": "", "placeholder": "Seleziona un evento",
"loading": "", "loading": "Caricamento eventi...",
"noEvents": "", "noEvents": "Nessun evento trovato",
"none": "", "none": "Nessun evento",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Seleziona un sito web prima di caricare gli eventi"
}, },
"chartType": { "chartType": {
"label": "", "label": "Tipo di grafico",
"description": "", "description": "Stile di visualizzazione del grafico",
"option": { "option": {
"bar": "", "bar": "Grafico a barre",
"sparkline": "" "sparkline": "Grafico a linee compatto"
} }
}, },
"chartStyle": { "chartStyle": {
"label": "", "label": "Stile del grafico",
"description": "", "description": "Come visualizzare la serie di eventi nel grafico",
"option": { "option": {
"grouped": "", "grouped": "Affiancati",
"overlay": "" "overlay": "Sovrapponi (subset)"
} }
}, },
"viewMode": { "viewMode": {
"label": "", "label": "Vista",
"description": "", "description": "Cosa mostrare nel corpo del widget",
"option": { "option": {
"chart": "", "chart": "Grafico",
"events": "", "events": "Grafico degli eventi",
"topPages": "", "topPages": "Pagine più visitate",
"topReferrers": "" "topReferrers": "Referrer principali"
} }
}, },
"eventNames": { "eventNames": {
"label": "", "label": "Eventi",
"description": "", "description": "Scegli uno o più eventi per il grafico",
"placeholder": "", "placeholder": "Seleziona eventi...",
"loading": "", "loading": "Caricamento eventi...",
"noEvents": "", "noEvents": "Nessun evento trovato",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Seleziona prima un sito web per caricare gli eventi"
}, },
"topCount": { "topCount": {
"label": "", "label": "Elementi da mostrare",
"description": "" "description": "Numero di elementi principali da visualizzare (max 500)"
} }
}, },
"event": { "event": {
"occurrences": "", "occurrences": "eventi",
"label": "" "label": "eventi"
}, },
"topPages": { "topPages": {
"direct": "" "direct": "Diretto"
}, },
"topReferrers": { "topReferrers": {
"direct": "" "direct": "Diretto"
}, },
"events": { "events": {
"selectPrompt": "" "selectPrompt": "Seleziona gli eventi per il grafico"
}, },
"error": { "error": {
"noIntegration": "", "noIntegration": "Nessuna integrazione di Umami configurata",
"noWebsite": "", "noWebsite": "Nessun sito web configurato",
"noData": "", "noData": "Nessun dato disponibile",
"internalServerError": "" "internalServerError": "Recupero dati Umami fallito"
} }
}, },
"common": { "common": {
@@ -3680,7 +3680,7 @@
"defaultColorScheme": { "defaultColorScheme": {
"label": "Schema colore predefinito", "label": "Schema colore predefinito",
"options": { "options": {
"auto": "", "auto": "Automatico",
"light": "Chiaro", "light": "Chiaro",
"dark": "Scuro" "dark": "Scuro"
} }
@@ -3783,7 +3783,7 @@
"label": "Tracearr" "label": "Tracearr"
}, },
"umamiActiveVisitors": { "umamiActiveVisitors": {
"label": "" "label": "Visitatori Attivi Umami"
} }
}, },
"interval": { "interval": {
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porte" "label": "Porte"
},
"host": {
"label": "Host"
} }
}, },
"action": { "action": {
@@ -4496,7 +4499,7 @@
"title": "Comandi generali", "title": "Comandi generali",
"option": { "option": {
"colorScheme": { "colorScheme": {
"auto": "", "auto": "Attiva/Disattiva modalità aspetto",
"light": "Passa al tema chiaro", "light": "Passa al tema chiaro",
"dark": "Passa al tema scuro" "dark": "Passa al tema scuro"
}, },
@@ -4548,13 +4551,13 @@
"group": { "group": {
"searchEngine": { "searchEngine": {
"title": "Motori di ricerca", "title": "Motori di ricerca",
"tipDdgBangs": "", "tipDdgBangs": "Suggerimento: puoi usare anche i bang di DuckDuckGo, ad esempio !qualcosa",
"bang": { "bang": {
"searchWithQuery": "", "searchWithQuery": "Cerca \"{query}\" con {label}",
"pressEnterToOpen": "", "pressEnterToOpen": "Premere Invio per aprire",
"engineSelected": "", "engineSelected": "{label} selezionato (!{bang})",
"typeQueryToContinue": "", "typeQueryToContinue": "Digita la tua query di ricerca per continuare",
"emptyBangHint": "" "emptyBangHint": "Digita un bang, ad es. !yt, poi premi Spazio per selezionare"
}, },
"children": { "children": {
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "ポート" "label": "ポート"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "포트" "label": "포트"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Prievadai" "label": "Prievadai"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Poorten" "label": "Poorten"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+76 -73
View File
@@ -159,7 +159,7 @@
"label": "Åpne søkeresultater i ny fane" "label": "Åpne søkeresultater i ny fane"
}, },
"ddgBangs": { "ddgBangs": {
"label": "" "label": "Aktiver DuckDuckGo bangs"
} }
}, },
"error": { "error": {
@@ -252,10 +252,10 @@
"changeDdgBangs": { "changeDdgBangs": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "DuckDuckGo bangs er endret vellykket"
}, },
"error": { "error": {
"message": "" "message": "Kan ikke slå av/på DuckDuckGo bangs"
} }
} }
}, },
@@ -1093,7 +1093,7 @@
}, },
"colorScheme": { "colorScheme": {
"options": { "options": {
"auto": "", "auto": "Auto",
"light": "Lys", "light": "Lys",
"dark": "Mørk" "dark": "Mørk"
} }
@@ -2111,101 +2111,101 @@
} }
}, },
"umami": { "umami": {
"name": "", "name": "Umami Analytics",
"description": "", "description": "Vise besøkende statistikk fra din Umami-analyseinstans",
"visitors": "", "visitors": "besøkende",
"active": "", "active": "aktiv",
"pageviews": "", "pageviews": "sidevisninger",
"visits": "", "visits": "besøk",
"bounceRate": "", "bounceRate": "tilbakesende",
"avgDuration": "", "avgDuration": "gjennomsnitt",
"option": { "option": {
"websiteId": { "websiteId": {
"label": "", "label": "Nettsted",
"description": "", "description": "Velg et nettsted som spores av Umami-instansen din",
"placeholder": "", "placeholder": "Velg en nettside",
"loading": "", "loading": "Laster inn nettsteder...",
"noWebsites": "", "noWebsites": "Ingen nettsteder ble funnet",
"configureIntegrationFirst": "" "configureIntegrationFirst": "Koble til en Umami integrasjon først"
}, },
"timeFrame": { "timeFrame": {
"label": "", "label": "Tidsramme",
"description": "", "description": "Tidsperiode som skal vise besøkende data for",
"option": { "option": {
"today": "", "today": "I dag",
"24h": "", "24h": "Siste 24 timer",
"7d": "", "7d": "Siste 7 dager",
"30d": "", "30d": "Siste 30 dager",
"month": "", "month": "Denne måneden",
"lastMonth": "" "lastMonth": "Siste måned"
} }
}, },
"eventName": { "eventName": {
"label": "", "label": "Hendelse",
"description": "", "description": "Vis totale forekomster av en bestemt hendelse",
"placeholder": "", "placeholder": "Velg en hendelse",
"loading": "", "loading": "Laster inn hendelser...",
"noEvents": "", "noEvents": "Ingen hendelser funnet",
"none": "", "none": "Ingen hendelser",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Velg en nettside først for å laste inn hendelser"
}, },
"chartType": { "chartType": {
"label": "", "label": "Diagramtype",
"description": "", "description": "Vis stil for diagrammet",
"option": { "option": {
"bar": "", "bar": "Søylediagram",
"sparkline": "" "sparkline": "Minigraf"
} }
}, },
"chartStyle": { "chartStyle": {
"label": "", "label": "Diagramtype",
"description": "", "description": "Hvordan vise hendelsesserier i diagrammet",
"option": { "option": {
"grouped": "", "grouped": "Side om side",
"overlay": "" "overlay": "Overlegg (delmengde)"
} }
}, },
"viewMode": { "viewMode": {
"label": "", "label": "Visning",
"description": "", "description": "Hva skal vises i widgetkroppen",
"option": { "option": {
"chart": "", "chart": "Diagram",
"events": "", "events": "Hendelser diagram",
"topPages": "", "topPages": "Toppsider",
"topReferrers": "" "topReferrers": "Topp referenter"
} }
}, },
"eventNames": { "eventNames": {
"label": "", "label": "Hendelser",
"description": "", "description": "Velg ett eller flere hendelser i diagrammet",
"placeholder": "", "placeholder": "Velg en hendelse...",
"loading": "", "loading": "Laster inn hendelser...",
"noEvents": "", "noEvents": "Ingen hendelser funnet",
"configureWebsiteFirst": "" "configureWebsiteFirst": "Velg en nettside først for å laste inn hendelser"
}, },
"topCount": { "topCount": {
"label": "", "label": "Gjenstander å vise",
"description": "" "description": "Antall oppføringer som skal vises (maks 500)"
} }
}, },
"event": { "event": {
"occurrences": "", "occurrences": "hendelser",
"label": "" "label": "hendelser"
}, },
"topPages": { "topPages": {
"direct": "" "direct": "Direkte"
}, },
"topReferrers": { "topReferrers": {
"direct": "" "direct": "Direkte"
}, },
"events": { "events": {
"selectPrompt": "" "selectPrompt": "Velg hendelser for å diagram"
}, },
"error": { "error": {
"noIntegration": "", "noIntegration": "Ingen Umami integrasjon konfigurert",
"noWebsite": "", "noWebsite": "Ingen nettsted konfigurert",
"noData": "", "noData": "Ingen data tilgjengelig",
"internalServerError": "" "internalServerError": "Kunne ikke hente Umami data"
} }
}, },
"common": { "common": {
@@ -3680,7 +3680,7 @@
"defaultColorScheme": { "defaultColorScheme": {
"label": "Standard fargetema", "label": "Standard fargetema",
"options": { "options": {
"auto": "", "auto": "Auto",
"light": "Lys", "light": "Lys",
"dark": "Mørk" "dark": "Mørk"
} }
@@ -3783,7 +3783,7 @@
"label": "Tracearr" "label": "Tracearr"
}, },
"umamiActiveVisitors": { "umamiActiveVisitors": {
"label": "" "label": "Umami Aktive Besøkende"
} }
}, },
"interval": { "interval": {
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porter" "label": "Porter"
},
"host": {
"label": "Vert"
} }
}, },
"action": { "action": {
@@ -4496,7 +4499,7 @@
"title": "Globale kommandoer", "title": "Globale kommandoer",
"option": { "option": {
"colorScheme": { "colorScheme": {
"auto": "", "auto": "Bytt visningsmodus",
"light": "Bytt til lys modus", "light": "Bytt til lys modus",
"dark": "Bytt til mørk modus" "dark": "Bytt til mørk modus"
}, },
@@ -4548,13 +4551,13 @@
"group": { "group": {
"searchEngine": { "searchEngine": {
"title": "Søkemotorer", "title": "Søkemotorer",
"tipDdgBangs": "", "tipDdgBangs": "Tips: Du kan også bruke DuckDuckGo-bangs her, f.eks. !something",
"bang": { "bang": {
"searchWithQuery": "", "searchWithQuery": "Søk etter \"{query}\" med {label}",
"pressEnterToOpen": "", "pressEnterToOpen": "Trykk på Enter for å åpne",
"engineSelected": "", "engineSelected": "{label} valgt (!{bang})",
"typeQueryToContinue": "", "typeQueryToContinue": "Skriv inn søkeordet for å fortsette",
"emptyBangHint": "" "emptyBangHint": "Skriv inn en bang, f.eks. !yt, og trykk deretter på mellomrom for å velge"
}, },
"children": { "children": {
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porty" "label": "Porty"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Portas" "label": "Portas"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "" "label": ""
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porturi" "label": "Porturi"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Порты" "label": "Порты"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Porty" "label": "Porty"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Vrata" "label": "Vrata"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Portar" "label": "Portar"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Bağlantı noktaları" "label": "Bağlantı noktaları"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Порти" "label": "Порти"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "Cổng" "label": "Cổng"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+3
View File
@@ -3970,6 +3970,9 @@
}, },
"ports": { "ports": {
"label": "端口" "label": "端口"
},
"host": {
"label": ""
} }
}, },
"action": { "action": {
+13
View File
@@ -79,6 +79,19 @@ const createColumns = (
return <ContainerStateBadge state={row.original.state} />; return <ContainerStateBadge state={row.original.state} />;
}, },
}, },
{
id: "host",
accessorKey: "host",
size: 100,
header: t("field.host.label"),
Cell({ row }) {
return (
<Text size="xs" truncate="end">
{row.original.host}
</Text>
);
},
},
{ {
id: "cpuUsage", id: "cpuUsage",
sortingFn: (rowA, rowB) => { sortingFn: (rowA, rowB) => {
+1162 -1145
View File
File diff suppressed because it is too large. Load diff
+38 -79
View File
@@ -2,35 +2,19 @@ packages:
- apps/* - apps/*
- packages/* - packages/*
- tooling/* - tooling/*
allowBuilds:
"@scarf/scarf": false
"@swc/core": false
"@tree-sitter-grammars/tree-sitter-yaml": true
bcrypt: true
better-sqlite3: true
core-js-pure: false
cpu-features: true
esbuild: true
protobufjs: false
sharp: true
ssh2: true
tree-sitter: true
tree-sitter-json: true
nice-napi: false
allowUnusedPatches: true
catalog: catalog:
"@auth/core": ^0.41.2 "@auth/core": ^0.41.2
"@auth/drizzle-adapter": ^1.11.2 "@auth/drizzle-adapter": ^1.11.2
"@ctrl/deluge": ^8.0.0 "@ctrl/deluge": ^8.0.0
"@ctrl/qbittorrent": ^9.11.2 "@ctrl/qbittorrent": ^9.12.1
"@ctrl/transmission": ^7.4.0 "@ctrl/transmission": ^7.4.0
"@dnd-kit/core": ^6.3.1 "@dnd-kit/core": ^6.3.1
"@dnd-kit/modifiers": ^9.0.0 "@dnd-kit/modifiers": ^9.0.0
"@dnd-kit/sortable": ^10.0.0 "@dnd-kit/sortable": ^10.0.0
"@dnd-kit/utilities": ^3.2.2 "@dnd-kit/utilities": ^3.2.2
"@drizzle-team/brocli": ^0.12.0 "@drizzle-team/brocli": ^0.12.0
"@eslint/js": 10.0.1 '@eslint/js': 10.0.1
"@extractus/feed-extractor": 7.1.7 "@extractus/feed-extractor": 7.2.1
"@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
@@ -50,45 +34,45 @@ catalog:
"@mantine/spotlight": ^8.3.18 "@mantine/spotlight": ^8.3.18
"@mantine/tiptap": ^8.3.18 "@mantine/tiptap": ^8.3.18
"@million/lint": 1.0.14 "@million/lint": 1.0.14
"@next/eslint-plugin-next": 16.2.4 "@next/eslint-plugin-next": 16.2.6
"@octokit/auth-app": ^8.2.0 "@octokit/auth-app": ^8.2.0
"@paralleldrive/cuid2": ^3.3.0 "@paralleldrive/cuid2": ^3.3.0
"@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.6 "@semantic-release/github": ^12.0.8
"@semantic-release/npm": ^13.1.5 "@semantic-release/npm": ^13.1.5
"@semantic-release/release-notes-generator": ^14.1.0 "@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.41.1 "@tabler/icons-react": ^3.44.0
"@tanstack/react-query": ^5.100.8 "@tanstack/react-query": ^5.100.9
"@tanstack/react-query-devtools": ^5.100.8 "@tanstack/react-query-devtools": ^5.100.9
"@tanstack/react-query-next-experimental": ^5.100.8 "@tanstack/react-query-next-experimental": ^5.100.9
"@testcontainers/mysql": ^11.14.0 "@testcontainers/mysql": ^11.14.0
"@testcontainers/postgresql": ^11.14.0 "@testcontainers/postgresql": ^11.14.0
"@testcontainers/redis": ^11.14.0 "@testcontainers/redis": ^11.14.0
"@tiptap/extension-color": 3.22.5 "@tiptap/extension-color": 3.23.1
"@tiptap/extension-highlight": 3.22.5 "@tiptap/extension-highlight": 3.23.1
"@tiptap/extension-image": 3.22.5 "@tiptap/extension-image": 3.23.1
"@tiptap/extension-link": ^3.22.5 "@tiptap/extension-link": ^3.23.1
"@tiptap/extension-placeholder": ^3.22.5 "@tiptap/extension-placeholder": ^3.23.1
"@tiptap/extension-table": 3.22.5 "@tiptap/extension-table": 3.23.1
"@tiptap/extension-table-cell": 3.22.5 "@tiptap/extension-table-cell": 3.23.1
"@tiptap/extension-table-header": 3.22.5 "@tiptap/extension-table-header": 3.23.1
"@tiptap/extension-table-row": 3.22.5 "@tiptap/extension-table-row": 3.23.1
"@tiptap/extension-task-item": 3.22.5 "@tiptap/extension-task-item": 3.23.1
"@tiptap/extension-task-list": 3.22.5 "@tiptap/extension-task-list": 3.23.1
"@tiptap/extension-text-align": 3.22.5 "@tiptap/extension-text-align": 3.23.1
"@tiptap/extension-text-style": 3.22.5 "@tiptap/extension-text-style": 3.23.1
"@tiptap/extension-underline": 3.22.5 "@tiptap/extension-underline": 3.23.1
"@tiptap/react": ^3.22.5 "@tiptap/react": ^3.23.1
"@tiptap/starter-kit": ^3.22.5 "@tiptap/starter-kit": ^3.23.1
"@trpc/client": ^11.17.0 "@trpc/client": ^11.17.0
"@trpc/next": ^11.17.0 "@trpc/next": ^11.17.0
"@trpc/react-query": ^11.17.0 "@trpc/react-query": ^11.17.0
"@trpc/server": ^11.17.0 "@trpc/server": ^11.17.0
"@trpc/tanstack-react-query": ^11.17.0 "@trpc/tanstack-react-query": ^11.17.0
"@turbo/gen": ^2.9.7 "@turbo/gen": ^2.9.12
"@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
@@ -97,7 +81,7 @@ catalog:
"@types/crypto-js": ^4.2.2 "@types/crypto-js": ^4.2.2
"@types/css-modules": ^1.0.5 "@types/css-modules": ^1.0.5
"@types/dockerode": ^4.0.1 "@types/dockerode": ^4.0.1
"@types/node": ^24.12.2 "@types/node": ^24.12.3
"@types/node-unifi": ^2.5.1 "@types/node-unifi": ^2.5.1
"@types/pg": ^8.20.0 "@types/pg": ^8.20.0
"@types/prismjs": ^1.26.6 "@types/prismjs": ^1.26.6
@@ -139,19 +123,19 @@ catalog:
esbuild: ^0.28.0 esbuild: ^0.28.0
eslint: ^10.3.0 eslint: ^10.3.0
eslint-config-prettier: ^10.1.8 eslint-config-prettier: ^10.1.8
eslint-config-turbo: ^2.9.7 eslint-config-turbo: ^2.9.12
eslint-plugin-import: ^2.32.0 eslint-plugin-import: ^2.32.0
eslint-plugin-jsx-a11y: ^6.10.2 eslint-plugin-jsx-a11y: ^6.10.2
eslint-plugin-react: ^7.37.5 eslint-plugin-react: ^7.37.5
eslint-plugin-react-hooks: ^6.1.1 eslint-plugin-react-hooks: ^6.1.1
fast-xml-parser: ^5.7.2 fast-xml-parser: ^5.7.3
fastify: ^5.8.5 fastify: ^5.8.5
flag-icons: ^7.5.0 flag-icons: ^7.5.0
glob: ^13.0.6 glob: ^13.0.6
ical.js: ^2.2.1 ical.js: ^2.2.1
ioredis: 5.10.1 ioredis: 5.10.1
isomorphic-dompurify: ^3.12.0 isomorphic-dompurify: ^3.12.0
jotai: ^2.19.1 jotai: ^2.20.0
jsdom: ^29.1.1 jsdom: ^29.1.1
json5: ^2.2.3 json5: ^2.2.3
ldapts: 8.1.7 ldapts: 8.1.7
@@ -160,9 +144,9 @@ catalog:
mantine-react-table: 2.0.0-beta.9 mantine-react-table: 2.0.0-beta.9
maria2: ^0.4.1 maria2: ^0.4.1
mysql2: 3.22.3 mysql2: 3.22.3
next: 16.2.4 next: 16.2.6
next-auth: 5.0.0-beta.31 next-auth: 5.0.0-beta.31
next-intl: 4.11.0 next-intl: 4.11.1
node-loader: ^2.1.0 node-loader: ^2.1.0
octokit: ^5.0.5 octokit: ^5.0.5
pg: ^8.20.0 pg: ^8.20.0
@@ -171,8 +155,8 @@ catalog:
prettier-plugin-packagejson: ^3.0.2 prettier-plugin-packagejson: ^3.0.2
prismjs: ^1.30.0 prismjs: ^1.30.0
proxmox-api: 1.1.1 proxmox-api: 1.1.1
react: 19.2.5 react: 19.2.6
react-dom: 19.2.5 react-dom: 19.2.6
react-error-boundary: ^6.1.1 react-error-boundary: ^6.1.1
react-markdown: ^10.1.0 react-markdown: ^10.1.0
react-quill-new: ^3.8.3 react-quill-new: ^3.8.3
@@ -187,9 +171,9 @@ catalog:
testcontainers: ^11.14.0 testcontainers: ^11.14.0
timezones-ical-library: ^2.2.0 timezones-ical-library: ^2.2.0
trpc-to-openapi: ^3.2.0 trpc-to-openapi: ^3.2.0
tsdav: ^2.2.0 tsdav: ^2.2.1
tsx: 4.20.4 tsx: 4.20.4
turbo: ^2.9.7 turbo: ^2.9.12
typescript: ^5.9.3 typescript: ^5.9.3
typescript-eslint: ^8.58.2 typescript-eslint: ^8.58.2
undici: 7.24.6 undici: 7.24.6
@@ -201,36 +185,11 @@ catalog:
ws: ^8.20.0 ws: ^8.20.0
xml2js: ^0.6.2 xml2js: ^0.6.2
yaml: 2.8.4 yaml: 2.8.4
zod: ^4.4.2 zod: ^4.4.3
zod-form-data: ^3.0.1 zod-form-data: ^3.0.1
zod-validation-error: ^5.0.0 zod-validation-error: ^5.0.0
catalogMode: strict catalogMode: strict
engineStrict: true
minimumReleaseAge: 4320 minimumReleaseAge: 4320
minimumReleaseAgeExclude: minimumReleaseAgeExclude:
- next - next
- "@next/*" - "@next/*"
nodeLinker: hoisted
overrides:
"@babel/helpers@<7.26.10": ">=7.29.2"
"@babel/runtime@<7.26.10": ">=7.29.2"
"axios@>=1.0.0 <1.8.2": ">=1.16.0"
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5"
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5"
"esbuild@<=0.24.2": ">=0.28.0"
"form-data@>=4.0.0 <4.0.4": ">=4.0.5"
"hono@<4.6.5": ">=4.12.16"
"linkifyjs@<4.3.2": ">=4.3.2"
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11"
"prismjs@<1.30.0": ">=1.30.0"
"proxmox-api>undici": "7.24.6"
"react-is": "^19.2.5"
"rollup@>=4.0.0 <4.22.4": ">=4.60.2"
"sha.js@<=2.4.11": ">=2.4.12"
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2"
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2"
"tmp@<=0.2.3": ">=0.2.5"
"vite@>=5.0.0 <=5.4.18": ">=8.0.10"
patchedDependencies:
"@types/node-unifi": "patches/@types__node-unifi.patch"
trpc-to-openapi: "patches/trpc-to-openapi.patch"
+13
View File
@@ -18,6 +18,19 @@ if [ "${PUID}" != "0" ] || [ "${PGID}" != "0" ]; then
echo "Changing owner to $PUID:$PGID, done." echo "Changing owner to $PUID:$PGID, done."
fi fi
# support _FILE Suffix for environment variables
for file_var in $(env | cut -d '=' -f 1 | grep "_FILE$"); do
target_var=$(echo "$file_var" | cut -d'=' -f1 | sed 's/_FILE//')
file_path=$(printenv "$file_var")
if [ -f "$file_path" ]; then
export "$target_var"=$(cat "$file_path" | tr -d '\n\r')
echo "Info: Loaded secret for $target_var from $file_path"
else
echo "Warning: Secret file $file_path not found for $target_var"
fi
done
if [ "${PUID}" != "0" ]; then if [ "${PUID}" != "0" ]; then
exec su-exec $PUID:$PGID "$@" exec su-exec $PUID:$PGID "$@"
else else
+1 -16
View File
@@ -16,13 +16,6 @@ fi
# Auth secret is generated every time the container starts as it is required, but not used because we don't need JWTs or Mail hashing # Auth secret is generated every time the container starts as it is required, but not used because we don't need JWTs or Mail hashing
export AUTH_SECRET=$(openssl rand -base64 32) export AUTH_SECRET=$(openssl rand -base64 32)
# Cron job API key is generated every time the container starts as it is required for communication between nextjs-api and tasks-api
export CRON_JOB_API_KEY=$(openssl rand -base64 32)
# Support secret file for encryption key (is not empty and file exists)
if [ -n "$SECRET_ENCRYPTION_KEY_FILE" ] && [ -f "$SECRET_ENCRYPTION_KEY_FILE" ]; then
export SECRET_ENCRYPTION_KEY=$(cat $SECRET_ENCRYPTION_KEY_FILE)
fi
# Start nginx proxy # Start nginx proxy
# 1. Replace the HOSTNAME in the nginx template file # 1. Replace the HOSTNAME in the nginx template file
@@ -43,21 +36,13 @@ else
REDIS_PID=$! REDIS_PID=$!
fi fi
node apps/tasks/tasks.cjs &
TASKS_PID=$!
node apps/websocket/wssServer.cjs &
WSS_PID=$!
node apps/nextjs/server.js & node apps/nextjs/server.js &
NEXTJS_PID=$! NEXTJS_PID=$!
# Function to handle SIGTERM and shut down services # Function to handle SIGTERM and shut down services
terminate() { terminate() {
echo "Received SIGTERM. Shutting down..." echo "Received SIGTERM. Shutting down..."
kill -TERM $NGINX_PID $TASKS_PID $WSS_PID $NEXTJS_PID 2>/dev/null kill -TERM $NGINX_PID $NEXTJS_PID 2>/dev/null
wait wait
# kill redis-server last because of logging of other services and only if $REDIS_PID is set # kill redis-server last because of logging of other services and only if $REDIS_PID is set
if [ -n "$REDIS_PID" ]; then if [ -n "$REDIS_PID" ]; then
+1 -1
View File
@@ -1 +1 @@
[{"login":"ajnart","avatar_url":"https://avatars.githubusercontent.com/u/49837342?v=4"},{"login":"manuel-rw","avatar_url":"https://avatars.githubusercontent.com/u/30572287?v=4"},{"login":"Meierschlumpf","avatar_url":"https://avatars.githubusercontent.com/u/63781622?v=4"},{"login":"SeDemal","avatar_url":"https://avatars.githubusercontent.com/u/26098587?v=4"},{"login":"lammersbjorn","avatar_url":"https://avatars.githubusercontent.com/u/71191962?v=4"},{"login":"LarveyOfficial","avatar_url":"https://avatars.githubusercontent.com/u/39219859?v=4"},{"login":"c00ldude1oo","avatar_url":"https://avatars.githubusercontent.com/u/15677803?v=4"},{"login":"InterN0te","avatar_url":"https://avatars.githubusercontent.com/u/10882916?v=4"},{"login":"Aimsucks","avatar_url":"https://avatars.githubusercontent.com/u/1828486?v=4"},{"login":"JannesV","avatar_url":"https://avatars.githubusercontent.com/u/5984244?v=4"},{"login":"MauriceNino","avatar_url":"https://avatars.githubusercontent.com/u/18658092?v=4"},{"login":"hillaliy","avatar_url":"https://avatars.githubusercontent.com/u/950010?v=4"},{"login":"Skeeww","avatar_url":"https://avatars.githubusercontent.com/u/9639992?v=4"},{"login":"RichyHBM","avatar_url":"https://avatars.githubusercontent.com/u/5472275?v=4"},{"login":"Bonfire","avatar_url":"https://avatars.githubusercontent.com/u/5704760?v=4"},{"login":"wieli99","avatar_url":"https://avatars.githubusercontent.com/u/46794825?v=4"},{"login":"ishaanparlikar","avatar_url":"https://avatars.githubusercontent.com/u/43013132?v=4"},{"login":"Zareix","avatar_url":"https://avatars.githubusercontent.com/u/29818713?v=4"},{"login":"tuggan","avatar_url":"https://avatars.githubusercontent.com/u/4325608?v=4"},{"login":"Spillebulle","avatar_url":"https://avatars.githubusercontent.com/u/46653946?v=4"},{"login":"spkesDE","avatar_url":"https://avatars.githubusercontent.com/u/1682314?v=4"},{"login":"j3lte","avatar_url":"https://avatars.githubusercontent.com/u/2557568?v=4"},{"login":"dslatt","avatar_url":"https://avatars.githubusercontent.com/u/5211001?v=4"},{"login":"Malong11-007","avatar_url":"https://avatars.githubusercontent.com/u/40298510?v=4"},{"login":"StefanB7","avatar_url":"https://avatars.githubusercontent.com/u/22056509?v=4"},{"login":"souravghosh01","avatar_url":"https://avatars.githubusercontent.com/u/37548139?v=4"},{"login":"SR3u","avatar_url":"https://avatars.githubusercontent.com/u/2380522?v=4"},{"login":"Rikpat","avatar_url":"https://avatars.githubusercontent.com/u/33869814?v=4"},{"login":"NormanJS","avatar_url":"https://avatars.githubusercontent.com/u/83409549?v=4"},{"login":"No-Maines-Land","avatar_url":"https://avatars.githubusercontent.com/u/20687725?v=4"},{"login":"stark1tty","avatar_url":"https://avatars.githubusercontent.com/u/69326376?v=4"},{"login":"Momcilo42","avatar_url":"https://avatars.githubusercontent.com/u/10118137?v=4"},{"login":"marius-arch","avatar_url":"https://avatars.githubusercontent.com/u/72494359?v=4"},{"login":"Lumilias","avatar_url":"https://avatars.githubusercontent.com/u/10852161?v=4"},{"login":"Havock94","avatar_url":"https://avatars.githubusercontent.com/u/7635248?v=4"},{"login":"Lollyde","avatar_url":"https://avatars.githubusercontent.com/u/11347524?v=4"},{"login":"krishnamuppaneni","avatar_url":"https://avatars.githubusercontent.com/u/4703366?v=4"},{"login":"devtobi","avatar_url":"https://avatars.githubusercontent.com/u/28538704?v=4"},{"login":"TyxTang","avatar_url":"https://avatars.githubusercontent.com/u/90897955?v=4"},{"login":"alotlikebeans","avatar_url":"https://avatars.githubusercontent.com/u/19630511?v=4"},{"login":"WillyJL","avatar_url":"https://avatars.githubusercontent.com/u/49810075?v=4"},{"login":"anonysoul","avatar_url":"https://avatars.githubusercontent.com/u/105715150?v=4"},{"login":"cospeedster","avatar_url":"https://avatars.githubusercontent.com/u/52749645?v=4"},{"login":"diederbert","avatar_url":"https://avatars.githubusercontent.com/u/162878798?v=4"},{"login":"digdilem","avatar_url":"https://avatars.githubusercontent.com/u/4052275?v=4"},{"login":"dinghino","avatar_url":"https://avatars.githubusercontent.com/u/14729459?v=4"},{"login":"gfomichev","avatar_url":"https://avatars.githubusercontent.com/u/1596146?v=4"},{"login":"gnattu","avatar_url":"https://avatars.githubusercontent.com/u/12995396?v=4"},{"login":"tuxpizza","avatar_url":"https://avatars.githubusercontent.com/u/84710786?v=4"},{"login":"xmarkurion","avatar_url":"https://avatars.githubusercontent.com/u/46654687?v=4"},{"login":"huanga","avatar_url":"https://avatars.githubusercontent.com/u/732970?v=4"},{"login":"taos15","avatar_url":"https://avatars.githubusercontent.com/u/122130728?v=4"},{"login":"arghyadipchak","avatar_url":"https://avatars.githubusercontent.com/u/32430374?v=4"},{"login":"AuthorShin","avatar_url":"https://avatars.githubusercontent.com/u/4959043?v=4"},{"login":"benniblot","avatar_url":"https://avatars.githubusercontent.com/u/47495914?v=4"},{"login":"bebsworthy","avatar_url":"https://avatars.githubusercontent.cLine truncated [{"login":"ajnart","avatar_url":"https://avatars.githubusercontent.com/u/49837342?v=4"},{"login":"manuel-rw","avatar_url":"https://avatars.githubusercontent.com/u/30572287?v=4"},{"login":"Meierschlumpf","avatar_url":"https://avatars.githubusercontent.com/u/63781622?v=4"},{"login":"SeDemal","avatar_url":"https://avatars.githubusercontent.com/u/26098587?v=4"},{"login":"lammersbjorn","avatar_url":"https://avatars.githubusercontent.com/u/71191962?v=4"},{"login":"LarveyOfficial","avatar_url":"https://avatars.githubusercontent.com/u/39219859?v=4"},{"login":"c00ldude1oo","avatar_url":"https://avatars.githubusercontent.com/u/15677803?v=4"},{"login":"InterN0te","avatar_url":"https://avatars.githubusercontent.com/u/10882916?v=4"},{"login":"Aimsucks","avatar_url":"https://avatars.githubusercontent.com/u/1828486?v=4"},{"login":"JannesV","avatar_url":"https://avatars.githubusercontent.com/u/5984244?v=4"},{"login":"MauriceNino","avatar_url":"https://avatars.githubusercontent.com/u/18658092?v=4"},{"login":"hillaliy","avatar_url":"https://avatars.githubusercontent.com/u/950010?v=4"},{"login":"Skeeww","avatar_url":"https://avatars.githubusercontent.com/u/9639992?v=4"},{"login":"RichyHBM","avatar_url":"https://avatars.githubusercontent.com/u/5472275?v=4"},{"login":"Bonfire","avatar_url":"https://avatars.githubusercontent.com/u/5704760?v=4"},{"login":"wieli99","avatar_url":"https://avatars.githubusercontent.com/u/46794825?v=4"},{"login":"ishaanparlikar","avatar_url":"https://avatars.githubusercontent.com/u/43013132?v=4"},{"login":"Zareix","avatar_url":"https://avatars.githubusercontent.com/u/29818713?v=4"},{"login":"tuggan","avatar_url":"https://avatars.githubusercontent.com/u/4325608?v=4"},{"login":"Spillebulle","avatar_url":"https://avatars.githubusercontent.com/u/46653946?v=4"},{"login":"spkesDE","avatar_url":"https://avatars.githubusercontent.com/u/1682314?v=4"},{"login":"j3lte","avatar_url":"https://avatars.githubusercontent.com/u/2557568?v=4"},{"login":"dslatt","avatar_url":"https://avatars.githubusercontent.com/u/5211001?v=4"},{"login":"Malong11-007","avatar_url":"https://avatars.githubusercontent.com/u/40298510?v=4"},{"login":"StefanB7","avatar_url":"https://avatars.githubusercontent.com/u/22056509?v=4"},{"login":"souravghosh01","avatar_url":"https://avatars.githubusercontent.com/u/37548139?v=4"},{"login":"SR3u","avatar_url":"https://avatars.githubusercontent.com/u/2380522?v=4"},{"login":"Rikpat","avatar_url":"https://avatars.githubusercontent.com/u/33869814?v=4"},{"login":"NormanJS","avatar_url":"https://avatars.githubusercontent.com/u/83409549?v=4"},{"login":"No-Maines-Land","avatar_url":"https://avatars.githubusercontent.com/u/20687725?v=4"},{"login":"stark1tty","avatar_url":"https://avatars.githubusercontent.com/u/69326376?v=4"},{"login":"Momcilo42","avatar_url":"https://avatars.githubusercontent.com/u/10118137?v=4"},{"login":"marius-arch","avatar_url":"https://avatars.githubusercontent.com/u/72494359?v=4"},{"login":"Lumilias","avatar_url":"https://avatars.githubusercontent.com/u/10852161?v=4"},{"login":"Havock94","avatar_url":"https://avatars.githubusercontent.com/u/7635248?v=4"},{"login":"Lollyde","avatar_url":"https://avatars.githubusercontent.com/u/11347524?v=4"},{"login":"krishnamuppaneni","avatar_url":"https://avatars.githubusercontent.com/u/4703366?v=4"},{"login":"devtobi","avatar_url":"https://avatars.githubusercontent.com/u/28538704?v=4"},{"login":"TyxTang","avatar_url":"https://avatars.githubusercontent.com/u/90897955?v=4"},{"login":"alotlikebeans","avatar_url":"https://avatars.githubusercontent.com/u/19630511?v=4"},{"login":"WillyJL","avatar_url":"https://avatars.githubusercontent.com/u/49810075?v=4"},{"login":"anonysoul","avatar_url":"https://avatars.githubusercontent.com/u/105715150?v=4"},{"login":"cospeedster","avatar_url":"https://avatars.githubusercontent.com/u/52749645?v=4"},{"login":"diederbert","avatar_url":"https://avatars.githubusercontent.com/u/162878798?v=4"},{"login":"digdilem","avatar_url":"https://avatars.githubusercontent.com/u/4052275?v=4"},{"login":"dinghino","avatar_url":"https://avatars.githubusercontent.com/u/14729459?v=4"},{"login":"gfomichev","avatar_url":"https://avatars.githubusercontent.com/u/1596146?v=4"},{"login":"gnattu","avatar_url":"https://avatars.githubusercontent.com/u/12995396?v=4"},{"login":"tuxpizza","avatar_url":"https://avatars.githubusercontent.com/u/84710786?v=4"},{"login":"xmarkurion","avatar_url":"https://avatars.githubusercontent.com/u/46654687?v=4"},{"login":"huanga","avatar_url":"https://avatars.githubusercontent.com/u/732970?v=4"},{"login":"taos15","avatar_url":"https://avatars.githubusercontent.com/u/122130728?v=4"},{"login":"arghyadipchak","avatar_url":"https://avatars.githubusercontent.com/u/32430374?v=4"},{"login":"AuthorShin","avatar_url":"https://avatars.githubusercontent.com/u/4959043?v=4"},{"login":"benniblot","avatar_url":"https://avatars.githubusercontent.com/u/47495914?v=4"},{"login":"bebsworthy","avatar_url":"https://avatars.githubusercontent.cLine truncated
+5 -8
View File
@@ -2,24 +2,21 @@ import fs from "fs/promises";
import { join } from "path"; import { join } from "path";
import json5 from "json5"; import json5 from "json5";
import { describe, test } from "vitest"; import { describe, test } from "vitest";
import { parse as parseYaml } from "yaml";
describe("Renovate configuration tests", () => { describe("Renovate configuration tests", () => {
test("automerge should be disabled for built dependencies", async () => { test("automerge should be disabled for onlyBuiltDependencies", async () => {
const pnpmConfig = await fs.readFile(join(__dirname, "../pnpm-workspace.yaml"), "utf-8").then(parseYaml); const packageJson = await import("../package.json");
const renovateConfig = await fs.readFile(join(__dirname, "../.github/renovate.json5"), "utf-8").then(json5.parse); const renovateConfig = await fs.readFile(join(__dirname, "../.github/renovate.json5"), "utf-8").then(json5.parse);
const dependenciesWithBuilt = Object.entries(pnpmConfig.allowBuilds) const onlyBuiltDependencies = packageJson.pnpm.onlyBuiltDependencies;
.filter(([_, value]) => value === true)
.map(([key, _]) => key);
const automergeDisabledDeps = renovateConfig.packageRules const automergeDisabledDeps = renovateConfig.packageRules
.filter((rule: any) => rule.automerge === false) .filter((rule: any) => rule.automerge === false)
.flatMap((rule: any) => rule.matchPackageNames || []); .flatMap((rule: any) => rule.matchPackageNames || []);
const missingDeps = dependenciesWithBuilt.filter((dep: string) => !automergeDisabledDeps.includes(dep)); const missingDeps = onlyBuiltDependencies.filter((dep: string) => !automergeDisabledDeps.includes(dep));
if (missingDeps.length > 0) { if (missingDeps.length > 0) {
throw new Error( throw new Error(
`The following built dependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`, `The following onlyBuiltDependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`,
); );
} }
}); });
+1
View File
@@ -37,6 +37,7 @@
"DB_DRIVER", "DB_DRIVER",
"DOCKER_HOSTNAMES", "DOCKER_HOSTNAMES",
"DOCKER_PORTS", "DOCKER_PORTS",
"DOCKER_SOCKET_PATHS",
"NODE_ENV", "NODE_ENV",
"PORT", "PORT",
"LOCAL_CERTIFICATE_PATH", "LOCAL_CERTIFICATE_PATH",