-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/infinite-event-types
- Loading branch information
Showing
172 changed files
with
3,204 additions
and
2,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ export class CreateOrganizationAttributeOptionInput { | |
@IsString() | ||
@IsNotEmpty() | ||
readonly slug!: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { withAppDirSsr } from "app/WithAppDirSsr"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { WithLayout } from "app/layoutHOC"; | ||
|
||
import { getServerSideProps } from "@server/lib/auth/verify-email-change/getServerSideProps"; | ||
|
||
import type { PageProps } from "~/auth/verify-email-change-view"; | ||
import VerifyEmailChange from "~/auth/verify-email-change-view"; | ||
|
||
export const generateMetadata = async () => { | ||
return await _generateMetadata( | ||
() => "Verify email change", | ||
() => "" | ||
); | ||
}; | ||
|
||
const getData = withAppDirSsr<PageProps>(getServerSideProps); | ||
export default WithLayout({ | ||
getLayout: null, | ||
Page: VerifyEmailChange, | ||
getData, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,49 @@ | ||
import VerifyPage from "@pages/auth/verify"; | ||
import { withAppDirSsr } from "app/WithAppDirSsr"; | ||
import type { PageProps as _PageProps } from "app/_types"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { WithLayout } from "app/layoutHOC"; | ||
import { z } from "zod"; | ||
|
||
import { StripeService } from "@calcom/lib/server/service/stripe"; | ||
|
||
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps"; | ||
|
||
import type { PageProps } from "~/auth/verify-view"; | ||
import VerifyPage from "~/auth/verify-view"; | ||
|
||
const querySchema = z.object({ | ||
stripeCustomerId: z.string().optional(), | ||
sessionId: z.string().optional(), | ||
t: z.string().optional(), | ||
}); | ||
|
||
export const generateMetadata = async ({ params, searchParams }: _PageProps) => { | ||
const p = { ...params, ...searchParams }; | ||
const { sessionId, stripeCustomerId } = querySchema.parse(p); | ||
|
||
if (!stripeCustomerId && !sessionId) { | ||
return await _generateMetadata( | ||
() => "Verify", | ||
() => "" | ||
); | ||
} | ||
|
||
const data = await StripeService.getCheckoutSession({ | ||
stripeCustomerId, | ||
checkoutSessionId: sessionId, | ||
}); | ||
|
||
const { hasPaymentFailed } = data; | ||
|
||
return await _generateMetadata( | ||
() => | ||
hasPaymentFailed ? "Your payment failed" : sessionId ? "Payment successful!" : `Verify your email`, | ||
() => "" | ||
); | ||
}; | ||
|
||
export default WithLayout({ | ||
getLayout: null, | ||
Page: VerifyPage, | ||
getData: withAppDirSsr(getServerSideProps), | ||
getData: withAppDirSsr<PageProps>(getServerSideProps), | ||
})<"P">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
import Page from "@pages/getting-started/[[...step]]"; | ||
import { withAppDirSsr } from "app/WithAppDirSsr"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { WithLayout } from "app/layoutHOC"; | ||
|
||
import { APP_NAME } from "@calcom/lib/constants"; | ||
|
||
import { getServerSideProps } from "@lib/getting-started/[[...step]]/getServerSideProps"; | ||
|
||
export default WithLayout({ getLayout: null, getData: withAppDirSsr(getServerSideProps), Page }); | ||
import type { PageProps } from "~/getting-started/[[...step]]/onboarding-view"; | ||
import Page from "~/getting-started/[[...step]]/onboarding-view"; | ||
|
||
export const generateMetadata = async () => { | ||
return await _generateMetadata( | ||
(t) => `${APP_NAME} - ${t("getting_started")}`, | ||
() => "", | ||
true | ||
); | ||
}; | ||
|
||
export default WithLayout({ | ||
getLayout: null, | ||
getData: withAppDirSsr<PageProps>(getServerSideProps), | ||
Page, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.