Formatting

This commit is contained in:
Thorsten Sommer 2025-05-30 17:09:32 +02:00
parent 393dd7ec6a
commit d165cbb038
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -17,21 +17,21 @@
Unfortunately Pandoc's GPL license is not compatible with AI Studios licences, nonetheless software under GPL is generally free to use and free of charge as well. Therefore you have to accept Pandoc's GPL license before we can download and install Pandoc for free automatically for you (recommended). However you can download it yourself manually with the instructions below.
</MudJustifiedText>
</div>
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Verified" HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.WhenExpandingLicence">
@if (this.isLoadingLicence)
{
<MudSkeleton />
<MudSkeleton Animation="Animation.Wave" />
<MudSkeleton />
<MudSkeleton/>
<MudSkeleton Animation="Animation.Wave"/>
<MudSkeleton/>
}
else if (!string.IsNullOrWhiteSpace(this.licenseText))
{
<MudMarkdown Value="@this.licenseText" OverrideHeaderTypo="@Markdown.OverrideHeaderTypo"/>
}
</ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AutoFixHigh" HeaderText="Automatic installation" IsExpanded="true">
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and Install", you agree to the terms of the GPL license and Pandoc will be installed automatically for you. Software under GPL is free of charge and free to use.
@ -40,12 +40,12 @@
Accept GPL and install for free
</MudButton>
</ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="Manual installation" ExpandedChanged="this.WhenExpandingManualInstallation">
<MudJustifiedText Typo="Typo.body1" Class="mb-2">
If you prefer to install Pandoc yourself, please follow one of these two guides. Installers are only available for Windows and macOS.
</MudJustifiedText>
<MudExpansionPanels Outlined="false" Elevation="0">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AppRegistration" HeaderText="Download installer" IsExpanded="true">
<MudList T="string">
@ -66,16 +66,16 @@
</MudJustifiedText>
</MudListItem>
</MudList>
<MudJustifiedText Class="mb-3" Typo="Typo.body1">
Pandoc is distributed under the <MudLink Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and download installer", you agree to the terms of the GPL license. Software under GPL is free of charge and free to use.
</MudJustifiedText>
<MudButton Href="@this.downloadUrlInstaller" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Medium" StartIcon="@Icons.Material.Filled.Downloading">
Accept GPL and download installer
</MudButton>
</ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Outlined.Archive" HeaderText="Download archive">
<MudList T="string">
<MudListItem T="string" Class="mb-2">
@ -83,7 +83,7 @@
Accept the terms of the GPL license and download the latest archive with the download button below.
</MudJustifiedText>
</MudListItem>
<MudListItem T="string" Class="mb-2">
<MudJustifiedText Typo="Typo.body1">
Extract the archive to a folder of your choice, e.g.:
@ -94,7 +94,7 @@
<CodeBlock Title="Linux">/usr/local/bin/pandoc</CodeBlock>
</CodeTabs>
</MudListItem>
<MudListItem T="string" Class="mb-2">
<MudJustifiedText Typo="Typo.body1">
Open the folder and copy the full path to the <CodeBlock IsInline="true">@PandocProcessBuilder.PandocExecutableName</CodeBlock> file into your clipboard:
@ -105,7 +105,7 @@
<CodeBlock Title="Linux">/usr/local/bin/pandoc/pandoc-@(LATEST_PANDOC_VERSION)</CodeBlock>
</CodeTabs>
</MudListItem>
<MudListItem T="string">
<MudJustifiedText Typo="Typo.body1">
Add the copied path to your system's or user's <CodeBlock IsInline="true">PATH</CodeBlock> environment variable, restart your terminal, and check the installation by typing <CodeBlock IsInline="@true">pandoc --version</CodeBlock> into your terminal:
@ -117,13 +117,13 @@
</CodeTabs>
</MudListItem>
</MudList>
<MudText Class="mb-3" Typo="Typo.caption">
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. By clicking "Accept GPL and archive", you agree to the terms of the GPL license. Software under GPL is free of charge and free to use.
</MudJustifiedText>
</MudText>
<MudButton Href="@this.downloadUrlArchive" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Medium" StartIcon="@Icons.Material.Filled.Downloading">
Accept GPL and download archive
</MudButton>
@ -138,12 +138,12 @@
@if (this.pandocInstallation == default)
{
<MudStack Row="true" AlignItems="AlignItems.Center">
<MudSkeleton SkeletonType="SkeletonType.Circle" Width="4em" Height="4em" Animation="Animation.Pulse" />
<MudSkeleton SkeletonType="SkeletonType.Circle" Width="4em" Height="4em" Animation="Animation.Pulse"/>
<MudStack Row="false" Class="d-flex flex-column flex-grow-1">
<MudSkeleton Width="90%" Animation="Animation.Wave"/>
<MudSkeleton Width="75%" Animation="Animation.Wave"/>
<MudSkeleton Width="55%" />
<MudSkeleton Width="12%" />
<MudSkeleton Width="55%"/>
<MudSkeleton Width="12%"/>
</MudStack>
</MudStack>
}
@ -193,7 +193,7 @@
else if (this.ShowInstallationPage)
{
<MudButton OnClick="@this.Cancel" Variant="Variant.Filled">
Cancel
Close
</MudButton>
<MudButton Color="Color.Warning" OnClick="@this.RejectLicense" Variant="Variant.Filled" Size="Size.Medium">
@ -203,7 +203,7 @@
else
{
<MudButton OnClick="@this.Cancel" Variant="Variant.Filled">
Cancel
Close
</MudButton>
@if (this.pandocInstallation != default)