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,27 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
declare const _default: {
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: import("@react-native-community/cli-platform-apple/build/commands/buildCommand/buildOptions").BuildFlags) => Promise<string>;
examples: {
desc: string;
cmd: string;
}[];
options: ({
name: string;
description: string;
parse?: undefined;
} | {
name: string;
description: string;
parse: (val: string) => string[];
})[];
};
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/buildIOS/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;AAOH,wBAWE"}

View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _cliPlatformApple() {
const data = require("@react-native-community/cli-platform-apple");
_cliPlatformApple = function () {
return data;
};
return data;
}
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var _default = {
name: 'build-ios',
description: 'builds your app for iOS platform',
func: (0, _cliPlatformApple().createBuild)({
platformName: 'ios'
}),
examples: [{
desc: 'Build the app for all iOS devices in Release mode',
cmd: 'npx react-native build-ios --mode "Release"'
}],
options: (0, _cliPlatformApple().getBuildOptions)({
platformName: 'ios'
})
};
exports.default = _default;
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["name","description","func","createBuild","platformName","examples","desc","cmd","options","getBuildOptions"],"sources":["../../../src/commands/buildIOS/index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport {\n getBuildOptions,\n createBuild,\n} from '@react-native-community/cli-platform-apple';\n\nexport default {\n name: 'build-ios',\n description: 'builds your app for iOS platform',\n func: createBuild({platformName: 'ios'}),\n examples: [\n {\n desc: 'Build the app for all iOS devices in Release mode',\n cmd: 'npx react-native build-ios --mode \"Release\"',\n },\n ],\n options: getBuildOptions({platformName: 'ios'}),\n};\n"],"mappings":";;;;;;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,eAae;EACbA,IAAI,EAAE,WAAW;EACjBC,WAAW,EAAE,kCAAkC;EAC/CC,IAAI,EAAE,IAAAC,+BAAW,EAAC;IAACC,YAAY,EAAE;EAAK,CAAC,CAAC;EACxCC,QAAQ,EAAE,CACR;IACEC,IAAI,EAAE,mDAAmD;IACzDC,GAAG,EAAE;EACP,CAAC,CACF;EACDC,OAAO,EAAE,IAAAC,mCAAe,EAAC;IAACL,YAAY,EAAE;EAAK,CAAC;AAChD,CAAC;AAAA"}

View File

@@ -0,0 +1,57 @@
declare const _default: ({
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: {
interactive: boolean;
}) => Promise<void>;
options: {
name: string;
description: string;
}[];
} | {
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: import("@react-native-community/cli-platform-apple/build/commands/runCommand/createRun").FlagsT) => Promise<void>;
examples: {
desc: string;
cmd: string;
}[];
options: (false | {
name: string;
description: string;
parse?: undefined;
} | {
name: string;
description: string;
parse: (val: string) => string[];
} | {
name: string;
default: string | number;
parse: NumberConstructor;
description?: undefined;
} | {
name: string;
description: string;
default: string | undefined;
parse?: undefined;
})[];
} | {
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: import("@react-native-community/cli-platform-apple/build/commands/buildCommand/buildOptions").BuildFlags) => Promise<string>;
examples: {
desc: string;
cmd: string;
}[];
options: ({
name: string;
description: string;
parse?: undefined;
} | {
name: string;
description: string;
parse: (val: string) => string[];
})[];
})[];
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAA0C"}

View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _logIOS = _interopRequireDefault(require("./logIOS"));
var _runIOS = _interopRequireDefault(require("./runIOS"));
var _buildIOS = _interopRequireDefault(require("./buildIOS"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = [_logIOS.default, _runIOS.default, _buildIOS.default];
exports.default = _default;
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["logIOS","runIOS","buildIOS"],"sources":["../../src/commands/index.ts"],"sourcesContent":["import logIOS from './logIOS';\nimport runIOS from './runIOS';\nimport buildIOS from './buildIOS';\n\nexport default [logIOS, runIOS, buildIOS];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAkC;AAAA,eAEnB,CAACA,eAAM,EAAEC,eAAM,EAAEC,iBAAQ,CAAC;AAAA"}

View File

@@ -0,0 +1,20 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
declare const _default: {
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: {
interactive: boolean;
}) => Promise<void>;
options: {
name: string;
description: string;
}[];
};
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/logIOS/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;;;;;;;;;;AAOH,wBAKE"}

View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _cliPlatformApple() {
const data = require("@react-native-community/cli-platform-apple");
_cliPlatformApple = function () {
return data;
};
return data;
}
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var _default = {
name: 'log-ios',
description: 'starts iOS device syslog tail',
func: (0, _cliPlatformApple().createLog)({
platformName: 'ios'
}),
options: (0, _cliPlatformApple().getLogOptions)({
platformName: 'ios'
})
};
exports.default = _default;
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["name","description","func","createLog","platformName","options","getLogOptions"],"sources":["../../../src/commands/logIOS/index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport {\n createLog,\n getLogOptions,\n} from '@react-native-community/cli-platform-apple';\n\nexport default {\n name: 'log-ios',\n description: 'starts iOS device syslog tail',\n func: createLog({platformName: 'ios'}),\n options: getLogOptions({platformName: 'ios'}),\n};\n"],"mappings":";;;;;;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,eAae;EACbA,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,+BAA+B;EAC5CC,IAAI,EAAE,IAAAC,6BAAS,EAAC;IAACC,YAAY,EAAE;EAAK,CAAC,CAAC;EACtCC,OAAO,EAAE,IAAAC,iCAAa,EAAC;IAACF,YAAY,EAAE;EAAK,CAAC;AAC9C,CAAC;AAAA"}

