chore(release): automatic release v1.29.0
This commit is contained in:
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -31,6 +31,7 @@ body:
|
|||||||
label: Version
|
label: Version
|
||||||
description: What version of Homarr are you running?
|
description: What version of Homarr are you running?
|
||||||
options:
|
options:
|
||||||
|
- 1.28.1
|
||||||
- 1.28.0
|
- 1.28.0
|
||||||
- 1.27.0
|
- 1.27.0
|
||||||
- 1.26.0
|
- 1.26.0
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
"glob": "^11.0.3",
|
"glob": "^11.0.3",
|
||||||
"jotai": "^2.12.5",
|
"jotai": "^2.12.5",
|
||||||
"mantine-react-table": "2.0.0-beta.9",
|
"mantine-react-table": "2.0.0-beta.9",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"postcss-preset-mantine": "^1.18.0",
|
"postcss-preset-mantine": "^1.18.0",
|
||||||
"prismjs": "^1.30.0",
|
"prismjs": "^1.30.0",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
"react-simple-code-editor": "^0.14.1",
|
"react-simple-code-editor": "^0.14.1",
|
||||||
"sass": "^1.89.2",
|
"sass": "^1.89.2",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"swagger-ui-react": "^5.26.2",
|
"swagger-ui-react": "^5.27.0",
|
||||||
"use-deep-compare-effect": "^1.8.1",
|
"use-deep-compare-effect": "^1.8.1",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/chroma-js": "3.1.1",
|
"@types/chroma-js": "3.1.1",
|
||||||
"@types/node": "^22.16.3",
|
"@types/node": "^22.16.4",
|
||||||
"@types/prismjs": "^1.26.5",
|
"@types/prismjs": "^1.26.5",
|
||||||
"@types/react": "19.1.8",
|
"@types/react": "19.1.8",
|
||||||
"@types/react-dom": "19.1.6",
|
"@types/react-dom": "19.1.6",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { Button, Fieldset, Grid, Group, Input, NumberInput, Slider, Stack, Text, TextInput } from "@mantine/core";
|
import { Button, Fieldset, Grid, Group, Input, NumberInput, Slider, Stack, Text, TextInput } from "@mantine/core";
|
||||||
|
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
import { useZodForm } from "@homarr/form";
|
import { useZodForm } from "@homarr/form";
|
||||||
import { useI18n } from "@homarr/translation/client";
|
import { useI18n } from "@homarr/translation/client";
|
||||||
import { boardSaveLayoutsSchema } from "@homarr/validation/board";
|
import { boardSaveLayoutsSchema } from "@homarr/validation/board";
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import { IconAlertTriangle, IconCheck, IconCopy, IconExclamationCircle, IconRepe
|
|||||||
|
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import { useSession } from "@homarr/auth/client";
|
import { useSession } from "@homarr/auth/client";
|
||||||
import { getMantineColor } from "@homarr/common";
|
import { createId, getMantineColor } from "@homarr/common";
|
||||||
import { createId } from "@homarr/db/client";
|
|
||||||
import { createDocumentationLink } from "@homarr/definitions";
|
import { createDocumentationLink } from "@homarr/definitions";
|
||||||
import { createModal, useConfirmModal, useModalAction } from "@homarr/modals";
|
import { createModal, useConfirmModal, useModalAction } from "@homarr/modals";
|
||||||
import { AddCertificateModal } from "@homarr/modals-collection";
|
import { AddCertificateModal } from "@homarr/modals-collection";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { SimpleGrid, Skeleton, Stack, Title } from "@mantine/core";
|
import { SimpleGrid, Skeleton, Stack, Title } from "@mantine/core";
|
||||||
|
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
import type { KubernetesLabelResourceType } from "@homarr/definitions";
|
import type { KubernetesLabelResourceType } from "@homarr/definitions";
|
||||||
import { useI18n } from "@homarr/translation/client";
|
import { useI18n } from "@homarr/translation/client";
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { MantineReactTable } from "mantine-react-table";
|
|||||||
|
|
||||||
import type { RouterOutputs } from "@homarr/api";
|
import type { RouterOutputs } from "@homarr/api";
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
import type { KubernetesIngress } from "@homarr/definitions";
|
import type { KubernetesIngress } from "@homarr/definitions";
|
||||||
import type { ScopedTranslationFunction } from "@homarr/translation";
|
import type { ScopedTranslationFunction } from "@homarr/translation";
|
||||||
import { useScopedI18n } from "@homarr/translation/client";
|
import { useScopedI18n } from "@homarr/translation/client";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { MantineReactTable } from "mantine-react-table";
|
|||||||
|
|
||||||
import type { RouterOutputs } from "@homarr/api";
|
import type { RouterOutputs } from "@homarr/api";
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
import type { KubernetesService } from "@homarr/definitions";
|
import type { KubernetesService } from "@homarr/definitions";
|
||||||
import type { ScopedTranslationFunction } from "@homarr/translation";
|
import type { ScopedTranslationFunction } from "@homarr/translation";
|
||||||
import { useScopedI18n } from "@homarr/translation/client";
|
import { useScopedI18n } from "@homarr/translation/client";
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Select } from "@mantine/core";
|
||||||
|
|
||||||
|
import type { LogLevel } from "@homarr/log/constants";
|
||||||
|
import { logLevelConfiguration, logLevels } from "@homarr/log/constants";
|
||||||
|
import { useI18n } from "@homarr/translation/client";
|
||||||
|
|
||||||
|
import { useLogContext } from "./log-context";
|
||||||
|
|
||||||
|
export const LogLevelSelection = () => {
|
||||||
|
const { level, setLevel } = useLogContext();
|
||||||
|
const t = useI18n();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Select
|
||||||
|
data={logLevels.map((level) => ({
|
||||||
|
value: level,
|
||||||
|
label: `${logLevelConfiguration[level].prefix} ${t(`log.level.option.${level}`)}`,
|
||||||
|
}))}
|
||||||
|
value={level}
|
||||||
|
onChange={(value) => setLevel(value as LogLevel)}
|
||||||
|
checkIconPosition="right"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import type { PropsWithChildren } from "react";
|
||||||
|
import { createContext, useContext, useMemo, useState } from "react";
|
||||||
|
|
||||||
|
import type { LogLevel } from "@homarr/log/constants";
|
||||||
|
import { logLevels } from "@homarr/log/constants";
|
||||||
|
|
||||||
|
const LogContext = createContext<{
|
||||||
|
level: LogLevel;
|
||||||
|
setLevel: (level: LogLevel) => void;
|
||||||
|
activeLevels: LogLevel[];
|
||||||
|
} | null>(null);
|
||||||
|
|
||||||
|
interface LogContextProviderProps extends PropsWithChildren {
|
||||||
|
defaultLevel: LogLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const LogContextProvider = ({ defaultLevel, children }: LogContextProviderProps) => {
|
||||||
|
const [level, setLevel] = useState(defaultLevel);
|
||||||
|
const activeLevels = useMemo(() => logLevels.slice(0, logLevels.indexOf(level) + 1), [level]);
|
||||||
|
|
||||||
|
return <LogContext.Provider value={{ level, setLevel, activeLevels }}>{children}</LogContext.Provider>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const useLogContext = () => {
|
||||||
|
const context = useContext(LogContext);
|
||||||
|
if (!context) {
|
||||||
|
throw new Error("useLogContext must be used within a LogContextProvider");
|
||||||
|
}
|
||||||
|
return context;
|
||||||
|
};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Box } from "@mantine/core";
|
import { Box, Group } from "@mantine/core";
|
||||||
|
|
||||||
import { getScopedI18n } from "@homarr/translation/server";
|
import { getScopedI18n } from "@homarr/translation/server";
|
||||||
|
|
||||||
@@ -7,11 +7,14 @@ import "@xterm/xterm/css/xterm.css";
|
|||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
|
|
||||||
import { auth } from "@homarr/auth/next";
|
import { auth } from "@homarr/auth/next";
|
||||||
|
import { env } from "@homarr/log/env";
|
||||||
|
|
||||||
import { DynamicBreadcrumb } from "~/components/navigation/dynamic-breadcrumb";
|
import { DynamicBreadcrumb } from "~/components/navigation/dynamic-breadcrumb";
|
||||||
import { fullHeightWithoutHeaderAndFooter } from "~/constants";
|
import { fullHeightWithoutHeaderAndFooter } from "~/constants";
|
||||||
import { createMetaTitle } from "~/metadata";
|
import { createMetaTitle } from "~/metadata";
|
||||||
import { ClientSideTerminalComponent } from "./client";
|
import { ClientSideTerminalComponent } from "./client";
|
||||||
|
import { LogLevelSelection } from "./level-selection";
|
||||||
|
import { LogContextProvider } from "./log-context";
|
||||||
|
|
||||||
export async function generateMetadata() {
|
export async function generateMetadata() {
|
||||||
const session = await auth();
|
const session = await auth();
|
||||||
@@ -32,11 +35,14 @@ export default async function LogsManagementPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<LogContextProvider defaultLevel={env.LOG_LEVEL}>
|
||||||
<DynamicBreadcrumb />
|
<Group justify="space-between" align="center" wrap="nowrap">
|
||||||
|
<DynamicBreadcrumb />
|
||||||
|
<LogLevelSelection />
|
||||||
|
</Group>
|
||||||
<Box style={{ borderRadius: 6 }} h={fullHeightWithoutHeaderAndFooter} p="md" bg="black">
|
<Box style={{ borderRadius: 6 }} h={fullHeightWithoutHeaderAndFooter} p="md" bg="black">
|
||||||
<ClientSideTerminalComponent />
|
<ClientSideTerminalComponent />
|
||||||
</Box>
|
</Box>
|
||||||
</>
|
</LogContextProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,22 +8,29 @@ import { Terminal } from "@xterm/xterm";
|
|||||||
|
|
||||||
import { clientApi } from "@homarr/api/client";
|
import { clientApi } from "@homarr/api/client";
|
||||||
|
|
||||||
|
import { useLogContext } from "./log-context";
|
||||||
import classes from "./terminal.module.css";
|
import classes from "./terminal.module.css";
|
||||||
|
|
||||||
export const TerminalComponent = () => {
|
export const TerminalComponent = () => {
|
||||||
const ref = useRef<HTMLDivElement>(null);
|
const ref = useRef<HTMLDivElement>(null);
|
||||||
|
const { activeLevels } = useLogContext();
|
||||||
|
|
||||||
const terminalRef = useRef<Terminal>(null);
|
const terminalRef = useRef<Terminal>(null);
|
||||||
clientApi.log.subscribe.useSubscription(undefined, {
|
clientApi.log.subscribe.useSubscription(
|
||||||
onData(data) {
|
{
|
||||||
terminalRef.current?.writeln(`${data.timestamp} ${data.level} ${data.message}`);
|
levels: activeLevels,
|
||||||
terminalRef.current?.refresh(0, terminalRef.current.rows - 1);
|
|
||||||
},
|
},
|
||||||
onError(err) {
|
{
|
||||||
// This makes sense as logging might cause an infinite loop
|
onData(data) {
|
||||||
alert(err);
|
terminalRef.current?.writeln(data.message);
|
||||||
|
terminalRef.current?.refresh(0, terminalRef.current.rows - 1);
|
||||||
|
},
|
||||||
|
onError(err) {
|
||||||
|
// This makes sense as logging might cause an infinite loop
|
||||||
|
alert(err);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!ref.current) {
|
if (!ref.current) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { getBoardLayouts } from "@homarr/boards/context";
|
import { getBoardLayouts } from "@homarr/boards/context";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Modify } from "@homarr/common/types";
|
import type { Modify } from "@homarr/common/types";
|
||||||
import { createId } from "@homarr/db/client";
|
|
||||||
import type { WidgetKind } from "@homarr/definitions";
|
import type { WidgetKind } from "@homarr/definitions";
|
||||||
|
|
||||||
import type { Board, EmptySection, Item, ItemLayout } from "~/app/[locale]/boards/_types";
|
import type { Board, EmptySection, Item, ItemLayout } from "~/app/[locale]/boards/_types";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { Board, EmptySection, ItemLayout, Section } from "~/app/[locale]/boards/_types";
|
import type { Board, EmptySection, ItemLayout, Section } from "~/app/[locale]/boards/_types";
|
||||||
import { getFirstEmptyPosition } from "./empty-position";
|
import { getFirstEmptyPosition } from "./empty-position";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { Board, DynamicSection, EmptySection, Item, Section } from "~/app/[locale]/boards/_types";
|
import type { Board, DynamicSection, EmptySection, Item, Section } from "~/app/[locale]/boards/_types";
|
||||||
import { DynamicSectionMockBuilder } from "./dynamic-section-mock";
|
import { DynamicSectionMockBuilder } from "./dynamic-section-mock";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { CategorySection } from "~/app/[locale]/boards/_types";
|
import type { CategorySection } from "~/app/[locale]/boards/_types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { DynamicSection } from "~/app/[locale]/boards/_types";
|
import type { DynamicSection } from "~/app/[locale]/boards/_types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { EmptySection } from "~/app/[locale]/boards/_types";
|
import type { EmptySection } from "~/app/[locale]/boards/_types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { Item } from "~/app/[locale]/boards/_types";
|
import type { Item } from "~/app/[locale]/boards/_types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { Board } from "~/app/[locale]/boards/_types";
|
import type { Board } from "~/app/[locale]/boards/_types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
|
|
||||||
import { useUpdateBoard } from "@homarr/boards/updater";
|
import { useUpdateBoard } from "@homarr/boards/updater";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { CategorySection, EmptySection, Section } from "~/app/[locale]/boards/_types";
|
import type { CategorySection, EmptySection, Section } from "~/app/[locale]/boards/_types";
|
||||||
import type { MoveCategoryInput } from "./actions/move-category";
|
import type { MoveCategoryInput } from "./actions/move-category";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useCallback } from "react";
|
|||||||
|
|
||||||
import { fetchApi } from "@homarr/api/client";
|
import { fetchApi } from "@homarr/api/client";
|
||||||
import { getCurrentLayout, useRequiredBoard } from "@homarr/boards/context";
|
import { getCurrentLayout, useRequiredBoard } from "@homarr/boards/context";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
import { useConfirmModal, useModalAction } from "@homarr/modals";
|
import { useConfirmModal, useModalAction } from "@homarr/modals";
|
||||||
import { useSettings } from "@homarr/settings";
|
import { useSettings } from "@homarr/settings";
|
||||||
import { useI18n } from "@homarr/translation/client";
|
import { useI18n } from "@homarr/translation/client";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { getBoardLayouts } from "@homarr/boards/context";
|
import { getBoardLayouts } from "@homarr/boards/context";
|
||||||
import { createId } from "@homarr/db/client";
|
import { createId } from "@homarr/common";
|
||||||
|
|
||||||
import type { Board, DynamicSection, DynamicSectionLayout, EmptySection } from "~/app/[locale]/boards/_types";
|
import type { Board, DynamicSection, DynamicSectionLayout, EmptySection } from "~/app/[locale]/boards/_types";
|
||||||
import { getFirstEmptyPosition } from "~/components/board/items/actions/empty-position";
|
import { getFirstEmptyPosition } from "~/components/board/items/actions/empty-position";
|
||||||
|
|||||||
@@ -38,13 +38,13 @@
|
|||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
"fastify": "^5.4.0",
|
"fastify": "^5.4.0",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"undici": "7.11.0"
|
"undici": "7.12.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node": "^22.16.3",
|
"@types/node": "^22.16.4",
|
||||||
"dotenv-cli": "^8.0.0",
|
"dotenv-cli": "^8.0.0",
|
||||||
"esbuild": "^0.25.6",
|
"esbuild": "^0.25.6",
|
||||||
"eslint": "^9.31.0",
|
"eslint": "^9.31.0",
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -38,8 +38,8 @@
|
|||||||
"@semantic-release/github": "^11.0.3",
|
"@semantic-release/github": "^11.0.3",
|
||||||
"@semantic-release/npm": "^12.0.2",
|
"@semantic-release/npm": "^12.0.2",
|
||||||
"@semantic-release/release-notes-generator": "^14.0.3",
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
||||||
"@turbo/gen": "^2.5.4",
|
"@turbo/gen": "^2.5.5",
|
||||||
"@vitejs/plugin-react": "^4.6.0",
|
"@vitejs/plugin-react": "^4.7.0",
|
||||||
"@vitest/coverage-v8": "^3.2.4",
|
"@vitest/coverage-v8": "^3.2.4",
|
||||||
"@vitest/ui": "^3.2.4",
|
"@vitest/ui": "^3.2.4",
|
||||||
"conventional-changelog-conventionalcommits": "^9.1.0",
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
||||||
@@ -48,14 +48,14 @@
|
|||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"semantic-release": "^24.2.7",
|
"semantic-release": "^24.2.7",
|
||||||
"testcontainers": "^11.2.1",
|
"testcontainers": "^11.2.1",
|
||||||
"turbo": "^2.5.4",
|
"turbo": "^2.5.5",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite-tsconfig-paths": "^5.1.4",
|
"vite-tsconfig-paths": "^5.1.4",
|
||||||
"vitest": "^3.2.4"
|
"vitest": "^3.2.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.13.1",
|
"packageManager": "pnpm@10.13.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.17.0"
|
"node": ">=22.17.1"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"tree-sitter-json"
|
"tree-sitter-json"
|
||||||
],
|
],
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"proxmox-api>undici": "7.11.0"
|
"proxmox-api>undici": "7.12.0"
|
||||||
},
|
},
|
||||||
"allowUnusedPatches": true,
|
"allowUnusedPatches": true,
|
||||||
"ignoredBuiltDependencies": [
|
"ignoredBuiltDependencies": [
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
"@trpc/server": "^11.4.3",
|
"@trpc/server": "^11.4.3",
|
||||||
"@trpc/tanstack-react-query": "^11.4.3",
|
"@trpc/tanstack-react-query": "^11.4.3",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import { generateSecureRandomToken } from "@homarr/common/server";
|
import { generateSecureRandomToken } from "@homarr/common/server";
|
||||||
import { createId, db, eq } from "@homarr/db";
|
import { db, eq } from "@homarr/db";
|
||||||
import { apiKeys } from "@homarr/db/schema";
|
import { apiKeys } from "@homarr/db/schema";
|
||||||
|
|
||||||
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { asc, createId, eq, inArray, like } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { asc, eq, inArray, like } from "@homarr/db";
|
||||||
import { apps } from "@homarr/db/schema";
|
import { apps } from "@homarr/db/schema";
|
||||||
import { selectAppSchema } from "@homarr/db/validationSchemas";
|
import { selectAppSchema } from "@homarr/db/validationSchemas";
|
||||||
import { getIconForName } from "@homarr/icons";
|
import { getIconForName } from "@homarr/icons";
|
||||||
|
|||||||
@@ -3,9 +3,10 @@ import superjson from "superjson";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { constructBoardPermissions } from "@homarr/auth/shared";
|
import { constructBoardPermissions } from "@homarr/auth/shared";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { DeviceType } from "@homarr/common/server";
|
import type { DeviceType } from "@homarr/common/server";
|
||||||
import type { Database, InferInsertModel, InferSelectModel, SQL } from "@homarr/db";
|
import type { Database, InferInsertModel, InferSelectModel, SQL } from "@homarr/db";
|
||||||
import { and, asc, createId, eq, handleTransactionsAsync, inArray, isNull, like, not, or, sql } from "@homarr/db";
|
import { and, asc, eq, handleTransactionsAsync, inArray, isNull, like, not, or, sql } from "@homarr/db";
|
||||||
import { createDbInsertCollectionWithoutTransaction } from "@homarr/db/collection";
|
import { createDbInsertCollectionWithoutTransaction } from "@homarr/db/collection";
|
||||||
import { getServerSettingByKeyAsync } from "@homarr/db/queries";
|
import { getServerSettingByKeyAsync } from "@homarr/db/queries";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { and, createId, eq, handleTransactionsAsync, like, not } from "@homarr/db";
|
import { and, eq, handleTransactionsAsync, like, not } from "@homarr/db";
|
||||||
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
||||||
import { groupMembers, groupPermissions, groups } from "@homarr/db/schema";
|
import { groupMembers, groupPermissions, groups } from "@homarr/db/schema";
|
||||||
import { everyoneGroup } from "@homarr/definitions";
|
import { everyoneGroup } from "@homarr/definitions";
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { objectEntries } from "@homarr/common";
|
import { createId, objectEntries } from "@homarr/common";
|
||||||
import { decryptSecret, encryptSecret } from "@homarr/common/server";
|
import { decryptSecret, encryptSecret } from "@homarr/common/server";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { and, asc, createId, eq, handleTransactionsAsync, inArray, like } from "@homarr/db";
|
import { and, asc, eq, handleTransactionsAsync, inArray, like } from "@homarr/db";
|
||||||
import {
|
import {
|
||||||
groupMembers,
|
groupMembers,
|
||||||
groupPermissions,
|
groupPermissions,
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import { randomBytes } from "crypto";
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { asc, createId, eq } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { asc, eq } from "@homarr/db";
|
||||||
import { invites } from "@homarr/db/schema";
|
import { invites } from "@homarr/db/schema";
|
||||||
import { selectInviteSchema } from "@homarr/db/validationSchemas";
|
import { selectInviteSchema } from "@homarr/db/validationSchemas";
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,33 @@
|
|||||||
import { observable } from "@trpc/server/observable";
|
import { observable } from "@trpc/server/observable";
|
||||||
|
import z from "zod";
|
||||||
|
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
|
import { logLevels } from "@homarr/log/constants";
|
||||||
import type { LoggerMessage } from "@homarr/redis";
|
import type { LoggerMessage } from "@homarr/redis";
|
||||||
import { loggingChannel } from "@homarr/redis";
|
import { loggingChannel } from "@homarr/redis";
|
||||||
|
import { zodEnumFromArray } from "@homarr/validation/enums";
|
||||||
|
|
||||||
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
||||||
|
|
||||||
export const logRouter = createTRPCRouter({
|
export const logRouter = createTRPCRouter({
|
||||||
subscribe: permissionRequiredProcedure.requiresPermission("other-view-logs").subscription(() => {
|
subscribe: permissionRequiredProcedure
|
||||||
return observable<LoggerMessage>((emit) => {
|
.requiresPermission("other-view-logs")
|
||||||
const unsubscribe = loggingChannel.subscribe((data) => {
|
.input(
|
||||||
emit.next(data);
|
z.object({
|
||||||
});
|
levels: z.array(zodEnumFromArray(logLevels)).default(["info"]),
|
||||||
logger.info("A tRPC client has connected to the logging procedure");
|
}),
|
||||||
|
)
|
||||||
|
.subscription(({ input }) => {
|
||||||
|
return observable<LoggerMessage>((emit) => {
|
||||||
|
const unsubscribe = loggingChannel.subscribe((data) => {
|
||||||
|
if (!input.levels.includes(data.level)) return;
|
||||||
|
emit.next(data);
|
||||||
|
});
|
||||||
|
logger.info("A tRPC client has connected to the logging procedure");
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
unsubscribe();
|
unsubscribe();
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { and, createId, desc, eq, like } from "@homarr/db";
|
import { and, desc, eq, like } from "@homarr/db";
|
||||||
import { iconRepositories, icons, medias } from "@homarr/db/schema";
|
import { iconRepositories, icons, medias } from "@homarr/db/schema";
|
||||||
import { createLocalImageUrl, LOCAL_ICON_REPOSITORY_SLUG, mapMediaToIcon } from "@homarr/icons/local";
|
import { createLocalImageUrl, LOCAL_ICON_REPOSITORY_SLUG, mapMediaToIcon } from "@homarr/icons/local";
|
||||||
import { byIdSchema, paginatedSchema } from "@homarr/validation/common";
|
import { byIdSchema, paginatedSchema } from "@homarr/validation/common";
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { asc, createId, eq, like } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { asc, eq, like } from "@homarr/db";
|
||||||
import { getServerSettingByKeyAsync, updateServerSettingByKeyAsync } from "@homarr/db/queries";
|
import { getServerSettingByKeyAsync, updateServerSettingByKeyAsync } from "@homarr/db/queries";
|
||||||
import { searchEngines, users } from "@homarr/db/schema";
|
import { searchEngines, users } from "@homarr/db/schema";
|
||||||
import { createIntegrationAsync } from "@homarr/integrations";
|
import { createIntegrationAsync } from "@homarr/integrations";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { apps } from "@homarr/db/schema";
|
import { apps } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import type { GroupPermissionKey } from "@homarr/definitions";
|
import type { GroupPermissionKey } from "@homarr/definitions";
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ import SuperJSON from "superjson";
|
|||||||
import { describe, expect, it, test, vi } from "vitest";
|
import { describe, expect, it, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Database, InferInsertModel } from "@homarr/db";
|
import type { Database, InferInsertModel } from "@homarr/db";
|
||||||
import { and, createId, eq, not } from "@homarr/db";
|
import { and, eq, not } from "@homarr/db";
|
||||||
import {
|
import {
|
||||||
boardGroupPermissions,
|
boardGroupPermissions,
|
||||||
boards,
|
boards,
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import * as authShared from "@homarr/auth/shared";
|
import * as authShared from "@homarr/auth/shared";
|
||||||
import { createId, eq } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { eq } from "@homarr/db";
|
||||||
import { boards, users } from "@homarr/db/schema";
|
import { boards, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import { describe, expect, test, vi } from "vitest";
|
|||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
import * as env from "@homarr/auth/env";
|
import * as env from "@homarr/auth/env";
|
||||||
import { createId, eq } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { eq } from "@homarr/db";
|
||||||
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import type { GroupPermissionKey } from "@homarr/definitions";
|
import type { GroupPermissionKey } from "@homarr/definitions";
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import * as authShared from "@homarr/auth/shared";
|
import * as authShared from "@homarr/auth/shared";
|
||||||
import { createId, eq } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
|
import { eq } from "@homarr/db";
|
||||||
import { integrations, users } from "@homarr/db/schema";
|
import { integrations, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import { encryptSecret } from "@homarr/common/server";
|
import { encryptSecret } from "@homarr/common/server";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import { integrations, integrationSecrets } from "@homarr/db/schema";
|
import { integrations, integrationSecrets } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import type { GroupPermissionKey } from "@homarr/definitions";
|
import type { GroupPermissionKey } from "@homarr/definitions";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { invites, users } from "@homarr/db/schema";
|
import { invites, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import SuperJSON from "superjson";
|
|||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { serverSettings } from "@homarr/db/schema";
|
import { serverSettings } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { describe, expect, it, test, vi } from "vitest";
|
import { describe, expect, it, test, vi } from "vitest";
|
||||||
|
|
||||||
import type { Session } from "@homarr/auth";
|
import type { Session } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { createId, eq } from "@homarr/db";
|
import { eq } from "@homarr/db";
|
||||||
import { invites, onboarding, users } from "@homarr/db/schema";
|
import { invites, onboarding, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
import type { GroupPermissionKey, OnboardingStep } from "@homarr/definitions";
|
import type { GroupPermissionKey, OnboardingStep } from "@homarr/definitions";
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ import { TRPCError } from "@trpc/server";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { and, createId, eq, like } from "@homarr/db";
|
import { and, eq, like } from "@homarr/db";
|
||||||
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
||||||
import { boards, groupMembers, groupPermissions, groups, invites, users } from "@homarr/db/schema";
|
import { boards, groupMembers, groupPermissions, groups, invites, users } from "@homarr/db/schema";
|
||||||
import { selectUserSchema } from "@homarr/db/validationSchemas";
|
import { selectUserSchema } from "@homarr/db/validationSchemas";
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"bcrypt": "^6.0.0",
|
"bcrypt": "^6.0.0",
|
||||||
"cookies": "^0.9.1",
|
"cookies": "^0.9.1",
|
||||||
"ldapts": "8.0.5",
|
"ldapts": "8.0.6",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"next-auth": "5.0.0-beta.29",
|
"next-auth": "5.0.0-beta.29",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { Session } from "next-auth";
|
import type { Session } from "next-auth";
|
||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import { boardGroupPermissions, boards, boardUserPermissions, groupMembers, groups, users } from "@homarr/db/schema";
|
import { boardGroupPermissions, boards, boardUserPermissions, groupMembers, groups, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { CredentialsSignin } from "@auth/core/errors";
|
import { CredentialsSignin } from "@auth/core/errors";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { extractErrorMessage } from "@homarr/common";
|
import { createId, extractErrorMessage } from "@homarr/common";
|
||||||
import type { Database, InferInsertModel } from "@homarr/db";
|
import type { Database, InferInsertModel } from "@homarr/db";
|
||||||
import { and, createId, eq } from "@homarr/db";
|
import { and, eq } from "@homarr/db";
|
||||||
import { users } from "@homarr/db/schema";
|
import { users } from "@homarr/db/schema";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import type { userSignInSchema } from "@homarr/validation/user";
|
import type { userSignInSchema } from "@homarr/validation/user";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, test } from "vitest";
|
import { describe, expect, test } from "vitest";
|
||||||
|
|
||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { users } from "@homarr/db/schema";
|
import { users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { CredentialsSignin } from "@auth/core/errors";
|
import { CredentialsSignin } from "@auth/core/errors";
|
||||||
import { describe, expect, test, vi } from "vitest";
|
import { describe, expect, test, vi } from "vitest";
|
||||||
|
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { and, createId, eq } from "@homarr/db";
|
import { and, eq } from "@homarr/db";
|
||||||
import { groups, users } from "@homarr/db/schema";
|
import { groups, users } from "@homarr/db/schema";
|
||||||
import { createDb } from "@homarr/db/test";
|
import { createDb } from "@homarr/db/test";
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"undici": "7.11.0"
|
"undici": "7.12.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { command, string } from "@drizzle-team/brocli";
|
||||||
|
|
||||||
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
import { createSaltAsync, hashPasswordAsync } from "@homarr/auth";
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import { generateSecureRandomToken } from "@homarr/common/server";
|
import { generateSecureRandomToken } from "@homarr/common/server";
|
||||||
import { and, count, createId, db, eq } from "@homarr/db";
|
import { and, count, db, eq } from "@homarr/db";
|
||||||
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
||||||
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
||||||
import { usernameSchema } from "@homarr/validation/user";
|
import { usernameSchema } from "@homarr/validation/user";
|
||||||
|
|||||||
@@ -31,10 +31,10 @@
|
|||||||
"@homarr/log": "workspace:^0.1.0",
|
"@homarr/log": "workspace:^0.1.0",
|
||||||
"@paralleldrive/cuid2": "^2.2.2",
|
"@paralleldrive/cuid2": "^2.2.2",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"undici": "7.11.0",
|
"undici": "7.12.0",
|
||||||
"zod": "^3.25.76",
|
"zod": "^3.25.76",
|
||||||
"zod-validation-error": "^3.5.3"
|
"zod-validation-error": "^3.5.3"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { splitToNChunks, Stopwatch } from "@homarr/common";
|
import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
|
||||||
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
|
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
|
import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db/client";
|
|
||||||
import { iconRepositories, icons } from "@homarr/db/schema";
|
import { iconRepositories, icons } from "@homarr/db/schema";
|
||||||
import { fetchIconsAsync } from "@homarr/icons";
|
import { fetchIconsAsync } from "@homarr/icons";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
export { createId } from "@paralleldrive/cuid2";
|
|
||||||
@@ -9,5 +9,4 @@ export const db = database;
|
|||||||
export type Database = typeof db;
|
export type Database = typeof db;
|
||||||
export type { HomarrDatabaseMysql } from "./driver";
|
export type { HomarrDatabaseMysql } from "./driver";
|
||||||
|
|
||||||
export { createId } from "@paralleldrive/cuid2";
|
|
||||||
export { handleDiffrentDbDriverOperationsAsync as handleTransactionsAsync } from "./transactions";
|
export { handleDiffrentDbDriverOperationsAsync as handleTransactionsAsync } from "./transactions";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { objectKeys } from "@homarr/common";
|
import { createId, objectKeys } from "@homarr/common";
|
||||||
import {
|
import {
|
||||||
createDocumentationLink,
|
createDocumentationLink,
|
||||||
everyoneGroup,
|
everyoneGroup,
|
||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
|
||||||
|
|
||||||
import type { Database } from "..";
|
import type { Database } from "..";
|
||||||
import { createId, eq } from "..";
|
import { eq } from "..";
|
||||||
import {
|
import {
|
||||||
getServerSettingByKeyAsync,
|
getServerSettingByKeyAsync,
|
||||||
insertServerSettingByKeyAsync,
|
insertServerSettingByKeyAsync,
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./index.ts",
|
".": "./index.ts",
|
||||||
"./client": "./client.ts",
|
|
||||||
"./collection": "./collection.ts",
|
"./collection": "./collection.ts",
|
||||||
"./schema": "./schema/index.ts",
|
"./schema": "./schema/index.ts",
|
||||||
"./test": "./test/index.ts",
|
"./test": "./test/index.ts",
|
||||||
@@ -51,7 +50,7 @@
|
|||||||
"better-sqlite3": "^12.2.0",
|
"better-sqlite3": "^12.2.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
"drizzle-kit": "^0.31.4",
|
"drizzle-kit": "^0.31.4",
|
||||||
"drizzle-orm": "^0.44.2",
|
"drizzle-orm": "^0.44.3",
|
||||||
"drizzle-zod": "^0.7.1",
|
"drizzle-zod": "^0.7.1",
|
||||||
"mysql2": "3.14.2",
|
"mysql2": "3.14.2",
|
||||||
"superjson": "2.2.2"
|
"superjson": "2.2.2"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
"octokit": "^5.0.3",
|
"octokit": "^5.0.3",
|
||||||
"proxmox-api": "1.1.1",
|
"proxmox-api": "1.1.1",
|
||||||
"tsdav": "^2.1.5",
|
"tsdav": "^2.1.5",
|
||||||
"undici": "7.11.0",
|
"undici": "7.12.0",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
|
"./constants": "./src/constants.ts",
|
||||||
"./env": "./src/env.ts"
|
"./env": "./src/env.ts"
|
||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
|
|||||||
17
packages/log/src/constants.ts
Normal file
17
packages/log/src/constants.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
export const logLevels = ["error", "warn", "info", "debug"] as const;
|
||||||
|
export type LogLevel = (typeof logLevels)[number];
|
||||||
|
|
||||||
|
export const logLevelConfiguration = {
|
||||||
|
error: {
|
||||||
|
prefix: "🔴",
|
||||||
|
},
|
||||||
|
warn: {
|
||||||
|
prefix: "🟡",
|
||||||
|
},
|
||||||
|
info: {
|
||||||
|
prefix: "🟢",
|
||||||
|
},
|
||||||
|
debug: {
|
||||||
|
prefix: "🔵",
|
||||||
|
},
|
||||||
|
} satisfies Record<LogLevel, { prefix: string }>;
|
||||||
@@ -2,9 +2,11 @@ import { z } from "zod";
|
|||||||
|
|
||||||
import { createEnv } from "@homarr/env";
|
import { createEnv } from "@homarr/env";
|
||||||
|
|
||||||
|
import { logLevels } from "./constants";
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
server: {
|
server: {
|
||||||
LOG_LEVEL: z.enum(["debug", "info", "warn", "error"]).default("info"),
|
LOG_LEVEL: z.enum(logLevels).default("info"),
|
||||||
},
|
},
|
||||||
experimental__runtimeEnv: process.env,
|
experimental__runtimeEnv: process.env,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ const logTransports: Transport[] = [new transports.Console()];
|
|||||||
|
|
||||||
// Only add the Redis transport if we are not in CI
|
// Only add the Redis transport if we are not in CI
|
||||||
if (!(Boolean(process.env.CI) || Boolean(process.env.DISABLE_REDIS_LOGS))) {
|
if (!(Boolean(process.env.CI) || Boolean(process.env.DISABLE_REDIS_LOGS))) {
|
||||||
logTransports.push(new RedisTransport());
|
logTransports.push(
|
||||||
|
new RedisTransport({
|
||||||
|
level: "debug",
|
||||||
|
}),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const logger = winston.createLogger({
|
const logger = winston.createLogger({
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ import { Redis } from "ioredis";
|
|||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
import Transport from "winston-transport";
|
import Transport from "winston-transport";
|
||||||
|
|
||||||
|
const messageSymbol = Symbol.for("message");
|
||||||
|
const levelSymbol = Symbol.for("level");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Inherit from `winston-transport` so you can take advantage
|
// Inherit from `winston-transport` so you can take advantage
|
||||||
// of the base functionality and `.exceptions.handle()`.
|
// of the base functionality and `.exceptions.handle()`.
|
||||||
@@ -12,7 +15,7 @@ export class RedisTransport extends Transport {
|
|||||||
/**
|
/**
|
||||||
* Log the info to the Redis channel
|
* Log the info to the Redis channel
|
||||||
*/
|
*/
|
||||||
log(info: { message: string; timestamp: string; level: string }, callback: () => void) {
|
log(info: { [messageSymbol]: string; [levelSymbol]: string }, callback: () => void) {
|
||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
this.emit("logged", info);
|
this.emit("logged", info);
|
||||||
});
|
});
|
||||||
@@ -24,9 +27,8 @@ export class RedisTransport extends Transport {
|
|||||||
.publish(
|
.publish(
|
||||||
"pubSub:logging",
|
"pubSub:logging",
|
||||||
superjson.stringify({
|
superjson.stringify({
|
||||||
message: info.message,
|
message: info[messageSymbol],
|
||||||
timestamp: info.timestamp,
|
level: info[levelSymbol],
|
||||||
level: info.level,
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
"@mantine/core": "^8.1.3",
|
"@mantine/core": "^8.1.3",
|
||||||
"@tabler/icons-react": "^3.34.0",
|
"@tabler/icons-react": "^3.34.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"@mantine/core": "^8.1.3",
|
"@mantine/core": "^8.1.3",
|
||||||
"@mantine/hooks": "^8.1.3",
|
"@mantine/hooks": "^8.1.3",
|
||||||
"adm-zip": "0.5.16",
|
"adm-zip": "0.5.16",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import type { OldmarrConfig } from "@homarr/old-schema";
|
import type { OldmarrConfig } from "@homarr/old-schema";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import type { Database } from "@homarr/db";
|
import type { Database } from "@homarr/db";
|
||||||
import { sections } from "@homarr/db/schema";
|
import { sections } from "@homarr/db/schema";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
|
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import type { BoardSize, OldmarrConfig } from "@homarr/old-schema";
|
import type { BoardSize, OldmarrConfig } from "@homarr/old-schema";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createId } from "@homarr/db";
|
import { createId } from "@homarr/common";
|
||||||
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
|
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
|
||||||
import { credentialsAdminGroup } from "@homarr/definitions";
|
import { credentialsAdminGroup } from "@homarr/definitions";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { boards } from "@homarr/db/schema";
|
import type { boards } from "@homarr/db/schema";
|
||||||
|
|
||||||
import type { prepareMultipleImports } from "../prepare/prepare-multiple";
|
import type { prepareMultipleImports } from "../prepare/prepare-multiple";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { createId } from "@homarr/common";
|
||||||
import { decryptSecretWithKey } from "@homarr/common/server";
|
import { decryptSecretWithKey } from "@homarr/common/server";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { IntegrationKind } from "@homarr/definitions";
|
import type { IntegrationKind } from "@homarr/definitions";
|
||||||
import type { OldmarrIntegrationType } from "@homarr/old-schema";
|
import type { OldmarrIntegrationType } from "@homarr/old-schema";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import SuperJSON from "superjson";
|
import SuperJSON from "superjson";
|
||||||
|
|
||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { itemLayouts, items } from "@homarr/db/schema";
|
import type { itemLayouts, items } from "@homarr/db/schema";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import type { BoardSize, OldmarrApp, OldmarrWidget } from "@homarr/old-schema";
|
import type { BoardSize, OldmarrApp, OldmarrWidget } from "@homarr/old-schema";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { createId } from "@homarr/common";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { sections } from "@homarr/db/schema";
|
import type { sections } from "@homarr/db/schema";
|
||||||
import type { OldmarrCategorySection, OldmarrEmptySection } from "@homarr/old-schema";
|
import type { OldmarrCategorySection, OldmarrEmptySection } from "@homarr/old-schema";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { createId } from "@homarr/common";
|
||||||
import { decryptSecretWithKey } from "@homarr/common/server";
|
import { decryptSecretWithKey } from "@homarr/common/server";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { users } from "@homarr/db/schema";
|
import type { users } from "@homarr/db/schema";
|
||||||
|
|
||||||
import type { OldmarrImportUser } from "../user-schema";
|
import type { OldmarrImportUser } from "../user-schema";
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^",
|
"@homarr/common": "workspace:^",
|
||||||
"@homarr/db": "workspace:^",
|
|
||||||
"@homarr/definitions": "workspace:^",
|
"@homarr/definitions": "workspace:^",
|
||||||
"@homarr/log": "workspace:^",
|
"@homarr/log": "workspace:^",
|
||||||
"ioredis": "5.6.1",
|
"ioredis": "5.6.1",
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { LogLevel } from "@homarr/log/constants";
|
||||||
|
|
||||||
import { createListChannel, createQueueChannel, createSubPubChannel } from "./lib/channel";
|
import { createListChannel, createQueueChannel, createSubPubChannel } from "./lib/channel";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
@@ -27,8 +29,7 @@ export const queueChannel = createQueueChannel<{
|
|||||||
|
|
||||||
export interface LoggerMessage {
|
export interface LoggerMessage {
|
||||||
message: string;
|
message: string;
|
||||||
level: string;
|
level: LogLevel;
|
||||||
timestamp: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const loggingChannel = createSubPubChannel<LoggerMessage>("logging");
|
export const loggingChannel = createSubPubChannel<LoggerMessage>("logging");
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
|
|
||||||
import { hashObjectBase64 } from "@homarr/common";
|
import { createId, hashObjectBase64 } from "@homarr/common";
|
||||||
import { createId } from "@homarr/db";
|
|
||||||
import type { WidgetKind } from "@homarr/definitions";
|
import type { WidgetKind } from "@homarr/definitions";
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"octokit": "^5.0.3",
|
"octokit": "^5.0.3",
|
||||||
"superjson": "2.2.2",
|
"superjson": "2.2.2",
|
||||||
"undici": "7.11.0"
|
"undici": "7.12.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@mantine/dates": "^8.1.3",
|
"@mantine/dates": "^8.1.3",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0"
|
"react-dom": "19.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"@mantine/spotlight": "^8.1.3",
|
"@mantine/spotlight": "^8.1.3",
|
||||||
"@tabler/icons-react": "^3.34.0",
|
"@tabler/icons-react": "^3.34.0",
|
||||||
"jotai": "^2.12.5",
|
"jotai": "^2.12.5",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"use-deep-compare-effect": "^1.8.1"
|
"use-deep-compare-effect": "^1.8.1"
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"deepmerge": "4.3.1",
|
"deepmerge": "4.3.1",
|
||||||
"mantine-react-table": "2.0.0-beta.9",
|
"mantine-react-table": "2.0.0-beta.9",
|
||||||
"next": "15.3.5",
|
"next": "15.4.1",
|
||||||
"next-intl": "4.3.4",
|
"next-intl": "4.3.4",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0"
|
"react-dom": "19.1.0"
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -938,8 +938,8 @@
|
|||||||
"newLabel": "新领域"
|
"newLabel": "新领域"
|
||||||
},
|
},
|
||||||
"personalAccessToken": {
|
"personalAccessToken": {
|
||||||
"label": "",
|
"label": "个人访问令牌",
|
||||||
"newLabel": ""
|
"newLabel": "新建个人访问令牌"
|
||||||
},
|
},
|
||||||
"topic": {
|
"topic": {
|
||||||
"label": "主题",
|
"label": "主题",
|
||||||
@@ -1507,7 +1507,7 @@
|
|||||||
"width": "宽度",
|
"width": "宽度",
|
||||||
"height": "高度"
|
"height": "高度"
|
||||||
},
|
},
|
||||||
"placeholder": ""
|
"placeholder": "开始写笔记"
|
||||||
},
|
},
|
||||||
"iframe": {
|
"iframe": {
|
||||||
"name": "iFrame",
|
"name": "iFrame",
|
||||||
@@ -2294,8 +2294,8 @@
|
|||||||
},
|
},
|
||||||
"invalid": "仓库定义无效,请检查值",
|
"invalid": "仓库定义无效,请检查值",
|
||||||
"noProvider": {
|
"noProvider": {
|
||||||
"label": "",
|
"label": "没有提供者",
|
||||||
"tooltip": ""
|
"tooltip": "无法解析该提供者,请在导入镜像后手动设置"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2309,15 +2309,16 @@
|
|||||||
"openProjectPage": "打开项目页面",
|
"openProjectPage": "打开项目页面",
|
||||||
"openReleasePage": "打开发布页面",
|
"openReleasePage": "打开发布页面",
|
||||||
"releaseDescription": "发布说明",
|
"releaseDescription": "发布说明",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "已创建",
|
"created": "已创建",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "错误",
|
"label": "错误",
|
||||||
"messages": {
|
"messages": {
|
||||||
"invalidIdentifier": "",
|
"invalidIdentifier": "无效标识符",
|
||||||
"noMatchingVersion": "没有找到匹配的版本",
|
"noMatchingVersion": "没有找到匹配的版本",
|
||||||
"noReleasesFound": "",
|
"noReleasesFound": "没有发现发布信息",
|
||||||
"noProviderSeleceted": "",
|
"noProviderSeleceted": "没有选择提供者",
|
||||||
"noProviderResponse": ""
|
"noProviderResponse": "提供者没有响应"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2569,7 +2570,7 @@
|
|||||||
"label": "图标颜色"
|
"label": "图标颜色"
|
||||||
},
|
},
|
||||||
"clearColor": {
|
"clearColor": {
|
||||||
"label": ""
|
"label": "清除颜色"
|
||||||
},
|
},
|
||||||
"customCss": {
|
"customCss": {
|
||||||
"label": "自定义此面板的 css",
|
"label": "自定义此面板的 css",
|
||||||
@@ -3094,7 +3095,7 @@
|
|||||||
"idle": "空闲",
|
"idle": "空闲",
|
||||||
"running": "运行中",
|
"running": "运行中",
|
||||||
"error": "错误",
|
"error": "错误",
|
||||||
"disabled": ""
|
"disabled": "禁用"
|
||||||
},
|
},
|
||||||
"job": {
|
"job": {
|
||||||
"minecraftServerStatus": {
|
"minecraftServerStatus": {
|
||||||
@@ -3159,18 +3160,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
"seconds": "",
|
"seconds": "每 {interval, plural, =1 {秒} other {# 秒}}",
|
||||||
"minutes": "",
|
"minutes": "每 {interval, plural, =1 {分钟} other {# 分钟}}",
|
||||||
"hours": "",
|
"hours": "每 {interval, plural, =1 {小时} other {# 小时}}",
|
||||||
"midnight": "",
|
"midnight": "每日午夜",
|
||||||
"weeklyMonday": ""
|
"weeklyMonday": "每周一"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": ""
|
"title": "{jobName} 任务设置"
|
||||||
},
|
},
|
||||||
"field": {
|
"field": {
|
||||||
"interval": {
|
"interval": {
|
||||||
"label": ""
|
"label": "计划时间间隔"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -938,8 +938,8 @@
|
|||||||
"newLabel": "Nyt realm"
|
"newLabel": "Nyt realm"
|
||||||
},
|
},
|
||||||
"personalAccessToken": {
|
"personalAccessToken": {
|
||||||
"label": "",
|
"label": "Personlig adgangstoken",
|
||||||
"newLabel": ""
|
"newLabel": "Ny Personlig adgangstoken"
|
||||||
},
|
},
|
||||||
"topic": {
|
"topic": {
|
||||||
"label": "Emne",
|
"label": "Emne",
|
||||||
@@ -1484,7 +1484,7 @@
|
|||||||
"image": "Integrer billede",
|
"image": "Integrer billede",
|
||||||
"addTable": "Tilføj tabel",
|
"addTable": "Tilføj tabel",
|
||||||
"deleteTable": "Slet tabel",
|
"deleteTable": "Slet tabel",
|
||||||
"colorCell": "Farvecelle",
|
"colorCell": "Farve Celle",
|
||||||
"mergeCell": "Slå cellefletning til/fra",
|
"mergeCell": "Slå cellefletning til/fra",
|
||||||
"addColumnLeft": "Tilføj kolonne før",
|
"addColumnLeft": "Tilføj kolonne før",
|
||||||
"addColumnRight": "Tilføj kolonne efter",
|
"addColumnRight": "Tilføj kolonne efter",
|
||||||
@@ -1507,7 +1507,7 @@
|
|||||||
"width": "Bredde",
|
"width": "Bredde",
|
||||||
"height": "Højde"
|
"height": "Højde"
|
||||||
},
|
},
|
||||||
"placeholder": ""
|
"placeholder": "Begynd at skrive dine noter"
|
||||||
},
|
},
|
||||||
"iframe": {
|
"iframe": {
|
||||||
"name": "indlejret dokument (iframe)",
|
"name": "indlejret dokument (iframe)",
|
||||||
@@ -2294,8 +2294,8 @@
|
|||||||
},
|
},
|
||||||
"invalid": "Ugyldig repository definition, tjek venligst værdierne",
|
"invalid": "Ugyldig repository definition, tjek venligst værdierne",
|
||||||
"noProvider": {
|
"noProvider": {
|
||||||
"label": "",
|
"label": "Ingen Udbyder",
|
||||||
"tooltip": ""
|
"tooltip": "Udbyderen kunne ikke fortolkes, angiv venligst det manuelt efter import af billederne"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2309,15 +2309,16 @@
|
|||||||
"openProjectPage": "Åbn Projektside",
|
"openProjectPage": "Åbn Projektside",
|
||||||
"openReleasePage": "Åbn Udgivelsesside",
|
"openReleasePage": "Åbn Udgivelsesside",
|
||||||
"releaseDescription": "Udgivelse Beskrivelse",
|
"releaseDescription": "Udgivelse Beskrivelse",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "Oprettet",
|
"created": "Oprettet",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "Fejl",
|
"label": "Fejl",
|
||||||
"messages": {
|
"messages": {
|
||||||
"invalidIdentifier": "",
|
"invalidIdentifier": "Ugyldig identifikator",
|
||||||
"noMatchingVersion": "Ingen matchende version fundet",
|
"noMatchingVersion": "Ingen matchende version fundet",
|
||||||
"noReleasesFound": "",
|
"noReleasesFound": "Ingen udgivelser fundet",
|
||||||
"noProviderSeleceted": "",
|
"noProviderSeleceted": "Ingen udbyder valgt",
|
||||||
"noProviderResponse": ""
|
"noProviderResponse": "Intet svar fra udbyder"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2569,7 +2570,7 @@
|
|||||||
"label": "Ikonfarve"
|
"label": "Ikonfarve"
|
||||||
},
|
},
|
||||||
"clearColor": {
|
"clearColor": {
|
||||||
"label": ""
|
"label": "Ryd farve"
|
||||||
},
|
},
|
||||||
"customCss": {
|
"customCss": {
|
||||||
"label": "Brugerdefineret css for denne tavle",
|
"label": "Brugerdefineret css for denne tavle",
|
||||||
@@ -3094,7 +3095,7 @@
|
|||||||
"idle": "Inaktiv",
|
"idle": "Inaktiv",
|
||||||
"running": "Kører",
|
"running": "Kører",
|
||||||
"error": "Fejl",
|
"error": "Fejl",
|
||||||
"disabled": ""
|
"disabled": "Deaktiveret"
|
||||||
},
|
},
|
||||||
"job": {
|
"job": {
|
||||||
"minecraftServerStatus": {
|
"minecraftServerStatus": {
|
||||||
@@ -3159,18 +3160,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
"seconds": "",
|
"seconds": "Hvert {interval, plural, one {}=1 {sekund} other {# sekunder}}",
|
||||||
"minutes": "",
|
"minutes": "Hvert {interval, plural, one {}=1 {minut} other {# minutter}}",
|
||||||
"hours": "",
|
"hours": "Hvert {interval, plural, one {}=1 {time} other {# timer}}",
|
||||||
"midnight": "",
|
"midnight": "Hver dag ved midnat",
|
||||||
"weeklyMonday": ""
|
"weeklyMonday": "Hver uge om mandagen"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": ""
|
"title": "Opgave indstillinger for {jobName}"
|
||||||
},
|
},
|
||||||
"field": {
|
"field": {
|
||||||
"interval": {
|
"interval": {
|
||||||
"label": ""
|
"label": "Planlæg interval"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "Projektseite öffnen",
|
"openProjectPage": "Projektseite öffnen",
|
||||||
"openReleasePage": "Release Seite öffnen",
|
"openReleasePage": "Release Seite öffnen",
|
||||||
"releaseDescription": "Release Beschreibung",
|
"releaseDescription": "Release Beschreibung",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "Erstellt",
|
"created": "Erstellt",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "Fehler",
|
"label": "Fehler",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "Open Project Page",
|
"openProjectPage": "Open Project Page",
|
||||||
"openReleasePage": "Open Release Page",
|
"openReleasePage": "Open Release Page",
|
||||||
"releaseDescription": "Release Description",
|
"releaseDescription": "Release Description",
|
||||||
|
"projectDescription": "Project Description",
|
||||||
"created": "Created",
|
"created": "Created",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "Error",
|
"label": "Error",
|
||||||
@@ -4203,5 +4204,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"log": {
|
||||||
|
"level": {
|
||||||
|
"option": {
|
||||||
|
"debug": "Debug",
|
||||||
|
"info": "Info",
|
||||||
|
"warn": "Warn",
|
||||||
|
"error": "Error"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "פתח את דף הפרויקט",
|
"openProjectPage": "פתח את דף הפרויקט",
|
||||||
"openReleasePage": "פתח את דף הגרסאות",
|
"openReleasePage": "פתח את דף הגרסאות",
|
||||||
"releaseDescription": "תיאור הגרסה",
|
"releaseDescription": "תיאור הגרסה",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "נוצר",
|
"created": "נוצר",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "שגיאה",
|
"label": "שגיאה",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
@@ -938,8 +938,8 @@
|
|||||||
"newLabel": "新しい Realm"
|
"newLabel": "新しい Realm"
|
||||||
},
|
},
|
||||||
"personalAccessToken": {
|
"personalAccessToken": {
|
||||||
"label": "",
|
"label": "パーソナルアクセストークン",
|
||||||
"newLabel": ""
|
"newLabel": "新しいパーソナルアクセストークン"
|
||||||
},
|
},
|
||||||
"topic": {
|
"topic": {
|
||||||
"label": "トピック",
|
"label": "トピック",
|
||||||
@@ -2294,8 +2294,8 @@
|
|||||||
},
|
},
|
||||||
"invalid": "無効なリポジトリ定義です。値を確認してください",
|
"invalid": "無効なリポジトリ定義です。値を確認してください",
|
||||||
"noProvider": {
|
"noProvider": {
|
||||||
"label": "",
|
"label": "プロバイダーがありません",
|
||||||
"tooltip": ""
|
"tooltip": "プロバイダーを解析できませんでした。画像をインポートしたあとで、手動で設定してください"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2309,15 +2309,16 @@
|
|||||||
"openProjectPage": "プロジェクトページを開く",
|
"openProjectPage": "プロジェクトページを開く",
|
||||||
"openReleasePage": "リリースページを開く",
|
"openReleasePage": "リリースページを開く",
|
||||||
"releaseDescription": "リリースの説明",
|
"releaseDescription": "リリースの説明",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "作成日",
|
"created": "作成日",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "エラー",
|
"label": "エラー",
|
||||||
"messages": {
|
"messages": {
|
||||||
"invalidIdentifier": "",
|
"invalidIdentifier": "無効な識別子",
|
||||||
"noMatchingVersion": "一致するバージョンが見つかりません",
|
"noMatchingVersion": "一致するバージョンが見つかりません",
|
||||||
"noReleasesFound": "",
|
"noReleasesFound": "リリースが見つかりませんでした",
|
||||||
"noProviderSeleceted": "",
|
"noProviderSeleceted": "プロバイダーが選択されていません",
|
||||||
"noProviderResponse": ""
|
"noProviderResponse": "プロバイダーからの応答がありません"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2309,6 +2309,7 @@
|
|||||||
"openProjectPage": "",
|
"openProjectPage": "",
|
||||||
"openReleasePage": "",
|
"openReleasePage": "",
|
||||||
"releaseDescription": "",
|
"releaseDescription": "",
|
||||||
|
"projectDescription": "",
|
||||||
"created": "",
|
"created": "",
|
||||||
"error": {
|
"error": {
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user