- 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
136 lines
3.4 KiB
Swift
136 lines
3.4 KiB
Swift
// Copyright 2022-present 650 Industries. All rights reserved.
|
|
|
|
import ExpoModulesCore
|
|
|
|
internal class PermissionsModuleNotFoundException: Exception {
|
|
override var reason: String {
|
|
"Permissions module not found. Are you sure that Expo modules are properly linked?"
|
|
}
|
|
}
|
|
|
|
internal class FileSystemModuleNotFoundException: Exception {
|
|
override var reason: String {
|
|
"FileSystem module not found. Are you sure that Expo modules are properly linked?"
|
|
}
|
|
}
|
|
|
|
internal class LoggerModuleNotFoundException: Exception {
|
|
override var reason: String {
|
|
"Logger module not found. Are you sure that Expo modules are properly linked?"
|
|
}
|
|
}
|
|
|
|
internal class MissingCameraPermissionException: Exception {
|
|
override var reason: String {
|
|
"Missing camera or camera roll permission"
|
|
}
|
|
}
|
|
|
|
internal class MissingMicrophonePermissionException: Exception {
|
|
override var reason: String {
|
|
"Missing microphone permission. Please enable it with the `expo-image-picker` config plugin"
|
|
}
|
|
}
|
|
|
|
internal class MissingPhotoLibraryPermissionException: Exception {
|
|
override var reason: String {
|
|
"Missing photo library permission"
|
|
}
|
|
}
|
|
|
|
internal class CameraUnavailableOnSimulatorException: Exception {
|
|
override var reason: String {
|
|
"Camera not available on simulator"
|
|
}
|
|
}
|
|
|
|
internal class MultiselectUnavailableException: Exception {
|
|
override var reason: String {
|
|
"Multiple selection is only available on iOS 14+"
|
|
}
|
|
}
|
|
|
|
internal class MissingCurrentViewControllerException: Exception {
|
|
override var reason: String {
|
|
"Cannot determine currently presented view controller"
|
|
}
|
|
}
|
|
|
|
internal class MaxDurationWhileEditingExceededException: Exception {
|
|
override var reason: String {
|
|
"'videoMaxDuration' limits to 600 when 'allowsEditing=true'"
|
|
}
|
|
}
|
|
|
|
internal class InvalidMediaTypeException: GenericException<String?> {
|
|
override var reason: String {
|
|
"Cannot handle '\(param ?? "nil")' media type"
|
|
}
|
|
}
|
|
|
|
internal class FailedToCreateGifException: Exception {
|
|
override var reason: String {
|
|
"Failed to create image destination for GIF export"
|
|
}
|
|
}
|
|
|
|
internal class FailedToExportGifException: Exception {
|
|
override var reason: String {
|
|
"Failed to export requested GIF"
|
|
}
|
|
}
|
|
|
|
internal class FailedToWriteImageException: Exception {
|
|
override var reason: String {
|
|
"Failed to write data to a file"
|
|
}
|
|
}
|
|
|
|
internal class FailedToReadImageException: Exception {
|
|
override var reason: String {
|
|
"Failed to read picked image"
|
|
}
|
|
}
|
|
|
|
internal class FailedToReadImageDataException: Exception {
|
|
override var reason: String {
|
|
"Failed to read data from a file"
|
|
}
|
|
}
|
|
|
|
internal class FailedToReadVideoSizeException: Exception {
|
|
override var reason: String {
|
|
"Failed to read the video size"
|
|
}
|
|
}
|
|
|
|
internal class FailedToReadVideoException: Exception {
|
|
override var reason: String {
|
|
"Failed to read picked video"
|
|
}
|
|
}
|
|
|
|
internal class FailedToTranscodeVideoException: Exception {
|
|
override var reason: String {
|
|
"Failed to transcode picked video"
|
|
}
|
|
}
|
|
|
|
internal class UnsupportedVideoExportPresetException: GenericException<String> {
|
|
override var reason: String {
|
|
"Video cannot be transcoded with export preset: \(param)"
|
|
}
|
|
}
|
|
|
|
internal class FailedToPickVideoException: Exception {
|
|
override var reason: String {
|
|
"Video could not be picked"
|
|
}
|
|
}
|
|
|
|
internal class FailedToReadImageDataForBase64Exception: Exception {
|
|
override var reason: String {
|
|
"Failed to read image data to perform base64 encoding"
|
|
}
|
|
}
|