- 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
51 lines
2.0 KiB
TypeScript
51 lines
2.0 KiB
TypeScript
/**
|
|
* Pick the value for each `key` property from `obj` and return each one in a new object.
|
|
* If `names` are given, use them in the new object, instead of `keys`.
|
|
*
|
|
* If any `key` was not found or its value was `undefined`, nothing will be picked for that key.
|
|
*
|
|
* @param obj Object to pick from
|
|
* @param keys Keys to pick
|
|
* @param names Optional names to use in the output object
|
|
* @returns A new object containing a each `name` property and the picked value, or `undefined` if no keys were picked.
|
|
*/
|
|
export declare function pickValues<T>(obj: T, keys: (keyof T)[], names?: string[]): Record<string, unknown> | undefined;
|
|
/**
|
|
* Components of a package reference.
|
|
*/
|
|
export type PackageRef = {
|
|
scope?: string;
|
|
name: string;
|
|
};
|
|
/**
|
|
* Options which control how package dependecies are located.
|
|
*/
|
|
export type FindPackageDependencyOptions = {
|
|
/**
|
|
* Optional starting directory for the search. Defaults to `process.cwd()`.
|
|
*/
|
|
startDir?: string;
|
|
/**
|
|
* Optional flag controlling whether symlinks can be found. Defaults to `true`.
|
|
* When `false`, and the package dependency directory is a symlink, it will not
|
|
* be found.
|
|
*/
|
|
allowSymlinks?: boolean;
|
|
/**
|
|
* Optional flag controlling whether to resolve symlinks. Defaults to `false`.
|
|
* Note that this flag has no effect if `allowSymlinks` is `false`.
|
|
*/
|
|
resolveSymlinks?: boolean;
|
|
};
|
|
/**
|
|
* Find the package dependency's directory, starting from the given directory
|
|
* and moving outward, through all parent directories.
|
|
*
|
|
* Package dependencies exist under 'node_modules/[`scope`]/[`name`]'.
|
|
*
|
|
* @param ref Package dependency reference
|
|
* @param options Options which control the search
|
|
* @returns Path to the package dependency's directory, or `undefined` if not found.
|
|
*/
|
|
export declare function findPackageDependencyDir(ref: string | PackageRef, options?: FindPackageDependencyOptions): string | undefined;
|
|
//# sourceMappingURL=findPackageDependencyDir.d.ts.map
|