From c140da0b72880e95cfe9611e27bd2e6fcf7d6fde Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Tue, 30 Apr 2024 16:35:37 -0500 Subject: [PATCH] Remove next news. (#909) The updated example, with App Router, lives here: https://github.com/vercel/next-react-server-components --- starter/next-news/.eslintrc.json | 4 - starter/next-news/.gitignore | 40 - starter/next-news/README.md | 46 - starter/next-news/components/comment-form.tsx | 25 - starter/next-news/components/comment.tsx | 88 - starter/next-news/components/header.tsx | 93 - starter/next-news/components/item.tsx | 48 - starter/next-news/components/login-form.tsx | 29 - starter/next-news/components/logo.tsx | 17 - starter/next-news/components/meta.tsx | 60 - starter/next-news/components/nav.tsx | 46 - starter/next-news/components/page.tsx | 34 - starter/next-news/components/stories.tsx | 62 - starter/next-news/components/story.tsx | 86 - .../next-news/components/updating-story.tsx | 15 - starter/next-news/lib/db.ts | 18 - starter/next-news/lib/get-comments.ts | 19 - starter/next-news/lib/get-item.ts | 33 - starter/next-news/lib/get-stories.ts | 18 - starter/next-news/lib/time-ago.ts | 14 - starter/next-news/next-env.d.ts | 5 - starter/next-news/next.config.mjs | 11 - starter/next-news/package.json | 29 - starter/next-news/pages/ask.tsx | 15 - starter/next-news/pages/item/[id].tsx | 43 - starter/next-news/pages/jobs.tsx | 15 - starter/next-news/pages/login.tsx | 9 - starter/next-news/pages/newest.tsx | 16 - starter/next-news/pages/news/[page].tsx | 28 - starter/next-news/pages/show.tsx | 15 - starter/next-news/pages/submit.tsx | 9 - starter/next-news/pages/user.tsx | 3 - starter/next-news/pnpm-lock.yaml | 2979 ----------------- starter/next-news/public/favicon.ico | Bin 1261 -> 0 bytes starter/next-news/tsconfig.json | 20 - starter/next-news/turbo.json | 9 - starter/next-news/vercel.json | 4 - 37 files changed, 4005 deletions(-) delete mode 100644 starter/next-news/.eslintrc.json delete mode 100644 starter/next-news/.gitignore delete mode 100644 starter/next-news/README.md delete mode 100644 starter/next-news/components/comment-form.tsx delete mode 100644 starter/next-news/components/comment.tsx delete mode 100644 starter/next-news/components/header.tsx delete mode 100644 starter/next-news/components/item.tsx delete mode 100644 starter/next-news/components/login-form.tsx delete mode 100644 starter/next-news/components/logo.tsx delete mode 100644 starter/next-news/components/meta.tsx delete mode 100644 starter/next-news/components/nav.tsx delete mode 100644 starter/next-news/components/page.tsx delete mode 100644 starter/next-news/components/stories.tsx delete mode 100644 starter/next-news/components/story.tsx delete mode 100644 starter/next-news/components/updating-story.tsx delete mode 100644 starter/next-news/lib/db.ts delete mode 100644 starter/next-news/lib/get-comments.ts delete mode 100644 starter/next-news/lib/get-item.ts delete mode 100644 starter/next-news/lib/get-stories.ts delete mode 100644 starter/next-news/lib/time-ago.ts delete mode 100644 starter/next-news/next-env.d.ts delete mode 100644 starter/next-news/next.config.mjs delete mode 100644 starter/next-news/package.json delete mode 100644 starter/next-news/pages/ask.tsx delete mode 100644 starter/next-news/pages/item/[id].tsx delete mode 100644 starter/next-news/pages/jobs.tsx delete mode 100644 starter/next-news/pages/login.tsx delete mode 100644 starter/next-news/pages/newest.tsx delete mode 100644 starter/next-news/pages/news/[page].tsx delete mode 100644 starter/next-news/pages/show.tsx delete mode 100644 starter/next-news/pages/submit.tsx delete mode 100644 starter/next-news/pages/user.tsx delete mode 100644 starter/next-news/pnpm-lock.yaml delete mode 100644 starter/next-news/public/favicon.ico delete mode 100644 starter/next-news/tsconfig.json delete mode 100644 starter/next-news/turbo.json delete mode 100644 starter/next-news/vercel.json diff --git a/starter/next-news/.eslintrc.json b/starter/next-news/.eslintrc.json deleted file mode 100644 index a2569c2c7c..0000000000 --- a/starter/next-news/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "root": true, - "extends": "next/core-web-vitals" -} diff --git a/starter/next-news/.gitignore b/starter/next-news/.gitignore deleted file mode 100644 index b2ca114608..0000000000 --- a/starter/next-news/.gitignore +++ /dev/null @@ -1,40 +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 -.env.development.local -.env.test.local -.env.production.local - -# Vercel -.vercel - -# Turborepo -.turbo - -# typescript -*.tsbuildinfo \ No newline at end of file diff --git a/starter/next-news/README.md b/starter/next-news/README.md deleted file mode 100644 index 2e045d82f2..0000000000 --- a/starter/next-news/README.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Next News -slug: next-news -description: Hacker News clone in Next.js. -framework: Next.js -useCase: Starter -css: CSS-in-JSX -deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/starter/next-news&project-name=next-news&repository-name=next-news -demoUrl: https://next-news.vercel.app -relatedTemplates: - - ab-testing-simple ---- - -# Next News - -This is an example showing a Hacker News clone using Next.js. - -## Demo - -https://next-news.vercel.app - -## How to Use - -You can choose from one of the following two methods to use this repository: - -### One-Click Deploy - -Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples): - -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/starter/next-news&project-name=next-news&repository-name=next-news) - -### Clone and Deploy - -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [pnpm](https://pnpm.io/installation) to bootstrap the example: - -```bash -pnpm create next-app --example https://github.com/vercel/examples/tree/main/starter/next-news next-news -``` - -Next, run Next.js in development mode: - -```bash -pnpm dev -``` - -Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples) ([Documentation](https://nextjs.org/docs/deployment)). diff --git a/starter/next-news/components/comment-form.tsx b/starter/next-news/components/comment-form.tsx deleted file mode 100644 index 53ce5620f3..0000000000 --- a/starter/next-news/components/comment-form.tsx +++ /dev/null @@ -1,25 +0,0 @@ -export default function CommentForm() { - return ( -
-