Skip to content

Commit

Permalink
♻️ Remove references to old s3 URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 6, 2023
1 parent 61f7f67 commit c2fc2df
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 1,031 deletions.
511 changes: 0 additions & 511 deletions apps/builder/public/bots/onboarding-dark.json

This file was deleted.

510 changes: 0 additions & 510 deletions apps/builder/public/bots/onboarding.json

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/builder/public/images/invitationBanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/builder/public/images/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion apps/builder/src/components/Seo.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { env } from '@typebot.io/env'
import Head from 'next/head'

const getOrigin = () => {
if (typeof window !== 'undefined') {
return window.location.origin
}

return env.NEXTAUTH_URL
}

export const Seo = ({
title,
description = 'Create and publish conversational forms that collect 4 times more answers and feel native to your product',
imagePreviewUrl = 'https://app.typebot.io/site-preview.png',
imagePreviewUrl = `${getOrigin()}/images/og.png`,
}: {
title: string
description?: string
Expand Down
15 changes: 11 additions & 4 deletions apps/builder/src/features/theme/galleryTemplates.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import { env } from '@typebot.io/env'
import { ThemeTemplate } from '@typebot.io/schemas'
import { BackgroundType } from '@typebot.io/schemas/features/typebot/theme/constants'

const getOrigin = () => {
if (typeof window !== 'undefined') {
return window.location.origin
}

return env.NEXTAUTH_URL
}

export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
[
{
Expand Down Expand Up @@ -111,8 +120,7 @@ export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
font: 'Montserrat',
background: {
type: BackgroundType.IMAGE,
content:
'https://s3.fr-par.scw.cloud/typebot/public/typebots/hlmywyje0sbz1lfogu86pyks/blocks/ssmyt084oosa17cggqd8kfg9',
content: getOrigin() + '/images/backgrounds/brightRain.jpeg',
},
},
},
Expand All @@ -136,8 +144,7 @@ export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
font: 'Raleway',
background: {
type: BackgroundType.IMAGE,
content:
'https://s3.fr-par.scw.cloud/typebot/public/typebots/hlmywyje0sbz1lfogu86pyks/blocks/uc2dyf63eeogaivqzm4z2hdb',
content: getOrigin() + '/images/backgrounds/rayOfLights.jpeg',
},
},
},
Expand Down
5 changes: 4 additions & 1 deletion packages/emails/src/emails/AlmostReachedChatsLimitEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Head, HeroImage, Text } from '../components'
import { parseNumberWithCommas } from '@typebot.io/lib'
import { SendMailOptions } from 'nodemailer'
import { sendEmail } from '../sendEmail'
import { env } from '@typebot.io/env'

