- 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
63 lines
2.2 KiB
TypeScript
63 lines
2.2 KiB
TypeScript
import { Options } from "./options";
|
|
import { namedTypes } from "ast-types";
|
|
declare type Pos = namedTypes.Position;
|
|
declare type LineInfo = {
|
|
readonly line: string;
|
|
readonly indent: number;
|
|
readonly locked: boolean;
|
|
readonly sliceStart: number;
|
|
readonly sliceEnd: number;
|
|
};
|
|
export declare class Lines {
|
|
private infos;
|
|
readonly length: number;
|
|
readonly name: string | null;
|
|
private mappings;
|
|
private cachedSourceMap;
|
|
private cachedTabWidth;
|
|
constructor(infos: LineInfo[], sourceFileName?: string | null);
|
|
toString(options?: Options): string;
|
|
getSourceMap(sourceMapName: string, sourceRoot?: string): any;
|
|
bootstrapCharAt(pos: Pos): string;
|
|
charAt(pos: Pos): string;
|
|
stripMargin(width: number, skipFirstLine: boolean): Lines;
|
|
indent(by: number): Lines;
|
|
indentTail(by: number): Lines;
|
|
lockIndentTail(): Lines;
|
|
getIndentAt(line: number): number;
|
|
guessTabWidth(): number;
|
|
startsWithComment(): boolean;
|
|
isOnlyWhitespace(): boolean;
|
|
isPrecededOnlyByWhitespace(pos: Pos): boolean;
|
|
getLineLength(line: number): number;
|
|
nextPos(pos: Pos, skipSpaces?: boolean): boolean;
|
|
prevPos(pos: Pos, skipSpaces?: boolean): boolean;
|
|
firstPos(): {
|
|
line: number;
|
|
column: number;
|
|
};
|
|
lastPos(): {
|
|
line: number;
|
|
column: number;
|
|
};
|
|
skipSpaces(pos: Pos, backward?: boolean, modifyInPlace?: boolean): namedTypes.Position | null;
|
|
trimLeft(): Lines;
|
|
trimRight(): Lines;
|
|
trim(): Lines;
|
|
eachPos(callback: (pos: Pos) => any, startPos?: Pos, skipSpaces?: boolean): void;
|
|
bootstrapSlice(start: Pos, end: Pos): Lines;
|
|
slice(start?: Pos, end?: Pos): Lines;
|
|
bootstrapSliceString(start: Pos, end: Pos, options?: Options): string;
|
|
sliceString(start?: Pos, end?: Pos, options?: Options): string;
|
|
isEmpty(): boolean;
|
|
join(elements: (string | Lines)[]): Lines;
|
|
concat(...args: (string | Lines)[]): Lines;
|
|
}
|
|
export declare function countSpaces(spaces: any, tabWidth?: number): number;
|
|
/**
|
|
* @param {Object} options - Options object that configures printing.
|
|
*/
|
|
export declare function fromString(string: string | Lines, options?: Options): Lines;
|
|
export declare function concat(elements: any): Lines;
|
|
export {};
|