From 50967a8976e77c3ea6cbababfe83da4ca525b710 Mon Sep 17 00:00:00 2001 From: Daniel Apodaca <47479471+apodacaduron@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:25:10 -0600 Subject: [PATCH 1/2] centralize contact information in env file and add premium banner to org --- .env.example | 2 + src/config/constants.ts | 4 ++ .../components/GoPremiumSidebar.vue | 13 +++--- .../organizations/components/OrgLayout.vue | 45 ++++++++++++++++--- .../sales/components/TodaySalesSidebar.vue | 2 +- .../sales/components/ViewSaleSidebar.vue | 3 +- src/pages/home.vue | 4 +- src/pages/legal/cookie-policy.vue | 6 ++- src/pages/legal/legal-notice.vue | 8 +++- src/pages/legal/privacy-policy.vue | 6 ++- src/pages/legal/refund-policy.vue | 12 ++--- src/pages/legal/terms-and-conditions.vue | 6 ++- src/pages/org/customers.vue | 7 +-- src/pages/org/dashboard.vue | 2 +- src/pages/org/products.vue | 5 +-- src/pages/org/sales.vue | 7 +-- 16 files changed, 92 insertions(+), 40 deletions(-) create mode 100644 src/config/constants.ts diff --git a/.env.example b/.env.example index af92abc..d340975 100644 --- a/.env.example +++ b/.env.example @@ -3,3 +3,5 @@ VITE_GOOGLE_MEASUREMENT_ID=YOUR_SUPABASE_URL VITE_SUPABASE_URL=YOUR_SUPABASE_URL VITE_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY VITE_WHATSAPP_URL=https://wa.me +VITE_SUPPORT_EMAIL=example@support.com +VITE_SUPPORT_PHONE=1231231231 diff --git a/src/config/constants.ts b/src/config/constants.ts new file mode 100644 index 0000000..22df98b --- /dev/null +++ b/src/config/constants.ts @@ -0,0 +1,4 @@ +export const WHATSAPP_URL = import.meta.env.VITE_WHATSAPP_URL as string; +export const SUPPORT_EMAIL = import.meta.env.VITE_SUPPORT_EMAIL as string; +export const SUPPORT_PHONE = import.meta.env.VITE_SUPPORT_PHONE as string; +export const SUPPORT_WHATSAPP = `${WHATSAPP_URL}/${SUPPORT_PHONE}`; \ No newline at end of file diff --git a/src/features/organizations/components/GoPremiumSidebar.vue b/src/features/organizations/components/GoPremiumSidebar.vue index a8fa70b..5b97b64 100644 --- a/src/features/organizations/components/GoPremiumSidebar.vue +++ b/src/features/organizations/components/GoPremiumSidebar.vue @@ -62,13 +62,16 @@ async function createStripeCheckout() { ¡Hazte Premium Hoy! - Suscríbete ahora para disfrutar de todos los beneficios exclusivos de - nuestra membresía premium. Accede a contenido exclusivo, soporte - prioritario y mucho más. Haz clic en el botón de abajo para completar - tu suscripción a través de Stripe y mejorar tu experiencia al máximo. + - + diff --git a/src/pages/legal/cookie-policy.vue b/src/pages/legal/cookie-policy.vue index a252b51..c64eb5d 100644 --- a/src/pages/legal/cookie-policy.vue +++ b/src/pages/legal/cookie-policy.vue @@ -1,3 +1,7 @@ + + diff --git a/src/pages/legal/legal-notice.vue b/src/pages/legal/legal-notice.vue index 5e7adc4..97254ba 100644 --- a/src/pages/legal/legal-notice.vue +++ b/src/pages/legal/legal-notice.vue @@ -1,3 +1,7 @@ + + diff --git a/src/pages/legal/privacy-policy.vue b/src/pages/legal/privacy-policy.vue index a74c13b..dbe6afd 100644 --- a/src/pages/legal/privacy-policy.vue +++ b/src/pages/legal/privacy-policy.vue @@ -1,3 +1,7 @@ + + diff --git a/src/pages/legal/refund-policy.vue b/src/pages/legal/refund-policy.vue index 1d5f919..9152e73 100644 --- a/src/pages/legal/refund-policy.vue +++ b/src/pages/legal/refund-policy.vue @@ -1,3 +1,7 @@ + +