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"}

View File

@@ -0,0 +1,3 @@
export declare const dependencyConfig: (folder: string, userConfig?: import("@react-native-community/cli-types").IOSDependencyParams | null | undefined) => import("@react-native-community/cli-types").IOSDependencyConfig | null;
export declare const projectConfig: (folder: string, userConfig: import("@react-native-community/cli-types").IOSProjectParams) => import("@react-native-community/cli-types").IOSProjectConfig | null;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6LAA6C,CAAC;AAC3E,eAAO,MAAM,aAAa,mKAA0C,CAAC"}

View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.projectConfig = exports.dependencyConfig = void 0;
function _cliPlatformApple() {
const data = require("@react-native-community/cli-platform-apple");
_cliPlatformApple = function () {
return data;
};
return data;
}
const dependencyConfig = (0, _cliPlatformApple().getDependencyConfig)({
platformName: 'ios'
});
exports.dependencyConfig = dependencyConfig;
const projectConfig = (0, _cliPlatformApple().getProjectConfig)({
platformName: 'ios'
});
exports.projectConfig = projectConfig;
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["dependencyConfig","getDependencyConfig","platformName","projectConfig","getProjectConfig"],"sources":["../../src/config/index.ts"],"sourcesContent":["import {\n getDependencyConfig,\n getProjectConfig,\n} from '@react-native-community/cli-platform-apple';\n\nexport const dependencyConfig = getDependencyConfig({platformName: 'ios'});\nexport const projectConfig = getProjectConfig({platformName: 'ios'});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKO,MAAMA,gBAAgB,GAAG,IAAAC,uCAAmB,EAAC;EAACC,YAAY,EAAE;AAAK,CAAC,CAAC;AAAC;AACpE,MAAMC,aAAa,GAAG,IAAAC,oCAAgB,EAAC;EAACF,YAAY,EAAE;AAAK,CAAC,CAAC;AAAC"}

View File

@@ -0,0 +1,7 @@
/**
* iOS platform files
*/
export { default as commands } from './commands';
export { findPodfilePaths, getArchitecture, installPods, } from '@react-native-community/cli-platform-apple';
export { dependencyConfig, projectConfig } from './config';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,GACZ,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC"}

View File

@@ -0,0 +1,53 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "commands", {
enumerable: true,
get: function () {
return _commands.default;
}
});
Object.defineProperty(exports, "dependencyConfig", {
enumerable: true,
get: function () {
return _config.dependencyConfig;
}
});
Object.defineProperty(exports, "findPodfilePaths", {
enumerable: true,
get: function () {
return _cliPlatformApple().findPodfilePaths;
}
});
Object.defineProperty(exports, "getArchitecture", {
enumerable: true,
get: function () {
return _cliPlatformApple().getArchitecture;
}
});
Object.defineProperty(exports, "installPods", {
enumerable: true,
get: function () {
return _cliPlatformApple().installPods;
}
});
Object.defineProperty(exports, "projectConfig", {
enumerable: true,
get: function () {
return _config.projectConfig;
}
});
var _commands = _interopRequireDefault(require("./commands"));
function _cliPlatformApple() {
const data = require("@react-native-community/cli-platform-apple");
_cliPlatformApple = function () {
return data;
};
return data;
}
var _config = require("./config");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * iOS platform files\n */\n\nexport {default as commands} from './commands';\n\nexport {\n findPodfilePaths,\n getArchitecture,\n installPods,\n} from '@react-native-community/cli-platform-apple';\n\nexport {dependencyConfig, projectConfig} from './config';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAMA;AAAyD"}