View File

@@ -0,0 +1,37 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
declare const _default: {
name: string;
description: string;
func: (_: string[], ctx: import("@react-native-community/cli-types").Config, args: import("@react-native-community/cli-platform-apple/build/commands/runCommand/createRun").FlagsT) => Promise<void>;
examples: {
desc: string;
cmd: string;
}[];
options: (false | {
name: string;
description: string;
parse?: undefined;
} | {
name: string;
description: string;
parse: (val: string) => string[];
} | {
name: string;
default: string | number;
parse: NumberConstructor;
description?: undefined;
} | {
name: string;
description: string;
default: string | undefined;
parse?: undefined;
})[];
};
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/runIOS/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,wBAmBE"}

View File

@@ -0,0 +1,43 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _cliPlatformApple() {
const data = require("@react-native-community/cli-platform-apple");
_cliPlatformApple = function () {
return data;
};
return data;
}
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var _default = {
name: 'run-ios',
description: 'builds your app and starts it on iOS simulator',
func: (0, _cliPlatformApple().createRun)({
platformName: 'ios'
}),
examples: [{
desc: 'Run on a different simulator, e.g. iPhone SE (2nd generation)',
cmd: 'npx react-native run-ios --simulator "iPhone SE (2nd generation)"'
}, {
desc: "Run on a connected device, e.g. Max's iPhone",
cmd: 'npx react-native run-ios --device "Max\'s iPhone"'
}, {
desc: 'Run on the AppleTV simulator',
cmd: 'npx react-native run-ios --simulator "Apple TV" --scheme "helloworld-tvOS"'
}],
options: (0, _cliPlatformApple().getRunOptions)({
platformName: 'ios'
})
};
exports.default = _default;
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["name","description","func","createRun","platformName","examples","desc","cmd","options","getRunOptions"],"sources":["../../../src/commands/runIOS/index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport {\n createRun,\n getRunOptions,\n} from '@react-native-community/cli-platform-apple';\n\nexport default {\n name: 'run-ios',\n description: 'builds your app and starts it on iOS simulator',\n func: createRun({platformName: 'ios'}),\n examples: [\n {\n desc: 'Run on a different simulator, e.g. iPhone SE (2nd generation)',\n cmd: 'npx react-native run-ios --simulator \"iPhone SE (2nd generation)\"',\n },\n {\n desc: \"Run on a connected device, e.g. Max's iPhone\",\n cmd: 'npx react-native run-ios --device \"Max\\'s iPhone\"',\n },\n {\n desc: 'Run on the AppleTV simulator',\n cmd: 'npx react-native run-ios --simulator \"Apple TV\" --scheme \"helloworld-tvOS\"',\n },\n ],\n options: getRunOptions({platformName: 'ios'}),\n};\n"],"mappings":";;;;;;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,eAae;EACbA,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,gDAAgD;EAC7DC,IAAI,EAAE,IAAAC,6BAAS,EAAC;IAACC,YAAY,EAAE;EAAK,CAAC,CAAC;EACtCC,QAAQ,EAAE,CACR;IACEC,IAAI,EAAE,+DAA+D;IACrEC,GAAG,EAAE;EACP,CAAC,EACD;IACED,IAAI,EAAE,8CAA8C;IACpDC,GAAG,EAAE;EACP,CAAC,EACD;IACED,IAAI,EAAE,8BAA8B;IACpCC,GAAG,EAAE;EACP,CAAC,CACF;EACDC,OAAO,EAAE,IAAAC,iCAAa,EAAC;IAACL,YAAY,EAAE;EAAK,CAAC;AAC9C,CAAC;AAAA"}