style: auto-format codebase with Prettier

Applied formatting to 1487+ files using pnpm format:write
  - TypeScript/JavaScript files
  - Svelte components
  - Astro pages
  - JSON configs
  - Markdown docs

  13 files still need manual review (Astro JSX comments)
This commit is contained in:
Wuesteon 2025-11-27 18:33:16 +01:00
parent 0241f5554c
commit d36b321d9d
3952 changed files with 661498 additions and 739751 deletions

View file

@ -3,14 +3,14 @@ import Constants from 'expo-constants';
import { TFunction } from 'i18next';
interface EmailSupportOptions {
userId?: string;
t: TFunction;
userId?: string;
t: TFunction;
}
export const openSupportEmail = async ({ userId, t }: EmailSupportOptions) => {
const email = 'kontakt@memoro.ai';
const subject = 'Support-Anfrage - Memoro App';
const body = `Hallo Memoro Team,
const email = 'kontakt@memoro.ai';
const subject = 'Support-Anfrage - Memoro App';
const body = `Hallo Memoro Team,
ich benötige Hilfe bei:
@ -20,23 +20,23 @@ Benutzer-ID: ${userId || 'Nicht verfügbar'}
App-Version: ${Constants.expoConfig?.version || 'N/A'}
Plattform: ${Platform.OS}`;
const emailUrl = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
const emailUrl = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
try {
const canOpen = await Linking.canOpenURL(emailUrl);
if (canOpen) {
await Linking.openURL(emailUrl);
} else {
Alert.alert(
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
);
}
} catch (error) {
console.error('Could not open email app:', error);
Alert.alert(
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
);
}
};
try {
const canOpen = await Linking.canOpenURL(emailUrl);
if (canOpen) {
await Linking.openURL(emailUrl);
} else {
Alert.alert(
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
);
}
} catch (error) {
console.error('Could not open email app:', error);
Alert.alert(
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
);
}
};