init commit

This commit is contained in:
Andrea
2026-03-20 16:56:03 +01:00
commit 6771126324
33 changed files with 7310 additions and 0 deletions

25
src/lib/editor.ts Normal file
View File

@@ -0,0 +1,25 @@
export type Note = {
id: string;
title: string;
content: string;
color: string;
date: Date;
images: ImageAttachment[];
files: FileAttachment[];
};
export type ImageAttachment = NoteAttachment & { kind: "image" };
export type FileAttachment = NoteAttachment & { kind: "file" };
interface NoteAttachment {
id: string;
name: string;
size: number;
mimeType: string;
previewUrl?: string;
}