Skip to content

Commit

Permalink
docs file
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamAsHhraf committed Dec 23, 2022
1 parent 44dedab commit 4645281
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 104 deletions.
2 changes: 1 addition & 1 deletion data/Subreddit.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"moderators":
[{"user": {
"id": "638b8c62c20658257a3c450a",
"userName": "nourr",
"userName": "nour",
"joiningDate": 1670104113541,
"profilePicture": "https://api.nonlegit.click/api/v1/users/images/https://api.nonlegit.click/api/v1/users/images/default.png",
"moderatorPermissions": {
Expand Down
224 changes: 121 additions & 103 deletions data/routes.json
Original file line number Diff line number Diff line change
@@ -1,137 +1,155 @@
{
"/comments": "/createcomment",
"/comments/comment_tree/:postID?limit=:limit&depth=:depth&sort=:sort&commentId:commentId": "/morecomments",
"/comments/comment_tree/:postID?limit=:limit&depth=:depth&sort=:sort": "/postcomments",
"/comments/more_children/:postID?children=:children&depth=:depth": "/morereplies",
"/comments/:commentId": "/editcomment",
"/posts/:postID": "/getpost",

"/users/:name/overview?limit=:limit&page=:page&sort=:sortType": "/overview",
"/users/:name/posts?limit=:limit&page=:page&sort=:sortType": "/postsTap",
"/users/:name/comments?limit=:limit&page=:page&sort=:sortType": "/commentsTap",

"/users/followers?limit=:limit&page=:page": "/followers",
"/subreddits/random/leaderboard?limit=4&page=0": "/homePageCommunities",
"/subreddits/:subredditName/about/posts/:location?limit=:limit&page=:page&sort=:sortType": "/modQueue",
"/users/:name/overview?sort=:sortType&limit=:limit&page=:page": "/overview",
"/users/:name/posts?sort=:sortType&limit=:limit&page=:page": "/postsTap",
"/users/:name/comments?sort=:sortType&limit=:limit&page=:page": "/commentsTap",
"/users/upvoted?limit=:limit&page=:page": "/upvoted",
"/users/downvoted?limit=:limit&page=:page": "/downvoted",
"/users/saved?limit=:limit&page=:page": "/saved",
"/users/hidden?limit=:limit&page=:page": "/hidden",
"/user/notifications": "/notifications",
"/users/username_available?userName=*": "/usernameAvailable",

"/users/me/prefs": "/settings",
"/subreddits/mine/moderator": "/subreddits",
"/subreddits/moderator/:name": "/userSubreddits",
"/users/:name/overview": "/overview",
"/users/:name/posts/:something": "/postsTap",
"/users/:name/comments/:something": "/commentsTap",
"/users/upvoted": "/upvoted",
"/users/downvoted": "/downvoted",
"/users/saved": "/saved",
"/users/hidden": "/hidden",
"/subreddits/mine/subscriber": "/subredditsHomePage",
"/users/new": "/new",
"/users/hot": "/hot",
"/users/top": "/top",
"/users/best": "/best",
"/users/username_available?userName=*": "/usernameAvailable",
"/users/logout": "/logout",
"/users/check_reset_token/:token": "/token",
"/users/:Name/about/": "/userInfo",
"/users/social_links": "/socialLinks",
"/users/social_links/:id": "/postSocialLinks",
"/users/image": "/userImage",
"/users/blocked": "/listBlock",
"/users/followers": "/followers",
"/users/signup": "/signup",
"/users/username_available?userName=:username": "/unique",
"/users/me/": "/me",
"/users/images/": "/me",
"/users/google": "/google",
"/users/facebook": "/facebook",
"/users/login": "/login",
"/users/forgot_password": "/forgetpassword",
"/users/forgot_username": "/forgetusername",
"/users/reset_password/:token": "/resetpassword",
"/users/notifications": "/notifications",
"/users/new?limit=:limit&page=:page": "/new",
"/users/hot?limit=:limit&page=:page": "/hot",
"/users/top?limit=:limit&page=:page": "/top",
"/users/best?limit=:limit&page=:page": "/best",
"/users/change_email": "/changePassword",
"/users/change_password": "/changeEmail",
"/users/delete_account/": "/deleteAccount",

"/users/check_reset_token/:token": "/token",
"/users/social_links/:id": "/postSocialLinks",
"/users/notifications/:notificationId/mark_as_read": "/markAsRead",
"/users/notifications/mark_as_read": "/markAsRead",
"/users/notifications/:notificationId/hide": "/hideNotification",
"/users/notifications/mark_as_read": "/markAsRead",

"/users/verify_email/:token": "/verifyEmail",

"/users/:name/overview?limit=:limit&page=:page&sort=:sortType": "/overview",
"/users/:name/comments?sort=:sortType&limit=:limit&page=:page": "/commentsTap",
"/users/:name/comments/:something": "/commentsTap",
"/users/:name/comments": "/commentsTap",

"/users/:name/overview?sort=:sortType&limit=:limit&page=:page": "/overview",
"/users/:name/overview": "/overview",

"/users/:name/posts?limit=:limit&page=:page&sort=:sortType": "/postsTap",
"/users/:name/posts?sort=:sortType&limit=:limit&page=:page": "/postsTap",
"/users/:name/posts/:something": "/postsTap",
"/users/:name/posts": "/postsTap",

"/users/:Name/about/": "/userInfo",
"/users/:name/follow": "/follow",
"/users/:name/unfollow": "/follow",
"/users/:name/block_user": "/block",
"/users/:name/unblock_user": "/block",
"/users/followers": "/followers",


"/comments": "/createcomment",
"/comments/comment_tree/:postID?limit=:limit&depth=:depth&sort=:sort&commentId:commentId": "/morecomments",
"/comments/comment_tree/:postID?limit=:limit&depth=:depth&sort=:sort": "/postcomments",
"/comments/comment_tree/:postID": "/postcomments",
"/comments/more_children?children=:children&depth=:depth": "/morereplies",
"/comments/more_children": "/morecomments",
"/comments/:commentId": "/editcomment",
"/comments/:commentID/save": "/savecomment",
"/comments/:id/:action": "/commentMod",
"/comments/:id/moderate/:action": "/commentMod",
"/subreddits/leaderboard/:category?limit=:limit&page=:page": "/TopCommunities",

"/posts/:postID": "/getpost",
"/posts/:postId/actions/:action": "/actionOnPost",
"/posts/:postId/moderate/:action": "/moderatorAction",
"/t/:name/": "/exploreCommunities",
"/search?limit=6&page=0&type=people&sort=:new&time=:day&q=:ahmed": "/SearchByPeople",
"/search?limit=6&page=0&type=communities&sort=:new&time=:day&q=:ahmed": "/SearchByCommunity",
"/search?limit=6&page=0&type=posts&sort=:new&time=:day&q=:ahmed": "/SearchByPost",
"/search?limit=6&page=0&type=comments&sort=:new&time=:day&q=:ahmed": "/SearchByComments",
"/subreddits/:name/": "/Subreddit",
"/subreddits": "/CreatSubreddit",
"/subreddits/:subredditName/:name/hot": "/hot",
"/subreddits/:Name/subscribe": "/join",
"/subreddits/:Name/top": "/top",
"/subreddits/:Name/new": "/new",
"/users/signup": "/signup",
"/users/username_available?userName=:username": "/unique",
"/users/me/": "/me",
"/users/images/": "/me",
"/users/google": "/google",
"/users/facebook": "/facebook",
"/users/login": "/login",
"/users/forgot_password": "/forgetpassword",
"/users/forgot_username": "/forgetusername",
"/users/reset_password/:token": "/resetpassword",
"/messages/sent":"/messageSent",
"/posts/:postId":"/deleteAction",
"/posts/:postId/actions/:action":"/actionOnPost",
"/subreddits/:subreddit/flair":"/subredditFlairs",
"/getpost/:postID":"/getpost",
"/comments/comment_tree/:postID":"/postcomments",
"/comments/more_children":"/morecomments",
"/posts/:postId/save":"/save",
"/posts/:postId/unsave":"/unsave",
"/posts/:postId/hide":"/hide",
"/posts/:postId/unhide":"/hide",
"/posts/:postId/vote":"/vote",
"/posts/:postId/images":"/addImagesToPost",
"subreddits/:Name/flairs/:id":"/UpdateFlair",
"/messages/post_replies":"/MessagePostReplay",
"/messages":"/MessageDrive",
"/messages/:parentMessageId/reply":"/MessageReplay",
"/messages/all":"/messagesAll",
"/messages/unread":"/messageUnread",
"/messages/mark_as_read ":"/messageAsRead",
"/messages/:messageId":"/messageRemove",
"/subreddits/:subredditName/muted":"/muted",
"/subreddits/:subredditName/moderators":"/moderators",
"/subreddits/:subredditName/approved_users":"/approved",
"/subreddits/:subredditName/mute_settings/:action/:userName":"/muteUnmute",

"/subreddits/:subredditName/:userName/:action/approve_user":"/approvedUnapproved",
"/subreddits/:subredditName/invited_moderators":"/invitedModerators",
"/subreddits/{subredditName}/moderators/{moderatorName}":"/edit",

"/subreddits/:subredditName/approve_settings/:action/:userName":"/approvedUnapproved",
"/subreddits/:subredditName/Ban_settings/:action/:userName":"/banUnban",
"/subreddits/:subredditName/:name/hot?limit=:limit&page=:page": "/hot",
"/subreddits/:Name/top?limit=:limit&page=:page": "/top",
"/subreddits/:Name/new?limit=:limit&page=:page": "/new",
"/users/notifications": "/notifications",
"/users/:name/posts": "/postsTap",
"/users/:name/comments": "/commentsTap",
"/users/new?limit=:limit&page=:page": "/new",
"/users/hot?limit=:limit&page=:page": "/hot",
"/users/top?limit=:limit&page=:page": "/top",
"/users/best?limit=:limit&page=:page": "/best",
"/posts/:postId/:action": "/postAction",
"/posts/:postId/save": "/save",
"/posts/:postId/unsave": "/unsave",
"/posts/:postId/hide": "/hide",
"/posts/:postId/unhide": "/hide",
"/posts/:postId/vote": "/vote",
"/posts/:postId/images": "/addImagesToPost",
"/posts/:postId/delete": "/delete",
"/posts/:postId/:action": "/postAction",
"/posts/:postId":"/deleteAction",

"/t/:name/": "/exploreCommunities",

"/messages": "/MessageDrive",
"/messages/sent": "/messageSent",
"/messages/post_replies": "/MessagePostReplay",
"/messages/all": "/messagesAll",
"/messages/unread": "/messageUnread",
"/messages/mark_as_read": "/messageAsRead",
"/messages/:parentMessageId/reply": "/MessageReplay",
"/messages/:messageId": "/messageRemove",

"/notifications/token": "/notificationToken",

"/getpost/:postID": "/getpost",

"/subreddits": "/CreatSubreddit",
"/subreddits/random/leaderboard?limit=4&page=0": "/homePageCommunities",
"/subreddits/mine/moderator": "/subreddits",
"/subreddits/mine/subscriber": "/subredditsHomePage",
"/subreddits/moderator/:name": "/userSubreddits",
"/subreddits/leaderboard/:category?limit=:limit&page=:page": "/TopCommunities",

"/subreddits/:Name/subscribe": "/join",
"/subreddits/:Name/top": "/top",
"/subreddits/:Name/new": "/new",
"/subreddits/:subreddit/flair": "/subredditFlairs",
"/subreddits/:subredditName/muted": "/muted",
"/subreddits/:subredditName/moderators": "/moderators",
"/subreddits/:subredditName/approved_users": "/approved",

"/subreddits/:subredditName/invited_moderators": "/invitedModerators",
"/subreddits/:subredditName/moderators/:moderatorName": "/edit",
"/subreddits/:subredditName/mute_settings/:action/:userName": "/muteUnmute",
"/subreddits/:subredditName/approve_settings/:action/:userName": "/approvedUnapproved",
"/subreddits/:subredditName/Ban_settings/:action/:userName": "/banUnban",
"/subreddits/:subredditName/banned": "/banned",
"/subreddits/:subredditName/flairs": "/AddFlair",
"/subreddits/:subredditName/flairs/:flairId": "/EditFlair",
"/users/change_email": "/changePassword",
"/users/change_password": "/changeEmail",
"/users/delete_account/": "/deleteAccount",
"/users/verify_email/:token": "/verifyEmail",
"/subreddits/:subredditName/rules/:title": "/AddRule",
"/subreddits/:subReddit/moderators/:userName": "/invite",

"/subreddits/:subredditName/about/posts/:location?limit=:limit&page=:page&sort=:sortType": "/modQueue",

"/subreddits/:Name/top?limit=:limit&page=:page": "/top",
"/subreddits/:Name/new?limit=:limit&page=:page": "/new",

"/subreddits/:subredditName/:name/hot?limit=:limit&page=:page": "/hot",
"/subreddits/:subredditName/:name/hot": "/hot",
"/subreddits/:subredditName/:action/invitation": "/SubreddtInvitation",
"subreddits/:subredditName/flairs": "/AddFlair",
"subreddits/:subredditName/flairs/:flairId": "/EditFlair",
"subreddits/:subredditName/rules/:title": "/AddRule",
"comments/:commentID/save":"/savecomment",
"/subreddits/:subReddit/moderators/:userName":"/invite"
}

"/subreddits/:subredditName/:userName/:action/approve_user": "/approvedUnapproved",
"/subreddits/:name/": "/Subreddit",
"/subreddits/:Name/flairs/:id": "/UpdateFlair",



"/search?limit=6&page=0&type=people&sort=:new&time=:day&q=:ahmed": "/SearchByPeople",
"/search?limit=6&page=0&type=communities&sort=:new&time=:day&q=:ahmed": "/SearchByCommunity",
"/search?limit=6&page=0&type=posts&sort=:new&time=:day&q=:ahmed": "/SearchByPost",
"/search?limit=6&page=0&type=comments&sort=:new&time=:day&q=:ahmed": "/SearchByComments"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`test snapshot 1`] = `
<div
className="MuiBox-root css-1sbynk4"
>
<img
alt="Page Not Found"
src="https://www.redditstatic.com/reddit404b.png"
width="300px"
/>
<p
className="MuiTypography-root MuiTypography-body1 css-obn6vu-MuiTypography-root"
>
404 page not found
</p>
<p
className="MuiTypography-root MuiTypography-body1 css-ahj2mt-MuiTypography-root"
>
the page you requested does not exist
</p>
<p
className="MuiTypography-root MuiTypography-body1 css-ahj2mt-MuiTypography-root"
>
Redirect to
<a
className="css-5ewi9r"
href="/"
>
Home
</a>
🏠
</p>
</div>
`;

0 comments on commit 4645281

Please sign in to comment.