├── .env.example ├── .gitignore ├── README.md ├── package.json ├── public ├── _redirects ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.js ├── App.test.js ├── components │ ├── AddPostBar.jsx │ ├── ChangeProfilePhoto.jsx │ ├── ChatBar.jsx │ ├── ChatForm.jsx │ ├── ChatItem.jsx │ ├── Comment.jsx │ ├── CommentBar.jsx │ ├── CommentInput.jsx │ ├── CommentList.jsx │ ├── ContactBar.jsx │ ├── ContactItem.jsx │ ├── ContactList.jsx │ ├── EditProfileBar.jsx │ ├── EditProfileForm.jsx │ ├── FollowerBar.jsx │ ├── HomeBar.jsx │ ├── MessageBar.jsx │ ├── MessageList.jsx │ ├── NavBar.jsx │ ├── NotifBar.jsx │ ├── NotifItem.jsx │ ├── NotifList.jsx │ ├── Post.jsx │ ├── PostBar.jsx │ ├── ProfileBar.jsx │ ├── SearchBar.jsx │ ├── SuggestedUserItem.jsx │ ├── SuggestedUserList.jsx │ ├── ThumbnailList.jsx │ ├── UserItem.jsx │ ├── UserList.jsx │ ├── UserSearchList.jsx │ ├── ownProfileBar.jsx │ └── skeleton │ │ ├── SkeletonChat.jsx │ │ ├── SkeletonExplore.jsx │ │ ├── SkeletonList.jsx │ │ ├── SkeletonPost.jsx │ │ └── SkeletonProfile.jsx ├── icons │ ├── search-icon-black.svg │ └── search-icon-white.svg ├── index.css ├── index.js ├── pages │ ├── AddPost.jsx │ ├── Chat.jsx │ ├── Comments.jsx │ ├── Contacts.jsx │ ├── EditProfile.jsx │ ├── Explore.jsx │ ├── Followers.jsx │ ├── Home.jsx │ ├── Login.jsx │ ├── Message.jsx │ ├── NotFound.jsx │ ├── Notifications.jsx │ ├── OwnProfile.jsx │ ├── PostId.jsx │ ├── Profile.jsx │ ├── Signup.jsx │ └── SignupPhoto.jsx ├── redux │ ├── features │ │ ├── chatSlice.js │ │ ├── commentSlice.js │ │ └── userSlice.js │ └── store.js ├── reportWebVitals.js ├── schema │ └── user.js ├── services │ ├── api.js │ ├── axiosAuth.js │ ├── notification.js │ ├── socket.js │ └── token.js ├── setupTests.js └── utils │ └── PrivateRoutes.jsx └── yarn.lock /.env.example: -------------------------------------------------------------------------------- 1 | REACT_APP_API_URL = http://localhost:5000 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/package.json -------------------------------------------------------------------------------- /public/_redirects: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/_redirects -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/App.js -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/App.test.js -------------------------------------------------------------------------------- /src/components/AddPostBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/AddPostBar.jsx -------------------------------------------------------------------------------- /src/components/ChangeProfilePhoto.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ChangeProfilePhoto.jsx -------------------------------------------------------------------------------- /src/components/ChatBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ChatBar.jsx -------------------------------------------------------------------------------- /src/components/ChatForm.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ChatForm.jsx -------------------------------------------------------------------------------- /src/components/ChatItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ChatItem.jsx -------------------------------------------------------------------------------- /src/components/Comment.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/Comment.jsx -------------------------------------------------------------------------------- /src/components/CommentBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/CommentBar.jsx -------------------------------------------------------------------------------- /src/components/CommentInput.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/CommentInput.jsx -------------------------------------------------------------------------------- /src/components/CommentList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/CommentList.jsx -------------------------------------------------------------------------------- /src/components/ContactBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ContactBar.jsx -------------------------------------------------------------------------------- /src/components/ContactItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ContactItem.jsx -------------------------------------------------------------------------------- /src/components/ContactList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ContactList.jsx -------------------------------------------------------------------------------- /src/components/EditProfileBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/EditProfileBar.jsx -------------------------------------------------------------------------------- /src/components/EditProfileForm.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/EditProfileForm.jsx -------------------------------------------------------------------------------- /src/components/FollowerBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/FollowerBar.jsx -------------------------------------------------------------------------------- /src/components/HomeBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/HomeBar.jsx -------------------------------------------------------------------------------- /src/components/MessageBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/MessageBar.jsx -------------------------------------------------------------------------------- /src/components/MessageList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/MessageList.jsx -------------------------------------------------------------------------------- /src/components/NavBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/NavBar.jsx -------------------------------------------------------------------------------- /src/components/NotifBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/NotifBar.jsx -------------------------------------------------------------------------------- /src/components/NotifItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/NotifItem.jsx -------------------------------------------------------------------------------- /src/components/NotifList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/NotifList.jsx -------------------------------------------------------------------------------- /src/components/Post.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/Post.jsx -------------------------------------------------------------------------------- /src/components/PostBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/PostBar.jsx -------------------------------------------------------------------------------- /src/components/ProfileBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ProfileBar.jsx -------------------------------------------------------------------------------- /src/components/SearchBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/SearchBar.jsx -------------------------------------------------------------------------------- /src/components/SuggestedUserItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/SuggestedUserItem.jsx -------------------------------------------------------------------------------- /src/components/SuggestedUserList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/SuggestedUserList.jsx -------------------------------------------------------------------------------- /src/components/ThumbnailList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ThumbnailList.jsx -------------------------------------------------------------------------------- /src/components/UserItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/UserItem.jsx -------------------------------------------------------------------------------- /src/components/UserList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/UserList.jsx -------------------------------------------------------------------------------- /src/components/UserSearchList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/UserSearchList.jsx -------------------------------------------------------------------------------- /src/components/ownProfileBar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/ownProfileBar.jsx -------------------------------------------------------------------------------- /src/components/skeleton/SkeletonChat.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/skeleton/SkeletonChat.jsx -------------------------------------------------------------------------------- /src/components/skeleton/SkeletonExplore.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/skeleton/SkeletonExplore.jsx -------------------------------------------------------------------------------- /src/components/skeleton/SkeletonList.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/skeleton/SkeletonList.jsx -------------------------------------------------------------------------------- /src/components/skeleton/SkeletonPost.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/skeleton/SkeletonPost.jsx -------------------------------------------------------------------------------- /src/components/skeleton/SkeletonProfile.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/components/skeleton/SkeletonProfile.jsx -------------------------------------------------------------------------------- /src/icons/search-icon-black.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/icons/search-icon-black.svg -------------------------------------------------------------------------------- /src/icons/search-icon-white.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/icons/search-icon-white.svg -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/index.js -------------------------------------------------------------------------------- /src/pages/AddPost.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/AddPost.jsx -------------------------------------------------------------------------------- /src/pages/Chat.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Chat.jsx -------------------------------------------------------------------------------- /src/pages/Comments.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Comments.jsx -------------------------------------------------------------------------------- /src/pages/Contacts.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Contacts.jsx -------------------------------------------------------------------------------- /src/pages/EditProfile.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/EditProfile.jsx -------------------------------------------------------------------------------- /src/pages/Explore.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Explore.jsx -------------------------------------------------------------------------------- /src/pages/Followers.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Followers.jsx -------------------------------------------------------------------------------- /src/pages/Home.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Home.jsx -------------------------------------------------------------------------------- /src/pages/Login.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Login.jsx -------------------------------------------------------------------------------- /src/pages/Message.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Message.jsx -------------------------------------------------------------------------------- /src/pages/NotFound.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/NotFound.jsx -------------------------------------------------------------------------------- /src/pages/Notifications.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Notifications.jsx -------------------------------------------------------------------------------- /src/pages/OwnProfile.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/OwnProfile.jsx -------------------------------------------------------------------------------- /src/pages/PostId.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/PostId.jsx -------------------------------------------------------------------------------- /src/pages/Profile.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Profile.jsx -------------------------------------------------------------------------------- /src/pages/Signup.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/Signup.jsx -------------------------------------------------------------------------------- /src/pages/SignupPhoto.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/pages/SignupPhoto.jsx -------------------------------------------------------------------------------- /src/redux/features/chatSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/redux/features/chatSlice.js -------------------------------------------------------------------------------- /src/redux/features/commentSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/redux/features/commentSlice.js -------------------------------------------------------------------------------- /src/redux/features/userSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/redux/features/userSlice.js -------------------------------------------------------------------------------- /src/redux/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/redux/store.js -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/reportWebVitals.js -------------------------------------------------------------------------------- /src/schema/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/schema/user.js -------------------------------------------------------------------------------- /src/services/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/services/api.js -------------------------------------------------------------------------------- /src/services/axiosAuth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/services/axiosAuth.js -------------------------------------------------------------------------------- /src/services/notification.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/services/notification.js -------------------------------------------------------------------------------- /src/services/socket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/services/socket.js -------------------------------------------------------------------------------- /src/services/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/services/token.js -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/setupTests.js -------------------------------------------------------------------------------- /src/utils/PrivateRoutes.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/src/utils/PrivateRoutes.jsx -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zidnirifan/socmed-app-frontend/HEAD/yarn.lock --------------------------------------------------------------------------------