chore: App router migration - Create/Use EventRepository and Extract /team/**/* and /teams/* into /modules from /pages (#16453)
This commit is contained in:
1 parent
1722edbd36
commit
d9133cb395
33 files changed
+628
-626
No files matched your search
@@ -26,6 +26,9 @@ const searchParams = new URL(document.URL).searchParams;
|
||||
const only = searchParams.get("only");
|
||||
const colorScheme = searchParams.get("color-scheme");
|
||||
const prerender = searchParams.get("prerender");
|
||||
|
||||
window.ENABLE_FUTURE_ROUTES = searchParams.get("future-routes") === "true";
|
||||
|
||||
if (colorScheme) {
|
||||
document.documentElement.style.colorScheme = colorScheme;
|
||||
}
|
||||
|
||||
@@ -272,6 +272,13 @@ export class Cal {
|
||||
// TODO: Make a list of patterns that are embeddable. All except that should be allowed with a warning that "The page isn't optimized for embedding"
|
||||
urlInstance.pathname = `${urlInstance.pathname}/embed`;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
if (window.ENABLE_FUTURE_ROUTES) {
|
||||
urlInstance.pathname = `/future${urlInstance.pathname}`;
|
||||
}
|
||||
|
||||
urlInstance.searchParams.set("embed", this.namespace);
|
||||
|
||||
if (config.debug) {
|
||||
|
||||
Reference in new issue
Block a user