diff --git a/app/MindWork AI Studio/Pages/About.razor b/app/MindWork AI Studio/Pages/About.razor index 3bec93f9..32c8b5df 100644 --- a/app/MindWork AI Studio/Pages/About.razor +++ b/app/MindWork AI Studio/Pages/About.razor @@ -3,36 +3,6 @@
About MindWork AI Studio - - -

Pandoc Verfügbarkeit prüfen

- - @(isChecking ? "Überprüfe..." : "Pandoc überprüfen") - -

@statusMessage

-
- - -

Pandoc Installation

- - Install Pandoc - -
- - -

Latest Version

- - Version - -
- - -

Pandoc dialog

- - Open dialog - -
- diff --git a/app/MindWork AI Studio/Pages/About.razor.cs b/app/MindWork AI Studio/Pages/About.razor.cs index eed9d2ab..e2f277de 100644 --- a/app/MindWork AI Studio/Pages/About.razor.cs +++ b/app/MindWork AI Studio/Pages/About.razor.cs @@ -18,9 +18,6 @@ public partial class About : ComponentBase [Inject] private ISnackbar Snackbar { get; init; } = null!; - [Inject] - private IDialogService DialogService { get; init; } = null!; - private static readonly Assembly ASSEMBLY = Assembly.GetExecutingAssembly(); private static readonly MetaDataAttribute META_DATA = ASSEMBLY.GetCustomAttribute()!; @@ -177,40 +174,4 @@ public partial class About : ComponentBase { await this.MessageBus.SendMessage(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("install dialog"); - } }