-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 chore/migrate-low-risk-3-auth-pages
- Loading branch information
Showing
111 changed files
with
1,841 additions
and
189 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
undecided: | ||
- calcom-monorepo | ||
- "@calcom/app-store-cli" | ||
- "@calcom/platform-constants" | ||
- "@calcom/platform-enums" | ||
- "@calcom/platform-types" | ||
- "@calcom/platform-utils" | ||
- "@calcom/prisma" |
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,9 +1,11 @@ | ||
import { z } from "zod"; | ||
|
||
// Helper schema for JSON fields | ||
type Literal = boolean | number | string; | ||
type Literal = boolean | number | string | null; | ||
type Json = Literal | { [key: string]: Json } | Json[]; | ||
const literalSchema = z.union([z.string(), z.number(), z.boolean()]); | ||
const literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]); | ||
const jsonObjectSchema = z.record(z.lazy(() => jsonSchema)); | ||
const jsonArraySchema = z.array(z.lazy(() => jsonSchema)); | ||
export const jsonSchema: z.ZodSchema<Json> = z.lazy(() => | ||
z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]) | ||
z.union([literalSchema, jsonObjectSchema, jsonArraySchema]) | ||
); |
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"@axiomhq/winston": "^1.2.0", | ||
"@calcom/platform-constants": "*", | ||
"@calcom/platform-enums": "*", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].85", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].86", | ||
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]", | ||
"@calcom/platform-types": "*", | ||
"@calcom/platform-utils": "*", | ||
|
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,14 @@ | ||
"use client"; | ||
|
||
import { usePathname } from "next/navigation"; | ||
|
||
const THEME_UNSUPPORTED_ROUTES = ["/auth/setup"]; | ||
|
||
export default function useIsThemeSupported(): boolean { | ||
const pathname = usePathname(); | ||
|
||
// Check if current pathname matches any unsupported route | ||
const isUnsupportedRoute = THEME_UNSUPPORTED_ROUTES.some((route) => pathname?.startsWith(route)); | ||
|
||
return !isUnsupportedRoute; | ||
} |
Oops, something went wrong.