basic file sharing

This commit is contained in:
2025-08-29 15:32:23 +02:00
parent c8b52a5b3b
commit 284d805590
84 changed files with 3969 additions and 375 deletions

View File

@@ -0,0 +1,12 @@
import { number, object, string } from 'yup';
export const shareSchema = object({
password: string()
.trim()
.transform((s: string) => (s.length > 0 ? s : undefined))
.optional(),
lifetime: number()
.positive()
.transform((n) => (isNaN(n) ? undefined : n))
.optional(),
});