- 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
87 lines
2.0 KiB
JavaScript
87 lines
2.0 KiB
JavaScript
// Generated by CoffeeScript 2.4.1
|
|
(function() {
|
|
var XMLCharacterData, XMLNode;
|
|
|
|
XMLNode = require('./XMLNode');
|
|
|
|
// Represents a character data node
|
|
module.exports = XMLCharacterData = (function() {
|
|
class XMLCharacterData extends XMLNode {
|
|
// Initializes a new instance of `XMLCharacterData`
|
|
|
|
constructor(parent) {
|
|
super(parent);
|
|
this.value = '';
|
|
}
|
|
|
|
|
|
// Creates and returns a deep clone of `this`
|
|
clone() {
|
|
return Object.create(this);
|
|
}
|
|
|
|
// DOM level 1 functions to be implemented later
|
|
substringData(offset, count) {
|
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
}
|
|
|
|
appendData(arg) {
|
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
}
|
|
|
|
insertData(offset, arg) {
|
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
}
|
|
|
|
deleteData(offset, count) {
|
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
}
|
|
|
|
replaceData(offset, count, arg) {
|
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
}
|
|
|
|
isEqualNode(node) {
|
|
if (!super.isEqualNode(node)) {
|
|
return false;
|
|
}
|
|
if (node.data !== this.data) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
};
|
|
|
|
// DOM level 1
|
|
Object.defineProperty(XMLCharacterData.prototype, 'data', {
|
|
get: function() {
|
|
return this.value;
|
|
},
|
|
set: function(value) {
|
|
return this.value = value || '';
|
|
}
|
|
});
|
|
|
|
Object.defineProperty(XMLCharacterData.prototype, 'length', {
|
|
get: function() {
|
|
return this.value.length;
|
|
}
|
|
});
|
|
|
|
// DOM level 3
|
|
Object.defineProperty(XMLCharacterData.prototype, 'textContent', {
|
|
get: function() {
|
|
return this.value;
|
|
},
|
|
set: function(value) {
|
|
return this.value = value || '';
|
|
}
|
|
});
|
|
|
|
return XMLCharacterData;
|
|
|
|
}).call(this);
|
|
|
|
}).call(this);
|