- 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
40 lines
2.7 KiB
TypeScript
40 lines
2.7 KiB
TypeScript
type ResolveWorkspaceOptions = Partial<{
|
|
packageWorkspaces: boolean;
|
|
pnpmWorkspaces: boolean;
|
|
}>;
|
|
/**
|
|
* Resolve the root of the workspace, using bun, npm, pnpm, or yarn.
|
|
* This will iterate the parent directories until it finds a workspace config,
|
|
* where the starting directory is considered part of the workspace.
|
|
* - For bun and npm - it looks for the [`workspaces` list](https://docs.npmjs.com/cli/configuring-npm/package-json#workspaces) in `package.json`
|
|
* - For yarn - it looks for the [`workspaces` list or config](https://yarnpkg.com/features/workspaces) in `package.json`
|
|
* - For pnpm - it looks for the [`pnpm-workspace.yaml`](https://pnpm.io/workspaces) file
|
|
*/
|
|
export declare function resolveWorkspaceRoot(startingDir?: string, options?: ResolveWorkspaceOptions): string | null;
|
|
/**
|
|
* Resolve the root of the workspace, using bun, npm, pnpm, or yarn.
|
|
* This will iterate the parent directories until it finds a workspace config,
|
|
* where the starting directory is considered part of the workspace.
|
|
* - For bun and npm - it looks for the [`workspaces` list](https://docs.npmjs.com/cli/configuring-npm/package-json#workspaces) in `package.json`
|
|
* - For yarn - it looks for the [`workspaces` list or config](https://yarnpkg.com/features/workspaces) in `package.json`
|
|
* - For pnpm - it looks for the [`pnpm-workspace.yaml`](https://pnpm.io/workspaces) file
|
|
*/
|
|
export declare function resolveWorkspaceRootAsync(startingDir?: string, options?: ResolveWorkspaceOptions): Promise<string | null>;
|
|
/**
|
|
* Get the configured workspace globs from the monorepo.
|
|
* - For bun and npm - it looks for the [`workspaces` list](https://docs.npmjs.com/cli/configuring-npm/package-json#workspaces) in `package.json`
|
|
* - For yarn - it looks for the [`workspaces` list or config](https://yarnpkg.com/features/workspaces) in `package.json`
|
|
* - For pnpm - it looks for the [`pnpm-workspace.yaml`](https://pnpm.io/workspaces) file
|
|
* @note The provided `rootDir` must be the root of the monorepo
|
|
*/
|
|
export declare function getWorkspaceGlobs(rootDir?: string, options?: ResolveWorkspaceOptions): string[] | null;
|
|
/**
|
|
* Get the configured workspace globs from the monorepo.
|
|
* - For bun and npm - it looks for the [`workspaces` list](https://docs.npmjs.com/cli/configuring-npm/package-json#workspaces) in `package.json`
|
|
* - For yarn - it looks for the [`workspaces` list or config](https://yarnpkg.com/features/workspaces) in `package.json`
|
|
* - For pnpm - it looks for the [`pnpm-workspace.yaml`](https://pnpm.io/workspaces) file
|
|
* @note The provided `rootDir` must be the root of the monorepo
|
|
*/
|
|
export declare function getWorkspaceGlobsAsync(rootDir?: string, options?: ResolveWorkspaceOptions): Promise<string[] | null>;
|
|
export {};
|