Fixed text formatting

This commit is contained in:
Thorsten Sommer 2025-05-30 12:36:38 +02:00
parent d4c8142c0f
commit 18c7e93b3d
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -3,11 +3,11 @@
@if (this.showInstallPage)
{
<div class="mb-4">
<MudJustifiedText Class="mb-2">
<MudJustifiedText Typo="Typo.body1" Class="mb-2">
AI Studio relies on the <strong>free and open-sourced</strong> third-party app <strong>Pandoc</strong> to process and retrieve data from local
Office files (ex. <strong>Word</strong>) and later other text formats like LaTeX.
</MudJustifiedText>
<MudJustifiedText>
<MudJustifiedText Typo="Typo.body1">
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 <strong>(recommended)</strong>. However you can download it yourself manually with the instructions below.
@ -29,28 +29,27 @@
</ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AutoFixHigh" HeaderText="Automatic installation" IsExpanded="true">
<MudText Typo="Typo.caption">
Pandoc is distributed under the
<MudLink Typo="Typo.caption" 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 <br/> and Pandoc
will be installed automatically for you. Software under GPL is <strong>free of charge</strong> and free to use.<br/>
</MudText>
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" 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 <strong>free of charge</strong> and free to use.
</MudJustifiedText>
<MudButton OnClick="InstallPandocAsync" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.InstallDesktop">
Accept GPL and install for free
</MudButton>
</ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="Manual installation" ExpandedChanged="this.WhenExpandingManualInstallation">
<MudText Class="mb-2">
<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.
</MudText>
</MudJustifiedText>
<MudExpansionPanels Outlined="false" Elevation="0">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AppRegistration" HeaderText="Download installer" IsExpanded="true">
<MudList T="string">
<MudListItem T="string" Class="mb-2">
<MudJustifiedText Typo="Typo.body1">
Accept the terms of the GPL license and download the latest installer with the download button below.
Eventually you need to allow the download of the installer in the download window.
</MudJustifiedText>
<CodeTabs @bind-SelectedIndex="this.selectedInstallerIndex">
<CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock>
<CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock>
@ -58,14 +57,15 @@
</CodeTabs>
</MudListItem>
<MudListItem T="string">
<MudJustifiedText Typo="Typo.body1">
Execute the installer and follow the instructions.
</MudJustifiedText>
</MudListItem>
</MudList>
<MudText Class="mb-3" Typo="Typo.caption">
Pandoc is distributed under the <MudLink Typo="Typo.caption" 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 <strong>free of charge</strong> and free to use.<br/>
</MudText>
<MudJustifiedText Class="mb-3" Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" 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 <strong>free of charge</strong> and free to use.
</MudJustifiedText>
<MudButton Href="@this.downloadUrlInstaller" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading">
Accept GPL and download installer
@ -75,11 +75,15 @@
<ExpansionPanel HeaderIcon="@Icons.Material.Outlined.Archive" HeaderText="Download archive">
<MudList T="string">
<MudListItem T="string" Class="mb-2">
<MudJustifiedText Typo="Typo.body1">
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.:
</MudJustifiedText>
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc</CodeBlock>
<CodeBlock Title="macOS">~/pandoc</CodeBlock>
@ -88,8 +92,9 @@
</MudListItem>
<MudListItem T="string" Class="mb-2">
Open the folder and copy the full path to the <CodeBlock IsInline="true">@PandocProcessBuilder.PandocExecutableName</CodeBlock> file into your
clipboard:
<MudJustifiedText Typo="Typo.body1">
Open the folder and copy the full path to the <CodeBlock IsInline="true">@PandocProcessBuilder.PandocExecutableName</CodeBlock> file into your clipboard:
</MudJustifiedText>
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc\pandoc-@(PANDOC_VERSION)</CodeBlock>
<CodeBlock Title="macOS">~/pandoc/pandoc-@(PANDOC_VERSION)</CodeBlock>
@ -98,8 +103,9 @@
</MudListItem>
<MudListItem T="string">
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:
<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:
</MudJustifiedText>
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">> pandoc.exe --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
<CodeBlock Title="macOS">> pandoc --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
@ -109,8 +115,9 @@
</MudList>
<MudText Class="mb-3" Typo="Typo.caption">
Pandoc is distributed under the <MudLink Typo="Typo.caption" 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 <strong>free of charge</strong> and free to use.<br/>
<MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the <MudLink Typo="Typo.caption" 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 <strong>free of charge</strong> and free to use.
</MudJustifiedText>
</MudText>
<MudButton Href="@this.downloadUrlArchive" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading">
@ -135,16 +142,16 @@
{
<MudIcon Class="mb-2" Style="width: 2.5em; height: 2.5em;" Icon="@Icons.Material.Filled.Check"
Color="Color.Success"/>
<MudText Typo="Typo.subtitle1" Align="Align.Center">
<MudJustifiedText Typo="Typo.body1" Align="Align.Center">
Pandoc ist auf Ihrem System verfügbar
</MudText>
</MudJustifiedText>
}
else
{
<MudIcon Class="mb-2" Style="width: 3.5em; height: 3.5em;" Icon="@Icons.Material.Filled.Error" Color="Color.Error"/>
<MudText Class="mb-6" Typo="Typo.subtitle1" Align="Align.Center">
<MudJustifiedText Class="mb-6" Typo="Typo.body1" Align="Align.Center">
Pandoc ist auf Ihrem System nicht verfügbar
</MudText>
</MudJustifiedText>
}
</MudItem>
}