Add sync, Tree, Markdown, content editor.

This commit is contained in:
2024-11-10 15:41:47 +01:00
parent 41951d7603
commit 721e7ff3db
32 changed files with 658 additions and 124 deletions

13
schemas/file.ts Normal file
View File

@@ -0,0 +1,13 @@
import { z } from "zod";
export const schema = z.object({
path: z.string(),
owner: z.number(),
title: z.string(),
type: z.enum(['folder', 'file', 'markdown', 'canvas']),
content: z.string(),
navigable: z.boolean(),
private: z.boolean(),
});
export type File = z.infer<typeof schema>;