Skip to content

Commit 5ca3bd3

Browse files
author
Frank
committed
Examples: sync playground
1 parent 86cad8f commit 5ca3bd3

File tree

6 files changed

+39
-9
lines changed

6 files changed

+39
-9
lines changed

examples/internal/playground/sites/nextjs/app/page.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,25 @@ export default async function Home() {
1919
<div className={styles.page}>
2020
<main className={styles.main}>
2121
<Form url={url} />
22-
<div style={{ marginTop: '20px' }}>
23-
<Link href="/image-test" style={{ textDecoration: 'underline' }}>
22+
<div style={{ marginTop: "20px" }}>
23+
<Link href="/image-test" style={{ textDecoration: "underline" }}>
2424
Image Optimization Test
2525
</Link>
2626
</div>
2727
</main>
28+
<h1>Test Links</h1>
29+
<ul>
30+
<li>
31+
<a href="./.well-known/assetlinks.json">
32+
.well-known/assetlinks.json
33+
</a>
34+
</li>
35+
<li>
36+
<a href="./.well-known/apple-app-site-association">
37+
.well-known/apple-app-site-association
38+
</a>
39+
</li>
40+
</ul>
2841
</div>
2942
);
3043
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "apple-app-site-association" }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "assetLinks.json" }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "apple-app-site-association" }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "assetLinks.json" }

examples/internal/playground/sites/vite/src/App.tsx

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { useState } from 'react'
2-
import reactLogo from './assets/react.svg'
3-
import viteLogo from '/vite.svg'
4-
import './App.css'
1+
import { useState } from "react";
2+
import reactLogo from "./assets/react.svg";
3+
import viteLogo from "/vite.svg";
4+
import "./App.css";
55

66
function App() {
7-
const [count, setCount] = useState(0)
7+
const [count, setCount] = useState(0);
88

99
return (
1010
<>
@@ -16,6 +16,19 @@ function App() {
1616
<img src={reactLogo} className="logo react" alt="React logo" />
1717
</a>
1818
</div>
19+
<h1>Test Links</h1>
20+
<ul>
21+
<li>
22+
<a href="./.well-known/assetlinks.json">
23+
.well-known/assetlinks.json
24+
</a>
25+
</li>
26+
<li>
27+
<a href="./.well-known/apple-app-site-association">
28+
.well-known/apple-app-site-association
29+
</a>
30+
</li>
31+
</ul>
1932
<h1>Vite + React</h1>
2033
<div className="card">
2134
<button onClick={() => setCount((count) => count + 1)}>
@@ -29,7 +42,7 @@ function App() {
2942
Click on the Vite and React logos to learn more
3043
</p>
3144
</>
32-
)
45+
);
3346
}
3447

35-
export default App
48+
export default App;

0 commit comments

Comments
 (0)