Merge branch 'main' into next

This commit is contained in:
Meier Lukas committed 2026-05-01 22:30:33 +02:00
commit 7561462594
77 files changed
+690 -424

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@
"./client": "./src/client.ts",
"./server": "./src/server.ts",
"./websocket": "./src/websocket.ts",
"./shared": "./src/shared.ts"
"./shared": "./src/shared.ts",
"./open-api": "./src/open-api.ts"
},
"main": "./index.ts",
"types": "./index.ts",
+1 -2
View File
@@ -1,6 +1,5 @@
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
import { openApiDocument } from "./open-api";
import type { AppRouter } from "./root";
import { appRouter } from "./root";
import { createCallerFactory, createTRPCContext } from "./trpc";
@@ -30,5 +29,5 @@ type RouterInputs = inferRouterInputs<AppRouter>;
**/
type RouterOutputs = inferRouterOutputs<AppRouter>;
export { createTRPCContext, appRouter, createCaller, openApiDocument };
export { createTRPCContext, appRouter, createCaller };
export type { AppRouter, RouterInputs, RouterOutputs };
+13 -2
View File
@@ -2,10 +2,21 @@ import { generateOpenApiDocument } from "trpc-to-openapi";
import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key";
import { appRouter } from "./root";
import { appRouter } from "./router/app";
import { infoRouter } from "./router/info";
import { inviteRouter } from "./router/invite";
import { userRouter } from "./router/user";
import { createTRPCRouter } from "./trpc";
export const openApiRouter = createTRPCRouter({
appRouter,
infoRouter,
inviteRouter,
userRouter,
});
export const openApiDocument = (base: string) =>
generateOpenApiDocument(appRouter, {
generateOpenApiDocument(openApiRouter, {
title: "Homarr API documentation",
version: "1.0.0",
baseUrl: base,
+4 -4
View File
@@ -4,7 +4,7 @@ import z from "zod/v4";
import { createLogger } from "@homarr/core/infrastructure/logs";
import type { TaskStatus } from "@homarr/cron-job-status";
import { createCronJobStatusChannel } from "@homarr/cron-job-status";
import { cronExpressionSchema, jobGroup } from "@homarr/cron-jobs";
import { jobGroup } from "@homarr/cron-jobs";
import { JobManager } from "@homarr/cron-jobs/job-manager";
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
@@ -30,15 +30,15 @@ export const cronJobsRouter = createTRPCRouter({
stopJob: permissionRequiredProcedure
.requiresPermission("admin")
.input(jobNameSchema)
.mutation(async ({ input, ctx }) => {
await new JobManager(ctx.db, jobGroup).stopAsync(input);
.mutation(({ input, ctx }) => {
new JobManager(ctx.db, jobGroup).stop(input);
}),
updateJobInterval: permissionRequiredProcedure
.requiresPermission("admin")
.input(
z.object({
name: jobNameSchema,
cron: cronExpressionSchema,
cron: z.string(),
}),
)
.mutation(async ({ input, ctx }) => {
+4
View File
@@ -41,6 +41,10 @@ export class Stopwatch {
return dayjs().millisecond(this.startTime).fromNow(true);
}
getElapsedInFormattedMilliseconds() {
return `${this.getElapsedInMilliseconds().toFixed(0)}ms`;
}
getElapsedInMilliseconds() {
return performance.now() - this.startTime;
}
+1 -2
View File
@@ -27,13 +27,12 @@
"@homarr/common": "workspace:^0.1.0",
"@homarr/core": "workspace:^",
"@homarr/db": "workspace:^0.1.0",
"node-cron": "catalog:"
"croner": "catalog:"
},
"devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0",
"@types/node-cron": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
+11 -12
View File
@@ -1,4 +1,4 @@
import { createTask, validate } from "node-cron";
import { Cron } from "croner";
import { Stopwatch } from "@homarr/common";
import type { MaybePromise } from "@homarr/common/types";
@@ -83,10 +83,15 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
? defaultCronExpression
: (configuration?.cronExpression ?? defaultCronExpression);
const scheduledTask = createTask(cronExpression, () => void catchingCallbackAsync(), {
name,
timezone: creatorOptions.timezone,
});
const scheduledTask = new Cron(
cronExpression,
{
name,
timezone: creatorOptions.timezone,
paused: true,
},
() => void catchingCallbackAsync(),
);
creatorOptions.logger.logDebug("The scheduled task for cron job was created", {
name,
cronExpression: defaultCronExpression,
@@ -116,6 +121,7 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
},
preventManualExecution: options.preventManualExecution ?? false,
preventCustomInterval: options.preventCustomInterval ?? false,
timezone: creatorOptions.timezone,
};
};
};
@@ -132,13 +138,6 @@ export const createCronJobCreator = <TAllowedNames extends string = string>(
defaultCronExpression: TExpression,
options: CreateCronJobOptions = { runOnStart: false },
) => {
creatorOptions.logger.logDebug("Validating cron expression for cron job", {
name,
cronExpression: defaultCronExpression,
});
if (!validate(defaultCronExpression)) {
throw new Error(`Invalid cron expression '${defaultCronExpression}' for job '${name}'`);
}
creatorOptions.logger.logDebug("Cron job expression for cron job is valid", {
name,
cronExpression: defaultCronExpression,
+11 -11
View File
@@ -1,4 +1,4 @@
import type { ScheduledTask } from "node-cron";
import type { Cron } from "croner";
import { objectEntries, objectKeys } from "@homarr/common";
import { db } from "@homarr/db";
@@ -34,7 +34,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
});
}
const tasks = new Map<string, ScheduledTask>();
const tasks = new Map<string, Cron>();
return {
initializeAsync: async () => {
@@ -62,7 +62,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
name: job.name,
});
await job.onStartAsync();
await tasks.get(name as string)?.start();
tasks.get(name as string)?.resume();
},
startAllAsync: async () => {
for (const job of jobRegistry.values()) {
@@ -74,7 +74,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
name: job.name,
});
await job.onStartAsync();
await tasks.get(job.name)?.start();
tasks.get(job.name)?.resume();
}
},
runManuallyAsync: async (name: keyof TJobs) => {
@@ -87,23 +87,23 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
options.logger.logInfo("Running schedule cron job manually.", {
name: job.name,
});
await tasks.get(name as string)?.execute();
await tasks.get(name as string)?.trigger();
},
stopAsync: async (name: keyof TJobs) => {
stop: (name: keyof TJobs) => {
const job = jobRegistry.get(name as string);
if (!job) return;
options.logger.logInfo("Stopping schedule of cron job.", {
name: job.name,
});
await tasks.get(name as string)?.stop();
tasks.get(name as string)?.pause();
},
stopAllAsync: async () => {
stopAll: () => {
for (const job of jobRegistry.values()) {
options.logger.logInfo("Stopping schedule of cron job.", {
name: job.name,
});
await tasks.get(job.name)?.stop();
tasks.get(job.name)?.pause();
}
},
getJobRegistry() {
@@ -112,8 +112,8 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
getTask(name: keyof TJobs) {
return tasks.get(name as string) ?? null;
},
setTask(name: keyof TJobs, task: ScheduledTask) {
tasks.set(name as string, task);
setTask(name: keyof TJobs, cron: Cron) {
tasks.set(name as string, cron);
},
getKeys() {
return objectKeys(jobs);
-2
View File
@@ -39,7 +39,6 @@
"@homarr/server-settings": "workspace:^0.1.0",
"@homarr/translation": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0",
"node-cron": "catalog:",
"semver-parser": "catalog:",
"zod": "catalog:"
},
@@ -47,7 +46,6 @@
"@homarr/eslint-config": "workspace:^0.2.0",
"@homarr/prettier-config": "workspace:^0.1.0",
"@homarr/tsconfig": "workspace:^0.1.0",
"@types/node-cron": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
-1
View File
@@ -68,4 +68,3 @@ global.cronJobs ??= getJobGroup();
export const jobGroup = global.cronJobs;
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
export * from "./schemas";
+24 -15
View File
@@ -1,4 +1,4 @@
import { schedule, validate as validateCron } from "node-cron";
import { Cron } from "croner";
import { createLogger } from "@homarr/core/infrastructure/logs";
import type { jobGroup as cronJobGroup, JobGroupKeys } from "@homarr/cron-jobs";
@@ -20,28 +20,31 @@ export class JobManager {
public async triggerAsync(name: JobGroupKeys): Promise<void> {
await this.jobGroup.runManuallyAsync(name);
}
public async stopAsync(name: JobGroupKeys): Promise<void> {
await this.jobGroup.stopAsync(name);
public stop(name: JobGroupKeys): void {
this.jobGroup.stop(name);
}
public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> {
logger.info("Updating cron job interval", { name, expression: cron });
const job = this.jobGroup.getJobRegistry().get(name);
if (!job) throw new Error(`Job ${name} not found`);
if (!validateCron(cron)) {
throw new Error(`Invalid cron expression: ${cron}`);
}
if (job.preventCustomInterval && cron !== job.cronExpression) {
throw new Error(`Custom cron expressions are not allowed for job ${name}`);
}
await this.updateConfigurationAsync(name, { cronExpression: cron });
await this.jobGroup.getTask(name)?.destroy();
const updatedConfig = await this.updateConfigurationAsync(name, { cronExpression: cron });
this.jobGroup.getTask(name)?.stop();
this.jobGroup.setTask(
name,
schedule(cron, () => void job.executeAsync(), {
name,
}),
new Cron(
cron,
{
name,
timezone: job.timezone,
paused: !updatedConfig.isEnabled,
},
() => void job.executeAsync(),
),
);
logger.info("Cron job interval updated", { name, expression: cron });
}
@@ -51,7 +54,7 @@ export class JobManager {
if (!job) throw new Error(`Job ${name} not found`);
await this.updateConfigurationAsync(name, { isEnabled: false });
await this.jobGroup.stopAsync(name);
this.jobGroup.stop(name);
logger.info("Cron job disabled", { name });
}
public async enableAsync(name: JobGroupKeys): Promise<void> {
@@ -85,21 +88,27 @@ export class JobManager {
name,
configuration: JSON.stringify(configuration),
});
return;
return {
name,
cronExpression: configuration.cronExpression ?? existingConfig.cronExpression,
isEnabled: configuration.isEnabled ?? existingConfig.isEnabled,
};
}
const job = this.jobGroup.getJobRegistry().get(name);
if (!job) throw new Error(`Job ${name} not found`);
await this.db.insert(cronJobConfigurations).values({
const updatedConfig = {
name,
cronExpression: configuration.cronExpression ?? job.cronExpression,
isEnabled: configuration.isEnabled ?? true,
});
};
await this.db.insert(cronJobConfigurations).values(updatedConfig);
logger.debug("Cron job configuration updated", {
name,
configuration: JSON.stringify(configuration),
});
return updatedConfig;
}
public async getAllAsync(): Promise<
+39 -47
View File
@@ -1,9 +1,12 @@
import type { MySqlRawQueryResult } from "drizzle-orm/mysql2";
import type { QueryResult } from "pg";
import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
import { env } from "@homarr/common/env";
import { createLogger } from "@homarr/core/infrastructure/logs";
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
import type { InferInsertModel } from "@homarr/db";
import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
import { and, db, eq, handleTransactionsAsync, inArray, notInArray, or } from "@homarr/db";
import { iconRepositories, icons } from "@homarr/db/schema";
import { fetchIconsAsync } from "@homarr/icons";
@@ -26,7 +29,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
logger.info("Fetched icons from repositories", {
repositoryCount: repositoryIconGroups.length,
iconCount: countIcons,
duration: stopWatch.getElapsedInHumanWords(),
duration: stopWatch.getElapsedInFormattedMilliseconds(),
});
const databaseIconRepositories = await db.query.iconRepositories.findMany({
@@ -35,7 +38,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
},
});
const skippedChecksums: `${string}.${string}`[] = [];
const skippedChecksums = new Map<string, string[]>();
let countDeleted = 0;
let countInserted = 0;
@@ -50,6 +53,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
if (!repositoryIconGroup.success) {
continue;
}
const localSkippedChecksums: string[] = [];
const repositoryInDb = databaseIconRepositories.find(
(dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug,
@@ -66,7 +70,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
for (const icon of repositoryIconGroup.icons) {
if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) {
skippedChecksums.push(`${iconRepositoryId}.${icon.checksum}`);
localSkippedChecksums.push(icon.checksum);
continue;
}
@@ -79,38 +83,28 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
});
countInserted++;
}
}
const deadIcons = allDbIcons.filter(
(icon) => !skippedChecksums.includes(`${icon.iconRepositoryId}.${icon.checksum}`),
);
skippedChecksums.set(iconRepositoryId, localSkippedChecksums);
}
const deadIconRepositories = databaseIconRepositories.filter(
(iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug),
);
const deadIconsFilter = or(
...[...skippedChecksums.entries()].map(([iconRepositoryId, checksums]) =>
and(eq(icons.iconRepositoryId, iconRepositoryId), notInArray(icons.checksum, checksums)),
),
);
await handleTransactionsAsync(db, {
async handleAsync(db, schema) {
await db.transaction(async (transaction) => {
if (newIconRepositories.length >= 1) {
await transaction.insert(schema.iconRepositories).values(newIconRepositories);
}
const result = (await transaction.delete(schema.icons).where(deadIconsFilter)) as
| MySqlRawQueryResult
| QueryResult;
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
await transaction.insert(schema.icons).values(chunck);
}
}
if (deadIcons.length >= 1) {
await transaction.delete(schema.icons).where(
inArray(
// Combine iconRepositoryId and checksum to allow same icons on different repositories
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
),
);
}
countDeleted += Array.isArray(result) ? result[0].affectedRows : (result.rowCount ?? 0);
if (deadIconRepositories.length >= 1) {
await transaction.delete(schema.iconRepositories).where(
@@ -121,33 +115,22 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
);
}
countDeleted += deadIcons.length;
});
},
handleSync() {
db.transaction((transaction) => {
if (newIconRepositories.length >= 1) {
transaction.insert(iconRepositories).values(newIconRepositories).run();
await transaction.insert(schema.iconRepositories).values(newIconRepositories);
}
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run();
await transaction.insert(schema.icons).values(chunck);
}
}
if (deadIcons.length >= 1) {
transaction
.delete(icons)
.where(
inArray(
// Combine iconRepositoryId and checksum to allow same icons on different repositories
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
),
)
.run();
}
});
},
handleSync() {
db.transaction((transaction) => {
const result = transaction.delete(icons).where(deadIconsFilter).run();
countDeleted += result.changes;
if (deadIconRepositories.length >= 1) {
transaction
@@ -161,13 +144,22 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
.run();
}
countDeleted += deadIcons.length;
if (newIconRepositories.length >= 1) {
transaction.insert(iconRepositories).values(newIconRepositories).run();
}
if (newIcons.length >= 1) {
// We only insert 5000 icons at a time to avoid SQLite limitations
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
transaction.insert(icons).values(chunck).run();
}
}
});
},
});
logger.info("Updated icons in database", {
duration: stopWatch.getElapsedInHumanWords(),
duration: stopWatch.getElapsedInFormattedMilliseconds(),
added: countInserted,
deleted: countDeleted,
});
-6
View File
@@ -1,6 +0,0 @@
import { validate } from "node-cron";
import z from "zod";
export const cronExpressionSchema = z.string().refine((expression) => validate(expression), {
error: "Invalid cron expression",
});
+2
View File
@@ -37,6 +37,8 @@
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
"seed": "pnpm with-env tsx ./migrations/run-seed.ts",
"studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts",
"studio:mysql": "pnpm with-env drizzle-kit studio --config ./configs/mysql.config.ts",
"studio:postgresql": "pnpm with-env drizzle-kit studio --config ./configs/postgresql.config.ts",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --"
},
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+29 -25
View File
@@ -1614,22 +1614,22 @@
"label": ""
},
"showTitle": {
"label": ""
"label": "显示标题"
},
"showUpdatedAt": {
"label": ""
"label": "显示最近更新"
}
},
"empty": "",
"emptyContent": "",
"notFound": "",
"empty": "选择要显示的笔记",
"emptyContent": "此笔记没有内容",
"notFound": "未找到笔记",
"noNotes": "",
"integrationRequired": "",
"updatedAt": "",
"untitled": "",
"edit": "",
"save": "",
"cancel": "",
"updatedAt": "更新时间:{date}",
"untitled": "未命名",
"edit": "编辑",
"save": "保存",
"cancel": "取消",
"readOnlyViewer": "",
"saveForbidden": "",
"saveFailed": ""
@@ -1901,7 +1901,7 @@
"label": "显示内存信息"
},
"gpu": {
"label": ""
"label": "显示 GPU 信息"
},
"showUptime": {
"label": "显示运行时间"
@@ -2200,15 +2200,15 @@
"description": ""
},
"showPhotos": {
"label": "",
"label": "显示图片",
"description": ""
},
"showVideos": {
"label": "",
"label": "显示视频",
"description": ""
},
"showStorage": {
"label": "",
"label": "显示存储",
"description": ""
}
},
@@ -2229,7 +2229,7 @@
"description": ""
},
"showPhotoInfo": {
"label": "",
"label": "显示图片信息",
"description": ""
}
},
@@ -2783,17 +2783,17 @@
"recentResults": "",
"recentResultsSpeed": "",
"recentResultsPing": "",
"download": "",
"upload": "",
"ping": "",
"status": "",
"avgDownload": "",
"avgUpload": "",
"avgPing": "",
"download": "下载",
"upload": "上传",
"ping": "Ping",
"status": "状态",
"avgDownload": "平均下载",
"avgUpload": "平均上传",
"avgPing": "平均Ping",
"healthy": "",
"unhealthy": "",
"ok": "",
"fail": "",
"fail": "失败",
"noSectionsEnabled": "",
"error": {
"internalServerError": ""
@@ -2812,7 +2812,7 @@
"option": {
"cpu": "CPU",
"memory": "内存",
"gpu": "",
"gpu": "GPU",
"network": "网络"
}
},
@@ -2829,7 +2829,7 @@
"card": {
"cpu": "CPU",
"memory": "内存",
"gpu": "",
"gpu": "GPU",
"network": "网络",
"up": "上传",
"down": "下载"
@@ -3790,6 +3790,10 @@
"title": "翻译人员",
"subtitle": "在许多语言中,有{count}人贡献了翻译"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "相关的库",
"subtitle": "{count} 用于 Homarr 代码中"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "crwdns1884:0crwdne1884:0",
"subtitle": "crwdns1886:0{count}crwdne1886:0"
},
"sponsors": {
"title": "crwdns4100:0crwdne4100:0",
"subtitle": "crwdns4102:0{count}crwdne4102:0"
},
"libraries": {
"title": "crwdns1888:0crwdne1888:0",
"subtitle": "crwdns1890:0{count}crwdne1890:0"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Překladatelé",
"subtitle": "{count} přispívá překladem do mnoha jazyků"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Oversættere",
"subtitle": "{count} bidragende oversættere på mange sprog"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Biblioteker",
"subtitle": "{count} brugt i koden for Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Übersetzer",
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Bibliotheken",
"subtitle": "{count} im Code von Homarr verwendet"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Übersetzer",
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Bibliotheken",
"subtitle": "{count} im Code von Homarr verwendet"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+22 -18
View File
@@ -1607,32 +1607,32 @@
}
},
"anchorNote": {
"name": "",
"description": "",
"name": "Anchor Note",
"description": "Displays a selected note from Anchor",
"option": {
"noteId": {
"label": ""
"label": "Note"
},
"showTitle": {
"label": ""
"label": "Show title"
},
"showUpdatedAt": {
"label": ""
"label": "Show last updated"
}
},
"empty": "",
"emptyContent": "",
"notFound": "",
"noNotes": "",
"integrationRequired": "",
"updatedAt": "",
"untitled": "",
"edit": "",
"save": "",
"cancel": "",
"readOnlyViewer": "",
"saveForbidden": "",
"saveFailed": ""
"empty": "Select a note to display",
"emptyContent": "This note has no content",
"notFound": "Note not found",
"noNotes": "No notes found",
"integrationRequired": "Select an Anchor integration first",
"updatedAt": "Updated {date}",
"untitled": "Untitled",
"edit": "Edit",
"save": "Save",
"cancel": "Cancel",
"readOnlyViewer": "You have viewer access to this note. Editing is disabled.",
"saveForbidden": "You do not have permission to edit this note.",
"saveFailed": "Failed to save this note. Please try again."
},
"iframe": {
"name": "iFrame",
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Translators",
"subtitle": "{count} contributing translations in many languages"
},
"sponsors": {
"title": "Sponsors",
"subtitle": "{count} supporting the project financially"
},
"libraries": {
"title": "Libraries",
"subtitle": "{count} used in the Code of Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Traductores",
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Librerías",
"subtitle": "{count} usadas en el Código de Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Traducteurs",
"subtitle": "{count} ont contribué à des traductions dans de nombreuses langues"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Bibliothèques",
"subtitle": "{count} utilisés dans le Code d'Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "מתרגמים",
"subtitle": "{count} תורמים בתרגום לשפות שונות"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "ספריות",
"subtitle": "{count} בשימוש בקוד של Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Traduttori",
"subtitle": "{count} contribuendo alle traduzioni in molte lingue"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Librerie",
"subtitle": "{count} utilizzato nel Codice di Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "翻訳者",
"subtitle": "{count} の多くの言語で翻訳を行っている"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "ライブラリ",
"subtitle": "{count} 個が Homarr のコードで使用されています"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Vertalers",
"subtitle": "{count} bijdragen aan vertalingen in vele talen"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Bibliotheken",
"subtitle": "{count} gebruikt in de code van Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Oversettere",
"subtitle": "{count} bidrar med oversettelser på mange språk"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Biblioteker",
"subtitle": "{count} brukt i koden til Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Tłumacze",
"subtitle": "{count} współtworzy tłumaczenia w wielu językach"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Biblioteki",
"subtitle": "{count} używanych w kodzie Homarr"
+5 -1
View File
@@ -164,7 +164,7 @@
},
"action": {
"login": {
"label": "“Login”",
"label": "Login",
"labelWith": "Iniciar sessão com {provider}",
"notification": {
"success": {
@@ -3790,6 +3790,10 @@
"title": "Tradutores",
"subtitle": "{count} traduções contribuídas em vários idiomas"
},
"sponsors": {
"title": "Apoiadores",
"subtitle": "{count} apoiando o projeto financeiramente"
},
"libraries": {
"title": "Bibliotecas",
"subtitle": "{count} usadas no código do Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Переводчики",
"subtitle": "{count} помогают с переводами на разные языки"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Библиотеки",
"subtitle": "{count} используются в коде Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Prekladatelia",
"subtitle": "{count} prispievanie prekladmi do mnohých jazykov"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Knižnice",
"subtitle": "{count} používané v Homarrskom kódexe"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Översättare",
"subtitle": "{count} bidrar med översättningar på flera olika språk"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Çevirmenler",
"subtitle": "Birçok kişi Homarr'ın {count} dile çevrilmesine katkı sağlıyor"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Kütüphaneler",
"subtitle": "Homarr kodlamasında {count} kütüphane kullanılıyor"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "Перекладачі",
"subtitle": "{count} - стільки людей допомагають перекладати багатьма мовами"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "Бібліотеки",
"subtitle": "{count} - стільки бібліотек використано в коді Homarr"
+4
View File
@@ -3790,6 +3790,10 @@
"title": "",
"subtitle": ""
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "",
"subtitle": ""
+4
View File
@@ -3790,6 +3790,10 @@
"title": "翻譯人員",
"subtitle": "{count} 翻譯了許多語言"
},
"sponsors": {
"title": "",
"subtitle": ""
},
"libraries": {
"title": "資料庫",
"subtitle": "{count} 於 Homarr 待碼中使用"
+4 -8
View File
@@ -138,14 +138,10 @@ export const userChangeColorSchemeSchema = z.object({
export const userFirstDayOfWeekSchema = z.object({
firstDayOfWeek: z
.custom<DayOfWeek>((value) => z.number().min(0).max(6).safeParse(value).success)
.meta({
override: {
type: "integer",
minimum: 0,
maximum: 6,
},
}),
.number()
.min(0)
.max(6)
.transform((value) => value as DayOfWeek),
});
export const userPingIconsEnabledSchema = z.object({