This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Programming-Club-Ahmedabad-University/sty…
…le/customized-login-page successfully migrated to page router...rip app router
- Loading branch information
Showing
19 changed files
with
278 additions
and
128 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = { | ||
webpack(config) { | ||
config.resolve.extensions.push(".ts", ".tsx"); | ||
return config; | ||
}, | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "https", | ||
hostname: "firebasestorage.googleapis.com", | ||
port: "", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
import { useEffect, useState } from "react"; | ||
|
||
export default function Test() { | ||
// const ws = new WebSocket("ws://localhost:3001"); | ||
const [data, setData] = useState(null); | ||
// useEffect(() => { | ||
// ws.onmessage = (e) => { | ||
// // a message was received | ||
|
||
// setData(e.data); | ||
// }; | ||
// return () => { | ||
// ws.close(); | ||
// }; | ||
// }, []); | ||
|
||
return <div>{data}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SessionProvider } from "next-auth/react"; | ||
|
||
import type { AppProps } from "next/app"; | ||
import type { Session } from "next-auth"; | ||
import "./globals.css"; | ||
|
||
import { NextUIProvider } from "@nextui-org/react"; | ||
|
||
export default function App({ | ||
Component, | ||
pageProps: { session, ...pageProps }, | ||
}: AppProps<{ session: Session }>) { | ||
return ( | ||
<SessionProvider session={session}> | ||
<NextUIProvider> | ||
<main className="dark text-foreground bg-background"> | ||
<Component {...pageProps} /> | ||
</main> | ||
</NextUIProvider> | ||
</SessionProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import NextAuth from "next-auth"; | ||
import GoogleProvider from "next-auth/providers/google"; | ||
if (!process.env.GOOGLE_CLIENT_ID) { | ||
throw Error("GOOGLE_CLIENT_ID is not available in .env"); | ||
} else if (!process.env.GOOGLE_CLIENT_SECRET) { | ||
throw Error("GOOGLE_CLIENT_SECRET is not available in .env"); | ||
} | ||
|
||
const handler = NextAuth({ | ||
providers: [ | ||
GoogleProvider({ | ||
clientId: process.env.GOOGLE_CLIENT_ID!, | ||
clientSecret: process.env.GOOGLE_CLIENT_SECRET!, | ||
}), | ||
], | ||
}); | ||
|
||
export default handler; |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.