chore: App-router-migration(/apps) fix metadata, extract components into /module and finish migration (#16354)

* fix metadata for apps page

* migrate apps route to modules

* migrate apps/[slug]

* migrate apps/[slug]/setup

* migrate apps/categories/**/*

* add apps/installed page to app router

* migrate apps/[slug]/[...pages]

* migrate apps/installed/**/*

* Add apps/installation/[[...step]] to App router

* fix imports

* add missing use client directive

* finish migration

* fix metadata

* fix metadata for apps/categories

* fix type for installation/[[...step]]

* fix type for apps/[slug]/[...pages]

* remove unnecessary code

* refactor

* fix apps/installation

* move getServerSideProps to lib

* fix import of apps/installation

* fix import for app slug page

* refactor

* fix installation page in app router

* remove res in getServerSideProps

* replace setHeader with NextResponse header setHeader

* refactor installed pages

---------

Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-09-06 15:40:19 +00:00
1 parent a910eb96ad
commit d2f7a427d0
34 files changed
+1523 -1430

No files matched your search

+4 -2
View File
@@ -1,8 +1,6 @@
import { appStoreMetadata } from "@calcom/app-store/appStoreMetaData";
import logger from "@calcom/lib/logger";
import { prisma } from "@calcom/prisma";
const log = logger.getSubLogger({ prefix: ["repository/eventType"] });
export class AppRepository {
static async seedApp(dirName: string, keys?: any) {
const appMetadata = appStoreMetadata[dirName as keyof typeof appStoreMetadata];
@@ -21,4 +19,8 @@ export class AppRepository {
},
});
}
static async findAppStore() {
return await prisma.app.findMany({ select: { slug: true } });
}
}