- 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
47 lines
2.2 KiB
TypeScript
47 lines
2.2 KiB
TypeScript
import { ExportedConfig, Mod, ModPlatform } from '../Plugin.types';
|
|
export type BaseModOptions = {
|
|
/** Officially supports `'ios' | 'android'` (`ModPlatform`). Arbitrary strings are supported for adding out-of-tree platforms. */
|
|
platform: ModPlatform & string;
|
|
mod: string;
|
|
isProvider?: boolean;
|
|
skipEmptyMod?: boolean;
|
|
saveToInternal?: boolean;
|
|
/**
|
|
* If the mod supports introspection, and avoids making any filesystem modifications during compilation.
|
|
* By enabling, this mod, and all of its descendants will be run in introspection mode.
|
|
* This should only be used for static files like JSON or XML, and not for application files that require regexes,
|
|
* or complex static files that require other files to be generated like Xcode `.pbxproj`.
|
|
*/
|
|
isIntrospective?: boolean;
|
|
};
|
|
/**
|
|
* Plugin to intercept execution of a given `mod` with the given `action`.
|
|
* If an action was already set on the given `config` config for `mod`, then it
|
|
* will be provided to the `action` as `nextMod` when it's evaluated, otherwise
|
|
* `nextMod` will be an identity function.
|
|
*
|
|
* @param config exported config
|
|
* @param platform platform to target (ios or android)
|
|
* @param mod name of the platform function to intercept
|
|
* @param skipEmptyMod should skip running the action if there is no existing mod to intercept
|
|
* @param saveToInternal should save the results to `_internal.modResults`, only enable this when the results are pure JSON.
|
|
* @param isProvider should provide data up to the other mods.
|
|
* @param action method to run on the mod when the config is compiled
|
|
*/
|
|
export declare function withBaseMod<T>(config: ExportedConfig, { platform, mod, action, skipEmptyMod, isProvider, isIntrospective, saveToInternal, }: BaseModOptions & {
|
|
action: Mod<T>;
|
|
}): ExportedConfig;
|
|
/**
|
|
* Plugin to extend a mod function in the plugins config.
|
|
*
|
|
* @param config exported config
|
|
* @param platform platform to target (ios or android)
|
|
* @param mod name of the platform function to extend
|
|
* @param action method to run on the mod when the config is compiled
|
|
*/
|
|
export declare function withMod<T>(config: ExportedConfig, { platform, mod, action, }: {
|
|
platform: ModPlatform;
|
|
mod: string;
|
|
action: Mod<T>;
|
|
}): ExportedConfig;
|