Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Cleanup unused elements (#1695)
Leendert de Borst46b2cc66e2b1
diff --git a/apps/mobile-app/components/OfflineBanner.tsx b/apps/mobile-app/components/OfflineBanner.tsxdeleted file mode 100644index 097196f39..000000000--- a/apps/mobile-app/components/OfflineBanner.tsx+++ /dev/null@@ -1,141 +0,0 @@-import { Ionicons } from '@expo/vector-icons';-import { useState } from 'react';-import { ActivityIndicator, StyleSheet, View } from 'react-native';-import Toast from 'react-native-toast-message';--import { useColors } from '@/hooks/useColorScheme';-import { useTranslation } from '@/hooks/useTranslation';-import { useVaultSync } from '@/hooks/useVaultSync';--import { ThemedText } from '@/components/themed/ThemedText';-import { ThemedView } from '@/components/themed/ThemedView';-import { RobustPressable } from '@/components/ui/RobustPressable';-import { useAuth } from '@/context/AuthContext';--/**- * A banner component that displays when the app is in offline mode.- * @returns {React.ReactNode} The offline banner component or null if online- */-export function OfflineBanner(): React.ReactNode {- const { isOffline } = useAuth();- const colors = useColors();- const { t } = useTranslation();- const { syncVault } = useVaultSync();- const [isRetrying, setIsRetrying] = useState(false);-- if (!isOffline) {- return null;- }-- /**- * Handle retry connection attempt.- * @returns {Promise<void>}- */- const handleRetry = async (): Promise<void> => {- // Prevent multiple simultaneous retry attempts- if (isRetrying) {- return;- }-- setIsRetrying(true);-- try {- await syncVault({- /**- * Handle status updates during sync.- * @param {string} _message - The status message- */- onStatus: (_message: string) => {- // Status updates will be shown in the toast- },- /**- * Handle successful sync.- */- onSuccess: () => {- Toast.show({- type: 'success',- text1: t('app.offline.backOnline'),- position: 'bottom'- });- setIsRetrying(false);- },- /**- * Handle offline.- */- onOffline: () => {- Toast.show({- type: 'error',- text1: t('app.offline.stillOffline'),- position: 'bottom'- });- setIsRetrying(false);- },- /**- * Handle sync errors.- * @param {string} error - The error message- */- onError: (error: string) => {- Toast.show({- type: 'error',- text1: t('app.offline.stillOffline'),- text2: error,- position: 'bottom'- });- setIsRetrying(false);- }- });- } catch {- // In case of unexpected errors, ensure loading state is cleared- setIsRetrying(false);- }- };-- const styles = StyleSheet.create({- container: {- backgroundColor: colors.primary,- borderRadius: 10,- marginBottom: 12,- padding: 8,- },- content: {- alignItems: 'center',- flexDirection: 'row',- justifyContent: 'center',- },- retryButton: {- marginLeft: 8,- padding: 4,- minWidth: 28,- minHeight: 28,- alignItems: 'center',- justifyContent: 'center',- },- text: {- color: colors.primarySurfaceText,- flex: 1,- fontSize: 14,- textAlign: 'center',- },- });-- return (- <ThemedView style={styles.container}>- <View style={styles.content}>- <ThemedText style={styles.text}>- {t('app.offline.banner')}- </ThemedText>- <RobustPressable- style={styles.retryButton}- onPress={handleRetry}- disabled={isRetrying}- >- {isRetrying ? (- <ActivityIndicator size="small" color={colors.primarySurfaceText} />- ) : (- <Ionicons name="refresh" size={20} color={colors.primarySurfaceText} />- )}- </RobustPressable>- </View>- </ThemedView>- );-}diff --git a/apps/mobile-app/i18n/locales/en.json b/apps/mobile-app/i18n/locales/en.jsonindex e2cc97944..e7838812b 100644--- a/apps/mobile-app/i18n/locales/en.json+++ b/apps/mobile-app/i18n/locales/en.json@@ -40,7 +40,6 @@"username": "Username or email","password": "Password","authCode": "Authentication Code",- "unlock": "Unlock","unlocking": "Unlocking...","loggingIn": "Logging in","validatingCredentials": "Validating credentials",@@ -52,7 +51,6 @@"unlockWithPin": "Unlock with PIN","unlockWithPassword": "Unlock with Password","enterPassword": "Enter your password to unlock your vault",- "enterPasswordPlaceholder": "Password","enterAuthCode": "Enter 6-digit code","usernamePlaceholder": "name / [email protected]","passwordPlaceholder": "Enter your password",@@ -185,8 +183,6 @@"exportConfirmTitle": "Export Vault","exportWarning": "Warning: Exporting your vault to an unencrypted file will expose all of your passwords and sensitive information in plain text. Only do this on trusted devices and ensure you:\n\n• Store the exported file in a secure location\n• Delete the file when you no longer need it\n• Never share the exported file with others\n\nAre you sure you want to continue with the export?","passwordConfirm": {- "title": "Confirm Password",- "defaultDescription": "Please enter your master password to continue.","exportDescription": "For security reasons, please enter your master password to confirm this export."},"security": "Security",@@ -323,8 +319,7 @@"confirmSubtitle": "Re-authenticate to approve login on another device.","confirmMessage": "You are about to log in on a remote device with your account. This other device will have full access to your vault. Only proceed if you trust this device.","successDescription": "The remote device has been successfully logged in.",- "requestExpired": "This login request has expired. Please generate a new QR code.",- "noPinOrBiometricError": "Mobile unlock requires PIN or biometric authentication. Please enable PIN or Face ID/Touch ID in vault unlock settings to use this feature."+ "requestExpired": "This login request has expired. Please generate a new QR code."}}},@@ -422,7 +417,6 @@"noMatchingItemsWithFilter": "No {{filter}} items matching \"{{search}}\"","noItemsFound": "No items found. Create one to get started. Tip: you can also login to the AliasVault web app to import credentials from other password managers.","allItemsInFolders": "All your items are organized in folders. Tap a folder above to view your credentials, or use the search to find specific items.",- "noPasskeysFound": "No passkeys have been created yet. Passkeys are created by visiting a website that offers passkeys as an authentication method.","clearSearch": "Clear search","clearFilter": "Clear filter","recentEmails": "Recent emails",@@ -514,7 +508,6 @@"deleteFolderAndItems": "Delete folder and all items","deleteFolderAndItemsDescription": "{{count}} item(s) will be moved to Recently Deleted.","emptyFolderHint": "This folder is empty. To move items to this folder, edit the item and select this folder.",- "noFolder": "No Folder","selectFolder": "Select Folder"},"recentlyDeleted": {@@ -598,7 +591,6 @@"offline": "Offline","syncing": "Syncing...","pending": "Pending sync",- "retrySync": "Tap to retry","backOnline": "Back online","stillOffline": "Still offline","syncFailed": "Sync failed"@@ -606,19 +598,7 @@"app": {"status": {"unlockingVault": "Unlocking vault",- "decryptingVault": "Decrypting vault",- "openingVaultReadOnly": "Opening vault in read-only mode",- "retryingConnection": "Retrying connection..."- },- "offline": {- "banner": "Offline - changes will sync when online",- "backOnline": "Back online",- "stillOffline": "Still offline"- },- "alerts": {- "syncIssue": "No Connection",- "openLocalVault": "Open Local Vault",- "retrySync": "Retry Sync"+ "decryptingVault": "Decrypting vault"},"navigation": {"login": "Login",@@ -658,7 +638,6 @@"status": {"preparingUpgrade": "Preparing upgrade...","vaultAlreadyUpToDate": "Vault is already up to date",- "startingDatabaseTransaction": "Starting database transaction...","applyingDatabaseMigrations": "Applying database migrations...","applyingMigration": "Applying migration {{current}} of {{total}}...","committingChanges": "Committing changes..."