Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.
Go email-relayemail-routinghttp-to-smtpmail-deliverymailchimp-alternativemailgun-alternativemailsendermailservermailtemplatemailtestpostmark-alternativesend-emailsendgrid-alternativesendmailtransactional-emailtransactional-outbox
chore(templates): move preview route from /emails/preview to /templates/preview
Jonas Kanindaad72fa68c7e6
diff --git a/web/src/router/index.ts b/web/src/router/index.tsindex 2c26a79..dac05f4 100644--- a/web/src/router/index.ts+++ b/web/src/router/index.ts@@ -28,9 +28,9 @@ const routes = [{ path: '', name: 'dashboard', component: () => import('../views/dashboard/Dashboard.vue') },{ path: 'api-keys', name: 'api-keys', component: () => import('../views/apikeys/ApiKeys.vue') },{ path: 'emails', name: 'emails', component: () => import('../views/emails/Emails.vue') },- { path: 'emails/preview', name: 'email-preview', component: () => import('../views/emails/EmailPreview.vue') },{ path: 'emails/:id', name: 'email-detail', component: () => import('../views/emails/EmailDetail.vue') },{ path: 'templates', name: 'templates', component: () => import('../views/templates/Templates.vue') },+ { path: 'templates/preview', name: 'template-preview-general', component: () => import('../views/emails/EmailPreview.vue') },{ path: 'templates/:id/preview', name: 'template-preview', component: () => import('../views/templates/TemplatePreview.vue') },{ path: 'templates/:id/versions', name: 'template-detail', component: () => import('../views/templates/TemplateDetail.vue') },{ path: 'templates/:id/versions/:versionId/localizations/:localizationId/edit', name: 'template-editor', component: () => import('../views/templates/TemplateEditor.vue') },diff --git a/web/src/views/emails/Emails.vue b/web/src/views/emails/Emails.vueindex 70de61c..48cdfc2 100644--- a/web/src/views/emails/Emails.vue+++ b/web/src/views/emails/Emails.vue@@ -66,7 +66,7 @@ function formatDate(date: string | null) {<div><div class="page-header"><h1>Emails</h1>- <button class="btn btn-secondary" @click="router.push('/emails/preview')">Preview Template</button>+ <button class="btn btn-secondary" @click="router.push('/templates/preview')">Preview Template</button></div><div v-if="loading" class="loading-page">diff --git a/web/src/views/templates/Templates.vue b/web/src/views/templates/Templates.vueindex 46e7877..8409557 100644--- a/web/src/views/templates/Templates.vue+++ b/web/src/views/templates/Templates.vue@@ -217,6 +217,7 @@ onMounted(() => {style="display: none"@change="handleImportFile"/>+ <button class="btn btn-secondary" @click="router.push('/templates/preview')">Preview Template</button><button v-if="wsStore.canEdit" class="btn btn-secondary" :disabled="importing" @click="triggerImport">{{ importing ? "Importing..." : "Import" }}</button>