WebSorcery / cucoders

Development Site
https://main.cuchapter.tech/
Apache License 2.0
0 stars 4 forks source link

Added API functionality #18

Closed singhcoder694 closed 10 months ago

singhcoder694 commented 10 months ago

Added the functionality of API to render the data from cloudinary. Now as anyone posts data to cloudinary it will automatically will be visible to Resouces pages. Just some of the static things would be missing like image, title etc other things would be availabel there. #1

Summary by CodeRabbit

vercel[bot] commented 10 months ago

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

Name Status Preview Comments Updated (UTC)
cucoders ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2023 6:53am
coderabbitai[bot] commented 10 months ago
Walkthrough ## Walkthrough The overarching change involves integrating React's `useEffect` hook across various components for fetching data from servers. This modernizes state management with `useState` and `useEffect`, replacing static data handling with dynamic server calls. The `getArray` function is also commonly imported to merge data, and the `visible` state update logic is refined, enhancing the components' reactivity and data flow. ## Changes | File Pattern | Change Summary | |--------------|----------------| | `.../ai/index.js`, `.../language/index.js`, `.../mobile/index.js`, `.../web/index.js` | Added `useEffect`, imported `getArray`, updated `posts` with `useState` and server data, refined `visible` state logic. | | `.../algorithms/index.js`, `.../cloud-devops/index.js`, `.../cp/index.js`, `.../database/index.js`, `.../security/index.js`, `.../version_control/index.js` | Imported `useEffect`, `getArray` (where applicable), initialized `posts` with `useState`, fetched data from server, and used `staticData` (where applicable). | | `.../getResources.js` | Added functions for resource management, including URL-based resource finding and array construction. | ## Poem > 🐇 "In the land of code, where the bits do leap, > 🌟 A rabbit hopped in, making changes not meek. > 📈 With hooks in place, and states anew, > 🎉 Our data flows fresh, forever to renew."

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 with CodeRabbit Bot (`@coderabbitai`) - You can directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit-tests for this file.` - You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging `@coderabbitai` in a comment. Examples: - `@coderabbitai generate unit tests for this file.` - `@coderabbitai modularize this function.` - You can tag `@coderabbitai` in a PR comment and ask questions about the PR and the codebase. Examples: - `@coderabbitai generate interesting stats about this repository from git and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit tests.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.` - `@coderabbitai read the files in the src/scheduler package and generate 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. ### 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 a review. This is useful when automatic reviews are disabled for the repository. - `@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. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - 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/coderabbit-overrides.v2.json` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
ghost commented 10 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/WebSorcery/cucoders/18/2b889e31/79b840405339f436cae8358f107f9a51c88456a9.svg)](https://app.codesee.io/r/reviews?pr=18&src=https%3A%2F%2Fgithub.com%2FWebSorcery%2Fcucoders) #### Legend CodeSee Map legend
gitstream-cm[bot] commented 10 months ago

This PR is missing a Jira ticket reference in the title or description. Please add a Jira ticket reference to the title or description of this PR.

gitstream-cm[bot] commented 10 months ago

🥷 Code experts: ank1traj

ank1traj has most 🧠 knowledge in the files.

See details `src/components/resources/ai/index.js` Knowledge based on git-blame: `src/components/resources/algorithms/index.js` Knowledge based on git-blame: ank1traj: 20% `src/components/resources/cloud-devops/index.js` Knowledge based on git-blame: ank1traj: 18% `src/components/resources/cp/index.js` Knowledge based on git-blame: ank1traj: 19% `src/components/resources/database/index.js` Knowledge based on git-blame: ank1traj: 16% `src/components/resources/language/index.js` Knowledge based on git-blame: ank1traj: 25% `src/components/resources/mobile/index.js` Knowledge based on git-blame: ank1traj: 19% `src/components/resources/security/index.js` Knowledge based on git-blame: ank1traj: 17% `src/components/resources/version_control/index.js` Knowledge based on git-blame: ank1traj: 20% `src/components/resources/web/index.js` Knowledge based on git-blame: ank1traj: 18%

To learn more about /:\ gitStream - Visit our Docs

singhcoder694 commented 10 months ago

@ank1traj I will resolve all the conversation as I make the PR for #3

ank1traj commented 10 months ago

@ank1traj I will resolve all the conversation as I make the PR for #3

I didn't get it.

singhcoder694 commented 10 months ago

@ank1traj I will resolve all the conversation as I make the PR for #3

I didn't get it.

I am working on #3 issue and learning graphql api for GitHub so within 1 to 2 hr I will make PR for that issue. After that I will resolve these conversation and finally will make commit. I hope u understand since today is last day to make PR under CodePeak'23 after that as you will say I would make changes.

ank1traj commented 10 months ago

Okay, so merging this PR. Just have reference of all the things required in this PR.