feat(boards): add responsive layout system (#2271)
This commit is contained in:
1 parent
2085b5ece2
commit
7761dc29c8
98 files changed
+11770
-1694
No files matched your search
@@ -1,8 +1,7 @@
|
||||
import { z } from "zod";
|
||||
import { zfd } from "zod-form-data";
|
||||
|
||||
import { boardSizes } from "@homarr/old-schema";
|
||||
import { validation, zodEnumFromArray } from "@homarr/validation";
|
||||
import { validation } from "@homarr/validation";
|
||||
import { createCustomErrorParams } from "@homarr/validation/form";
|
||||
|
||||
export const sidebarBehaviours = ["remove-items", "last-section"] as const;
|
||||
@@ -12,7 +11,6 @@ export type SidebarBehaviour = (typeof sidebarBehaviours)[number];
|
||||
export const oldmarrImportConfigurationSchema = z.object({
|
||||
name: validation.board.name,
|
||||
onlyImportApps: z.boolean().default(false),
|
||||
screenSize: zodEnumFromArray(boardSizes).default("lg"),
|
||||
sidebarBehaviour: z.enum(sidebarBehaviours).default(defaultSidebarBehaviour),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user