- 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
56 lines
1.3 KiB
TypeScript
56 lines
1.3 KiB
TypeScript
import { Source } from '../language/source';
|
|
|
|
/**
|
|
* Strips characters that are not significant to the validity or execution
|
|
* of a GraphQL document:
|
|
* - UnicodeBOM
|
|
* - WhiteSpace
|
|
* - LineTerminator
|
|
* - Comment
|
|
* - Comma
|
|
* - BlockString indentation
|
|
*
|
|
* Note: It is required to have a delimiter character between neighboring
|
|
* non-punctuator tokens and this function always uses single space as delimiter.
|
|
*
|
|
* It is guaranteed that both input and output documents if parsed would result
|
|
* in the exact same AST except for nodes location.
|
|
*
|
|
* Warning: It is guaranteed that this function will always produce stable results.
|
|
* However, it's not guaranteed that it will stay the same between different
|
|
* releases due to bugfixes or changes in the GraphQL specification.
|
|
*
|
|
* Query example:
|
|
*
|
|
* query SomeQuery($foo: String!, $bar: String) {
|
|
* someField(foo: $foo, bar: $bar) {
|
|
* a
|
|
* b {
|
|
* c
|
|
* d
|
|
* }
|
|
* }
|
|
* }
|
|
*
|
|
* Becomes:
|
|
*
|
|
* query SomeQuery($foo:String!$bar:String){someField(foo:$foo bar:$bar){a b{c d}}}
|
|
*
|
|
* SDL example:
|
|
*
|
|
* """
|
|
* Type description
|
|
* """
|
|
* type Foo {
|
|
* """
|
|
* Field description
|
|
* """
|
|
* bar: String
|
|
* }
|
|
*
|
|
* Becomes:
|
|
*
|
|
* """Type description""" type Foo{"""Field description""" bar:String}
|
|
*/
|
|
export function stripIgnoredCharacters(source: string | Source): string;
|