removed debugging from about page

This commit is contained in:
nilsk 2025-05-27 16:06:32 +02:00
parent b3108fd5a9
commit 647bc0075d
2 changed files with 0 additions and 69 deletions

View File

@ -3,36 +3,6 @@
<div class="inner-scrolling-context"> <div class="inner-scrolling-context">
<MudText Typo="Typo.h3" Class="mb-2">About MindWork AI Studio</MudText> <MudText Typo="Typo.h3" Class="mb-2">About MindWork AI Studio</MudText>
<!-- TODO: DELETE FOR DEBUGGING ONLY -->
<MudItem>
<h3>Pandoc Verfügbarkeit prüfen</h3>
<MudButton OnClick="CheckPandoc" Disabled="@isChecking">
@(isChecking ? "Überprüfe..." : "Pandoc überprüfen")
</MudButton>
<p>@statusMessage</p>
</MudItem>
<MudItem Class="my-9">
<h3>Pandoc Installation</h3>
<MudButton OnClick="InstallPandoc">
Install Pandoc
</MudButton>
</MudItem>
<MudItem Class="my-9">
<h3>Latest Version</h3>
<MudButton OnClick="LatestVersion">
Version
</MudButton>
</MudItem>
<MudItem Class="my-9">
<h3>Pandoc dialog</h3>
<MudButton OnClick="OpenDialog">
Open dialog
</MudButton>
</MudItem>
<InnerScrolling> <InnerScrolling>
<MudExpansionPanels Class="mb-3" MultiExpansion="@false"> <MudExpansionPanels Class="mb-3" MultiExpansion="@false">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Layers" HeaderText="Versions" IsExpanded="@true"> <ExpansionPanel HeaderIcon="@Icons.Material.Filled.Layers" HeaderText="Versions" IsExpanded="@true">

View File

@ -18,9 +18,6 @@ public partial class About : ComponentBase
[Inject] [Inject]
private ISnackbar Snackbar { get; init; } = null!; private ISnackbar Snackbar { get; init; } = null!;
[Inject]
private IDialogService DialogService { get; init; } = null!;
private static readonly Assembly ASSEMBLY = Assembly.GetExecutingAssembly(); private static readonly Assembly ASSEMBLY = Assembly.GetExecutingAssembly();
private static readonly MetaDataAttribute META_DATA = ASSEMBLY.GetCustomAttribute<MetaDataAttribute>()!; private static readonly MetaDataAttribute META_DATA = ASSEMBLY.GetCustomAttribute<MetaDataAttribute>()!;
@ -177,40 +174,4 @@ public partial class About : ComponentBase
{ {
await this.MessageBus.SendMessage<bool>(this, Event.USER_SEARCH_FOR_UPDATE); await this.MessageBus.SendMessage<bool>(this, Event.USER_SEARCH_FOR_UPDATE);
} }
// TODO: DELETE FOR DEBUGGING ONLY
private bool isChecking;
private string statusMessage = string.Empty;
private async Task CheckPandoc()
{
this.isChecking = true;
this.statusMessage = "Überprüfe die Verfügbarkeit von Pandoc...";
this.StateHasChanged(); // Aktualisiere die UI
var isPandocAvailable = await Pandoc.CheckAvailabilityAsync();
if (isPandocAvailable)
{
this.statusMessage = "Pandoc ist verfügbar und erfüllt die Mindestversion.";
}
else
{
this.statusMessage = "Pandoc ist nicht verfügbar oder die installierte Version ist zu niedrig.";
}
this.isChecking = false;
this.StateHasChanged(); // Aktualisiere die UI
}
private async Task InstallPandoc()
{
var installPandoc = Pandoc.InstallAsync(this.RustService);
}
private async Task LatestVersion()
{
await Pandoc.FetchLatestVersionAsync();
}
private async Task OpenDialog()
{
await this.DialogService.ShowAsync<PandocDialog>("install dialog");
}
} }