- 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.5 KiB
JavaScript
63 lines
2.5 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.getExpoHomeDirectory = getExpoHomeDirectory;
|
|
exports.getUserState = getUserState;
|
|
exports.getUserStatePath = getUserStatePath;
|
|
function _jsonFile() {
|
|
const data = _interopRequireDefault(require("@expo/json-file"));
|
|
_jsonFile = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _getenv() {
|
|
const data = require("getenv");
|
|
_getenv = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _os() {
|
|
const data = require("os");
|
|
_os = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function path() {
|
|
const data = _interopRequireWildcard(require("path"));
|
|
path = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
// The ~/.expo directory is used to store authentication sessions,
|
|
// which are shared between EAS CLI and Expo CLI.
|
|
function getExpoHomeDirectory() {
|
|
const home = (0, _os().homedir)();
|
|
if (process.env.__UNSAFE_EXPO_HOME_DIRECTORY) {
|
|
return process.env.__UNSAFE_EXPO_HOME_DIRECTORY;
|
|
} else if ((0, _getenv().boolish)('EXPO_STAGING', false)) {
|
|
return path().join(home, '.expo-staging');
|
|
} else if ((0, _getenv().boolish)('EXPO_LOCAL', false)) {
|
|
return path().join(home, '.expo-local');
|
|
}
|
|
return path().join(home, '.expo');
|
|
}
|
|
function getUserStatePath() {
|
|
return path().join(getExpoHomeDirectory(), 'state.json');
|
|
}
|
|
function getUserState() {
|
|
return new (_jsonFile().default)(getUserStatePath(), {
|
|
jsonParseErrorDefault: {},
|
|
// This will ensure that an error isn't thrown if the file doesn't exist.
|
|
cantReadFileDefault: {}
|
|
});
|
|
}
|
|
//# sourceMappingURL=getUserState.js.map
|