fix: two issues with board rename and iframes (#2215)

This commit is contained in:
Meier Lukas
2024-12-07 22:21:40 +01:00
committed by GitHub
parent b59921b843
commit 31a7559b86
4 changed files with 48 additions and 30 deletions

View File

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