Migration to Nuxt v4 file structure and dependencies update

This commit is contained in:
Clément Pons
2025-11-13 10:05:41 +01:00
parent dd4191bea6
commit dfbb31595e
90 changed files with 652 additions and 924 deletions

16
app/schemas/project.ts Normal file
View File

@@ -0,0 +1,16 @@
import { z } from "zod";
import { projectFilesTable } from "~/db/schema";
export const Project = z.array(z.object({
id: z.string(),
path: z.string(),
title: z.string(),
type: z.enum(projectFilesTable.type.enumValues),
navigable: z.boolean(),
private: z.boolean(),
order: z.number().finite(),
timestamp: z.string(),
}));
export type ProjectType = z.infer<typeof Project>;
export type ProjectItemType = ProjectType[number];