type AlmostReachedChatsLimitEmailProps = {
workspaceName: string
Expand Down Expand Up @@ -33,7 +34,9 @@ export const AlmostReachedChatsLimitEmail = ({
<MjmlBody width={600}>
<MjmlSection padding="0">
<MjmlColumn>
<HeroImage src="https://typebot.s3.fr-par.scw.cloud/public/assets/yourBotIsFlyingEmailBanner.png" />
<HeroImage
src={`${env.NEXTAUTH_URL}/images/yourBotIsFlyingBanner.png`}
/>
</MjmlColumn>
</MjmlSection>
<MjmlSection padding="0 24px" cssClass="smooth">
Expand Down
3 changes: 2 additions & 1 deletion packages/emails/src/emails/GuestInvitationEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { render } from '@faire/mjml-react/utils/render'
import { HeroImage, Text, Button, Head } from '../components'
import { SendMailOptions } from 'nodemailer'
import { sendEmail } from '../sendEmail'
import { env } from '@typebot.io/env'

type GuestInvitationEmailProps = {
workspaceName: string
Expand All @@ -31,7 +32,7 @@ export const GuestInvitationEmail = ({
<MjmlBody width={600}>
<MjmlSection padding="0">
<MjmlColumn>
<HeroImage src="https://typebot.s3.eu-west-3.amazonaws.com/assets/invitation-banner.png" />
<HeroImage src={`${env.NEXTAUTH_URL}/images/invitationBanner.png`} />
</MjmlColumn>
</MjmlSection>
<MjmlSection padding="0 24px" cssClass="smooth">
Expand Down
5 changes: 4 additions & 1 deletion packages/emails/src/emails/MagicLinkEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { render } from '@faire/mjml-react/utils/render'
import { HeroImage, Text, Button, Head } from '../components'
import { SendMailOptions } from 'nodemailer'
import { sendEmail } from '../sendEmail'
import { env } from '@typebot.io/env'

type Props = {
url: string
Expand All @@ -21,7 +22,9 @@ export const MagicLinkEmail = ({ url }: Props) => (
<MjmlBody width={600}>
<MjmlSection padding="0">
<MjmlColumn>
<HeroImage src="https://s3.fr-par.scw.cloud/typebot/public/typebots/rxp84mn10va5iqek63enrg99/blocks/yfazs53p6coxe4u3tbbvkl0m" />
<HeroImage
src={`${env.NEXTAUTH_URL}/images/yourMagicLinkBanner.png`}
/>
</MjmlColumn>
</MjmlSection>
<MjmlSection padding="0 24px" cssClass="smooth">
Expand Down
5 changes: 4 additions & 1 deletion packages/emails/src/emails/ReachedChatsLimitEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Button, Head, HeroImage, Text } from '../components'
import { parseNumberWithCommas } from '@typebot.io/lib'
import { SendMailOptions } from 'nodemailer'
import { sendEmail } from '../sendEmail'
import { env } from '@typebot.io/env'

type ReachedChatsLimitEmailProps = {
chatsLimit: number
Expand All @@ -29,7 +30,9 @@ export const ReachedChatsLimitEmail = ({
<MjmlBody width={600}>
<MjmlSection padding="0">
<MjmlColumn>
<HeroImage src="https://typebot.s3.fr-par.scw.cloud/public/assets/actionRequiredEmailBanner.png" />
<HeroImage
src={`${env.NEXTAUTH_URL}/images/actionRequiredBanner.png`}
/>
</MjmlColumn>
</MjmlSection>
<MjmlSection padding="0 24px" cssClass="smooth">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { render } from '@faire/mjml-react/utils/render'
import { HeroImage, Text, Button, Head } from '../components'
import { SendMailOptions } from 'nodemailer'
import { sendEmail } from '../sendEmail'
import { env } from '@typebot.io/env'

type WorkspaceMemberInvitationProps = {
workspaceName: string
Expand All @@ -29,7 +30,7 @@ export const WorkspaceMemberInvitation = ({
<MjmlBody width={600}>
<MjmlSection padding="0">
<MjmlColumn>
<HeroImage src="https://typebot.s3.eu-west-3.amazonaws.com/assets/invitation-banner.png" />
<HeroImage src={`${env.NEXTAUTH_URL}/images/invitationBanner.png`} />
</MjmlColumn>
</MjmlSection>
<MjmlSection padding="0 24px" cssClass="smooth">
Expand Down

3 comments on commit c2fc2df

@vercel
Copy link

@vercel vercel bot commented on c2fc2df Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
app.typebot.io
builder-v2-git-main-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c2fc2df Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app
docs.typebot.io

@vercel
Copy link

@vercel vercel bot commented on c2fc2df Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

app.blogely.com
apr.nigerias.io
aso.nigerias.io
baohanh.qmap.vn
blackcan.cr8.ai
blackvip.online
bot.4display.nl
bot.a6t-you.com
bot.airvenue.io
bot.artiweb.app
bot.devitus.com
bot.reeplai.com
bot.scayver.com
pant.maxbot.com.br
pantherview.cr8.ai
positivobra.com.br
rollingball.cr8.ai
ruletaiapro.online
sek13.aarealtor.co
seletiva-bbb24.com
speciallife.com.br
sub.yolozeeeer.com
survey.digienge.io
tribe.ezbooking.ai
voarmaisbrasil.app
w.onewebcenter.com
web.lordromulo.com
web.pauloaguia.com
www.yellobot.co.za
zap.techadviser.in
zero-pendencia.com
ai.convobuilder.com
ai.digitaldaftar.in
al.onewebcenter.com
albertokouty.com.br
app.danielnalex.com
ask.realversity.org
blazecontrol.com.br
bop.hartanah101.com
bot.afterorigin.com
bot.boston-voip.com
bot.cabinpromos.com
bot.carnaval.studio
bot.digitalbled.com
bot.dsignagency.com
bot.enthrallart.com
bot.eventhub.com.au
bot.febredojogo.com
bot.gravityatoms.in
bot.jepierre.com.br
bot.jogodoandre.com
bot.jogomoderno.com
bot.ltmidias.com.br
bot.viralsangat.com
bot.winglabs.com.br
bt.scadiagro.com.br
capitaldigital.live
carsalesenquiry.com
casahackeada.online
chat.jubahkonvo.com
chat.marius.digital
chat.mosdent.com.tr
viewer-v2-typebot-io.vercel.app
mdb.assessoria.jbatista.progenbr.com
mdb.assessoria.mauricio.progenbr.com
mdb.evento.autocadastro.progenbr.com
form.shopmercedesbenzsouthorlando.com
mdb.evento.equipeinterna.progenbr.com
bot.studiotecnicoimmobiliaremerelli.it
mdb.assessoria.boaventura.progenbr.com
mdb.assessoria.jtrebesqui.progenbr.com
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
gabinete.baleia.formulario.progenbr.com
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com

Please sign in to comment.