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

27
smart-app-city/frontend/node_modules/md5hex/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,27 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

22
smart-app-city/frontend/node_modules/md5hex/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 650 Industries
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

27
smart-app-city/frontend/node_modules/md5hex/README.md generated vendored Normal file
View File

@@ -0,0 +1,27 @@
# md5hex
Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer
```js
// Basic usage
var hexHash = md5hex('A string you want to hash'); // (You can also pass in a buffer)
// 'afb6e4ac5196aa6cddcfbd8fe26cf65b'
// Optional second argument lets you trim the length
var hexHash = md5hex('A string you want to hash', 6);
// 'afb6e4'
// Or you can give an options object as the second argument to add a salt
var hexHash = md5hex('A string you want to prefix with a salt', {salt: 'MYSALT!'})
// Same as md5hex('MYSALT!' + 'A string you want to prefix with a salt')
var hexHash = md5hex('A string you want to prefix with a salt', {saltPrefix: 'SALT!', saltSuffix: 'MORESALT!'})
// Same as md5hex('SALT!' + 'A string you want to prefix with a salt' + 'MORESALT!')
// And control the length through the options object
var hexHash = md5hex('A string you want a short hash of', {length: 6});
// '30540f'
```

33
smart-app-city/frontend/node_modules/md5hex/index.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
var crypto = require('crypto');
module.exports = function (stringOrBuffer, opts) {
var md5sum = crypto.createHash('md5');
if (typeof(opts) == 'number') {
opts = {length: opts};
}
opts = opts || {};
if (opts.salt) {
md5sum.update(opts.salt);
}
if (opts.saltPrefix) {
md5sum.update(opts.saltPrefix);
}
md5sum.update(stringOrBuffer);
if (opts.saltSuffix) {
md5sum.update(opts.saltSuffix);
}
var digest = md5sum.digest('hex');
if (opts.length == null) {
return digest;
} else {
return digest.substr(0, opts.length);
}
};

View File

@@ -0,0 +1,26 @@
{
"name": "md5hex",
"version": "1.0.0",
"description": "Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/650Industries/md5hex.git"
},
"keywords": [
"md5hex",
"md5",
"hex",
"hash",
"crypto"
],
"author": "exponent.team@gmail.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/650Industries/md5hex/issues"
},
"homepage": "https://github.com/650Industries/md5hex#readme"
}