Compare commits

..
Author SHA1 Message Date
Thomas dc45d1e0de Merge branch 'dev' into fix/credentials-login-session 2026-06-03 10:32:44 +02:00
Thomas fe4598f722 fix(docker): restore container selection toolbar broken by Mantine v9 (#5855) 2026-06-03 10:03:37 +02:00
Thomas a755692d81 fix(ui): restore pre-v9 light variant colors (#5856) 2026-06-03 06:49:38 +00:00
homarr-renovate[bot] 3ff0d72ba1 chore(deps): update dependency next-intl to v4.13.0 (#5853)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-03 04:21:57 +00:00
homarr-renovate[bot] a63a191203 chore(deps): update turbo monorepo to ^2.9.16 (#5851)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 23:54:09 +00:00
homarr-renovate[bot] 1be906a0cd chore(deps): update dependency isomorphic-dompurify to ^3.15.0 (#5852)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 21:55:53 +00:00
homarr-renovate[bot] 63d8fa8c26 chore(deps): update dependency @ctrl/qbittorrent to ^9.12.2 (#5834)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 18:47:29 +00:00
homarr-renovate[bot] b5dd6ae8ef chore(deps): update babel monorepo to >=7.29.7 (#5830)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 14:11:26 +00:00
homarr-renovate[bot] d540ad374a chore(deps): update pnpm to v10.34.0 (#5846)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 09:17:24 +00:00
homarr-renovate[bot] 6a971c1986 chore(deps): update mantine monorepo to ^9.2.2 (#5844)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-02 04:13:28 +00:00
homarr-crowdin[bot] d86fe3ddf0 chore(lang): updated translations from crowdin
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
2026-06-02 02:23:34 +00:00
homarr-renovate[bot] 06db8960a7 chore(deps): update turbo monorepo to ^2.9.15 (#5841)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-01 23:12:09 +00:00
homarr-renovate[bot] a5719acf34 chore(deps): update dependency tmp@<=0.2.3 to >=0.2.7 (#5848)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-01 21:06:21 +00:00
homarr-renovate[bot] d1d597c8e1 chore(deps): update testcontainers-node monorepo to ^12.0.1 (#5845)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-06-01 16:48:41 +00:00
homarr-renovate[bot] 657e42e4bb chore(deps): update dependency mysql2 to v3.22.4 (#5839)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-31 18:12:08 +00:00
homarr-renovate[bot] 256ebcb864 chore(deps): update dependency oxlint to ^1.67.0 (#5837)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-31 16:18:04 +00:00
homarr-renovate[bot] 72e86dee01 chore(deps): update dependency ioredis to v5.11.0 (#5838)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-31 14:53:18 +00:00
homarr-renovate[bot] b7910b16e0 chore(deps): update dependency oxfmt to ^0.52.0 (#5836)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-31 11:08:29 +00:00
homarr-renovate[bot] 5a83bb6e39 chore(deps): update dependency dayjs to ^1.11.21 (#5835)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-31 08:54:20 +00:00
homarr-renovate[bot] 433b66582d chore(deps): update dependency hono@<4.6.5 to >=4.12.23 (#5828)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-30 09:25:22 +00:00
homarr-renovate[bot] acbcb6818b chore(deps): update dependency react-error-boundary to ^6.1.2 (#5829)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-30 06:54:05 +00:00
homarr-crowdin[bot] 07d991a0a1 chore(lang): updated translations from crowdin
Co-authored-by: Crowdin Homarr <190541745+homarr-crowdin[bot]@users.noreply.github.com>
2026-05-30 05:27:45 +00:00
homarr-renovate[bot] 92364e9574 chore(deps): update tanstack-query monorepo to ^5.100.14 (#5813)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-29 21:15:51 +00:00
Thomas 5c0fd755cc Merge branch 'dev' into fix/credentials-login-session 2026-05-29 21:28:41 +02:00
ThomasandMeier Lukas 2991777b0a feat(users): rework general settings (#4915)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2026-05-29 21:22:55 +02:00
ThomasandMeier Lukas 6cc2ac56a9 fix: prevent GitHub releases check from blocking app on API failure (#5807)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2026-05-29 21:14:51 +02:00
homarr-update-contributors[bot] 92086e060f chore: update contributors (#5818) 2026-05-29 20:52:54 +02:00
homarr-renovate[bot] 2aa5ab95e6 chore(deps): update dependency trpc-to-openapi to ^3.3.0 (#5802)
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
2026-05-29 11:44:26 +00:00
Thomas 9bf6d9851c Merge branch 'dev' into fix/credentials-login-session 2026-05-29 11:17:53 +02:00
Thomas Camlong f1ed293b79 fix: address PR review feedback on password suggestions
Remove redundant tests, rename requirement translations to suggestion for clearer i18n, simplify password input state and requirement display.
2026-05-29 11:16:07 +02:00
Meier Lukas 650f761325 ci(format): fails to apply format due to conflict between --write and --check (#5815) 2026-05-29 11:07:48 +02:00
David be61602576 feat(auth): support custom token endpoint auth methods (#5806) 2026-05-29 10:51:28 +02:00
homarr-crowdin[bot] d01834d975 chore(lang): updated translations from crowdin (#5814) 2026-05-29 10:07:48 +02:00
Thomas Camlong 4a67bf0ef3 fix(ui): use imported theme instead of undefined createTheme
createTheme was called without being imported, causing a runtime
ReferenceError on every page load. Use the already-imported theme
object from @homarr/ui which contains the full Mantine configuration.
2026-05-28 15:54:37 +02:00
Thomas 4454e3fb7a fix: matine ui fixes for concistency (#5733) 2026-05-28 10:59:03 +02:00
Thomas Camlong 0df64f05e5 fix: remove auth session and env schema changes, keep only password requirement relaxation 2026-05-25 11:30:32 +02:00
Thomas Camlong d2ce64252c fix: revert unrelated changes (Dockerfile, Redis null-safety) 2026-05-25 10:09:55 +02:00
Thomas Camlong 63d50ed5fb fix(ci): resolve format, lint and typecheck failures 2026-05-21 16:50:28 +02:00
Thomas Camlong 27325326da fix(auth): resolve credentials login SQLITE_CONSTRAINT_NOTNULL and relax password rules
Session creation failed with NOT NULL constraint on expires column due to
invalid date propagation from duration parsing. Override adapter.createSession
with validated insert, harden signIn callback, fix createDurationSchema for
numeric-only values, and guard events.ts group insert.

Also relaxes password complexity to suggestions-only (min 8 chars enforced),
extracts shared UserCreatePasswordFields component, and fixes login form
passing extra fields to signIn.
2026-05-21 16:30:07 +02:00
111 changed files with 1702 additions and 1388 deletions

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
"build": "pnpm with-env next build", "build": "pnpm with-env next build",
"clean": "git clean -xdf .next .turbo node_modules", "clean": "git clean -xdf .next .turbo node_modules",
"dev": "pnpm with-env next dev", "dev": "pnpm with-env next dev",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"start": "pnpm with-env next start", "start": "pnpm with-env next start",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
@@ -2,7 +2,7 @@
import type { PropsWithChildren } from "react"; import type { PropsWithChildren } from "react";
import type { MantineColorScheme, MantineColorSchemeManager } from "@mantine/core"; import type { MantineColorScheme, MantineColorSchemeManager } from "@mantine/core";
import { DirectionProvider, MantineProvider } from "@mantine/core"; import { DirectionProvider, MantineProvider, v8CssVariablesResolver } from "@mantine/core";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { clientApi } from "@homarr/api/client"; import { clientApi } from "@homarr/api/client";
@@ -21,11 +21,8 @@ export const CustomMantineProvider = ({
<MantineProvider <MantineProvider
defaultColorScheme={defaultColorScheme} defaultColorScheme={defaultColorScheme}
colorSchemeManager={manager} colorSchemeManager={manager}
theme={createTheme({ theme={theme}
primaryColor: "red", cssVariablesResolver={v8CssVariablesResolver}
autoContrast: true,
defaultRadius: "sm",
})}
> >
{children} {children}
</MantineProvider> </MantineProvider>
@@ -2,7 +2,7 @@
import type { PropsWithChildren } from "react"; import type { PropsWithChildren } from "react";
import type { MantineColorsTuple } from "@mantine/core"; import type { MantineColorsTuple } from "@mantine/core";
import { colorsTuple, createTheme, darken, lighten, MantineProvider, rem } from "@mantine/core"; import { colorsTuple, createTheme, darken, lighten, MantineProvider, rem, v8CssVariablesResolver } from "@mantine/core";
import { useRequiredBoard } from "@homarr/boards/context"; import { useRequiredBoard } from "@homarr/boards/context";
import type { ColorScheme } from "@homarr/definitions"; import type { ColorScheme } from "@homarr/definitions";
@@ -33,7 +33,12 @@ export const BoardMantineProvider = ({
}); });
return ( return (
<MantineProvider defaultColorScheme={defaultColorScheme} theme={theme} colorSchemeManager={colorSchemeManager}> <MantineProvider
defaultColorScheme={defaultColorScheme}
theme={theme}
colorSchemeManager={colorSchemeManager}
cssVariablesResolver={v8CssVariablesResolver}
>
{children} {children}
</MantineProvider> </MantineProvider>
); );
@@ -1,15 +1,15 @@
"use client"; "use client";
import { Button, PasswordInput, Stack, TextInput } from "@mantine/core"; import { Button, Stack, TextInput } from "@mantine/core";
import type { z } from "zod/v4"; import type { z } from "zod/v4";
import { clientApi } from "@homarr/api/client"; import { clientApi } from "@homarr/api/client";
import { signIn } from "@homarr/auth/client"; import { signIn } from "@homarr/auth/client";
import { revalidatePathActionAsync } from "@homarr/common/client"; import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form"; import { useZodForm } from "@homarr/form";
import { UserCreatePasswordFields } from "@homarr/forms-collection";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications"; import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useScopedI18n } from "@homarr/translation/client"; import { useScopedI18n } from "@homarr/translation/client";
import { CustomPasswordInput } from "@homarr/ui";
import { userInitSchema } from "@homarr/validation/user"; import { userInitSchema } from "@homarr/validation/user";
export const InitUserForm = () => { export const InitUserForm = () => {
@@ -59,12 +59,10 @@ export const InitUserForm = () => {
> >
<Stack gap="lg"> <Stack gap="lg">
<TextInput label={t("field.username.label")} {...form.getInputProps("username")} /> <TextInput label={t("field.username.label")} {...form.getInputProps("username")} />
<CustomPasswordInput <UserCreatePasswordFields
withPasswordRequirements passwordInputProps={form.getInputProps("password")}
label={t("field.password.label")} confirmPasswordInputProps={form.getInputProps("confirmPassword")}
{...form.getInputProps("password")}
/> />
<PasswordInput label={t("field.passwordConfirm.label")} {...form.getInputProps("confirmPassword")} />
<Button type="submit" fullWidth loading={isPending}> <Button type="submit" fullWidth loading={isPending}>
{t("action.create")} {t("action.create")}
</Button> </Button>
@@ -185,7 +185,7 @@ export default async function AboutPage() {
<SimpleGrid cols={{ xs: 1, sm: 2, md: 3, lg: 4, xl: 5 }} spacing="md"> <SimpleGrid cols={{ xs: 1, sm: 2, md: 3, lg: 4, xl: 5 }} spacing="md">
{Object.entries(dependencies) {Object.entries(dependencies)
.filter(([, value]) => !value.includes("workspace:")) .filter(([, value]) => !value.includes("workspace:"))
.toSorted(([key1], [key2]) => key1.localeCompare(key2)) .sort(([key1], [key2]) => key1.localeCompare(key2))
.map(([name, version]) => ( .map(([name, version]) => (
<UnstyledButton <UnstyledButton
key={name} key={name}
@@ -48,7 +48,7 @@ export default async function CertificatesPage({ params }: CertificatesPageProps
} as const; } as const;
} }
}) })
.toSorted((certA, certB) => { .sort((certA, certB) => {
if (certA.isError) return -1; if (certA.isError) return -1;
if (certB.isError) return 1; if (certB.isError) return 1;
return certA.x509.validToDate.getTime() - certB.x509.validToDate.getTime(); return certA.x509.validToDate.getTime() - certB.x509.validToDate.getTime();
@@ -107,6 +107,23 @@ export function DockerTable(initialData: RouterOutputs["docker"]["getContainers"
refetchOnReconnect: false, refetchOnReconnect: false,
}); });
const relativeTime = useTimeAgo(data.timestamp); const relativeTime = useTimeAgo(data.timestamp);
const utils = clientApi.useUtils();
const { mutate, isPending } = clientApi.docker.invalidate.useMutation({
async onSuccess() {
await utils.docker.getContainers.invalidate();
showSuccessNotification({
title: tDocker("action.refresh.notification.success.title"),
message: tDocker("action.refresh.notification.success.message"),
});
},
onError() {
showErrorNotification({
title: tDocker("action.refresh.notification.error.title"),
message: tDocker("action.refresh.notification.error.message"),
});
},
});
const table = useTranslatedMantineReactTable({ const table = useTranslatedMantineReactTable({
data: data.containers, data: data.containers,
enableDensityToggle: false, enableDensityToggle: false,
@@ -125,35 +142,11 @@ export function DockerTable(initialData: RouterOutputs["docker"]["getContainers"
}, },
initialState: { density: "xs", showGlobalFilter: true }, initialState: { density: "xs", showGlobalFilter: true },
renderTopToolbarCustomActions: () => { renderTopToolbarCustomActions: () => (
const utils = clientApi.useUtils(); <Button variant="default" rightSection={<IconRefresh size="1rem" />} onClick={() => mutate()} loading={isPending}>
const { mutate, isPending } = clientApi.docker.invalidate.useMutation({ {tDocker("action.refresh.label")}
async onSuccess() { </Button>
await utils.docker.getContainers.invalidate(); ),
showSuccessNotification({
title: tDocker("action.refresh.notification.success.title"),
message: tDocker("action.refresh.notification.success.message"),
});
},
onError() {
showErrorNotification({
title: tDocker("action.refresh.notification.error.title"),
message: tDocker("action.refresh.notification.error.message"),
});
},
});
return (
<Button
variant="default"
rightSection={<IconRefresh size="1rem" />}
onClick={() => mutate()}
loading={isPending}
>
{tDocker("action.refresh.label")}
</Button>
);
},
renderToolbarAlertBannerContent: ({ groupedAlert, table }) => { renderToolbarAlertBannerContent: ({ groupedAlert, table }) => {
const dockerContainers = table.getSelectedRowModel().rows.map((row) => row.original); const dockerContainers = table.getSelectedRowModel().rows.map((row) => row.original);
return ( return (
@@ -1,85 +0,0 @@
"use client";
import { Button, Group, Stack } from "@mantine/core";
import type { z } from "zod/v4";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { userChangeHomeBoardsSchema } from "@homarr/validation/user";
import type { Board } from "~/app/[locale]/boards/_types";
import { BoardSelect } from "~/components/board/board-select";
interface ChangeHomeBoardFormProps {
user: RouterOutputs["user"]["getById"];
boardsData: Pick<Board, "id" | "name" | "logoImageUrl">[];
}
export const ChangeHomeBoardForm = ({ user, boardsData }: ChangeHomeBoardFormProps) => {
const t = useI18n();
const { mutate, isPending } = clientApi.user.changeHomeBoards.useMutation({
async onSettled() {
await revalidatePathActionAsync(`/manage/users/${user.id}`);
},
onSuccess(_, variables) {
form.setInitialValues({
homeBoardId: variables.homeBoardId,
mobileHomeBoardId: variables.mobileHomeBoardId,
});
showSuccessNotification({
message: t("user.action.changeHomeBoard.notification.success.message"),
});
},
onError() {
showErrorNotification({
message: t("user.action.changeHomeBoard.notification.error.message"),
});
},
});
const form = useZodForm(userChangeHomeBoardsSchema, {
initialValues: {
homeBoardId: user.homeBoardId,
mobileHomeBoardId: user.mobileHomeBoardId,
},
});
const handleSubmit = (values: FormType) => {
mutate({
userId: user.id,
...values,
});
};
return (
<form onSubmit={form.onSubmit(handleSubmit)}>
<Stack gap="md">
<BoardSelect
label={t("management.page.user.setting.general.item.board.type.general")}
clearable
boards={boardsData}
w="100%"
{...form.getInputProps("homeBoardId")}
/>
<BoardSelect
label={t("management.page.user.setting.general.item.board.type.mobile")}
clearable
boards={boardsData}
w="100%"
{...form.getInputProps("mobileHomeBoardId")}
/>
<Group justify="end">
<Button type="submit" loading={isPending}>
{t("common.action.save")}
</Button>
</Group>
</Stack>
</form>
);
};
type FormType = z.infer<typeof userChangeHomeBoardsSchema>;
@@ -1,84 +0,0 @@
"use client";
import { Button, Group, Select, Stack, Switch } from "@mantine/core";
import type { z } from "zod/v4";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { userChangeSearchPreferencesSchema } from "@homarr/validation/user";
interface ChangeSearchPreferencesFormProps {
user: RouterOutputs["user"]["getById"];
searchEnginesData: { value: string; label: string }[];
}
export const ChangeSearchPreferencesForm = ({ user, searchEnginesData }: ChangeSearchPreferencesFormProps) => {
const t = useI18n();
const { mutate, isPending } = clientApi.user.changeSearchPreferences.useMutation({
async onSettled() {
await revalidatePathActionAsync(`/manage/users/${user.id}`);
},
onSuccess(_, variables) {
form.setInitialValues({
defaultSearchEngineId: variables.defaultSearchEngineId,
openInNewTab: variables.openInNewTab,
ddgBangsEnabled: variables.ddgBangsEnabled,
});
showSuccessNotification({
message: t("user.action.changeSearchPreferences.notification.success.message"),
});
},
onError() {
showErrorNotification({
message: t("user.action.changeSearchPreferences.notification.error.message"),
});
},
});
const form = useZodForm(userChangeSearchPreferencesSchema, {
initialValues: {
defaultSearchEngineId: user.defaultSearchEngineId,
openInNewTab: user.openSearchInNewTab,
ddgBangsEnabled: user.ddgBangs,
},
});
const handleSubmit = (values: FormType) => {
mutate({
userId: user.id,
...values,
});
};
return (
<form onSubmit={form.onSubmit(handleSubmit)}>
<Stack gap="md">
<Select
label={t("user.field.defaultSearchEngine.label")}
w="100%"
data={searchEnginesData}
{...form.getInputProps("defaultSearchEngineId")}
/>
<Switch
label={t("user.field.openSearchInNewTab.label")}
{...form.getInputProps("openInNewTab", { type: "checkbox" })}
/>
<Switch
label={t("user.field.ddgBangs.label")}
{...form.getInputProps("ddgBangsEnabled", { type: "checkbox" })}
/>
<Group justify="end">
<Button type="submit" loading={isPending}>
{t("common.action.save")}
</Button>
</Group>
</Stack>
</form>
);
};
type FormType = z.infer<typeof userChangeSearchPreferencesSchema>;
@@ -1,83 +0,0 @@
"use client";
import { Button, Group, Radio, Stack } from "@mantine/core";
import type { DayOfWeek } from "@mantine/dates";
import dayjs from "dayjs";
import localeData from "dayjs/plugin/localeData";
import type { z } from "zod/v4";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { userFirstDayOfWeekSchema } from "@homarr/validation/user";
dayjs.extend(localeData);
interface FirstDayOfWeekProps {
user: RouterOutputs["user"]["getById"];
}
const weekDays = dayjs.weekdays(false);
export const FirstDayOfWeek = ({ user }: FirstDayOfWeekProps) => {
const t = useI18n();
const { mutate, isPending } = clientApi.user.changeFirstDayOfWeek.useMutation({
async onSettled() {
await revalidatePathActionAsync(`/manage/users/${user.id}`);
},
onSuccess(_, variables) {
form.setInitialValues({
firstDayOfWeek: variables.firstDayOfWeek as DayOfWeek,
});
showSuccessNotification({
message: t("user.action.changeFirstDayOfWeek.notification.success.message"),
});
},
onError() {
showErrorNotification({
message: t("user.action.changeFirstDayOfWeek.notification.error.message"),
});
},
});
const form = useZodForm(userFirstDayOfWeekSchema, {
initialValues: {
firstDayOfWeek: user.firstDayOfWeek as DayOfWeek,
},
});
const handleSubmit = (values: FormType) => {
mutate({
id: user.id,
...values,
});
};
const inputProps = form.getInputProps("firstDayOfWeek");
const onChange = inputProps.onChange as (value: number) => void;
const value = (inputProps.value as number).toString();
return (
<form onSubmit={form.onSubmit(handleSubmit)}>
<Stack gap="md">
<Radio.Group {...inputProps} value={value} onChange={(nextValue: string) => onChange(parseInt(nextValue, 10))}>
<Group mt="xs">
<Radio value="1" label={weekDays[1]} />
<Radio value="6" label={weekDays[6]} />
<Radio value="0" label={weekDays[0]} />
</Group>
</Radio.Group>
<Group justify="end">
<Button type="submit" loading={isPending}>
{t("common.action.save")}
</Button>
</Group>
</Stack>
</form>
);
};
type FormType = z.infer<typeof userFirstDayOfWeekSchema>;
@@ -0,0 +1,332 @@
"use client";
import { useEffect, useMemo, useRef } from "react";
import {
Button,
Card,
Divider,
Group,
Radio,
Select,
SimpleGrid,
Stack,
Switch,
Text,
TextInput,
Title,
} from "@mantine/core";
import type { DayOfWeek } from "@mantine/dates";
import dayjs from "dayjs";
import localeData from "dayjs/plugin/localeData";
import { z } from "zod/v4";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { env } from "@homarr/common/env";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n, useScopedI18n } from "@homarr/translation/client";
import {
userChangeHomeBoardsSchema,
userChangeSearchPreferencesSchema,
userEditProfileSchema,
userFirstDayOfWeekSchema,
userPingIconsEnabledSchema,
} from "@homarr/validation/user";
import type { Board } from "~/app/[locale]/boards/_types";
import { BoardSelect } from "~/components/board/board-select";
import { CurrentLanguageCombobox } from "~/components/language/current-language-combobox";
dayjs.extend(localeData);
const userGeneralSettingsSchema = z.object({
name: userEditProfileSchema.shape.name,
email: userEditProfileSchema.shape.email,
homeBoardId: userChangeHomeBoardsSchema.shape.homeBoardId,
mobileHomeBoardId: userChangeHomeBoardsSchema.shape.mobileHomeBoardId,
defaultSearchEngineId: userChangeSearchPreferencesSchema.shape.defaultSearchEngineId,
openInNewTab: userChangeSearchPreferencesSchema.shape.openInNewTab,
ddgBangsEnabled: userChangeSearchPreferencesSchema.shape.ddgBangsEnabled,
firstDayOfWeek: userFirstDayOfWeekSchema.shape.firstDayOfWeek,
pingIconsEnabled: userPingIconsEnabledSchema.shape.pingIconsEnabled,
});
type FormValues = z.infer<typeof userGeneralSettingsSchema>;
const FIRST_DAY_OPTIONS: { value: DayOfWeek; labelKey: number }[] = [
{ value: 1, labelKey: 1 },
{ value: 6, labelKey: 6 },
{ value: 0, labelKey: 0 },
];
interface UserGeneralSettingsFormProps {
user: RouterOutputs["user"]["getById"];
boardsData: Pick<Board, "id" | "name" | "logoImageUrl">[];
searchEnginesData: { value: string; label: string }[];
showLanguageSelector?: boolean;
}
const buildInitialValues = (user: RouterOutputs["user"]["getById"]): FormValues => ({
name: user.name ?? "",
email: user.email ?? "",
homeBoardId: user.homeBoardId,
mobileHomeBoardId: user.mobileHomeBoardId,
defaultSearchEngineId: user.defaultSearchEngineId,
openInNewTab: user.openSearchInNewTab,
ddgBangsEnabled: user.ddgBangs,
firstDayOfWeek: user.firstDayOfWeek as DayOfWeek,
pingIconsEnabled: user.pingIconsEnabled,
});
export const UserGeneralSettingsForm = ({
user,
boardsData,
searchEnginesData,
showLanguageSelector = false,
}: UserGeneralSettingsFormProps) => {
const t = useI18n();
const tGeneral = useScopedI18n("management.page.user.setting.general");
const isCredentialsUser = user.provider === "credentials";
const editProfileMutation = clientApi.user.editProfile.useMutation();
const changeHomeBoardsMutation = clientApi.user.changeHomeBoards.useMutation();
const changeSearchPreferencesMutation = clientApi.user.changeSearchPreferences.useMutation();
const changeFirstDayOfWeekMutation = clientApi.user.changeFirstDayOfWeek.useMutation();
const changePingIconsEnabledMutation = clientApi.user.changePingIconsEnabled.useMutation();
const initialValues = buildInitialValues(user);
const initialValuesRef = useRef(initialValues);
const form = useZodForm(userGeneralSettingsSchema, {
initialValues,
});
const isDirtyRef = useRef(false);
isDirtyRef.current = form.isDirty();
const weekDays = useMemo(() => dayjs.weekdays(false), []);
const mutations = [
editProfileMutation,
changeHomeBoardsMutation,
changeSearchPreferencesMutation,
changeFirstDayOfWeekMutation,
changePingIconsEnabledMutation,
];
const isPending = mutations.some((m) => m.isPending);
useEffect(() => {
const handler = (e: BeforeUnloadEvent) => {
if (env.NODE_ENV === "development") return;
if (isDirtyRef.current) e.preventDefault();
};
window.addEventListener("beforeunload", handler);
return () => window.removeEventListener("beforeunload", handler);
}, []);
const handleSubmitAsync = async (values: FormValues) => {
const parsed = userGeneralSettingsSchema.safeParse(values);
if (!parsed.success) return;
const defaults = initialValuesRef.current;
const changed = <K extends keyof FormValues>(...fields: K[]) =>
fields.some((f) => (f === "email" ? (values[f] || null) !== (defaults[f] || null) : values[f] !== defaults[f]));
const saveActions: { when: boolean; action: () => Promise<unknown> }[] = [
{
when: isCredentialsUser && changed("name", "email"),
action: () =>
editProfileMutation.mutateAsync({ id: user.id, name: parsed.data.name, email: parsed.data.email ?? "" }),
},
{
when: changed("homeBoardId", "mobileHomeBoardId"),
action: () =>
changeHomeBoardsMutation.mutateAsync({
userId: user.id,
homeBoardId: parsed.data.homeBoardId,
mobileHomeBoardId: parsed.data.mobileHomeBoardId,
}),
},
{
when: changed("defaultSearchEngineId", "openInNewTab", "ddgBangsEnabled"),
action: () =>
changeSearchPreferencesMutation.mutateAsync({
userId: user.id,
defaultSearchEngineId: parsed.data.defaultSearchEngineId,
openInNewTab: parsed.data.openInNewTab,
ddgBangsEnabled: parsed.data.ddgBangsEnabled,
}),
},
{
when: changed("firstDayOfWeek"),
action: () =>
changeFirstDayOfWeekMutation.mutateAsync({ id: user.id, firstDayOfWeek: parsed.data.firstDayOfWeek }),
},
{
when: changed("pingIconsEnabled"),
action: () =>
changePingIconsEnabledMutation.mutateAsync({ id: user.id, pingIconsEnabled: parsed.data.pingIconsEnabled }),
},
];
const promises = saveActions.filter((s) => s.when).map((s) => s.action());
if (promises.length === 0) return;
try {
await Promise.all(promises);
const newValues = { ...parsed.data, email: parsed.data.email ?? "" };
initialValuesRef.current = newValues;
form.setInitialValues(newValues);
form.resetDirty();
await revalidatePathActionAsync(`/manage/users/${user.id}`);
showSuccessNotification({
title: t("common.notification.update.success"),
message: t("common.notification.update.success"),
});
} catch {
showErrorNotification({
title: t("common.notification.update.error"),
message: t("common.notification.update.error"),
});
}
};
const handleDiscard = () => {
form.setValues(initialValuesRef.current);
form.resetDirty();
};
const firstDayOfWeekInputProps = form.getInputProps("firstDayOfWeek");
const firstDayOfWeekOnChange = firstDayOfWeekInputProps.onChange as (value: number) => void;
const firstDayOfWeekValue = (firstDayOfWeekInputProps.value as number).toString();
return (
<form onSubmit={form.onSubmit(handleSubmitAsync)}>
<Stack gap="lg">
<SimpleGrid cols={{ base: 1, md: 2 }} spacing="lg" verticalSpacing="lg">
<Card withBorder bg="transparent">
<Stack gap="md">
<Stack gap={2}>
<Title order={3}>{t("user.name")}</Title>
{!isCredentialsUser && (
<Text c="dimmed" size="sm">
{t("management.page.user.fieldsDisabledExternalProvider")}
</Text>
)}
</Stack>
<Divider />
<TextInput
disabled={!isCredentialsUser}
label={t("user.field.username.label")}
withAsterisk
{...form.getInputProps("name")}
/>
<TextInput
disabled={!isCredentialsUser}
label={t("user.field.email.label")}
{...form.getInputProps("email")}
/>
</Stack>
</Card>
<Card withBorder bg="transparent">
<Stack gap="md">
<Stack gap={2}>
<Title order={3}>{tGeneral("item.board.title")}</Title>
</Stack>
<Divider />
<BoardSelect
label={tGeneral("item.board.type.general")}
clearable
boards={boardsData}
w="100%"
withinPortal
{...form.getInputProps("homeBoardId")}
/>
<BoardSelect
label={tGeneral("item.board.type.mobile")}
clearable
boards={boardsData}
w="100%"
withinPortal
{...form.getInputProps("mobileHomeBoardId")}
/>
</Stack>
</Card>
<Card withBorder bg="transparent">
<Stack gap="md">
<Stack gap={2}>
<Title order={3}>{tGeneral("item.search")}</Title>
</Stack>
<Divider />
<Select
label={t("user.field.defaultSearchEngine.label")}
w="100%"
data={searchEnginesData}
comboboxProps={{ withinPortal: true }}
{...form.getInputProps("defaultSearchEngineId")}
/>
<Switch
label={t("user.field.openSearchInNewTab.label")}
{...form.getInputProps("openInNewTab", { type: "checkbox" })}
/>
<Switch
label={t("user.field.ddgBangs.label")}
{...form.getInputProps("ddgBangsEnabled", { type: "checkbox" })}
/>
</Stack>
</Card>
<Card withBorder bg="transparent">
<Stack gap="md">
<Stack gap={2}>
<Title order={3}>{tGeneral("item.language")}</Title>
</Stack>
<Divider />
{showLanguageSelector && <CurrentLanguageCombobox withinPortal />}
<Title order={4}>{tGeneral("item.firstDayOfWeek")}</Title>
<Radio.Group
{...firstDayOfWeekInputProps}
value={firstDayOfWeekValue}
onChange={(nextValue: string) => firstDayOfWeekOnChange(parseInt(nextValue, 10))}
>
<Group mt="xs" wrap="wrap">
{FIRST_DAY_OPTIONS.map(({ value: dayValue, labelKey }) => (
<Radio key={dayValue} value={dayValue.toString()} label={weekDays[labelKey]} />
))}
</Group>
</Radio.Group>
<Divider my="xs" />
<Title order={4}>{tGeneral("item.accessibility")}</Title>
<Switch
label={t("user.field.pingIconsEnabled.label")}
{...form.getInputProps("pingIconsEnabled", { type: "checkbox" })}
/>
</Stack>
</Card>
</SimpleGrid>
<div style={{ position: "sticky", bottom: 20 }}>
{form.isDirty() && (
<Card withBorder>
<Group justify="space-between" wrap="wrap">
<Text fw={500}>{t("common.unsavedChanges")}</Text>
<Group>
<Button disabled={isPending} variant="default" onClick={handleDiscard}>
{t("common.action.discard")}
</Button>
<Button loading={isPending} type="submit" disabled={!form.isValid()}>
{t("common.action.saveChanges")}
</Button>
</Group>
</Group>
</Card>
)}
</div>
</Stack>
</form>
);
};
@@ -1,69 +0,0 @@
"use client";
import { Button, Group, Stack, Switch } from "@mantine/core";
import type { z } from "zod/v4";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { userPingIconsEnabledSchema } from "@homarr/validation/user";
interface PingIconsEnabledProps {
user: RouterOutputs["user"]["getById"];
}
export const PingIconsEnabled = ({ user }: PingIconsEnabledProps) => {
const t = useI18n();
const { mutate, isPending } = clientApi.user.changePingIconsEnabled.useMutation({
async onSettled() {
await revalidatePathActionAsync(`/manage/users/${user.id}`);
},
onSuccess(_, variables) {
form.setInitialValues({
pingIconsEnabled: variables.pingIconsEnabled,
});
showSuccessNotification({
message: t("user.action.changePingIconsEnabled.notification.success.message"),
});
},
onError() {
showErrorNotification({
message: t("user.action.changePingIconsEnabled.notification.error.message"),
});
},
});
const form = useZodForm(userPingIconsEnabledSchema, {
initialValues: {
pingIconsEnabled: user.pingIconsEnabled,
},
});
const handleSubmit = (values: FormType) => {
mutate({
id: user.id,
...values,
});
};
return (
<form onSubmit={form.onSubmit(handleSubmit)}>
<Stack gap="md">
<Switch
{...form.getInputProps("pingIconsEnabled", { type: "checkbox" })}
label={t("user.field.pingIconsEnabled.label")}
/>
<Group justify="end">
<Button type="submit" loading={isPending}>
{t("common.action.save")}
</Button>
</Group>
</Stack>
</form>
);
};
type FormType = z.infer<typeof userPingIconsEnabledSchema>;
@@ -2,7 +2,7 @@
import { useCallback } from "react"; import { useCallback } from "react";
import { Box, Button, FileButton, Menu, UnstyledButton } from "@mantine/core"; import { Box, Button, FileButton, Menu, UnstyledButton } from "@mantine/core";
import { useDisclosure } from "@mantine/hooks"; import { useDisclosure, useMediaQuery } from "@mantine/hooks";
import { IconPencil, IconPhotoEdit, IconPhotoX } from "@tabler/icons-react"; import { IconPencil, IconPhotoEdit, IconPhotoX } from "@tabler/icons-react";
import type { RouterOutputs } from "@homarr/api"; import type { RouterOutputs } from "@homarr/api";
@@ -25,6 +25,7 @@ export const UserProfileAvatarForm = ({ user }: UserProfileAvatarForm) => {
}, },
}); });
const [opened, { toggle }] = useDisclosure(false); const [opened, { toggle }] = useDisclosure(false);
const isMobile = useMediaQuery("(max-width: 48em)");
const { openConfirmModal } = useConfirmModal(); const { openConfirmModal } = useConfirmModal();
const t = useI18n(); const t = useI18n();
const tManageAvatar = useScopedI18n("user.action.manageAvatar"); const tManageAvatar = useScopedI18n("user.action.manageAvatar");
@@ -94,11 +95,11 @@ export const UserProfileAvatarForm = ({ user }: UserProfileAvatarForm) => {
}, [mutate, user.id, openConfirmModal, tManageAvatar]); }, [mutate, user.id, openConfirmModal, tManageAvatar]);
return ( return (
<Box pos="relative"> <Box pos="relative" display="flex" style={{ justifyContent: isMobile ? "center" : undefined }}>
<Menu opened={opened} keepMounted onChange={toggle} position="bottom-start"> <Menu opened={opened} keepMounted onChange={toggle} position="bottom-start" withArrow withinPortal>
<Menu.Target> <Menu.Target>
<UnstyledButton onClick={toggle}> <UnstyledButton onClick={toggle}>
<UserAvatar user={user} size={200} /> <UserAvatar user={user} size={isMobile ? 120 : 200} />
<Button <Button
component="div" component="div"
pos="absolute" pos="absolute"
@@ -1,94 +0,0 @@
"use client";
import { useCallback } from "react";
import { Button, Group, Stack, TextInput } from "@mantine/core";
import type { RouterInputs, RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { revalidatePathActionAsync } from "@homarr/common/client";
import { useZodForm } from "@homarr/form";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useI18n } from "@homarr/translation/client";
import { userEditProfileSchema } from "@homarr/validation/user";
interface UserProfileFormProps {
user: RouterOutputs["user"]["getById"];
}
export const UserProfileForm = ({ user }: UserProfileFormProps) => {
const t = useI18n();
const { mutate, isPending } = clientApi.user.editProfile.useMutation({
async onSettled() {
await revalidatePathActionAsync("/manage/users");
},
onSuccess(_, variables) {
// Reset form initial values to reset dirty state
form.setInitialValues({
name: variables.name,
email: variables.email ?? "",
});
showSuccessNotification({
title: t("common.notification.update.success"),
message: t("user.action.editProfile.notification.success.message"),
});
},
onError(error) {
const message =
error.data?.code === "CONFLICT"
? t("user.error.usernameTaken")
: t("user.action.editProfile.notification.error.message");
showErrorNotification({
title: t("common.notification.update.error"),
message,
});
},
});
const form = useZodForm(userEditProfileSchema.omit({ id: true }), {
initialValues: {
name: user.name ?? "",
email: user.email ?? "",
},
});
// Only credentials users can edit their profile
const isProviderCredentials = user.provider === "credentials";
const handleSubmit = useCallback(
(values: FormType) => {
if (!isProviderCredentials) return;
mutate({
...values,
id: user.id,
});
},
[isProviderCredentials, mutate, user.id],
);
return (
<form onSubmit={form.onSubmit(handleSubmit)}>
<Stack>
<TextInput
disabled={!isProviderCredentials}
label={t("user.field.username.label")}
withAsterisk
{...form.getInputProps("name")}
/>
<TextInput
disabled={!isProviderCredentials}
label={t("user.field.email.label")}
{...form.getInputProps("email")}
/>
{isProviderCredentials && (
<Group justify="end">
<Button type="submit" disabled={!form.isDirty()} loading={isPending}>
{t("common.action.saveChanges")}
</Button>
</Group>
)}
</Stack>
</form>
);
};
type FormType = Omit<RouterInputs["user"]["editProfile"], "id">;
@@ -6,18 +6,13 @@ import { api } from "@homarr/api/server";
import { auth } from "@homarr/auth/next"; import { auth } from "@homarr/auth/next";
import { getI18n, getScopedI18n } from "@homarr/translation/server"; import { getI18n, getScopedI18n } from "@homarr/translation/server";
import { CurrentLanguageCombobox } from "~/components/language/current-language-combobox";
import { DangerZoneItem, DangerZoneRoot } from "~/components/manage/danger-zone"; import { DangerZoneItem, DangerZoneRoot } from "~/components/manage/danger-zone";
import { catchTrpcNotFound } from "~/errors/trpc-catch-error"; import { catchTrpcNotFound } from "~/errors/trpc-catch-error";
import { createMetaTitle } from "~/metadata"; import { createMetaTitle } from "~/metadata";
import { canAccessUserEditPage } from "../access"; import { canAccessUserEditPage } from "../access";
import { ChangeHomeBoardForm } from "./_components/_change-home-board";
import { ChangeSearchPreferencesForm } from "./_components/_change-search-preferences";
import { DeleteUserButton } from "./_components/_delete-user-button"; import { DeleteUserButton } from "./_components/_delete-user-button";
import { FirstDayOfWeek } from "./_components/_first-day-of-week"; import { UserGeneralSettingsForm } from "./_components/_general-settings-form";
import { PingIconsEnabled } from "./_components/_ping-icons-enabled";
import { UserProfileAvatarForm } from "./_components/_profile-avatar-form"; import { UserProfileAvatarForm } from "./_components/_profile-avatar-form";
import { UserProfileForm } from "./_components/_profile-form";
interface Props { interface Props {
params: Promise<{ params: Promise<{
@@ -63,7 +58,7 @@ export default async function EditUserPage(props: Props) {
const boards = await api.board.getAllBoards(); const boards = await api.board.getAllBoards();
const searchEngines = await api.searchEngine.getSelectable(); const searchEngines = await api.searchEngine.getSelectable();
const isSelf = session?.user.id === user.id;
const isCredentialsUser = user.provider === "credentials"; const isCredentialsUser = user.provider === "credentials";
return ( return (
@@ -73,51 +68,25 @@ export default async function EditUserPage(props: Props) {
{t("management.page.user.fieldsDisabledExternalProvider")} {t("management.page.user.fieldsDisabledExternalProvider")}
</Alert> </Alert>
)} )}
<Title>{tGeneral("title")}</Title> <Title>{tGeneral("title")}</Title>
<Group gap="xl"> <Group gap="xl" align="flex-start" wrap="wrap">
<Box flex={1}> <Box flex={1} miw={{ base: "100%", md: 540 }}>
<UserProfileForm user={user} /> <UserGeneralSettingsForm
user={user}
boardsData={boards.map((board) => ({
id: board.id,
name: board.name,
logoImageUrl: board.logoImageUrl,
}))}
searchEnginesData={searchEngines}
showLanguageSelector={isSelf}
/>
</Box> </Box>
<Box w={{ base: "100%", lg: 200 }}> <Box w={{ base: "100%", lg: 260 }}>
<UserProfileAvatarForm user={user} /> <UserProfileAvatarForm user={user} />
</Box> </Box>
</Group> </Group>
{session?.user.id === user.id && (
<Stack mb="lg">
<Title order={2}>{tGeneral("item.language")}</Title>
<CurrentLanguageCombobox />
</Stack>
)}
<Stack mb="lg">
<Title order={2}>{tGeneral("item.board.title")}</Title>
<ChangeHomeBoardForm
user={user}
boardsData={boards.map((board) => ({
id: board.id,
name: board.name,
logoImageUrl: board.logoImageUrl,
}))}
/>
</Stack>
<Stack mb="lg">
<Title order={2}>{tGeneral("item.search")}</Title>
<ChangeSearchPreferencesForm user={user} searchEnginesData={searchEngines} />
</Stack>
<Stack mb="lg">
<Title order={2}>{tGeneral("item.firstDayOfWeek")}</Title>
<FirstDayOfWeek user={user} />
</Stack>
<Stack mb="lg">
<Title order={2}>{tGeneral("item.accessibility")}</Title>
<PingIconsEnabled user={user} />
</Stack>
<DangerZoneRoot> <DangerZoneRoot>
<DangerZoneItem <DangerZoneItem
label={t("user.action.delete.label")} label={t("user.action.delete.label")}
@@ -1,20 +1,7 @@
"use client"; "use client";
import { startTransition, useCallback, useState } from "react"; import { startTransition, useCallback, useState } from "react";
import { import { Badge, Button, Card, Group, Stack, Stepper, Table, Text, TextInput, Title, Tooltip } from "@mantine/core";
Badge,
Button,
Card,
Group,
PasswordInput,
Stack,
Stepper,
Table,
Text,
TextInput,
Title,
Tooltip,
} from "@mantine/core";
import { useListState } from "@mantine/hooks"; import { useListState } from "@mantine/hooks";
import { IconPlus, IconUserCheck } from "@tabler/icons-react"; import { IconPlus, IconUserCheck } from "@tabler/icons-react";
import { z } from "zod/v4"; import { z } from "zod/v4";
@@ -24,10 +11,11 @@ import type { GroupPermissionKey } from "@homarr/definitions";
import { everyoneGroup, groupPermissions } from "@homarr/definitions"; import { everyoneGroup, groupPermissions } from "@homarr/definitions";
import type { IsValid } from "@homarr/form"; import type { IsValid } from "@homarr/form";
import { useZodForm } from "@homarr/form"; import { useZodForm } from "@homarr/form";
import { UserCreatePasswordFields } from "@homarr/forms-collection";
import { useModalAction } from "@homarr/modals"; import { useModalAction } from "@homarr/modals";
import { showErrorNotification } from "@homarr/notifications"; import { showErrorNotification } from "@homarr/notifications";
import { useI18n, useScopedI18n } from "@homarr/translation/client"; import { useI18n, useScopedI18n } from "@homarr/translation/client";
import { CustomPasswordInput, UserAvatar } from "@homarr/ui"; import { UserAvatar } from "@homarr/ui";
import { createCustomErrorParams } from "@homarr/validation/form/i18n"; import { createCustomErrorParams } from "@homarr/validation/form/i18n";
import { userPasswordSchema } from "@homarr/validation/user"; import { userPasswordSchema } from "@homarr/validation/user";
@@ -167,18 +155,10 @@ export const UserCreateStepperComponent = ({ initialGroups }: UserCreateStepperC
<form> <form>
<Card p="xl"> <Card p="xl">
<Stack gap="md"> <Stack gap="md">
<CustomPasswordInput <UserCreatePasswordFields
withPasswordRequirements
label={tUserField("password.label")}
variant="filled" variant="filled"
withAsterisk passwordInputProps={securityForm.getInputProps("password")}
{...securityForm.getInputProps("password")} confirmPasswordInputProps={securityForm.getInputProps("confirmPassword")}
/>
<PasswordInput
label={tUserField("passwordConfirm.label")}
variant="filled"
withAsterisk
{...securityForm.getInputProps("confirmPassword")}
/> />
</Stack> </Stack>
</Card> </Card>
@@ -6,11 +6,20 @@ import { LanguageCombobox } from "./language-combobox";
interface CurrentLanguageComboboxProps { interface CurrentLanguageComboboxProps {
width?: string; width?: string;
withinPortal?: boolean;
} }
export const CurrentLanguageCombobox = ({ width }: CurrentLanguageComboboxProps) => { export const CurrentLanguageCombobox = ({ width, withinPortal }: CurrentLanguageComboboxProps) => {
const currentLocale = useCurrentLocale(); const currentLocale = useCurrentLocale();
const { changeLocale, isPending } = useChangeLocale(); const { changeLocale, isPending } = useChangeLocale();
return <LanguageCombobox value={currentLocale} onChange={changeLocale} isPending={isPending} width={width} />; return (
<LanguageCombobox
value={currentLocale}
onChange={changeLocale}
isPending={isPending}
width={width}
withinPortal={withinPortal}
/>
);
}; };
@@ -16,9 +16,17 @@ interface LanguageComboboxProps {
onChange: (value: SupportedLanguage) => void; onChange: (value: SupportedLanguage) => void;
isPending?: boolean; isPending?: boolean;
width?: string; width?: string;
withinPortal?: boolean;
} }
export const LanguageCombobox = ({ label, value, onChange, isPending, width }: LanguageComboboxProps) => { export const LanguageCombobox = ({
label,
value,
onChange,
isPending,
width,
withinPortal = false,
}: LanguageComboboxProps) => {
const combobox = useCombobox({ const combobox = useCombobox({
onDropdownClose: () => combobox.resetSelectedOption(), onDropdownClose: () => combobox.resetSelectedOption(),
}); });
@@ -39,7 +47,7 @@ export const LanguageCombobox = ({ label, value, onChange, isPending, width }: L
}, [combobox]); }, [combobox]);
return ( return (
<Combobox store={combobox} onOptionSubmit={handleOnOptionSubmit}> <Combobox store={combobox} withinPortal={withinPortal} onOptionSubmit={handleOnOptionSubmit}>
<Combobox.Target> <Combobox.Target>
<InputBase <InputBase
component="button" component="button"
+1 -1
View File
@@ -12,7 +12,7 @@
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts", "dev": "pnpm with-env tsx ./src/main.ts",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --" "with-env": "dotenv -e ../../.env --"
+1 -1
View File
@@ -12,7 +12,7 @@
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts", "dev": "pnpm with-env tsx ./src/main.ts",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --" "with-env": "dotenv -e ../../.env --"
+2 -2
View File
@@ -6,9 +6,9 @@
}, },
"engines": { "engines": {
"node": ">=24.16.0", "node": ">=24.16.0",
"pnpm": ">=10.33.4" "pnpm": ">=10.34.1"
}, },
"packageManager": "pnpm@10.33.4", "packageManager": "pnpm@10.34.1",
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"better-sqlite3" "better-sqlite3"
+8 -8
View File
@@ -17,8 +17,8 @@
"db:studio": "pnpm -F db studio", "db:studio": "pnpm -F db studio",
"dev": "pnpm -F nextjs dev", "dev": "pnpm -F nextjs dev",
"docker:dev": "docker compose -f ./development/development.docker-compose.yml up", "docker:dev": "docker compose -f ./development/development.docker-compose.yml up",
"format": "turbo format --continue", "format": "turbo format --continue -- --check",
"format:fix": "turbo format --continue -- --write", "format:fix": "turbo format --continue",
"lint": "turbo lint --continue", "lint": "turbo lint --continue",
"lint:fix": "turbo lint --continue -- --fix", "lint:fix": "turbo lint --continue -- --fix",
"lint:ws": "pnpm dlx sherif@latest", "lint:ws": "pnpm dlx sherif@latest",
@@ -60,9 +60,9 @@
}, },
"engines": { "engines": {
"node": ">=24.16.0", "node": ">=24.16.0",
"pnpm": ">=10.33.4" "pnpm": ">=10.34.1"
}, },
"packageManager": "pnpm@10.33.4", "packageManager": "pnpm@10.34.1",
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@tree-sitter-grammars/tree-sitter-yaml", "@tree-sitter-grammars/tree-sitter-yaml",
@@ -76,14 +76,14 @@
"tree-sitter-json" "tree-sitter-json"
], ],
"overrides": { "overrides": {
"@babel/helpers@<7.26.10": ">=7.29.2", "@babel/helpers@<7.26.10": ">=7.29.7",
"@babel/runtime@<7.26.10": ">=7.29.2", "@babel/runtime@<7.26.10": ">=7.29.7",
"axios@>=1.0.0 <1.8.2": ">=1.16.1", "axios@>=1.0.0 <1.8.2": ">=1.16.1",
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.6", "brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.6",
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.6", "brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.6",
"esbuild@<=0.24.2": ">=0.28.0", "esbuild@<=0.24.2": ">=0.28.0",
"form-data@>=4.0.0 <4.0.4": ">=4.0.5", "form-data@>=4.0.0 <4.0.4": ">=4.0.5",
"hono@<4.6.5": ">=4.12.22", "hono@<4.6.5": ">=4.12.23",
"linkifyjs@<4.3.2": ">=4.3.3", "linkifyjs@<4.3.2": ">=4.3.3",
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11", "nanoid@>=4.0.0 <5.0.9": ">=5.1.11",
"prismjs@<1.30.0": ">=1.30.0", "prismjs@<1.30.0": ">=1.30.0",
@@ -93,7 +93,7 @@
"sha.js@<=2.4.11": ">=2.4.12", "sha.js@<=2.4.11": ">=2.4.12",
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2", "tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2", "tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
"tmp@<=0.2.3": ">=0.2.5", "tmp@<=0.2.3": ">=0.2.7",
"vite@>=5.0.0 <=5.4.18": ">=8.0.14" "vite@>=5.0.0 <=5.4.18": ">=8.0.14"
}, },
"patchedDependencies": { "patchedDependencies": {
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+50 -8
View File
@@ -81,13 +81,7 @@ describe("initUser should initialize the first user", () => {
await expect(actAsync()).rejects.toThrow("passwordsDoNotMatch"); await expect(actAsync()).rejects.toThrow("passwordsDoNotMatch");
}); });
it.each([ it.each([["aB2%"], ["short"]])("should reject passwords shorter than 8 characters for '%s'", async (password) => {
["aB2%"], // too short
["abc123DEF"], // does not contain special characters
["abcDEFghi+"], // does not contain numbers
["ABC123+/-"], // does not contain lowercase
["abc123+/-"], // does not contain uppercase
])("should throw error that password requirements do not match for '%s' as password", async (password) => {
const db = createDb(); const db = createDb();
await createOnboardingStepAsync(db, "user"); await createOnboardingStepAsync(db, "user");
const caller = userRouter.createCaller({ const caller = userRouter.createCaller({
@@ -103,7 +97,55 @@ describe("initUser should initialize the first user", () => {
confirmPassword: password, confirmPassword: password,
}); });
await expect(actAsync()).rejects.toThrow("passwordRequirements"); await expect(actAsync()).rejects.toThrow();
});
it("should accept passwords without complexity requirements", async () => {
const db = createDb();
await createOnboardingStepAsync(db, "user");
const caller = userRouter.createCaller({
db,
deviceType: undefined,
session: null,
});
await caller.initUser({
username: "test",
password: "abc123DEF",
confirmPassword: "abc123DEF",
});
const user = await db.query.users.findFirst({
columns: {
id: true,
},
});
expect(user).toBeDefined();
});
it("should accept passwords with special characters like LoveHomarr<3", async () => {
const db = createDb();
await createOnboardingStepAsync(db, "user");
const caller = userRouter.createCaller({
db,
deviceType: undefined,
session: null,
});
await caller.initUser({
username: "test",
password: "LoveHomarr<3",
confirmPassword: "LoveHomarr<3",
});
const user = await db.query.users.findFirst({
columns: {
id: true,
},
});
expect(user).toBeDefined();
}); });
}); });
+3
View File
@@ -40,6 +40,9 @@ export const env = createEnv({
AUTH_OIDC_NAME_ATTRIBUTE_OVERWRITE: z.string().optional(), AUTH_OIDC_NAME_ATTRIBUTE_OVERWRITE: z.string().optional(),
AUTH_OIDC_FORCE_USERINFO: createBooleanSchema(false), AUTH_OIDC_FORCE_USERINFO: createBooleanSchema(false),
AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING: createBooleanSchema(false), AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING: createBooleanSchema(false),
AUTH_OIDC_TOKEN_ENDPOINT_AUTH_METHOD: z
.enum(["client_secret_basic", "client_secret_post", "client_secret_jwt", "none"])
.default("client_secret_basic"),
} }
: {}), : {}),
...(authProviders.includes("ldap") ...(authProviders.includes("ldap")
+1 -1
View File
@@ -18,7 +18,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
@@ -14,6 +14,9 @@ export const OidcProvider = (headers: ReadonlyHeaders | null): OIDCConfig<Profil
type: "oidc", type: "oidc",
clientId: env.AUTH_OIDC_CLIENT_ID, clientId: env.AUTH_OIDC_CLIENT_ID,
clientSecret: env.AUTH_OIDC_CLIENT_SECRET, clientSecret: env.AUTH_OIDC_CLIENT_SECRET,
client: {
token_endpoint_auth_method: env.AUTH_OIDC_TOKEN_ENDPOINT_AUTH_METHOD,
},
issuer: env.AUTH_OIDC_ISSUER, issuer: env.AUTH_OIDC_ISSUER,
allowDangerousEmailAccountLinking: env.AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING, allowDangerousEmailAccountLinking: env.AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING,
authorization: { authorization: {
+1 -1
View File
@@ -18,7 +18,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
"scripts": { "scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --outfile=cli.cjs --external:bcrypt --external:cpu-features --loader:.html=text --loader:.node=text", "build": "esbuild src/index.ts --bundle --platform=node --outfile=cli.cjs --external:bcrypt --external:cpu-features --loader:.html=text --loader:.node=text",
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"run": "pnpm with-env node cli.cjs", "run": "pnpm with-env node cli.cjs",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
+1 -1
View File
@@ -20,7 +20,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -31,7 +31,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -18,7 +18,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
@@ -1,13 +1,11 @@
import { EVERY_HOUR } from "@homarr/cron-jobs-core/expressions"; import { EVERY_DAY } from "@homarr/cron-jobs-core/expressions";
import { updateCheckerRequestHandler } from "@homarr/request-handler/update-checker"; import { updateCheckerRequestHandler } from "@homarr/request-handler/update-checker";
import { createCronJob } from "../lib"; import { createCronJob } from "../lib";
export const updateCheckerJob = createCronJob("updateChecker", EVERY_HOUR, { export const updateCheckerJob = createCronJob("updateChecker", EVERY_DAY, {
runOnStart: true, runOnStart: true,
}).withCallback(async () => { }).withCallback(async () => {
const handler = updateCheckerRequestHandler.handler({}); const handler = updateCheckerRequestHandler.handler({});
await handler.getCachedOrUpdatedDataAsync({ await handler.getCachedOrUpdatedDataAsync({});
forceUpdate: true,
});
}); });
+1 -1
View File
@@ -20,7 +20,7 @@
"build:postgresql": "esbuild migrations/postgresql/migrate.ts --bundle --platform=node --outfile=migrations/postgresql/migrate.cjs", "build:postgresql": "esbuild migrations/postgresql/migrate.ts --bundle --platform=node --outfile=migrations/postgresql/migrate.cjs",
"build:sqlite": "esbuild migrations/sqlite/migrate.ts --bundle --platform=node --outfile=migrations/sqlite/migrate.cjs", "build:sqlite": "esbuild migrations/sqlite/migrate.ts --bundle --platform=node --outfile=migrations/sqlite/migrate.cjs",
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"migration:custom": "pnpm with-env tsx ./migrations/custom/run-custom.ts", "migration:custom": "pnpm with-env tsx ./migrations/custom/run-custom.ts",
"migration:mysql:drop": "pnpm with-env drizzle-kit drop --config ./configs/mysql.config.ts", "migration:mysql:drop": "pnpm with-env drizzle-kit drop --config ./configs/mysql.config.ts",
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"postinstall": "tsx ./src/docs/codegen.ts", "postinstall": "tsx ./src/docs/codegen.ts",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
+1 -1
View File
@@ -18,7 +18,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+2
View File
@@ -5,3 +5,5 @@ export * from "./icon-picker/icon-picker";
export * from "./new-app/icon-matcher"; export * from "./new-app/icon-matcher";
export * from "./upload-media/upload-media"; export * from "./upload-media/upload-media";
export * from "./user-create/user-create-password-fields";
@@ -0,0 +1,33 @@
"use client";
import { PasswordInput, Stack } from "@mantine/core";
import type { PasswordInputProps } from "@mantine/core";
import { useScopedI18n } from "@homarr/translation/client";
import { CustomPasswordInput } from "@homarr/ui";
interface UserCreatePasswordFieldsProps {
passwordInputProps: PasswordInputProps;
confirmPasswordInputProps: PasswordInputProps;
variant?: PasswordInputProps["variant"];
}
export const UserCreatePasswordFields = ({
passwordInputProps,
confirmPasswordInputProps,
variant,
}: UserCreatePasswordFieldsProps) => {
const t = useScopedI18n("user.field");
return (
<Stack gap="md">
<CustomPasswordInput
withPasswordRequirements
label={t("password.label")}
variant={variant}
{...passwordInputProps}
/>
<PasswordInput label={t("passwordConfirm.label")} variant={variant} {...confirmPasswordInputProps} />
</Stack>
);
};
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -19,7 +19,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -20,7 +20,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
@@ -1,6 +1,7 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import type { Duration } from "dayjs/plugin/duration"; import type { Duration } from "dayjs/plugin/duration";
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
import { createLogger } from "@homarr/core/infrastructure/logs"; import { createLogger } from "@homarr/core/infrastructure/logs";
import type { createChannelWithLatestAndEvents } from "@homarr/redis"; import type { createChannelWithLatestAndEvents } from "@homarr/redis";
@@ -15,6 +16,7 @@ interface Options<TData, TInput extends Record<string, unknown>> {
options: Options<TData, TInput>, options: Options<TData, TInput>,
) => ReturnType<typeof createChannelWithLatestAndEvents<TData>>; ) => ReturnType<typeof createChannelWithLatestAndEvents<TData>>;
cacheDuration: Duration; cacheDuration: Duration;
fallbackToStaleOnError?: boolean;
} }
export const createCachedRequestHandler = <TData, TInput extends Record<string, unknown>>( export const createCachedRequestHandler = <TData, TInput extends Record<string, unknown>>(
@@ -26,13 +28,33 @@ export const createCachedRequestHandler = <TData, TInput extends Record<string,
return { return {
async getCachedOrUpdatedDataAsync({ forceUpdate = false }) { async getCachedOrUpdatedDataAsync({ forceUpdate = false }) {
const channelData = await channel.getAsync();
const requestNewDataAsync = async () => { const requestNewDataAsync = async () => {
const data = await options.requestAsync(input); try {
await channel.publishAndUpdateLastStateAsync(data); const data = await options.requestAsync(input);
return { await channel.publishAndUpdateLastStateAsync(data);
data, return {
timestamp: new Date(), data,
}; timestamp: new Date(),
};
} catch (error) {
if (options.fallbackToStaleOnError && channelData) {
logger.warn(
new ErrorWithMetadata(
"Cached request handler using stale cache after fetch failure",
{
channel: channel.name,
queryKey: options.queryKey,
},
{ cause: error },
),
);
return channelData;
}
throw error;
}
}; };
if (forceUpdate) { if (forceUpdate) {
@@ -43,8 +65,6 @@ export const createCachedRequestHandler = <TData, TInput extends Record<string,
return await requestNewDataAsync(); return await requestNewDataAsync();
} }
const channelData = await channel.getAsync();
const shouldRequestNewData = const shouldRequestNewData =
!channelData || !channelData ||
dayjs().diff(channelData.timestamp, "milliseconds") > options.cacheDuration.asMilliseconds(); dayjs().diff(channelData.timestamp, "milliseconds") > options.cacheDuration.asMilliseconds();
@@ -111,6 +111,24 @@ describe("getAvailableUpdatesAsync", () => {
// Assert // Assert
expect(result).toEqual([]); expect(result).toEqual([]);
}); });
test("should propagate GitHub API auth errors without blocking callers", async () => {
const currentVersion = "v1.2.3";
const listReleasesSpy = vi.spyOn(new Octokit().rest.repos, "listReleases");
listReleasesSpy.mockRejectedValue(new Error("Bad credentials"));
await expect(getAvailableUpdatesAsync(currentVersion)).rejects.toThrow("Bad credentials");
});
test("should propagate GitHub API quota exhausted errors without blocking callers", async () => {
const currentVersion = "v1.2.3";
const listReleasesSpy = vi.spyOn(new Octokit().rest.repos, "listReleases");
listReleasesSpy.mockRejectedValue(
new Error("Request quota exhausted for request GET /repos/{owner}/{repo}/releases"),
);
await expect(getAvailableUpdatesAsync(currentVersion)).rejects.toThrow("quota exhausted");
});
}); });
const fakeReleases = (...inputs: [string, boolean][]) => inputs.map(fakeRelease); const fakeReleases = (...inputs: [string, boolean][]) => inputs.map(fakeRelease);
@@ -15,7 +15,8 @@ const logger = createLogger({ module: "updateCheckerRequestHandler" });
export const updateCheckerRequestHandler = createCachedRequestHandler({ export const updateCheckerRequestHandler = createCachedRequestHandler({
queryKey: "homarr-update-checker", queryKey: "homarr-update-checker",
cacheDuration: dayjs.duration(1, "hour"), cacheDuration: dayjs.duration(1, "day"),
fallbackToStaleOnError: true,
async requestAsync(_) { async requestAsync(_) {
return { return {
availableUpdates: await getAvailableUpdatesAsync(packageJson.version), availableUpdates: await getAvailableUpdatesAsync(packageJson.version),
@@ -58,6 +59,7 @@ export const getAvailableUpdatesAsync = async (currentVersion: string) => {
request: { request: {
fetch: fetchWithTrustedCertificatesAsync, fetch: fetchWithTrustedCertificatesAsync,
}, },
throttle: { enabled: false },
}); });
const isCurrentPrerelease = isPrereleaseTag(currentVersion); const isCurrentPrerelease = isPrereleaseTag(currentVersion);
@@ -100,7 +102,7 @@ export const getAvailableUpdatesAsync = async (currentVersion: string) => {
const availableUpdates = semanticReleases const availableUpdates = semanticReleases
.filter((release) => isCurrentPrerelease || !release.isPrerelease) .filter((release) => isCurrentPrerelease || !release.isPrerelease)
.filter((release) => compareSemVer(release.tagName, currentVersion) > 0) .filter((release) => compareSemVer(release.tagName, currentVersion) > 0)
.sort((releaseA, releaseB) => compareSemVer(releaseB.tagName, releaseA.tagName)); .toSorted((releaseA, releaseB) => compareSemVer(releaseB.tagName, releaseA.tagName));
if (availableUpdates.length === 0) { if (availableUpdates.length === 0) {
logger.debug("No available updates found", { currentVersion }); logger.debug("No available updates found", { currentVersion });
+1 -1
View File
@@ -16,7 +16,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+1 -1
View File
@@ -21,7 +21,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Contrasenya", "label": "Contrasenya",
"requirement": { "suggestion": {
"length": "Inclou com a mínim 8 caràcters", "length": "Inclou com a mínim 8 caràcters",
"lowercase": "Inclou minúscules", "lowercase": "Inclou minúscules",
"uppercase": "Inclou majúscules", "uppercase": "Inclou majúscules",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "", "tryAgain": "",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "" "changePosition": "",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "密码", "label": "密码",
"requirement": { "suggestion": {
"length": "至少包含 8 个字符", "length": "至少包含 8 个字符",
"lowercase": "包含小写字母", "lowercase": "包含小写字母",
"uppercase": "包含大写字母", "uppercase": "包含大写字母",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "打开媒体" "label": "打开媒体"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "查阅文档", "checkoutDocs": "查阅文档",
"checkLogs": "检查日志获取更多详情", "checkLogs": "检查日志获取更多详情",
"tryAgain": "重试", "tryAgain": "重试",
"loading": "正在加载" "loading": "正在加载",
"show": "",
"hide": ""
}, },
"here": "这里", "here": "这里",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "新建分类", "create": "新建分类",
"changePosition": "换位" "changePosition": "换位",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "此面板是公开的", "public": "此面板是公开的",
"private": "此面板是私有的" "private": "此面板是私有的"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "crwdns26:0crwdne26:0", "label": "crwdns26:0crwdne26:0",
"requirement": { "suggestion": {
"length": "crwdns28:0crwdne28:0", "length": "crwdns28:0crwdne28:0",
"lowercase": "crwdns30:0crwdne30:0", "lowercase": "crwdns30:0crwdne30:0",
"uppercase": "crwdns32:0crwdne32:0", "uppercase": "crwdns32:0crwdne32:0",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "crwdns2680:0crwdne2680:0" "label": "crwdns2680:0crwdne2680:0"
} }
},
"noResults": {
"title": "crwdns4251:0crwdne4251:0"
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "crwdns546:0crwdne546:0", "checkoutDocs": "crwdns546:0crwdne546:0",
"checkLogs": "crwdns2260:0crwdne2260:0", "checkLogs": "crwdns2260:0crwdne2260:0",
"tryAgain": "crwdns548:0crwdne548:0", "tryAgain": "crwdns548:0crwdne548:0",
"loading": "crwdns550:0crwdne550:0" "loading": "crwdns550:0crwdne550:0",
"show": "crwdns4255:0crwdne4255:0",
"hide": "crwdns4257:0crwdne4257:0"
}, },
"here": "crwdns552:0crwdne552:0", "here": "crwdns552:0crwdne552:0",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "crwdns686:0crwdne686:0", "create": "crwdns686:0crwdne686:0",
"changePosition": "crwdns688:0crwdne688:0" "changePosition": "crwdns688:0crwdne688:0",
"settings": "crwdns4259:0crwdne4259:0"
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "crwdns1656:0crwdne1656:0", "public": "crwdns1656:0crwdne1656:0",
"private": "crwdns1658:0crwdne1658:0" "private": "crwdns1658:0crwdne1658:0"
}, },
"noResults": {
"title": "crwdns4253:0crwdne4253:0"
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Heslo", "label": "Heslo",
"requirement": { "suggestion": {
"length": "Obsahuje alespoň 8 znaků", "length": "Obsahuje alespoň 8 znaků",
"lowercase": "Obsahuje malé písmeno", "lowercase": "Obsahuje malé písmeno",
"uppercase": "Obsahuje velké písmeno", "uppercase": "Obsahuje velké písmeno",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Přečtěte si dokumentaci", "checkoutDocs": "Přečtěte si dokumentaci",
"checkLogs": "Pro více podrobností zkontrolujte logy", "checkLogs": "Pro více podrobností zkontrolujte logy",
"tryAgain": "Zkusit znovu", "tryAgain": "Zkusit znovu",
"loading": "Načítání" "loading": "Načítání",
"show": "",
"hide": ""
}, },
"here": "zde", "here": "zde",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nová kategorie", "create": "Nová kategorie",
"changePosition": "Změnit pozici" "changePosition": "Změnit pozici",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Adgangskode", "label": "Adgangskode",
"requirement": { "suggestion": {
"length": "Inkluderer mindst 8 tegn", "length": "Inkluderer mindst 8 tegn",
"lowercase": "Inkluderer små bogstaver", "lowercase": "Inkluderer små bogstaver",
"uppercase": "Inkluderer store bogstaver", "uppercase": "Inkluderer store bogstaver",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Åben medie" "label": "Åben medie"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Tjek dokumentationen", "checkoutDocs": "Tjek dokumentationen",
"checkLogs": "Tjek logs for flere detaljer", "checkLogs": "Tjek logs for flere detaljer",
"tryAgain": "Prøv igen", "tryAgain": "Prøv igen",
"loading": "Indlæser" "loading": "Indlæser",
"show": "",
"hide": ""
}, },
"here": "her", "here": "her",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Ny kategori", "create": "Ny kategori",
"changePosition": "Ændre placering" "changePosition": "Ændre placering",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Denne tavle er offentlig", "public": "Denne tavle er offentlig",
"private": "Denne tavle er privat" "private": "Denne tavle er privat"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Passwort", "label": "Passwort",
"requirement": { "suggestion": {
"length": "Enthält mindestens 8 Zeichen", "length": "Enthält mindestens 8 Zeichen",
"lowercase": "Enthält Kleinbuchstaben", "lowercase": "Enthält Kleinbuchstaben",
"uppercase": "Enthält Großbuchstaben", "uppercase": "Enthält Großbuchstaben",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Medium öffnen" "label": "Medium öffnen"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Die Dokumentation ansehen", "checkoutDocs": "Die Dokumentation ansehen",
"checkLogs": "Logs für weitere Details prüfen", "checkLogs": "Logs für weitere Details prüfen",
"tryAgain": "Erneut versuchen", "tryAgain": "Erneut versuchen",
"loading": "Wird geladen" "loading": "Wird geladen",
"show": "",
"hide": ""
}, },
"here": "Hier", "here": "Hier",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Neue Kategorie", "create": "Neue Kategorie",
"changePosition": "Position wechseln" "changePosition": "Position wechseln",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Dieses Board ist öffentlich", "public": "Dieses Board ist öffentlich",
"private": "Dieses Board ist privat" "private": "Dieses Board ist privat"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Passwort", "label": "Passwort",
"requirement": { "suggestion": {
"length": "Enthält mindestens 8 Zeichen", "length": "Enthält mindestens 8 Zeichen",
"lowercase": "Enthält Kleinbuchstaben", "lowercase": "Enthält Kleinbuchstaben",
"uppercase": "Enthält Großbuchstaben", "uppercase": "Enthält Großbuchstaben",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Medium öffnen" "label": "Medium öffnen"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Die Dokumentation ansehen", "checkoutDocs": "Die Dokumentation ansehen",
"checkLogs": "Logs für weitere Details prüfen", "checkLogs": "Logs für weitere Details prüfen",
"tryAgain": "Erneut versuchen", "tryAgain": "Erneut versuchen",
"loading": "Wird geladen" "loading": "Wird geladen",
"show": "",
"hide": ""
}, },
"here": "Hier", "here": "Hier",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Neue Kategorie", "create": "Neue Kategorie",
"changePosition": "Position wechseln" "changePosition": "Position wechseln",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Dieses Board ist öffentlich", "public": "Dieses Board ist öffentlich",
"private": "Dieses Board ist privat" "private": "Dieses Board ist privat"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Κωδικός", "label": "Κωδικός",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "Περιλαμβάνει πεζό γράμμα", "lowercase": "Περιλαμβάνει πεζό γράμμα",
"uppercase": "Περιλαμβάνει κεφαλαίο γράμμα", "uppercase": "Περιλαμβάνει κεφαλαίο γράμμα",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Προσπαθήστε ξανά", "tryAgain": "Προσπαθήστε ξανά",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Αλλαγή θέσης" "changePosition": "Αλλαγή θέσης",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Password", "label": "Password",
"requirement": { "suggestion": {
"length": "Includes a minimum of 8 characters", "length": "Includes a minimum of 8 characters",
"lowercase": "Includes a lower-case letter", "lowercase": "Includes a lower-case letter",
"uppercase": "Includes an upper-case letter", "uppercase": "Includes an upper-case letter",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Open media" "label": "Open media"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Check the documentation", "checkoutDocs": "Check the documentation",
"checkLogs": "Check logs for more information", "checkLogs": "Check logs for more information",
"tryAgain": "Try again", "tryAgain": "Try again",
"loading": "Loading" "loading": "Loading",
"show": "",
"hide": ""
}, },
"here": "here", "here": "here",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "New category", "create": "New category",
"changePosition": "Change position" "changePosition": "Change position",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+3 -2
View File
@@ -132,8 +132,9 @@
}, },
"password": { "password": {
"label": "Password", "label": "Password",
"requirement": { "suggestionsTitle": "Password suggestions",
"length": "Includes at least 8 characters", "suggestion": {
"length": "At least 8 characters",
"lowercase": "Includes lowercase letter", "lowercase": "Includes lowercase letter",
"uppercase": "Includes uppercase letter", "uppercase": "Includes uppercase letter",
"number": "Includes number", "number": "Includes number",
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Contraseña", "label": "Contraseña",
"requirement": { "suggestion": {
"length": "Incluye al menos 8 caracteres", "length": "Incluye al menos 8 caracteres",
"lowercase": "Incluye al menos una letra minúscula", "lowercase": "Incluye al menos una letra minúscula",
"uppercase": "Incluye al menos una letra mayúscula", "uppercase": "Incluye al menos una letra mayúscula",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Abrir imagen" "label": "Abrir imagen"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Consultar la documentación", "checkoutDocs": "Consultar la documentación",
"checkLogs": "Comprueba los registros para más detalles", "checkLogs": "Comprueba los registros para más detalles",
"tryAgain": "Intentar de nuevo", "tryAgain": "Intentar de nuevo",
"loading": "Cargando" "loading": "Cargando",
"show": "",
"hide": ""
}, },
"here": "aquí", "here": "aquí",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nueva Categoría", "create": "Nueva Categoría",
"changePosition": "Cambiar posición" "changePosition": "Cambiar posición",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Este tablero es público", "public": "Este tablero es público",
"private": "Este tablero es privado" "private": "Este tablero es privado"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "", "label": "",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "", "lowercase": "",
"uppercase": "", "uppercase": "",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "", "tryAgain": "",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "" "changePosition": "",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Mot de passe", "label": "Mot de passe",
"requirement": { "suggestion": {
"length": "Contient au moins 8 caractères", "length": "Contient au moins 8 caractères",
"lowercase": "Inclut une lettre minuscule", "lowercase": "Inclut une lettre minuscule",
"uppercase": "Inclut une lettre majuscule", "uppercase": "Inclut une lettre majuscule",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Ouvrir le média" "label": "Ouvrir le média"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Voir la documentation", "checkoutDocs": "Voir la documentation",
"checkLogs": "Vérifiez les logs pour plus de détails", "checkLogs": "Vérifiez les logs pour plus de détails",
"tryAgain": "Réessayer", "tryAgain": "Réessayer",
"loading": "Chargement" "loading": "Chargement",
"show": "",
"hide": ""
}, },
"here": "ici", "here": "ici",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nouvelle catégorie", "create": "Nouvelle catégorie",
"changePosition": "Modifier la position" "changePosition": "Modifier la position",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Ce tableau est public", "public": "Ce tableau est public",
"private": "Ce tableau est privé" "private": "Ce tableau est privé"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "סיסמה", "label": "סיסמה",
"requirement": { "suggestion": {
"length": "כולל לפחות 8 תווים", "length": "כולל לפחות 8 תווים",
"lowercase": "אפשר אותיות קטנות", "lowercase": "אפשר אותיות קטנות",
"uppercase": "אפשר אותיות גדולות", "uppercase": "אפשר אותיות גדולות",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "פתיחת מדיה" "label": "פתיחת מדיה"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "בדוק את התיעוד", "checkoutDocs": "בדוק את התיעוד",
"checkLogs": "בדוק לוגים לפרטים נוספים", "checkLogs": "בדוק לוגים לפרטים נוספים",
"tryAgain": "נא לנסות שוב", "tryAgain": "נא לנסות שוב",
"loading": "טוען" "loading": "טוען",
"show": "",
"hide": ""
}, },
"here": "כאן", "here": "כאן",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "קטגוריה חדשה", "create": "קטגוריה חדשה",
"changePosition": "שנה מיקום" "changePosition": "שנה מיקום",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "הלוח הזה ציבורי", "public": "הלוח הזה ציבורי",
"private": "הלוח הזה פרטי" "private": "הלוח הזה פרטי"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Lozinka", "label": "Lozinka",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "Uključuje mala slova", "lowercase": "Uključuje mala slova",
"uppercase": "Uključuje veliko slovo", "uppercase": "Uključuje veliko slovo",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Pokušaj ponovno", "tryAgain": "Pokušaj ponovno",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Promijenjen položaj" "changePosition": "Promijenjen položaj",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Jelszó", "label": "Jelszó",
"requirement": { "suggestion": {
"length": "Tartalmazzon legalább 8 karaktert", "length": "Tartalmazzon legalább 8 karaktert",
"lowercase": "Tartalmazzon kisbetűt", "lowercase": "Tartalmazzon kisbetűt",
"uppercase": "Tartalmazzon nagybetűt", "uppercase": "Tartalmazzon nagybetűt",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Média megnyitása" "label": "Média megnyitása"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Tekintse meg a dokumentációt", "checkoutDocs": "Tekintse meg a dokumentációt",
"checkLogs": "További részletekért ellenőrizze a naplókat", "checkLogs": "További részletekért ellenőrizze a naplókat",
"tryAgain": "Próbálja újra", "tryAgain": "Próbálja újra",
"loading": "Töltés" "loading": "Töltés",
"show": "",
"hide": ""
}, },
"here": "itt", "here": "itt",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Új kategória", "create": "Új kategória",
"changePosition": "Pozíció módosítása" "changePosition": "Pozíció módosítása",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Password", "label": "Password",
"requirement": { "suggestion": {
"length": "Include almeno 8 caratteri", "length": "Include almeno 8 caratteri",
"lowercase": "Include lettera minuscola", "lowercase": "Include lettera minuscola",
"uppercase": "Include lettera maiuscola", "uppercase": "Include lettera maiuscola",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Apri media" "label": "Apri media"
} }
},
"noResults": {
"title": "Nessun media caricato"
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Consulta la documentazione", "checkoutDocs": "Consulta la documentazione",
"checkLogs": "Controlla i log per maggiori dettagli", "checkLogs": "Controlla i log per maggiori dettagli",
"tryAgain": "Riprova", "tryAgain": "Riprova",
"loading": "Caricamento" "loading": "Caricamento",
"show": "Visualizza",
"hide": "Nascondi"
}, },
"here": "qui", "here": "qui",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nuova categoria", "create": "Nuova categoria",
"changePosition": "Cambia posizione" "changePosition": "Cambia posizione",
"settings": "Impostazioni"
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Questa board è pubblica", "public": "Questa board è pubblica",
"private": "Questa board è privata" "private": "Questa board è privata"
}, },
"noResults": {
"title": "Ancora nessuna board"
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "パスワード", "label": "パスワード",
"requirement": { "suggestion": {
"length": "少なくとも 8 文字以上を含む", "length": "少なくとも 8 文字以上を含む",
"lowercase": "小文字を含む", "lowercase": "小文字を含む",
"uppercase": "大文字を含む", "uppercase": "大文字を含む",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "メディアを開く" "label": "メディアを開く"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "ドキュメントを確認する", "checkoutDocs": "ドキュメントを確認する",
"checkLogs": "詳細はログを確認してください", "checkLogs": "詳細はログを確認してください",
"tryAgain": "リトライ", "tryAgain": "リトライ",
"loading": "読み込み中" "loading": "読み込み中",
"show": "",
"hide": ""
}, },
"here": "こちら", "here": "こちら",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "新しいカテゴリー", "create": "新しいカテゴリー",
"changePosition": "ポジションを変更する" "changePosition": "ポジションを変更する",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "このボードは公開中です", "public": "このボードは公開中です",
"private": "このボードは非公開です" "private": "このボードは非公開です"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "비밀번호", "label": "비밀번호",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "소문자 포함", "lowercase": "소문자 포함",
"uppercase": "대문자 포함", "uppercase": "대문자 포함",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "다시 시도", "tryAgain": "다시 시도",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "위치 변경" "changePosition": "위치 변경",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Slaptažodis", "label": "Slaptažodis",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "", "lowercase": "",
"uppercase": "", "uppercase": "",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "", "tryAgain": "",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "" "changePosition": "",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Parole", "label": "Parole",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "Ietver mazo burtu", "lowercase": "Ietver mazo burtu",
"uppercase": "Ietver lielo burtu", "uppercase": "Ietver lielo burtu",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Mēģiniet vēlreiz", "tryAgain": "Mēģiniet vēlreiz",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Mainīt pozīciju" "changePosition": "Mainīt pozīciju",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Wachtwoord", "label": "Wachtwoord",
"requirement": { "suggestion": {
"length": "Bevat ten minste 8 tekens", "length": "Bevat ten minste 8 tekens",
"lowercase": "Inclusief kleine letter", "lowercase": "Inclusief kleine letter",
"uppercase": "Inclusief hoofdletter", "uppercase": "Inclusief hoofdletter",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Media openen" "label": "Media openen"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "De documentatie bekijken", "checkoutDocs": "De documentatie bekijken",
"checkLogs": "Controleer logs voor meer details", "checkLogs": "Controleer logs voor meer details",
"tryAgain": "Probeer opnieuw", "tryAgain": "Probeer opnieuw",
"loading": "Laden" "loading": "Laden",
"show": "",
"hide": ""
}, },
"here": "hier", "here": "hier",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nieuwe categorie", "create": "Nieuwe categorie",
"changePosition": "Positie wijzigen" "changePosition": "Positie wijzigen",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Dit bord is openbaar", "public": "Dit bord is openbaar",
"private": "Dit bord is privé" "private": "Dit bord is privé"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Passord", "label": "Passord",
"requirement": { "suggestion": {
"length": "Inkluderer minst 8 tegn", "length": "Inkluderer minst 8 tegn",
"lowercase": "Inkluderer liten bokstav", "lowercase": "Inkluderer liten bokstav",
"uppercase": "Inkluderer stor bokstav", "uppercase": "Inkluderer stor bokstav",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Åpne medie" "label": "Åpne medie"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Les dokumentasjonen", "checkoutDocs": "Les dokumentasjonen",
"checkLogs": "Sjekk loggene for mer informasjon", "checkLogs": "Sjekk loggene for mer informasjon",
"tryAgain": "Prøv igjen", "tryAgain": "Prøv igjen",
"loading": "Laster" "loading": "Laster",
"show": "",
"hide": ""
}, },
"here": "her", "here": "her",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Ny kategori", "create": "Ny kategori",
"changePosition": "Endre posisjon" "changePosition": "Endre posisjon",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Denne tavlen er offentlig", "public": "Denne tavlen er offentlig",
"private": "Denne tavlen er privat" "private": "Denne tavlen er privat"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Hasło", "label": "Hasło",
"requirement": { "suggestion": {
"length": "Zawiera co najmniej 8 znaków", "length": "Zawiera co najmniej 8 znaków",
"lowercase": "Zawiera małą literę", "lowercase": "Zawiera małą literę",
"uppercase": "Zawiera wielką literę", "uppercase": "Zawiera wielką literę",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Otwórz media" "label": "Otwórz media"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Sprawdź dokumentację", "checkoutDocs": "Sprawdź dokumentację",
"checkLogs": "Sprawdź logi, aby uzyskać więcej informacji.", "checkLogs": "Sprawdź logi, aby uzyskać więcej informacji.",
"tryAgain": "Spróbuj ponownie", "tryAgain": "Spróbuj ponownie",
"loading": "Ładowanie" "loading": "Ładowanie",
"show": "",
"hide": ""
}, },
"here": "tutaj", "here": "tutaj",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nowa kategoria", "create": "Nowa kategoria",
"changePosition": "Zmiana pozycji" "changePosition": "Zmiana pozycji",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Ta tablica jest publiczna", "public": "Ta tablica jest publiczna",
"private": "Ta tablica jest prywatna" "private": "Ta tablica jest prywatna"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Senha", "label": "Senha",
"requirement": { "suggestion": {
"length": "Inclua pelo menos 8 caracteres", "length": "Inclua pelo menos 8 caracteres",
"lowercase": "Inclui letras minúsculas", "lowercase": "Inclui letras minúsculas",
"uppercase": "Inclui letras maiúsculas", "uppercase": "Inclui letras maiúsculas",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Abrir mídia" "label": "Abrir mídia"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Confira a documentação", "checkoutDocs": "Confira a documentação",
"checkLogs": "Verifique os logs para mais detalhes", "checkLogs": "Verifique os logs para mais detalhes",
"tryAgain": "Tente novamente", "tryAgain": "Tente novamente",
"loading": "Carregando" "loading": "Carregando",
"show": "",
"hide": ""
}, },
"here": "aqui", "here": "aqui",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nova categoria", "create": "Nova categoria",
"changePosition": "Mudar de posição" "changePosition": "Mudar de posição",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Este quadro é publico", "public": "Este quadro é publico",
"private": "Este quadro é privado" "private": "Este quadro é privado"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "", "label": "",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "", "lowercase": "",
"uppercase": "", "uppercase": "",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "", "tryAgain": "",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "" "changePosition": "",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Parola", "label": "Parola",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "Să includă litere mici", "lowercase": "Să includă litere mici",
"uppercase": "Să includă litere mari", "uppercase": "Să includă litere mari",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Încearcă din nou", "tryAgain": "Încearcă din nou",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Schimbă locația" "changePosition": "Schimbă locația",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Пароль", "label": "Пароль",
"requirement": { "suggestion": {
"length": "Содержит не менее 8 символов", "length": "Содержит не менее 8 символов",
"lowercase": "Содержит строчную букву", "lowercase": "Содержит строчную букву",
"uppercase": "Содержит заглавную букву", "uppercase": "Содержит заглавную букву",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Открыть медиа" "label": "Открыть медиа"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Посмотреть документацию", "checkoutDocs": "Посмотреть документацию",
"checkLogs": "Проверить логи для подробностей", "checkLogs": "Проверить логи для подробностей",
"tryAgain": "Попробовать снова", "tryAgain": "Попробовать снова",
"loading": "Загрузка" "loading": "Загрузка",
"show": "",
"hide": ""
}, },
"here": "здесь", "here": "здесь",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Новая категория", "create": "Новая категория",
"changePosition": "Изменить позицию" "changePosition": "Изменить позицию",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Эта панель публичная", "public": "Эта панель публичная",
"private": "Эта панель приватная" "private": "Эта панель приватная"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Heslo", "label": "Heslo",
"requirement": { "suggestion": {
"length": "Obsahuje aspoň 8 znakov", "length": "Obsahuje aspoň 8 znakov",
"lowercase": "Zahŕňa malé písmeno", "lowercase": "Zahŕňa malé písmeno",
"uppercase": "Zahŕňa veľké písmená", "uppercase": "Zahŕňa veľké písmená",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Otvoriť médiá" "label": "Otvoriť médiá"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Pozrite si dokumentáciu", "checkoutDocs": "Pozrite si dokumentáciu",
"checkLogs": "Ďalšie podrobnosti nájdete v protokoloch", "checkLogs": "Ďalšie podrobnosti nájdete v protokoloch",
"tryAgain": "Skúste znova", "tryAgain": "Skúste znova",
"loading": "Nahrávam" "loading": "Nahrávam",
"show": "",
"hide": ""
}, },
"here": "tu", "here": "tu",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Nová kategória", "create": "Nová kategória",
"changePosition": "Zmeniť pozíciu" "changePosition": "Zmeniť pozíciu",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Táto tabuľa je verejná", "public": "Táto tabuľa je verejná",
"private": "Táto tabuľa je súkromná" "private": "Táto tabuľa je súkromná"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Geslo", "label": "Geslo",
"requirement": { "suggestion": {
"length": "", "length": "",
"lowercase": "Vključuje male črke", "lowercase": "Vključuje male črke",
"uppercase": "Vključuje velike tiskane črke", "uppercase": "Vključuje velike tiskane črke",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Poskusite znova", "tryAgain": "Poskusite znova",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Spremeni položaj" "changePosition": "Spremeni položaj",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+118 -109
View File
@@ -82,7 +82,7 @@
"form": { "form": {
"name": { "name": {
"label": "Gruppens namn", "label": "Gruppens namn",
"description": "" "description": "Namnet måste matcha admin-grupp i extern tjänst"
} }
} }
}, },
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Lösenord", "label": "Lösenord",
"requirement": { "suggestion": {
"length": "Använd minst 8 tecken", "length": "Använd minst 8 tecken",
"lowercase": "Använd liten bokstav", "lowercase": "Använd liten bokstav",
"uppercase": "Använd stor bokstav", "uppercase": "Använd stor bokstav",
@@ -159,7 +159,7 @@
"label": "Visa sökresultat i ny flik" "label": "Visa sökresultat i ny flik"
}, },
"ddgBangs": { "ddgBangs": {
"label": "" "label": "Aktivera DuckDuckGo bangs"
} }
}, },
"error": { "error": {
@@ -252,10 +252,10 @@
"changeDdgBangs": { "changeDdgBangs": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "DuckDuckGo bangs inställningen ändrad"
}, },
"error": { "error": {
"message": "" "message": "DuckDuckGo bangs inställningen kunde inte ändras"
} }
} }
}, },
@@ -350,12 +350,12 @@
"description": "Tillåt medlemmar att addera valfri applikation på sina tavlor" "description": "Tillåt medlemmar att addera valfri applikation på sina tavlor"
}, },
"modify-all": { "modify-all": {
"label": "", "label": "Modifiera alla appar",
"description": "" "description": "Tillåt att medlemmar modifierar alla appar"
}, },
"full-all": { "full-all": {
"label": "", "label": "Fullständiga rättigheter till appar",
"description": "" "description": "Tillåt att medlemmar hanterar, använder och raderar alla appar"
} }
} }
}, },
@@ -363,20 +363,20 @@
"title": "Tavlor", "title": "Tavlor",
"item": { "item": {
"create": { "create": {
"label": "", "label": "Skapa tavlor",
"description": "" "description": "Tillåt att medlemmar skapar tavlor"
}, },
"view-all": { "view-all": {
"label": "", "label": "Se alla tavlor",
"description": "" "description": "Tillåt att medlemmar ser alla tavlor"
}, },
"modify-all": { "modify-all": {
"label": "", "label": "Modifiera alla tavlor",
"description": "" "description": "Tillåt att medlemmar modifierar alla tavlor (Detta inkluderar inte åtkomstkontroll eller farozonen)"
}, },
"full-all": { "full-all": {
"label": "", "label": "Fullständiga rättigheter till tavlor",
"description": "" "description": "Tillåt att medlemmar ser, modifierar och tar bort alla tavlor (detta inkluderar åtkomstkontroll och farozonen)"
} }
} }
}, },
@@ -392,38 +392,38 @@
"description": "Tillåter medlemmar att addera valfri integration till sina tavlor" "description": "Tillåter medlemmar att addera valfri integration till sina tavlor"
}, },
"interact-all": { "interact-all": {
"label": "", "label": "Interagera med alla integrationer",
"description": "" "description": "Tillåt att medlemmar interagerar med alla integrationer"
}, },
"full-all": { "full-all": {
"label": "", "label": "Fullständiga rättigheter till integrationer",
"description": "" "description": "Tillåt att medlemmar hanterar, använder och interagerar med alla integrationer"
} }
} }
}, },
"media": { "media": {
"title": "", "title": "Media",
"item": { "item": {
"upload": { "upload": {
"label": "", "label": "Ladda upp media",
"description": "" "description": "Tillåt att medlemmar laddar upp media"
}, },
"view-all": { "view-all": {
"label": "", "label": "Se all media",
"description": "" "description": "Tillåt att medlemmar ser all media"
}, },
"full-all": { "full-all": {
"label": "", "label": "Fullständiga rättigheter till media",
"description": "" "description": "Tillåt att medlemmar hanterar och raderar all media"
} }
} }
}, },
"other": { "other": {
"title": "", "title": "Annat",
"item": { "item": {
"view-logs": { "view-logs": {
"label": "", "label": "Se loggar",
"description": "" "description": "Tillåt att medlemmar ser loggar"
} }
} }
}, },
@@ -435,32 +435,32 @@
"description": "Tillåt medlemmar att skapa sökmotorer" "description": "Tillåt medlemmar att skapa sökmotorer"
}, },
"modify-all": { "modify-all": {
"label": "", "label": "Modifiera alla sökmotorer",
"description": "" "description": "Tillåt att medlemmar modifierar alla sökmotorer"
}, },
"full-all": { "full-all": {
"label": "", "label": "Fullständiga rättigheter till sökmotorer",
"description": "" "description": "Tillåt att medlemmar hanterar och raderar alla sökmotorer"
} }
} }
} }
}, },
"memberNotice": { "memberNotice": {
"mixed": "", "mixed": "Vissa medlemmar är från externa tjänster och kan inte hantera här",
"external": "" "external": "Alla medlemmar är från externa tjänster och kan inte hanteras här"
}, },
"reservedNotice": { "reservedNotice": {
"message": "" "message": "Denna grupp är reserverad för systemet så vissa åtgärder är begränsade. <checkoutDocs></checkoutDocs>"
}, },
"action": { "action": {
"create": { "create": {
"label": "Addera en grupp", "label": "Addera en grupp",
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "Gruppen har skapats"
}, },
"error": { "error": {
"message": "" "message": "Gruppen kunde inte skapas"
} }
} }
}, },
@@ -470,7 +470,7 @@
"confirm": "Är du säker på att du vill överföra ägarskapet för gruppen {name} till {username}?", "confirm": "Är du säker på att du vill överföra ägarskapet för gruppen {name} till {username}?",
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "Överfört grupp {group} till {user}"
}, },
"error": { "error": {
"message": "Kunde inte överföra ägarskap" "message": "Kunde inte överföra ägarskap"
@@ -501,38 +501,38 @@
"notification": { "notification": {
"success": { "success": {
"title": "Behörigheter sparade", "title": "Behörigheter sparade",
"message": "" "message": "Rättigheterna sparade"
}, },
"error": { "error": {
"title": "", "title": "Rättigheterna ej sparade",
"message": "" "message": "Rättigheterna har inte sparats"
} }
} }
}, },
"update": { "update": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "Gruppen {name} har sparats"
}, },
"error": { "error": {
"message": "" "message": "Kunde inte spara gruppen {name}"
} }
} }
}, },
"select": { "select": {
"label": "Välj en grupp", "label": "Välj en grupp",
"notFound": "" "notFound": "Ingen grupp hittad"
}, },
"settings": { "settings": {
"board": { "board": {
"notification": { "notification": {
"success": { "success": {
"title": "Inställningarna sparades", "title": "Inställningarna sparades",
"message": "" "message": "Inställningarna för tavlan har sparats"
}, },
"error": { "error": {
"title": "Kunde inte spara inställningarna", "title": "Kunde inte spara inställningarna",
"message": "" "message": "Kunde inte spara inställningarna för tavlan"
} }
} }
} }
@@ -540,10 +540,10 @@
"changePosition": { "changePosition": {
"notification": { "notification": {
"success": { "success": {
"message": "" "message": "Ordning ändrad"
}, },
"error": { "error": {
"message": "" "message": "Ordningen kunde ändras"
} }
} }
} }
@@ -559,20 +559,20 @@
"list": { "list": {
"title": "Applikationer", "title": "Applikationer",
"noResults": { "noResults": {
"title": "", "title": "Det finns inga appar ännu",
"action": "" "action": "Skapa din första app"
} }
}, },
"create": { "create": {
"title": "Addera applikation", "title": "Addera applikation",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Skapandet lyckades",
"message": "" "message": "Appen skapades framgångsrikt"
}, },
"error": { "error": {
"title": "", "title": "Skapandet misslyckades",
"message": "" "message": "Appen kunde inte skapas"
} }
} }
}, },
@@ -581,11 +581,11 @@
"notification": { "notification": {
"success": { "success": {
"title": "Ändringarna har sparats", "title": "Ändringarna har sparats",
"message": "" "message": "Appen sparades"
}, },
"error": { "error": {
"title": "Misslyckades med att spara ändringarna", "title": "Misslyckades med att spara ändringarna",
"message": "" "message": "Appen kunde inte sparas"
} }
} }
}, },
@@ -594,12 +594,12 @@
"message": "Är du säker på att du vill ta bort applikationen {name}?", "message": "Är du säker på att du vill ta bort applikationen {name}?",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Borttagning lyckades",
"message": "" "message": "Appen har tagits bort"
}, },
"error": { "error": {
"title": "", "title": "Borttagning misslyckades",
"message": "" "message": "Kunde inte ta bort appen"
} }
} }
} }
@@ -612,21 +612,21 @@
"label": "Beskrivning" "label": "Beskrivning"
}, },
"url": { "url": {
"label": "" "label": "URL"
}, },
"useDifferentUrlForPing": { "useDifferentUrlForPing": {
"checkbox": { "checkbox": {
"label": "", "label": "Använd annan URL för ping",
"description": "" "description": "Användbart om Homarr kan komma åt appen direkt via ett internt host-namn eller nätverk för att undvika bandbreddsanvändning hos internetleverantör"
} }
} }
}, },
"action": { "action": {
"select": { "select": {
"label": "", "label": "Välj app",
"notFound": "", "notFound": "Ingen app hittades",
"search": "Sök efter en applikation", "search": "Sök efter en applikation",
"noResults": "", "noResults": "Inga resultat",
"action": "Välj {app}", "action": "Välj {app}",
"title": "Välj en applikation att lägga till på tavlan" "title": "Välj en applikation att lägga till på tavlan"
}, },
@@ -642,56 +642,56 @@
"page": { "page": {
"list": { "list": {
"title": "Integrationer", "title": "Integrationer",
"search": "", "search": "Sök integrationer",
"noResults": { "noResults": {
"title": "" "title": "Det finns inga integrationer ännu"
} }
}, },
"create": { "create": {
"title": "", "title": "Ny {name} integration",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Skapandet lyckades",
"message": "" "message": "Integrationen har skapats"
}, },
"error": { "error": {
"title": "", "title": "Skapandet misslyckades",
"message": "" "message": "Integrationen kunde inte skapas"
} }
}, },
"app": { "app": {
"option": { "option": {
"existing": { "existing": {
"title": "", "title": "Befintlig",
"label": "" "label": "Välj befintlig app"
}, },
"new": { "new": {
"title": "", "title": "Ny",
"url": { "url": {
"label": "", "label": "App URL",
"description": "" "description": "URL:en som appen kommer att öppna när den används från tavlan"
} }
} }
} }
} }
}, },
"edit": { "edit": {
"title": "", "title": "Redigera {name} integration",
"notification": { "notification": {
"success": { "success": {
"title": "Ändringarna har sparats", "title": "Ändringarna har sparats",
"message": "" "message": "Integrationen sparad"
}, },
"error": { "error": {
"title": "", "title": "Kunde inte tillämpa ändringar",
"message": "" "message": "Integrationen kunde inte sparas"
} }
}, },
"app": { "app": {
"action": { "action": {
"add": "", "add": "Länka en app",
"remove": "", "remove": "Ta bort länk",
"select": "" "select": "Välj en app att länka till"
} }
} }
}, },
@@ -700,12 +700,12 @@
"message": "Är du säker på att du vill ta bort integrationen {name}?", "message": "Är du säker på att du vill ta bort integrationen {name}?",
"notification": { "notification": {
"success": { "success": {
"title": "", "title": "Borttagning lyckades",
"message": "" "message": "Integrationen har tagits bort"
}, },
"error": { "error": {
"title": "", "title": "Borttagning misslyckades",
"message": "" "message": "Kunde inte ta bort integrationen"
} }
} }
} }
@@ -715,44 +715,44 @@
"label": "Namn" "label": "Namn"
}, },
"url": { "url": {
"label": "" "label": "URL"
}, },
"attemptSearchEngineCreation": { "attemptSearchEngineCreation": {
"label": "", "label": "Skapa sökmotor",
"description": "" "description": "Integrationen \"{kind}\" kan inte användas med sökmotorer. Markera detta för att automatiskt konfigurera sökmotorn."
}, },
"app": { "app": {
"sectionTitle": "" "sectionTitle": "Länkad app"
}, },
"createApp": { "createApp": {
"label": "", "label": "Skapa app",
"description": "" "description": "Skapa en app med samma namn och ikon som integrationen. Lämna fältet nedan tomt för att skapa en app med integrationens URL."
}, },
"appHref": { "appHref": {
"placeholder": "" "placeholder": "Egen app-URL"
} }
}, },
"action": { "action": {
"create": "" "create": "Ny integration"
}, },
"testConnection": { "testConnection": {
"action": { "action": {
"create": "", "create": "Testa anslutningen och skapa",
"edit": "" "edit": "Testa anslutningen och skapa"
}, },
"error": { "error": {
"common": { "common": {
"cause": { "cause": {
"title": "" "title": "Orsak med mer detaljer"
} }
}, },
"unknown": { "unknown": {
"title": "", "title": "Okänt fel",
"description": "" "description": "Ett okänt fel inträffade, öppna orsaken nedan för att se mer detaljer"
}, },
"parse": { "parse": {
"title": "", "title": "Parsningsfel",
"description": "" "description": "Svaret kunde inte analyseras. Verifiera att URL pekar på bas-URL för tjänsten."
}, },
"authorization": { "authorization": {
"title": "", "title": "",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Försök igen", "tryAgain": "Försök igen",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Ändra position" "changePosition": "Ändra position",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Den här tavlan är offentlig", "public": "Den här tavlan är offentlig",
"private": "Den här tavlan är privat" "private": "Den här tavlan är privat"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Şifre", "label": "Şifre",
"requirement": { "suggestion": {
"length": "En az 8 karakter içermeli", "length": "En az 8 karakter içermeli",
"lowercase": "Küçük harf içermeli", "lowercase": "Küçük harf içermeli",
"uppercase": "Büyük harf içermeli", "uppercase": "Büyük harf içermeli",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Medyayı aç" "label": "Medyayı aç"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Dökümanlara göz at", "checkoutDocs": "Dökümanlara göz at",
"checkLogs": "Daha fazla ayrıntı için günlükleri kontrol edin", "checkLogs": "Daha fazla ayrıntı için günlükleri kontrol edin",
"tryAgain": "Tekrar Deneyin", "tryAgain": "Tekrar Deneyin",
"loading": "Yükleniyor" "loading": "Yükleniyor",
"show": "",
"hide": ""
}, },
"here": "buraya", "here": "buraya",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Yeni Kategori", "create": "Yeni Kategori",
"changePosition": "Pozisyonu değiştir" "changePosition": "Pozisyonu değiştir",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Bu panel herkese açıktır", "public": "Bu panel herkese açıktır",
"private": "Bu panel özeldir" "private": "Bu panel özeldir"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Пароль", "label": "Пароль",
"requirement": { "suggestion": {
"length": "Включає принаймні 8 символів", "length": "Включає принаймні 8 символів",
"lowercase": "Включає малу літеру", "lowercase": "Включає малу літеру",
"uppercase": "Включає велику літеру", "uppercase": "Включає велику літеру",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "Відкрити медіа" "label": "Відкрити медіа"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "Переглянути документацію", "checkoutDocs": "Переглянути документацію",
"checkLogs": "Щоб дізнатися більше, перевірте логи", "checkLogs": "Щоб дізнатися більше, перевірте логи",
"tryAgain": "Повторіть спробу", "tryAgain": "Повторіть спробу",
"loading": "Завантаження" "loading": "Завантаження",
"show": "",
"hide": ""
}, },
"here": "тут", "here": "тут",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "Нова категорія", "create": "Нова категорія",
"changePosition": "Змінити положення" "changePosition": "Змінити положення",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "Ця дошка є публічною", "public": "Ця дошка є публічною",
"private": "Ця дошка є приватною" "private": "Ця дошка є приватною"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "Mật khẩu", "label": "Mật khẩu",
"requirement": { "suggestion": {
"length": "Bao gồm ít nhất 8 kí tự", "length": "Bao gồm ít nhất 8 kí tự",
"lowercase": "Bao gồm chữ thường", "lowercase": "Bao gồm chữ thường",
"uppercase": "Bao gồm chữ in hoa", "uppercase": "Bao gồm chữ in hoa",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "" "label": ""
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "", "checkoutDocs": "",
"checkLogs": "", "checkLogs": "",
"tryAgain": "Thử lại", "tryAgain": "Thử lại",
"loading": "" "loading": "",
"show": "",
"hide": ""
}, },
"here": "", "here": "",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "", "create": "",
"changePosition": "Đổi vị trí" "changePosition": "Đổi vị trí",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "", "public": "",
"private": "" "private": ""
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+12 -3
View File
@@ -132,7 +132,7 @@
}, },
"password": { "password": {
"label": "密碼", "label": "密碼",
"requirement": { "suggestion": {
"length": "至少包含 8 個字符", "length": "至少包含 8 個字符",
"lowercase": "包含小寫字母", "lowercase": "包含小寫字母",
"uppercase": "包含大寫字母", "uppercase": "包含大寫字母",
@@ -1054,6 +1054,9 @@
"open": { "open": {
"label": "開啟多媒體" "label": "開啟多媒體"
} }
},
"noResults": {
"title": ""
} }
}, },
"common": { "common": {
@@ -1084,7 +1087,9 @@
"checkoutDocs": "查閱說明書", "checkoutDocs": "查閱說明書",
"checkLogs": "檢查 Logs 以取得更多詳情", "checkLogs": "檢查 Logs 以取得更多詳情",
"tryAgain": "重試", "tryAgain": "重試",
"loading": "正在讀取" "loading": "正在讀取",
"show": "",
"hide": ""
}, },
"here": "此處", "here": "此處",
"iconPicker": { "iconPicker": {
@@ -1249,7 +1254,8 @@
"menu": { "menu": {
"label": { "label": {
"create": "創建分類", "create": "創建分類",
"changePosition": "變更位置" "changePosition": "變更位置",
"settings": ""
} }
}, },
"openAllInNewTabs": { "openAllInNewTabs": {
@@ -3452,6 +3458,9 @@
"public": "此面板是公開的", "public": "此面板是公開的",
"private": "此面板是私人的" "private": "此面板是私人的"
}, },
"noResults": {
"title": ""
},
"modal": { "modal": {
"createBoard": { "createBoard": {
"field": { "field": {
+1 -1
View File
@@ -19,7 +19,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf .turbo node_modules", "clean": "rm -rf .turbo node_modules",
"format": "oxfmt --check .", "format": "oxfmt .",
"lint": "oxlint", "lint": "oxlint",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
@@ -20,15 +20,15 @@ export const CustomPasswordInput = ({ withPasswordRequirements, ...props }: Cust
}; };
const WithPasswordRequirements = (props: PasswordInputProps) => { const WithPasswordRequirements = (props: PasswordInputProps) => {
const [value, setValue] = useState(""); const [password, setPassword] = useState("");
const onChange = (event: ChangeEvent<HTMLInputElement>) => { const onChange = (event: ChangeEvent<HTMLInputElement>) => {
setValue(event.currentTarget.value); setPassword(event.currentTarget.value);
props.onChange?.(event); props.onChange?.(event);
}; };
return ( return (
<PasswordRequirementsPopover password={value}> <PasswordRequirementsPopover password={password}>
<PasswordInput {...props} onChange={onChange} /> <PasswordInput {...props} onChange={onChange} />
</PasswordRequirementsPopover> </PasswordRequirementsPopover>
); );
@@ -1,14 +1,19 @@
import { rem, Text } from "@mantine/core"; import { rem, Text } from "@mantine/core";
import { IconCheck, IconX } from "@tabler/icons-react"; import { IconCheck, IconPoint } from "@tabler/icons-react";
const getRequirementDisplay = (meets: boolean) =>
({
true: { color: "teal", Icon: IconCheck },
false: { color: "dimmed", Icon: IconPoint },
})[String(meets) as "true" | "false"];
export function PasswordRequirement({ meets, label }: { meets: boolean; label: string }) { export function PasswordRequirement({ meets, label }: { meets: boolean; label: string }) {
const display = getRequirementDisplay(meets);
const Icon = display.Icon;
return ( return (
<Text c={meets ? "teal" : "red"} display="flex" style={{ alignItems: "center" }} size="sm"> <Text c={display.color} display="flex" style={{ alignItems: "center" }} size="sm">
{meets ? ( <Icon style={{ width: rem(14), height: rem(14) }} />
<IconCheck style={{ width: rem(14), height: rem(14) }} />
) : (
<IconX style={{ width: rem(14), height: rem(14) }} />
)}
<Text span ml={10}> <Text span ml={10}>
{label} {label}
</Text> </Text>
@@ -1,16 +1,24 @@
import type { PropsWithChildren } from "react"; import type { PropsWithChildren } from "react";
import { useState } from "react"; import { useState } from "react";
import { Popover, Progress } from "@mantine/core"; import { Popover, Progress, Text } from "@mantine/core";
import { useScopedI18n } from "@homarr/translation/client"; import { useScopedI18n } from "@homarr/translation/client";
import { passwordRequirements } from "@homarr/validation/user"; import { passwordRequirements } from "@homarr/validation/user";
import { PasswordRequirement } from "./password-requirement"; import { PasswordRequirement } from "./password-requirement";
const strengthColorMap = [
{ min: 100, color: "teal" },
{ min: 51, color: "yellow" },
{ min: 0, color: "dimmed" },
] as const;
export const PasswordRequirementsPopover = ({ password, children }: PropsWithChildren<{ password: string }>) => { export const PasswordRequirementsPopover = ({ password, children }: PropsWithChildren<{ password: string }>) => {
const tPassword = useScopedI18n("user.field.password");
const requirements = useRequirements(); const requirements = useRequirements();
const strength = useStrength(password); const strength = useStrength(password);
const [popoverOpened, setPopoverOpened] = useState(false); const [popoverOpened, setPopoverOpened] = useState(false);
const strengthColor = strengthColorMap.find(({ min }) => strength >= min)?.color ?? "dimmed";
const checks = ( const checks = (
<> <>
{requirements.map((requirement) => ( {requirements.map((requirement) => (
@@ -19,8 +27,6 @@ export const PasswordRequirementsPopover = ({ password, children }: PropsWithChi
</> </>
); );
const color = strength === 100 ? "teal" : strength > 50 ? "yellow" : "red";
return ( return (
<Popover opened={popoverOpened} position="bottom" width="target" transitionProps={{ transition: "pop" }}> <Popover opened={popoverOpened} position="bottom" width="target" transitionProps={{ transition: "pop" }}>
<Popover.Target> <Popover.Target>
@@ -29,7 +35,10 @@ export const PasswordRequirementsPopover = ({ password, children }: PropsWithChi
</div> </div>
</Popover.Target> </Popover.Target>
<Popover.Dropdown> <Popover.Dropdown>
<Progress color={color} value={strength} size={5} mb="xs" /> <Progress color={strengthColor} value={strength} size={5} mb="xs" />
<Text size="sm" c="dimmed" mb="xs">
{tPassword("suggestionsTitle")}
</Text>
{checks} {checks}
</Popover.Dropdown> </Popover.Dropdown>
</Popover> </Popover>
@@ -37,7 +46,7 @@ export const PasswordRequirementsPopover = ({ password, children }: PropsWithChi
}; };
const useRequirements = () => { const useRequirements = () => {
const t = useScopedI18n("user.field.password.requirement"); const t = useScopedI18n("user.field.password.suggestion");
return passwordRequirements.map(({ check, value }) => ({ check, label: t(value) })); return passwordRequirements.map(({ check, value }) => ({ check, label: t(value) }));
}; };
Loaded 100 of 111 files, more files were not shown because too many files have changed in this diff. Show more