feat(smart-app): implement complete mobile app MVP

- App.tsx: full navigation (Auth stack + Main tabs with 5 screens)
- Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen
- HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors
- MapScreen: interactive map with layer toggles (6 layers)
- MarketplaceScreen: categories (6), products (5), search
- ChatScreen: AI chat with quick prompts (4), bot responses
- ProfileScreen: user info, stats, menu (9 items), logout
- AlertsScreen: alert list with severity, acknowledge
- SensorsScreen: sensor list with type filters (6 types), search
- ZonesScreen: zone cards with stats
- SettingsScreen: language picker (FR/EN/ES/DE), privacy, about
- Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n
- Hooks: useSensors, useAlerts, useNotifications, useLocation
- Components: Card, Button, LoadingSpinner, ErrorBoundary, Header
- Services: iotService, notificationService (with axios API client)
- Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN)
- Theme: colors.ts with full design system (Blue Ocean palette)
- Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
This commit is contained in:
Eric FELIXINE
2026-06-01 18:00:35 -04:00
parent 08ca495bde
commit e30ae8ed09
35578 changed files with 3703534 additions and 43 deletions

View File

@@ -0,0 +1,139 @@
// Type definitions for non-npm package W3C Image Capture 1.0
// Project: https://www.w3.org/TR/image-capture/
// Definitions by: Cosium <https://github.com/cosium>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
declare module 'image-capture';
declare class ImageCapture {
constructor(videoTrack: MediaStreamTrack);
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
getPhotoCapabilities(): Promise<PhotoCapabilities>;
getPhotoSettings(): Promise<PhotoSettings>;
grabFrame(): Promise<ImageBitmap>;
readonly track: MediaStreamTrack;
}
interface PhotoCapabilities {
readonly redEyeReduction: RedEyeReduction;
readonly imageHeight: MediaSettingsRange;
readonly imageWidth: MediaSettingsRange;
readonly fillLightMode: FillLightMode[];
}
interface PhotoSettings {
fillLightMode?: FillLightMode;
imageHeight?: number;
imageWidth?: number;
redEyeReduction?: boolean;
}
interface MediaSettingsRange {
readonly max: number;
readonly min: number;
readonly step: number;
}
type RedEyeReduction = 'never' | 'always' | 'controllable';
type FillLightMode = 'auto' | 'off' | 'flash';
interface MediaTrackCapabilities {
whiteBalanceMode: MeteringMode[];
exposureMode: MeteringMode[];
focusMode: MeteringMode[];
exposureCompensation: MediaSettingsRange;
colorTemperature: MediaSettingsRange;
iso: MediaSettingsRange;
brightness: MediaSettingsRange;
contrast: MediaSettingsRange;
saturation: MediaSettingsRange;
sharpness: MediaSettingsRange;
focusDistance: MediaSettingsRange;
zoom: MediaSettingsRange;
torch: boolean;
}
declare namespace W3C {
type ConstrainPoint2D = Point2D[] | ConstrainPoint2DParameters;
}
interface MediaTrackConstraintSet {
whiteBalanceMode?: W3C.ConstrainString;
exposureMode?: W3C.ConstrainString;
focusMode?: W3C.ConstrainString;
pointsOfInterest?: W3C.ConstrainPoint2D;
exposureCompensation?: W3C.ConstrainDouble;
colorTemperature?: W3C.ConstrainDouble;
iso?: W3C.ConstrainDouble;
brightness?: W3C.ConstrainDouble;
contrast?: W3C.ConstrainDouble;
saturation?: W3C.ConstrainDouble;
sharpness?: W3C.ConstrainDouble;
focusDistance?: W3C.ConstrainDouble;
zoom?: W3C.ConstrainDouble;
torch?: W3C.ConstrainBoolean;
}
interface MediaTrackSettings {
whiteBalanceMode: MeteringMode;
exposureMode: MeteringMode;
focusMode: MeteringMode;
pointsOfInterest: Point2D[];
exposureCompensation: number;
colorTemperature: number;
iso: number;
brightness: number;
contrast: number;
saturation: number;
sharpness: number;
focusDistance: number;
zoom: number;
torch: boolean;
}
interface MediaTrackSupportedConstraints {
whiteBalanceMode: boolean;
exposureMode: boolean;
focusMode: boolean;
pointsOfInterest: boolean;
exposureCompensation: boolean;
colorTemperature: boolean;
iso: boolean;
brightness: boolean;
contrast: boolean;
saturation: boolean;
sharpness: boolean;
focusDistance: boolean;
zoom: boolean;
torch: boolean;
}
interface ConstrainPoint2DParameters {
exact: Point2D[];
ideal: Point2D[];
}
type MeteringMode = 'none' | 'manual' | 'single-shot' | 'continuous';
interface Point2D {
x: number;
y: number;
}