-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into fix/url-scheme-in-experimental-https
- Loading branch information
Showing
11 changed files
with
224 additions
and
71 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
7 changes: 7 additions & 0 deletions
7
test/e2e/app-dir/metadata-navigation/app/parallel-route/@header/layout.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,7 @@ | ||
type LayoutProps = { | ||
children: React.ReactNode | ||
} | ||
|
||
export default function Layout({ children }: LayoutProps) { | ||
return <div>{children}</div> | ||
} |
12 changes: 12 additions & 0 deletions
12
test/e2e/app-dir/metadata-navigation/app/parallel-route/@header/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,12 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page() { | ||
return ( | ||
<div> | ||
<div>Home header</div> | ||
<Link href="/parallel-route/product" id="product-link"> | ||
Product | ||
</Link> | ||
</div> | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
test/e2e/app-dir/metadata-navigation/app/parallel-route/@header/product/layout.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,7 @@ | ||
type LayoutProps = { | ||
children: React.ReactNode | ||
} | ||
|
||
export default function Layout({ children }: LayoutProps) { | ||
return <>{children}</> | ||
} |
12 changes: 12 additions & 0 deletions
12
test/e2e/app-dir/metadata-navigation/app/parallel-route/@header/product/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,12 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page() { | ||
return ( | ||
<div> | ||
<h1 id="product-title">Product header</h1> | ||
<Link href="/parallel-route" id="home-link"> | ||
Go to Home page | ||
</Link> | ||
</div> | ||
) | ||
} |
17 changes: 17 additions & 0 deletions
17
test/e2e/app-dir/metadata-navigation/app/parallel-route/layout.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,17 @@ | ||
export default function Layout({ children, header }) { | ||
return ( | ||
<html> | ||
<head></head> | ||
<body> | ||
{header} | ||
{children} | ||
</body> | ||
</html> | ||
) | ||
} | ||
|
||
export const metadata = { | ||
title: 'Home Layout', | ||
description: 'this is the layout description', | ||
keywords: ['nextjs', 'react'], | ||
} |
7 changes: 7 additions & 0 deletions
7
test/e2e/app-dir/metadata-navigation/app/parallel-route/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,7 @@ | ||
export default function Home() { | ||
return ( | ||
<div> | ||
<h3 id="home-title">Home page content</h3> | ||
</div> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
test/e2e/app-dir/metadata-navigation/app/parallel-route/product/layout.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,13 @@ | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Product Layout', | ||
} | ||
|
||
export default function Layout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode | ||
}>) { | ||
return <>{children}</> | ||
} |
3 changes: 3 additions & 0 deletions
3
test/e2e/app-dir/metadata-navigation/app/parallel-route/product/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,3 @@ | ||
export default function Page() { | ||
return <div>Product page content</div> | ||
} |
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