-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added next-auth for login #1
Open
mdkamran25
wants to merge
56
commits into
main
Choose a base branch
from
feature
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
d1a10d8
feat: Add login UI
MdKAMRAN7255 87b34a1
feat: Add signup UI
MdKAMRAN7255 891f29c
feat: Add db connection, models for user
MdKAMRAN7255 9bac8a5
feat: Add route for signup
mdkamran25 57dd4c2
feat: remove npm, added yarn
MdKAMRAN7255 4aaed15
feat: store signup data to mongodb
MdKAMRAN7255 7bdd287
feat: add next-auth for login
MdKAMRAN7255 3217a75
refact: resolve next-auth login error
MdKAMRAN7255 00cea56
feat: add profile menu dropdown
MdKAMRAN7255 b4086b5
feat: Add Dashboard UI
MdKAMRAN7255 24dc5ec
Fix: Resolve comment
MdKAMRAN7255 dd9e73c
refact: add portal for the profile modal
MdKAMRAN7255 b84604c
refact: Add a layout for login and signup page since it has sharing s…
MdKAMRAN7255 5d81e09
refact: add svg inplace of png,
MdKAMRAN7255 3a0243a
refact: changes button to type submit always
MdKAMRAN7255 cfa106d
feat: Add game room page UI
MdKAMRAN7255 3f4b901
feat: Add Loading UI for dashboard
MdKAMRAN7255 a5eeafe
feat: add mongodb for create abd join room
MdKAMRAN7255 c8f46df
refac: add session in sessionProvider
MdKAMRAN7255 f8a3991
feat: add game login and win and lose UI
MdKAMRAN7255 6974341
refac: corrected portal for the result modal
MdKAMRAN7255 833311c
feat: Create a new collections for game records
MdKAMRAN7255 b268c80
feat: add draw game logic
MdKAMRAN7255 161cc72
refac: correct route validation for room page
MdKAMRAN7255 8b528e8
fix: Add socket on join game feature
MdKAMRAN7255 2b2fb9c
feat: Add Socket for update game board
MdKAMRAN7255 31b57a4
feat: Add socket for handle end game func
MdKAMRAN7255 23f20d7
feat: Add channel for the room
MdKAMRAN7255 3b383e1
feat: Add socket with room implementation
MdKAMRAN7255 1fd1575
refac: remove console.log
MdKAMRAN7255 64c4a91
feat: add .env for the port number
MdKAMRAN7255 894b104
refac: change static to dynamic
MdKAMRAN7255 025fe59
feat: add rematch
MdKAMRAN7255 74949d2
refac: add ts and seperate auth file because of issue at built time
MdKAMRAN7255 0be8138
refac: add react-hook-form lib
MdKAMRAN7255 c6965b2
fix: correct socket issue
MdKAMRAN7255 7c5633f
fix: refreshing socket issue
MdKAMRAN7255 161f023
refac: remove data from socket and add console for log on render to s…
MdKAMRAN7255 361f375
refac: added port if env is null
MdKAMRAN7255 668a759
refac: add inputClass css as global as it is used in multiple placess
MdKAMRAN7255 e9f5dea
refac: add react-web-hook form
MdKAMRAN7255 744f8e4
refac: corrected middleware utilization
MdKAMRAN7255 e6b1f54
feat: add profile page, and required api
MdKAMRAN7255 bf7af56
fix: solve render server issue by calling socket server early
MdKAMRAN7255 090ba0f
feat: add route for profile which give user result data
MdKAMRAN7255 1f0c0b3
refac: emit socket event at dashboard to start server early
MdKAMRAN7255 f8a90fd
feat: add sorting feature in table
MdKAMRAN7255 83c86a1
feat: add limit for data per page
MdKAMRAN7255 5e151ef
feat: Added pagination for the table
mdkamran25 2a9075a
feat: add pagination functionality in react.
MdKAMRAN7255 70c76af
refac: add correct image for rematch, change table column name
MdKAMRAN7255 c58560a
refac: Remove unnecessar console, add one more protected route in mid…
MdKAMRAN7255 64a0bba
feat: add leave game button in page
MdKAMRAN7255 50e526c
feat: add dashboard navigation buttton at profile page
MdKAMRAN7255 2716dbb
add not-found and error page
MdKAMRAN7255 eed5c0d
refactor: remove any from authorize of next.js and Since User is rese…
MdKAMRAN7255 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 @@ | ||
NEXT_PUBLIC_MONGO_URI="" |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
.env | ||
|
||
# testing | ||
/coverage | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mdkamran25 marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mdkamran25 marked this conversation as resolved.
Show resolved
Hide resolved
|
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,13 @@ | ||
import mongoose, { Schema } from "mongoose"; | ||
|
||
const userSchema = new Schema<UserSchema>({ | ||
name:{type:String, required: true}, | ||
mdkamran25 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
email:{type:String, required: true, unique:true}, | ||
password:{type:String, required: true} | ||
},{ | ||
timestamps:true | ||
}); | ||
|
||
const User = mongoose.models.User || mongoose.model("User", userSchema); | ||
|
||
export default User; |
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,13 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "https", | ||
hostname: "**", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest using SVGs over PNG format whenever possible. SVGs can be scaled without losing the quality of the image.
Read more about it here: https://cloudinary.com/guides/image-formats/svg-vs-png-4-key-differences-and-how-to-choose#1-image-quality-and-scaling