Sets up the project using Vite, React, and TypeScript. Includes initial configuration for Tailwind CSS, Gemini API integration, and local storage management. Defines basic types for plant data and UI elements. The README is updated with local development instructions.
36 lines
697 B
TypeScript
36 lines
697 B
TypeScript
|
|
export interface CareInfo {
|
|
waterIntervalDays: number;
|
|
light: string;
|
|
temp: string;
|
|
}
|
|
|
|
export interface Plant {
|
|
id: string;
|
|
name: string;
|
|
botanicalName: string;
|
|
imageUri: string;
|
|
dateAdded: string; // Serialized Date
|
|
careInfo: CareInfo;
|
|
lastWatered: string; // Serialized Date
|
|
wateringHistory?: string[]; // Array of serialized dates
|
|
description?: string;
|
|
notificationsEnabled?: boolean;
|
|
}
|
|
|
|
export interface IdentificationResult {
|
|
name: string;
|
|
botanicalName: string;
|
|
confidence: number;
|
|
careInfo: CareInfo;
|
|
description?: string;
|
|
}
|
|
|
|
export enum Tab {
|
|
HOME = 'home',
|
|
SEARCH = 'search',
|
|
SETTINGS = 'settings',
|
|
}
|
|
|
|
export type Language = 'de' | 'en' | 'es';
|