feat: Initialize GreenLens project with core dependencies and structure

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.
This commit is contained in:
2026-01-28 11:43:24 +01:00
parent 85960de05f
commit 024eec6686
20 changed files with 2247 additions and 8 deletions

35
types.ts Normal file
View File

@@ -0,0 +1,35 @@
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';