amupedia2021 / amupedia-web

Source code of the website.
https://www.amupedia.site/
MIT License
158 stars 175 forks source link

Merge the first commit please ignore the second one. Kindly add GSSOC24 label to it #656

Open ShoveetSingh opened 5 months ago

ShoveetSingh commented 5 months ago

Bugs fixed Dragged and dropped the login.js file into pages folder. Screenshot 2024-05-28 005026

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
project-amupedia ❌ Failed (Inspect) May 27, 2024 7:46pm
github-actions[bot] commented 5 months ago

Thank you, @ShoveetSingh, for creating this pull request and contributing to GitHub-ReadMe! 💗

Our review team will thoroughly review the pull request and will reach out to you soon! 😇 Please make sure you have marked all the completed tasks as done. ✅ We appreciate your patience and contribution! 😀

coderabbitai[bot] commented 5 months ago
Walkthrough ## Walkthrough The changes introduce a new workflow for deploying a Next.js site to GitHub Pages, update various components to improve data handling and UI, and enhance backend functionality with new API endpoints and database schema adjustments. The updates also include minor styling changes and version upgrades for dependencies. ## Changes | File/Directory | Summary | |---------------------------------------------|----------------------------------------------------------------------------------------------| | `.github/workflows/nextjs.yml` | Added a workflow for building and deploying a Next.js site to GitHub Pages. | | `components/Blogs/BlogCard.js` | Modified destructured props and image handling. | | `components/Opportunities/oppCard.js` | Changed destructuring from `props` to `data` and adjusted image and title rendering. | | `components/common/Header/Header.js` | Added an extra space in the code. | | `components/common/Navbar.js` | Imported `FaKey` and added a new list item with a key icon linking to `/Login`. | | `db/models/Blog.js` | Updated `blogSchema` to include `like` and `numberOfComments` fields. | | `db/models/BlogComment.js` | Introduced a Mongoose schema for blog comments. | | `package.json` | Updated dependency versions: `@fortawesome/react-fontawesome`, `@types/webidl-conversions`, `next`. | | `pages/Login.js` | Added a link to the Signup page. | | `pages/Signup.js` | Introduced a `Signup` component. | | `pages/_app.js` | Modified import statements and added script imports, meta tags, and components. | | `pages/adFix.js` | Added functionality to adjust body padding based on Google ad status. | | `pages/api/blogs/comments/fetchComments.js` | Implemented an API endpoint to fetch blog comments. | | `pages/api/blogs/comments/publishComment.js`| Implemented a POST endpoint for publishing blog comments. | | `pages/api/blogs/fetchBlogs.js` | Implemented an API endpoint to fetch blog data. | | `pages/api/blogs/publishBlog.js` | Added default values for `like` and `numberOfComments` fields. | | `pages/api/opportunities/publishOpportunity.js` | Reformatting and rearranging code without functional changes. | | `pages/blog/[blogId].js` | Refactored component structure and data handling, added comment submission functionality. | | `pages/blog/index.js` | Switched to fetching blog data from an API using `getStaticProps`. | | `styles/BlogDetail.module.css` | Adjusted styling properties and added new rules for comment section components. | ## Poem > In the land of code where changes flow, > Next.js sites to Pages now will go. > Blog cards shine with images bright, > Opportunities' data handled just right. > Comments and likes in schema we see, > New endpoints bring functionality. > With updates and tweaks, our project grows, > A rabbit's touch, in every line it shows.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to full the review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.