- 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
52 lines
1.8 KiB
JavaScript
52 lines
1.8 KiB
JavaScript
import _typeof from "./typeof.js";
|
|
import setPrototypeOf from "./setPrototypeOf.js";
|
|
import inherits from "./inherits.js";
|
|
function _wrapRegExp() {
|
|
_wrapRegExp = function _wrapRegExp(e, r) {
|
|
return new BabelRegExp(e, void 0, r);
|
|
};
|
|
var e = RegExp.prototype,
|
|
r = new WeakMap();
|
|
function BabelRegExp(e, t, p) {
|
|
var o = RegExp(e, t);
|
|
return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype);
|
|
}
|
|
function buildGroups(e, t) {
|
|
var p = r.get(t);
|
|
return Object.keys(p).reduce(function (r, t) {
|
|
var o = p[t];
|
|
if ("number" == typeof o) r[t] = e[o];else {
|
|
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
|
|
r[t] = e[o[i]];
|
|
}
|
|
return r;
|
|
}, Object.create(null));
|
|
}
|
|
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
|
|
var t = e.exec.call(this, r);
|
|
if (t) {
|
|
t.groups = buildGroups(t, this);
|
|
var p = t.indices;
|
|
p && (p.groups = buildGroups(p, this));
|
|
}
|
|
return t;
|
|
}, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
|
|
if ("string" == typeof p) {
|
|
var o = r.get(this);
|
|
return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) {
|
|
if ("" === t) return e;
|
|
var p = o[r];
|
|
return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : "";
|
|
}));
|
|
}
|
|
if ("function" == typeof p) {
|
|
var i = this;
|
|
return e[Symbol.replace].call(this, t, function () {
|
|
var e = arguments;
|
|
return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
|
|
});
|
|
}
|
|
return e[Symbol.replace].call(this, t, p);
|
|
}, _wrapRegExp.apply(this, arguments);
|
|
}
|
|
export { _wrapRegExp as default }; |