40 lines
831 B
TypeScript
40 lines
831 B
TypeScript
export type MoodType = "all" | "focus" | "night" | "spark" | "calm" | "visual";
|
|
|
|
export interface MoodConfig {
|
|
id: MoodType;
|
|
label: string;
|
|
sublabel: string;
|
|
iconName: string;
|
|
color: string;
|
|
bgColor: string;
|
|
stampText: string;
|
|
}
|
|
|
|
export type PostType = "notebook" | "sticky" | "polaroid" | "code" | "audio";
|
|
|
|
export interface JournalPost {
|
|
id: string;
|
|
type: PostType;
|
|
date: string;
|
|
timestamp: string;
|
|
mood: MoodType;
|
|
moodLabel: string;
|
|
title?: string;
|
|
content: string;
|
|
marginNotes?: string[];
|
|
tags: string[];
|
|
likes: number;
|
|
highlightWords?: string[];
|
|
authorNote?: string;
|
|
|
|
// Specific properties
|
|
imageUrl?: string;
|
|
imageCaption?: string;
|
|
codeSnippet?: string;
|
|
codeLanguage?: string;
|
|
audioDuration?: string;
|
|
audioTitle?: string;
|
|
audioUrl?: string;
|
|
stampedText?: string;
|
|
}
|