diff --git a/apps/mana/apps/web/src/lib/api/config.ts b/apps/mana/apps/web/src/lib/api/config.ts index f257743f8..9e4edf751 100644 --- a/apps/mana/apps/web/src/lib/api/config.ts +++ b/apps/mana/apps/web/src/lib/api/config.ts @@ -59,3 +59,16 @@ export function getManaCreditsUrl(): string { } return process.env.PUBLIC_MANA_CREDITS_URL || 'http://localhost:3061'; } + +/** + * Get the mana-mail service URL. + * Hosts mail threads, send, labels, accounts. + */ +export function getManaMailUrl(): string { + if (browser && typeof window !== 'undefined') { + const injected = (window as unknown as { __PUBLIC_MANA_MAIL_URL__?: string }) + .__PUBLIC_MANA_MAIL_URL__; + return injected || 'http://localhost:3042'; + } + return process.env.PUBLIC_MANA_MAIL_URL || 'http://localhost:3042'; +} diff --git a/apps/mana/apps/web/src/lib/modules/mail/ListView.svelte b/apps/mana/apps/web/src/lib/modules/mail/ListView.svelte new file mode 100644 index 000000000..9c4961fa5 --- /dev/null +++ b/apps/mana/apps/web/src/lib/modules/mail/ListView.svelte @@ -0,0 +1,574 @@ + + + +
{mailStore.error}
+ +Keine Mails
+Dein Postfach ist leer.
+Wähle eine Nachricht aus
+