feature: board operations (#1800)

This commit is contained in:
Manuel
2024-01-13 22:52:44 +01:00
committed by GitHub
parent 6717bcf8b4
commit c7992260f0
7 changed files with 241 additions and 22 deletions

View File

@@ -2,8 +2,10 @@ import { DEFAULT_THEME, MANTINE_COLORS, MantineColor } from '@mantine/core';
import { z } from 'zod';
import { BackgroundImageAttachment, BackgroundImageRepeat, BackgroundImageSize } from '~/types/settings';
export const configNameSchema = z.string().regex(/^[a-zA-Z0-9-_\s()]+$/);
export const createBoardSchemaValidation = z.object({
name: z.string().min(2).max(25),
name: configNameSchema,
});
export const boardCustomizationSchema = z.object({