diff --git a/apps/temp-community-forum/.eslintrc.js b/apps/temp-community-forum/.eslintrc.js deleted file mode 100644 index e0b422e408e..00000000000 --- a/apps/temp-community-forum/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/eslint-preset') diff --git a/apps/temp-community-forum/README.md b/apps/temp-community-forum/README.md deleted file mode 100644 index 1d67ece731b..00000000000 --- a/apps/temp-community-forum/README.md +++ /dev/null @@ -1,30 +0,0 @@ -## Getting Started - -First, run the development server: - -```bash -yarn 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. - -## 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_source=github.com&utm_medium=referral&utm_campaign=turborepo-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/apps/temp-community-forum/next-env.d.ts b/apps/temp-community-forum/next-env.d.ts deleted file mode 100644 index 4f11a03dc6c..00000000000 --- a/apps/temp-community-forum/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/temp-community-forum/next.config.js b/apps/temp-community-forum/next.config.js deleted file mode 100644 index 6e4744fdc65..00000000000 --- a/apps/temp-community-forum/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -const withTM = require('next-transpile-modules')(['common']) - -module.exports = withTM({ - reactStrictMode: true, -}) diff --git a/apps/temp-community-forum/package.json b/apps/temp-community-forum/package.json deleted file mode 100644 index c5984bf7e45..00000000000 --- a/apps/temp-community-forum/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "forum", - "version": "0.0.0", - "private": true, - "scripts": { - "dev": "next dev --port 3002", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "@octokit/graphql": "^4.8.0", - "colorette": "^1.4.0", - "common": "*", - "next": "12.0.8", - "react": "17.0.2", - "react-dom": "17.0.2", - "string-hash": "^1.1.3" - }, - "devDependencies": { - "@types/node": "^17.0.12", - "@types/react": "17.0.37", - "config": "*", - "eslint": "7.32.0", - "mini-svg-data-uri": "^1.4.4", - "next-transpile-modules": "9.0.0", - "tsconfig": "*", - "typescript": "^4.5.3" - } -} diff --git a/apps/temp-community-forum/postcss.config.js b/apps/temp-community-forum/postcss.config.js deleted file mode 100644 index 29c447cb54b..00000000000 --- a/apps/temp-community-forum/postcss.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/postcss.config') diff --git a/apps/temp-community-forum/src/pages/_app.tsx b/apps/temp-community-forum/src/pages/_app.tsx deleted file mode 100644 index 2d0cd5807e9..00000000000 --- a/apps/temp-community-forum/src/pages/_app.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react' -import Main from '.' -import '../styles/tailwind.css' - -const Index = () => { - return
-} - -export default Index diff --git a/apps/temp-community-forum/src/pages/index.tsx b/apps/temp-community-forum/src/pages/index.tsx deleted file mode 100644 index c7381379165..00000000000 --- a/apps/temp-community-forum/src/pages/index.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { fetchDiscussions } from '../utils/api' -import { Button, Layouts } from 'common' -import { useEffect, useState } from 'react' - -export default function Main() { - const [discussionList, setDiscussionList] = useState([] as any[]) - - useEffect(() => { - async function fetchData() { - const discussions = await fetchDiscussions() - setDiscussionList(discussions) - } - fetchData() - }, []) - - return ( - -
Categories
-
One
-
Two
- - } - > -

Discussions

- {discussionList.map((x) => ( -
-

{x.title}

-

{x.body}

-
- ))} -
- ) -} diff --git a/apps/temp-community-forum/src/styles/tailwind.css b/apps/temp-community-forum/src/styles/tailwind.css deleted file mode 100644 index b5c61c95671..00000000000 --- a/apps/temp-community-forum/src/styles/tailwind.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/apps/temp-community-forum/src/utils/api.ts b/apps/temp-community-forum/src/utils/api.ts deleted file mode 100644 index dfdb13906fb..00000000000 --- a/apps/temp-community-forum/src/utils/api.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { graphql } from '@octokit/graphql' - -const query = ` -{ - repository(owner: "supabase", name: "supabase") { - discussions(first: 10) { - nodes { - id - author { - avatarUrl - url - login - } - body - title - answer { - author { - avatarUrl - login - } - body - createdAt - } - createdAt - } - totalCount - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - } - } -} -` -export async function fetchDiscussions() { - // @ts-ignore - const { repository } = await graphql(query, { - headers: { - authorization: `token ${process.env.NEXT_PUBLIC_DISCUSSIONS_TOKEN}`, - }, - }) - return repository.discussions.nodes -} diff --git a/apps/temp-community-forum/tailwind.config.js b/apps/temp-community-forum/tailwind.config.js deleted file mode 100644 index 9c2af498997..00000000000 --- a/apps/temp-community-forum/tailwind.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/tailwind.config') diff --git a/apps/temp-community-forum/tsconfig.json b/apps/temp-community-forum/tsconfig.json deleted file mode 100644 index a355365ba65..00000000000 --- a/apps/temp-community-forum/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "tsconfig/nextjs.json", - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] -} diff --git a/apps/temp-community-tutorials/.eslintrc.js b/apps/temp-community-tutorials/.eslintrc.js deleted file mode 100644 index e0b422e408e..00000000000 --- a/apps/temp-community-tutorials/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/eslint-preset') diff --git a/apps/temp-community-tutorials/README.md b/apps/temp-community-tutorials/README.md deleted file mode 100644 index 1d67ece731b..00000000000 --- a/apps/temp-community-tutorials/README.md +++ /dev/null @@ -1,30 +0,0 @@ -## Getting Started - -First, run the development server: - -```bash -yarn 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. - -## 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_source=github.com&utm_medium=referral&utm_campaign=turborepo-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/apps/temp-community-tutorials/next-env.d.ts b/apps/temp-community-tutorials/next-env.d.ts deleted file mode 100644 index 4f11a03dc6c..00000000000 --- a/apps/temp-community-tutorials/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/temp-community-tutorials/next.config.js b/apps/temp-community-tutorials/next.config.js deleted file mode 100644 index 6e4744fdc65..00000000000 --- a/apps/temp-community-tutorials/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -const withTM = require('next-transpile-modules')(['common']) - -module.exports = withTM({ - reactStrictMode: true, -}) diff --git a/apps/temp-community-tutorials/package.json b/apps/temp-community-tutorials/package.json deleted file mode 100644 index 473ca829340..00000000000 --- a/apps/temp-community-tutorials/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "tutorials", - "version": "0.0.0", - "private": true, - "scripts": { - "dev": "next dev --port 3003", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "colorette": "^1.4.0", - "common": "*", - "next": "12.0.8", - "react": "17.0.2", - "react-dom": "17.0.2" - }, - "devDependencies": { - "@types/node": "^17.0.12", - "@types/react": "17.0.37", - "config": "*", - "eslint": "7.32.0", - "next-transpile-modules": "9.0.0", - "tsconfig": "*", - "typescript": "^4.5.3" - } -} diff --git a/apps/temp-community-tutorials/postcss.config.js b/apps/temp-community-tutorials/postcss.config.js deleted file mode 100644 index 29c447cb54b..00000000000 --- a/apps/temp-community-tutorials/postcss.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/postcss.config') diff --git a/apps/temp-community-tutorials/src/pages/_app.tsx b/apps/temp-community-tutorials/src/pages/_app.tsx deleted file mode 100644 index 2d0cd5807e9..00000000000 --- a/apps/temp-community-tutorials/src/pages/_app.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react' -import Main from '.' -import '../styles/tailwind.css' - -const Index = () => { - return
-} - -export default Index diff --git a/apps/temp-community-tutorials/src/pages/index.tsx b/apps/temp-community-tutorials/src/pages/index.tsx deleted file mode 100644 index 2e5771c0ae1..00000000000 --- a/apps/temp-community-tutorials/src/pages/index.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { fetchPosts, DevPost } from '../utils/api' -import { Button, Layouts } from 'common' -import { useEffect, useState } from 'react' - -export default function Main() { - const [postList, setPostList] = useState([] as DevPost[]) - - useEffect(() => { - async function fetchData() { - const posts = await fetchPosts() - setPostList(posts) - } - fetchData() - }, []) - - return ( - Shared Sidebar}> -

Tutorials

- {postList.map((x) => ( -
-

{x.title}

-

{x.description}

-
- ))} -
- ) -} diff --git a/apps/temp-community-tutorials/src/styles/tailwind.css b/apps/temp-community-tutorials/src/styles/tailwind.css deleted file mode 100644 index b5c61c95671..00000000000 --- a/apps/temp-community-tutorials/src/styles/tailwind.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/apps/temp-community-tutorials/src/utils/api.ts b/apps/temp-community-tutorials/src/utils/api.ts deleted file mode 100644 index baa1b180f00..00000000000 --- a/apps/temp-community-tutorials/src/utils/api.ts +++ /dev/null @@ -1,55 +0,0 @@ -const username = 'supabase' -const postsUrl = `https://dev.to/api/articles?username=${username}` - -// Defines a Post returned from the DEV API -export type DevPost = { - id: Number - title: string - description: string - slug: string - url: string - path: string - readable_publish_date: string - published_at: string - tags: string - tag_list: string[] - comments_count: Number - public_reactions_count: Number - positive_reactions_count: Number - published: boolean - first_published_at: string - edited_at: string - user: { - username: string - name: string - profile_image_90: string - cover_image_90: string - profile_image_original: string - cover_image_original: string - location: string - website: string - bio: string - twitter_username: string - github_username: string - dribbble_username: string - path: string - } - organization: { - id: Number - name: string - slug: string - profile_image_90: string - profile_imag: string - } -} - -export async function fetchPosts() { - try { - const res = await fetch(postsUrl) - const data: DevPost[] = await res.json() - return data - } catch (err) { - console.log(err) - return [] - } -} diff --git a/apps/temp-community-tutorials/tailwind.config.js b/apps/temp-community-tutorials/tailwind.config.js deleted file mode 100644 index 9c2af498997..00000000000 --- a/apps/temp-community-tutorials/tailwind.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('config/tailwind.config') diff --git a/apps/temp-community-tutorials/tsconfig.json b/apps/temp-community-tutorials/tsconfig.json deleted file mode 100644 index a355365ba65..00000000000 --- a/apps/temp-community-tutorials/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "tsconfig/nextjs.json", - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] -} diff --git a/packages/common/Button.tsx b/packages/common/Button.tsx deleted file mode 100644 index 5f63b34da22..00000000000 --- a/packages/common/Button.tsx +++ /dev/null @@ -1,4 +0,0 @@ -import * as React from 'react' -export const Button = () => { - return -}