mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 20:32:56 +00:00
Formatting
This commit is contained in:
parent
8455450b51
commit
436852e354
@ -16,6 +16,7 @@
|
||||
automatically for you <strong>(recommended)</strong>. However you can download it yourself manually with the instructions below.
|
||||
</MudJustifiedText>
|
||||
</div>
|
||||
|
||||
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
|
||||
<ExpansionPanel HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.OnExpandedChanged">
|
||||
@if (this.isLoading)
|
||||
|
@ -35,6 +35,7 @@ public partial class PandocDialog : ComponentBase
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
|
||||
this.showSkeleton = true;
|
||||
await this.CheckPandocAvailabilityAsync();
|
||||
PANDOC_VERSION = await Pandoc.FetchLatestVersionAsync();
|
||||
@ -49,6 +50,7 @@ public partial class PandocDialog : ComponentBase
|
||||
var pandocInstallation = await Pandoc.CheckAvailabilityAsync(this.RustService);
|
||||
this.isPandocAvailable = pandocInstallation.IsAvailable;
|
||||
this.showSkeleton = false;
|
||||
|
||||
await this.InvokeAsync(this.StateHasChanged);
|
||||
}
|
||||
|
||||
@ -56,6 +58,7 @@ public partial class PandocDialog : ComponentBase
|
||||
{
|
||||
await Pandoc.InstallAsync(this.RustService);
|
||||
this.MudDialog.Close(DialogResult.Ok(true));
|
||||
|
||||
await this.DialogService.ShowAsync<PandocDialog>("pandoc dialog");
|
||||
}
|
||||
|
||||
@ -65,6 +68,7 @@ public partial class PandocDialog : ComponentBase
|
||||
{
|
||||
var uri = await Pandoc.GenerateInstallerUriAsync();
|
||||
var filename = this.FilenameFromUri(uri);
|
||||
|
||||
await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename);
|
||||
}
|
||||
|
||||
@ -72,6 +76,7 @@ public partial class PandocDialog : ComponentBase
|
||||
{
|
||||
var uri = await Pandoc.GenerateArchiveUriAsync();
|
||||
var filename = this.FilenameFromUri(uri);
|
||||
|
||||
await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user