@entropy-softworks/ui 2026.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/lib/components/auth/LockOverlay.d.ts +22 -0
- package/lib/components/auth/LockOverlay.d.ts.map +1 -0
- package/lib/components/auth/LockOverlay.jsx +82 -0
- package/lib/components/auth/LockOverlay.jsx.map +1 -0
- package/lib/components/auth/PasswordStrengthMeter.d.ts +12 -0
- package/lib/components/auth/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/components/auth/PasswordStrengthMeter.jsx +81 -0
- package/lib/components/auth/PasswordStrengthMeter.jsx.map +1 -0
- package/lib/components/auth/ProtectedRoute.d.ts +24 -0
- package/lib/components/auth/ProtectedRoute.d.ts.map +1 -0
- package/lib/components/auth/ProtectedRoute.jsx +56 -0
- package/lib/components/auth/ProtectedRoute.jsx.map +1 -0
- package/lib/components/auth/PwnedPasswordWarning.d.ts +13 -0
- package/lib/components/auth/PwnedPasswordWarning.d.ts.map +1 -0
- package/lib/components/auth/PwnedPasswordWarning.jsx +29 -0
- package/lib/components/auth/PwnedPasswordWarning.jsx.map +1 -0
- package/lib/components/auth/index.d.ts +5 -0
- package/lib/components/auth/index.d.ts.map +1 -0
- package/lib/components/auth/index.js +5 -0
- package/lib/components/auth/index.js.map +1 -0
- package/lib/components/bottom-nav.d.ts +25 -0
- package/lib/components/bottom-nav.d.ts.map +1 -0
- package/lib/components/bottom-nav.jsx +51 -0
- package/lib/components/bottom-nav.jsx.map +1 -0
- package/lib/components/button.d.ts +16 -0
- package/lib/components/button.d.ts.map +1 -0
- package/lib/components/button.jsx +73 -0
- package/lib/components/button.jsx.map +1 -0
- package/lib/components/card.d.ts +22 -0
- package/lib/components/card.d.ts.map +1 -0
- package/lib/components/card.jsx +36 -0
- package/lib/components/card.jsx.map +1 -0
- package/lib/components/checkbox.d.ts +12 -0
- package/lib/components/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox.jsx +16 -0
- package/lib/components/checkbox.jsx.map +1 -0
- package/lib/components/connection-settings.d.ts +41 -0
- package/lib/components/connection-settings.d.ts.map +1 -0
- package/lib/components/connection-settings.jsx +354 -0
- package/lib/components/connection-settings.jsx.map +1 -0
- package/lib/components/context-menu.d.ts +52 -0
- package/lib/components/context-menu.d.ts.map +1 -0
- package/lib/components/context-menu.jsx +24 -0
- package/lib/components/context-menu.jsx.map +1 -0
- package/lib/components/data-table.d.ts +59 -0
- package/lib/components/data-table.d.ts.map +1 -0
- package/lib/components/data-table.jsx +101 -0
- package/lib/components/data-table.jsx.map +1 -0
- package/lib/components/dialog.d.ts +58 -0
- package/lib/components/dialog.d.ts.map +1 -0
- package/lib/components/dialog.jsx +197 -0
- package/lib/components/dialog.jsx.map +1 -0
- package/lib/components/dropdown-menu.d.ts +55 -0
- package/lib/components/dropdown-menu.d.ts.map +1 -0
- package/lib/components/dropdown-menu.jsx +38 -0
- package/lib/components/dropdown-menu.jsx.map +1 -0
- package/lib/components/entropy-boot-splash.d.ts +24 -0
- package/lib/components/entropy-boot-splash.d.ts.map +1 -0
- package/lib/components/entropy-boot-splash.jsx +83 -0
- package/lib/components/entropy-boot-splash.jsx.map +1 -0
- package/lib/components/entropy-mark-animated.d.ts +20 -0
- package/lib/components/entropy-mark-animated.d.ts.map +1 -0
- package/lib/components/entropy-mark-animated.jsx +148 -0
- package/lib/components/entropy-mark-animated.jsx.map +1 -0
- package/lib/components/entropy-mark-geometry.d.ts +8 -0
- package/lib/components/entropy-mark-geometry.d.ts.map +1 -0
- package/lib/components/entropy-mark-geometry.js +10 -0
- package/lib/components/entropy-mark-geometry.js.map +1 -0
- package/lib/components/entropy-mark-sequential.d.ts +12 -0
- package/lib/components/entropy-mark-sequential.d.ts.map +1 -0
- package/lib/components/entropy-mark-sequential.jsx +53 -0
- package/lib/components/entropy-mark-sequential.jsx.map +1 -0
- package/lib/components/entropy-mark.d.ts +29 -0
- package/lib/components/entropy-mark.d.ts.map +1 -0
- package/lib/components/entropy-mark.jsx +66 -0
- package/lib/components/entropy-mark.jsx.map +1 -0
- package/lib/components/error-boundary.d.ts +31 -0
- package/lib/components/error-boundary.d.ts.map +1 -0
- package/lib/components/error-boundary.jsx +40 -0
- package/lib/components/error-boundary.jsx.map +1 -0
- package/lib/components/index.d.ts +41 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +43 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/input.d.ts +26 -0
- package/lib/components/input.d.ts.map +1 -0
- package/lib/components/input.jsx +95 -0
- package/lib/components/input.jsx.map +1 -0
- package/lib/components/item-icon.d.ts +32 -0
- package/lib/components/item-icon.d.ts.map +1 -0
- package/lib/components/item-icon.jsx +54 -0
- package/lib/components/item-icon.jsx.map +1 -0
- package/lib/components/label.d.ts +13 -0
- package/lib/components/label.d.ts.map +1 -0
- package/lib/components/label.jsx +9 -0
- package/lib/components/label.jsx.map +1 -0
- package/lib/components/legal-dialog.d.ts +18 -0
- package/lib/components/legal-dialog.d.ts.map +1 -0
- package/lib/components/legal-dialog.jsx +31 -0
- package/lib/components/legal-dialog.jsx.map +1 -0
- package/lib/components/license-gate.d.ts +17 -0
- package/lib/components/license-gate.d.ts.map +1 -0
- package/lib/components/license-gate.jsx +21 -0
- package/lib/components/license-gate.jsx.map +1 -0
- package/lib/components/logo.d.ts +15 -0
- package/lib/components/logo.d.ts.map +1 -0
- package/lib/components/logo.jsx +20 -0
- package/lib/components/logo.jsx.map +1 -0
- package/lib/components/onboarding-wizard.d.ts +89 -0
- package/lib/components/onboarding-wizard.d.ts.map +1 -0
- package/lib/components/onboarding-wizard.jsx +185 -0
- package/lib/components/onboarding-wizard.jsx.map +1 -0
- package/lib/components/pagination.d.ts +43 -0
- package/lib/components/pagination.d.ts.map +1 -0
- package/lib/components/pagination.jsx +72 -0
- package/lib/components/pagination.jsx.map +1 -0
- package/lib/components/password-generator.d.ts +15 -0
- package/lib/components/password-generator.d.ts.map +1 -0
- package/lib/components/password-generator.jsx +273 -0
- package/lib/components/password-generator.jsx.map +1 -0
- package/lib/components/pin-pad.d.ts +20 -0
- package/lib/components/pin-pad.d.ts.map +1 -0
- package/lib/components/pin-pad.jsx +93 -0
- package/lib/components/pin-pad.jsx.map +1 -0
- package/lib/components/popover.d.ts +27 -0
- package/lib/components/popover.d.ts.map +1 -0
- package/lib/components/popover.jsx +18 -0
- package/lib/components/popover.jsx.map +1 -0
- package/lib/components/profile/ProfileDialog.d.ts +25 -0
- package/lib/components/profile/ProfileDialog.d.ts.map +1 -0
- package/lib/components/profile/ProfileDialog.jsx +71 -0
- package/lib/components/profile/ProfileDialog.jsx.map +1 -0
- package/lib/components/profile/ProfileTab.d.ts +12 -0
- package/lib/components/profile/ProfileTab.d.ts.map +1 -0
- package/lib/components/profile/ProfileTab.jsx +112 -0
- package/lib/components/profile/ProfileTab.jsx.map +1 -0
- package/lib/components/profile/SecurityTab.d.ts +32 -0
- package/lib/components/profile/SecurityTab.d.ts.map +1 -0
- package/lib/components/profile/SecurityTab.jsx +145 -0
- package/lib/components/profile/SecurityTab.jsx.map +1 -0
- package/lib/components/profile/index.d.ts +4 -0
- package/lib/components/profile/index.d.ts.map +1 -0
- package/lib/components/profile/index.js +4 -0
- package/lib/components/profile/index.js.map +1 -0
- package/lib/components/segmented-toggle.d.ts +28 -0
- package/lib/components/segmented-toggle.d.ts.map +1 -0
- package/lib/components/segmented-toggle.jsx +64 -0
- package/lib/components/segmented-toggle.jsx.map +1 -0
- package/lib/components/separator.d.ts +13 -0
- package/lib/components/separator.d.ts.map +1 -0
- package/lib/components/separator.jsx +16 -0
- package/lib/components/separator.jsx.map +1 -0
- package/lib/components/server-settings.d.ts +27 -0
- package/lib/components/server-settings.d.ts.map +1 -0
- package/lib/components/server-settings.jsx +307 -0
- package/lib/components/server-settings.jsx.map +1 -0
- package/lib/components/settings/AccountSection.d.ts +26 -0
- package/lib/components/settings/AccountSection.d.ts.map +1 -0
- package/lib/components/settings/AccountSection.jsx +32 -0
- package/lib/components/settings/AccountSection.jsx.map +1 -0
- package/lib/components/settings/DangerZoneSection.d.ts +13 -0
- package/lib/components/settings/DangerZoneSection.d.ts.map +1 -0
- package/lib/components/settings/DangerZoneSection.jsx +16 -0
- package/lib/components/settings/DangerZoneSection.jsx.map +1 -0
- package/lib/components/settings/GeneralSection.d.ts +11 -0
- package/lib/components/settings/GeneralSection.d.ts.map +1 -0
- package/lib/components/settings/GeneralSection.jsx +12 -0
- package/lib/components/settings/GeneralSection.jsx.map +1 -0
- package/lib/components/settings/SupportSection.d.ts +11 -0
- package/lib/components/settings/SupportSection.d.ts.map +1 -0
- package/lib/components/settings/SupportSection.jsx +22 -0
- package/lib/components/settings/SupportSection.jsx.map +1 -0
- package/lib/components/settings/index.d.ts +5 -0
- package/lib/components/settings/index.d.ts.map +1 -0
- package/lib/components/settings/index.js +5 -0
- package/lib/components/settings/index.js.map +1 -0
- package/lib/components/settings-row.d.ts +28 -0
- package/lib/components/settings-row.d.ts.map +1 -0
- package/lib/components/settings-row.jsx +68 -0
- package/lib/components/settings-row.jsx.map +1 -0
- package/lib/components/skeleton.d.ts +8 -0
- package/lib/components/skeleton.d.ts.map +1 -0
- package/lib/components/skeleton.jsx +24 -0
- package/lib/components/skeleton.jsx.map +1 -0
- package/lib/components/social-connections.d.ts +15 -0
- package/lib/components/social-connections.d.ts.map +1 -0
- package/lib/components/social-connections.jsx +31 -0
- package/lib/components/social-connections.jsx.map +1 -0
- package/lib/components/stat-card.d.ts +29 -0
- package/lib/components/stat-card.d.ts.map +1 -0
- package/lib/components/stat-card.jsx +36 -0
- package/lib/components/stat-card.jsx.map +1 -0
- package/lib/components/tag-chip.d.ts +18 -0
- package/lib/components/tag-chip.d.ts.map +1 -0
- package/lib/components/tag-chip.jsx +54 -0
- package/lib/components/tag-chip.jsx.map +1 -0
- package/lib/components/tag-multi-select.d.ts +27 -0
- package/lib/components/tag-multi-select.d.ts.map +1 -0
- package/lib/components/tag-multi-select.jsx +65 -0
- package/lib/components/tag-multi-select.jsx.map +1 -0
- package/lib/components/text.d.ts +22 -0
- package/lib/components/text.d.ts.map +1 -0
- package/lib/components/text.jsx +43 -0
- package/lib/components/text.jsx.map +1 -0
- package/lib/components/toast/ToastPortal.d.ts +11 -0
- package/lib/components/toast/ToastPortal.d.ts.map +1 -0
- package/lib/components/toast/ToastPortal.jsx +15 -0
- package/lib/components/toast/ToastPortal.jsx.map +1 -0
- package/lib/components/toast/ToastPortal.web.d.ts +14 -0
- package/lib/components/toast/ToastPortal.web.d.ts.map +1 -0
- package/lib/components/toast/ToastPortal.web.jsx +39 -0
- package/lib/components/toast/ToastPortal.web.jsx.map +1 -0
- package/lib/components/toast/index.d.ts +3 -0
- package/lib/components/toast/index.d.ts.map +1 -0
- package/lib/components/toast/index.js +3 -0
- package/lib/components/toast/index.js.map +1 -0
- package/lib/components/toast/toast-config.d.ts +14 -0
- package/lib/components/toast/toast-config.d.ts.map +1 -0
- package/lib/components/toast/toast-config.jsx +24 -0
- package/lib/components/toast/toast-config.jsx.map +1 -0
- package/lib/components/tooltip.d.ts +30 -0
- package/lib/components/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip.jsx +14 -0
- package/lib/components/tooltip.jsx.map +1 -0
- package/lib/components/totp-display.d.ts +23 -0
- package/lib/components/totp-display.d.ts.map +1 -0
- package/lib/components/totp-display.jsx +132 -0
- package/lib/components/totp-display.jsx.map +1 -0
- package/lib/components/user-avatar.d.ts +18 -0
- package/lib/components/user-avatar.d.ts.map +1 -0
- package/lib/components/user-avatar.jsx +25 -0
- package/lib/components/user-avatar.jsx.map +1 -0
- package/lib/context/AppConfigContext.d.ts +56 -0
- package/lib/context/AppConfigContext.d.ts.map +1 -0
- package/lib/context/AppConfigContext.jsx +14 -0
- package/lib/context/AppConfigContext.jsx.map +1 -0
- package/lib/context/NavigationContext.d.ts +42 -0
- package/lib/context/NavigationContext.d.ts.map +1 -0
- package/lib/context/NavigationContext.jsx +53 -0
- package/lib/context/NavigationContext.jsx.map +1 -0
- package/lib/context/NotificationContext.d.ts +32 -0
- package/lib/context/NotificationContext.d.ts.map +1 -0
- package/lib/context/NotificationContext.jsx +49 -0
- package/lib/context/NotificationContext.jsx.map +1 -0
- package/lib/context/ThemeContext.d.ts +12 -0
- package/lib/context/ThemeContext.d.ts.map +1 -0
- package/lib/context/ThemeContext.jsx +66 -0
- package/lib/context/ThemeContext.jsx.map +1 -0
- package/lib/context/index.d.ts +5 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/context/index.js +5 -0
- package/lib/context/index.js.map +1 -0
- package/lib/flags.d.ts +9 -0
- package/lib/flags.d.ts.map +1 -0
- package/lib/flags.js +37 -0
- package/lib/flags.js.map +1 -0
- package/lib/forms/form-error.d.ts +12 -0
- package/lib/forms/form-error.d.ts.map +1 -0
- package/lib/forms/form-error.jsx +14 -0
- package/lib/forms/form-error.jsx.map +1 -0
- package/lib/forms/index.d.ts +3 -0
- package/lib/forms/index.d.ts.map +1 -0
- package/lib/forms/index.js +3 -0
- package/lib/forms/index.js.map +1 -0
- package/lib/forms/shake-field.d.ts +18 -0
- package/lib/forms/shake-field.d.ts.map +1 -0
- package/lib/forms/shake-field.jsx +30 -0
- package/lib/forms/shake-field.jsx.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +6 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useAuth.d.ts +109 -0
- package/lib/hooks/useAuth.d.ts.map +1 -0
- package/lib/hooks/useAuth.jsx +404 -0
- package/lib/hooks/useAuth.jsx.map +1 -0
- package/lib/hooks/useAutoLock.d.ts +22 -0
- package/lib/hooks/useAutoLock.d.ts.map +1 -0
- package/lib/hooks/useAutoLock.js +85 -0
- package/lib/hooks/useAutoLock.js.map +1 -0
- package/lib/hooks/useDebouncedValue.d.ts +19 -0
- package/lib/hooks/useDebouncedValue.d.ts.map +1 -0
- package/lib/hooks/useDebouncedValue.js +29 -0
- package/lib/hooks/useDebouncedValue.js.map +1 -0
- package/lib/hooks/useShakeAnimation.d.ts +17 -0
- package/lib/hooks/useShakeAnimation.d.ts.map +1 -0
- package/lib/hooks/useShakeAnimation.js +22 -0
- package/lib/hooks/useShakeAnimation.js.map +1 -0
- package/lib/hooks/useUploadBlobUrl.d.ts +13 -0
- package/lib/hooks/useUploadBlobUrl.d.ts.map +1 -0
- package/lib/hooks/useUploadBlobUrl.js +60 -0
- package/lib/hooks/useUploadBlobUrl.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +47 -0
- package/lib/index.js.map +1 -0
- package/lib/screens/auth/AccountPickerScreen.d.ts +24 -0
- package/lib/screens/auth/AccountPickerScreen.d.ts.map +1 -0
- package/lib/screens/auth/AccountPickerScreen.jsx +47 -0
- package/lib/screens/auth/AccountPickerScreen.jsx.map +1 -0
- package/lib/screens/auth/AuthScreen.d.ts +59 -0
- package/lib/screens/auth/AuthScreen.d.ts.map +1 -0
- package/lib/screens/auth/AuthScreen.jsx +594 -0
- package/lib/screens/auth/AuthScreen.jsx.map +1 -0
- package/lib/screens/auth/ConsentScreen.d.ts +27 -0
- package/lib/screens/auth/ConsentScreen.d.ts.map +1 -0
- package/lib/screens/auth/ConsentScreen.jsx +55 -0
- package/lib/screens/auth/ConsentScreen.jsx.map +1 -0
- package/lib/screens/auth/ErrorScreen.d.ts +20 -0
- package/lib/screens/auth/ErrorScreen.d.ts.map +1 -0
- package/lib/screens/auth/ErrorScreen.jsx +43 -0
- package/lib/screens/auth/ErrorScreen.jsx.map +1 -0
- package/lib/screens/auth/ExpiredLinkScreen.d.ts +19 -0
- package/lib/screens/auth/ExpiredLinkScreen.d.ts.map +1 -0
- package/lib/screens/auth/ExpiredLinkScreen.jsx +38 -0
- package/lib/screens/auth/ExpiredLinkScreen.jsx.map +1 -0
- package/lib/screens/auth/ForgotPasswordScreen.d.ts +4 -0
- package/lib/screens/auth/ForgotPasswordScreen.d.ts.map +1 -0
- package/lib/screens/auth/ForgotPasswordScreen.jsx +123 -0
- package/lib/screens/auth/ForgotPasswordScreen.jsx.map +1 -0
- package/lib/screens/auth/ImportDataScreen.d.ts +17 -0
- package/lib/screens/auth/ImportDataScreen.d.ts.map +1 -0
- package/lib/screens/auth/ImportDataScreen.jsx +73 -0
- package/lib/screens/auth/ImportDataScreen.jsx.map +1 -0
- package/lib/screens/auth/LoginScreen.d.ts +38 -0
- package/lib/screens/auth/LoginScreen.d.ts.map +1 -0
- package/lib/screens/auth/LoginScreen.jsx +326 -0
- package/lib/screens/auth/LoginScreen.jsx.map +1 -0
- package/lib/screens/auth/MfaChallengeScreen.d.ts +4 -0
- package/lib/screens/auth/MfaChallengeScreen.d.ts.map +1 -0
- package/lib/screens/auth/MfaChallengeScreen.jsx +139 -0
- package/lib/screens/auth/MfaChallengeScreen.jsx.map +1 -0
- package/lib/screens/auth/MfaEnrollScreen.d.ts +12 -0
- package/lib/screens/auth/MfaEnrollScreen.d.ts.map +1 -0
- package/lib/screens/auth/MfaEnrollScreen.jsx +267 -0
- package/lib/screens/auth/MfaEnrollScreen.jsx.map +1 -0
- package/lib/screens/auth/PasskeyEnrollScreen.d.ts +18 -0
- package/lib/screens/auth/PasskeyEnrollScreen.d.ts.map +1 -0
- package/lib/screens/auth/PasskeyEnrollScreen.jsx +51 -0
- package/lib/screens/auth/PasskeyEnrollScreen.jsx.map +1 -0
- package/lib/screens/auth/PrivacyPolicyScreen.d.ts +19 -0
- package/lib/screens/auth/PrivacyPolicyScreen.d.ts.map +1 -0
- package/lib/screens/auth/PrivacyPolicyScreen.jsx +143 -0
- package/lib/screens/auth/PrivacyPolicyScreen.jsx.map +1 -0
- package/lib/screens/auth/RegisterScreen.d.ts +14 -0
- package/lib/screens/auth/RegisterScreen.d.ts.map +1 -0
- package/lib/screens/auth/RegisterScreen.jsx +296 -0
- package/lib/screens/auth/RegisterScreen.jsx.map +1 -0
- package/lib/screens/auth/ResetPasswordScreen.d.ts +12 -0
- package/lib/screens/auth/ResetPasswordScreen.d.ts.map +1 -0
- package/lib/screens/auth/ResetPasswordScreen.jsx +276 -0
- package/lib/screens/auth/ResetPasswordScreen.jsx.map +1 -0
- package/lib/screens/auth/ServerConfigScreen.d.ts +18 -0
- package/lib/screens/auth/ServerConfigScreen.d.ts.map +1 -0
- package/lib/screens/auth/ServerConfigScreen.jsx +259 -0
- package/lib/screens/auth/ServerConfigScreen.jsx.map +1 -0
- package/lib/screens/auth/TermsOfServiceScreen.d.ts +30 -0
- package/lib/screens/auth/TermsOfServiceScreen.d.ts.map +1 -0
- package/lib/screens/auth/TermsOfServiceScreen.jsx +130 -0
- package/lib/screens/auth/TermsOfServiceScreen.jsx.map +1 -0
- package/lib/screens/auth/VerifyEmailScreen.d.ts +4 -0
- package/lib/screens/auth/VerifyEmailScreen.d.ts.map +1 -0
- package/lib/screens/auth/VerifyEmailScreen.jsx +249 -0
- package/lib/screens/auth/VerifyEmailScreen.jsx.map +1 -0
- package/lib/screens/auth/WelcomeScreen.d.ts +17 -0
- package/lib/screens/auth/WelcomeScreen.d.ts.map +1 -0
- package/lib/screens/auth/WelcomeScreen.jsx +58 -0
- package/lib/screens/auth/WelcomeScreen.jsx.map +1 -0
- package/lib/screens/auth/index.d.ts +19 -0
- package/lib/screens/auth/index.d.ts.map +1 -0
- package/lib/screens/auth/index.js +19 -0
- package/lib/screens/auth/index.js.map +1 -0
- package/lib/screens/index.d.ts +2 -0
- package/lib/screens/index.d.ts.map +1 -0
- package/lib/screens/index.js +2 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/services/api-config.d.ts +87 -0
- package/lib/services/api-config.d.ts.map +1 -0
- package/lib/services/api-config.js +202 -0
- package/lib/services/api-config.js.map +1 -0
- package/lib/services/auth.service.d.ts +140 -0
- package/lib/services/auth.service.d.ts.map +1 -0
- package/lib/services/auth.service.js +376 -0
- package/lib/services/auth.service.js.map +1 -0
- package/lib/services/favicon.d.ts +46 -0
- package/lib/services/favicon.d.ts.map +1 -0
- package/lib/services/favicon.js +84 -0
- package/lib/services/favicon.js.map +1 -0
- package/lib/services/hibp-cache.d.ts +23 -0
- package/lib/services/hibp-cache.d.ts.map +1 -0
- package/lib/services/hibp-cache.js +56 -0
- package/lib/services/hibp-cache.js.map +1 -0
- package/lib/services/hibp.d.ts +28 -0
- package/lib/services/hibp.d.ts.map +1 -0
- package/lib/services/hibp.js +92 -0
- package/lib/services/hibp.js.map +1 -0
- package/lib/services/index.d.ts +8 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +7 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/passkey.d.ts +10 -0
- package/lib/services/passkey.d.ts.map +1 -0
- package/lib/services/passkey.js +192 -0
- package/lib/services/passkey.js.map +1 -0
- package/lib/utils/api-fetch.d.ts +11 -0
- package/lib/utils/api-fetch.d.ts.map +1 -0
- package/lib/utils/api-fetch.js +52 -0
- package/lib/utils/api-fetch.js.map +1 -0
- package/lib/utils/clipboard.d.ts +31 -0
- package/lib/utils/clipboard.d.ts.map +1 -0
- package/lib/utils/clipboard.js +66 -0
- package/lib/utils/clipboard.js.map +1 -0
- package/lib/utils/cn.d.ts +9 -0
- package/lib/utils/cn.d.ts.map +1 -0
- package/lib/utils/cn.js +12 -0
- package/lib/utils/cn.js.map +1 -0
- package/lib/utils/debounce.d.ts +13 -0
- package/lib/utils/debounce.d.ts.map +1 -0
- package/lib/utils/debounce.js +28 -0
- package/lib/utils/debounce.js.map +1 -0
- package/lib/utils/error.d.ts +9 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/error.js +11 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/fetch.d.ts +17 -0
- package/lib/utils/fetch.d.ts.map +1 -0
- package/lib/utils/fetch.js +29 -0
- package/lib/utils/fetch.js.map +1 -0
- package/lib/utils/http-error.d.ts +41 -0
- package/lib/utils/http-error.d.ts.map +1 -0
- package/lib/utils/http-error.js +63 -0
- package/lib/utils/http-error.js.map +1 -0
- package/lib/utils/index.d.ts +11 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +11 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/palette.d.ts +46 -0
- package/lib/utils/palette.d.ts.map +1 -0
- package/lib/utils/palette.js +75 -0
- package/lib/utils/palette.js.map +1 -0
- package/lib/utils/password.d.ts +20 -0
- package/lib/utils/password.d.ts.map +1 -0
- package/lib/utils/password.js +51 -0
- package/lib/utils/password.js.map +1 -0
- package/lib/utils/settings-storage.d.ts +3 -0
- package/lib/utils/settings-storage.d.ts.map +1 -0
- package/lib/utils/settings-storage.js +62 -0
- package/lib/utils/settings-storage.js.map +1 -0
- package/lib/utils/validation.d.ts +29 -0
- package/lib/utils/validation.d.ts.map +1 -0
- package/lib/utils/validation.js +58 -0
- package/lib/utils/validation.js.map +1 -0
- package/package.json +204 -0
- package/src/components/__tests__/data-table.test.ts +94 -0
- package/src/components/__tests__/pagination.test.ts +73 -0
- package/src/components/__tests__/stat-card.test.ts +21 -0
- package/src/components/auth/LockOverlay.tsx +122 -0
- package/src/components/auth/PasswordStrengthMeter.tsx +96 -0
- package/src/components/auth/ProtectedRoute.tsx +91 -0
- package/src/components/auth/PwnedPasswordWarning.tsx +54 -0
- package/src/components/auth/index.ts +10 -0
- package/src/components/bottom-nav.tsx +99 -0
- package/src/components/button.tsx +144 -0
- package/src/components/card.tsx +82 -0
- package/src/components/checkbox.tsx +48 -0
- package/src/components/connection-settings.tsx +583 -0
- package/src/components/context-menu.tsx +95 -0
- package/src/components/data-table.tsx +223 -0
- package/src/components/dialog.tsx +376 -0
- package/src/components/dropdown-menu.tsx +120 -0
- package/src/components/entropy-boot-splash.tsx +114 -0
- package/src/components/entropy-mark-animated.tsx +260 -0
- package/src/components/entropy-mark-geometry.ts +11 -0
- package/src/components/entropy-mark-sequential.tsx +132 -0
- package/src/components/entropy-mark.tsx +135 -0
- package/src/components/error-boundary.tsx +70 -0
- package/src/components/index.ts +156 -0
- package/src/components/input.tsx +246 -0
- package/src/components/item-icon.tsx +111 -0
- package/src/components/label.tsx +25 -0
- package/src/components/legal-dialog.tsx +47 -0
- package/src/components/license-gate.tsx +28 -0
- package/src/components/logo.tsx +34 -0
- package/src/components/onboarding-wizard.tsx +353 -0
- package/src/components/pagination.tsx +154 -0
- package/src/components/password-generator.tsx +393 -0
- package/src/components/pin-pad.tsx +156 -0
- package/src/components/popover.tsx +38 -0
- package/src/components/profile/ProfileDialog.tsx +129 -0
- package/src/components/profile/ProfileTab.tsx +151 -0
- package/src/components/profile/SecurityTab.tsx +229 -0
- package/src/components/profile/index.ts +3 -0
- package/src/components/segmented-toggle.tsx +119 -0
- package/src/components/separator.tsx +41 -0
- package/src/components/server-settings.tsx +442 -0
- package/src/components/settings/AccountSection.tsx +76 -0
- package/src/components/settings/DangerZoneSection.tsx +37 -0
- package/src/components/settings/GeneralSection.tsx +39 -0
- package/src/components/settings/SupportSection.tsx +53 -0
- package/src/components/settings/index.ts +4 -0
- package/src/components/settings-row.tsx +126 -0
- package/src/components/skeleton.tsx +48 -0
- package/src/components/social-connections.tsx +55 -0
- package/src/components/stat-card.tsx +64 -0
- package/src/components/tag-chip.tsx +78 -0
- package/src/components/tag-multi-select.tsx +136 -0
- package/src/components/text.tsx +77 -0
- package/src/components/toast/ToastPortal.tsx +16 -0
- package/src/components/toast/ToastPortal.web.tsx +47 -0
- package/src/components/toast/index.ts +2 -0
- package/src/components/toast/toast-config.tsx +31 -0
- package/src/components/tooltip.tsx +30 -0
- package/src/components/totp-display.tsx +207 -0
- package/src/components/user-avatar.tsx +46 -0
- package/src/context/AppConfigContext.tsx +76 -0
- package/src/context/NavigationContext.tsx +75 -0
- package/src/context/NotificationContext.tsx +69 -0
- package/src/context/ThemeContext.tsx +83 -0
- package/src/context/__tests__/NavigationContext.test.tsx +53 -0
- package/src/context/index.ts +24 -0
- package/src/flags.ts +44 -0
- package/src/forms/form-error.tsx +20 -0
- package/src/forms/index.ts +2 -0
- package/src/forms/shake-field.tsx +52 -0
- package/src/hooks/__tests__/useUploadBlobUrl.test.tsx +77 -0
- package/src/hooks/index.ts +18 -0
- package/src/hooks/useAuth.tsx +567 -0
- package/src/hooks/useAutoLock.ts +110 -0
- package/src/hooks/useDebouncedValue.ts +32 -0
- package/src/hooks/useShakeAnimation.ts +42 -0
- package/src/hooks/useUploadBlobUrl.ts +75 -0
- package/src/index.ts +48 -0
- package/src/screens/auth/AccountPickerScreen.tsx +103 -0
- package/src/screens/auth/AuthScreen.tsx +941 -0
- package/src/screens/auth/ConsentScreen.tsx +118 -0
- package/src/screens/auth/ErrorScreen.tsx +96 -0
- package/src/screens/auth/ExpiredLinkScreen.tsx +87 -0
- package/src/screens/auth/ForgotPasswordScreen.tsx +182 -0
- package/src/screens/auth/ImportDataScreen.tsx +112 -0
- package/src/screens/auth/LoginScreen.tsx +484 -0
- package/src/screens/auth/MfaChallengeScreen.tsx +216 -0
- package/src/screens/auth/MfaEnrollScreen.tsx +388 -0
- package/src/screens/auth/PasskeyEnrollScreen.tsx +96 -0
- package/src/screens/auth/PrivacyPolicyScreen.tsx +249 -0
- package/src/screens/auth/RegisterScreen.tsx +430 -0
- package/src/screens/auth/ResetPasswordScreen.tsx +377 -0
- package/src/screens/auth/ServerConfigScreen.tsx +388 -0
- package/src/screens/auth/TermsOfServiceScreen.tsx +236 -0
- package/src/screens/auth/VerifyEmailScreen.tsx +310 -0
- package/src/screens/auth/WelcomeScreen.tsx +78 -0
- package/src/screens/auth/index.ts +36 -0
- package/src/screens/index.ts +1 -0
- package/src/services/__tests__/api-config.test.ts +67 -0
- package/src/services/__tests__/favicon.test.ts +88 -0
- package/src/services/__tests__/hibp-cache.test.ts +37 -0
- package/src/services/__tests__/hibp.test.ts +39 -0
- package/src/services/api-config.ts +260 -0
- package/src/services/auth.service.ts +498 -0
- package/src/services/favicon.ts +102 -0
- package/src/services/hibp-cache.ts +71 -0
- package/src/services/hibp.ts +120 -0
- package/src/services/index.ts +52 -0
- package/src/services/passkey.ts +213 -0
- package/src/types/external.d.ts +24 -0
- package/src/utils/__tests__/clipboard.test.ts +59 -0
- package/src/utils/__tests__/cn.test.ts +24 -0
- package/src/utils/__tests__/debounce.test.ts +42 -0
- package/src/utils/__tests__/error.test.ts +18 -0
- package/src/utils/__tests__/http-error.test.ts +33 -0
- package/src/utils/__tests__/palette.test.ts +22 -0
- package/src/utils/__tests__/password.test.ts +55 -0
- package/src/utils/__tests__/settings-storage.test.ts +15 -0
- package/src/utils/__tests__/validation.test.ts +52 -0
- package/src/utils/api-fetch.ts +61 -0
- package/src/utils/clipboard.ts +69 -0
- package/src/utils/cn.ts +12 -0
- package/src/utils/debounce.ts +33 -0
- package/src/utils/error.ts +10 -0
- package/src/utils/fetch.ts +33 -0
- package/src/utils/http-error.ts +81 -0
- package/src/utils/index.ts +23 -0
- package/src/utils/palette.ts +105 -0
- package/src/utils/password.ts +64 -0
- package/src/utils/settings-storage.ts +68 -0
- package/src/utils/validation.ts +71 -0
- package/styles/globals.css +262 -0
- package/tailwind-preset.js +163 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ServerConfigScreenProps {
|
|
3
|
+
/**
|
|
4
|
+
* Path appended to the configured URL when running the connection
|
|
5
|
+
* test. Defaults to `/api/health`. Server is expected to return JSON
|
|
6
|
+
* with `{ status: "healthy", version: "..." }`.
|
|
7
|
+
*/
|
|
8
|
+
healthCheckPath?: string;
|
|
9
|
+
/** Optional help bullets rendered at the bottom. */
|
|
10
|
+
helpBullets?: string[];
|
|
11
|
+
/** Default number of retry attempts when testing. Default 3. */
|
|
12
|
+
defaultMaxRetries?: number;
|
|
13
|
+
/** Default request timeout in seconds. Default 30. */
|
|
14
|
+
defaultTimeoutSeconds?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function ServerConfigScreen({ healthCheckPath, helpBullets, defaultMaxRetries, defaultTimeoutSeconds, }?: ServerConfigScreenProps): React.JSX.Element;
|
|
17
|
+
export default ServerConfigScreen;
|
|
18
|
+
//# sourceMappingURL=ServerConfigScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerConfigScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/auth/ServerConfigScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,eAA+B,EAC/B,WAAW,EACX,iBAAqB,EACrB,qBAA0B,GAC3B,GAAE,uBAA4B,qBAwV9B;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { ActivityIndicator, Alert, Pressable, ScrollView, Text, TextInput, View, } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { useNavigation } from "../../context/NavigationContext";
|
|
5
|
+
import { StatusBar } from "expo-status-bar";
|
|
6
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
7
|
+
import { useColorScheme } from "nativewind";
|
|
8
|
+
import * as Haptics from "expo-haptics";
|
|
9
|
+
import AuthService from "../../services/auth.service";
|
|
10
|
+
import { getDefaultBaseUrl } from "../../services/api-config";
|
|
11
|
+
import { useAppConfig } from "../../context/AppConfigContext";
|
|
12
|
+
import { getErrorMessage } from "../../utils/error";
|
|
13
|
+
export function ServerConfigScreen({ healthCheckPath = "/api/health", helpBullets, defaultMaxRetries = 3, defaultTimeoutSeconds = 30, } = {}) {
|
|
14
|
+
const router = useNavigation();
|
|
15
|
+
const { appName } = useAppConfig();
|
|
16
|
+
const defaultUrl = getDefaultBaseUrl();
|
|
17
|
+
const [serverUrl, setServerUrl] = useState("");
|
|
18
|
+
const [isTestingConnection, setIsTestingConnection] = useState(false);
|
|
19
|
+
const [connectionStatus, setConnectionStatus] = useState("idle");
|
|
20
|
+
const [testAttempt, setTestAttempt] = useState(0);
|
|
21
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
22
|
+
const { colorScheme } = useColorScheme();
|
|
23
|
+
const isDark = colorScheme === "dark";
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
try {
|
|
26
|
+
setServerUrl(AuthService.getBaseUrl());
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
setServerUrl(defaultUrl);
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
setIsLoading(false);
|
|
33
|
+
}
|
|
34
|
+
}, [defaultUrl]);
|
|
35
|
+
const testConnectionWithRetry = async (url, attemptNumber = 1) => {
|
|
36
|
+
const timeoutMs = defaultTimeoutSeconds * 1000;
|
|
37
|
+
try {
|
|
38
|
+
setTestAttempt(attemptNumber);
|
|
39
|
+
const formattedUrl = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
40
|
+
const healthUrl = `${formattedUrl}${healthCheckPath}`;
|
|
41
|
+
const controller = new AbortController();
|
|
42
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
43
|
+
const response = await fetch(healthUrl, {
|
|
44
|
+
method: "GET",
|
|
45
|
+
signal: controller.signal,
|
|
46
|
+
headers: { Accept: "application/json" },
|
|
47
|
+
});
|
|
48
|
+
clearTimeout(timeoutId);
|
|
49
|
+
if (response.ok) {
|
|
50
|
+
const data = await response.json();
|
|
51
|
+
if (data.status === "healthy" && data.version) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (attemptNumber < defaultMaxRetries) {
|
|
56
|
+
await new Promise((resolve) => setTimeout(resolve, attemptNumber * 1000));
|
|
57
|
+
return await testConnectionWithRetry(url, attemptNumber + 1);
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
if (attemptNumber < defaultMaxRetries) {
|
|
63
|
+
await new Promise((resolve) => setTimeout(resolve, attemptNumber * 1000));
|
|
64
|
+
return await testConnectionWithRetry(url, attemptNumber + 1);
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const testConnection = async () => {
|
|
70
|
+
if (!serverUrl) {
|
|
71
|
+
Alert.alert("Error", "Please enter a server URL");
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
setIsTestingConnection(true);
|
|
75
|
+
setConnectionStatus("testing");
|
|
76
|
+
setTestAttempt(0);
|
|
77
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
78
|
+
try {
|
|
79
|
+
const success = await testConnectionWithRetry(serverUrl);
|
|
80
|
+
setIsTestingConnection(false);
|
|
81
|
+
if (success) {
|
|
82
|
+
setConnectionStatus("success");
|
|
83
|
+
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
|
|
84
|
+
Alert.alert("Success", "Connection successful! Server is reachable and responding correctly.", [{ text: "OK" }]);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
setConnectionStatus("error");
|
|
88
|
+
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
|
|
89
|
+
Alert.alert("Connection Failed", `Unable to reach the server after ${defaultMaxRetries} attempts. Please check the URL and try again.`, [{ text: "OK" }]);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
setIsTestingConnection(false);
|
|
94
|
+
setConnectionStatus("error");
|
|
95
|
+
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
|
|
96
|
+
Alert.alert("Connection Error", "An unexpected error occurred while testing the connection.", [{ text: "OK" }]);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const handleSave = async () => {
|
|
100
|
+
if (!serverUrl) {
|
|
101
|
+
Alert.alert("Error", "Please enter a server URL");
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const sanitizedUrl = serverUrl.trim();
|
|
105
|
+
try {
|
|
106
|
+
const url = new URL(sanitizedUrl);
|
|
107
|
+
if (url.protocol === "http:" && !["localhost", "127.0.0.1"].includes(url.hostname)) {
|
|
108
|
+
Alert.alert("HTTPS Required", "Non-localhost connections require HTTPS. Please use an https:// URL.", [{ text: "OK" }]);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch {
|
|
113
|
+
// setBaseUrl validates and surfaces the error
|
|
114
|
+
}
|
|
115
|
+
try {
|
|
116
|
+
await AuthService.setBaseUrl(sanitizedUrl);
|
|
117
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
118
|
+
Alert.alert("Configuration Saved", "Server settings have been saved.", [
|
|
119
|
+
{ text: "OK", onPress: () => router.back() },
|
|
120
|
+
]);
|
|
121
|
+
}
|
|
122
|
+
catch (e) {
|
|
123
|
+
Alert.alert("Save Failed", `Unable to save the configuration: ${getErrorMessage(e)}`, [
|
|
124
|
+
{ text: "OK" },
|
|
125
|
+
]);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const handleUseDefault = () => {
|
|
129
|
+
setServerUrl(defaultUrl);
|
|
130
|
+
setConnectionStatus("idle");
|
|
131
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
132
|
+
};
|
|
133
|
+
const handleClearConfiguration = () => {
|
|
134
|
+
Alert.alert("Clear Configuration", "This will reset all server settings to defaults. Are you sure?", [
|
|
135
|
+
{ text: "Cancel", style: "cancel" },
|
|
136
|
+
{
|
|
137
|
+
text: "Clear",
|
|
138
|
+
style: "destructive",
|
|
139
|
+
onPress: async () => {
|
|
140
|
+
try {
|
|
141
|
+
await AuthService.resetBaseUrl();
|
|
142
|
+
setServerUrl(defaultUrl);
|
|
143
|
+
setConnectionStatus("idle");
|
|
144
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
145
|
+
Alert.alert("Success", "Configuration has been reset to defaults.");
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
Alert.alert("Error", "Failed to clear configuration.");
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
]);
|
|
153
|
+
};
|
|
154
|
+
if (isLoading) {
|
|
155
|
+
return (<SafeAreaView className="flex-1 bg-background">
|
|
156
|
+
<View className="flex-1 items-center justify-center">
|
|
157
|
+
<ActivityIndicator size="large" color={isDark ? "white" : "black"}/>
|
|
158
|
+
</View>
|
|
159
|
+
</SafeAreaView>);
|
|
160
|
+
}
|
|
161
|
+
const bullets = helpBullets ?? [
|
|
162
|
+
`Default server is hosted at ${defaultUrl}`,
|
|
163
|
+
"Ensure your server is running and the /api/health endpoint is accessible",
|
|
164
|
+
"Use HTTPS for secure connections",
|
|
165
|
+
];
|
|
166
|
+
return (<SafeAreaView className="flex-1 bg-background">
|
|
167
|
+
<StatusBar style="auto"/>
|
|
168
|
+
<ScrollView className="flex-1">
|
|
169
|
+
<View className="px-6 py-6">
|
|
170
|
+
<View className="mb-8 flex-row items-center justify-between">
|
|
171
|
+
<Pressable onPress={() => router.back()} accessibilityRole="button" accessibilityLabel="Go back" className="active:scale-98 h-10 w-10 items-center justify-center rounded-lg bg-secondary">
|
|
172
|
+
<Ionicons name="close" size={24} color={isDark ? "white" : "black"}/>
|
|
173
|
+
</Pressable>
|
|
174
|
+
<Text className="text-lg font-semibold text-foreground">Server Configuration</Text>
|
|
175
|
+
<View className="h-10 w-10"/>
|
|
176
|
+
</View>
|
|
177
|
+
|
|
178
|
+
<View className="mb-6 rounded-lg bg-secondary p-4">
|
|
179
|
+
<View className="flex-row items-start">
|
|
180
|
+
<Ionicons name="information-circle" size={24} color={isDark ? "#3b82f6" : "#2563eb"}/>
|
|
181
|
+
<View className="ml-3 flex-1">
|
|
182
|
+
<Text className="mb-1 text-sm font-semibold text-foreground">
|
|
183
|
+
Self-Hosted Server
|
|
184
|
+
</Text>
|
|
185
|
+
<Text className="text-xs text-muted-foreground">
|
|
186
|
+
Configure your own {appName} server for complete control over your data. Default
|
|
187
|
+
server: {defaultUrl}
|
|
188
|
+
</Text>
|
|
189
|
+
</View>
|
|
190
|
+
</View>
|
|
191
|
+
</View>
|
|
192
|
+
|
|
193
|
+
<View className="mb-6">
|
|
194
|
+
<Text className="mb-2 text-sm font-medium text-foreground">Server URL</Text>
|
|
195
|
+
<View className="flex-row items-center rounded-lg border border-border bg-background px-3 py-3">
|
|
196
|
+
<Ionicons name="globe-outline" size={20} color={isDark ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.5)"}/>
|
|
197
|
+
<TextInput value={serverUrl} onChangeText={(text) => {
|
|
198
|
+
setServerUrl(text);
|
|
199
|
+
setConnectionStatus("idle");
|
|
200
|
+
}} placeholder={defaultUrl} placeholderTextColor={isDark ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.5)"} autoCapitalize="none" autoCorrect={false} keyboardType="url" accessibilityLabel="Server URL" className="ml-2 flex-1 text-base text-foreground"/>
|
|
201
|
+
{connectionStatus === "success" && (<Ionicons name="checkmark-circle" size={20} color="#22c55e"/>)}
|
|
202
|
+
{connectionStatus === "error" && (<Ionicons name="close-circle" size={20} color="#ef4444"/>)}
|
|
203
|
+
</View>
|
|
204
|
+
</View>
|
|
205
|
+
|
|
206
|
+
<Pressable onPress={testConnection} disabled={isTestingConnection} accessibilityRole="button" accessibilityLabel="Test connection" className="active:scale-98 mb-3 w-full rounded-lg border border-border bg-background px-6 py-4">
|
|
207
|
+
{isTestingConnection ? (<View className="flex-row items-center justify-center">
|
|
208
|
+
<ActivityIndicator size="small" color={isDark ? "white" : "black"}/>
|
|
209
|
+
<Text className="ml-2 text-base font-semibold text-foreground">
|
|
210
|
+
Testing Connection
|
|
211
|
+
{testAttempt > 0 ? ` (Attempt ${testAttempt}/${defaultMaxRetries})` : "..."}
|
|
212
|
+
</Text>
|
|
213
|
+
</View>) : (<View className="flex-row items-center justify-center">
|
|
214
|
+
<Ionicons name="wifi-outline" size={20} color={isDark ? "white" : "black"}/>
|
|
215
|
+
<Text className="ml-2 text-base font-semibold text-foreground">
|
|
216
|
+
Test Connection
|
|
217
|
+
</Text>
|
|
218
|
+
</View>)}
|
|
219
|
+
</Pressable>
|
|
220
|
+
|
|
221
|
+
<Pressable onPress={handleUseDefault} accessibilityRole="button" accessibilityLabel="Use default server" className="active:scale-98 mb-3 w-full rounded-lg border border-border bg-background px-6 py-4">
|
|
222
|
+
<View className="flex-row items-center justify-center">
|
|
223
|
+
<Ionicons name="cloud-outline" size={20} color={isDark ? "white" : "black"}/>
|
|
224
|
+
<Text className="ml-2 text-base font-semibold text-foreground">
|
|
225
|
+
Use Default Server
|
|
226
|
+
</Text>
|
|
227
|
+
</View>
|
|
228
|
+
</Pressable>
|
|
229
|
+
|
|
230
|
+
<Pressable onPress={handleClearConfiguration} accessibilityRole="button" accessibilityLabel="Clear all settings" className="active:scale-98 mb-3 w-full rounded-lg border border-destructive bg-background px-6 py-3">
|
|
231
|
+
<View className="flex-row items-center justify-center">
|
|
232
|
+
<Ionicons name="trash-outline" size={20} color="#ef4444"/>
|
|
233
|
+
<Text className="ml-2 text-base font-medium text-destructive">
|
|
234
|
+
Clear All Settings
|
|
235
|
+
</Text>
|
|
236
|
+
</View>
|
|
237
|
+
</Pressable>
|
|
238
|
+
|
|
239
|
+
<Pressable onPress={handleSave} accessibilityRole="button" accessibilityLabel="Save configuration" className="active:scale-98 mb-6 w-full rounded-lg bg-primary px-6 py-4">
|
|
240
|
+
<Text className="text-center text-base font-semibold text-primary-foreground">
|
|
241
|
+
Save Configuration
|
|
242
|
+
</Text>
|
|
243
|
+
</Pressable>
|
|
244
|
+
|
|
245
|
+
<View className="rounded-lg bg-card p-4">
|
|
246
|
+
<Text className="mb-3 text-sm font-semibold text-foreground">Need Help?</Text>
|
|
247
|
+
<View className="space-y-2">
|
|
248
|
+
{bullets.map((bullet, idx) => (<View key={idx} className="flex-row items-start">
|
|
249
|
+
<Text className="mr-2 text-sm text-muted-foreground">•</Text>
|
|
250
|
+
<Text className="flex-1 text-sm text-muted-foreground">{bullet}</Text>
|
|
251
|
+
</View>))}
|
|
252
|
+
</View>
|
|
253
|
+
</View>
|
|
254
|
+
</View>
|
|
255
|
+
</ScrollView>
|
|
256
|
+
</SafeAreaView>);
|
|
257
|
+
}
|
|
258
|
+
export default ServerConfigScreen;
|
|
259
|
+
//# sourceMappingURL=ServerConfigScreen.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerConfigScreen.jsx","sourceRoot":"","sources":["../../../src/screens/auth/ServerConfigScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,UAAU,EACV,IAAI,EACJ,SAAS,EACT,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,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AAC,UAAU,CAAC,CACpB,iBAAiB,CAAC,QAAQ,CAC1B,kBAAkB,CAAC,oBAAoB,CACvC,SAAS,CAAC,6DAA6D,CAEvE;YAAA,CAAC,IAAI,CAAC,SAAS,CAAC,6DAA6D,CAC3E;;YACF,EAAE,IAAI,CACR;UAAA,EAAE,SAAS,CAEX;;UAAA,CAAC,IAAI,CAAC,SAAS,CAAC,wBAAwB,CACtC;YAAA,CAAC,IAAI,CAAC,SAAS,CAAC,4CAA4C,CAAC,UAAU,EAAE,IAAI,CAC7E;YAAA,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CACzB;cAAA,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAC9C;kBAAA,CAAC,IAAI,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC,EAAE,IAAI,CAC5D;kBAAA,CAAC,IAAI,CAAC,SAAS,CAAC,sCAAsC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CACvE;gBAAA,EAAE,IAAI,CAAC,CACR,CAAC,CACJ;YAAA,EAAE,IAAI,CACR;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LegalSection {
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TermsOfServiceScreenProps {
|
|
7
|
+
/**
|
|
8
|
+
* Per-app section list. When omitted, the screen falls back to
|
|
9
|
+
* `AppConfig.termsText` (rendered as a single section) or a generic
|
|
10
|
+
* placeholder.
|
|
11
|
+
*/
|
|
12
|
+
sections?: LegalSection[];
|
|
13
|
+
/**
|
|
14
|
+
* Optional version/build label rendered in the header (vault uses
|
|
15
|
+
* `v1.2.3 (4567)` here). Apps that don't ship build metadata can
|
|
16
|
+
* omit this.
|
|
17
|
+
*/
|
|
18
|
+
buildLabel?: string;
|
|
19
|
+
/** Effective-date label override. Defaults to today's date. */
|
|
20
|
+
effectiveDate?: string;
|
|
21
|
+
/** Support email surfaced in the contact section. */
|
|
22
|
+
supportEmail?: string;
|
|
23
|
+
/** Footer organisation name. Defaults to `appName`. */
|
|
24
|
+
organisationName?: string;
|
|
25
|
+
/** Footer license blurb. Defaults to "Open Source • MIT License". */
|
|
26
|
+
licenseLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function TermsOfServiceScreen({ sections, buildLabel, effectiveDate, supportEmail, organisationName, licenseLabel, }: TermsOfServiceScreenProps): React.JSX.Element;
|
|
29
|
+
export default TermsOfServiceScreen;
|
|
30
|
+
//# sourceMappingURL=TermsOfServiceScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TermsOfServiceScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/auth/TermsOfServiceScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,UAAU,EACV,aAAa,EACb,YAA6C,EAC7C,gBAAgB,EAChB,YAA0C,GAC3C,EAAE,yBAAyB,qBA2L3B;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Linking, ScrollView, Text, View } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { useNavigation } from "../../context/NavigationContext";
|
|
5
|
+
import { StatusBar } from "expo-status-bar";
|
|
6
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
7
|
+
import { useColorScheme } from "nativewind";
|
|
8
|
+
import { IconButton } from "../../components/button";
|
|
9
|
+
import { EntropyByline } from "../../components/entropy-mark";
|
|
10
|
+
import { useAppConfig } from "../../context/AppConfigContext";
|
|
11
|
+
export function TermsOfServiceScreen({ sections, buildLabel, effectiveDate, supportEmail = "support@entropysoftworks.com", organisationName, licenseLabel = "Open Source • MIT License", }) {
|
|
12
|
+
const { colorScheme } = useColorScheme();
|
|
13
|
+
const isDark = colorScheme === "dark";
|
|
14
|
+
const router = useNavigation();
|
|
15
|
+
const { appName, termsText } = useAppConfig();
|
|
16
|
+
const resolvedSections = sections ??
|
|
17
|
+
(termsText
|
|
18
|
+
? [{ title: "Terms", content: termsText }]
|
|
19
|
+
: [{ title: "Terms of Service", content: `Terms of service for ${appName}.` }]);
|
|
20
|
+
const today = effectiveDate ??
|
|
21
|
+
new Date().toLocaleDateString("en-US", {
|
|
22
|
+
year: "numeric",
|
|
23
|
+
month: "long",
|
|
24
|
+
day: "numeric",
|
|
25
|
+
});
|
|
26
|
+
const org = organisationName ?? appName;
|
|
27
|
+
return (<SafeAreaView className="flex-1" style={{ backgroundColor: isDark ? "#000000" : "#FFFFFF" }}>
|
|
28
|
+
<StatusBar style={isDark ? "light" : "dark"}/>
|
|
29
|
+
|
|
30
|
+
<View className="flex-1" style={{ backgroundColor: isDark ? "#000000" : "#FFFFFF" }}>
|
|
31
|
+
<View className="px-6 pt-4 pb-6">
|
|
32
|
+
<View className="flex-row items-center justify-between mb-6">
|
|
33
|
+
<IconButton variant="ghost" size="sm" onPress={() => router.back()}>
|
|
34
|
+
<Ionicons name="arrow-back" size={20} color={isDark ? "#FFFFFF" : "#000000"}/>
|
|
35
|
+
</IconButton>
|
|
36
|
+
|
|
37
|
+
{buildLabel ? (<Text className="text-xs" style={{ color: isDark ? "#999999" : "#666666" }}>
|
|
38
|
+
{buildLabel}
|
|
39
|
+
</Text>) : null}
|
|
40
|
+
</View>
|
|
41
|
+
|
|
42
|
+
<Text className="font-sans-bold mb-3" style={{ fontSize: 36, color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
43
|
+
Terms of Service
|
|
44
|
+
</Text>
|
|
45
|
+
|
|
46
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666" }}>
|
|
47
|
+
Effective Date: {today}
|
|
48
|
+
</Text>
|
|
49
|
+
</View>
|
|
50
|
+
|
|
51
|
+
<ScrollView className="flex-1 px-6" showsVerticalScrollIndicator={false} contentContainerStyle={{ paddingBottom: 40 }}>
|
|
52
|
+
<View className="rounded-lg mb-4 p-4" style={{
|
|
53
|
+
backgroundColor: isDark ? "#1A1A1A" : "#F9F9F9",
|
|
54
|
+
borderWidth: 1,
|
|
55
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
56
|
+
}}>
|
|
57
|
+
<Text className="font-mono text-base" style={{ color: isDark ? "#E5E5E5" : "#333333", lineHeight: 24 }}>
|
|
58
|
+
These Terms of Service ("Terms") govern your use of {appName} and related
|
|
59
|
+
services. By using {appName}, you agree to be bound by these Terms.
|
|
60
|
+
</Text>
|
|
61
|
+
</View>
|
|
62
|
+
|
|
63
|
+
<View className="gap-4">
|
|
64
|
+
{resolvedSections.map((section, index) => (<View key={index} className="rounded-lg p-4" style={{
|
|
65
|
+
backgroundColor: isDark ? "#0A0A0A" : "#FFFFFF",
|
|
66
|
+
borderWidth: 1,
|
|
67
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
68
|
+
}}>
|
|
69
|
+
<Text className="font-sans-medium text-lg mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
70
|
+
{section.title}
|
|
71
|
+
</Text>
|
|
72
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 22 }}>
|
|
73
|
+
{section.content}
|
|
74
|
+
</Text>
|
|
75
|
+
</View>))}
|
|
76
|
+
|
|
77
|
+
<View className="rounded-lg p-4" style={{
|
|
78
|
+
backgroundColor: isDark ? "#0A0A0A" : "#FFFFFF",
|
|
79
|
+
borderWidth: 1,
|
|
80
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
81
|
+
}}>
|
|
82
|
+
<Text className="font-sans-medium text-lg mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
83
|
+
Contact
|
|
84
|
+
</Text>
|
|
85
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 22 }}>
|
|
86
|
+
For questions about these Terms of Service, please contact us by email at{" "}
|
|
87
|
+
<Text className="font-mono text-sm underline" style={{ color: isDark ? "#6BA3E5" : "#4A90E2" }} onPress={() => Linking.openURL(`mailto:${supportEmail}`)}>
|
|
88
|
+
{supportEmail}
|
|
89
|
+
</Text>
|
|
90
|
+
</Text>
|
|
91
|
+
</View>
|
|
92
|
+
</View>
|
|
93
|
+
|
|
94
|
+
<View className="rounded-lg mt-6 p-4" style={{
|
|
95
|
+
backgroundColor: isDark ? "#1A2332" : "#F0F8FF",
|
|
96
|
+
borderWidth: 1,
|
|
97
|
+
borderColor: isDark ? "#2A3F5F" : "#D0E0FF",
|
|
98
|
+
}}>
|
|
99
|
+
<View className="flex-row items-start">
|
|
100
|
+
<Ionicons name="information-circle" size={20} color="#4A90E2" style={{ marginTop: 2, marginRight: 8 }}/>
|
|
101
|
+
<View className="flex-1">
|
|
102
|
+
<Text className="font-sans-medium text-sm mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
103
|
+
Important Notice
|
|
104
|
+
</Text>
|
|
105
|
+
<Text className="font-mono text-xs" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 20 }}>
|
|
106
|
+
By creating an account or using {appName}, you acknowledge that you have read,
|
|
107
|
+
understood, and agree to be bound by these Terms of Service. If you do not agree,
|
|
108
|
+
please discontinue use of the application.
|
|
109
|
+
</Text>
|
|
110
|
+
</View>
|
|
111
|
+
</View>
|
|
112
|
+
</View>
|
|
113
|
+
|
|
114
|
+
<View className="mt-8 items-center">
|
|
115
|
+
<Text className="font-mono text-xs text-center" style={{ color: isDark ? "#666666" : "#999999" }}>
|
|
116
|
+
© {new Date().getFullYear()} {org}. All rights reserved.
|
|
117
|
+
</Text>
|
|
118
|
+
{licenseLabel ? (<Text className="font-mono text-xs text-center mt-2" style={{ color: isDark ? "#666666" : "#999999" }}>
|
|
119
|
+
{licenseLabel}
|
|
120
|
+
</Text>) : null}
|
|
121
|
+
<View style={{ marginTop: 20 }}>
|
|
122
|
+
<EntropyByline size={16}/>
|
|
123
|
+
</View>
|
|
124
|
+
</View>
|
|
125
|
+
</ScrollView>
|
|
126
|
+
</View>
|
|
127
|
+
</SafeAreaView>);
|
|
128
|
+
}
|
|
129
|
+
export default TermsOfServiceScreen;
|
|
130
|
+
//# sourceMappingURL=TermsOfServiceScreen.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TermsOfServiceScreen.jsx","sourceRoot":"","sources":["../../../src/screens/auth/TermsOfServiceScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAA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