Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded sample project to .NET 8 #371

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

arya2004
Copy link
Contributor

@arya2004 arya2004 commented Oct 4, 2024

Brief Summary of Changes

  • Updated the project to be compatible with .NET 8, resolving outdated dependencies .
  • Updated the documentation to be suited for .NET 8.

What does this PR address?

Are tests included?

  • Yes
  • No

Reviewer, please note:

  • This PR focuses solely on updating the project to .NET 8. No new features are included yet.
  • Additional features (like the image gallery and Cloudinary integration) will be added in subsequently.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I ran the full test suite before pushing the changes and all the tests pass.

@cld-sec
Copy link
Contributor

cld-sec commented Oct 4, 2024

🎉 Snyk hasn't found any issues so far.

security/snyk check is completed. No issues were found. (View Details)

license/snyk check is completed. No issues were found. (View Details)

@arya2004
Copy link
Contributor Author

arya2004 commented Oct 4, 2024

I have updated the project to .NET 8, addressing the dependency update requirement. Below are the updates and next steps for my planned contributions:

  • Updated to .NET 8:

  • Basic Gallery with Upload, View, and Editing via Cloudinary:

    • I am planning to implement a basic image gallery where users can:
      • Upload images to Cloudinary.
      • View images in a gallery interface.
      • Edit images (resize, crop, etc.) using Cloudinary's transformation features.
    • The UI will follow the Blazor Quick Start project design.
  • Advanced Use Cases:

    • I’ll add advanced examples showcasing:
      • Cloudinary's image optimization and transformations.
      • Additional media management features (videos, etc.), if relevant.
  • Improved Documentation

Let me know if this plan aligns with the direction of the project. Once approved, I’ll proceed with implementing these features.

@arya2004 arya2004 changed the title upgraded to .NET 8 upgraded sample project to .NET 8 Oct 4, 2024
@const-cloudinary
Copy link
Contributor

@arya2004 The plan sounds great! Feel free to proceed!

Copy link
Contributor

@const-cloudinary const-cloudinary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arya2004 The project looks awesome!

There are some broken links on top right corner, not critical.

Please remove your credentials from:
https://github.com/cloudinary/CloudinaryDotNet/pull/371/files#diff-9d2b1915978abac450213acc4fc09a2b268e3ed4db2bff3126f89a3507df2c4a

And I strongly suggest you to regenerate your access key in admin console, since this one is obviously leaked.

Feel free to proceed with your plan (like adding a better image gallery, or maybe adding support for deleting files ( I uploaded some of my images to your cloud :) )

<pre><code class="language-csharp">
var uploadParams = new ImageUploadParams()
{
File = new FileDescription('filename.jpg")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
File = new FileDescription('filename.jpg")
File = new FileDescription("filename.jpg")

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PhotoAlbum.Data;
using UploadResult = PhotoAlbum.Data.UploadResult;
using Markdig;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
using Markdig;

"CloudName": "",
"ApiKey": "",
"ApiSecret": "",
"CloudName": "dtxqasgig",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"CloudName": "dtxqasgig",
"CloudName": "",

"ApiKey": "",
"ApiSecret": "",
"CloudName": "dtxqasgig",
"ApiKey": "533752815973466",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ApiKey": "533752815973466",
"ApiKey": "",

"ApiSecret": "",
"CloudName": "dtxqasgig",
"ApiKey": "533752815973466",
"ApiSecret": "LkhGjqjO8zQkjbzc2hL1jFDc628",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ApiSecret": "LkhGjqjO8zQkjbzc2hL1jFDc628",
"ApiSecret": "",

@arya2004
Copy link
Contributor Author

apologies for the mistake ;(

will prioritize minor refactoring....

@arya2004
Copy link
Contributor Author

Hello, @const-cloudinary . I've made the changes you told. Please review the new PR

@const-cloudinary const-cloudinary merged commit ff77c96 into cloudinary:master Oct 31, 2024
5 checks passed
@const-cloudinary
Copy link
Contributor

@arya2004 it looks great! Thank you very much for contribution!

@colbyfayock
Copy link

@arya2004 thanks for your contribution. this PR is eligible for free Cloudinary Hackatoberfest swag. Please send me an email at [email protected] with your name, GitHub username, and a link to the PR where I'll send further instructions.

Happy Hacktoberfest!

@arya2004
Copy link
Contributor Author

@colbyfayock I've sent the email with my details. Looking forward to hearing back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants