Skip to content

Commit

Permalink
prettify all files
Browse files Browse the repository at this point in the history
  • Loading branch information
emiljohansson committed Feb 18, 2023
1 parent ad652f1 commit 00c0b29
Show file tree
Hide file tree
Showing 129 changed files with 3,811 additions and 4,007 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ dist
.env.*
!.env.example
.git
.github
coverage
pnpm-*

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
Expand Down
2 changes: 1 addition & 1 deletion apps/code-not-found/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
reactStrictMode: true,
}

module.exports = nextConfig
36 changes: 18 additions & 18 deletions apps/code-not-found/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "code-not-found",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "PORT=3004 next dev",
"build": "next build",
"start": "PORT=3004 next start",
"lint": "next lint"
},
"dependencies": {
"next": "13.1.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"config": "workspace:*",
"tsconfig": "workspace:*"
}
"name": "code-not-found",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "PORT=3004 next dev",
"build": "next build",
"start": "PORT=3004 next start",
"lint": "next lint"
},
"dependencies": {
"next": "13.1.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"config": "workspace:*",
"tsconfig": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions apps/code-not-found/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'

function MyApp ({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}

export default MyApp
9 changes: 3 additions & 6 deletions apps/code-not-found/pages/api/hello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
import type { NextApiRequest, NextApiResponse } from 'next'

type Data = {
name: string
name: string
}

export default function handler (
req: NextApiRequest,
res: NextApiResponse<Data>,
) {
res.status(200).json({ name: 'John Doe' })
export default function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
res.status(200).json({ name: 'John Doe' })
}
140 changes: 74 additions & 66 deletions apps/code-not-found/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,80 +4,88 @@ import Image from 'next/image'
import styles from '../styles/Home.module.css'

const HomePage: NextPage = () => {
return (
<>
<style jsx>{`
.wrap { padding-top: 57.7%; height: 0; position: relative; }
iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
`}</style>
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
return (
<>
<style jsx>{`
.wrap {
padding-top: 57.7%;
height: 0;
position: relative;
}
iframe {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
`}</style>
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>

<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>
<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>

<div className={`wrap ${styles.grid}`}>
<a href="http://localhost:3004/page-a" className={styles.card}>
<iframe src="http://localhost:3004/page-a" frameBorder="0"></iframe>
</a>
<div className={`wrap ${styles.grid}`}>
<a href="http://localhost:3004/page-a" className={styles.card}>
<iframe src="http://localhost:3004/page-a" frameBorder="0"></iframe>
</a>

<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>
<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>

<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>
<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a>
</div>
</main>
<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>Instantly deploy your Next.js site to a public URL with Vercel.</p>
</a>
</div>
</main>

<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
</>
)
<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
</>
)
}

export default HomePage

export function getStaticProps () {
return {
props: {
initialData: {
name: 'John Doe',
age: 35,
},
},
}
export function getStaticProps() {
return {
props: {
initialData: {
name: 'John Doe',
age: 35,
},
},
}
}
104 changes: 48 additions & 56 deletions apps/code-not-found/pages/page-a.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,61 @@ import Image from 'next/image'
import styles from '../styles/Home.module.css'

const PageAPage: NextPage = () => {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>

<main className={styles.main}>
<h1 className={styles.title}>
Welcome to Page A
</h1>
<main className={styles.main}>
<h1 className={styles.title}>Welcome to Page A</h1>

<p className={styles.description}>
Get started by editing{' '}
<code className={styles.code}>pages/index.tsx</code>
</p>
<p className={styles.description}>
Get started by editing <code className={styles.code}>pages/index.tsx</code>
</p>

<div className={styles.grid}>
<a href="https://nextjs.org/docs" className={styles.card}>
<h2>Documentation &rarr;</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>
<div className={styles.grid}>
<a href="https://nextjs.org/docs" className={styles.card}>
<h2>Documentation &rarr;</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>

<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>
<a href="https://nextjs.org/learn" className={styles.card}>
<h2>Learn &rarr;</h2>
<p>Learn about Next.js in an interactive course with quizzes!</p>
</a>

<a
href="https://github.com/vercel/next.js/tree/canary/examples"
className={styles.card}
>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>
<a href="https://github.com/vercel/next.js/tree/canary/examples" className={styles.card}>
<h2>Examples &rarr;</h2>
<p>Discover and deploy boilerplate example Next.js projects.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</a>
</div>
</main>
<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className={styles.card}
>
<h2>Deploy &rarr;</h2>
<p>Instantly deploy your Next.js site to a public URL with Vercel.</p>
</a>
</div>
</main>

<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
)
<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
)
}

export default PageAPage
Loading

0 comments on commit 00c0b29

Please sign in to comment.