From ef9bbaf889cc9609c30654313e5a120f47436350 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 18 Jan 2023 10:20:03 -0700 Subject: [PATCH] Fixes --- apps/auth | 1 + apps/auth/.eslintrc.js | 1 - apps/auth/.gitignore | 36 -------------------- apps/auth/README.md | 1 - apps/auth/next.config.js | 34 ------------------- apps/auth/package.json | 41 ----------------------- apps/auth/pages/_app.tsx | 13 ------- apps/auth/pages/api/auth/[...nextauth].ts | 1 - apps/auth/pages/index.tsx | 19 ----------- apps/auth/tsconfig.json | 20 ----------- 10 files changed, 1 insertion(+), 166 deletions(-) create mode 160000 apps/auth delete mode 100644 apps/auth/.eslintrc.js delete mode 100644 apps/auth/.gitignore delete mode 100644 apps/auth/README.md delete mode 100644 apps/auth/next.config.js delete mode 100644 apps/auth/package.json delete mode 100644 apps/auth/pages/_app.tsx delete mode 100644 apps/auth/pages/api/auth/[...nextauth].ts delete mode 100644 apps/auth/pages/index.tsx delete mode 100644 apps/auth/tsconfig.json diff --git a/apps/auth b/apps/auth new file mode 160000 index 0000000000..a74ac5ec4c --- /dev/null +++ b/apps/auth @@ -0,0 +1 @@ +Subproject commit a74ac5ec4c13ebf14a827f8cfc4704e271fa0c6b diff --git a/apps/auth/.eslintrc.js b/apps/auth/.eslintrc.js deleted file mode 100644 index 0e71ec1eae..0000000000 --- a/apps/auth/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("@calcom/config/eslint-preset"); diff --git a/apps/auth/.gitignore b/apps/auth/.gitignore deleted file mode 100644 index c87c9b392c..0000000000 --- a/apps/auth/.gitignore +++ /dev/null @@ -1,36 +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* -.pnpm-debug.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/apps/auth/README.md b/apps/auth/README.md deleted file mode 100644 index b841b6e2be..0000000000 --- a/apps/auth/README.md +++ /dev/null @@ -1 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with `create-next-app`. diff --git a/apps/auth/next.config.js b/apps/auth/next.config.js deleted file mode 100644 index d15941a603..0000000000 --- a/apps/auth/next.config.js +++ /dev/null @@ -1,34 +0,0 @@ -require("dotenv").config({ path: "../../.env" }); - -/** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: true, - swcMinify: true, - transpilePackages: [ - "@calcom/app-store-cli", - "@calcom/app-store", - "@calcom/config", - "@calcom/core", - "@calcom/dayjs", - "@calcom/embed-core", - "@calcom/embed-react", - "@calcom/embed-snippet", - "@calcom/features", - "@calcom/types", - "@calcom/lib", - "@calcom/prisma", - "@calcom/trpc", - "@calcom/tsconfig", - "@calcom/ui", - ], - rewrites() { - return [ - { - source: "/auth/:rest*", - destination: process.env.NEXT_PUBLIC_WEBAPP_URL + "/auth/:rest*", - }, - ]; - }, -}; - -module.exports = nextConfig; diff --git a/apps/auth/package.json b/apps/auth/package.json deleted file mode 100644 index 9669d1ccc2..0000000000 --- a/apps/auth/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@calcom/auth", - "description": "Auth module for Calcom", - "authors": "Cal.com, Inc.", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev -p 3006", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "@calcom/app-store-cli": "*", - "@calcom/app-store": "*", - "@calcom/config": "*", - "@calcom/core": "*", - "@calcom/dayjs": "*", - "@calcom/embed-core": "*", - "@calcom/embed-react": "*", - "@calcom/embed-snippet": "*", - "@calcom/features": "*", - "@calcom/types": "*", - "@calcom/lib": "*", - "@calcom/prisma": "*", - "@calcom/trpc": "*", - "@calcom/tsconfig": "*", - "@calcom/ui": "*", - "@auth/core": "^0.1.4", - "@types/node": "18.11.15", - "@types/react": "18.0.26", - "@types/react-dom": "18.0.9", - "eslint": "^8.22.0", - "eslint-config-next": "^13.1.1", - "next": "^13.1.1", - "next-auth": "^4.18.8", - "react": "18.2.0", - "react-dom": "18.2.0", - "typescript": "4.9.4" - } -} diff --git a/apps/auth/pages/_app.tsx b/apps/auth/pages/_app.tsx deleted file mode 100644 index f69874acda..0000000000 --- a/apps/auth/pages/_app.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { TooltipProvider } from "@radix-ui/react-tooltip"; -import { SessionProvider } from "next-auth/react"; -import type { AppProps } from "next/app"; - -export default function App({ Component, pageProps: { session, ...pageProps } }: AppProps) { - return ( - - - - - - ); -} diff --git a/apps/auth/pages/api/auth/[...nextauth].ts b/apps/auth/pages/api/auth/[...nextauth].ts deleted file mode 100644 index 42b0d7753d..0000000000 --- a/apps/auth/pages/api/auth/[...nextauth].ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "@calcom/features/auth/api/dynamicHandler"; diff --git a/apps/auth/pages/index.tsx b/apps/auth/pages/index.tsx deleted file mode 100644 index 9705d59050..0000000000 --- a/apps/auth/pages/index.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { signIn, signOut, useSession } from "next-auth/react"; - -export default function Component() { - const { data: session } = useSession(); - if (session) { - return ( - <> - Signed in as {session.user?.email}
- - - ); - } - return ( - <> - Not signed in
- - - ); -} diff --git a/apps/auth/tsconfig.json b/apps/auth/tsconfig.json deleted file mode 100644 index c6b3666313..0000000000 --- a/apps/auth/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@calcom/tsconfig/nextjs.json", - "compilerOptions": { - "strict": true, - "jsx": "preserve", - "baseUrl": ".", - "paths": { - "~/*": ["*"], - "@prisma/client/*": ["@calcom/prisma/client/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - "../../packages/types/*.d.ts", - "../../packages/types/next-auth.d.ts" - ], - "exclude": ["node_modules", "templates", "auth"] -}