- 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
49 lines
1.4 KiB
JavaScript
Executable File
49 lines
1.4 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Basic node CLI script to resolve the native app entry file.
|
|
//
|
|
// Usage:
|
|
// node expo/scripts/resolveAppEntry.js path/to/project-root <platform> <format>
|
|
//
|
|
// Example:
|
|
// node expo/scripts/resolveAppEntry.js path/to/project-root/ android absolute
|
|
//
|
|
// Returns:
|
|
// The resolved entry file path.
|
|
//
|
|
// Limitations:
|
|
// Currently only supports android and ios.
|
|
|
|
const { resolveEntryPoint } = require('@expo/config/paths');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const projectRoot = process.argv[1];
|
|
const platform = process.argv[2];
|
|
const absolute = process.argv[3] === 'absolute';
|
|
|
|
if (!platform || !projectRoot) {
|
|
console.error(
|
|
'Usage: node expo/scripts/resolveAppEntry.js <projectRoot> <platform> <relative|absolute>'
|
|
);
|
|
process.exit(1);
|
|
}
|
|
|
|
const entry = resolveEntryPoint(projectRoot, { platform });
|
|
|
|
if (entry) {
|
|
// Prevent any logs from the app.config.js
|
|
// from being used in the output of this command.
|
|
console.clear();
|
|
// React Native's `PROJECT_ROOT` could be using a different root on MacOS (`/var` vs `/private/var`)
|
|
// We need to make sure to get the real path, `resolveEntryPoint` is using this too
|
|
console.log(
|
|
absolute
|
|
? path.resolve(entry)
|
|
: path.relative(fs.realpathSync(projectRoot), fs.realpathSync(entry))
|
|
);
|
|
} else {
|
|
console.error(`Error: Could not find entry file for project at: ${projectRoot}`);
|
|
process.exit(1);
|
|
}
|