From 96fd7ecf41dc171734088e4263caa403ec72c96e Mon Sep 17 00:00:00 2001 From: Conor Meagher <conor@hireconor.com> Date: Tue, 21 Sep 2021 04:59:34 -0500 Subject: [PATCH] chore: change calendso strings to cal.com (#707) * chore: change calendso strings to cal.com * rebase LICENSE * rebase LICENSE * strings that were missed Co-authored-by: Bailey Pumfleet <pumfleet@hey.com> --- LICENSE | 2 +- README.md | 10 ++--- docker-compose.yml | 2 +- ee/LICENSE | 2 +- lib/emails/EventAttendeeMail.ts | 10 ++--- lib/emails/EventOrganizerMail.ts | 15 +++----- lib/emails/EventOrganizerRescheduledMail.ts | 2 +- lib/emails/EventRejectionMail.ts | 7 ++-- lib/emails/invitation.ts | 6 +-- lib/emails/sendMail.ts | 2 +- .../messaging/forgot-password.ts | 4 +- pages/api/auth/[...nextauth].tsx | 2 +- pages/auth/login.tsx | 2 +- pages/auth/signup.tsx | 4 +- pages/event-types/index.tsx | 26 ++++++------- pages/getting-started.tsx | 2 +- pages/integrations/index.tsx | 2 +- pages/settings/embed.tsx | 4 +- pages/settings/profile.tsx | 4 +- pages/success.tsx | 37 +++++++++---------- public/site.webmanifest | 6 +-- 21 files changed, 72 insertions(+), 79 deletions(-) diff --git a/LICENSE b/LICENSE index 35ea8146..da549a7e 100644 --- a/LICENSE +++ b/LICENSE @@ -666,4 +666,4 @@ specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see -<https://www.gnu.org/licenses/>. +<https://www.gnu.org/licenses/>. \ No newline at end of file diff --git a/README.md b/README.md index 136dd36c..0e7b8e5e 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ That's where Cal.com comes in. Self-hosted or hosted by us. White-label by desig #### Support us on [Product Hunt](https://www.producthunt.com/posts/calendso?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-calendso) -<a href="https://www.producthunt.com/posts/calendso?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-calendso" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=291910&theme=light&period=monthly" alt="Calendso - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> <a href="https://www.producthunt.com/posts/calendso?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-calendso" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=291910&theme=light" alt="Calendso - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> <a href="https://www.producthunt.com/stories/how-this-open-source-calendly-alternative-rocketed-to-product-of-the-day" target="_blank"><img src="https://cal.com/maker-grant.svg" alt="Cal.com - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> +<a href="https://www.producthunt.com/posts/calendso?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-calendso" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=291910&theme=light&period=monthly" alt="Cal.com - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> <a href="https://www.producthunt.com/posts/calendso?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-calendso" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=291910&theme=light" alt="Cal.com - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> <a href="https://www.producthunt.com/stories/how-this-open-source-calendly-alternative-rocketed-to-product-of-the-day" target="_blank"><img src="https://cal.com/maker-grant.svg" alt="Cal.com - The open source Calendly alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> ### Built With @@ -134,7 +134,7 @@ yarn dx 6. Once you completed the above steps, click on your newly created `Heroku Postgres` and go to its `Settings`.  - 7. In `Settings`, copy your URI to your Calendso .env file and replace the `postgresql://<user>:<pass>@<db-host>:<db-port>` with it. + 7. In `Settings`, copy your URI to your Cal.com .env file and replace the `postgresql://<user>:<pass>@<db-host>:<db-port>` with it.   @@ -244,7 +244,7 @@ Contributions are what make the open source community such an amazing place to b 6. In the third page (Test Users), add the Google account(s) you'll using. Make sure the details are correct on the last page of the wizard and your consent screen will be configured. 7. Now select [Credentials](https://console.cloud.google.com/apis/credentials) from the side pane and then select Create Credentials. Select the OAuth Client ID option. 8. Select Web Application as the Application Type. -9. Under Authorized redirect URI's, select Add URI and then add the URI `<CALENDSO URL>/api/integrations/googlecalendar/callback` replacing CALENDSO URL with the URI at which your application runs. +9. Under Authorized redirect URI's, select Add URI and then add the URI `<Cal.com URL>/api/integrations/googlecalendar/callback` replacing Cal.com URL with the URI at which your application runs. 10. The key will be created and you will be redirected back to the Credentials page. Select the newly generated client ID under OAuth 2.0 Client IDs. 11. Select Download JSON. Copy the contents of this file and paste the entire JSON string in the .env file as the value for GOOGLE_API_CREDENTIALS key. @@ -253,7 +253,7 @@ Contributions are what make the open source community such an amazing place to b 1. Open [Azure App Registration](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) and select New registration 2. Name your application 3. Set **Who can use this application or access this API?** to **Accounts in any organizational directory (Any Azure AD directory - Multitenant)** -4. Set the **Web** redirect URI to `<CALENDSO URL>/api/integrations/office365calendar/callback` replacing CALENDSO URL with the URI at which your application runs. +4. Set the **Web** redirect URI to `<Cal.com URL>/api/integrations/office365calendar/callback` replacing Cal.com URL with the URI at which your application runs. 5. Use **Application (client) ID** as the **MS_GRAPH_CLIENT_ID** attribute value in .env 6. Click **Certificates & secrets** create a new client secret and use the value as the **MS_GRAPH_CLIENT_SECRET** attriubte @@ -267,7 +267,7 @@ Contributions are what make the open source community such an amazing place to b 6. De-select the option to publish the app on the Zoom App Marketplace. 7. Click "Create". 8. Now copy the Client ID and Client Secret to your .env file into the `ZOOM_CLIENT_ID` and `ZOOM_CLIENT_SECRET` fields. -9. Set the Redirect URL for OAuth `<CALENDSO URL>/api/integrations/zoomvideo/callback` replacing CALENDSO URL with the URI at which your application runs. +9. Set the Redirect URL for OAuth `<Cal.com URL>/api/integrations/zoomvideo/callback` replacing Cal.com URL with the URI at which your application runs. 10. Also add the redirect URL given above as a whitelist URL and enable "Subdomain check". Make sure, it says "saved" below the form. 11. You don't need to provide basic information about your app. Instead click at "Scopes" and then at "+ Add Scopes". On the left, click the category "Meeting" and check the scope `meeting:write`. 12. Click "Done". diff --git a/docker-compose.yml b/docker-compose.yml index ec8a69d5..55d88a66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -# this file is a helper to run calendso locally +# this file is a helper to run Cal.com locally # starts a postgres instance on port 5450 to use as a local db version: "3.6" services: diff --git a/ee/LICENSE b/ee/LICENSE index 96f08e11..f63f1ebe 100644 --- a/ee/LICENSE +++ b/ee/LICENSE @@ -39,4 +39,4 @@ SOFTWARE. For all third party components incorporated into the Cal.com Software, those components are licensed under the original license provided by the owner of the -applicable component. +applicable component. \ No newline at end of file diff --git a/lib/emails/EventAttendeeMail.ts b/lib/emails/EventAttendeeMail.ts index 972bbf39..b03070f3 100644 --- a/lib/emails/EventAttendeeMail.ts +++ b/lib/emails/EventAttendeeMail.ts @@ -59,8 +59,7 @@ export default class EventAttendeeMail extends EventMail { </tr> <tr> <td>When</td> - <td>${this.getInviteeStart().format("dddd, LL")}<br>${this.getInviteeStart().format("h:mma")} (${ - this.calEvent.attendees[0].timeZone + <td>${this.getInviteeStart().format("dddd, LL")}<br>${this.getInviteeStart().format("h:mma")} (${this.calEvent.attendees[0].timeZone })</td> </tr> <tr> @@ -92,7 +91,7 @@ export default class EventAttendeeMail extends EventMail { ` </div> <div style="text-align: center; margin-top: 20px; color: #ccc; font-size: 12px;"> - <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Calendso Logo"></div> + <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Cal.com Logo"></div> </body> ` ); @@ -142,9 +141,8 @@ export default class EventAttendeeMail extends EventMail { to: `${this.calEvent.attendees[0].name} <${this.calEvent.attendees[0].email}>`, from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`, replyTo: this.calEvent.organizer.email, - subject: `Confirmed: ${this.calEvent.type} with ${ - this.calEvent.team?.name || this.calEvent.organizer.name - } on ${this.getInviteeStart().format("LT dddd, LL")}`, + subject: `Confirmed: ${this.calEvent.type} with ${this.calEvent.team?.name || this.calEvent.organizer.name + } on ${this.getInviteeStart().format("LT dddd, LL")}`, html: this.getHtmlRepresentation(), text: this.getPlainTextRepresentation(), }; diff --git a/lib/emails/EventOrganizerMail.ts b/lib/emails/EventOrganizerMail.ts index 9f48ee3f..2a114348 100644 --- a/lib/emails/EventOrganizerMail.ts +++ b/lib/emails/EventOrganizerMail.ts @@ -51,9 +51,8 @@ export default class EventOrganizerMail extends EventMail { } protected getAdditionalFooter(): string { - return `<p style="color: #4b5563; margin-top: 20px;">Need to make a change? <a href=${ - process.env.BASE_URL + "/bookings" - } style="color: #161e2e;">Manage my bookings</a></p>`; + return `<p style="color: #4b5563; margin-top: 20px;">Need to make a change? <a href=${process.env.BASE_URL + "/bookings" + } style="color: #161e2e;">Manage my bookings</a></p>`; } protected getImage(): string { @@ -108,14 +107,12 @@ export default class EventOrganizerMail extends EventMail { </tr> <tr> <td>When</td> - <td>${this.getOrganizerStart().format("dddd, LL")}<br>${this.getOrganizerStart().format("h:mma")} (${ - this.calEvent.organizer.timeZone + <td>${this.getOrganizerStart().format("dddd, LL")}<br>${this.getOrganizerStart().format("h:mma")} (${this.calEvent.organizer.timeZone })</td> </tr> <tr> <td>Who</td> - <td>${this.calEvent.attendees[0].name}<br /><small><a href="mailto:${ - this.calEvent.attendees[0].email + <td>${this.calEvent.attendees[0].name}<br /><small><a href="mailto:${this.calEvent.attendees[0].email }">${this.calEvent.attendees[0].email}</a></small></td> </tr> <tr> @@ -137,7 +134,7 @@ export default class EventOrganizerMail extends EventMail { ` </div> <div style="text-align: center; margin-top: 20px; color: #ccc; font-size: 12px;"> - <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Calendso Logo"></div> + <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Cal.com Logo"></div> </body> ` ); @@ -193,7 +190,7 @@ export default class EventOrganizerMail extends EventMail { filename: "event.ics", content: this.getiCalEventAsString(), }, - from: `Calendso <${this.getMailerOptions().from}>`, + from: `Cal.com <${this.getMailerOptions().from}>`, to: toAddresses.join(","), subject: this.getSubject(), html: this.getHtmlRepresentation(), diff --git a/lib/emails/EventOrganizerRescheduledMail.ts b/lib/emails/EventOrganizerRescheduledMail.ts index af9cc864..a21754bc 100644 --- a/lib/emails/EventOrganizerRescheduledMail.ts +++ b/lib/emails/EventOrganizerRescheduledMail.ts @@ -55,7 +55,7 @@ export default class EventOrganizerRescheduledMail extends EventOrganizerMail { filename: "event.ics", content: this.getiCalEventAsString(), }, - from: `Calendso <${this.getMailerOptions().from}>`, + from: `Cal.com <${this.getMailerOptions().from}>`, to: this.calEvent.organizer.email, subject: `Rescheduled event: ${this.calEvent.attendees[0].name} - ${organizerStart.format( "LT dddd, LL" diff --git a/lib/emails/EventRejectionMail.ts b/lib/emails/EventRejectionMail.ts index a6d1c66a..17007b6e 100644 --- a/lib/emails/EventRejectionMail.ts +++ b/lib/emails/EventRejectionMail.ts @@ -52,7 +52,7 @@ export default class EventRejectionMail extends EventMail { ` </div> <div style="text-align: center; margin-top: 20px; color: #ccc; font-size: 12px;"> - <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Calendso Logo"></div> + <img style="opacity: 0.25; width: 120px;" src="https://app.cal.com/cal-logo-word.svg" alt="Cal.com Logo"></div> </body> ` ); @@ -68,9 +68,8 @@ export default class EventRejectionMail extends EventMail { to: `${this.calEvent.attendees[0].name} <${this.calEvent.attendees[0].email}>`, from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`, replyTo: this.calEvent.organizer.email, - subject: `Rejected: ${this.calEvent.type} with ${ - this.calEvent.organizer.name - } on ${this.getInviteeStart().format("dddd, LL")}`, + subject: `Rejected: ${this.calEvent.type} with ${this.calEvent.organizer.name + } on ${this.getInviteeStart().format("dddd, LL")}`, html: this.getHtmlRepresentation(), text: this.getPlainTextRepresentation(), }; diff --git a/lib/emails/invitation.ts b/lib/emails/invitation.ts index ee466865..e4df1b41 100644 --- a/lib/emails/invitation.ts +++ b/lib/emails/invitation.ts @@ -17,7 +17,7 @@ const sendEmail = (invitation: any, { provider }) => nodemailer.createTransport(transport).sendMail( { - from: `Calendso <${from}>`, + from: `Cal.com <${from}>`, to: invitation.toEmail, subject: (invitation.from ? invitation.from + " invited you" : "You have been invited") + @@ -53,7 +53,7 @@ const html = (invitation: any) => { Hi,<br /> <br />` + (invitation.from ? invitation.from + " invited you" : "You have been invited") + - ` to join the team "${invitation.teamName}" in Calendso.<br /> + ` to join the team "${invitation.teamName}" in Cal.com.<br /> <br /> <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;"> <tr> @@ -71,7 +71,7 @@ const html = (invitation: any) => { </td> </tr> </table><br /> - If you prefer not to use "${invitation.toEmail}" as your Calendso email or already have a Calendso account, please request another invitation to that email. + If you prefer not to use "${invitation.toEmail}" as your Cal.com email or already have a Cal.com account, please request another invitation to that email. </td> </tr> </table> diff --git a/lib/emails/sendMail.ts b/lib/emails/sendMail.ts index 917a7308..e904f64d 100644 --- a/lib/emails/sendMail.ts +++ b/lib/emails/sendMail.ts @@ -11,7 +11,7 @@ const sendEmail = ({ to, subject, text, html = null }): Promise<string | SentMes nodemailer.createTransport(transport).sendMail( { - from: `Calendso ${from}`, + from: `Cal.com ${from}`, to, subject, text, diff --git a/lib/forgot-password/messaging/forgot-password.ts b/lib/forgot-password/messaging/forgot-password.ts index fde5350e..8bbf5157 100644 --- a/lib/forgot-password/messaging/forgot-password.ts +++ b/lib/forgot-password/messaging/forgot-password.ts @@ -1,6 +1,6 @@ import buildMessageTemplate from "../../emails/buildMessageTemplate"; -export const forgotPasswordSubjectTemplate = "Forgot your password? - Calendso"; +export const forgotPasswordSubjectTemplate = "Forgot your password? - Cal.com"; export const forgotPasswordMessageTemplate = `Hey there, @@ -9,7 +9,7 @@ Use the link below to reset your password. p.s. It expires in 6 hours. -- Calendso`; +- Cal.com`; export const buildForgotPasswordMessage = (vars) => { return buildMessageTemplate({ diff --git a/pages/api/auth/[...nextauth].tsx b/pages/api/auth/[...nextauth].tsx index 140dafa7..df9c164f 100644 --- a/pages/api/auth/[...nextauth].tsx +++ b/pages/api/auth/[...nextauth].tsx @@ -16,7 +16,7 @@ export default NextAuth({ }, providers: [ Providers.Credentials({ - name: "Calendso", + name: "Cal.com", credentials: { email: { label: "Email Address", type: "email", placeholder: "john.doe@example.com" }, password: { label: "Password", type: "password", placeholder: "Your super secure password" }, diff --git a/pages/auth/login.tsx b/pages/auth/login.tsx index cc63b19a..d4308b70 100644 --- a/pages/auth/login.tsx +++ b/pages/auth/login.tsx @@ -69,7 +69,7 @@ export default function Login({ csrfToken }) { <div className="min-h-screen bg-neutral-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8"> <HeadSeo title="Login" description="Login" /> <div className="sm:mx-auto sm:w-full sm:max-w-md"> - <img className="h-6 mx-auto" src="/calendso-logo-white-word.svg" alt="Calendso Logo" /> + <img className="h-6 mx-auto" src="/calendso-logo-white-word.svg" alt="Cal.com Logo" /> <h2 className="mt-6 text-center text-3xl font-bold text-neutral-900">Sign in to your account</h2> </div> diff --git a/pages/auth/signup.tsx b/pages/auth/signup.tsx index d7cbc943..a6413890 100644 --- a/pages/auth/signup.tsx +++ b/pages/auth/signup.tsx @@ -41,7 +41,7 @@ export default function Signup(props) { method: "POST", }) .then(handleErrors) - .then(() => signIn("Calendso", { callbackUrl: (router.query.callbackUrl || "") as string })) + .then(() => signIn("Cal.com", { callbackUrl: (router.query.callbackUrl || "") as string })) .catch((err) => { setHasErrors(true); setErrorMessage(err.message); @@ -116,7 +116,7 @@ export default function Signup(props) { /> <a onClick={() => - signIn("Calendso", { callbackUrl: (router.query.callbackUrl || "") as string }) + signIn("Cal.com", { callbackUrl: (router.query.callbackUrl || "") as string }) } className="w-5/12 inline-flex justify-center text-sm text-gray-500 font-medium border px-4 py-2 rounded btn cursor-pointer"> Login instead diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx index b6d0f195..ae4225fe 100644 --- a/pages/event-types/index.tsx +++ b/pages/event-types/index.tsx @@ -263,7 +263,7 @@ const EventTypesPage = (props: PageProps) => { return ( <div> <Head> - <title>Event Types | Calendso</title> + <title>Event Types | Cal.com</title> <link rel="icon" href="/favicon.ico" /> </Head> <Shell @@ -342,11 +342,11 @@ const CreateNewEventDialog = ({ profiles, canAddEvents }: { profiles: Profile[]; data-testid="new-event-type" {...(canAddEvents ? { - href: modalOpen.hrefOn, - } + href: modalOpen.hrefOn, + } : { - disabled: true, - })} + disabled: true, + })} StartIcon={PlusIcon}> New event type </Button> @@ -372,8 +372,8 @@ const CreateNewEventDialog = ({ profiles, canAddEvents }: { profiles: Profile[]; eventPage: profile.slug, ...(profile.teamId ? { - teamId: profile.teamId, - } + teamId: profile.teamId, + } : {}), }, }) @@ -681,13 +681,13 @@ export async function getServerSideProps(context) { eventTypes: user.eventTypes.concat(typesRaw).map((type, index) => user.plan === "FREE" && index > 0 ? { - ...type, - $disabled: true, - } + ...type, + $disabled: true, + } : { - ...type, - $disabled: false, - } + ...type, + $disabled: false, + } ), metadata: { membershipCount: 1, diff --git a/pages/getting-started.tsx b/pages/getting-started.tsx index d29a8b05..8bd48801 100644 --- a/pages/getting-started.tsx +++ b/pages/getting-started.tsx @@ -528,7 +528,7 @@ export default function Onboarding(props: OnboardingProps) { return ( <div className="bg-black min-h-screen"> <Head> - <title>Calendso - Getting Started</title> + <title>Cal.com - Getting Started</title> <link rel="icon" href="/favicon.ico" /> </Head> diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index 68d83b12..a5ad5117 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -323,7 +323,7 @@ export default function Home({ integrations }: Props) { title="Connect to Apple Server" subtitle={ <p> - Generate an app specific password to use with Calendso at{" "} + Generate an app specific password to use with Cal.com at{" "} <a className="text-indigo-400" href="https://appleid.apple.com/account/manage" diff --git a/pages/settings/embed.tsx b/pages/settings/embed.tsx index 5f4fa989..0513e740 100644 --- a/pages/settings/embed.tsx +++ b/pages/settings/embed.tsx @@ -19,7 +19,7 @@ export default function Embed(props) { <div className="py-6 lg:pb-8 lg:col-span-9"> <div className="mb-6"> <h2 className="text-lg leading-6 font-medium text-gray-900">iframe Embed</h2> - <p className="mt-1 text-sm text-gray-500">The easiest way to embed Calendso on your website.</p> + <p className="mt-1 text-sm text-gray-500">The easiest way to embed Cal.com on your website.</p> </div> <div className="grid grid-cols-2 space-x-4"> <div> @@ -64,7 +64,7 @@ export default function Embed(props) { </div> </div> <div className="my-6"> - <h2 className="text-lg leading-6 font-medium text-gray-900">Calendso API</h2> + <h2 className="text-lg leading-6 font-medium text-gray-900">Cal.com API</h2> <p className="mt-1 text-sm text-gray-500"> Leverage our API for full control and customizability. </p> diff --git a/pages/settings/profile.tsx b/pages/settings/profile.tsx index 5fbff0e2..1f5e2883 100644 --- a/pages/settings/profile.tsx +++ b/pages/settings/profile.tsx @@ -309,10 +309,10 @@ export default function Settings(props: Props) { </div> <div className="ml-3 text-sm"> <label htmlFor="hide-branding" className="font-medium text-gray-700"> - Disable Calendso branding{" "} + Disable Cal.com branding{" "} {props.user.plan !== "PRO" && <Badge variant="default">PRO</Badge>} </label> - <p className="text-gray-500">Hide all Calendso branding from your public pages.</p> + <p className="text-gray-500">Hide all Cal.com branding from your public pages.</p> </div> </div> </div> diff --git a/pages/success.tsx b/pages/success.tsx index f80d4748..cd3c2c22 100644 --- a/pages/success.tsx +++ b/pages/success.tsx @@ -135,10 +135,9 @@ export default function Success(props: inferSSRProps<typeof getServerSideProps>) `https://calendar.google.com/calendar/r/eventedit?dates=${date .utc() .format("YYYYMMDDTHHmmss[Z]")}/${date - .add(props.eventType.length, "minute") - .utc() - .format("YYYYMMDDTHHmmss[Z]")}&text=${eventName}&details=${ - props.eventType.description + .add(props.eventType.length, "minute") + .utc() + .format("YYYYMMDDTHHmmss[Z]")}&text=${eventName}&details=${props.eventType.description }` + (location ? "&location=" + encodeURIComponent(location) : "") }> <a className="mx-2 rounded-sm border border-neutral-200 dark:border-neutral-700 dark:text-white py-2 px-3"> @@ -156,13 +155,13 @@ export default function Success(props: inferSSRProps<typeof getServerSideProps>) href={ encodeURI( "https://outlook.live.com/calendar/0/deeplink/compose?body=" + - props.eventType.description + - "&enddt=" + - date.add(props.eventType.length, "minute").utc().format() + - "&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=" + - date.utc().format() + - "&subject=" + - eventName + props.eventType.description + + "&enddt=" + + date.add(props.eventType.length, "minute").utc().format() + + "&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=" + + date.utc().format() + + "&subject=" + + eventName ) + (location ? "&location=" + location : "") }> <a @@ -182,13 +181,13 @@ export default function Success(props: inferSSRProps<typeof getServerSideProps>) href={ encodeURI( "https://outlook.office.com/calendar/0/deeplink/compose?body=" + - props.eventType.description + - "&enddt=" + - date.add(props.eventType.length, "minute").utc().format() + - "&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=" + - date.utc().format() + - "&subject=" + - eventName + props.eventType.description + + "&enddt=" + + date.add(props.eventType.length, "minute").utc().format() + + "&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=" + + date.utc().format() + + "&subject=" + + eventName ) + (location ? "&location=" + location : "") }> <a @@ -224,7 +223,7 @@ export default function Success(props: inferSSRProps<typeof getServerSideProps>) )} {!props.hideBranding && ( <div className="mt-4 pt-4 border-t dark:border-gray-900 text-gray-400 text-center text-xs dark:text-white"> - <a href="https://cal.com/signup">Create your own booking link with Calendso</a> + <a href="https://cal.com/signup">Create your own booking link with Cal.com</a> </div> )} </div> diff --git a/public/site.webmanifest b/public/site.webmanifest index 11e9eb0e..15a8e42a 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,6 +1,6 @@ { - "name": "Calendso", - "short_name": "Calendso", + "name": "Cal.com", + "short_name": "Cal.com", "icons": [ { "src": "/android-chrome-192x192.png", @@ -16,4 +16,4 @@ "theme_color": "#ffffff", "background_color": "#ffffff", "display": "standalone" -} +} \ No newline at end of file