- 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
50 lines
1.9 KiB
TypeScript
50 lines
1.9 KiB
TypeScript
import type { Document } from './Document';
|
|
export declare class Directives {
|
|
static defaultYaml: Directives['yaml'];
|
|
static defaultTags: Directives['tags'];
|
|
yaml: {
|
|
version: '1.1' | '1.2' | 'next';
|
|
explicit?: boolean;
|
|
};
|
|
tags: Record<string, string>;
|
|
/**
|
|
* The directives-end/doc-start marker `---`. If `null`, a marker may still be
|
|
* included in the document's stringified representation.
|
|
*/
|
|
docStart: true | null;
|
|
/** The doc-end marker `...`. */
|
|
docEnd: boolean;
|
|
/**
|
|
* Used when parsing YAML 1.1, where:
|
|
* > If the document specifies no directives, it is parsed using the same
|
|
* > settings as the previous document. If the document does specify any
|
|
* > directives, all directives of previous documents, if any, are ignored.
|
|
*/
|
|
private atNextDocument?;
|
|
constructor(yaml?: Directives['yaml'], tags?: Directives['tags']);
|
|
clone(): Directives;
|
|
/**
|
|
* During parsing, get a Directives instance for the current document and
|
|
* update the stream state according to the current version's spec.
|
|
*/
|
|
atDocument(): Directives;
|
|
/**
|
|
* @param onError - May be called even if the action was successful
|
|
* @returns `true` on success
|
|
*/
|
|
add(line: string, onError: (offset: number, message: string, warning?: boolean) => void): boolean;
|
|
/**
|
|
* Resolves a tag, matching handles to those defined in %TAG directives.
|
|
*
|
|
* @returns Resolved tag, which may also be the non-specific tag `'!'` or a
|
|
* `'!local'` tag, or `null` if unresolvable.
|
|
*/
|
|
tagName(source: string, onError: (message: string) => void): string | null;
|
|
/**
|
|
* Given a fully resolved tag, returns its printable string form,
|
|
* taking into account current tag prefixes and defaults.
|
|
*/
|
|
tagString(tag: string): string;
|
|
toString(doc?: Document): string;
|
|
}
|