- 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
67 lines
2.5 KiB
JavaScript
67 lines
2.5 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.createBuildPodfilePropsConfigPlugin = createBuildPodfilePropsConfigPlugin;
|
|
exports.updateIosBuildPropertiesFromConfig = updateIosBuildPropertiesFromConfig;
|
|
exports.updateIosBuildProperty = updateIosBuildProperty;
|
|
exports.withJsEnginePodfileProps = void 0;
|
|
function _iosPlugins() {
|
|
const data = require("../plugins/ios-plugins");
|
|
_iosPlugins = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
/**
|
|
* Creates a `withPodfileProperties` config-plugin based on given config to property mapping rules.
|
|
*
|
|
* The factory supports two modes from generic type inference
|
|
* ```ts
|
|
* // config-plugin without `props`, it will implicitly use the expo config as source config.
|
|
* createBuildPodfilePropsConfigPlugin<ExpoConfig>(): ConfigPlugin<void>;
|
|
*
|
|
* // config-plugin with a parameter `props: CustomType`, it will use the `props` as source config.
|
|
* createBuildPodfilePropsConfigPlugin<CustomType>(): ConfigPlugin<CustomType>;
|
|
* ```
|
|
*
|
|
* @param configToPropertyRules config to property mapping rules
|
|
* @param name the config plugin name
|
|
*/
|
|
function createBuildPodfilePropsConfigPlugin(configToPropertyRules, name) {
|
|
const withUnknown = (config, sourceConfig) => (0, _iosPlugins().withPodfileProperties)(config, config => {
|
|
config.modResults = updateIosBuildPropertiesFromConfig(sourceConfig ?? config, config.modResults, configToPropertyRules);
|
|
return config;
|
|
});
|
|
if (name) {
|
|
Object.defineProperty(withUnknown, 'name', {
|
|
value: name
|
|
});
|
|
}
|
|
return withUnknown;
|
|
}
|
|
|
|
/**
|
|
* A config-plugin to update `ios/Podfile.properties.json` from the `jsEngine` in expo config
|
|
*/
|
|
const withJsEnginePodfileProps = exports.withJsEnginePodfileProps = createBuildPodfilePropsConfigPlugin([{
|
|
propName: 'expo.jsEngine',
|
|
propValueGetter: config => config.ios?.jsEngine ?? config.jsEngine ?? 'hermes'
|
|
}], 'withJsEnginePodfileProps');
|
|
function updateIosBuildPropertiesFromConfig(config, podfileProperties, configToPropertyRules) {
|
|
for (const configToProperty of configToPropertyRules) {
|
|
const value = configToProperty.propValueGetter(config);
|
|
updateIosBuildProperty(podfileProperties, configToProperty.propName, value);
|
|
}
|
|
return podfileProperties;
|
|
}
|
|
function updateIosBuildProperty(podfileProperties, name, value, options) {
|
|
if (value) {
|
|
podfileProperties[name] = value;
|
|
} else if (options?.removePropWhenValueIsNull) {
|
|
delete podfileProperties[name];
|
|
}
|
|
return podfileProperties;
|
|
}
|
|
//# sourceMappingURL=BuildProperties.js.map
|