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,3 @@
components
build
node_modules

View File

@@ -0,0 +1,5 @@
1.1.0 / 2012-12-29
==================
* add Oxford comma support

View File

@@ -0,0 +1,14 @@
build: components index.js
@component build --dev
components: component.json
@component install --dev
clean:
rm -fr build components template.js
test:
@./node_modules/.bin/mocha --require should
.PHONY: clean test

View File

@@ -0,0 +1,54 @@
# join
Join a list in a nice human friendly way.
## Installation
$ component install component/join
## API
- [join(arr)](#joinarr)
- [join(arr, str)](#joinarr-str)
- [join(arr, str) with Oxford comma](#joinarr-str-with-oxford-comma)
<a name=""></a>
<a name="joinarr"></a>
# join(arr)
should default to "and".
```js
join(['foo', 'bar']).should.equal('foo and bar');
```
<a name="joinarr-str"></a>
# join(arr, str)
should join.
```js
join([], 'and').should.equal('');
join(['foo'], 'and').should.equal('foo');
join(['foo', 'bar'], 'and').should.equal('foo and bar');
join(['foo', 'bar', 'baz'], 'or').should.equal('foo, bar or baz');
```
<a name="joinarr-str-with-oxford-comma"></a>
# join(arr, str) with Oxford comma
should remove comma with less than 3 items.
```js
join([], ', or').should.equal('');
join(['foo'], ', or').should.equal('foo');
join(['foo', 'bar'], ', or').should.equal('foo or bar');
```
should join with 3 or more items.
```js
join(['foo', 'bar', 'baz'], ', and').should.equal('foo, bar, and baz');
```
## License
MIT

View File

@@ -0,0 +1,13 @@
{
"name": "join",
"repo": "component/join",
"description": "Join a list",
"version": "1.1.0",
"keywords": ["join", "list"],
"dependencies": {},
"development": {},
"license": "MIT",
"scripts": [
"index.js"
]
}

View File

@@ -0,0 +1,28 @@
/**
* Join `arr` with the trailing `str` defaulting to "and",
* and `sep` string defaulting to ", ".
*
* @param {Array} arr
* @param {String} str
* @param {String} sep
* @return {String}
* @api public
*/
module.exports = function(arr, str, sep){
str = str || 'and';
sep = sep || ', ';
if (arr.length < 2) return arr[0] || '';
var oxford = str.slice(0, 2) === sep;
if (!oxford) {
str = ' ' + str;
} else if (arr.length == 2) {
str = str.slice(1);
}
return arr.slice(0, -1).join(sep) + str + ' ' + arr[arr.length - 1];
};

View File

@@ -0,0 +1,18 @@
{
"name": "join-component",
"repo": "component/join",
"description": "Join a list",
"version": "1.1.0",
"keywords": [],
"dependencies": {},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"license": "MIT",
"component": {
"scripts": {
"join/index.js": "index.js"
}
}
}

View File

@@ -0,0 +1,29 @@
var join = require('..');
describe('join(arr)', function(){
it('should default to "and"', function(){
join(['foo', 'bar']).should.equal('foo and bar');
})
})
describe('join(arr, str)', function(){
it('should join', function(){
join([], 'and').should.equal('');
join(['foo'], 'and').should.equal('foo');
join(['foo', 'bar'], 'and').should.equal('foo and bar');
join(['foo', 'bar', 'baz'], 'or').should.equal('foo, bar or baz');
})
})
describe('join(arr, str) with Oxford comma', function() {
it('should remove comma with less than 3 items', function() {
join([], ', or').should.equal('');
join(['foo'], ', or').should.equal('foo');
join(['foo', 'bar'], ', or').should.equal('foo or bar');
})
it('should join with 3 or more items', function() {
join(['foo', 'bar', 'baz'], ', and').should.equal('foo, bar, and baz');
})
})