Compare commits

...
62 Commits
Author SHA1 Message Date
Releases Homarr 81a8cf4b36 chore(release): 1.0.1 [skip ci] 2025-01-17 19:14:12 +00:00
homarr-releases[bot] b5c008b4ad chore(release): automatic release v1.0.1 2025-01-17 19:13:04 +00:00
Toine Rademacher (toineenzo)andMeier Lukas 343438391b chore: Fixed broken links in README.md (#1985)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2025-01-17 17:39:40 +00:00
Toine Rademacher (toineenzo) 8400b9fb11 chore: Change icon and issue link to new repo in layout.tsx and index.tsx (#1986) 2025-01-17 17:35:20 +00:00
Meier Lukas fe65e73fff chore: add version 1.0.0 to bug issue template (#1983) 2025-01-17 18:23:58 +01:00
Meier Lukas e023edf9d6 fix: add missing old-import proxmox integration kind mapping (#1979) 2025-01-17 16:12:02 +01:00
Meier Lukas 927913cf4e fix: add error from ldap bind operation to log statement (#1980) 2025-01-17 16:11:50 +01:00
Meier Lukas 07d8103051 chore: update docs sitemap (#1982) 2025-01-17 16:11:29 +01:00
homarr-renovate[bot] fe08ccf589 chore(deps): update vitest monorepo to v3 (major) (#1964)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-17 16:10:59 +01:00
homarr-renovate[bot] c55207bd59 fix(deps): update dependency flag-icons to ^7.3.2 (#1981)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-17 15:09:46 +00:00
homarr-renovate[bot] e35811c921 fix(deps): update nextjs monorepo to ^15.1.5 (#1978)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-17 15:09:21 +00:00
Meier Lukas e481e116ff Merge branch 'main' into dev 2025-01-17 13:52:59 +01:00
Meier Lukas 32be09a4a7 docs: remove beta banner from readme 2025-01-17 13:51:34 +01:00
Releases Homarr d0a20dbfc5 chore(release): 1.0.0 [skip ci] 2025-01-17 12:47:30 +00:00
homarr-releases[bot] 68329965f7 chore(release): automatic release v1.0.0 2025-01-17 12:46:22 +00:00
Meier Lukas f9fea70d39 chore: change documentation base url to homarr.dev (#1826) 2025-01-17 13:45:18 +01:00
Meier Lukas 3ed46aecbd feat(widget): add proxmox integration (#1969)
* feat(widget): add proxmox integration

* fix: broken lock file

* fix: ci issues

* fix: ci issues

* fix: ci issues

* chore: debug temporary

* fix: name is not used correctly for nodes and storage in proxmox

* fix: remove temporary debu logs

* fix: job runs for both cluster and system health and throws error

* fix: ts-expect-error is unnecessary

* fix: remove unused import
2025-01-17 13:01:04 +01:00
Meier Lukas a31c6a97e0 ci: change weekly release base to main branch (#1976) 2025-01-17 12:59:02 +01:00
homarr-crowdin[bot]andMeier Lukas d1be727eb3 chore(lang): updated translations from crowdin
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2025-01-17 11:54:32 +00:00
Meier Lukas a1084f91e5 fix: mysql transactions do not work with run property of sqlite (#1974)
* fix: mysql transactions do not work with run property of sqlite

* fix: ci issues
2025-01-17 12:53:01 +01:00
Meier Lukas 7622f0a4d2 fix: websockets not working extend not defined (#1975)
* fix: websockets not working extend not defined

* fix: revert dockerode to 4.0.2
2025-01-17 12:52:42 +01:00
homarr-renovate[bot] 34cacb3153 fix(deps): update dependency flag-icons to ^7.3.1 (#1970)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-17 02:57:17 +00:00
homarr-renovate[bot] 48cf5d5304 chore(deps): update dependency prettier-plugin-packagejson to ^2.5.8 (#1973)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-17 02:14:40 +00:00
Meier Lukas 8c36c3e36b feat(certificates): handle self signed certificates (#1951)
* wip: add page and loading of certificates in folder

* wip: add certificate addition and removal

* feat: add removal ui for certificates

* feat: migrate integrations to fetch or agent with trusted certificates

* fix: lock file issues

* fix: typecheck issue

* fix: inconsistent package versions

* chore: address pull request feedback

* fix: add missing navigation item and restrict access to page

* chore: address pull request feedback

* fix: inconsistent undici dependency version

* fix: inconsistent undici dependency version
2025-01-17 00:08:40 +01:00
homarr-renovate[bot] b10b2013af fix(deps): update dependency drizzle-orm to ^0.38.4 (#1967)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-16 15:33:39 +00:00
homarr-renovate[bot] ea8acc83ea fix(deps): update dependency flag-icons to ^7.3.0 (#1966)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-16 14:44:14 +00:00
homarr-renovate[bot] cb96508634 fix(deps): update dependency drizzle-kit to ^0.30.2 (#1965)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-16 14:34:48 +00:00
homarr-renovate[bot] 5e83847772 fix(deps): update dependency undici to v7.2.3 (#1963)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-16 09:32:31 +00:00
homarr-renovate[bot] 1557537763 chore(deps): update dependency @types/node to ^22.10.7 (#1962)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-16 00:54:29 +00:00
homarr-crowdin[bot] 5f993d2630 chore(lang): updated translations from crowdin
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
2025-01-16 00:43:40 +00:00
homarr-renovate[bot] 44767c46c2 fix(deps): update dependency flag-icons to ^7.2.4 (#1960)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-15 22:53:09 +00:00
homarr-renovate[bot] aaddf0d987 fix(deps): update dependency undici to v7.2.2 (#1957)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-15 17:41:33 +00:00
homarr-crowdin[bot] 7f8e6e4ea1 chore(lang): updated translations from crowdin
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
2025-01-15 16:13:54 +00:00
homarr-renovate[bot] 34a76c98e8 fix(deps): update dependency better-sqlite3 to ^11.8.0 (#1956)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-15 03:17:53 +00:00
homarr-renovate[bot] 0f82a6f63d chore(deps): update dependency prettier-plugin-packagejson to ^2.5.7 (#1954)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2025-01-14 20:42:28 +00:00
homarr-releases[bot] fac522adb9 chore(release): automatic release v0.1.0 2024-12-13 19:13:52 +00:00
homarr-releases[bot] 9945425eff chore(release): automatic release v0.1.0 2024-12-06 19:14:14 +00:00
homarr-releases[bot] 8cd5833281 chore(release): automatic release v0.1.0 2024-11-29 19:15:06 +00:00
homarr-releases[bot] ef7174aa36 chore(release): automatic release v0.1.0 2024-11-22 19:14:01 +00:00
homarr-releases[bot] 4ce76f8a73 chore(release): automatic release v0.1.0 2024-11-15 19:13:45 +00:00
homarr-releases[bot] 3e65af9ebe chore(release): automatic release v0.1.0 2024-11-08 19:12:25 +00:00
homarr-releases[bot] c6e5bec348 chore(release): automatic release v0.1.0 2024-11-04 19:34:22 +00:00
homarr-releases[bot] 3e74c065f5 chore(release): automatic release v0.1.0 2024-11-04 18:21:54 +00:00
homarr-releases[bot] 14ae732d0c chore(release): automatic release v0.1.0 2024-11-01 19:13:45 +00:00
homarr-releases[bot] b97883f44d chore(release): automatic release v0.1.0 2024-10-25 19:12:51 +00:00
homarr-releases[bot] 741753fa74 chore(release): automatic release v0.1.0 2024-10-18 19:13:17 +00:00
homarr-releases[bot] 1f0f8912b6 chore(release): automatic release v0.1.0 2024-10-11 21:37:04 +00:00
homarr-releases[bot] 49d6932218 chore(release): automatic release v0.1.0 2024-10-11 19:12:56 +00:00
homarr-releases[bot] f13fefa64d chore(release): automatic release v0.1.0 2024-10-04 19:33:01 +00:00
homarr-releases[bot] cef567efdf chore(release): automatic release v0.1.0 2024-10-04 19:12:57 +00:00
homarr-releases[bot] db2b79ee7f chore(release): automatic release v0.1.0 2024-09-27 19:13:34 +00:00
Meier Lukas b46d30b04c chore(release): release v0.1.0 2024-09-21 11:42:43 +02:00
homarr-releases[bot] de4283b5fa chore(release): automatic release v0.1.0 2024-09-20 19:13:13 +00:00
homarr-releases[bot] a08d3e387f chore(release): automatic release v0.1.0 2024-09-13 19:12:49 +00:00
homarr-releases[bot] bd1ff01109 chore(release): automatic release v0.1.0 2024-09-06 19:13:34 +00:00
homarr-releases[bot] b24b1cc8a9 chore(release): automatic release v0.1.0 2024-08-30 19:11:57 +00:00
homarr-releases[bot] e81edc898f chore(release): automatic release v0.1.0 2024-08-23 19:11:47 +00:00
homarr-releases[bot] 4d864878e3 chore(release): automatic release v0.1.0 2024-08-16 19:13:19 +00:00
homarr-releases[bot] 5776ead3e3 chore(release): automatic release v0.1.0 2024-08-09 19:12:44 +00:00
homarr-releases[bot] baf32c3fe6 chore(release): automatic release v0.1.0 2024-08-02 19:52:15 +00:00
Meier Lukas ea408a0fdd Merge pull request #570 from homarr-labs/dev
chore: merge to main
2024-05-28 21:50:27 +02:00
Manuel 17f93097f6 Merge pull request #547 from homarr-labs/dev
chore: merge to main
2024-05-24 22:16:13 +02:00
124 changed files with 6268 additions and 1415 deletions

No files matched your search

+4
View File
@@ -28,6 +28,10 @@ DB_URL='FULL_PATH_TO_YOUR_SQLITE_DB_FILE'
# DB_PASSWORD='password' # DB_PASSWORD='password'
# DB_NAME='name-of-database' # DB_NAME='name-of-database'
# The below path can be used to store trusted certificates during development, it is not required and can be left empty.
# If it is used, please use the full path to the directory where the certificates are stored.
# LOCAL_CERTIFICATE_PATH='FULL_PATH_TO_CERTIFICATES'
TURBO_TELEMETRY_DISABLED=1 TURBO_TELEMETRY_DISABLED=1
# Configure logging to use winston logger # Configure logging to use winston logger
+2 -1
View File
@@ -32,6 +32,7 @@ body:
description: What version of Homarr are you running? description: What version of Homarr are you running?
options: options:
- 1.0.0-beta - 1.0.0-beta
- 1.0.0
- Other (describe in "additional information") - Other (describe in "additional information")
default: 0 default: 0
validations: validations:
@@ -75,4 +76,4 @@ body:
- Other (describe in "additional information") - Other (describe in "additional information")
default: 0 default: 0
validations: validations:
required: false required: false
+5
View File
@@ -6,6 +6,11 @@
matchPackagePatterns: ["^@homarr/"], matchPackagePatterns: ["^@homarr/"],
enabled: false, enabled: false,
}, },
// Disable Dockerode updates see https://github.com/apocas/dockerode/issues/787
{
matchPackagePatterns: ["^dockerode$"],
enabled: false,
},
{ {
matchUpdateTypes: ["minor", "patch", "pin", "digest"], matchUpdateTypes: ["minor", "patch", "pin", "digest"],
automerge: true, automerge: true,
@@ -37,7 +37,7 @@ jobs:
token: ${{ github.token }} token: ${{ github.token }}
branch: dev branch: dev
- name: Create pull request - name: Create pull request
run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base beta --head dev --label automerge' run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base main --head dev --label automerge'
env: env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Discord notification - name: Discord notification
+1 -1
View File
@@ -64,4 +64,4 @@ packages/cli/cli.cjs
e2e/shared/tmp e2e/shared/tmp
#personal backgrounds #personal backgrounds
apps/nextjs/public/images/background.png apps/nextjs/public/images/background.png
+1197
View File
File diff suppressed because it is too large. Load diff
+4 -3
View File
@@ -18,6 +18,7 @@
"@homarr/analytics": "workspace:^0.1.0", "@homarr/analytics": "workspace:^0.1.0",
"@homarr/api": "workspace:^0.1.0", "@homarr/api": "workspace:^0.1.0",
"@homarr/auth": "workspace:^0.1.0", "@homarr/auth": "workspace:^0.1.0",
"@homarr/certificates": "workspace:^0.1.0",
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/cron-job-status": "workspace:^0.1.0", "@homarr/cron-job-status": "workspace:^0.1.0",
"@homarr/db": "workspace:^0.1.0", "@homarr/db": "workspace:^0.1.0",
@@ -61,11 +62,11 @@
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"flag-icons": "^7.2.3", "flag-icons": "^7.3.2",
"glob": "^11.0.1", "glob": "^11.0.1",
"jotai": "^2.11.0", "jotai": "^2.11.0",
"mantine-react-table": "2.0.0-beta.8", "mantine-react-table": "2.0.0-beta.8",
"next": "15.1.4", "next": "15.1.5",
"postcss-preset-mantine": "^1.17.0", "postcss-preset-mantine": "^1.17.0",
"prismjs": "^1.29.0", "prismjs": "^1.29.0",
"react": "19.0.0", "react": "19.0.0",
@@ -82,7 +83,7 @@
"@homarr/prettier-config": "workspace:^0.1.0", "@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0", "@homarr/tsconfig": "workspace:^0.1.0",
"@types/chroma-js": "3.1.0", "@types/chroma-js": "3.1.0",
"@types/node": "^22.10.6", "@types/node": "^22.10.7",
"@types/prismjs": "^1.26.5", "@types/prismjs": "^1.26.5",
"@types/react": "19.0.7", "@types/react": "19.0.7",
"@types/react-dom": "19.0.3", "@types/react-dom": "19.0.3",
@@ -1,4 +1,4 @@
import { IconKey, IconPassword, IconUser } from "@tabler/icons-react"; import { IconGrid3x3, IconKey, IconPassword, IconServer, IconUser } from "@tabler/icons-react";
import type { IntegrationSecretKind } from "@homarr/definitions"; import type { IntegrationSecretKind } from "@homarr/definitions";
import type { TablerIcon } from "@homarr/ui"; import type { TablerIcon } from "@homarr/ui";
@@ -7,4 +7,6 @@ export const integrationSecretIcons = {
username: IconUser, username: IconUser,
apiKey: IconKey, apiKey: IconKey,
password: IconPassword, password: IconPassword,
realm: IconServer,
tokenId: IconGrid3x3,
} satisfies Record<IntegrationSecretKind, TablerIcon>; } satisfies Record<IntegrationSecretKind, TablerIcon>;
@@ -6,6 +6,7 @@ import {
IconBrandDiscord, IconBrandDiscord,
IconBrandDocker, IconBrandDocker,
IconBrandGithub, IconBrandGithub,
IconCertificate,
IconGitFork, IconGitFork,
IconHome, IconHome,
IconInfoSmall, IconInfoSmall,
@@ -119,6 +120,12 @@ export default async function ManageLayout({ children }: PropsWithChildren) {
href: "/manage/tools/logs", href: "/manage/tools/logs",
hidden: !session?.user.permissions.includes("other-view-logs"), hidden: !session?.user.permissions.includes("other-view-logs"),
}, },
{
label: t("items.tools.items.certificates"),
icon: IconCertificate,
href: "/manage/tools/certificates",
hidden: !session?.user.permissions.includes("admin"),
},
{ {
label: t("items.tools.items.tasks"), label: t("items.tools.items.tasks"),
icon: IconReport, icon: IconReport,
@@ -146,7 +153,7 @@ export default async function ManageLayout({ children }: PropsWithChildren) {
{ {
label: t("items.help.items.submitIssue"), label: t("items.help.items.submitIssue"),
icon: IconBrandGithub, icon: IconBrandGithub,
href: "https://github.com/ajnart/homarr/issues/new/choose", href: "https://github.com/homarr-labs/homarr/issues/new/choose",
external: true, external: true,
}, },
{ {
@@ -158,7 +165,7 @@ export default async function ManageLayout({ children }: PropsWithChildren) {
{ {
label: t("items.help.items.sourceCode"), label: t("items.help.items.sourceCode"),
icon: IconGitFork, icon: IconGitFork,
href: "https://github.com/ajnart/homarr", href: "https://github.com/homarr-labs/homarr",
external: true, external: true,
}, },
], ],
@@ -0,0 +1,81 @@
"use client";
import { Button, FileInput, Group, Stack } from "@mantine/core";
import { IconCertificate } from "@tabler/icons-react";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { createModal, useModalAction } from "@homarr/modals";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { superRefineCertificateFile, z } from "@homarr/validation";
export const AddCertificateButton = () => {
const { openModal } = useModalAction(AddCertificateModal);
const t = useI18n();
const handleClick = () => {
openModal({});
};
return <Button onClick={handleClick}>{t("certificate.action.create.label")}</Button>;
};
const AddCertificateModal = createModal(({ actions }) => {
const t = useI18n();
const form = useZodForm(
z.object({
file: z.instanceof(File).nullable().superRefine(superRefineCertificateFile),
}),
{
initialValues: {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
file: null!,
},
},
);
const { mutateAsync } = clientApi.certificates.addCertificate.useMutation();
return (
<form
onSubmit={form.onSubmit(async (values) => {
const formData = new FormData();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
formData.set("file", values.file!);
await mutateAsync(formData, {
async onSuccess() {
showSuccessNotification({
title: t("certificate.action.create.notification.success.title"),
message: t("certificate.action.create.notification.success.message"),
});
await revalidatePathActionAsync("/manage/tools/certificates");
actions.closeModal();
},
onError() {
showErrorNotification({
title: t("certificate.action.create.notification.error.title"),
message: t("certificate.action.create.notification.error.message"),
});
},
});
})}
>
<Stack>
<FileInput leftSection={<IconCertificate size={16} />} {...form.getInputProps("file")} />
<Group justify="end">
<Button onClick={actions.closeModal} variant="subtle" color="gray">
{t("common.action.cancel")}
</Button>
<Button type="submit" loading={form.submitting}>
{t("common.action.add")}
</Button>
</Group>
</Stack>
</form>
);
}).withOptions({
defaultTitle(t) {
return t("certificate.action.create.label");
},
});
@@ -0,0 +1,54 @@
"use client";
import { ActionIcon } from "@mantine/core";
import { IconTrash } from "@tabler/icons-react";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useConfirmModal } from "@homarr/modals";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
interface RemoveCertificateProps {
fileName: string;
}
export const RemoveCertificate = ({ fileName }: RemoveCertificateProps) => {
const { openConfirmModal } = useConfirmModal();
const { mutateAsync } = clientApi.certificates.removeCertificate.useMutation();
const t = useI18n();
const handleClick = () => {
openConfirmModal({
title: t("certificate.action.remove.label"),
children: t("certificate.action.remove.confirm"),
// eslint-disable-next-line no-restricted-syntax
async onConfirm() {
await mutateAsync(
{ fileName },
{
async onSuccess() {
showSuccessNotification({
title: t("certificate.action.remove.notification.success.title"),
message: t("certificate.action.remove.notification.success.message"),
});
await revalidatePathActionAsync("/manage/tools/certificates");
},
onError() {
showErrorNotification({
title: t("certificate.action.remove.notification.error.title"),
message: t("certificate.action.remove.notification.error.message"),
});
},
},
);
},
});
};
return (
<ActionIcon onClick={handleClick} color="red" variant="subtle">
<IconTrash color="red" size={16} />
</ActionIcon>
);
};
@@ -0,0 +1,97 @@
import { X509Certificate } from "node:crypto";
import { notFound } from "next/navigation";
import { Card, Group, SimpleGrid, Stack, Text, Title } from "@mantine/core";
import { IconCertificate, IconCertificateOff } from "@tabler/icons-react";
import dayjs from "dayjs";
import { auth } from "@homarr/auth/next";
import { loadCustomRootCertificatesAsync } from "@homarr/certificates/server";
import { getMantineColor } from "@homarr/common";
import type { SupportedLanguage } from "@homarr/translation";
import { getI18n } from "@homarr/translation/server";
import { DynamicBreadcrumb } from "~/components/navigation/dynamic-breadcrumb";
import { NoResults } from "~/components/no-results";
import { AddCertificateButton } from "./_components/add-certificate";
import { RemoveCertificate } from "./_components/remove-certificate";
interface CertificatesPageProps {
params: Promise<{
locale: SupportedLanguage;
}>;
}
export default async function CertificatesPage({ params }: CertificatesPageProps) {
const session = await auth();
if (!session?.user.permissions.includes("admin")) {
notFound();
}
const { locale } = await params;
const t = await getI18n();
const certificates = await loadCustomRootCertificatesAsync();
const x509Certificates = certificates
.map((cert) => ({
...cert,
x509: new X509Certificate(cert.content),
}))
.sort((certA, certB) => certA.x509.validToDate.getTime() - certB.x509.validToDate.getTime());
return (
<>
<DynamicBreadcrumb />
<Stack>
<Group justify="space-between">
<Stack gap={4}>
<Title>{t("certificate.page.list.title")}</Title>
<Text>{t("certificate.page.list.description")}</Text>
</Stack>
<AddCertificateButton />
</Group>
{x509Certificates.length === 0 && (
<NoResults icon={IconCertificateOff} title={t("certificate.page.list.noResults.title")} />
)}
<SimpleGrid cols={{ sm: 1, lg: 2, xl: 3 }} spacing="lg">
{x509Certificates.map((cert) => (
<Card key={cert.x509.fingerprint} withBorder>
<Group wrap="nowrap">
<IconCertificate color={getMantineColor(iconColor(cert.x509.validToDate), 6)} size={32} stroke={1.5} />
<Stack flex={1} gap="xs">
<Group justify="space-between">
<Text fw={500}>{cert.x509.subject}</Text>
<Text c="gray.6" ta="end" size="sm">
{cert.fileName}
</Text>
</Group>
<Group justify="space-between">
<Text size="sm" c="gray.6" title={cert.x509.validToDate.toISOString()}>
{t("certificate.page.list.expires", {
when: new Intl.RelativeTimeFormat(locale).format(
dayjs(cert.x509.validToDate).diff(dayjs(), "days"),
"days",
),
})}
</Text>
<RemoveCertificate fileName={cert.fileName} />
</Group>
</Stack>
</Group>
</Card>
))}
</SimpleGrid>
</Stack>
</>
);
}
const iconColor = (validTo: Date) => {
const daysUntilInvalid = dayjs(validTo).diff(new Date(), "days");
if (daysUntilInvalid < 1) return "red";
if (daysUntilInvalid < 7) return "orange";
if (daysUntilInvalid < 30) return "yellow";
return "green";
};
+2 -2
View File
@@ -38,13 +38,13 @@
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"superjson": "2.2.2", "superjson": "2.2.2",
"undici": "7.2.1" "undici": "7.2.3"
}, },
"devDependencies": { "devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0", "@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0", "@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0", "@homarr/tsconfig": "workspace:^0.1.0",
"@types/node": "^22.10.6", "@types/node": "^22.10.7",
"dotenv-cli": "^8.0.0", "dotenv-cli": "^8.0.0",
"eslint": "^9.18.0", "eslint": "^9.18.0",
"prettier": "^3.4.2", "prettier": "^3.4.2",
+2 -31
View File
@@ -1,35 +1,6 @@
import type { Dispatcher } from "undici"; import { setGlobalDispatcher } from "undici";
import { Agent, setGlobalDispatcher } from "undici";
import { logger } from "@homarr/log"; import { LoggingAgent } from "@homarr/common/server";
export class LoggingAgent extends Agent {
constructor(...props: ConstructorParameters<typeof Agent>) {
super(...props);
}
dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean {
const url = new URL(`${options.origin as string}${options.path}`);
// The below code should prevent sensitive data from being logged as
// some integrations use query parameters for auth
url.searchParams.forEach((value, key) => {
if (value === "") return; // Skip empty values
if (/^-?\d{1,12}$/.test(value)) return; // Skip small numbers
if (value === "true" || value === "false") return; // Skip boolean values
if (/^[a-zA-Z]{1,12}$/.test(value)) return; // Skip short strings
if (/^\d{4}-\d{2}-\d{2}$/.test(value)) return; // Skip dates
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(value)) return; // Skip date times
url.searchParams.set(key, "REDACTED");
});
logger.info(
`Dispatching request ${url.toString().replaceAll("=&", "&")} (${Object.keys(options.headers ?? {}).length} headers)`,
);
return super.dispatch(options, handler);
}
}
const agent = new LoggingAgent(); const agent = new LoggingAgent();
setGlobalDispatcher(agent); setGlobalDispatcher(agent);
+3 -10
View File
@@ -24,10 +24,10 @@
<strong>Demo ✨</strong> <strong>Demo ✨</strong>
</a> </a>
• •
<a href="https://homarr.dev/docs/getting-started/installation/"> <a href="https://homarr.dev/docs/category/installation-1/">
<strong>Install 💻</strong> <strong>Install 💻</strong>
</a> • </a> •
<a href="https://translate.homarr.dev/"> <a href="https://crowdin.com/project/homarr_labs">
<strong>Translations 🈺</strong> <strong>Translations 🈺</strong>
</a> • </a> •
<a href="https://discord.com/invite/aCsmEV5RgA"> <a href="https://discord.com/invite/aCsmEV5RgA">
@@ -35,13 +35,6 @@
</a> </a>
</p> </p>
> [!WARNING]
> This is a beta version of Homarr. You can download the old but stable version at https://github.com/ajnart/homarr/. Running this version is at your own risk.
Simplify the management of your server with Homarr - a sleek, modern dashboard that puts all of your apps and services at your fingertips. With Homarr, you can access and control everything in one location. Homarr seamlessly integrates with the apps you've added, providing you with valuable information and giving you complete control. Installation is a breeze, and Homarr supports a wide range of deployment methods.
<br/>
<br/>
![Features Section](./section-features.png) ![Features Section](./section-features.png)
@@ -100,7 +93,7 @@ Homarr has a [built-in collection of widgets and integrations](https://homarr.de
Since we are updating Homarr very frequently, we recommend reading our official installation guides: Since we are updating Homarr very frequently, we recommend reading our official installation guides:
<h2> <h2>
<a href="https://homarr.dev/docs/getting-started/installation/"> <a href="https://homarr.dev/docs/category/installation-1/">
Please click here for official installation instructions Please click here for official installation instructions
</a> </a>
</h2> </h2>
+7 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "homarr", "name": "homarr",
"version": "1.0.0-beta.12", "version": "1.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "cross-env CI=true turbo build", "build": "cross-env CI=true turbo build",
@@ -40,8 +40,8 @@
"@semantic-release/release-notes-generator": "^14.0.3", "@semantic-release/release-notes-generator": "^14.0.3",
"@turbo/gen": "^2.3.3", "@turbo/gen": "^2.3.3",
"@vitejs/plugin-react": "^4.3.4", "@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8", "@vitest/coverage-v8": "^3.0.2",
"@vitest/ui": "^2.1.8", "@vitest/ui": "^3.0.2",
"conventional-changelog-conventionalcommits": "^8.0.0", "conventional-changelog-conventionalcommits": "^8.0.0",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"jsdom": "^26.0.0", "jsdom": "^26.0.0",
@@ -51,7 +51,7 @@
"turbo": "^2.3.3", "turbo": "^2.3.3",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"vite-tsconfig-paths": "^5.1.4", "vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8" "vitest": "^3.0.2"
}, },
"packageManager": "pnpm@9.15.4", "packageManager": "pnpm@9.15.4",
"engines": { "engines": {
@@ -59,6 +59,9 @@
}, },
"pnpm": { "pnpm": {
"allowNonAppliedPatches": true, "allowNonAppliedPatches": true,
"overrides": {
"proxmox-api>undici": "7.2.3"
},
"patchedDependencies": { "patchedDependencies": {
"pretty-print-error": "patches/pretty-print-error.patch" "pretty-print-error": "patches/pretty-print-error.patch"
} }
+3 -2
View File
@@ -22,6 +22,7 @@
"prettier": "@homarr/prettier-config", "prettier": "@homarr/prettier-config",
"dependencies": { "dependencies": {
"@homarr/auth": "workspace:^0.1.0", "@homarr/auth": "workspace:^0.1.0",
"@homarr/certificates": "workspace:^0.1.0",
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/cron-job-runner": "workspace:^0.1.0", "@homarr/cron-job-runner": "workspace:^0.1.0",
"@homarr/cron-job-status": "workspace:^0.1.0", "@homarr/cron-job-status": "workspace:^0.1.0",
@@ -41,9 +42,9 @@
"@trpc/client": "next", "@trpc/client": "next",
"@trpc/react-query": "next", "@trpc/react-query": "next",
"@trpc/server": "next", "@trpc/server": "next",
"dockerode": "^4.0.3", "dockerode": "4.0.2",
"lodash.clonedeep": "^4.5.0", "lodash.clonedeep": "^4.5.0",
"next": "15.1.4", "next": "15.1.5",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"superjson": "2.2.2", "superjson": "2.2.2",
+2
View File
@@ -1,6 +1,7 @@
import { apiKeysRouter } from "./router/apiKeys"; import { apiKeysRouter } from "./router/apiKeys";
import { appRouter as innerAppRouter } from "./router/app"; import { appRouter as innerAppRouter } from "./router/app";
import { boardRouter } from "./router/board"; import { boardRouter } from "./router/board";
import { certificateRouter } from "./router/certificates/certificate-router";
import { cronJobsRouter } from "./router/cron-jobs"; import { cronJobsRouter } from "./router/cron-jobs";
import { dockerRouter } from "./router/docker/docker-router"; import { dockerRouter } from "./router/docker/docker-router";
import { groupRouter } from "./router/group"; import { groupRouter } from "./router/group";
@@ -41,6 +42,7 @@ export const appRouter = createTRPCRouter({
apiKeys: apiKeysRouter, apiKeys: apiKeysRouter,
media: mediaRouter, media: mediaRouter,
updateChecker: updateCheckerRouter, updateChecker: updateCheckerRouter,
certificates: certificateRouter,
}); });
// export type definition of API // export type definition of API
+460 -193
View File
@@ -4,7 +4,7 @@ import superjson from "superjson";
import { constructBoardPermissions } from "@homarr/auth/shared"; import { constructBoardPermissions } from "@homarr/auth/shared";
import type { DeviceType } from "@homarr/common/server"; import type { DeviceType } from "@homarr/common/server";
import type { Database, InferInsertModel, InferSelectModel, SQL } from "@homarr/db"; import type { Database, InferInsertModel, InferSelectModel, SQL } from "@homarr/db";
import { and, createId, eq, inArray, like, or } from "@homarr/db"; import { and, createId, eq, handleTransactionsAsync, inArray, like, or } from "@homarr/db";
import { getServerSettingByKeyAsync } from "@homarr/db/queries"; import { getServerSettingByKeyAsync } from "@homarr/db/queries";
import { import {
boardGroupPermissions, boardGroupPermissions,
@@ -204,21 +204,49 @@ export const boardRouter = createTRPCRouter({
.input(validation.board.create) .input(validation.board.create)
.mutation(async ({ ctx, input }) => { .mutation(async ({ ctx, input }) => {
const boardId = createId(); const boardId = createId();
await ctx.db.transaction(async (transaction) => { await handleTransactionsAsync(ctx.db, {
await transaction.insert(boards).values({ async handleAsync(db, schema) {
id: boardId, await db.transaction(async (transaction) => {
name: input.name, await transaction.insert(schema.boards).values({
isPublic: input.isPublic, id: boardId,
columnCount: input.columnCount, name: input.name,
creatorId: ctx.session.user.id, isPublic: input.isPublic,
}); columnCount: input.columnCount,
await transaction.insert(sections).values({ creatorId: ctx.session.user.id,
id: createId(), });
kind: "empty", await transaction.insert(schema.sections).values({
xOffset: 0, id: createId(),
yOffset: 0, kind: "empty",
boardId, xOffset: 0,
}); yOffset: 0,
boardId,
});
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction
.insert(boards)
.values({
id: boardId,
name: input.name,
isPublic: input.isPublic,
columnCount: input.columnCount,
creatorId: ctx.session.user.id,
})
.run();
transaction
.insert(sections)
.values({
id: createId(),
kind: "empty",
xOffset: 0,
yOffset: 0,
boardId,
})
.run();
});
},
}); });
}), }),
duplicateBoard: permissionRequiredProcedure duplicateBoard: permissionRequiredProcedure
@@ -302,28 +330,54 @@ export const boardRouter = createTRPCRouter({
})), })),
); );
ctx.db.transaction((transaction) => { await handleTransactionsAsync(ctx.db, {
transaction async handleAsync(db, schema) {
.insert(boards) await db.transaction(async (transaction) => {
.values({ transaction.insert(schema.boards).values({
...boardProps, ...boardProps,
id: newBoardId, id: newBoardId,
name: input.name, name: input.name,
creatorId: ctx.session.user.id, creatorId: ctx.session.user.id,
}) });
.run();
if (sectionsToInsert.length > 0) { if (sectionsToInsert.length > 0) {
transaction.insert(sections).values(sectionsToInsert).run(); await transaction.insert(schema.sections).values(sectionsToInsert);
} }
if (itemsToInsert.length > 0) { if (itemsToInsert.length > 0) {
transaction.insert(items).values(itemsToInsert).run(); await transaction.insert(schema.items).values(itemsToInsert);
} }
if (itemIntegrationsToInsert.length > 0) { if (itemIntegrationsToInsert.length > 0) {
transaction.insert(integrationItems).values(itemIntegrationsToInsert).run(); await transaction.insert(schema.integrationItems).values(itemIntegrationsToInsert);
} }
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction
.insert(boards)
.values({
...boardProps,
id: newBoardId,
name: input.name,
creatorId: ctx.session.user.id,
})
.run();
if (sectionsToInsert.length > 0) {
transaction.insert(sections).values(sectionsToInsert).run();
}
if (itemsToInsert.length > 0) {
transaction.insert(items).values(itemsToInsert).run();
}
if (itemIntegrationsToInsert.length > 0) {
transaction.insert(integrationItems).values(itemIntegrationsToInsert).run();
}
});
},
}); });
}), }),
renameBoard: protectedProcedure.input(validation.board.rename).mutation(async ({ ctx, input }) => { renameBoard: protectedProcedure.input(validation.board.rename).mutation(async ({ ctx, input }) => {
@@ -434,148 +488,313 @@ export const boardRouter = createTRPCRouter({
saveBoard: protectedProcedure.input(validation.board.save).mutation(async ({ input, ctx }) => { saveBoard: protectedProcedure.input(validation.board.save).mutation(async ({ input, ctx }) => {
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "modify"); await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.id), "modify");
await ctx.db.transaction(async (transaction) => { const dbBoard = await getFullBoardWithWhereAsync(ctx.db, eq(boards.id, input.id), ctx.session.user.id);
const dbBoard = await getFullBoardWithWhereAsync(transaction, eq(boards.id, input.id), ctx.session.user.id);
const addedSections = filterAddedItems(input.sections, dbBoard.sections); await handleTransactionsAsync(ctx.db, {
async handleAsync(db, schema) {
await db.transaction(async (transaction) => {
const addedSections = filterAddedItems(input.sections, dbBoard.sections);
if (addedSections.length > 0) { if (addedSections.length > 0) {
await transaction.insert(sections).values( await transaction.insert(schema.sections).values(
addedSections.map((section) => ({ addedSections.map((section) => ({
id: section.id, id: section.id,
kind: section.kind, kind: section.kind,
yOffset: section.yOffset, yOffset: section.yOffset,
xOffset: section.kind === "dynamic" ? section.xOffset : 0, xOffset: section.kind === "dynamic" ? section.xOffset : 0,
height: "height" in section ? section.height : null, height: "height" in section ? section.height : null,
width: "width" in section ? section.width : null, width: "width" in section ? section.width : null,
parentSectionId: "parentSectionId" in section ? section.parentSectionId : null, parentSectionId: "parentSectionId" in section ? section.parentSectionId : null,
name: "name" in section ? section.name : null, name: "name" in section ? section.name : null,
boardId: dbBoard.id, boardId: dbBoard.id,
})), })),
); );
} }
const inputItems = input.sections.flatMap((section) => const inputItems = input.sections.flatMap((section) =>
section.items.map((item) => ({ ...item, sectionId: section.id })), section.items.map((item) => ({ ...item, sectionId: section.id })),
); );
const dbItems = dbBoard.sections.flatMap((section) => const dbItems = dbBoard.sections.flatMap((section) =>
section.items.map((item) => ({ ...item, sectionId: section.id })), section.items.map((item) => ({ ...item, sectionId: section.id })),
);
const addedItems = filterAddedItems(inputItems, dbItems);
if (addedItems.length > 0) {
await transaction.insert(items).values(
addedItems.map((item) => ({
id: item.id,
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})),
);
}
const inputIntegrationRelations = inputItems.flatMap(({ integrationIds, id: itemId }) =>
integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const dbIntegrationRelations = dbItems.flatMap(({ integrationIds, id: itemId }) =>
integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const addedIntegrationRelations = inputIntegrationRelations.filter(
(inputRelation) =>
!dbIntegrationRelations.some(
(dbRelation) =>
dbRelation.itemId === inputRelation.itemId && dbRelation.integrationId === inputRelation.integrationId,
),
);
if (addedIntegrationRelations.length > 0) {
await transaction.insert(integrationItems).values(
addedIntegrationRelations.map((relation) => ({
itemId: relation.itemId,
integrationId: relation.integrationId,
})),
);
}
const updatedItems = filterUpdatedItems(inputItems, dbItems);
for (const item of updatedItems) {
await transaction
.update(items)
.set({
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})
.where(eq(items.id, item.id));
}
const updatedSections = filterUpdatedItems(input.sections, dbBoard.sections);
for (const section of updatedSections) {
const prev = dbBoard.sections.find((dbSection) => dbSection.id === section.id);
await transaction
.update(sections)
.set({
yOffset: section.yOffset,
xOffset: section.xOffset,
height: prev?.kind === "dynamic" && "height" in section ? section.height : null,
width: prev?.kind === "dynamic" && "width" in section ? section.width : null,
parentSectionId: prev?.kind === "dynamic" && "parentSectionId" in section ? section.parentSectionId : null,
name: prev?.kind === "category" && "name" in section ? section.name : null,
})
.where(eq(sections.id, section.id));
}
const removedIntegrationRelations = dbIntegrationRelations.filter(
(dbRelation) =>
!inputIntegrationRelations.some(
(inputRelation) =>
dbRelation.itemId === inputRelation.itemId && dbRelation.integrationId === inputRelation.integrationId,
),
);
for (const relation of removedIntegrationRelations) {
await transaction
.delete(integrationItems)
.where(
and(
eq(integrationItems.itemId, relation.itemId),
eq(integrationItems.integrationId, relation.integrationId),
),
); );
}
const removedItems = filterRemovedItems(inputItems, dbItems); const addedItems = filterAddedItems(inputItems, dbItems);
const itemIds = removedItems.map((item) => item.id); if (addedItems.length > 0) {
if (itemIds.length > 0) { await transaction.insert(schema.items).values(
await transaction.delete(items).where(inArray(items.id, itemIds)); addedItems.map((item) => ({
} id: item.id,
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})),
);
}
const removedSections = filterRemovedItems(input.sections, dbBoard.sections); const inputIntegrationRelations = inputItems.flatMap(({ integrationIds, id: itemId }) =>
const sectionIds = removedSections.map((section) => section.id); integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const dbIntegrationRelations = dbItems.flatMap(({ integrationIds, id: itemId }) =>
integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const addedIntegrationRelations = inputIntegrationRelations.filter(
(inputRelation) =>
!dbIntegrationRelations.some(
(dbRelation) =>
dbRelation.itemId === inputRelation.itemId &&
dbRelation.integrationId === inputRelation.integrationId,
),
);
if (sectionIds.length > 0) { if (addedIntegrationRelations.length > 0) {
await transaction.delete(sections).where(inArray(sections.id, sectionIds)); await transaction.insert(schema.integrationItems).values(
} addedIntegrationRelations.map((relation) => ({
itemId: relation.itemId,
integrationId: relation.integrationId,
})),
);
}
const updatedItems = filterUpdatedItems(inputItems, dbItems);
for (const item of updatedItems) {
await transaction
.update(schema.items)
.set({
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})
.where(eq(items.id, item.id));
}
const updatedSections = filterUpdatedItems(input.sections, dbBoard.sections);
for (const section of updatedSections) {
const prev = dbBoard.sections.find((dbSection) => dbSection.id === section.id);
await transaction
.update(schema.sections)
.set({
yOffset: section.yOffset,
xOffset: section.xOffset,
height: prev?.kind === "dynamic" && "height" in section ? section.height : null,
width: prev?.kind === "dynamic" && "width" in section ? section.width : null,
parentSectionId:
prev?.kind === "dynamic" && "parentSectionId" in section ? section.parentSectionId : null,
name: prev?.kind === "category" && "name" in section ? section.name : null,
})
.where(eq(sections.id, section.id));
}
const removedIntegrationRelations = dbIntegrationRelations.filter(
(dbRelation) =>
!inputIntegrationRelations.some(
(inputRelation) =>
dbRelation.itemId === inputRelation.itemId &&
dbRelation.integrationId === inputRelation.integrationId,
),
);
for (const relation of removedIntegrationRelations) {
await transaction
.delete(schema.integrationItems)
.where(
and(
eq(integrationItems.itemId, relation.itemId),
eq(integrationItems.integrationId, relation.integrationId),
),
);
}
const removedItems = filterRemovedItems(inputItems, dbItems);
const itemIds = removedItems.map((item) => item.id);
if (itemIds.length > 0) {
await transaction.delete(schema.items).where(inArray(items.id, itemIds));
}
const removedSections = filterRemovedItems(input.sections, dbBoard.sections);
const sectionIds = removedSections.map((section) => section.id);
if (sectionIds.length > 0) {
await transaction.delete(schema.sections).where(inArray(sections.id, sectionIds));
}
});
},
handleSync(db) {
db.transaction((transaction) => {
const addedSections = filterAddedItems(input.sections, dbBoard.sections);
if (addedSections.length > 0) {
transaction
.insert(sections)
.values(
addedSections.map((section) => ({
id: section.id,
kind: section.kind,
yOffset: section.yOffset,
xOffset: section.kind === "dynamic" ? section.xOffset : 0,
height: "height" in section ? section.height : null,
width: "width" in section ? section.width : null,
parentSectionId: "parentSectionId" in section ? section.parentSectionId : null,
name: "name" in section ? section.name : null,
boardId: dbBoard.id,
})),
)
.run();
}
const inputItems = input.sections.flatMap((section) =>
section.items.map((item) => ({ ...item, sectionId: section.id })),
);
const dbItems = dbBoard.sections.flatMap((section) =>
section.items.map((item) => ({ ...item, sectionId: section.id })),
);
const addedItems = filterAddedItems(inputItems, dbItems);
if (addedItems.length > 0) {
transaction
.insert(items)
.values(
addedItems.map((item) => ({
id: item.id,
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})),
)
.run();
}
const inputIntegrationRelations = inputItems.flatMap(({ integrationIds, id: itemId }) =>
integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const dbIntegrationRelations = dbItems.flatMap(({ integrationIds, id: itemId }) =>
integrationIds.map((integrationId) => ({
integrationId,
itemId,
})),
);
const addedIntegrationRelations = inputIntegrationRelations.filter(
(inputRelation) =>
!dbIntegrationRelations.some(
(dbRelation) =>
dbRelation.itemId === inputRelation.itemId &&
dbRelation.integrationId === inputRelation.integrationId,
),
);
if (addedIntegrationRelations.length > 0) {
transaction
.insert(integrationItems)
.values(
addedIntegrationRelations.map((relation) => ({
itemId: relation.itemId,
integrationId: relation.integrationId,
})),
)
.run();
}
const updatedItems = filterUpdatedItems(inputItems, dbItems);
for (const item of updatedItems) {
transaction
.update(items)
.set({
kind: item.kind,
height: item.height,
width: item.width,
xOffset: item.xOffset,
yOffset: item.yOffset,
options: superjson.stringify(item.options),
advancedOptions: superjson.stringify(item.advancedOptions),
sectionId: item.sectionId,
})
.where(eq(items.id, item.id))
.run();
}
const updatedSections = filterUpdatedItems(input.sections, dbBoard.sections);
for (const section of updatedSections) {
const prev = dbBoard.sections.find((dbSection) => dbSection.id === section.id);
transaction
.update(sections)
.set({
yOffset: section.yOffset,
xOffset: section.xOffset,
height: prev?.kind === "dynamic" && "height" in section ? section.height : null,
width: prev?.kind === "dynamic" && "width" in section ? section.width : null,
parentSectionId:
prev?.kind === "dynamic" && "parentSectionId" in section ? section.parentSectionId : null,
name: prev?.kind === "category" && "name" in section ? section.name : null,
})
.where(eq(sections.id, section.id))
.run();
}
const removedIntegrationRelations = dbIntegrationRelations.filter(
(dbRelation) =>
!inputIntegrationRelations.some(
(inputRelation) =>
dbRelation.itemId === inputRelation.itemId &&
dbRelation.integrationId === inputRelation.integrationId,
),
);
for (const relation of removedIntegrationRelations) {
transaction
.delete(integrationItems)
.where(
and(
eq(integrationItems.itemId, relation.itemId),
eq(integrationItems.integrationId, relation.integrationId),
),
)
.run();
}
const removedItems = filterRemovedItems(inputItems, dbItems);
const itemIds = removedItems.map((item) => item.id);
if (itemIds.length > 0) {
transaction.delete(items).where(inArray(items.id, itemIds)).run();
}
const removedSections = filterRemovedItems(input.sections, dbBoard.sections);
const sectionIds = removedSections.map((section) => section.id);
if (sectionIds.length > 0) {
transaction.delete(sections).where(inArray(sections.id, sectionIds)).run();
}
});
},
}); });
}), }),
@@ -655,18 +874,42 @@ export const boardRouter = createTRPCRouter({
.mutation(async ({ input, ctx }) => { .mutation(async ({ input, ctx }) => {
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.entityId), "full"); await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.entityId), "full");
await ctx.db.transaction(async (transaction) => { await handleTransactionsAsync(ctx.db, {
await transaction.delete(boardUserPermissions).where(eq(boardUserPermissions.boardId, input.entityId)); async handleAsync(db, schema) {
if (input.permissions.length === 0) { await db.transaction(async (transaction) => {
return; await transaction
} .delete(schema.boardUserPermissions)
await transaction.insert(boardUserPermissions).values( .where(eq(boardUserPermissions.boardId, input.entityId));
input.permissions.map((permission) => ({ if (input.permissions.length === 0) {
userId: permission.principalId, return;
permission: permission.permission, }
boardId: input.entityId, await transaction.insert(schema.boardUserPermissions).values(
})), input.permissions.map((permission) => ({
); userId: permission.principalId,
permission: permission.permission,
boardId: input.entityId,
})),
);
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction.delete(boardUserPermissions).where(eq(boardUserPermissions.boardId, input.entityId)).run();
if (input.permissions.length === 0) {
return;
}
transaction
.insert(boardUserPermissions)
.values(
input.permissions.map((permission) => ({
userId: permission.principalId,
permission: permission.permission,
boardId: input.entityId,
})),
)
.run();
});
},
}); });
}), }),
saveGroupBoardPermissions: protectedProcedure saveGroupBoardPermissions: protectedProcedure
@@ -674,18 +917,42 @@ export const boardRouter = createTRPCRouter({
.mutation(async ({ input, ctx }) => { .mutation(async ({ input, ctx }) => {
await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.entityId), "full"); await throwIfActionForbiddenAsync(ctx, eq(boards.id, input.entityId), "full");
await ctx.db.transaction(async (transaction) => { await handleTransactionsAsync(ctx.db, {
await transaction.delete(boardGroupPermissions).where(eq(boardGroupPermissions.boardId, input.entityId)); async handleAsync(db, schema) {
if (input.permissions.length === 0) { await db.transaction(async (transaction) => {
return; await transaction
} .delete(schema.boardGroupPermissions)
await transaction.insert(boardGroupPermissions).values( .where(eq(boardGroupPermissions.boardId, input.entityId));
input.permissions.map((permission) => ({ if (input.permissions.length === 0) {
groupId: permission.principalId, return;
permission: permission.permission, }
boardId: input.entityId, await transaction.insert(schema.boardGroupPermissions).values(
})), input.permissions.map((permission) => ({
); groupId: permission.principalId,
permission: permission.permission,
boardId: input.entityId,
})),
);
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction.delete(boardGroupPermissions).where(eq(boardGroupPermissions.boardId, input.entityId)).run();
if (input.permissions.length === 0) {
return;
}
transaction
.insert(boardGroupPermissions)
.values(
input.permissions.map((permission) => ({
groupId: permission.principalId,
permission: permission.permission,
boardId: input.entityId,
})),
)
.run();
});
},
}); });
}), }),
importOldmarrConfig: permissionRequiredProcedure importOldmarrConfig: permissionRequiredProcedure
@@ -0,0 +1,27 @@
import { z } from "zod";
import { zfd } from "zod-form-data";
import { addCustomRootCertificateAsync, removeCustomRootCertificateAsync } from "@homarr/certificates/server";
import { superRefineCertificateFile, validation } from "@homarr/validation";
import { createTRPCRouter, permissionRequiredProcedure } from "../../trpc";
export const certificateRouter = createTRPCRouter({
addCertificate: permissionRequiredProcedure
.requiresPermission("admin")
.input(
zfd.formData({
file: zfd.file().superRefine(superRefineCertificateFile),
}),
)
.mutation(async ({ input }) => {
const content = await input.file.text();
await addCustomRootCertificateAsync(input.file.name, content);
}),
removeCertificate: permissionRequiredProcedure
.requiresPermission("admin")
.input(z.object({ fileName: validation.certificates.validFileNameSchema }))
.mutation(async ({ input }) => {
await removeCustomRootCertificateAsync(input.fileName);
}),
});
@@ -3,7 +3,7 @@ import { TRPCError } from "@trpc/server";
import { objectEntries } from "@homarr/common"; import { objectEntries } from "@homarr/common";
import { decryptSecret, encryptSecret } from "@homarr/common/server"; import { decryptSecret, encryptSecret } from "@homarr/common/server";
import type { Database } from "@homarr/db"; import type { Database } from "@homarr/db";
import { and, asc, createId, eq, inArray, like } from "@homarr/db"; import { and, asc, createId, eq, handleTransactionsAsync, inArray, like } from "@homarr/db";
import { import {
groupMembers, groupMembers,
groupPermissions, groupPermissions,
@@ -130,6 +130,16 @@ export const integrationRouter = createTRPCRouter({
limit: input.limit, limit: input.limit,
}); });
}), }),
// This is used to get the integrations by their ids it's public because it's needed to get integrations data in the boards
byIds: publicProcedure.input(z.array(z.string())).query(async ({ ctx, input }) => {
return await ctx.db.query.integrations.findMany({
where: inArray(integrations.id, input),
columns: {
id: true,
kind: true,
},
});
}),
byId: protectedProcedure.input(validation.integration.byId).query(async ({ ctx, input }) => { byId: protectedProcedure.input(validation.integration.byId).query(async ({ ctx, input }) => {
await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.id), "full"); await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.id), "full");
const integration = await ctx.db.query.integrations.findFirst({ const integration = await ctx.db.query.integrations.findFirst({
@@ -360,20 +370,45 @@ export const integrationRouter = createTRPCRouter({
.mutation(async ({ input, ctx }) => { .mutation(async ({ input, ctx }) => {
await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.entityId), "full"); await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.entityId), "full");
await ctx.db.transaction(async (transaction) => { await handleTransactionsAsync(ctx.db, {
await transaction async handleAsync(db, schema) {
.delete(integrationUserPermissions) await ctx.db.transaction(async (transaction) => {
.where(eq(integrationUserPermissions.integrationId, input.entityId)); await transaction
if (input.permissions.length === 0) { .delete(schema.integrationUserPermissions)
return; .where(eq(schema.integrationUserPermissions.integrationId, input.entityId));
} if (input.permissions.length === 0) {
await transaction.insert(integrationUserPermissions).values( return;
input.permissions.map((permission) => ({ }
userId: permission.principalId, await transaction.insert(schema.integrationUserPermissions).values(
permission: permission.permission, input.permissions.map((permission) => ({
integrationId: input.entityId, userId: permission.principalId,
})), permission: permission.permission,
); integrationId: input.entityId,
})),
);
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction
.delete(integrationUserPermissions)
.where(eq(integrationUserPermissions.integrationId, input.entityId))
.run();
if (input.permissions.length === 0) {
return;
}
transaction
.insert(integrationUserPermissions)
.values(
input.permissions.map((permission) => ({
userId: permission.principalId,
permission: permission.permission,
integrationId: input.entityId,
})),
)
.run();
});
},
}); });
}), }),
saveGroupIntegrationPermissions: protectedProcedure saveGroupIntegrationPermissions: protectedProcedure
@@ -381,20 +416,45 @@ export const integrationRouter = createTRPCRouter({
.mutation(async ({ input, ctx }) => { .mutation(async ({ input, ctx }) => {
await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.entityId), "full"); await throwIfActionForbiddenAsync(ctx, eq(integrations.id, input.entityId), "full");
await ctx.db.transaction(async (transaction) => { await handleTransactionsAsync(ctx.db, {
await transaction async handleAsync(db, schema) {
.delete(integrationGroupPermissions) await db.transaction(async (transaction) => {
.where(eq(integrationGroupPermissions.integrationId, input.entityId)); await transaction
if (input.permissions.length === 0) { .delete(schema.integrationGroupPermissions)
return; .where(eq(schema.integrationGroupPermissions.integrationId, input.entityId));
} if (input.permissions.length === 0) {
await transaction.insert(integrationGroupPermissions).values( return;
input.permissions.map((permission) => ({ }
groupId: permission.principalId, await transaction.insert(schema.integrationGroupPermissions).values(
permission: permission.permission, input.permissions.map((permission) => ({
integrationId: input.entityId, groupId: permission.principalId,
})), permission: permission.permission,
); integrationId: input.entityId,
})),
);
});
},
handleSync(db) {
db.transaction((transaction) => {
transaction
.delete(integrationGroupPermissions)
.where(eq(integrationGroupPermissions.integrationId, input.entityId))
.run();
if (input.permissions.length === 0) {
return;
}
transaction
.insert(integrationGroupPermissions)
.values(
input.permissions.map((permission) => ({
groupId: permission.principalId,
permission: permission.permission,
integrationId: input.entityId,
})),
)
.run();
});
},
}); });
}), }),
searchInIntegration: protectedProcedure searchInIntegration: protectedProcedure
@@ -1,15 +1,15 @@
import { observable } from "@trpc/server/observable"; import { observable } from "@trpc/server/observable";
import { getIntegrationKindsByCategory } from "@homarr/definitions";
import type { HealthMonitoring } from "@homarr/integrations"; import type { HealthMonitoring } from "@homarr/integrations";
import { systemInfoRequestHandler } from "@homarr/request-handler/health-monitoring"; import type { ProxmoxClusterInfo } from "@homarr/integrations/types";
import { clusterInfoRequestHandler, systemInfoRequestHandler } from "@homarr/request-handler/health-monitoring";
import { createManyIntegrationMiddleware } from "../../middlewares/integration"; import { createManyIntegrationMiddleware, createOneIntegrationMiddleware } from "../../middlewares/integration";
import { createTRPCRouter, publicProcedure } from "../../trpc"; import { createTRPCRouter, publicProcedure } from "../../trpc";
export const healthMonitoringRouter = createTRPCRouter({ export const healthMonitoringRouter = createTRPCRouter({
getHealthStatus: publicProcedure getSystemHealthStatus: publicProcedure
.unstable_concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("healthMonitoring"))) .unstable_concat(createManyIntegrationMiddleware("query", "openmediavault", "dashDot"))
.query(async ({ ctx }) => { .query(async ({ ctx }) => {
return await Promise.all( return await Promise.all(
ctx.integrations.map(async (integration) => { ctx.integrations.map(async (integration) => {
@@ -25,9 +25,8 @@ export const healthMonitoringRouter = createTRPCRouter({
}), }),
); );
}), }),
subscribeSystemHealthStatus: publicProcedure
subscribeHealthStatus: publicProcedure .unstable_concat(createManyIntegrationMiddleware("query", "openmediavault", "dashDot"))
.unstable_concat(createManyIntegrationMiddleware("query", ...getIntegrationKindsByCategory("healthMonitoring")))
.subscription(({ ctx }) => { .subscription(({ ctx }) => {
return observable<{ integrationId: string; healthInfo: HealthMonitoring; timestamp: Date }>((emit) => { return observable<{ integrationId: string; healthInfo: HealthMonitoring; timestamp: Date }>((emit) => {
const unsubscribes: (() => void)[] = []; const unsubscribes: (() => void)[] = [];
@@ -49,4 +48,26 @@ export const healthMonitoringRouter = createTRPCRouter({
}; };
}); });
}), }),
getClusterHealthStatus: publicProcedure
.unstable_concat(createOneIntegrationMiddleware("query", "proxmox"))
.query(async ({ ctx }) => {
const innerHandler = clusterInfoRequestHandler.handler(ctx.integration, {});
const { data } = await innerHandler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
return data;
}),
subscribeClusterHealthStatus: publicProcedure
.unstable_concat(createOneIntegrationMiddleware("query", "proxmox"))
.subscription(({ ctx }) => {
return observable<ProxmoxClusterInfo>((emit) => {
const unsubscribes: (() => void)[] = [];
const innerHandler = clusterInfoRequestHandler.handler(ctx.integration, {});
const unsubscribe = innerHandler.subscribe((healthInfo) => {
emit.next(healthInfo);
});
unsubscribes.push(unsubscribe);
return () => {
unsubscribe();
};
});
}),
}); });
+1 -1
View File
@@ -34,7 +34,7 @@
"bcrypt": "^5.1.1", "bcrypt": "^5.1.1",
"cookies": "^0.9.1", "cookies": "^0.9.1",
"ldapts": "7.3.1", "ldapts": "7.3.1",
"next": "15.1.4", "next": "15.1.5",
"next-auth": "5.0.0-beta.25", "next-auth": "5.0.0-beta.25",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0" "react-dom": "19.0.0"
@@ -1,5 +1,6 @@
import { CredentialsSignin } from "@auth/core/errors"; import { CredentialsSignin } from "@auth/core/errors";
import { extractErrorMessage } from "@homarr/common";
import type { Database, InferInsertModel } from "@homarr/db"; import type { Database, InferInsertModel } from "@homarr/db";
import { and, createId, eq } from "@homarr/db"; import { and, createId, eq } from "@homarr/db";
import { users } from "@homarr/db/schema"; import { users } from "@homarr/db/schema";
@@ -21,8 +22,8 @@ export const authorizeWithLdapCredentialsAsync = async (
distinguishedName: env.AUTH_LDAP_BIND_DN, distinguishedName: env.AUTH_LDAP_BIND_DN,
password: env.AUTH_LDAP_BIND_PASSWORD, password: env.AUTH_LDAP_BIND_PASSWORD,
}) })
.catch(() => { .catch((error) => {
logger.error("Failed to connect to LDAP server"); logger.error(`Failed to connect to LDAP server ${extractErrorMessage(error)}`);
throw new CredentialsSignin(); throw new CredentialsSignin();
}); });
+9
View File
@@ -0,0 +1,9 @@
import baseConfig from "@homarr/eslint-config/base";
/** @type {import('typescript-eslint').Config} */
export default [
{
ignores: [],
},
...baseConfig,
];
+35
View File
@@ -0,0 +1,35 @@
{
"name": "@homarr/certificates",
"version": "0.1.0",
"private": true,
"license": "MIT",
"type": "module",
"exports": {
"./server": "./src/server.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",
"undici": "7.2.3"
},
"devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0",
"eslint": "^9.18.0",
"typescript": "^5.7.3"
}
}
+87
View File
@@ -0,0 +1,87 @@
import fsSync from "node:fs";
import fs from "node:fs/promises";
import { Agent } from "node:https";
import path from "node:path";
import { rootCertificates } from "node:tls";
import axios from "axios";
import { fetch } from "undici";
import { LoggingAgent } from "@homarr/common/server";
const getCertificateFolder = () => {
return process.env.NODE_ENV === "production"
? path.join("/appdata", "trusted-certificates")
: process.env.LOCAL_CERTIFICATE_PATH;
};
export const loadCustomRootCertificatesAsync = async () => {
const folder = getCertificateFolder();
if (!folder) {
return [];
}
if (!fsSync.existsSync(folder)) {
await fs.mkdir(folder, { recursive: true });
}
const dirContent = await fs.readdir(folder);
return await Promise.all(
dirContent
.filter((file) => file.endsWith(".crt"))
.map(async (file) => ({
content: await fs.readFile(path.join(folder, file), "utf8"),
fileName: file,
})),
);
};
export const removeCustomRootCertificateAsync = async (fileName: string) => {
const folder = getCertificateFolder();
if (!folder) {
return;
}
await fs.rm(path.join(folder, fileName));
};
export const addCustomRootCertificateAsync = async (fileName: string, content: string) => {
const folder = getCertificateFolder();
if (!folder) {
throw new Error(
"When you want to use custom certificates locally you need to set LOCAL_CERTIFICATE_PATH to an absolute path",
);
}
if (fileName.includes("/")) {
throw new Error("Invalid file name");
}
await fs.writeFile(path.join(folder, fileName), content);
};
export const createCertificateAgentAsync = async () => {
const customCertificates = await loadCustomRootCertificatesAsync();
return new LoggingAgent({
connect: {
ca: rootCertificates.concat(customCertificates.map((cert) => cert.content)),
},
});
};
export const createAxiosCertificateInstanceAsync = async () => {
const customCertificates = await loadCustomRootCertificatesAsync();
return axios.create({
httpsAgent: new Agent({
ca: rootCertificates.concat(customCertificates.map((cert) => cert.content)),
}),
});
};
export const fetchWithTrustedCertificatesAsync: typeof fetch = async (url, options) => {
const agent = await createCertificateAgentAsync();
return fetch(url, {
...options,
dispatcher: agent,
});
};
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "@homarr/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},
"include": ["*.ts", "src"],
"exclude": ["node_modules"]
}
+2 -1
View File
@@ -29,9 +29,10 @@
"dependencies": { "dependencies": {
"@homarr/log": "workspace:^0.1.0", "@homarr/log": "workspace:^0.1.0",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"next": "15.1.4", "next": "15.1.5",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"undici": "7.2.3",
"zod": "^3.24.1" "zod": "^3.24.1"
}, },
"devDependencies": { "devDependencies": {
+32
View File
@@ -0,0 +1,32 @@
import type { Dispatcher } from "undici";
import { Agent } from "undici";
import { logger } from "@homarr/log";
export class LoggingAgent extends Agent {
constructor(...props: ConstructorParameters<typeof Agent>) {
super(...props);
}
dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean {
const url = new URL(`${options.origin as string}${options.path}`);
// The below code should prevent sensitive data from being logged as
// some integrations use query parameters for auth
url.searchParams.forEach((value, key) => {
if (value === "") return; // Skip empty values
if (/^-?\d{1,12}$/.test(value)) return; // Skip small numbers
if (value === "true" || value === "false") return; // Skip boolean values
if (/^[a-zA-Z]{1,12}$/.test(value)) return; // Skip short strings
if (/^\d{4}-\d{2}-\d{2}$/.test(value)) return; // Skip dates
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(value)) return; // Skip date times
url.searchParams.set(key, "REDACTED");
});
logger.info(
`Dispatching request ${url.toString().replaceAll("=&", "&")} (${Object.keys(options.headers ?? {}).length} headers)`,
);
return super.dispatch(options, handler);
}
}
+1
View File
@@ -1,3 +1,4 @@
export * from "./security"; export * from "./security";
export * from "./encryption"; export * from "./encryption";
export * from "./user-agent"; export * from "./user-agent";
export * from "./fetch-agent";
@@ -3,7 +3,7 @@ import { describe, expect, test, vi } from "vitest";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { LoggingAgent } from "~/undici-log-agent-override"; import { LoggingAgent } from "../fetch-agent";
vi.mock("undici", () => { vi.mock("undici", () => {
return { return {
+73 -35
View File
@@ -1,7 +1,7 @@
import { splitToNChunks, Stopwatch } from "@homarr/common"; import { splitToNChunks, Stopwatch } from "@homarr/common";
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions"; import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
import type { InferInsertModel } from "@homarr/db"; import type { InferInsertModel } from "@homarr/db";
import { db, inArray, sql } from "@homarr/db"; import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
import { createId } from "@homarr/db/client"; import { createId } from "@homarr/db/client";
import { iconRepositories, icons } from "@homarr/db/schema"; import { iconRepositories, icons } from "@homarr/db/schema";
import { fetchIconsAsync } from "@homarr/icons"; import { fetchIconsAsync } from "@homarr/icons";
@@ -83,43 +83,81 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
(iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug), (iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug),
); );
db.transaction((transaction) => { await handleTransactionsAsync(db, {
if (newIconRepositories.length >= 1) { async handleAsync(db, schema) {
transaction.insert(iconRepositories).values(newIconRepositories).run(); await db.transaction(async (transaction) => {
} if (newIconRepositories.length >= 1) {
await transaction.insert(schema.iconRepositories).values(newIconRepositories);
}
if (newIcons.length >= 1) { if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations // We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) { for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run(); await transaction.insert(schema.icons).values(chunck);
} }
} }
if (deadIcons.length >= 1) { if (deadIcons.length >= 1) {
transaction await transaction.delete(schema.icons).where(
.delete(icons) inArray(
.where( // Combine iconRepositoryId and checksum to allow same icons on different repositories
inArray( sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
// Combine iconRepositoryId and checksum to allow same icons on different repositories deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`, ),
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`), );
), }
)
.run();
}
if (deadIconRepositories.length >= 1) { if (deadIconRepositories.length >= 1) {
transaction await transaction.delete(schema.iconRepositories).where(
.delete(iconRepositories) inArray(
.where( iconRepositories.id,
inArray( deadIconRepositories.map((iconRepository) => iconRepository.id),
iconRepositories.id, ),
deadIconRepositories.map((iconRepository) => iconRepository.id), );
), }
)
.run();
}
countDeleted += deadIcons.length; countDeleted += deadIcons.length;
});
},
handleSync() {
db.transaction((transaction) => {
if (newIconRepositories.length >= 1) {
transaction.insert(iconRepositories).values(newIconRepositories).run();
}
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run();
}
}
if (deadIcons.length >= 1) {
transaction
.delete(icons)
.where(
inArray(
// Combine iconRepositoryId and checksum to allow same icons on different repositories
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
),
)
.run();
}
if (deadIconRepositories.length >= 1) {
transaction
.delete(iconRepositories)
.where(
inArray(
iconRepositories.id,
deadIconRepositories.map((iconRepository) => iconRepository.id),
),
)
.run();
}
countDeleted += deadIcons.length;
});
},
}); });
logger.info(`Updated database within ${stopWatch.getElapsedInHumanWords()} (-${countDeleted}, +${countInserted})`); logger.info(`Updated database within ${stopWatch.getElapsedInHumanWords()} (-${countDeleted}, +${countInserted})`);
@@ -1,14 +1,23 @@
import { EVERY_5_SECONDS } from "@homarr/cron-jobs-core/expressions"; import { EVERY_5_SECONDS } from "@homarr/cron-jobs-core/expressions";
import { systemInfoRequestHandler } from "@homarr/request-handler/health-monitoring"; import { clusterInfoRequestHandler, systemInfoRequestHandler } from "@homarr/request-handler/health-monitoring";
import { createRequestIntegrationJobHandler } from "@homarr/request-handler/lib/cached-request-integration-job-handler"; import { createRequestIntegrationJobHandler } from "@homarr/request-handler/lib/cached-request-integration-job-handler";
import { createCronJob } from "../../lib"; import { createCronJob } from "../../lib";
export const healthMonitoringJob = createCronJob("healthMonitoring", EVERY_5_SECONDS).withCallback( export const healthMonitoringJob = createCronJob("healthMonitoring", EVERY_5_SECONDS).withCallback(
createRequestIntegrationJobHandler(systemInfoRequestHandler.handler, { createRequestIntegrationJobHandler(
widgetKinds: ["healthMonitoring"], (integration, itemOptions: Record<string, never>) => {
getInput: { const { kind } = integration;
healthMonitoring: () => ({}), if (kind !== "proxmox") {
return systemInfoRequestHandler.handler({ ...integration, kind }, itemOptions);
}
return clusterInfoRequestHandler.handler({ ...integration, kind }, itemOptions);
}, },
}), {
widgetKinds: ["healthMonitoring"],
getInput: {
healthMonitoring: () => ({}),
},
},
),
); );
+3 -1
View File
@@ -2,6 +2,7 @@ import Database from "better-sqlite3";
import type { Logger } from "drizzle-orm"; import type { Logger } from "drizzle-orm";
import type { BetterSQLite3Database } from "drizzle-orm/better-sqlite3"; import type { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3"; import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3";
import type { MySql2Database } from "drizzle-orm/mysql2";
import { drizzle as drizzleMysql } from "drizzle-orm/mysql2"; import { drizzle as drizzleMysql } from "drizzle-orm/mysql2";
import mysql from "mysql2"; import mysql from "mysql2";
@@ -11,7 +12,8 @@ import { env } from "./env";
import * as mysqlSchema from "./schema/mysql"; import * as mysqlSchema from "./schema/mysql";
import * as sqliteSchema from "./schema/sqlite"; import * as sqliteSchema from "./schema/sqlite";
type HomarrDatabase = BetterSQLite3Database<typeof sqliteSchema>; export type HomarrDatabase = BetterSQLite3Database<typeof sqliteSchema>;
export type HomarrDatabaseMysql = MySql2Database<typeof mysqlSchema>;
const init = () => { const init = () => {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
+2
View File
@@ -7,5 +7,7 @@ export * from "drizzle-orm";
export const db = database; export const db = database;
export type Database = typeof db; export type Database = typeof db;
export type { HomarrDatabaseMysql } from "./driver";
export { createId } from "@paralleldrive/cuid2"; export { createId } from "@paralleldrive/cuid2";
export { handleDiffrentDbDriverOperationsAsync as handleTransactionsAsync } from "./transactions";
+3 -3
View File
@@ -45,10 +45,10 @@
"@paralleldrive/cuid2": "^2.2.2", "@paralleldrive/cuid2": "^2.2.2",
"@t3-oss/env-nextjs": "^0.11.1", "@t3-oss/env-nextjs": "^0.11.1",
"@testcontainers/mysql": "^10.16.0", "@testcontainers/mysql": "^10.16.0",
"better-sqlite3": "^11.7.2", "better-sqlite3": "^11.8.0",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"drizzle-kit": "^0.30.1", "drizzle-kit": "^0.30.2",
"drizzle-orm": "^0.38.3", "drizzle-orm": "^0.38.4",
"drizzle-zod": "^0.6.1", "drizzle-zod": "^0.6.1",
"mysql2": "3.12.0" "mysql2": "3.12.0"
}, },
+24
View File
@@ -0,0 +1,24 @@
import type { HomarrDatabase, HomarrDatabaseMysql } from "./driver";
import { env } from "./env";
import * as mysqlSchema from "./schema/mysql";
type MysqlSchema = typeof mysqlSchema;
interface HandleTransactionInput {
handleAsync: (db: HomarrDatabaseMysql, schema: MysqlSchema) => Promise<void>;
handleSync: (db: HomarrDatabase) => void;
}
/**
* The below method is mostly used to handle transactions in different database drivers.
* As better-sqlite3 transactions have to be synchronous, we have to implement them in a different way.
* But it can also generally be used when dealing with different database drivers.
*/
export const handleDiffrentDbDriverOperationsAsync = async (db: HomarrDatabase, input: HandleTransactionInput) => {
if (env.DB_DRIVER !== "mysql2") {
input.handleSync(db);
return;
}
await input.handleAsync(db as unknown as HomarrDatabaseMysql, mysqlSchema);
};
@@ -51,6 +51,7 @@ export type HomarrDocumentationPath =
| "/docs/tags/bookmark" | "/docs/tags/bookmark"
| "/docs/tags/bookmarks" | "/docs/tags/bookmarks"
| "/docs/tags/caddy" | "/docs/tags/caddy"
| "/docs/tags/certificates"
| "/docs/tags/checklist" | "/docs/tags/checklist"
| "/docs/tags/code" | "/docs/tags/code"
| "/docs/tags/community" | "/docs/tags/community"
@@ -113,6 +114,7 @@ export type HomarrDocumentationPath =
| "/docs/tags/search" | "/docs/tags/search"
| "/docs/tags/search-engines" | "/docs/tags/search-engines"
| "/docs/tags/security" | "/docs/tags/security"
| "/docs/tags/self-signed"
| "/docs/tags/seo" | "/docs/tags/seo"
| "/docs/tags/server" | "/docs/tags/server"
| "/docs/tags/settings" | "/docs/tags/settings"
@@ -166,7 +168,6 @@ export type HomarrDocumentationPath =
| "/docs/getting-started/installation/saltbox" | "/docs/getting-started/installation/saltbox"
| "/docs/getting-started/installation/source" | "/docs/getting-started/installation/source"
| "/docs/getting-started/installation/synology" | "/docs/getting-started/installation/synology"
| "/docs/getting-started/installation/truenas"
| "/docs/getting-started/installation/unraid" | "/docs/getting-started/installation/unraid"
| "/docs/integrations/containers" | "/docs/integrations/containers"
| "/docs/integrations/dns" | "/docs/integrations/dns"
@@ -179,6 +180,7 @@ export type HomarrDocumentationPath =
| "/docs/management/api" | "/docs/management/api"
| "/docs/management/apps" | "/docs/management/apps"
| "/docs/management/boards" | "/docs/management/boards"
| "/docs/management/certificates"
| "/docs/management/integrations" | "/docs/management/integrations"
| "/docs/management/media" | "/docs/management/media"
| "/docs/management/search-engines" | "/docs/management/search-engines"
+1 -1
View File
@@ -1,6 +1,6 @@
import type { HomarrDocumentationPath } from "./homarr-docs-sitemap"; import type { HomarrDocumentationPath } from "./homarr-docs-sitemap";
const documentationBaseUrl = "https://deploy-preview-113--homarr-docs.netlify.app"; const documentationBaseUrl = "https://homarr.dev";
// Please use the method so the path can be checked! // Please use the method so the path can be checked!
export const createDocumentationLink = (path: HomarrDocumentationPath, hashTag?: `#${string}`) => export const createDocumentationLink = (path: HomarrDocumentationPath, hashTag?: `#${string}`) =>
+8
View File
@@ -5,6 +5,8 @@ export const integrationSecretKindObject = {
apiKey: { isPublic: false }, apiKey: { isPublic: false },
username: { isPublic: true }, username: { isPublic: true },
password: { isPublic: false }, password: { isPublic: false },
tokenId: { isPublic: true },
realm: { isPublic: true },
} satisfies Record<string, { isPublic: boolean }>; } satisfies Record<string, { isPublic: boolean }>;
export const integrationSecretKinds = objectKeys(integrationSecretKindObject); export const integrationSecretKinds = objectKeys(integrationSecretKindObject);
@@ -137,6 +139,12 @@ export const integrationDefs = {
category: ["mediaTranscoding"], category: ["mediaTranscoding"],
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/tdarr.png", iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/png/tdarr.png",
}, },
proxmox: {
name: "Proxmox",
secretKinds: [["username", "tokenId", "apiKey", "realm"]],
category: ["healthMonitoring"],
iconUrl: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/proxmox.png",
},
} as const satisfies Record<string, integrationDefinition>; } as const satisfies Record<string, integrationDefinition>;
export const integrationKinds = objectKeys(integrationDefs) as AtLeastOneOf<IntegrationKind>; export const integrationKinds = objectKeys(integrationDefs) as AtLeastOneOf<IntegrationKind>;
+3
View File
@@ -27,6 +27,7 @@
"@ctrl/deluge": "^7.1.0", "@ctrl/deluge": "^7.1.0",
"@ctrl/qbittorrent": "^9.2.0", "@ctrl/qbittorrent": "^9.2.0",
"@ctrl/transmission": "^7.2.0", "@ctrl/transmission": "^7.2.0",
"@homarr/certificates": "workspace:^0.1.0",
"@homarr/common": "workspace:^0.1.0", "@homarr/common": "workspace:^0.1.0",
"@homarr/db": "workspace:^0.1.0", "@homarr/db": "workspace:^0.1.0",
"@homarr/definitions": "workspace:^0.1.0", "@homarr/definitions": "workspace:^0.1.0",
@@ -35,6 +36,8 @@
"@homarr/translation": "workspace:^0.1.0", "@homarr/translation": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0", "@homarr/validation": "workspace:^0.1.0",
"@jellyfin/sdk": "^0.11.0", "@jellyfin/sdk": "^0.11.0",
"proxmox-api": "1.1.1",
"undici": "7.2.3",
"xml2js": "^0.6.2" "xml2js": "^0.6.2"
}, },
"devDependencies": { "devDependencies": {
@@ -1,3 +1,5 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
import { IntegrationTestConnectionError } from "../base/test-connection-error"; import { IntegrationTestConnectionError } from "../base/test-connection-error";
import type { DnsHoleSummaryIntegration } from "../interfaces/dns-hole-summary/dns-hole-summary-integration"; import type { DnsHoleSummaryIntegration } from "../interfaces/dns-hole-summary/dns-hole-summary-integration";
@@ -6,7 +8,7 @@ import { filteringStatusSchema, statsResponseSchema, statusResponseSchema } from
export class AdGuardHomeIntegration extends Integration implements DnsHoleSummaryIntegration { export class AdGuardHomeIntegration extends Integration implements DnsHoleSummaryIntegration {
public async getSummaryAsync(): Promise<DnsHoleSummary> { public async getSummaryAsync(): Promise<DnsHoleSummary> {
const statsResponse = await fetch(this.url("/control/stats"), { const statsResponse = await fetchWithTrustedCertificatesAsync(this.url("/control/stats"), {
headers: { headers: {
Authorization: `Basic ${this.getAuthorizationHeaderValue()}`, Authorization: `Basic ${this.getAuthorizationHeaderValue()}`,
}, },
@@ -18,7 +20,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
); );
} }
const statusResponse = await fetch(this.url("/control/status"), { const statusResponse = await fetchWithTrustedCertificatesAsync(this.url("/control/status"), {
headers: { headers: {
Authorization: `Basic ${this.getAuthorizationHeaderValue()}`, Authorization: `Basic ${this.getAuthorizationHeaderValue()}`,
}, },
@@ -30,7 +32,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
); );
} }
const filteringStatusResponse = await fetch(this.url("/control/filtering/status"), { const filteringStatusResponse = await fetchWithTrustedCertificatesAsync(this.url("/control/filtering/status"), {
headers: { headers: {
Authorization: `Basic ${this.getAuthorizationHeaderValue()}`, Authorization: `Basic ${this.getAuthorizationHeaderValue()}`,
}, },
@@ -86,7 +88,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/control/status"), { return await fetchWithTrustedCertificatesAsync(this.url("/control/status"), {
headers: { headers: {
Authorization: `Basic ${this.getAuthorizationHeaderValue()}`, Authorization: `Basic ${this.getAuthorizationHeaderValue()}`,
}, },
@@ -94,7 +96,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
}, },
handleResponseAsync: async (response) => { handleResponseAsync: async (response) => {
try { try {
const result = (await response.json()) as unknown; const result = await response.json();
if (typeof result === "object" && result !== null) return; if (typeof result === "object" && result !== null) return;
} catch { } catch {
throw new IntegrationTestConnectionError("invalidJson"); throw new IntegrationTestConnectionError("invalidJson");
@@ -106,7 +108,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
} }
public async enableAsync(): Promise<void> { public async enableAsync(): Promise<void> {
const response = await fetch(this.url("/control/protection"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/control/protection"), {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
@@ -124,7 +126,7 @@ export class AdGuardHomeIntegration extends Integration implements DnsHoleSummar
} }
public async disableAsync(duration = 0): Promise<void> { public async disableAsync(duration = 0): Promise<void> {
const response = await fetch(this.url("/control/protection"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/control/protection"), {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
@@ -23,6 +23,7 @@ import { OverseerrIntegration } from "../overseerr/overseerr-integration";
import { PiHoleIntegration } from "../pi-hole/pi-hole-integration"; import { PiHoleIntegration } from "../pi-hole/pi-hole-integration";
import { PlexIntegration } from "../plex/plex-integration"; import { PlexIntegration } from "../plex/plex-integration";
import { ProwlarrIntegration } from "../prowlarr/prowlarr-integration"; import { ProwlarrIntegration } from "../prowlarr/prowlarr-integration";
import { ProxmoxIntegration } from "../proxmox/proxmox-integration";
import type { Integration, IntegrationInput } from "./integration"; import type { Integration, IntegrationInput } from "./integration";
export const integrationCreator = <TKind extends keyof typeof integrationCreators>( export const integrationCreator = <TKind extends keyof typeof integrationCreators>(
@@ -72,4 +73,5 @@ export const integrationCreators = {
readarr: ReadarrIntegration, readarr: ReadarrIntegration,
dashDot: DashDotIntegration, dashDot: DashDotIntegration,
tdarr: TdarrIntegration, tdarr: TdarrIntegration,
proxmox: ProxmoxIntegration,
} satisfies Record<IntegrationKind, new (integration: IntegrationInput) => Integration>; } satisfies Record<IntegrationKind, new (integration: IntegrationInput) => Integration>;
@@ -1,3 +1,5 @@
import type { Response } from "undici";
import { extractErrorMessage, removeTrailingSlash } from "@homarr/common"; import { extractErrorMessage, removeTrailingSlash } from "@homarr/common";
import type { IntegrationSecretKind } from "@homarr/definitions"; import type { IntegrationSecretKind } from "@homarr/definitions";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
@@ -4,6 +4,7 @@ import "@homarr/redis";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
import { createChannelEventHistory } from "../../../redis/src/lib/channel"; import { createChannelEventHistory } from "../../../redis/src/lib/channel";
@@ -12,7 +13,7 @@ import type { HealthMonitoring } from "../types";
export class DashDotIntegration extends Integration { export class DashDotIntegration extends Integration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
const response = await fetch(this.url("/info")); const response = await fetchWithTrustedCertificatesAsync(this.url("/info"));
await response.json(); await response.json();
} }
@@ -52,7 +53,7 @@ export class DashDotIntegration extends Integration {
} }
private async getInfoAsync() { private async getInfoAsync() {
const infoResponse = await fetch(this.url("/info")); const infoResponse = await fetchWithTrustedCertificatesAsync(this.url("/info"));
const serverInfo = await internalServerInfoApi.parseAsync(await infoResponse.json()); const serverInfo = await internalServerInfoApi.parseAsync(await infoResponse.json());
return { return {
maxAvailableMemoryBytes: serverInfo.ram.size, maxAvailableMemoryBytes: serverInfo.ram.size,
@@ -66,7 +67,7 @@ export class DashDotIntegration extends Integration {
private async getCurrentCpuLoadAsync() { private async getCurrentCpuLoadAsync() {
const channel = this.getChannel(); const channel = this.getChannel();
const cpu = await fetch(this.url("/load/cpu")); const cpu = await fetchWithTrustedCertificatesAsync(this.url("/load/cpu"));
const data = await cpuLoadPerCoreApiList.parseAsync(await cpu.json()); const data = await cpuLoadPerCoreApiList.parseAsync(await cpu.json());
await channel.pushAsync(data); await channel.pushAsync(data);
return { return {
@@ -88,12 +89,12 @@ export class DashDotIntegration extends Integration {
} }
private async getCurrentStorageLoadAsync() { private async getCurrentStorageLoadAsync() {
const storageLoad = await fetch(this.url("/load/storage")); const storageLoad = await fetchWithTrustedCertificatesAsync(this.url("/load/storage"));
return (await storageLoad.json()) as number[]; return (await storageLoad.json()) as number[];
} }
private async getCurrentMemoryLoadAsync() { private async getCurrentMemoryLoadAsync() {
const memoryLoad = await fetch(this.url("/load/ram")); const memoryLoad = await fetchWithTrustedCertificatesAsync(this.url("/load/ram"));
const data = await memoryLoadApi.parseAsync(await memoryLoad.json()); const data = await memoryLoadApi.parseAsync(await memoryLoad.json());
return { return {
loadInBytes: data.load, loadInBytes: data.load,
@@ -1,6 +1,8 @@
import { Deluge } from "@ctrl/deluge"; import { Deluge } from "@ctrl/deluge";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { createCertificateAgentAsync } from "@homarr/certificates/server";
import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data"; import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data";
import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration"; import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration";
import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items"; import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items";
@@ -8,13 +10,13 @@ import type { DownloadClientStatus } from "../../interfaces/downloads/download-c
export class DelugeIntegration extends DownloadClientIntegration { export class DelugeIntegration extends DownloadClientIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
const client = this.getClient(); const client = await this.getClientAsync();
await client.login(); await client.login();
} }
public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> { public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> {
const type = "torrent"; const type = "torrent";
const client = this.getClient(); const client = await this.getClientAsync();
const { const {
stats: { download_rate, upload_rate }, stats: { download_rate, upload_rate },
torrents: rawTorrents, torrents: rawTorrents,
@@ -57,7 +59,7 @@ export class DelugeIntegration extends DownloadClientIntegration {
} }
public async pauseQueueAsync() { public async pauseQueueAsync() {
const client = this.getClient(); const client = await this.getClientAsync();
const store = (await client.listTorrents()).result.torrents; const store = (await client.listTorrents()).result.torrents;
await Promise.all( await Promise.all(
Object.entries(store).map(async ([id]) => { Object.entries(store).map(async ([id]) => {
@@ -67,11 +69,12 @@ export class DelugeIntegration extends DownloadClientIntegration {
} }
public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> { public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().pauseTorrent(id); const client = await this.getClientAsync();
await client.pauseTorrent(id);
} }
public async resumeQueueAsync() { public async resumeQueueAsync() {
const client = this.getClient(); const client = await this.getClientAsync();
const store = (await client.listTorrents()).result.torrents; const store = (await client.listTorrents()).result.torrents;
await Promise.all( await Promise.all(
Object.entries(store).map(async ([id]) => { Object.entries(store).map(async ([id]) => {
@@ -81,17 +84,20 @@ export class DelugeIntegration extends DownloadClientIntegration {
} }
public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> { public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().resumeTorrent(id); const client = await this.getClientAsync();
await client.resumeTorrent(id);
} }
public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> { public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> {
await this.getClient().removeTorrent(id, fromDisk); const client = await this.getClientAsync();
await client.removeTorrent(id, fromDisk);
} }
private getClient() { private async getClientAsync() {
return new Deluge({ return new Deluge({
baseUrl: this.url("/").toString(), baseUrl: this.url("/").toString(),
password: this.getSecretValue("password"), password: this.getSecretValue("password"),
dispatcher: await createCertificateAgentAsync(),
}); });
} }
@@ -1,5 +1,7 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data"; import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data";
import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration"; import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration";
import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items"; import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items";
@@ -96,7 +98,7 @@ export class NzbGetIntegration extends DownloadClientIntegration {
const password = this.getSecretValue("password"); const password = this.getSecretValue("password");
const url = this.url(`/${username}:${password}/jsonrpc`); const url = this.url(`/${username}:${password}/jsonrpc`);
const body = JSON.stringify({ method, params }); const body = JSON.stringify({ method, params });
return await fetch(url, { method: "POST", body }) return await fetchWithTrustedCertificatesAsync(url, { method: "POST", body })
.then(async (response) => { .then(async (response) => {
if (!response.ok) { if (!response.ok) {
throw new Error(response.statusText); throw new Error(response.statusText);
@@ -1,6 +1,8 @@
import { QBittorrent } from "@ctrl/qbittorrent"; import { QBittorrent } from "@ctrl/qbittorrent";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { createCertificateAgentAsync } from "@homarr/certificates/server";
import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data"; import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data";
import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration"; import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration";
import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items"; import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items";
@@ -8,13 +10,13 @@ import type { DownloadClientStatus } from "../../interfaces/downloads/download-c
export class QBitTorrentIntegration extends DownloadClientIntegration { export class QBitTorrentIntegration extends DownloadClientIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
const client = this.getClient(); const client = await this.getClientAsync();
await client.login(); await client.login();
} }
public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> { public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> {
const type = "torrent"; const type = "torrent";
const client = this.getClient(); const client = await this.getClientAsync();
const torrents = await client.listTorrents(); const torrents = await client.listTorrents();
const rates = torrents.reduce( const rates = torrents.reduce(
({ down, up }, { dlspeed, upspeed }) => ({ down: down + dlspeed, up: up + upspeed }), ({ down, up }, { dlspeed, upspeed }) => ({ down: down + dlspeed, up: up + upspeed }),
@@ -50,30 +52,36 @@ export class QBitTorrentIntegration extends DownloadClientIntegration {
} }
public async pauseQueueAsync() { public async pauseQueueAsync() {
await this.getClient().pauseTorrent("all"); const client = await this.getClientAsync();
await client.pauseTorrent("all");
} }
public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> { public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().pauseTorrent(id); const client = await this.getClientAsync();
await client.pauseTorrent(id);
} }
public async resumeQueueAsync() { public async resumeQueueAsync() {
await this.getClient().resumeTorrent("all"); const client = await this.getClientAsync();
await client.resumeTorrent("all");
} }
public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> { public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().resumeTorrent(id); const client = await this.getClientAsync();
await client.resumeTorrent(id);
} }
public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> { public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> {
await this.getClient().removeTorrent(id, fromDisk); const client = await this.getClientAsync();
await client.removeTorrent(id, fromDisk);
} }
private getClient() { private async getClientAsync() {
return new QBittorrent({ return new QBittorrent({
baseUrl: this.url("/").toString(), baseUrl: this.url("/").toString(),
username: this.getSecretValue("username"), username: this.getSecretValue("username"),
password: this.getSecretValue("password"), password: this.getSecretValue("password"),
dispatcher: await createCertificateAgentAsync(),
}); });
} }
@@ -1,6 +1,8 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import duration from "dayjs/plugin/duration"; import duration from "dayjs/plugin/duration";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data"; import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data";
import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration"; import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration";
import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items"; import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items";
@@ -106,12 +108,12 @@ export class SabnzbdIntegration extends DownloadClientIntegration {
apikey: this.getSecretValue("apiKey"), apikey: this.getSecretValue("apiKey"),
}); });
return await fetch(url) return await fetchWithTrustedCertificatesAsync(url)
.then((response) => { .then((response) => {
if (!response.ok) { if (!response.ok) {
throw new Error(response.statusText); throw new Error(response.statusText);
} }
return response.json() as Promise<unknown>; return response.json();
}) })
.catch((error) => { .catch((error) => {
if (error instanceof Error) { if (error instanceof Error) {
@@ -1,6 +1,8 @@
import { Transmission } from "@ctrl/transmission"; import { Transmission } from "@ctrl/transmission";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { createCertificateAgentAsync } from "@homarr/certificates/server";
import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data"; import type { DownloadClientJobsAndStatus } from "../../interfaces/downloads/download-client-data";
import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration"; import { DownloadClientIntegration } from "../../interfaces/downloads/download-client-integration";
import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items"; import type { DownloadClientItem } from "../../interfaces/downloads/download-client-items";
@@ -8,12 +10,13 @@ import type { DownloadClientStatus } from "../../interfaces/downloads/download-c
export class TransmissionIntegration extends DownloadClientIntegration { export class TransmissionIntegration extends DownloadClientIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await this.getClient().getSession(); const client = await this.getClientAsync();
await client.getSession();
} }
public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> { public async getClientJobsAndStatusAsync(): Promise<DownloadClientJobsAndStatus> {
const type = "torrent"; const type = "torrent";
const client = this.getClient(); const client = await this.getClientAsync();
const { torrents } = (await client.listTorrents()).arguments; const { torrents } = (await client.listTorrents()).arguments;
const rates = torrents.reduce( const rates = torrents.reduce(
({ down, up }, { rateDownload, rateUpload }) => ({ down: down + rateDownload, up: up + rateUpload }), ({ down, up }, { rateDownload, rateUpload }) => ({ down: down + rateDownload, up: up + rateUpload }),
@@ -47,34 +50,38 @@ export class TransmissionIntegration extends DownloadClientIntegration {
} }
public async pauseQueueAsync() { public async pauseQueueAsync() {
const client = this.getClient(); const client = await this.getClientAsync();
const ids = (await client.listTorrents()).arguments.torrents.map(({ hashString }) => hashString); const ids = (await client.listTorrents()).arguments.torrents.map(({ hashString }) => hashString);
await this.getClient().pauseTorrent(ids); await client.pauseTorrent(ids);
} }
public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> { public async pauseItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().pauseTorrent(id); const client = await this.getClientAsync();
await client.pauseTorrent(id);
} }
public async resumeQueueAsync() { public async resumeQueueAsync() {
const client = this.getClient(); const client = await this.getClientAsync();
const ids = (await client.listTorrents()).arguments.torrents.map(({ hashString }) => hashString); const ids = (await client.listTorrents()).arguments.torrents.map(({ hashString }) => hashString);
await this.getClient().resumeTorrent(ids); await client.resumeTorrent(ids);
} }
public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> { public async resumeItemAsync({ id }: DownloadClientItem): Promise<void> {
await this.getClient().resumeTorrent(id); const client = await this.getClientAsync();
await client.resumeTorrent(id);
} }
public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> { public async deleteItemAsync({ id }: DownloadClientItem, fromDisk: boolean): Promise<void> {
await this.getClient().removeTorrent(id, fromDisk); const client = await this.getClientAsync();
await client.removeTorrent(id, fromDisk);
} }
private getClient() { private async getClientAsync() {
return new Transmission({ return new Transmission({
baseUrl: this.url("/").toString(), baseUrl: this.url("/").toString(),
username: this.getSecretValue("username"), username: this.getSecretValue("username"),
password: this.getSecretValue("password"), password: this.getSecretValue("password"),
dispatcher: await createCertificateAgentAsync(),
}); });
} }
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
@@ -7,7 +8,7 @@ export class HomeAssistantIntegration extends Integration {
public async getEntityStateAsync(entityId: string) { public async getEntityStateAsync(entityId: string) {
try { try {
const response = await this.getAsync(`/api/states/${entityId}`); const response = await this.getAsync(`/api/states/${entityId}`);
const body = (await response.json()) as unknown; const body = await response.json();
if (!response.ok) { if (!response.ok) {
logger.warn(`Response did not indicate success`); logger.warn(`Response did not indicate success`);
return { return {
@@ -71,7 +72,7 @@ export class HomeAssistantIntegration extends Integration {
* @returns the response from the API * @returns the response from the API
*/ */
private async getAsync(path: `/api/${string}`) { private async getAsync(path: `/api/${string}`) {
return await fetch(this.url(path), { return await fetchWithTrustedCertificatesAsync(this.url(path), {
headers: this.getAuthHeaders(), headers: this.getAuthHeaders(),
}); });
} }
@@ -84,7 +85,7 @@ export class HomeAssistantIntegration extends Integration {
* @returns the response from the API * @returns the response from the API
*/ */
private async postAsync(path: `/api/${string}`, body: Record<string, string>) { private async postAsync(path: `/api/${string}`, body: Record<string, string>) {
return await fetch(this.url(path), { return await fetchWithTrustedCertificatesAsync(this.url(path), {
headers: this.getAuthHeaders(), headers: this.getAuthHeaders(),
body: JSON.stringify(body), body: JSON.stringify(body),
method: "POST", method: "POST",
@@ -2,6 +2,8 @@ import { Jellyfin } from "@jellyfin/sdk";
import { getSessionApi } from "@jellyfin/sdk/lib/utils/api/session-api"; import { getSessionApi } from "@jellyfin/sdk/lib/utils/api/session-api";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api"; import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
import { createAxiosCertificateInstanceAsync } from "@homarr/certificates/server";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
import type { StreamSession } from "../interfaces/media-server/session"; import type { StreamSession } from "../interfaces/media-server/session";
@@ -65,12 +67,13 @@ export class JellyfinIntegration extends Integration {
* @returns An instance of Api that has been authenticated * @returns An instance of Api that has been authenticated
*/ */
private async getApiAsync() { private async getApiAsync() {
const httpsAgent = await createAxiosCertificateInstanceAsync();
if (this.hasSecretValue("apiKey")) { if (this.hasSecretValue("apiKey")) {
const apiKey = this.getSecretValue("apiKey"); const apiKey = this.getSecretValue("apiKey");
return this.jellyfin.createApi(this.url("/").toString(), apiKey); return this.jellyfin.createApi(this.url("/").toString(), apiKey, httpsAgent);
} }
const apiClient = this.jellyfin.createApi(this.url("/").toString()); const apiClient = this.jellyfin.createApi(this.url("/").toString(), undefined, httpsAgent);
// Authentication state is stored internally in the Api class, so now // Authentication state is stored internally in the Api class, so now
// requests that require authentication can be made normally. // requests that require authentication can be made normally.
// see https://typescript-sdk.jellyfin.org/#usage // see https://typescript-sdk.jellyfin.org/#usage
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
@@ -8,7 +9,7 @@ export class LidarrIntegration extends MediaOrganizerIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/api"), { return await fetchWithTrustedCertificatesAsync(this.url("/api"), {
headers: { "X-Api-Key": super.getSecretValue("apiKey") }, headers: { "X-Api-Key": super.getSecretValue("apiKey") },
}); });
}, },
@@ -28,7 +29,7 @@ export class LidarrIntegration extends MediaOrganizerIntegration {
unmonitored: includeUnmonitored, unmonitored: includeUnmonitored,
}); });
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
headers: { headers: {
"X-Api-Key": super.getSecretValue("apiKey"), "X-Api-Key": super.getSecretValue("apiKey"),
}, },
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import type { AtLeastOneOf } from "@homarr/common/types"; import type { AtLeastOneOf } from "@homarr/common/types";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
@@ -20,7 +21,7 @@ export class RadarrIntegration extends MediaOrganizerIntegration {
unmonitored: includeUnmonitored, unmonitored: includeUnmonitored,
}); });
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
headers: { headers: {
"X-Api-Key": super.getSecretValue("apiKey"), "X-Api-Key": super.getSecretValue("apiKey"),
}, },
@@ -94,7 +95,7 @@ export class RadarrIntegration extends MediaOrganizerIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/api"), { return await fetchWithTrustedCertificatesAsync(this.url("/api"), {
headers: { "X-Api-Key": super.getSecretValue("apiKey") }, headers: { "X-Api-Key": super.getSecretValue("apiKey") },
}); });
}, },
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
@@ -8,7 +9,7 @@ export class ReadarrIntegration extends MediaOrganizerIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/api"), { return await fetchWithTrustedCertificatesAsync(this.url("/api"), {
headers: { "X-Api-Key": super.getSecretValue("apiKey") }, headers: { "X-Api-Key": super.getSecretValue("apiKey") },
}); });
}, },
@@ -34,7 +35,7 @@ export class ReadarrIntegration extends MediaOrganizerIntegration {
includeAuthor, includeAuthor,
}); });
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
headers: { headers: {
"X-Api-Key": super.getSecretValue("apiKey"), "X-Api-Key": super.getSecretValue("apiKey"),
}, },
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
@@ -21,7 +22,7 @@ export class SonarrIntegration extends MediaOrganizerIntegration {
includeEpisodeImages: true, includeEpisodeImages: true,
}); });
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
headers: { headers: {
"X-Api-Key": super.getSecretValue("apiKey"), "X-Api-Key": super.getSecretValue("apiKey"),
}, },
@@ -93,7 +94,7 @@ export class SonarrIntegration extends MediaOrganizerIntegration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/api"), { return await fetchWithTrustedCertificatesAsync(this.url("/api"), {
headers: { "X-Api-Key": super.getSecretValue("apiKey") }, headers: { "X-Api-Key": super.getSecretValue("apiKey") },
}); });
}, },
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
@@ -9,7 +10,7 @@ import { getNodesResponseSchema, getStatisticsSchema, getStatusTableSchema } fro
export class TdarrIntegration extends Integration { export class TdarrIntegration extends Integration {
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
const url = this.url("/api/v2/status"); const url = this.url("/api/v2/status");
const response = await fetch(url); const response = await fetchWithTrustedCertificatesAsync(url);
if (response.status !== 200) { if (response.status !== 200) {
throw new Error(`Unexpected status code: ${response.status}`); throw new Error(`Unexpected status code: ${response.status}`);
} }
@@ -19,7 +20,7 @@ export class TdarrIntegration extends Integration {
public async getStatisticsAsync(): Promise<TdarrStatistics> { public async getStatisticsAsync(): Promise<TdarrStatistics> {
const url = this.url("/api/v2/cruddb"); const url = this.url("/api/v2/cruddb");
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
method: "POST", method: "POST",
headers: { "content-type": "application/json" }, headers: { "content-type": "application/json" },
body: JSON.stringify({ body: JSON.stringify({
@@ -61,7 +62,7 @@ export class TdarrIntegration extends Integration {
public async getWorkersAsync(): Promise<TdarrWorker[]> { public async getWorkersAsync(): Promise<TdarrWorker[]> {
const url = this.url("/api/v2/get-nodes"); const url = this.url("/api/v2/get-nodes");
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
method: "GET", method: "GET",
headers: { "content-type": "application/json" }, headers: { "content-type": "application/json" },
}); });
@@ -101,7 +102,7 @@ export class TdarrIntegration extends Integration {
private async getTranscodingQueueAsync(firstItemIndex: number, pageSize: number) { private async getTranscodingQueueAsync(firstItemIndex: number, pageSize: number) {
const url = this.url("/api/v2/client/status-tables"); const url = this.url("/api/v2/client/status-tables");
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
method: "POST", method: "POST",
headers: { "content-type": "application/json" }, headers: { "content-type": "application/json" },
body: JSON.stringify({ body: JSON.stringify({
@@ -136,7 +137,7 @@ export class TdarrIntegration extends Integration {
private async getHealthCheckDataAsync(firstItemIndex: number, pageSize: number, totalQueueCount: number) { private async getHealthCheckDataAsync(firstItemIndex: number, pageSize: number, totalQueueCount: number) {
const url = this.url("/api/v2/client/status-tables"); const url = this.url("/api/v2/client/status-tables");
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
method: "POST", method: "POST",
headers: { "content-type": "application/json" }, headers: { "content-type": "application/json" },
body: JSON.stringify({ body: JSON.stringify({
@@ -1,3 +1,7 @@
import type { Response } from "undici";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
import { IntegrationTestConnectionError } from "../base/test-connection-error"; import { IntegrationTestConnectionError } from "../base/test-connection-error";
import type { HealthMonitoring } from "../types"; import type { HealthMonitoring } from "../types";
@@ -105,7 +109,7 @@ export class OpenMediaVaultIntegration extends Integration {
if (!response.ok) { if (!response.ok) {
throw new IntegrationTestConnectionError("invalidCredentials"); throw new IntegrationTestConnectionError("invalidCredentials");
} }
const result = (await response.json()) as unknown; const result = await response.json();
if (typeof result !== "object" || result === null || !("response" in result)) { if (typeof result !== "object" || result === null || !("response" in result)) {
throw new IntegrationTestConnectionError("invalidJson"); throw new IntegrationTestConnectionError("invalidJson");
} }
@@ -117,7 +121,7 @@ export class OpenMediaVaultIntegration extends Integration {
params: Record<string, unknown>, params: Record<string, unknown>,
headers: Record<string, string> = {}, headers: Record<string, string> = {},
): Promise<Response> { ): Promise<Response> {
return await fetch(this.url("/rpc.php"), { return await fetchWithTrustedCertificatesAsync(this.url("/rpc.php"), {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
@@ -1,3 +1,4 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { z } from "@homarr/validation"; import { z } from "@homarr/validation";
@@ -20,7 +21,7 @@ interface OverseerrSearchResult {
*/ */
export class OverseerrIntegration extends Integration implements ISearchableIntegration<OverseerrSearchResult> { export class OverseerrIntegration extends Integration implements ISearchableIntegration<OverseerrSearchResult> {
public async searchAsync(query: string) { public async searchAsync(query: string) {
const response = await fetch(this.url("/api/v1/search", { query }), { const response = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/search", { query }), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -44,7 +45,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
public async getSeriesInformationAsync(mediaType: "movie" | "tv", id: number) { public async getSeriesInformationAsync(mediaType: "movie" | "tv", id: number) {
const url = mediaType === "tv" ? this.url(`/api/v1/tv/${id}`) : this.url(`/api/v1/movie/${id}`); const url = mediaType === "tv" ? this.url(`/api/v1/tv/${id}`) : this.url(`/api/v1/movie/${id}`);
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -60,7 +61,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
*/ */
public async requestMediaAsync(mediaType: "movie" | "tv", id: number, seasons?: number[]): Promise<void> { public async requestMediaAsync(mediaType: "movie" | "tv", id: number, seasons?: number[]): Promise<void> {
const url = this.url("/api/v1/request"); const url = this.url("/api/v1/request");
const response = await fetch(url, { const response = await fetchWithTrustedCertificatesAsync(url, {
method: "POST", method: "POST",
body: JSON.stringify({ body: JSON.stringify({
mediaType, mediaType,
@@ -80,13 +81,12 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
} }
public async testConnectionAsync(): Promise<void> { public async testConnectionAsync(): Promise<void> {
const response = await fetch(this.url("/api/v1/auth/me"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/auth/me"), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
}); });
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const json = (await response.json()) as object;
const json: object = await response.json();
if (Object.keys(json).includes("id")) { if (Object.keys(json).includes("id")) {
return; return;
} }
@@ -96,14 +96,17 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
public async getRequestsAsync(): Promise<MediaRequest[]> { public async getRequestsAsync(): Promise<MediaRequest[]> {
//Ensure to get all pending request first //Ensure to get all pending request first
const pendingRequests = await fetch(this.url("/api/v1/request", { take: -1, filter: "pending" }), { const pendingRequests = await fetchWithTrustedCertificatesAsync(
headers: { this.url("/api/v1/request", { take: -1, filter: "pending" }),
"X-Api-Key": this.getSecretValue("apiKey"), {
headers: {
"X-Api-Key": this.getSecretValue("apiKey"),
},
}, },
}); );
//Change 20 to integration setting (set to -1 for all) //Change 20 to integration setting (set to -1 for all)
const allRequests = await fetch(this.url("/api/v1/request", { take: 20 }), { const allRequests = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/request", { take: 20 }), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -151,7 +154,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
} }
public async getStatsAsync(): Promise<RequestStats> { public async getStatsAsync(): Promise<RequestStats> {
const response = await fetch(this.url("/api/v1/request/count"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/request/count"), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -160,7 +163,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
} }
public async getUsersAsync(): Promise<RequestUser[]> { public async getUsersAsync(): Promise<RequestUser[]> {
const response = await fetch(this.url("/api/v1/user", { take: -1 }), { const response = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/user", { take: -1 }), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -177,7 +180,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
public async approveRequestAsync(requestId: number): Promise<void> { public async approveRequestAsync(requestId: number): Promise<void> {
logger.info(`Approving media request id='${requestId}' integration='${this.integration.name}'`); logger.info(`Approving media request id='${requestId}' integration='${this.integration.name}'`);
await fetch(this.url(`/api/v1/request/${requestId}/approve`), { await fetchWithTrustedCertificatesAsync(this.url(`/api/v1/request/${requestId}/approve`), {
method: "POST", method: "POST",
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
@@ -195,7 +198,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
public async declineRequestAsync(requestId: number): Promise<void> { public async declineRequestAsync(requestId: number): Promise<void> {
logger.info(`Declining media request id='${requestId}' integration='${this.integration.name}'`); logger.info(`Declining media request id='${requestId}' integration='${this.integration.name}'`);
await fetch(this.url(`/api/v1/request/${requestId}/decline`), { await fetchWithTrustedCertificatesAsync(this.url(`/api/v1/request/${requestId}/decline`), {
method: "POST", method: "POST",
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
@@ -212,7 +215,7 @@ export class OverseerrIntegration extends Integration implements ISearchableInte
} }
private async getItemInformationAsync(id: number, type: MediaRequest["type"]): Promise<MediaInformation> { private async getItemInformationAsync(id: number, type: MediaRequest["type"]): Promise<MediaInformation> {
const response = await fetch(this.url(`/api/v1/${type}/${id}`), { const response = await fetchWithTrustedCertificatesAsync(this.url(`/api/v1/${type}/${id}`), {
headers: { headers: {
"X-Api-Key": this.getSecretValue("apiKey"), "X-Api-Key": this.getSecretValue("apiKey"),
}, },
@@ -1,3 +1,5 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
import { IntegrationTestConnectionError } from "../base/test-connection-error"; import { IntegrationTestConnectionError } from "../base/test-connection-error";
import type { DnsHoleSummaryIntegration } from "../interfaces/dns-hole-summary/dns-hole-summary-integration"; import type { DnsHoleSummaryIntegration } from "../interfaces/dns-hole-summary/dns-hole-summary-integration";
@@ -7,7 +9,7 @@ import { summaryResponseSchema } from "./pi-hole-types";
export class PiHoleIntegration extends Integration implements DnsHoleSummaryIntegration { export class PiHoleIntegration extends Integration implements DnsHoleSummaryIntegration {
public async getSummaryAsync(): Promise<DnsHoleSummary> { public async getSummaryAsync(): Promise<DnsHoleSummary> {
const apiKey = super.getSecretValue("apiKey"); const apiKey = super.getSecretValue("apiKey");
const response = await fetch(this.url("/admin/api.php?summaryRaw", { auth: apiKey })); const response = await fetchWithTrustedCertificatesAsync(this.url("/admin/api.php?summaryRaw", { auth: apiKey }));
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(
`Failed to fetch summary for ${this.integration.name} (${this.integration.id}): ${response.statusText}`, `Failed to fetch summary for ${this.integration.name} (${this.integration.id}): ${response.statusText}`,
@@ -36,11 +38,11 @@ export class PiHoleIntegration extends Integration implements DnsHoleSummaryInte
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/admin/api.php?status", { auth: apiKey })); return await fetchWithTrustedCertificatesAsync(this.url("/admin/api.php?status", { auth: apiKey }));
}, },
handleResponseAsync: async (response) => { handleResponseAsync: async (response) => {
try { try {
const result = (await response.json()) as unknown; const result = await response.json();
if (typeof result === "object" && result !== null && "status" in result) return; if (typeof result === "object" && result !== null && "status" in result) return;
} catch { } catch {
throw new IntegrationTestConnectionError("invalidJson"); throw new IntegrationTestConnectionError("invalidJson");
@@ -53,7 +55,7 @@ export class PiHoleIntegration extends Integration implements DnsHoleSummaryInte
public async enableAsync(): Promise<void> { public async enableAsync(): Promise<void> {
const apiKey = super.getSecretValue("apiKey"); const apiKey = super.getSecretValue("apiKey");
const response = await fetch(this.url("/admin/api.php?enable", { auth: apiKey })); const response = await fetchWithTrustedCertificatesAsync(this.url("/admin/api.php?enable", { auth: apiKey }));
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(
`Failed to enable PiHole for ${this.integration.name} (${this.integration.id}): ${response.statusText}`, `Failed to enable PiHole for ${this.integration.name} (${this.integration.id}): ${response.statusText}`,
@@ -64,7 +66,7 @@ export class PiHoleIntegration extends Integration implements DnsHoleSummaryInte
public async disableAsync(duration?: number): Promise<void> { public async disableAsync(duration?: number): Promise<void> {
const apiKey = super.getSecretValue("apiKey"); const apiKey = super.getSecretValue("apiKey");
const url = this.url(`/admin/api.php?disable${duration ? `=${duration}` : ""}`, { auth: apiKey }); const url = this.url(`/admin/api.php?disable${duration ? `=${duration}` : ""}`, { auth: apiKey });
const response = await fetch(url); const response = await fetchWithTrustedCertificatesAsync(url);
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(
`Failed to disable PiHole for ${this.integration.name} (${this.integration.id}): ${response.statusText}`, `Failed to disable PiHole for ${this.integration.name} (${this.integration.id}): ${response.statusText}`,
@@ -1,5 +1,6 @@
import { parseStringPromise } from "xml2js"; import { parseStringPromise } from "xml2js";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
@@ -11,7 +12,7 @@ export class PlexIntegration extends Integration {
public async getCurrentSessionsAsync(): Promise<StreamSession[]> { public async getCurrentSessionsAsync(): Promise<StreamSession[]> {
const token = super.getSecretValue("apiKey"); const token = super.getSecretValue("apiKey");
const response = await fetch(this.url("/status/sessions"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/status/sessions"), {
headers: { headers: {
"X-Plex-Token": token, "X-Plex-Token": token,
}, },
@@ -66,7 +67,7 @@ export class PlexIntegration extends Integration {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/"), { return await fetchWithTrustedCertificatesAsync(this.url("/"), {
headers: { headers: {
"X-Plex-Token": token, "X-Plex-Token": token,
}, },
@@ -1,3 +1,5 @@
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { Integration } from "../base/integration"; import { Integration } from "../base/integration";
import { IntegrationTestConnectionError } from "../base/test-connection-error"; import { IntegrationTestConnectionError } from "../base/test-connection-error";
import type { Indexer } from "../interfaces/indexer-manager/indexer"; import type { Indexer } from "../interfaces/indexer-manager/indexer";
@@ -7,7 +9,7 @@ export class ProwlarrIntegration extends Integration {
public async getIndexersAsync(): Promise<Indexer[]> { public async getIndexersAsync(): Promise<Indexer[]> {
const apiKey = super.getSecretValue("apiKey"); const apiKey = super.getSecretValue("apiKey");
const indexerResponse = await fetch(this.url("/api/v1/indexer"), { const indexerResponse = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/indexer"), {
headers: { headers: {
"X-Api-Key": apiKey, "X-Api-Key": apiKey,
}, },
@@ -18,7 +20,7 @@ export class ProwlarrIntegration extends Integration {
); );
} }
const statusResponse = await fetch(this.url("/api/v1/indexerstatus"), { const statusResponse = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/indexerstatus"), {
headers: { headers: {
"X-Api-Key": apiKey, "X-Api-Key": apiKey,
}, },
@@ -60,7 +62,7 @@ export class ProwlarrIntegration extends Integration {
public async testAllAsync(): Promise<void> { public async testAllAsync(): Promise<void> {
const apiKey = super.getSecretValue("apiKey"); const apiKey = super.getSecretValue("apiKey");
const response = await fetch(this.url("/api/v1/indexer/testall"), { const response = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/indexer/testall"), {
headers: { headers: {
"X-Api-Key": apiKey, "X-Api-Key": apiKey,
}, },
@@ -78,7 +80,7 @@ export class ProwlarrIntegration extends Integration {
await super.handleTestConnectionResponseAsync({ await super.handleTestConnectionResponseAsync({
queryFunctionAsync: async () => { queryFunctionAsync: async () => {
return await fetch(this.url("/api"), { return await fetchWithTrustedCertificatesAsync(this.url("/api"), {
headers: { headers: {
"X-Api-Key": apiKey, "X-Api-Key": apiKey,
}, },
@@ -86,7 +88,7 @@ export class ProwlarrIntegration extends Integration {
}, },
handleResponseAsync: async (response) => { handleResponseAsync: async (response) => {
try { try {
const result = (await response.json()) as unknown; const result = await response.json();
if (typeof result === "object" && result !== null) return; if (typeof result === "object" && result !== null) return;
} catch { } catch {
throw new IntegrationTestConnectionError("invalidJson"); throw new IntegrationTestConnectionError("invalidJson");
@@ -0,0 +1,125 @@
import type { Proxmox } from "proxmox-api";
import proxmoxApi from "proxmox-api";
import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";
import { extractErrorMessage } from "@homarr/common";
import { logger } from "@homarr/log";
import { Integration } from "../base/integration";
import { IntegrationTestConnectionError } from "../base/test-connection-error";
import type {
ComputeResourceBase,
LxcResource,
NodeResource,
QemuResource,
Resource,
StorageResource,
} from "./proxmox-types";
export class ProxmoxIntegration extends Integration {
public async testConnectionAsync(): Promise<void> {
const proxmox = this.getPromoxApi();
await proxmox.nodes.$get().catch((error) => {
throw new IntegrationTestConnectionError("internalServerError", extractErrorMessage(error));
});
}
public async getClusterInfoAsync() {
const proxmox = this.getPromoxApi();
const resources = await proxmox.cluster.resources.$get();
logger.info(
`Found ${resources.length} resources in Proxmox cluster node=${resources.filter((resource) => resource.type === "node").length} lxc=${resources.filter((resource) => resource.type === "lxc").length} qemu=${resources.filter((resource) => resource.type === "qemu").length} storage=${resources.filter((resource) => resource.type === "storage").length}`,
);
const mappedResources = resources.map(mapResource).filter((resource) => resource !== null);
return {
nodes: mappedResources.filter((resource): resource is NodeResource => resource.type === "node"),
lxcs: mappedResources.filter((resource): resource is LxcResource => resource.type === "lxc"),
vms: mappedResources.filter((resource): resource is QemuResource => resource.type === "qemu"),
storages: mappedResources.filter((resource): resource is StorageResource => resource.type === "storage"),
};
}
private getPromoxApi() {
return proxmoxApi({
host: this.url("/").host,
tokenID: `${this.getSecretValue("username")}@${this.getSecretValue("realm")}!${this.getSecretValue("tokenId")}`,
tokenSecret: this.getSecretValue("apiKey"),
fetch: fetchWithTrustedCertificatesAsync,
});
}
}
const mapResource = (resource: Proxmox.clusterResourcesResources): Resource | null => {
switch (resource.type) {
case "node":
return mapNodeResource(resource);
case "lxc":
case "qemu":
return mapVmResource(resource);
case "storage":
return mapStorageResource(resource);
}
return null;
};
const mapComputeResource = (resource: Proxmox.clusterResourcesResources): Omit<ComputeResourceBase<string>, "type"> => {
return {
cpu: {
utilization: resource.cpu ?? 0,
cores: resource.maxcpu ?? 0,
},
memory: {
used: resource.mem ?? 0,
total: resource.maxmem ?? 0,
},
storage: {
used: resource.disk ?? 0,
total: resource.maxdisk ?? 0,
read: (resource.diskread as number | null) ?? null,
write: (resource.diskwrite as number | null) ?? null,
},
network: {
in: (resource.netin as number | null) ?? null,
out: (resource.netout as number | null) ?? null,
},
haState: resource.hastate ?? null,
isRunning: resource.status === "running" || resource.status === "online",
name: resource.name ?? "",
node: resource.node ?? "",
status: resource.status ?? (resource.type === "node" ? "offline" : "stopped"),
uptime: resource.uptime ?? 0,
};
};
const mapNodeResource = (resource: Proxmox.clusterResourcesResources): NodeResource => {
return {
type: "node",
...mapComputeResource(resource),
name: resource.node ?? "",
};
};
const mapVmResource = (resource: Proxmox.clusterResourcesResources): LxcResource | QemuResource => {
return {
type: resource.type as "lxc" | "qemu",
vmId: resource.vmid ?? 0,
...mapComputeResource(resource),
};
};
const mapStorageResource = (resource: Proxmox.clusterResourcesResources): StorageResource => {
return {
type: "storage",
name: resource.storage ?? "",
node: resource.node ?? "",
isRunning: resource.status === "available",
status: resource.status ?? "offline",
storagePlugin: resource.storage ?? "",
total: resource.maxdisk ?? 0,
used: resource.disk ?? 0,
isShared: resource.shared === 1,
};
};
@@ -0,0 +1,57 @@
interface ResourceBase<TType extends string> {
type: TType;
name: string;
node: string;
isRunning: boolean;
status: string;
}
export interface ComputeResourceBase<TType extends string> extends ResourceBase<TType> {
cpu: {
utilization: number; // previously cpu (0-1)
cores: number; // previously cpuCores
};
memory: {
used: number; // previously mem
total: number; // previously maxMem
};
storage: {
used: number; // previously disk
total: number; // previously maxDisk
read: number | null; // previously diskRead
write: number | null; // previously diskWrite
};
network: {
in: number | null; // previously netIn
out: number | null; // previously netOut
};
uptime: number; // expressed in seconds
haState: string | null; // HA service status (for HA managed VMs).
}
export type NodeResource = ComputeResourceBase<"node">;
export interface LxcResource extends ComputeResourceBase<"lxc"> {
vmId: number;
}
export interface QemuResource extends ComputeResourceBase<"qemu"> {
vmId: number;
}
export interface StorageResource extends ResourceBase<"storage"> {
storagePlugin: string;
used: number; // previously disk
total: number; // previously maxDisk
isShared: boolean; // previously storageShared
}
export type ComputeResource = NodeResource | LxcResource | QemuResource;
export type Resource = ComputeResource | StorageResource;
export interface ProxmoxClusterInfo {
nodes: NodeResource[];
lxcs: LxcResource[];
vms: QemuResource[];
storages: StorageResource[];
}
+1
View File
@@ -6,3 +6,4 @@ export * from "./interfaces/media-requests/media-request";
export * from "./pi-hole/pi-hole-types"; export * from "./pi-hole/pi-hole-types";
export * from "./base/searchable-integration"; export * from "./base/searchable-integration";
export * from "./homeassistant/homeassistant-types"; export * from "./homeassistant/homeassistant-types";
export * from "./proxmox/proxmox-types";
+1
View File
@@ -1,3 +1,4 @@
import { Response } from "undici";
import { describe, expect, test } from "vitest"; import { describe, expect, test } from "vitest";
import { IntegrationTestConnectionError } from "../src"; import { IntegrationTestConnectionError } from "../src";
+1 -1
View File
@@ -35,7 +35,7 @@
"@mantine/core": "^7.16.0", "@mantine/core": "^7.16.0",
"@tabler/icons-react": "^3.28.1", "@tabler/icons-react": "^3.28.1",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"next": "15.1.4", "next": "15.1.5",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0" "react-dom": "19.0.0"
}, },
+1 -1
View File
@@ -40,7 +40,7 @@
"@mantine/core": "^7.16.0", "@mantine/core": "^7.16.0",
"@mantine/hooks": "^7.16.0", "@mantine/hooks": "^7.16.0",
"adm-zip": "0.5.16", "adm-zip": "0.5.16",
"next": "15.1.4", "next": "15.1.5",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"superjson": "2.2.2", "superjson": "2.2.2",
@@ -1,5 +1,5 @@
import { objectEntries } from "@homarr/common"; import { objectEntries } from "@homarr/common";
import type { Database, InferInsertModel } from "@homarr/db"; import type { Database, HomarrDatabaseMysql, InferInsertModel } from "@homarr/db";
import * as schema from "@homarr/db/schema"; import * as schema from "@homarr/db/schema";
type TableKey = { type TableKey = {
@@ -29,5 +29,15 @@ export const createDbInsertCollection = <TTableKey extends TableKey>(tablesInIns
} }
}); });
}, },
insertAllAsync: async (db: HomarrDatabaseMysql) => {
await db.transaction(async (transaction) => {
for (const [key, values] of objectEntries(context)) {
if (values.length >= 1) {
// Below is actually the mysqlSchema when the driver is mysql
await transaction.insert(schema[key] as never).values(values as never);
}
}
});
},
}; };
}; };
@@ -1,6 +1,7 @@
import type { z } from "zod"; import type { z } from "zod";
import { Stopwatch } from "@homarr/common"; import { Stopwatch } from "@homarr/common";
import { handleTransactionsAsync } from "@homarr/db";
import type { Database } from "@homarr/db"; import type { Database } from "@homarr/db";
import { logger } from "@homarr/log"; import { logger } from "@homarr/log";
@@ -34,11 +35,21 @@ export const importInitialOldmarrAsync = async (
logger.info("Inserting import data to database"); logger.info("Inserting import data to database");
// Due to a limitation with better-sqlite it's only possible to use it synchronously await handleTransactionsAsync(db, {
db.transaction((transaction) => { async handleAsync(db) {
boardInsertCollection.insertAll(transaction); await db.transaction(async (transaction) => {
userInsertCollection.insertAll(transaction); await boardInsertCollection.insertAllAsync(transaction);
integrationInsertCollection.insertAll(transaction); await userInsertCollection.insertAllAsync(transaction);
await integrationInsertCollection.insertAllAsync(transaction);
});
},
handleSync(db) {
db.transaction((transaction) => {
boardInsertCollection.insertAll(transaction);
userInsertCollection.insertAll(transaction);
integrationInsertCollection.insertAll(transaction);
});
},
}); });
logger.info(`Import successful (in ${stopwatch.getElapsedInHumanWords()})`); logger.info(`Import successful (in ${stopwatch.getElapsedInHumanWords()})`);
@@ -1,4 +1,4 @@
import { inArray } from "@homarr/db"; import { handleTransactionsAsync, inArray } from "@homarr/db";
import type { Database } from "@homarr/db"; import type { Database } from "@homarr/db";
import { apps } from "@homarr/db/schema"; import { apps } from "@homarr/db/schema";
import type { OldmarrConfig } from "@homarr/old-schema"; import type { OldmarrConfig } from "@homarr/old-schema";
@@ -31,6 +31,12 @@ export const importSingleOldmarrConfigAsync = async (
const boardInsertCollection = createBoardInsertCollection({ preparedApps, preparedBoards }, settings); const boardInsertCollection = createBoardInsertCollection({ preparedApps, preparedBoards }, settings);
// Due to a limitation with better-sqlite it's only possible to use it synchronously await handleTransactionsAsync(db, {
boardInsertCollection.insertAll(db); async handleAsync(db) {
await boardInsertCollection.insertAllAsync(db);
},
handleSync(db) {
boardInsertCollection.insertAll(db);
},
});
}; };
@@ -25,7 +25,7 @@ const mapping: Record<OldmarrIntegrationType, IntegrationKind | null> = {
overseerr: "overseerr", overseerr: "overseerr",
pihole: "piHole", pihole: "piHole",
prowlarr: "prowlarr", prowlarr: "prowlarr",
proxmox: null, proxmox: "proxmox",
qBittorrent: "qBittorrent", qBittorrent: "qBittorrent",
radarr: "radarr", radarr: "radarr",
readarr: "readarr", readarr: "readarr",
@@ -141,6 +141,9 @@ const optionMapping: OptionMapping = {
"fileSystem" in oldOptions "fileSystem" in oldOptions
? oldOptions.fileSystem ? oldOptions.fileSystem
: oldOptions.graphsOrder.some((graph) => graph.key === "storage" && graph.subValues.enabled), : oldOptions.graphsOrder.some((graph) => graph.key === "storage" && graph.subValues.enabled),
defaultTab: (oldOptions) => ("defaultTabState" in oldOptions ? oldOptions.defaultTabState : undefined),
sectionIndicatorRequirement: (oldOptions) =>
"sectionIndicatorColor" in oldOptions ? oldOptions.sectionIndicatorColor : undefined,
}, },
mediaTranscoding: { mediaTranscoding: {
defaultView: (oldOptions) => oldOptions.defaultView, defaultView: (oldOptions) => oldOptions.defaultView,
@@ -2,13 +2,13 @@ import dayjs from "dayjs";
import type { IntegrationKindByCategory } from "@homarr/definitions"; import type { IntegrationKindByCategory } from "@homarr/definitions";
import { integrationCreator } from "@homarr/integrations"; import { integrationCreator } from "@homarr/integrations";
import type { HealthMonitoring } from "@homarr/integrations/types"; import type { HealthMonitoring, ProxmoxClusterInfo } from "@homarr/integrations/types";
import { createCachedIntegrationRequestHandler } from "./lib/cached-integration-request-handler"; import { createCachedIntegrationRequestHandler } from "./lib/cached-integration-request-handler";
export const systemInfoRequestHandler = createCachedIntegrationRequestHandler< export const systemInfoRequestHandler = createCachedIntegrationRequestHandler<
HealthMonitoring, HealthMonitoring,
IntegrationKindByCategory<"healthMonitoring">, Exclude<IntegrationKindByCategory<"healthMonitoring">, "proxmox">,
Record<string, never> Record<string, never>
>({ >({
async requestAsync(integration, _input) { async requestAsync(integration, _input) {
@@ -18,3 +18,16 @@ export const systemInfoRequestHandler = createCachedIntegrationRequestHandler<
cacheDuration: dayjs.duration(5, "seconds"), cacheDuration: dayjs.duration(5, "seconds"),
queryKey: "systemInfo", queryKey: "systemInfo",
}); });
export const clusterInfoRequestHandler = createCachedIntegrationRequestHandler<
ProxmoxClusterInfo,
"proxmox",
Record<string, never>
>({
async requestAsync(integration, _input) {
const integrationInstance = integrationCreator(integration);
return await integrationInstance.getClusterInfoAsync();
},
cacheDuration: dayjs.duration(5, "seconds"),
queryKey: "clusterInfo",
});
+1 -1
View File
@@ -37,7 +37,7 @@
"@mantine/spotlight": "^7.16.0", "@mantine/spotlight": "^7.16.0",
"@tabler/icons-react": "^3.28.1", "@tabler/icons-react": "^3.28.1",
"jotai": "^2.11.0", "jotai": "^2.11.0",
"next": "15.1.4", "next": "15.1.5",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0", "react-dom": "19.0.0",
"use-deep-compare-effect": "^1.8.1" "use-deep-compare-effect": "^1.8.1"
+1 -1
View File
@@ -61,7 +61,7 @@ const helpMode = {
{ {
label: t("submitIssue.label"), label: t("submitIssue.label"),
icon: IconBrandGithub, icon: IconBrandGithub,
href: "https://github.com/ajnart/homarr/issues/new/choose", href: "https://github.com/homarr-labs/homarr/issues/new/choose",
}, },
{ {
label: t("discord.label"), label: t("discord.label"),
+1 -1
View File
@@ -32,7 +32,7 @@
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"deepmerge": "4.3.1", "deepmerge": "4.3.1",
"mantine-react-table": "2.0.0-beta.8", "mantine-react-table": "2.0.0-beta.8",
"next": "15.1.4", "next": "15.1.5",
"next-intl": "3.26.3", "next-intl": "3.26.3",
"react": "19.0.0", "react": "19.0.0",
"react-dom": "19.0.0" "react-dom": "19.0.0"
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "密码不符合要求", "passwordRequirements": "密码不符合要求",
"boardAlreadyExists": "具有此名称的面板已存在", "boardAlreadyExists": "具有此名称的面板已存在",
"invalidFileType": "无效的文件类型,例如 {expected}", "invalidFileType": "无效的文件类型,例如 {expected}",
"invalidFileName": "",
"fileTooLarge": "文件太大,最大大小为 {maxSize}", "fileTooLarge": "文件太大,最大大小为 {maxSize}",
"invalidConfiguration": "无效配置", "invalidConfiguration": "无效配置",
"groupNameTaken": "用户组名称已存在" "groupNameTaken": "用户组名称已存在"
@@ -2101,6 +2102,7 @@
"docker": "Docker", "docker": "Docker",
"logs": "日志", "logs": "日志",
"api": "API", "api": "API",
"certificates": "",
"tasks": "任务" "tasks": "任务"
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "此面板将显示为您的主面板" "tooltip": "此面板将显示为您的主面板"
} }
}, },
"setMobileHomeBoard": {
"label": "设置为您的手机面板",
"badge": {
"label": "手机",
"tooltip": "此面板将显示为您的手机面板"
}
},
"duplicate": { "duplicate": {
"label": "复制面板" "label": "复制面板"
}, },
@@ -2189,7 +2198,13 @@
"title": "通用", "title": "通用",
"item": { "item": {
"language": "语言与地区", "language": "语言与地区",
"board": "主面板", "board": {
"title": "主面板",
"type": {
"general": "通用",
"mobile": "手机"
}
},
"defaultSearchEngine": "默认搜索引擎", "defaultSearchEngine": "默认搜索引擎",
"firstDayOfWeek": "一周的第一天", "firstDayOfWeek": "一周的第一天",
"accessibility": "无障碍服务" "accessibility": "无障碍服务"
@@ -2349,6 +2364,7 @@
"title": "面板", "title": "面板",
"homeBoard": { "homeBoard": {
"label": "全局主面板", "label": "全局主面板",
"mobileLabel": "全局手机面板",
"description": "只有公共面板可供选择" "description": "只有公共面板可供选择"
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "日志" "label": "日志"
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "设置为主面板" "label": "设置为主面板"
}, },
"mobileBoard": {
"label": "设置为手机面板"
},
"settings": { "settings": {
"label": "打开设置" "label": "打开设置"
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "Heslo nesplňuje požadavky", "passwordRequirements": "Heslo nesplňuje požadavky",
"boardAlreadyExists": "Plocha s tímto názvem již existuje", "boardAlreadyExists": "Plocha s tímto názvem již existuje",
"invalidFileType": "Neplatný typ souboru, očekáván {expected}", "invalidFileType": "Neplatný typ souboru, očekáván {expected}",
"invalidFileName": "",
"fileTooLarge": "Soubor je příliš velký, maximální velikost je {maxSize}", "fileTooLarge": "Soubor je příliš velký, maximální velikost je {maxSize}",
"invalidConfiguration": "Neplatná konfigurace", "invalidConfiguration": "Neplatná konfigurace",
"groupNameTaken": "Název skupiny je již používán" "groupNameTaken": "Název skupiny je již používán"
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Obecné", "title": "Obecné",
"item": { "item": {
"language": "Jazyk & oblast", "language": "Jazyk & oblast",
"board": "Domovská plocha", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "Výchozí vyhledávač", "defaultSearchEngine": "Výchozí vyhledávač",
"firstDayOfWeek": "První den v týdnu", "firstDayOfWeek": "První den v týdnu",
"accessibility": "Přístupnost" "accessibility": "Přístupnost"
@@ -2349,6 +2364,7 @@
"title": "Plochy", "title": "Plochy",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Generelt", "title": "Generelt",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Første ugedag", "firstDayOfWeek": "Første ugedag",
"accessibility": "Hjælpefunktioner" "accessibility": "Hjælpefunktioner"
@@ -2349,6 +2364,7 @@
"title": "", "title": "",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+205 -142
View File
@@ -213,10 +213,10 @@
"changeDefaultSearchEngine": { "changeDefaultSearchEngine": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "Standard-Suchmaschine erfolgreich geändert"
}, },
"error": { "error": {
"message": "" "message": "Standard Suchmaschine kann nicht geändert werden"
} }
} }
}, },
@@ -499,7 +499,7 @@
} }
}, },
"app": { "app": {
"search": "", "search": "App suchen",
"page": { "page": {
"list": { "list": {
"title": "Apps", "title": "Apps",
@@ -625,8 +625,8 @@
"label": "URL" "label": "URL"
}, },
"attemptSearchEngineCreation": { "attemptSearchEngineCreation": {
"label": "", "label": "Suchmaschinen anlegen",
"description": "" "description": "Integration \"{kind}\" kann mit den Suchmaschinen verwendet werden. Wählen Sie dies, um die Suchmaschine automatisch zu konfigurieren."
} }
}, },
"action": { "action": {
@@ -897,6 +897,7 @@
"passwordRequirements": "Passwort erfüllt nicht alle Anforderungen", "passwordRequirements": "Passwort erfüllt nicht alle Anforderungen",
"boardAlreadyExists": "Ein Board mit diesem Namen existiert bereits", "boardAlreadyExists": "Ein Board mit diesem Namen existiert bereits",
"invalidFileType": "Ungültiger Dateityp, erwartete {expected}", "invalidFileType": "Ungültiger Dateityp, erwartete {expected}",
"invalidFileName": "",
"fileTooLarge": "Datei ist zu groß, maximale Größe ist {maxSize}", "fileTooLarge": "Datei ist zu groß, maximale Größe ist {maxSize}",
"invalidConfiguration": "Ungültige Konfiguration", "invalidConfiguration": "Ungültige Konfiguration",
"groupNameTaken": "Gruppenname bereits vergeben" "groupNameTaken": "Gruppenname bereits vergeben"
@@ -918,7 +919,7 @@
"category": { "category": {
"field": { "field": {
"name": { "name": {
"label": "" "label": "Name"
} }
}, },
"action": { "action": {
@@ -966,7 +967,7 @@
}, },
"create": { "create": {
"title": "Wählen Sie das hinzuzufügende Element aus", "title": "Wählen Sie das hinzuzufügende Element aus",
"search": "", "search": "Gegenstände filtern",
"addToBoard": "Zum Board hinzufügen" "addToBoard": "Zum Board hinzufügen"
}, },
"moveResize": { "moveResize": {
@@ -1008,7 +1009,7 @@
}, },
"widget": { "widget": {
"app": { "app": {
"name": "", "name": "App",
"description": "Bettet eine App in das Board ein.", "description": "Bettet eine App in das Board ein.",
"option": { "option": {
"appId": { "appId": {
@@ -1045,24 +1046,24 @@
"label": "Ansicht", "label": "Ansicht",
"option": { "option": {
"row": { "row": {
"label": "" "label": "Horizontal"
}, },
"column": { "column": {
"label": "Vertikal" "label": "Vertikal"
}, },
"grid": { "grid": {
"label": "" "label": "Raster"
} }
} }
}, },
"items": { "items": {
"label": "Lesezeichen", "label": "Lesezeichen",
"add": "" "add": "Lesezeichen hinzufügen"
} }
} }
}, },
"dnsHoleSummary": { "dnsHoleSummary": {
"name": "", "name": "DNS Hole Zusammenfassung",
"description": "Zeigt die Zusammenfassung deines DNS Holes an", "description": "Zeigt die Zusammenfassung deines DNS Holes an",
"option": { "option": {
"layout": { "layout": {
@@ -1093,7 +1094,7 @@
"dnsQueriesToday": "Abfragen heute", "dnsQueriesToday": "Abfragen heute",
"domainsBeingBlocked": "Domänen auf der Sperrliste" "domainsBeingBlocked": "Domänen auf der Sperrliste"
}, },
"domainsTooltip": "" "domainsTooltip": "Aufgrund mehrerer Integrationen kann Homarr die genaue Anzahl der blockierten Domains nicht berechnen"
}, },
"dnsHoleControls": { "dnsHoleControls": {
"name": "DNS Hole Steuerung", "name": "DNS Hole Steuerung",
@@ -1169,22 +1170,22 @@
} }
}, },
"minecraftServerStatus": { "minecraftServerStatus": {
"name": "", "name": "Status des Minecraft Servers",
"description": "", "description": "Status des Minecraft Servers anzeigen",
"option": { "option": {
"title": { "title": {
"label": "" "label": "Titel"
}, },
"domain": { "domain": {
"label": "" "label": "Server Adresse"
}, },
"isBedrockServer": { "isBedrockServer": {
"label": "" "label": "Bedrock Server"
} }
}, },
"status": { "status": {
"online": "", "online": "Online",
"offline": "" "offline": "Offline"
} }
}, },
"notebook": { "notebook": {
@@ -1282,7 +1283,7 @@
}, },
"error": { "error": {
"noUrl": "Keine iFrame URL angegeben", "noUrl": "Keine iFrame URL angegeben",
"unsupportedProtocol": "", "unsupportedProtocol": "Die angegebene URL verwendet ein nicht unterstütztes Protokoll. Bitte verwenden Sie eines von ({supportedProtocols})",
"noBrowerSupport": "Ihr Browser unterstützt keine iframes. Bitte aktualisieren Sie Ihren Browser." "noBrowerSupport": "Ihr Browser unterstützt keine iframes. Bitte aktualisieren Sie Ihren Browser."
} }
}, },
@@ -1417,37 +1418,37 @@
"processor": "Prozessor: {cpuModelName}", "processor": "Prozessor: {cpuModelName}",
"memory": "Speicher: {memory}GiB", "memory": "Speicher: {memory}GiB",
"memoryAvailable": "Verfügbar: {memoryAvailable} GiB ({percent}%)", "memoryAvailable": "Verfügbar: {memoryAvailable} GiB ({percent}%)",
"version": "", "version": "Version: {version}",
"uptime": "Laufzeit: {months} Monate, {days} Tage, {hours} Stunden, {minutes} Minuten", "uptime": "Laufzeit: {months} Monate, {days} Tage, {hours} Stunden, {minutes} Minuten",
"loadAverage": "Durchschnittliche Last:", "loadAverage": "Durchschnittliche Last:",
"minute": "1 Minute", "minute": "1 Minute",
"minutes": "{count} Minuten", "minutes": "{count} Minuten",
"used": "Belegt", "used": "Belegt",
"available": "Verfügbar", "available": "Verfügbar",
"lastSeen": "" "lastSeen": "Letzte Statusaktualisierung: {lastSeen}"
}, },
"memory": {}, "memory": {},
"error": { "error": {
"internalServerError": "" "internalServerError": "Fehler beim Abrufen des Gesundheitsstatus"
} }
}, },
"common": { "common": {
"location": { "location": {
"query": "", "query": "Stadt / Postleitzahl",
"latitude": "", "latitude": "Breitengrad",
"longitude": "", "longitude": "Längengrad",
"disabledTooltip": "", "disabledTooltip": "Gib eine Stadt oder Postleitzahl an",
"unknownLocation": "", "unknownLocation": "Unbekannter Ort",
"search": "Suche", "search": "Suche",
"table": { "table": {
"header": { "header": {
"city": "", "city": "Stadt",
"country": "", "country": "Land",
"coordinates": "", "coordinates": "Koordinaten",
"population": "" "population": "Bevölkerung"
}, },
"action": { "action": {
"select": "" "select": "Wähle {city}, {countryCode}"
}, },
"population": { "population": {
"fallback": "Unbekannt" "fallback": "Unbekannt"
@@ -1455,16 +1456,16 @@
} }
}, },
"integration": { "integration": {
"noData": "", "noData": "Keine Integration gefunden",
"description": "" "description": "Klicken Sie <here></here> um eine neue Integration zu erstellen"
}, },
"app": { "app": {
"noData": "Keine App gefunden", "noData": "Keine App gefunden",
"description": "" "description": "Klicken Sie <here></here> um eine neue App zu erstellen"
}, },
"error": { "error": {
"noIntegration": "", "noIntegration": "Keine Integration ausgewählt",
"noData": "" "noData": "Keine Integrationsdaten verfügbar"
}, },
"option": {} "option": {}
}, },
@@ -1477,32 +1478,32 @@
}, },
"hasAutoPlay": { "hasAutoPlay": {
"label": "Automatische Wiedergabe", "label": "Automatische Wiedergabe",
"description": "" "description": "Autoplay funktioniert nur bei Stummschaltung aufgrund von Browser Einschränkungen"
}, },
"isMuted": { "isMuted": {
"label": "" "label": "Stumm geschaltet"
}, },
"hasControls": { "hasControls": {
"label": "" "label": "Steuerelemente anzeigen"
} }
}, },
"error": { "error": {
"noUrl": "", "noUrl": "Keine Video URL angegeben",
"forYoutubeUseIframe": "" "forYoutubeUseIframe": "Für YouTube Videos verwenden Sie die iframe Option"
} }
}, },
"mediaServer": { "mediaServer": {
"name": "", "name": "Aktuelle Media Server Streams",
"description": "", "description": "Zeige die aktuellen Streams auf deinen Medienservern an",
"option": {}, "option": {},
"items": { "items": {
"user": "", "user": "Benutzer",
"name": "", "name": "Name",
"id": "" "id": "Id"
} }
}, },
"downloads": { "downloads": {
"name": "", "name": "Download Client",
"description": "", "description": "",
"option": { "option": {
"columns": { "columns": {
@@ -1634,15 +1635,15 @@
"delete": { "delete": {
"title": "", "title": "",
"modalTitle": "", "modalTitle": "",
"entry": "", "entry": "Eintrag löschen",
"entryAndFiles": "" "entryAndFiles": "Eintrag und Datei(en) löschen"
} }
} }
}, },
"globalRatio": "" "globalRatio": "Globales Verhältnis"
}, },
"mediaRequests-requestList": { "mediaRequests-requestList": {
"name": "", "name": "Liste der Medienanfragen",
"description": "Sehen Sie eine Liste aller Medienanfragen von Ihrer Overseerr- oder Jellyseerr-Instanz", "description": "Sehen Sie eine Liste aller Medienanfragen von Ihrer Overseerr- oder Jellyseerr-Instanz",
"option": { "option": {
"linksTargetNewTab": { "linksTargetNewTab": {
@@ -1650,21 +1651,21 @@
} }
}, },
"pending": { "pending": {
"approve": "", "approve": "Anfrage annehmen",
"approving": "", "approving": "Anfrage wird bestätigt...",
"decline": "" "decline": "Antrag ablehnen"
}, },
"availability": { "availability": {
"unknown": "Unbekannt", "unknown": "Unbekannt",
"pending": "", "pending": "Ausstehend",
"processing": "", "processing": "In Bearbeitung",
"partiallyAvailable": "Teilweise", "partiallyAvailable": "Teilweise",
"available": "Verfügbar" "available": "Verfügbar"
}, },
"toBeDetermined": "" "toBeDetermined": "Noch Festzulegen"
}, },
"mediaRequests-requestStats": { "mediaRequests-requestStats": {
"name": "", "name": "Statistik der Medienanfragen",
"description": "Statistiken über Ihre Medienanfragen", "description": "Statistiken über Ihre Medienanfragen",
"option": {}, "option": {},
"titles": { "titles": {
@@ -1672,38 +1673,38 @@
"main": "Medien Statistiken", "main": "Medien Statistiken",
"approved": "Bereits genehmigt", "approved": "Bereits genehmigt",
"pending": "Ausstehende Freigaben", "pending": "Ausstehende Freigaben",
"processing": "", "processing": "Wird verarbeitet",
"declined": "", "declined": "Bereits abgelehnt",
"available": "", "available": "Bereits verfügbar",
"tv": "TV Anfragen", "tv": "TV Anfragen",
"movie": "Film Anfragen", "movie": "Film Anfragen",
"total": "Gesamt" "total": "Gesamt"
}, },
"users": { "users": {
"main": "Top Nutzer", "main": "Top Nutzer",
"requests": "" "requests": "Anfragen"
} }
} }
}, },
"mediaTranscoding": { "mediaTranscoding": {
"name": "", "name": "Medien Transkodierung",
"description": "", "description": "Statistiken, aktuelle Warteschlange und Status Ihrer Medien Transkordierung",
"option": { "option": {
"defaultView": { "defaultView": {
"label": "Standardansicht" "label": "Standardansicht"
}, },
"queuePageSize": { "queuePageSize": {
"label": "" "label": "Größe der Warteschlange"
} }
}, },
"tab": { "tab": {
"workers": "", "workers": "Arbeiter",
"queue": "Warteschlange", "queue": "Warteschlange",
"statistics": "Statistiken" "statistics": "Statistiken"
}, },
"currentIndex": "{start}-{end} von {total}", "currentIndex": "{start}-{end} von {total}",
"healthCheck": { "healthCheck": {
"title": "", "title": "Gesundheitscheck",
"queued": "In der Warteschlange", "queued": "In der Warteschlange",
"status": { "status": {
"healthy": "Gesund", "healthy": "Gesund",
@@ -1714,12 +1715,12 @@
"statistics": { "statistics": {
"empty": "Leer", "empty": "Leer",
"transcodes": "Transkodieren", "transcodes": "Transkodieren",
"transcodesCount": "", "transcodesCount": "Transkodierung: {value}",
"healthChecksCount": "", "healthChecksCount": "Gesundheitscheck: {value}",
"filesCount": "", "filesCount": "Dateien: {value}",
"savedSpace": "", "savedSpace": "Gespeicherter Speicherplatz: {value}",
"healthChecks": "", "healthChecks": "Gesundheitscheck",
"videoCodecs": "", "videoCodecs": "Codecs",
"videoContainers": "Container", "videoContainers": "Container",
"videoResolutions": "Auflösungen" "videoResolutions": "Auflösungen"
}, },
@@ -1730,7 +1731,7 @@
"eta": "Voraussichtlicher Abschluss", "eta": "Voraussichtlicher Abschluss",
"progress": "Fortschritt", "progress": "Fortschritt",
"transcode": "Transkodieren", "transcode": "Transkodieren",
"healthCheck": "" "healthCheck": "Gesundheitscheck"
} }
}, },
"queue": { "queue": {
@@ -1739,52 +1740,52 @@
"file": "Datei", "file": "Datei",
"size": "Größe", "size": "Größe",
"transcode": "Transkodieren", "transcode": "Transkodieren",
"healthCheck": "" "healthCheck": "Gesundheitscheck"
} }
} }
} }
}, },
"rssFeed": { "rssFeed": {
"name": "", "name": "RSS Feeds",
"description": "", "description": "Einen oder mehrere generische RSS, ATOM oder JSON-Feeds überwachen und anzeigen",
"option": { "option": {
"feedUrls": { "feedUrls": {
"label": "" "label": "Feed URLs"
}, },
"enableRtl": { "enableRtl": {
"label": "" "label": "RTL aktivieren"
}, },
"textLinesClamp": { "textLinesClamp": {
"label": "" "label": "Beschreibung line clamp"
}, },
"maximumAmountPosts": { "maximumAmountPosts": {
"label": "" "label": "Limit für Beiträge"
} }
} }
} }
}, },
"widgetPreview": { "widgetPreview": {
"toggle": { "toggle": {
"enabled": "", "enabled": "Bearbeitungsmodus aktiviert",
"disabled": "" "disabled": "Bearbeitungsmodus deaktiviert"
}, },
"dimensions": { "dimensions": {
"title": "" "title": "Dimensionen ändern"
} }
}, },
"board": { "board": {
"action": { "action": {
"duplicate": { "duplicate": {
"title": "", "title": "Board duplizieren",
"message": "", "message": "Dies wird das Board {name} mit all seinen Inhalten duplizieren. Wenn Widgets Integrationen, hinterlegt sind die Sie nicht verwenden dürfen, werden diese entfernt.",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Board dupliziert",
"message": "" "message": "Das Board wurde erfolgreich dupliziert"
}, },
"error": { "error": {
"title": "", "title": "Board konnte nicht dupliziert werden",
"message": "" "message": "Das Board konnte nicht dupliziert werden"
} }
} }
}, },
@@ -1792,24 +1793,24 @@
"notification": { "notification": {
"success": { "success": {
"title": "Änderungen erfolgreich angewendet", "title": "Änderungen erfolgreich angewendet",
"message": "" "message": "Das Board wurde erfolgreich dupliziert"
}, },
"error": { "error": {
"title": "Änderungen konnten nicht angewendet werden", "title": "Änderungen konnten nicht angewendet werden",
"message": "" "message": "Das Board konnte nicht gespeichert werden"
} }
}, },
"confirmLeave": { "confirmLeave": {
"title": "", "title": "Nicht gespeicherte Änderungen",
"message": "" "message": "Sie haben ungespeicherte Änderungen, sind sie sicher dass sie abbrechen möchten?"
} }
}, },
"oldImport": { "oldImport": {
"label": "", "label": "Import von Homarr vor Version 1.0.0",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Import erfolgreich",
"message": "" "message": "Das Board wurde erfolgreich importiert"
}, },
"error": { "error": {
"title": "", "title": "",
@@ -1969,23 +1970,23 @@
"title": "Hintergrund" "title": "Hintergrund"
}, },
"color": { "color": {
"title": "" "title": "Farben"
}, },
"customCss": { "customCss": {
"title": "" "title": "Benutzerdefiniertes CSS"
}, },
"access": { "access": {
"title": "", "title": "Zugriffskontrolle",
"permission": { "permission": {
"item": { "item": {
"view": { "view": {
"label": "Board anzeigen" "label": "Board anzeigen"
}, },
"modify": { "modify": {
"label": "" "label": "Board bearbeiten"
}, },
"full": { "full": {
"label": "" "label": "Voller Zugriff"
} }
} }
} }
@@ -1994,41 +1995,41 @@
"title": "Gefahrenbereich", "title": "Gefahrenbereich",
"action": { "action": {
"rename": { "rename": {
"label": "", "label": "Board umbenennen",
"description": "", "description": "Das Ändern des Namens wird alle Links zu diesem Board aufheben.",
"button": "", "button": "Namen ändern",
"modal": { "modal": {
"title": "" "title": "Board umbenennen"
} }
}, },
"visibility": { "visibility": {
"label": "", "label": "Sichtbarkeit des Boards ändern",
"description": { "description": {
"public": "", "public": "Dieses Board ist derzeit öffentlich.",
"private": "" "private": "Dieses Board ist derzeit privat."
}, },
"button": { "button": {
"public": "", "public": "Als privat festlegen",
"private": "" "private": "Als öffentlich festlegen"
}, },
"confirm": { "confirm": {
"public": { "public": {
"title": "", "title": "Board auf privat schalten",
"description": "" "description": "Sind Sie sicher, dass Sie dieses Board privat machen möchten? Dies wird das Board vor der Öffentlichkeit ausblenden. Links für Gastbenutzer werden unbrauchbar."
}, },
"private": { "private": {
"title": "", "title": "Board auf öffentlich schalten",
"description": "" "description": "Sind Sie sicher, dass Sie dieses Board öffentlich machen möchten? Dies wird das Board für alle zugänglich machen."
} }
} }
}, },
"delete": { "delete": {
"label": "", "label": "Board löschen",
"description": "", "description": "Sobald Sie ein Board löschen, gibt es kein zurück mehr. Bitte seien sie sich dessen bewusst.",
"button": "", "button": "Board löschen",
"confirm": { "confirm": {
"title": "Board löschen", "title": "Board löschen",
"description": "" "description": "Sind Sie sicher, dass Sie dieses Board löschen möchten? Dies wird das Board und seinen gesamten Inhalt permanent löschen."
} }
} }
} }
@@ -2038,32 +2039,32 @@
"error": { "error": {
"noBoard": { "noBoard": {
"title": "Willkommen bei Homarr", "title": "Willkommen bei Homarr",
"description": "", "description": "Ein schlankens, modernes Dashboard, das alle Ihre Apps und Dienste bereit stellt.",
"link": "Erstellen Sie Ihr erstes Board", "link": "Erstellen Sie Ihr erstes Board",
"notice": "" "notice": "Um diese Seite verschwinden zu lassen, erstellen Sie ein Board und setzen es als Home Board"
}, },
"notFound": { "notFound": {
"title": "", "title": "Board nicht gefunden",
"description": "", "description": "Das angegebene Board wurde entweder nicht gefunden oder Sie haben keinen Zugriff darauf.",
"link": "Alle Boards anzeigen", "link": "Alle Boards anzeigen",
"notice": "" "notice": "Überprüfen Sie den Link oder wenden Sie sich an einen Administrator, wenn Sie glauben, dass er zugänglich sein sollte"
}, },
"homeBoard": { "homeBoard": {
"title": "", "title": "Kein Home Board",
"admin": { "admin": {
"description": "", "description": "Es wurde noch kein Home Board für den Server festgelegt.",
"link": "", "link": "Serverweites Home Board konfigurieren",
"notice": "" "notice": "Um diese Seite für alle Benutzer verschwinden zu lassen, legen sie ein Home-Board für den Server fest"
}, },
"user": { "user": {
"description": "", "description": "Es wurde noch kein Home Board festgelegt.",
"link": "", "link": "Home Board konfigurieren",
"notice": "" "notice": "Um diese Seite verschwinden zu lassen, geben Sie das Home Board in Ihren Einstellungen ein"
}, },
"anonymous": { "anonymous": {
"description": "", "description": "Der Server-Administrator hat noch kein Home Board eingerichtet.",
"link": "", "link": "Öffentliche Boards anzeigen",
"notice": "" "notice": "Um diese Seite verschwinden zu lassen, bitten sie den Server Administrator, ein Home Board für den Server festzulegen"
} }
} }
} }
@@ -2071,12 +2072,12 @@
"management": { "management": {
"metaTitle": "Verwaltung", "metaTitle": "Verwaltung",
"title": { "title": {
"morning": "", "morning": "Guten Morgen, {username}",
"afternoon": "", "afternoon": "Guten Nachmittag, {username}",
"evening": "" "evening": "Guten Abend, {username}"
}, },
"notFound": { "notFound": {
"title": "", "title": "Nicht gefunden",
"text": "" "text": ""
}, },
"navbar": { "navbar": {
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Allgemein", "title": "Allgemein",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Erster Tag der Woche", "firstDayOfWeek": "Erster Tag der Woche",
"accessibility": "Barrierefreiheit" "accessibility": "Barrierefreiheit"
@@ -2349,6 +2364,7 @@
"title": "", "title": "",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Γενικά", "title": "Γενικά",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Πρώτη ημέρα της εβδομάδας", "firstDayOfWeek": "Πρώτη ημέρα της εβδομάδας",
"accessibility": "Προσβασιμότητα" "accessibility": "Προσβασιμότητα"
@@ -2349,6 +2364,7 @@
"title": "Πίνακες", "title": "Πίνακες",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+106
View File
@@ -733,6 +733,14 @@
"password": { "password": {
"label": "Password", "label": "Password",
"newLabel": "New password" "newLabel": "New password"
},
"tokenId": {
"label": "Token ID",
"newLabel": "New token ID"
},
"realm": {
"label": "Realm",
"newLabel": "New realm"
} }
} }
}, },
@@ -897,6 +905,7 @@
"passwordRequirements": "Password does not meet the requirements", "passwordRequirements": "Password does not meet the requirements",
"boardAlreadyExists": "A board with this name already exists", "boardAlreadyExists": "A board with this name already exists",
"invalidFileType": "Invalid file type, expected {expected}", "invalidFileType": "Invalid file type, expected {expected}",
"invalidFileName": "Invalid file name",
"fileTooLarge": "File is too large, maximum size is {maxSize}", "fileTooLarge": "File is too large, maximum size is {maxSize}",
"invalidConfiguration": "Invalid configuration", "invalidConfiguration": "Invalid configuration",
"groupNameTaken": "Group name already taken" "groupNameTaken": "Group name already taken"
@@ -1410,6 +1419,12 @@
}, },
"fileSystem": { "fileSystem": {
"label": "Show Filesystem Info" "label": "Show Filesystem Info"
},
"defaultTab": {
"label": "Default tab"
},
"sectionIndicatorRequirement": {
"label": "Section indicator requirement"
} }
}, },
"popover": { "popover": {
@@ -1429,6 +1444,52 @@
"memory": {}, "memory": {},
"error": { "error": {
"internalServerError": "Failed to fetch health status" "internalServerError": "Failed to fetch health status"
},
"cluster": {
"summary": {
"cpu": "CPU",
"memory": "RAM"
},
"resource": {
"node": {
"name": "Nodes"
},
"qemu": {
"name": "VMs"
},
"lxc": {
"name": "LXCs"
},
"storage": {
"name": "Storage"
}
},
"popover": {
"rightSection": {
"node": "Node",
"vmId": "VM ID",
"plugin": "Plugin"
},
"detail": {
"cpu": "Cores",
"memory": "Memory",
"storage": "Storage",
"uptime": "Uptime",
"haState": "HA State",
"storageType": {
"local": "Local storage",
"shared": "Shared storage"
}
}
},
"table": {
"header": {
"name": "Name",
"cpu": "CPU",
"memory": "RAM",
"node": "Node"
}
}
} }
}, },
"common": { "common": {
@@ -2101,6 +2162,7 @@
"docker": "Docker", "docker": "Docker",
"logs": "Logs", "logs": "Logs",
"api": "API", "api": "API",
"certificates": "Certificates",
"tasks": "Tasks" "tasks": "Tasks"
} }
}, },
@@ -2706,6 +2768,9 @@
}, },
"logs": { "logs": {
"label": "Logs" "label": "Logs"
},
"certificates": {
"label": "Certificates"
} }
}, },
"settings": { "settings": {
@@ -3101,5 +3166,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "Trusted certificates",
"description": "Used by Homarr to request data from integrations.",
"noResults": {
"title": "There are no certificates yet"
},
"expires": "Expires {when}"
}
},
"action": {
"create": {
"label": "Add certificate",
"notification": {
"success": {
"title": "Certificate added",
"message": "The certificate was added successfully"
},
"error": {
"title": "Failed to add certificate",
"message": "The certificate could not be added"
}
}
},
"remove": {
"label": "Remove certificate",
"confirm": "Are you sure you want to remove the certificate?",
"notification": {
"success": {
"title": "Certificate removed",
"message": "The certificate was removed successfully"
},
"error": {
"title": "Certificate not removed",
"message": "The certificate could not be removed"
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "", "title": "",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Primer día de la semana", "firstDayOfWeek": "Primer día de la semana",
"accessibility": "Accesibilidad" "accessibility": "Accesibilidad"
@@ -2349,6 +2364,7 @@
"title": "Tableros", "title": "Tableros",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "", "title": "",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "", "firstDayOfWeek": "",
"accessibility": "" "accessibility": ""
@@ -2349,6 +2364,7 @@
"title": "", "title": "",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Général", "title": "Général",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Premier jour de la semaine", "firstDayOfWeek": "Premier jour de la semaine",
"accessibility": "Accessibilité" "accessibility": "Accessibilité"
@@ -2349,6 +2364,7 @@
"title": "Tableaux de bord", "title": "Tableaux de bord",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "הסיסמה אינה עומדת בדרישות", "passwordRequirements": "הסיסמה אינה עומדת בדרישות",
"boardAlreadyExists": "לוח בשם זה כבר קיים", "boardAlreadyExists": "לוח בשם זה כבר קיים",
"invalidFileType": "סוג קובץ לא חוקי, צפוי {expected}", "invalidFileType": "סוג קובץ לא חוקי, צפוי {expected}",
"invalidFileName": "",
"fileTooLarge": "הקובץ גדול מדי, הגודל המרבי הוא {maxSize}", "fileTooLarge": "הקובץ גדול מדי, הגודל המרבי הוא {maxSize}",
"invalidConfiguration": "תצורה לא חוקית", "invalidConfiguration": "תצורה לא חוקית",
"groupNameTaken": "שם הקבוצה כבר תפוס" "groupNameTaken": "שם הקבוצה כבר תפוס"
@@ -2101,6 +2102,7 @@
"docker": "דוקר", "docker": "דוקר",
"logs": "קובצי לוג", "logs": "קובצי לוג",
"api": "ממשק API", "api": "ממשק API",
"certificates": "",
"tasks": "משימות" "tasks": "משימות"
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "הלוח הזה יוצג כלוח הבית שלך" "tooltip": "הלוח הזה יוצג כלוח הבית שלך"
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "שכפול לוח" "label": "שכפול לוח"
}, },
@@ -2189,7 +2198,13 @@
"title": "כללי", "title": "כללי",
"item": { "item": {
"language": "שפה ואיזור", "language": "שפה ואיזור",
"board": "לוח בית", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "מנוע חיפוש ברירת מחדל", "defaultSearchEngine": "מנוע חיפוש ברירת מחדל",
"firstDayOfWeek": "היום הראשון בשבוע", "firstDayOfWeek": "היום הראשון בשבוע",
"accessibility": "נגישות" "accessibility": "נגישות"
@@ -2349,6 +2364,7 @@
"title": "לוחות", "title": "לוחות",
"homeBoard": { "homeBoard": {
"label": "לוח בית גלובלי", "label": "לוח בית גלובלי",
"mobileLabel": "",
"description": "רק לוחות ציבוריים זמינים לבחירה" "description": "רק לוחות ציבוריים זמינים לבחירה"
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "קבצי לוג" "label": "קבצי לוג"
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "קביעה כלוח הבית" "label": "קביעה כלוח הבית"
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "פתיחת הגדרות" "label": "פתיחת הגדרות"
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Općenito", "title": "Općenito",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Prvi dan u tjednu", "firstDayOfWeek": "Prvi dan u tjednu",
"accessibility": "Pristupačnost" "accessibility": "Pristupačnost"
@@ -2349,6 +2364,7 @@
"title": "Daske", "title": "Daske",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Általános", "title": "Általános",
"item": { "item": {
"language": "", "language": "",
"board": "Főoldal", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "A hét első napja", "firstDayOfWeek": "A hét első napja",
"accessibility": "Kisegítő lehetőségek" "accessibility": "Kisegítő lehetőségek"
@@ -2349,6 +2364,7 @@
"title": "Táblák", "title": "Táblák",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Generale", "title": "Generale",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Primo giorno della settimana", "firstDayOfWeek": "Primo giorno della settimana",
"accessibility": "Accessibilità" "accessibility": "Accessibilità"
@@ -2349,6 +2364,7 @@
"title": "", "title": "",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "一般", "title": "一般",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "週の初日", "firstDayOfWeek": "週の初日",
"accessibility": "アクセシビリティ" "accessibility": "アクセシビリティ"
@@ -2349,6 +2364,7 @@
"title": "ボード", "title": "ボード",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "일반", "title": "일반",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "요일별 요일", "firstDayOfWeek": "요일별 요일",
"accessibility": "접근성" "accessibility": "접근성"
@@ -2349,6 +2364,7 @@
"title": "보드", "title": "보드",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Bendras", "title": "Bendras",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "", "firstDayOfWeek": "",
"accessibility": "" "accessibility": ""
@@ -2349,6 +2364,7 @@
"title": "Lentos", "title": "Lentos",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Vispārīgi", "title": "Vispārīgi",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Nedēļas pirmā diena", "firstDayOfWeek": "Nedēļas pirmā diena",
"accessibility": "Piekļūstamība" "accessibility": "Piekļūstamība"
@@ -2349,6 +2364,7 @@
"title": "Dēļi", "title": "Dēļi",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "Wachtwoord voldoet niet aan de eisen", "passwordRequirements": "Wachtwoord voldoet niet aan de eisen",
"boardAlreadyExists": "Er bestaat al een bord met deze naam", "boardAlreadyExists": "Er bestaat al een bord met deze naam",
"invalidFileType": "Ongeldig bestandstype, verwachtte {expected}", "invalidFileType": "Ongeldig bestandstype, verwachtte {expected}",
"invalidFileName": "",
"fileTooLarge": "Bestand is te groot, maximale grootte is {maxSize}", "fileTooLarge": "Bestand is te groot, maximale grootte is {maxSize}",
"invalidConfiguration": "Ongeldige configuratie", "invalidConfiguration": "Ongeldige configuratie",
"groupNameTaken": "Groepsnaam al in gebruik" "groupNameTaken": "Groepsnaam al in gebruik"
@@ -2101,6 +2102,7 @@
"docker": "Docker", "docker": "Docker",
"logs": "Logs", "logs": "Logs",
"api": "API", "api": "API",
"certificates": "",
"tasks": "Taken" "tasks": "Taken"
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "Dit bord wordt weergegeven als je home-bord" "tooltip": "Dit bord wordt weergegeven als je home-bord"
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Algemeen", "title": "Algemeen",
"item": { "item": {
"language": "Taal & regio", "language": "Taal & regio",
"board": "Home-bord", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Eerste dag van de week", "firstDayOfWeek": "Eerste dag van de week",
"accessibility": "Toegankelijkheid" "accessibility": "Toegankelijkheid"
@@ -2349,6 +2364,7 @@
"title": "Borden", "title": "Borden",
"homeBoard": { "homeBoard": {
"label": "Globaal home-bord", "label": "Globaal home-bord",
"mobileLabel": "",
"description": "Alleen openbare borden zijn beschikbaar voor selectie" "description": "Alleen openbare borden zijn beschikbaar voor selectie"
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "Logs" "label": "Logs"
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "Instellen als home-bord" "label": "Instellen als home-bord"
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "Instellingen openen" "label": "Instellingen openen"
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Generelt", "title": "Generelt",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Første dag i uken", "firstDayOfWeek": "Første dag i uken",
"accessibility": "Hjelpemidler" "accessibility": "Hjelpemidler"
@@ -2349,6 +2364,7 @@
"title": "Tavler", "title": "Tavler",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "Twoje hasło nie spełnia wymagań.", "passwordRequirements": "Twoje hasło nie spełnia wymagań.",
"boardAlreadyExists": "Tablica o tej nazwie już istnieje", "boardAlreadyExists": "Tablica o tej nazwie już istnieje",
"invalidFileType": "Nieprawidłowy typ pliku, oczekiwany {expected}", "invalidFileType": "Nieprawidłowy typ pliku, oczekiwany {expected}",
"invalidFileName": "",
"fileTooLarge": "Plik jest zbyt duży, maksymalny rozmiar to {maxSize}", "fileTooLarge": "Plik jest zbyt duży, maksymalny rozmiar to {maxSize}",
"invalidConfiguration": "Nieprawidłowa konfiguracja", "invalidConfiguration": "Nieprawidłowa konfiguracja",
"groupNameTaken": "Nazwa użytkownika jest już zajęta" "groupNameTaken": "Nazwa użytkownika jest już zajęta"
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Ogólne", "title": "Ogólne",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Pierwszy dzień tygodnia", "firstDayOfWeek": "Pierwszy dzień tygodnia",
"accessibility": "Ułatwienia dostępu" "accessibility": "Ułatwienia dostępu"
@@ -2349,6 +2364,7 @@
"title": "Tablice", "title": "Tablice",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "Geral", "title": "Geral",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Primeiro dia da semana", "firstDayOfWeek": "Primeiro dia da semana",
"accessibility": "Acessibilidade" "accessibility": "Acessibilidade"
@@ -2349,6 +2364,7 @@
"title": "Placas", "title": "Placas",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
+64 -1
View File
@@ -897,6 +897,7 @@
"passwordRequirements": "", "passwordRequirements": "",
"boardAlreadyExists": "", "boardAlreadyExists": "",
"invalidFileType": "", "invalidFileType": "",
"invalidFileName": "",
"fileTooLarge": "", "fileTooLarge": "",
"invalidConfiguration": "", "invalidConfiguration": "",
"groupNameTaken": "" "groupNameTaken": ""
@@ -2101,6 +2102,7 @@
"docker": "", "docker": "",
"logs": "", "logs": "",
"api": "", "api": "",
"certificates": "",
"tasks": "" "tasks": ""
} }
}, },
@@ -2153,6 +2155,13 @@
"tooltip": "" "tooltip": ""
} }
}, },
"setMobileHomeBoard": {
"label": "",
"badge": {
"label": "",
"tooltip": ""
}
},
"duplicate": { "duplicate": {
"label": "" "label": ""
}, },
@@ -2189,7 +2198,13 @@
"title": "", "title": "",
"item": { "item": {
"language": "", "language": "",
"board": "", "board": {
"title": "",
"type": {
"general": "",
"mobile": ""
}
},
"defaultSearchEngine": "", "defaultSearchEngine": "",
"firstDayOfWeek": "Prima zi a săptămâni", "firstDayOfWeek": "Prima zi a săptămâni",
"accessibility": "Accesibilitate" "accessibility": "Accesibilitate"
@@ -2349,6 +2364,7 @@
"title": "Planșe", "title": "Planșe",
"homeBoard": { "homeBoard": {
"label": "", "label": "",
"mobileLabel": "",
"description": "" "description": ""
} }
}, },
@@ -2692,6 +2708,9 @@
}, },
"logs": { "logs": {
"label": "" "label": ""
},
"certificates": {
"label": ""
} }
}, },
"settings": { "settings": {
@@ -2738,6 +2757,9 @@
"homeBoard": { "homeBoard": {
"label": "" "label": ""
}, },
"mobileBoard": {
"label": ""
},
"settings": { "settings": {
"label": "" "label": ""
} }
@@ -3084,5 +3106,46 @@
} }
} }
} }
},
"certificate": {
"page": {
"list": {
"title": "",
"description": "",
"noResults": {
"title": ""
},
"expires": ""
}
},
"action": {
"create": {
"label": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
},
"remove": {
"label": "",
"confirm": "",
"notification": {
"success": {
"title": "",
"message": ""
},
"error": {
"title": "",
"message": ""
}
}
}
}
} }
} }
Loaded 100 of 124 files, more files were not shown because too many files have changed in this diff. Show more