{"id":23162747,"url":"https://github.com/codecapital/codecapital.aspnetcore","last_synced_at":"2025-06-15T12:39:23.241Z","repository":{"id":47020729,"uuid":"341702408","full_name":"codecapital/CodeCapital.AspNetCore","owner":"codecapital","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-16T02:10:39.000Z","size":184,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T23:16:49.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecapital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-23T22:01:50.000Z","updated_at":"2024-11-16T00:48:36.000Z","dependencies_parsed_at":"2024-01-06T21:23:30.343Z","dependency_job_id":"fa9239bb-9506-4407-b6db-fb22f3dc540c","html_url":"https://github.com/codecapital/CodeCapital.AspNetCore","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.4893617021276596,"last_synced_commit":"82d39db37b501af4e8c7fbc4b9c0c186b87a67cd"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/codecapital/CodeCapital.AspNetCore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecapital%2FCodeCapital.AspNetCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecapital%2FCodeCapital.AspNetCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecapital%2FCodeCapital.AspNetCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecapital%2FCodeCapital.AspNetCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecapital","download_url":"https://codeload.github.com/codecapital/CodeCapital.AspNetCore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecapital%2FCodeCapital.AspNetCore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259977667,"owners_count":22941115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T00:13:20.341Z","updated_at":"2025-06-15T12:39:23.219Z","avatar_url":"https://github.com/codecapital.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeCapital.AspNetCore\n\nASP.NET Core libraries.\n\n[![.NET](https://github.com/codecapital/CodeCapital.AspNetCore/actions/workflows/dotnet.yml/badge.svg)](https://github.com/codecapital/CodeCapital.AspNetCore/actions/workflows/dotnet.yml)\n\nCodeCapital.AspNetCore.Mvc.TagHelpers\n\n[![NuGet](https://img.shields.io/nuget/v/CodeCapital.AspNetCore.Mvc.TagHelpers.svg?style=flat-square\u0026label=nuget)](https://www.nuget.org/packages/CodeCapital.AspNetCore.Mvc.TagHelpers)\n\n- Json Flattener\n- Tag Helpers\n  - asp-class\n  - asp-if \\[negate\\]\n- Razor to String Renderer\n- Configuration in ASP.NET Core\n  - AddRemoteJsonFile(url)\n- Services\n  - MailGun\n  - ReCaptcha v2\n- RazorLibrary\n  - Calendar (blazor)\n  - Table (blazor, with column sorting)\n\n\n## Json Flattener\n*Namespace: CodeCapital.System.Text.Json*\n\nThis library flattens json string into\n```List\u003cdynamic\u003e```.\n\n```c#\nvar flattener = new JsonFlattener();\nvar list = flattener.Flatten(json);\n```\n\n\n## ASP.NET Core TagHelpers\n*Namespace: CodeCapital.AspNetCore.Mvc.TagHelpers*\n\n### Conditional Add Class (asp-class-something=\"\")\n\nASP.NET Core\n```aspnet\n    \u003cp asp-class-text-success=\"@Model.IsSuccess\"\u003eHello, World!\u003c/p\u003e\n```\nHTML (If a condition is true, a class attribute is added to html tag)\n```html\n    \u003cp class=\"text-success\"\u003eHello, World!\u003c/p\u003e\n```\n\n### If Condition (asp-if=\"\", \u0026lt;asp-if\u0026gt;\u0026lt;/asp-if\u0026gt; )\n\nASP.NET Core\n```aspnet\n\u003casp-if condition=\"@Model.IsSuccess\"\u003e\n    \u003cp\u003eHello, World!\u003c/p\u003e\n\u003casp-if\u003e\n\n\u003cp asp-if=\"@Model.IsSucces\"\u003eHello, World!\u003c/p\u003e\n```\nHTML (If a condition is true)\n```html\n    \u003cp\u003eHello, World!\u003c/p\u003e\n```\n#### Negate\nASP.NET Core\n```aspnet\n\u003casp-if condition=\"@Model.IsSuccess\" negate\u003e\n    \u003cp\u003eHello, World!\u003c/p\u003e\n\u003casp-if\u003e\n\n\u003cp asp-if=\"@Model.IsSucces\" negate\u003eHello, World!\u003c/p\u003e\n```\nHTML (If a condition is true, nothing renders.)\n```html\n```\n\n## References\nhttps://stackoverflow.com/questions/58512542/read-a-json-file-and-generate-string-keys-with-values-in-a-dictionary-like-objec\nhttps://stackoverflow.com/questions/7394551/c-sharp-flattening-json-structure\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecapital%2Fcodecapital.aspnetcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecapital%2Fcodecapital.aspnetcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecapital%2Fcodecapital.aspnetcore/lists"}