diff --git a/examples/nextjs-js-example/.eslintrc.json b/examples/nextjs-js-example/.eslintrc.json deleted file mode 100644 index bffb357a7..000000000 --- a/examples/nextjs-js-example/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/examples/nextjs-js-example/.gitignore b/examples/nextjs-js-example/.gitignore deleted file mode 100644 index 8f322f0d8..000000000 --- a/examples/nextjs-js-example/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/examples/nextjs-js-example/README.md b/examples/nextjs-js-example/README.md deleted file mode 100644 index ca8a3a212..000000000 --- a/examples/nextjs-js-example/README.md +++ /dev/null @@ -1,38 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/examples/nextjs-js-example/jsconfig.json b/examples/nextjs-js-example/jsconfig.json deleted file mode 100644 index 2a2e4b3bf..000000000 --- a/examples/nextjs-js-example/jsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "@/*": ["./*"] - } - } -} diff --git a/examples/nextjs-js-example/next.config.js b/examples/nextjs-js-example/next.config.js deleted file mode 100644 index a843cbee0..000000000 --- a/examples/nextjs-js-example/next.config.js +++ /dev/null @@ -1,6 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: true, -} - -module.exports = nextConfig diff --git a/examples/nextjs-js-example/package.json b/examples/nextjs-js-example/package.json deleted file mode 100644 index 94883ada2..000000000 --- a/examples/nextjs-js-example/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "nextjs-js-example", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "autoprefixer": "10.4.14", - "eslint": "8.45.0", - "eslint-config-next": "13.4.12", - "next": "13.4.12", - "postcss": "8.4.27", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "tailwindcss": "3.3.3" - } -} diff --git a/examples/nextjs-js-example/pages/_app.js b/examples/nextjs-js-example/pages/_app.js deleted file mode 100644 index 23002013d..000000000 --- a/examples/nextjs-js-example/pages/_app.js +++ /dev/null @@ -1,5 +0,0 @@ -import '@/styles/globals.css' - -export default function App({ Component, pageProps }) { - return -} diff --git a/examples/nextjs-js-example/pages/_document.js b/examples/nextjs-js-example/pages/_document.js deleted file mode 100644 index 54e8bf3e2..000000000 --- a/examples/nextjs-js-example/pages/_document.js +++ /dev/null @@ -1,13 +0,0 @@ -import { Html, Head, Main, NextScript } from 'next/document' - -export default function Document() { - return ( - - - -
- - - - ) -} diff --git a/examples/nextjs-js-example/pages/api/hello.js b/examples/nextjs-js-example/pages/api/hello.js deleted file mode 100644 index df63de88f..000000000 --- a/examples/nextjs-js-example/pages/api/hello.js +++ /dev/null @@ -1,5 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction - -export default function handler(req, res) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/examples/nextjs-js-example/pages/index.js b/examples/nextjs-js-example/pages/index.js deleted file mode 100644 index d6c867e65..000000000 --- a/examples/nextjs-js-example/pages/index.js +++ /dev/null @@ -1,118 +0,0 @@ -import Image from 'next/image' -import { Inter } from 'next/font/google' - -const inter = Inter({ subsets: ['latin'] }) - -export default function Home() { - return ( -
-
-

- Get started by editing  - pages/index.js -

- -
- -
- Next.js Logo -
- -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Discover and deploy boilerplate example Next.js projects. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
- ) -} diff --git a/examples/nextjs-js-example/postcss.config.js b/examples/nextjs-js-example/postcss.config.js deleted file mode 100644 index 33ad091d2..000000000 --- a/examples/nextjs-js-example/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/examples/nextjs-js-example/public/favicon.ico b/examples/nextjs-js-example/public/favicon.ico deleted file mode 100644 index 718d6fea4..000000000 Binary files a/examples/nextjs-js-example/public/favicon.ico and /dev/null differ diff --git a/examples/nextjs-js-example/public/next.svg b/examples/nextjs-js-example/public/next.svg deleted file mode 100644 index 5174b28c5..000000000 --- a/examples/nextjs-js-example/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/nextjs-js-example/public/vercel.svg b/examples/nextjs-js-example/public/vercel.svg deleted file mode 100644 index d2f842227..000000000 --- a/examples/nextjs-js-example/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/nextjs-js-example/styles/globals.css b/examples/nextjs-js-example/styles/globals.css deleted file mode 100644 index fd81e8858..000000000 --- a/examples/nextjs-js-example/styles/globals.css +++ /dev/null @@ -1,27 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} diff --git a/examples/nextjs-js-example/tailwind.config.js b/examples/nextjs-js-example/tailwind.config.js deleted file mode 100644 index 8c4d1b21f..000000000 --- a/examples/nextjs-js-example/tailwind.config.js +++ /dev/null @@ -1,18 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { - content: [ - './pages/**/*.{js,ts,jsx,tsx,mdx}', - './components/**/*.{js,ts,jsx,tsx,mdx}', - './app/**/*.{js,ts,jsx,tsx,mdx}', - ], - theme: { - extend: { - backgroundImage: { - 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', - 'gradient-conic': - 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', - }, - }, - }, - plugins: [], -}