feat: add onboarding with oldmarr import (#1606)

This commit is contained in:
Meier Lukas
2024-12-15 15:40:26 +01:00
committed by GitHub
parent 82ec77d2da
commit 6de74d9525
108 changed files with 6045 additions and 312 deletions

View File

@@ -1,5 +1,7 @@
import { z } from "zod";
import { objectKeys } from "@homarr/common";
const createAreaSchema = <TType extends string, TPropertiesSchema extends z.AnyZodObject>(
type: TType,
propertiesSchema: TPropertiesSchema,
@@ -53,3 +55,6 @@ export const tileBaseSchema = z.object({
area: areaSchema,
shape: shapeSchema,
});
export const boardSizes = objectKeys(shapeSchema._def.shape());
export type BoardSize = (typeof boardSizes)[number];