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,8 @@
import { Config } from '@react-native-community/cli-types';
declare const _default: {
name: string;
description: string;
func: (_argv: string[], ctx: Config) => Promise<void>;
};
export default _default;
//# sourceMappingURL=config.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAmB,MAAM,mCAAmC,CAAC;;;;kBAuBrD,MAAM,EAAE,OAAO,MAAM;;AAH3C,wBAME"}

View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function isValidRNDependency(config) {
return Object.keys(config.platforms).filter(key => Boolean(config.platforms[key])).length !== 0;
}
function filterConfig(config) {
const filtered = {
...config
};
Object.keys(filtered.dependencies).forEach(item => {
if (!isValidRNDependency(filtered.dependencies[item])) {
delete filtered.dependencies[item];
}
});
return filtered;
}
var _default = {
name: 'config',
description: 'Print CLI configuration',
func: async (_argv, ctx) => {
console.log(JSON.stringify(filterConfig(ctx), null, 2));
}
};
exports.default = _default;
//# sourceMappingURL=config.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["isValidRNDependency","config","Object","keys","platforms","filter","key","Boolean","length","filterConfig","filtered","dependencies","forEach","item","name","description","func","_argv","ctx","console","log","JSON","stringify"],"sources":["../../src/commands/config.ts"],"sourcesContent":["import {Config, DependencyConfig} from '@react-native-community/cli-types';\n\nfunction isValidRNDependency(config: DependencyConfig) {\n return (\n Object.keys(config.platforms).filter((key) =>\n Boolean(config.platforms[key]),\n ).length !== 0\n );\n}\n\nfunction filterConfig(config: Config) {\n const filtered = {...config};\n Object.keys(filtered.dependencies).forEach((item) => {\n if (!isValidRNDependency(filtered.dependencies[item])) {\n delete filtered.dependencies[item];\n }\n });\n return filtered;\n}\n\nexport default {\n name: 'config',\n description: 'Print CLI configuration',\n func: async (_argv: string[], ctx: Config) => {\n console.log(JSON.stringify(filterConfig(ctx), null, 2));\n },\n};\n"],"mappings":";;;;;;AAEA,SAASA,mBAAmB,CAACC,MAAwB,EAAE;EACrD,OACEC,MAAM,CAACC,IAAI,CAACF,MAAM,CAACG,SAAS,CAAC,CAACC,MAAM,CAAEC,GAAG,IACvCC,OAAO,CAACN,MAAM,CAACG,SAAS,CAACE,GAAG,CAAC,CAAC,CAC/B,CAACE,MAAM,KAAK,CAAC;AAElB;AAEA,SAASC,YAAY,CAACR,MAAc,EAAE;EACpC,MAAMS,QAAQ,GAAG;IAAC,GAAGT;EAAM,CAAC;EAC5BC,MAAM,CAACC,IAAI,CAACO,QAAQ,CAACC,YAAY,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAK;IACnD,IAAI,CAACb,mBAAmB,CAACU,QAAQ,CAACC,YAAY,CAACE,IAAI,CAAC,CAAC,EAAE;MACrD,OAAOH,QAAQ,CAACC,YAAY,CAACE,IAAI,CAAC;IACpC;EACF,CAAC,CAAC;EACF,OAAOH,QAAQ;AACjB;AAAC,eAEc;EACbI,IAAI,EAAE,QAAQ;EACdC,WAAW,EAAE,yBAAyB;EACtCC,IAAI,EAAE,OAAOC,KAAe,EAAEC,GAAW,KAAK;IAC5CC,OAAO,CAACC,GAAG,CAACC,IAAI,CAACC,SAAS,CAACb,YAAY,CAACS,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;EACzD;AACF,CAAC;AAAA"}