From acb77219b238c6dfbb9be0a0aaaaf02992e33487 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:31:35 +0200 Subject: [PATCH] Adds a mock of the dev tutorials --- apps/{web => tutorials}/.eslintrc.js | 0 apps/{web => tutorials}/README.md | 0 apps/{web => tutorials}/next-env.d.ts | 0 apps/{web => tutorials}/next.config.js | 0 apps/{web => tutorials}/package.json | 2 +- apps/tutorials/postcss.config.js | 1 + apps/tutorials/src/pages/index.tsx | 22 +++++++++++ apps/tutorials/src/utils/api.ts | 55 ++++++++++++++++++++++++++ apps/tutorials/tailwind.config.js | 1 + apps/{web => tutorials}/tsconfig.json | 0 apps/web/src/pages/index.tsx | 10 ----- 11 files changed, 80 insertions(+), 11 deletions(-) rename apps/{web => tutorials}/.eslintrc.js (100%) rename apps/{web => tutorials}/README.md (100%) rename apps/{web => tutorials}/next-env.d.ts (100%) rename apps/{web => tutorials}/next.config.js (100%) rename apps/{web => tutorials}/package.json (95%) create mode 100644 apps/tutorials/postcss.config.js create mode 100644 apps/tutorials/src/pages/index.tsx create mode 100644 apps/tutorials/src/utils/api.ts create mode 100644 apps/tutorials/tailwind.config.js rename apps/{web => tutorials}/tsconfig.json (100%) delete mode 100644 apps/web/src/pages/index.tsx diff --git a/apps/web/.eslintrc.js b/apps/tutorials/.eslintrc.js similarity index 100% rename from apps/web/.eslintrc.js rename to apps/tutorials/.eslintrc.js diff --git a/apps/web/README.md b/apps/tutorials/README.md similarity index 100% rename from apps/web/README.md rename to apps/tutorials/README.md diff --git a/apps/web/next-env.d.ts b/apps/tutorials/next-env.d.ts similarity index 100% rename from apps/web/next-env.d.ts rename to apps/tutorials/next-env.d.ts diff --git a/apps/web/next.config.js b/apps/tutorials/next.config.js similarity index 100% rename from apps/web/next.config.js rename to apps/tutorials/next.config.js diff --git a/apps/web/package.json b/apps/tutorials/package.json similarity index 95% rename from apps/web/package.json rename to apps/tutorials/package.json index dc1e52ad0b2..0617f75e998 100644 --- a/apps/web/package.json +++ b/apps/tutorials/package.json @@ -1,5 +1,5 @@ { - "name": "web", + "name": "tutorials", "version": "0.0.0", "private": true, "scripts": { diff --git a/apps/tutorials/postcss.config.js b/apps/tutorials/postcss.config.js new file mode 100644 index 00000000000..29c447cb54b --- /dev/null +++ b/apps/tutorials/postcss.config.js @@ -0,0 +1 @@ +module.exports = require('config/postcss.config') diff --git a/apps/tutorials/src/pages/index.tsx b/apps/tutorials/src/pages/index.tsx new file mode 100644 index 00000000000..7a9fbb9e83c --- /dev/null +++ b/apps/tutorials/src/pages/index.tsx @@ -0,0 +1,22 @@ +import { fetchPosts, DevPost } from '../utils/api' + +export default function Tutorials({ posts }: { posts: DevPost[] }) { + return ( +
{x.description}
+