Dev Improvements (#4)

* Fixed dependency

* Updates to NeoDictionary

* Changes to NeoDictionary

* Started working on a Git implementation to integrate into Game Engines in the future

* Added commit functionality to the git library

* New changes

* Added select for NeoDictionary.cs

* Fixed issue with previous new method

* Added a Benchmarking Tool to be used mostly in game engines

* Added IndexOf to NeoDictionary.cs

* Added new method for BenchmarkUtility.cs

* added an instacedobject class

* Added a new shuffle method for lists

* fixed return type

* Added new Changelog generator

* Added new Game logic library to assist with game projects

* Added Web Project

* Added Nuget package configs

* Add workflow for publishing game library NuGet package

* Add README for OmegaLeo's Helper Library

* Updated Website to reflect all libraries

* Fixed missing library in Changelog

* Added Contributing and Code of Conduct
This commit was merged in pull request #4.
This commit is contained in:
2025-12-09 23:55:56 +00:00
committed by GitHub
parent 11333284e2
commit 6f1ef9c84f
113 changed files with 76553 additions and 6 deletions
@@ -0,0 +1,39 @@
@* File: `OmegaLeo.HelperLib.Web/Views/Home/Index.cshtml` *@
@model Dictionary<string, OmegaLeo.HelperLib.Web.Models.LibraryDocumentationViewModel>
@{
ViewData["Title"] = "OmegaLeo Helper Libraries";
}
<div class="container mt-5">
<div class="text-center mb-5">
<h1 class="display-4">OmegaLeo Helper Libraries</h1>
<p class="lead">Comprehensive C# libraries for game development and general utilities</p>
</div>
<div class="row g-4">
@foreach (var library in Model)
{
<div class="col-md-4">
<div class="card h-100 shadow-sm">
<div class="card-body">
<h5 class="card-title">@library.Value.LibraryName</h5>
<p class="card-text">@library.Value.Description</p>
<p class="text-muted small">
@library.Value.Documentation.Count classes documented
</p>
<a href="https://www.nuget.org/packages/@library.Value.NuGetPackageId"
target="_blank"
class="btn btn-sm btn-outline-primary">
<i class="bi bi-box-seam"></i> View on NuGet
</a>
</div>
<div class="card-footer">
<a asp-action="Library" asp-route-id="@library.Key" class="btn btn-primary w-100">
View Documentation
</a>
</div>
</div>
</div>
}
</div>
</div>
@@ -0,0 +1,126 @@
@* File: `OmegaLeo.HelperLib.Web/Views/Home/Library.cshtml` *@
@model OmegaLeo.HelperLib.Web.Models.LibraryDocumentationViewModel
@{
ViewData["Title"] = Model.LibraryName;
var groupedByNamespace = Model.Documentation.GroupBy(d => d.AssemblyName).OrderBy(g => g.Key);
}
<div class="container-fluid mt-4">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-action="Index">Home</a></li>
<li class="breadcrumb-item active">@Model.LibraryName</li>
</ol>
</nav>
<div class="row">
<div class="col-md-3">
<div class="sticky-top" style="top: 20px;">
<div class="card">
<div class="card-header">
<h5>@Model.LibraryName</h5>
</div>
<div class="card-body p-0">
<div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action" href="#overview">
<i class="bi bi-info-circle me-2"></i>Overview
</a>
@foreach (var ns in groupedByNamespace)
{
<a class="list-group-item list-group-item-action" href="#namespace-@ns.Key.Replace(".", "-")">
<i class="bi bi-folder me-2"></i>@ns.Key
</a>
}
<a class="list-group-item list-group-item-action" href="#changelog">
<i class="bi bi-clock-history me-2"></i>Changelog
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="overview" class="mb-5">
<h2>@Model.LibraryName</h2>
<p class="lead">@Model.Description</p>
<hr />
</div>
@foreach (var ns in groupedByNamespace)
{
<div id="namespace-@ns.Key.Replace(".", "-")" class="mb-5">
<h3>@ns.Key</h3>
@foreach (var classDoc in ns.OrderBy(d => d.ClassName))
{
<div class="card mb-3">
<div class="card-header">
<h4 class="mb-0">@classDoc.ClassName</h4>
<small class="text-muted">@classDoc.AssemblyName</small>
</div>
<div class="card-body">
@if (classDoc.Descriptions != null && classDoc.Descriptions.Any())
{
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Member</th>
<th>Documentation</th>
</tr>
</thead>
<tbody>
@foreach (var desc in classDoc.Descriptions)
{
<tr>
<td><code>@desc.Title</code></td>
<td>@Html.Raw(desc.Description)</td>
</tr>
}
</tbody>
</table>
</div>
}
else
{
<p class="text-muted">No documentation available.</p>
}
</div>
</div>
}
</div>
}
@if (!string.IsNullOrEmpty(Model.ChangelogMarkdown))
{
<div id="changelog" class="mb-5">
<h3>Changelog</h3>
<div class="card">
<div class="card-body">
@Html.Raw(Markdig.Markdown.ToHtml(Model.ChangelogMarkdown))
</div>
</div>
</div>
}
</div>
</div>
</div>
<style>
.sticky-top {
max-height: calc(100vh - 40px);
overflow-y: auto;
}
code {
background-color: #f8f9fa;
padding: 2px 6px;
border-radius: 3px;
font-size: 0.9em;
}
.table th {
background-color: #f8f9fa;
}
</style>
@@ -0,0 +1,6 @@
@{
ViewData["Title"] = "Privacy Policy";
}
<h1>@ViewData["Title"]</h1>
<p>Use this page to detail your site's privacy policy.</p>