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:
35
types.ts
Normal file
35
types.ts
Normal 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';
|
||||
Reference in New Issue
Block a user