forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:
settings/organizations
- remove pages router and use app rou…
…ter (calcom#16774) * remove pages router and use app router * remove future/settings/organizations files * fix billing page * sync SettingsLayoutAppDirClient and fix members page * fix attribute pages * remove isAppDir where not needed anymore * add CTA button for members view
- Loading branch information
Showing
61 changed files
with
154 additions
and
504 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
11 changes: 0 additions & 11 deletions
11
apps/web/app/future/settings/(settings)/organizations/attributes/[id]/edit/page.tsx
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
apps/web/app/future/settings/(settings)/organizations/attributes/create/page.tsx
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
apps/web/app/future/settings/(settings)/organizations/attributes/page.tsx
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
apps/web/app/future/settings/(settings)/organizations/billing/page.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
apps/web/app/settings/(settings-layout)/organizations/attributes/[id]/edit/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,24 @@ | ||
import { _generateMetadata, getFixedT } from "app/_utils"; | ||
|
||
import OrgAttributesEditPage from "@calcom/ee/organizations/pages/settings/attributes/attributes-edit-view"; | ||
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("attribute"), | ||
(t) => t("edit_attribute_description") | ||
); | ||
|
||
const Page = async () => { | ||
const session = await getServerSessionForAppDir(); | ||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader title={t("attribute")} description={t("edit_attribute_description")}> | ||
<OrgAttributesEditPage /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
24 changes: 24 additions & 0 deletions
24
apps/web/app/settings/(settings-layout)/organizations/attributes/create/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,24 @@ | ||
import { _generateMetadata, getFixedT } from "app/_utils"; | ||
|
||
import OrgAttributesCreatePage from "@calcom/ee/organizations/pages/settings/attributes/attributes-create-view"; | ||
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("attribute"), | ||
(t) => t("create_attribute_description") | ||
); | ||
|
||
const Page = async () => { | ||
const session = await getServerSessionForAppDir(); | ||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader title={t("attribute")} description={t("create_attribute_description")}> | ||
<OrgAttributesCreatePage /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
24 changes: 24 additions & 0 deletions
24
apps/web/app/settings/(settings-layout)/organizations/attributes/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,24 @@ | ||
import { _generateMetadata, getFixedT } from "app/_utils"; | ||
|
||
import OrgSettingsAttributesPage from "@calcom/ee/organizations/pages/settings/attributes/attributes-list-view"; | ||
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("attributes"), | ||
(t) => t("attribute_meta_description") | ||
); | ||
|
||
const Page = async () => { | ||
const session = await getServerSessionForAppDir(); | ||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader title={t("attributes")} description={t("attribute_meta_description")}> | ||
<OrgSettingsAttributesPage /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
5 changes: 5 additions & 0 deletions
5
apps/web/app/settings/(settings-layout)/organizations/billing/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,5 @@ | ||
import BillingPage, { generateMetadata } from "app/future/settings/(settings)/billing/page"; | ||
|
||
export { generateMetadata }; | ||
|
||
export default BillingPage; |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
apps/web/pages/settings/organizations/[id]/onboard-members.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
apps/web/pages/settings/organizations/attributes/[id]/edit.tsx
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
apps/web/pages/settings/organizations/attributes/create.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.