- 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
30 lines
1.3 KiB
JavaScript
Executable File
30 lines
1.3 KiB
JavaScript
Executable File
'use strict';
|
|
|
|
exports.codes = {
|
|
EMPTY_STRING: 'Address must be a non-empty string',
|
|
FORBIDDEN_UNICODE: 'Address contains forbidden Unicode characters',
|
|
MULTIPLE_AT_CHAR: 'Address cannot contain more than one @ character',
|
|
MISSING_AT_CHAR: 'Address must contain one @ character',
|
|
EMPTY_LOCAL: 'Address local part cannot be empty',
|
|
ADDRESS_TOO_LONG: 'Address too long',
|
|
LOCAL_TOO_LONG: 'Address local part too long',
|
|
EMPTY_LOCAL_SEGMENT: 'Address local part contains empty dot-separated segment',
|
|
INVALID_LOCAL_CHARS: 'Address local part contains invalid character',
|
|
DOMAIN_NON_EMPTY_STRING: 'Domain must be a non-empty string',
|
|
DOMAIN_TOO_LONG: 'Domain too long',
|
|
DOMAIN_INVALID_UNICODE_CHARS: 'Domain contains forbidden Unicode characters',
|
|
DOMAIN_INVALID_CHARS: 'Domain contains invalid character',
|
|
DOMAIN_INVALID_TLDS_CHARS: 'Domain contains invalid tld character',
|
|
DOMAIN_SEGMENTS_COUNT: 'Domain lacks the minimum required number of segments',
|
|
DOMAIN_SEGMENTS_COUNT_MAX: 'Domain contains too many segments',
|
|
DOMAIN_FORBIDDEN_TLDS: 'Domain uses forbidden TLD',
|
|
DOMAIN_EMPTY_SEGMENT: 'Domain contains empty dot-separated segment',
|
|
DOMAIN_LONG_SEGMENT: 'Domain contains dot-separated segment that is too long'
|
|
};
|
|
|
|
|
|
exports.code = function (code) {
|
|
|
|
return { code, error: exports.codes[code] };
|
|
};
|