Skip to content

Commit

Permalink
feat: usernames suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdhamAliAbdelAal committed Nov 22, 2022
1 parent ccd8e15 commit cf1cdd6
Show file tree
Hide file tree
Showing 13 changed files with 850 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ module.exports = {
'react/jsx-props-no-spreading': 'off',
// disabling no shadow
'no-shadow': 'off',
// disabling no await in loop
'no-await-in-loop': 'off',
},
};
3 changes: 3 additions & 0 deletions data/db.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"usernameAvailable":{
"available": true
},
"posts": [
{
"{\"title\":\"jxbhjx\",\"text\":\"jxbjh\",\"kind\":\"text\",\"owner\":0,\"ownerType\":\"Subreddit\",\"spoiler\":false,\"nswf\":false,\"sendReplies\":true}": "",
Expand Down
3 changes: 2 additions & 1 deletion data/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"/users/new":"/new",
"/users/hot":"/hot",
"/users/top":"/top",
"/users/best":"/best"
"/users/best":"/best",
"/users/username_available?userName=*":"/usernameAvailable"
}
Loading

0 comments on commit cf1cdd6

Please sign in to comment.