- 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
35 lines
662 B
JavaScript
35 lines
662 B
JavaScript
'use strict';
|
|
|
|
|
|
module.exports = {
|
|
|
|
PNG_SIGNATURE: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a],
|
|
|
|
TYPE_IHDR: 0x49484452,
|
|
TYPE_IEND: 0x49454e44,
|
|
TYPE_IDAT: 0x49444154,
|
|
TYPE_PLTE: 0x504c5445,
|
|
TYPE_tRNS: 0x74524e53, // eslint-disable-line camelcase
|
|
TYPE_gAMA: 0x67414d41, // eslint-disable-line camelcase
|
|
|
|
// color-type bits
|
|
COLORTYPE_GRAYSCALE: 0,
|
|
COLORTYPE_PALETTE: 1,
|
|
COLORTYPE_COLOR: 2,
|
|
COLORTYPE_ALPHA: 4, // e.g. grayscale and alpha
|
|
|
|
// color-type combinations
|
|
COLORTYPE_PALETTE_COLOR: 3,
|
|
COLORTYPE_COLOR_ALPHA: 6,
|
|
|
|
COLORTYPE_TO_BPP_MAP: {
|
|
0: 1,
|
|
2: 3,
|
|
3: 1,
|
|
4: 2,
|
|
6: 4
|
|
},
|
|
|
|
GAMMA_DIVISION: 100000
|
|
};
|