- 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
28 lines
1.7 KiB
TypeScript
28 lines
1.7 KiB
TypeScript
import type { PackageManagerOptions } from '../PackageManager';
|
|
import { BunPackageManager } from '../node/BunPackageManager';
|
|
import { NpmPackageManager } from '../node/NpmPackageManager';
|
|
import { PnpmPackageManager } from '../node/PnpmPackageManager';
|
|
import { YarnPackageManager } from '../node/YarnPackageManager';
|
|
export { resolveWorkspaceRoot } from 'resolve-workspace-root';
|
|
export type NodePackageManager = NpmPackageManager | PnpmPackageManager | YarnPackageManager | BunPackageManager;
|
|
export type NodePackageManagerForProject = PackageManagerOptions & Partial<Record<NodePackageManager['name'], boolean>>;
|
|
export declare const NPM_LOCK_FILE = "package-lock.json";
|
|
export declare const YARN_LOCK_FILE = "yarn.lock";
|
|
export declare const PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
export declare const BUN_LOCK_FILE = "bun.lockb";
|
|
export declare const BUN_TEXT_LOCK_FILE = "bun.lock";
|
|
/** The order of the package managers to use when resolving automatically */
|
|
export declare const RESOLUTION_ORDER: NodePackageManager['name'][];
|
|
/**
|
|
* Resolve the used node package manager for a project by checking the lockfile.
|
|
* This also tries to resolve the workspace root, if its part of a monorepo.
|
|
* Optionally, provide a preferred packager to only resolve that one specifically.
|
|
*/
|
|
export declare function resolvePackageManager(projectRoot: string, preferredManager?: NodePackageManager['name']): NodePackageManager['name'] | null;
|
|
/**
|
|
* This creates a Node package manager from the provided options.
|
|
* If these options are not provided, it will infer the package manager from lockfiles.
|
|
* When no package manager is found, it falls back to npm.
|
|
*/
|
|
export declare function createForProject(projectRoot: string, options?: NodePackageManagerForProject): NodePackageManager;
|