forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manual: move files to correct route groups and add metadata
- Loading branch information
Showing
18 changed files
with
199 additions
and
60 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
apps/web/app/future/(individual-page-wrapper)/settings/organizations/[id]/about/page.tsx
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,34 @@ | ||
import OldPage from "@pages/settings/organizations/[id]/about"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { headers } from "next/headers"; | ||
|
||
import { WizardLayout } from "@calcom/ui"; | ||
|
||
import PageWrapper from "@components/PageWrapperAppDir"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("about_your_organization"), | ||
(t) => t("about_your_organization_description") | ||
); | ||
|
||
const LayoutWrapper = (page: React.ReactElement) => { | ||
return ( | ||
<WizardLayout currentStep={3} maxSteps={5}> | ||
{page} | ||
</WizardLayout> | ||
); | ||
}; | ||
|
||
const Page = () => { | ||
const h = headers(); | ||
const nonce = h.get("x-nonce") ?? undefined; | ||
|
||
return ( | ||
<PageWrapper getLayout={LayoutWrapper} requiresLicense={false} nonce={nonce} themeBasis={null}> | ||
<OldPage /> | ||
</PageWrapper> | ||
); | ||
}; | ||
|
||
export default Page; |
38 changes: 38 additions & 0 deletions
38
apps/web/app/future/(individual-page-wrapper)/settings/organizations/[id]/add-teams/page.tsx
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,38 @@ | ||
import OldPage from "@pages/settings/organizations/[id]/add-teams"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { headers } from "next/headers"; | ||
import { redirect } from "next/navigation"; | ||
|
||
import { WizardLayout } from "@calcom/ui"; | ||
|
||
import PageWrapper from "@components/PageWrapperAppDir"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("create_your_teams"), | ||
(t) => t("create_your_teams_description") | ||
); | ||
|
||
const LayoutWrapper = (page: React.ReactElement) => ( | ||
<WizardLayout | ||
currentStep={5} | ||
maxSteps={5} | ||
isOptionalCallback={() => { | ||
redirect(`/event-types`); | ||
}}> | ||
{page} | ||
</WizardLayout> | ||
); | ||
|
||
const Page = () => { | ||
const h = headers(); | ||
const nonce = h.get("x-nonce") ?? undefined; | ||
|
||
return ( | ||
<PageWrapper getLayout={LayoutWrapper} requiresLicense={false} nonce={nonce} themeBasis={null}> | ||
<OldPage /> | ||
</PageWrapper> | ||
); | ||
}; | ||
|
||
export default Page; |
45 changes: 45 additions & 0 deletions
45
.../app/future/(individual-page-wrapper)/settings/organizations/[id]/onboard-admins/page.tsx
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,45 @@ | ||
import OldPage from "@pages/settings/organizations/[id]/onboard-admins"; | ||
import { type Params } from "app/_types"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { headers } from "next/headers"; | ||
import { redirect } from "next/navigation"; | ||
|
||
import { WizardLayout } from "@calcom/ui"; | ||
|
||
import PageWrapper from "@components/PageWrapperAppDir"; | ||
|
||
type PageProps = Readonly<{ | ||
params: Params; | ||
}>; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("invite_organization_admins"), | ||
(t) => t("invite_organization_admins_description") | ||
); | ||
|
||
const Page = ({ params }: PageProps) => { | ||
const h = headers(); | ||
const nonce = h.get("x-nonce") ?? undefined; | ||
|
||
return ( | ||
<PageWrapper | ||
getLayout={(page: React.ReactElement) => ( | ||
<WizardLayout | ||
currentStep={4} | ||
maxSteps={5} | ||
isOptionalCallback={() => { | ||
redirect(`/settings/organizations/${params.id}/add-teams`); | ||
}}> | ||
{page} | ||
</WizardLayout> | ||
)} | ||
requiresLicense={false} | ||
nonce={nonce} | ||
themeBasis={null}> | ||
<OldPage /> | ||
</PageWrapper> | ||
); | ||
}; | ||
|
||
export default Page; |
34 changes: 34 additions & 0 deletions
34
...eb/app/future/(individual-page-wrapper)/settings/organizations/[id]/set-password/page.tsx
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,34 @@ | ||
import OldPage from "@pages/settings/organizations/[id]/set-password"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { headers } from "next/headers"; | ||
|
||
import { WizardLayout } from "@calcom/ui"; | ||
|
||
import PageWrapper from "@components/PageWrapperAppDir"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("set_a_password"), | ||
(t) => t("set_a_password_description") | ||
); | ||
|
||
const LayoutWrapper = (page: React.ReactElement) => { | ||
return ( | ||
<WizardLayout currentStep={2} maxSteps={5}> | ||
{page} | ||
</WizardLayout> | ||
); | ||
}; | ||
|
||
const Page = () => { | ||
const h = headers(); | ||
const nonce = h.get("x-nonce") ?? undefined; | ||
|
||
return ( | ||
<PageWrapper getLayout={LayoutWrapper} requiresLicense={false} nonce={nonce} themeBasis={null}> | ||
<OldPage /> | ||
</PageWrapper> | ||
); | ||
}; | ||
|
||
export default 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
10 changes: 0 additions & 10 deletions
10
...b/app/future/(shared-page-wrapper)/(no-layout)/settings/organizations/[id]/about/page.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...p/future/(shared-page-wrapper)/(no-layout)/settings/organizations/[id]/add-teams/page.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ure/(shared-page-wrapper)/(no-layout)/settings/organizations/[id]/onboard-admins/page.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...uture/(shared-page-wrapper)/(no-layout)/settings/organizations/[id]/set-password/page.tsx
This file was deleted.
Oops, something went wrong.
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
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