Removing all the meta agile and git stuff
This commit is contained in:
@@ -1,86 +0,0 @@
|
||||
@inject HttpClient httpClient
|
||||
|
||||
@if (content == null)
|
||||
{
|
||||
<LoadingComponent/>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="doc">
|
||||
<div class="docHeader">
|
||||
<div class="docTitle">@docFrontMatter.Title</div>
|
||||
<div class="docDates">
|
||||
<div class="docDateUpdated"><b>Updated</b>: @docFrontMatter.UpdatedDate.ToString("MM/dd/yyyy")</div>
|
||||
<div class="docDateCreated"><b>Created</b>: @docFrontMatter.CreatedDate.ToString("MM/dd/yyyy")</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="docContent">@((MarkupString)Markdown.ToHtml(content, Pipeline))</div>
|
||||
<div class="docFooter">
|
||||
<LinkButtonComponent Href="@GitUrl">
|
||||
Edit on GitHub <i class="fa-brands fa-github" style="font-size: 24px; margin-left: 5px;"></i>
|
||||
</LinkButtonComponent>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<style>
|
||||
.docTitle {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.docHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.docDates {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.docFooter {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
th {
|
||||
padding: 8px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 8px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public DocContentModel DocContentModel { get; set; } = default!;
|
||||
|
||||
DocFrontMatterModel docFrontMatter = null!;
|
||||
private string? content;
|
||||
|
||||
private string Filepath => $"content/docs/{DocContentModel.Content}.md";
|
||||
private string GitUrl => $"{Project.GitResourcesUrl}/{Filepath}";
|
||||
private MarkdownPipeline Pipeline => MarkdownFiles.Pipeline;
|
||||
|
||||
private async Task<DocFrontMatterModel> LoadContent()
|
||||
{
|
||||
content = await MarkdownFiles.LoadMarkdown(httpClient, Filepath);
|
||||
|
||||
return docFrontMatter =
|
||||
await MarkdownFiles.LoadFrontMatter<DocFrontMatterModel>(httpClient, Filepath);
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
await LoadContent();
|
||||
}
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await LoadContent();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -58,10 +58,7 @@ builder.Services.AddScoped<IEntityDisplayService, EntityDisplayService>();
|
||||
builder.Services.AddScoped<IEntityDialogService, EntityDialogService>();
|
||||
builder.Services.AddScoped<IToastService, ToastService>();
|
||||
builder.Services.AddScoped<IWebsiteService, WebsiteService>();
|
||||
builder.Services.AddScoped<IAgileService, AgileService>();
|
||||
builder.Services.AddScoped<IGitService, GitService>();
|
||||
builder.Services.AddScoped<INoteService, NoteService>();
|
||||
builder.Services.AddScoped<IDocumentationService, DocumentationService>();
|
||||
builder.Services.AddScoped<ISearchService, SearchService>();
|
||||
builder.Services.AddScoped<IVariableService, VariableService>();
|
||||
builder.Services.AddScoped<IStorageService, StorageService>();
|
||||
@@ -82,28 +79,3 @@ builder.Services.AddMudServices();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
|
||||
|
||||
/**
|
||||
Ef Commands
|
||||
|
||||
|
||||
```code
|
||||
# Create
|
||||
dotnet ef migrations add InitialCreate
|
||||
```
|
||||
|
||||
```code
|
||||
# Update
|
||||
dotnet ef database update
|
||||
```
|
||||
|
||||
```code
|
||||
# Migrate
|
||||
dotnet ef migrations add AddBlogCreatedTimestamp
|
||||
```
|
||||
|
||||
```code
|
||||
# Update
|
||||
dotnet ef database update
|
||||
```
|
||||
*/
|
||||
+1
-5
@@ -31,13 +31,11 @@
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using Microsoft.JSInterop
|
||||
@using Model.Chart
|
||||
@using Model.Doc
|
||||
@using Model.Economy
|
||||
@using Model.Entity
|
||||
@using Model.Entity.Data
|
||||
@using Model.Entity.Parts
|
||||
@using Model.Feedback
|
||||
@using Model.Git
|
||||
@using Model.Hotkeys
|
||||
@using Model.MemoryTester
|
||||
@using Model.Notes
|
||||
@@ -45,8 +43,6 @@
|
||||
@using Model.RoadMap.Enums
|
||||
@using Model.Types
|
||||
@using Model.Website
|
||||
@using Model.Work.Tasks
|
||||
@using Model.Work.Tasks.Enums
|
||||
@using Services
|
||||
@using Services.Immortal
|
||||
@using System.Globalization
|
||||
@@ -56,4 +52,4 @@
|
||||
@using Blazor.Analytics.Components
|
||||
@using Blazor.Analytics.Abstractions
|
||||
@using MudBlazor
|
||||
@using MudBlazor.Services
|
||||
@using MudBlazor.Services
|
||||
|
||||
Reference in New Issue
Block a user