- 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
78 lines
1.9 KiB
JavaScript
78 lines
1.9 KiB
JavaScript
// Generated by CoffeeScript 2.4.1
|
|
(function() {
|
|
// Represents a map of nodes accessed by a string key
|
|
var XMLNamedNodeMap;
|
|
|
|
module.exports = XMLNamedNodeMap = (function() {
|
|
class XMLNamedNodeMap {
|
|
// Initializes a new instance of `XMLNamedNodeMap`
|
|
// This is just a wrapper around an ordinary
|
|
// JS object.
|
|
|
|
// `nodes` the object containing nodes.
|
|
constructor(nodes) {
|
|
this.nodes = nodes;
|
|
}
|
|
|
|
// Creates and returns a deep clone of `this`
|
|
|
|
clone() {
|
|
// this class should not be cloned since it wraps
|
|
// around a given object. The calling function should check
|
|
// whether the wrapped object is null and supply a new object
|
|
// (from the clone).
|
|
return this.nodes = null;
|
|
}
|
|
|
|
// DOM Level 1
|
|
getNamedItem(name) {
|
|
return this.nodes[name];
|
|
}
|
|
|
|
setNamedItem(node) {
|
|
var oldNode;
|
|
oldNode = this.nodes[node.nodeName];
|
|
this.nodes[node.nodeName] = node;
|
|
return oldNode || null;
|
|
}
|
|
|
|
removeNamedItem(name) {
|
|
var oldNode;
|
|
oldNode = this.nodes[name];
|
|
delete this.nodes[name];
|
|
return oldNode || null;
|
|
}
|
|
|
|
item(index) {
|
|
return this.nodes[Object.keys(this.nodes)[index]] || null;
|
|
}
|
|
|
|
// DOM level 2 functions to be implemented later
|
|
getNamedItemNS(namespaceURI, localName) {
|
|
throw new Error("This DOM method is not implemented.");
|
|
}
|
|
|
|
setNamedItemNS(node) {
|
|
throw new Error("This DOM method is not implemented.");
|
|
}
|
|
|
|
removeNamedItemNS(namespaceURI, localName) {
|
|
throw new Error("This DOM method is not implemented.");
|
|
}
|
|
|
|
};
|
|
|
|
|
|
// DOM level 1
|
|
Object.defineProperty(XMLNamedNodeMap.prototype, 'length', {
|
|
get: function() {
|
|
return Object.keys(this.nodes).length || 0;
|
|
}
|
|
});
|
|
|
|
return XMLNamedNodeMap;
|
|
|
|
}).call(this);
|
|
|
|
}).call(this);
|