feat: Upgrade to Next 15 (#18834)
* wip * update layoutHOC * wip * remove app router related code no longer used * remove more * await cookies, headers, params, serachparams * update yarn.lock * await cookies, headers, params, serachparams more * update yarn lock again * downgrade next-auth to 4.22.1 * update yarn lock * fix * update yarn lock * fix type checks * update yarn lock * await headers and cookies * restore pages folder * restore yarn.lock * update yarn.lock * await headers and cookies * remove * await params in API routes * updates * restore next.config.js * remove i18n from next.config.js * Fixed tests * Fixed types * Removed duplicate favicon.ico * Fixing more types * ImageResponse moved to next/og * Fixed prisma import issues * dynamic import for @ewsjs/xhr * remove deasync dep * dynamic import for @tryvital/vital-node * fix type checks * add back turbopack command * Type fix * Removed unneeded file * fix turbopack relative path errors * add comments * remove unneeded code * Fixed build errors * await apis * use Promise<Params> type in defaultResponderForAppDir util * refactor scim api route * fix type checks * separate app-routing.config into client-config and server-config * wip * refactor routing forms components * revert unneeded changes for easier review * fix * fix * use CustomTrans * fix type * fix unit tests * fix type error * fix build error * fix build error * fix build error * fix warnings * fix warnings * upgrade @tremor/react and tailwindcss * numCols -> numItems * fix forgot-password e2e test * fix 1 more e2e test * fix login e2e test * fix e2e tests * fix e2e tests * clean up * remove error * use tremor/react 2.11.0 * fix * rename CustomTrans to ServerTrans * address comment * fix test * fix ServerTrans * fix * fix type * fix ServerTrans usages 1 * fix translations * fix type checks * fix type checks * link styling * fix --------- Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
263 files changed
+2002
-1663
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { cloneDeep } from "lodash";
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
import type { z } from "zod";
|
||||
|
||||
import type BaseEmail from "@calcom/emails/templates/_base-email";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EventStatus } from "ics";
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { DateArray, ParticipationRole, EventStatus, ParticipationStatus } from "ics";
|
||||
import { createEvent } from "ics";
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
import { RRule } from "rrule";
|
||||
|
||||
import { getRichDescription } from "@calcom/lib/CalEventParser";
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"dependencies": {
|
||||
"@calcom/dayjs": "*",
|
||||
"@calcom/lib": "*",
|
||||
"next-i18next": "^13.2.2",
|
||||
"next-i18next": "^15.4.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"rrule": "^2.7.1"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { guessEventLocationType } from "@calcom/app-store/locations";
|
||||
import { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import getLabelValueMapFromResponses from "@calcom/lib/getLabelValueMapFromResponses";
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
import { RRule } from "rrule";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import isSmsCalEmail from "@calcom/lib/isSmsCalEmail";
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { Trans, type TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
@@ -92,20 +91,7 @@ export const AdminOrganizationNotificationEmail = ({
|
||||
<>{language("hi_admin")}!</>
|
||||
</p>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
<Trans i18nKey="admin_org_notification_email_body_part1" t={language} values={{ orgSlug }}>
|
||||
An organization with slug {`"${orgSlug}"`} was created.
|
||||
<br />
|
||||
<br />
|
||||
Please be sure to configure your DNS registry to point the subdomain corresponding to the new
|
||||
organization to where the main app is running. Otherwise the organization will not work.
|
||||
<br />
|
||||
<br />
|
||||
Here are just the very basic options to configure a subdomain to point to their app so it loads the
|
||||
organization profile page.
|
||||
<br />
|
||||
<br />
|
||||
You can do it either with the A Record:
|
||||
</Trans>
|
||||
<ServerTrans i18nKey="admin_org_notification_email_body_part1" t={language} values={{ orgSlug }} />
|
||||
</p>
|
||||
{dnsTable("A", orgSlug, webappIPAddress, language)}
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { formatPrice } from "@calcom/lib/price";
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import type { TFunction } from "next-i18next";
|
||||
import { Trans } from "react-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { AppStoreLocationType } from "@calcom/app-store/locations";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import { BaseScheduledEmail } from "./BaseScheduledEmail";
|
||||
|
||||
@@ -17,18 +15,27 @@ export function getEnumKeyByEnumValue(myEnum: any, enumValue: number | string):
|
||||
|
||||
const BrokenVideoIntegration = (props: { location: string; eventTypeId?: number | null; t: TFunction }) => {
|
||||
return (
|
||||
<Trans i18nKey="broken_video_action" t={props.t}>
|
||||
We could not add the <span>{props.location}</span> meeting link to your scheduled event. Contact your
|
||||
invitees or update your calendar event to add the details. You can either
|
||||
<a
|
||||
href={
|
||||
props.eventTypeId ? `${WEBAPP_URL}/event-types/${props.eventTypeId}` : `${WEBAPP_URL}/event-types`
|
||||
}>
|
||||
change your location on the event type
|
||||
</a>
|
||||
or try
|
||||
<a href={`${WEBAPP_URL}/apps/installed`}>removing and adding the app again.</a>
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
i18nKey="broken_video_action"
|
||||
t={props.t}
|
||||
values={{ location: props.location }}
|
||||
components={[
|
||||
<a
|
||||
key="broken-video-action-link-1"
|
||||
className="cursor-pointer text-blue-500 underline"
|
||||
href={
|
||||
props.eventTypeId ? `${WEBAPP_URL}/event-types/${props.eventTypeId}` : `${WEBAPP_URL}/event-types`
|
||||
}>
|
||||
change your location on the event type
|
||||
</a>,
|
||||
<a
|
||||
key="broken-video-action-link-2"
|
||||
className="cursor-pointer text-blue-500 underline"
|
||||
href={`${WEBAPP_URL}/apps/installed`}>
|
||||
removing and adding the app again.
|
||||
</a>,
|
||||
]}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -40,12 +47,13 @@ const BrokenCalendarIntegration = (props: {
|
||||
const { t } = props;
|
||||
|
||||
return (
|
||||
<Trans i18nKey="broken_calendar_action" t={props.t}>
|
||||
We could not update your <span>{props.calendar}</span>.{" "}
|
||||
<a href={`${WEBAPP_URL}/apps/installed`}>
|
||||
Please check your calendar settings or remove and add your calendar again
|
||||
</a>
|
||||
</Trans>
|
||||
<div>
|
||||
{t("broken_calendar_action", {
|
||||
calendar: props.calendar,
|
||||
calendarSettingsLink: `${WEBAPP_URL}/apps/installed`,
|
||||
interpolation: { escapeValue: false },
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { WEBAPP_URL, APP_NAME, COMPANY_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { WEBAPP_URL, COMPANY_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, SENDER_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL, IS_PRODUCTION } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, SUPPORT_MAIL_ADDRESS, COMPANY_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import { Trans } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
@@ -30,25 +31,11 @@ export const OrganizationAdminNoSlotsEmail = (
|
||||
<>{props.language("org_admin_no_slots|heading", { name: props.user })}</>
|
||||
</p>
|
||||
<p style={{ fontWeight: 400, fontSize: "16px", lineHeight: "24px" }}>
|
||||
<Trans i18nKey="org_admin_no_slots|content" values={{ username: props.user, slug: props.slug }}>
|
||||
Hello Organization Admins,
|
||||
<br />
|
||||
<br />
|
||||
Please note: It has been brought to our attention that {props.user} has not had any availability
|
||||
when a user has visited {props.teamSlug}/{props.slug}.
|
||||
<br />
|
||||
Start time: {props.startTime}
|
||||
<br />
|
||||
End time: {props.endTime}
|
||||
<br />
|
||||
<br />
|
||||
There’s a few reasons why this could be happening:
|
||||
<br />
|
||||
<ul>
|
||||
<li>The user does not have any calendars connected</li>
|
||||
<li>Their schedules attached to this event are not enabled</li>
|
||||
</ul>
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="org_admin_no_slots|content"
|
||||
values={{ username: props.user, slug: props.slug }}
|
||||
/>
|
||||
</p>
|
||||
<div style={{ marginTop: "3rem", marginBottom: "0.75rem" }}>
|
||||
<CallToAction
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Trans } from "next-i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import type { OrganizationCreation } from "../../templates/organization-creation-email";
|
||||
import { V2BaseEmailHtml } from "../components";
|
||||
@@ -48,30 +47,32 @@ export const OrganizationCreationEmail = (
|
||||
lineHeightStep: "24px",
|
||||
}}>
|
||||
{isNewUser ? (
|
||||
<Trans>
|
||||
<>
|
||||
Enjoy your new organization link: <a href={`${newLink}`}>{newLinkWithoutProtocol}</a>
|
||||
</Trans>
|
||||
</>
|
||||
) : (
|
||||
<Trans i18nKey="email|existing_user_added_link_changed">
|
||||
Your link has been changed from <a href={prevLink ?? ""}>{prevLinkWithoutProtocol}</a> to{" "}
|
||||
<a href={newLink ?? ""}>{newLinkWithoutProtocol}</a> but don't worry, all previous links
|
||||
still work and redirect appropriately.
|
||||
<br />
|
||||
<br />
|
||||
Please note: All of your personal event types have been moved into the <strong>
|
||||
{teamName}
|
||||
</strong>{" "}
|
||||
organisation, which may also include potential personal link.
|
||||
<br />
|
||||
<br />
|
||||
Please log in and make sure you have no private events on your new organisational account.
|
||||
<br />
|
||||
<br />
|
||||
For personal events we recommend creating a new account with a personal email address.
|
||||
<br />
|
||||
<br />
|
||||
Enjoy your new clean link: <a href={`${newLink}?orgRedirection=true`}>{newLinkWithoutProtocol}</a>
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email|existing_user_added_link_changed"
|
||||
components={{
|
||||
a0: (
|
||||
<a className="cursor-pointer text-blue-500 underline" href={prevLink ?? ""}>
|
||||
{prevLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
a1: (
|
||||
<a className="cursor-pointer text-blue-500 underline" href={newLink ?? ""}>
|
||||
{newLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
a2: (
|
||||
<a className="cursor-pointer text-blue-500 underline" href={`${newLink}?orgRedirection=true`}>
|
||||
{newLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
values={{ teamName }}
|
||||
/>
|
||||
)}
|
||||
</p>
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import type { TFunction } from "next-i18next";
|
||||
import { Trans } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
@@ -23,22 +21,14 @@ export const SlugReplacementEmail = (
|
||||
headerType="teamCircle"
|
||||
title={t("event_replaced_notice")}>
|
||||
<>
|
||||
<Trans i18nKey="hi_user_name" name={name}>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px", display: "inline-block" }}>Hi {name}</p>
|
||||
<p style={{ display: "inline" }}>,</p>
|
||||
</Trans>
|
||||
<Trans i18nKey="email_body_slug_replacement_notice" slug={slug}>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
An administrator on the <strong>{teamName}</strong> team has replaced your event type{" "}
|
||||
<strong>/{slug}</strong> with a managed event type that they control.
|
||||
</p>
|
||||
</Trans>
|
||||
<Trans i18nKey="email_body_slug_replacement_info">
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
Your link will continue to work but some settings for it may have changed. You can review it in
|
||||
event types.
|
||||
</p>
|
||||
</Trans>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px", display: "inline-block" }}>
|
||||
<ServerTrans t={t} i18nKey="hi_user_name" values={{ name }} />
|
||||
</p>
|
||||
<p style={{ display: "inline" }}>,</p>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
<ServerTrans t={t} i18nKey="email_body_slug_replacement_notice" values={{ teamName, slug }} />
|
||||
</p>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>{t("email_body_slug_replacement_info")}</p>
|
||||
<table
|
||||
role="presentation"
|
||||
border={0}
|
||||
@@ -64,15 +54,9 @@ export const SlugReplacementEmail = (
|
||||
width: "100%",
|
||||
}}
|
||||
/>
|
||||
<Trans i18nKey="email_body_slug_replacement_suggestion">
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
If you have any questions about the event type, please reach out to your administrator.
|
||||
<br />
|
||||
<br />
|
||||
Happy scheduling, <br />
|
||||
The Cal.com team
|
||||
</p>
|
||||
</Trans>
|
||||
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
<ServerTrans i18nKey="email_body_slug_replacement_suggestion" t={t} />
|
||||
</p>
|
||||
{/*<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
||||
<>{t("email_body_slug_replacement_suggestion")}</>
|
||||
</p>*/}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import { Trans } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL, IS_PRODUCTION } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
import { getSubject, getTypeOfInvite } from "../../templates/team-invite-email";
|
||||
import { V2BaseEmailHtml, CallToAction } from "../components";
|
||||
@@ -157,49 +157,48 @@ export const TeamInviteEmail = (
|
||||
<>
|
||||
{autoJoinType == "added" ? (
|
||||
<>
|
||||
<Trans i18nKey="email_team_invite|content|added_to_org">
|
||||
{invitedBy} has added you to the <strong>{teamName}</strong> organization.
|
||||
</Trans>{" "}
|
||||
<Trans
|
||||
i18nKey="email_team_invite|content_addition|existing_user_added"
|
||||
values={{ prevLink: props.prevLink, newLink: props.newLink, teamName: props.teamName }}>
|
||||
Your link has been changed from <a href={prevLink ?? ""}>{prevLinkWithoutProtocol}</a> to{" "}
|
||||
<a href={newLink ?? ""}>{newLinkWithoutProtocol}</a> but don't worry, all previous
|
||||
links still work and redirect appropriately.
|
||||
<br />
|
||||
<br />
|
||||
Please note: All of your personal event types have been moved into the{" "}
|
||||
<strong>{teamName}</strong> organisation, which may also include potential personal link.
|
||||
<br />
|
||||
<br />
|
||||
Please log in and make sure you have no private events on your new organisational account.
|
||||
<br />
|
||||
<br />
|
||||
For personal events we recommend creating a new account with a personal email address.
|
||||
<br />
|
||||
<br />
|
||||
Enjoy your new clean link:{" "}
|
||||
<a href={`${newLink}?orgRedirection=true`}>{newLinkWithoutProtocol}</a>
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|added_to_org"
|
||||
values={{ teamName, invitedBy, appName: APP_NAME }}
|
||||
/>{" "}
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email|existing_user_added_link_changed"
|
||||
components={{
|
||||
a0: (
|
||||
<a className="cursor-pointer text-blue-500 underline" href={prevLink ?? ""}>
|
||||
{prevLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
a1: (
|
||||
<a className="cursor-pointer text-blue-500 underline" href={newLink ?? ""}>
|
||||
{newLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
a2: (
|
||||
<a
|
||||
className="cursor-pointer text-blue-500 underline"
|
||||
href={`${newLink}?orgRedirection=true`}>
|
||||
{newLinkWithoutProtocol}
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
values={{ teamName, appName: APP_NAME }}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Trans i18nKey="email_team_invite|content|invited_to_org">
|
||||
{invitedBy} has invited you to join the <strong>{teamName}</strong> organization.
|
||||
</Trans>{" "}
|
||||
<Trans
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|invited_to_org"
|
||||
values={{ teamName, invitedBy, appName: APP_NAME }}
|
||||
/>{" "}
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="existing_user_added_link_will_change"
|
||||
values={{ prevLink: props.prevLink, newLink: props.newLink, teamName: props.teamName }}>
|
||||
On accepting the invite, your link will change to your organization domain but don't
|
||||
worry, all previous links will still work and redirect appropriately.
|
||||
<br />
|
||||
<br />
|
||||
Please note: All of your personal event types will be moved into the{" "}
|
||||
<strong>{teamName}</strong> organisation, which may also include potential personal link.
|
||||
<br />
|
||||
<br />
|
||||
For personal events we recommend creating a new account with a personal email address.
|
||||
</Trans>
|
||||
values={{ teamName, appName: APP_NAME }}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
@@ -208,18 +207,20 @@ export const TeamInviteEmail = (
|
||||
return (
|
||||
<>
|
||||
{autoJoinType === "added" ? (
|
||||
<Trans i18nKey="email_team_invite|content|added_to_org">
|
||||
{invitedBy} has added you to the <strong>{teamName}</strong> organization.
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|added_to_org"
|
||||
values={{ teamName, invitedBy, appName: APP_NAME }}
|
||||
/>
|
||||
) : (
|
||||
<Trans i18nKey="email_team_invite|content|invited_to_org">
|
||||
{invitedBy} has invited you to join the <strong>{teamName}</strong> organization.
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|invited_to_org"
|
||||
values={{ teamName, invitedBy, appName: APP_NAME }}
|
||||
/>
|
||||
)}{" "}
|
||||
<Trans>
|
||||
{appName} is the event-juggling scheduler that enables you and your team to schedule meetings
|
||||
without the email tennis.
|
||||
</Trans>
|
||||
{appName} is the event-juggling scheduler that enables you and your team to schedule meetings
|
||||
without the email tennis.
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -228,20 +229,20 @@ export const TeamInviteEmail = (
|
||||
return (
|
||||
<>
|
||||
{autoJoinType === "added" ? (
|
||||
<Trans i18nKey="email_team_invite|content|added_to_subteam">
|
||||
{invitedBy} has added you to the team <strong>{teamName}</strong> in their organization{" "}
|
||||
<strong>{parentTeamName}</strong>.
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|added_to_subteam"
|
||||
values={{ teamName, parentTeamName: parentTeamName ?? "", invitedBy, appName: APP_NAME }}
|
||||
/>
|
||||
) : (
|
||||
<Trans i18nKey="email_team_invite|content|invited_to_subteam">
|
||||
{invitedBy} has invited you to the team <strong>{teamName}</strong> in their organization{" "}
|
||||
<strong>{parentTeamName}</strong>.
|
||||
</Trans>
|
||||
<ServerTrans
|
||||
t={props.language}
|
||||
i18nKey="email_team_invite|content|invited_to_subteam"
|
||||
values={{ teamName, parentTeamName: parentTeamName ?? "", invitedBy, appName: APP_NAME }}
|
||||
/>
|
||||
)}{" "}
|
||||
<Trans>
|
||||
{appName} is the event-juggling scheduler that enables you and your team to schedule meetings
|
||||
without the email tennis.
|
||||
</Trans>
|
||||
{appName} is the event-juggling scheduler that enables you and your team to schedule meetings
|
||||
without the email tennis.
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, SENDER_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, SENDER_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { decodeHTML } from "entities";
|
||||
import { createTransport } from "nodemailer";
|
||||
import { z } from "zod";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
@@ -71,6 +70,7 @@ export default class BaseEmail {
|
||||
},
|
||||
...(parseSubject.success && { subject: decodeHTML(parseSubject.data) }),
|
||||
};
|
||||
const { createTransport } = await import("nodemailer");
|
||||
await new Promise((resolve, reject) =>
|
||||
createTransport(this.getMailerOptions().transport).sendMail(
|
||||
payloadWithUnEscapedSubject,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, COMPANY_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: We should find a way to keep App specific email templates within the App itself
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { cloneDeep } from "lodash";
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { getRichDescription } from "@calcom/lib/CalEventParser";
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, COMPANY_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { getRichDescription } from "@calcom/lib/CalEventParser";
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, COMPANY_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
import { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { cloneDeep } from "lodash";
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { getRichDescription } from "@calcom/lib/CalEventParser";
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TFunction } from "next-i18next";
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, EMAIL_FROM_NAME } from "@calcom/lib/constants";
|
||||
|
||||
|
||||
Reference in new issue
Block a user