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) @if (this.showInstallPage)
{ {
<div class="mb-4"> <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 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. Office files (ex. <strong>Word</strong>) and later other text formats like LaTeX.
</MudJustifiedText> </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 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 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. automatically for you <strong>(recommended)</strong>. However you can download it yourself manually with the instructions below.
@ -29,28 +29,27 @@
</ExpansionPanel> </ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AutoFixHigh" HeaderText="Automatic installation" IsExpanded="true"> <ExpansionPanel HeaderIcon="@Icons.Material.Filled.AutoFixHigh" HeaderText="Automatic installation" IsExpanded="true">
<MudText Typo="Typo.caption"> <MudJustifiedText Typo="Typo.body1">
Pandoc is distributed under the 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.
<MudLink Typo="Typo.caption" Href="https://github.com/jgm/pandoc/blob/main/COPYING.md" Target="_blank">GNU General Public License v2 (GPL)</MudLink>. </MudJustifiedText>
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>
<MudButton OnClick="InstallPandocAsync" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.InstallDesktop"> <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 Accept GPL and install for free
</MudButton> </MudButton>
</ExpansionPanel> </ExpansionPanel>
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Build" HeaderText="Manual installation" ExpandedChanged="this.WhenExpandingManualInstallation"> <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. 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"> <MudExpansionPanels Outlined="false" Elevation="0">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.AppRegistration" HeaderText="Download installer" IsExpanded="true"> <ExpansionPanel HeaderIcon="@Icons.Material.Filled.AppRegistration" HeaderText="Download installer" IsExpanded="true">
<MudList T="string"> <MudList T="string">
<MudListItem T="string" Class="mb-2"> <MudListItem T="string" Class="mb-2">
Accept the terms of the GPL license and download the latest installer with the download button below. <MudJustifiedText Typo="Typo.body1">
Eventually you need to allow the download of the installer in the download window. 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"> <CodeTabs @bind-SelectedIndex="this.selectedInstallerIndex">
<CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock> <CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock>
<CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock> <CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock>
@ -58,14 +57,15 @@
</CodeTabs> </CodeTabs>
</MudListItem> </MudListItem>
<MudListItem T="string"> <MudListItem T="string">
Execute the installer and follow the instructions. <MudJustifiedText Typo="Typo.body1">
Execute the installer and follow the instructions.
</MudJustifiedText>
</MudListItem> </MudListItem>
</MudList> </MudList>
<MudText Class="mb-3" Typo="Typo.caption"> <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>. 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.
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/> </MudJustifiedText>
</MudText>
<MudButton Href="@this.downloadUrlInstaller" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading"> <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 Accept GPL and download installer
@ -75,11 +75,15 @@
<ExpansionPanel HeaderIcon="@Icons.Material.Outlined.Archive" HeaderText="Download archive"> <ExpansionPanel HeaderIcon="@Icons.Material.Outlined.Archive" HeaderText="Download archive">
<MudList T="string"> <MudList T="string">
<MudListItem T="string" Class="mb-2"> <MudListItem T="string" Class="mb-2">
Accept the terms of the GPL license and download the latest archive with the download button below. <MudJustifiedText Typo="Typo.body1">
Accept the terms of the GPL license and download the latest archive with the download button below.
</MudJustifiedText>
</MudListItem> </MudListItem>
<MudListItem T="string" Class="mb-2"> <MudListItem T="string" Class="mb-2">
Extract the archive to a folder of your choice, e.g.: <MudJustifiedText Typo="Typo.body1">
Extract the archive to a folder of your choice, e.g.:
</MudJustifiedText>
<CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex"> <CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc</CodeBlock> <CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc</CodeBlock>
<CodeBlock Title="macOS">~/pandoc</CodeBlock> <CodeBlock Title="macOS">~/pandoc</CodeBlock>
@ -88,8 +92,9 @@
</MudListItem> </MudListItem>
<MudListItem T="string" Class="mb-2"> <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 <MudJustifiedText Typo="Typo.body1">
clipboard: 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"> <CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc\pandoc-@(PANDOC_VERSION)</CodeBlock> <CodeBlock Title="Windows">C:\Users\%USERNAME%\pandoc\pandoc-@(PANDOC_VERSION)</CodeBlock>
<CodeBlock Title="macOS">~/pandoc/pandoc-@(PANDOC_VERSION)</CodeBlock> <CodeBlock Title="macOS">~/pandoc/pandoc-@(PANDOC_VERSION)</CodeBlock>
@ -98,8 +103,9 @@
</MudListItem> </MudListItem>
<MudListItem T="string"> <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 <MudJustifiedText Typo="Typo.body1">
by typing <CodeBlock IsInline="@true">pandoc --version</CodeBlock> into your terminal: 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"> <CodeTabs @bind-SelectedIndex="this.selectedArchiveIndex">
<CodeBlock Title="Windows">> pandoc.exe --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock> <CodeBlock Title="Windows">> pandoc.exe --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
<CodeBlock Title="macOS">> pandoc --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock> <CodeBlock Title="macOS">> pandoc --version<br/>> pandoc @(PANDOC_VERSION)</CodeBlock>
@ -109,8 +115,9 @@
</MudList> </MudList>
<MudText Class="mb-3" Typo="Typo.caption"> <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>. <MudJustifiedText Typo="Typo.body1">
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/> 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> </MudText>
<MudButton Href="@this.downloadUrlArchive" Target="_blank" Color="Color.Primary" Class="mt-4" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.Downloading"> <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" <MudIcon Class="mb-2" Style="width: 2.5em; height: 2.5em;" Icon="@Icons.Material.Filled.Check"
Color="Color.Success"/> Color="Color.Success"/>
<MudText Typo="Typo.subtitle1" Align="Align.Center"> <MudJustifiedText Typo="Typo.body1" Align="Align.Center">
Pandoc ist auf Ihrem System verfügbar Pandoc ist auf Ihrem System verfügbar
</MudText> </MudJustifiedText>
} }
else else
{ {
<MudIcon Class="mb-2" Style="width: 3.5em; height: 3.5em;" Icon="@Icons.Material.Filled.Error" Color="Color.Error"/> <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 Pandoc ist auf Ihrem System nicht verfügbar
</MudText> </MudJustifiedText>
} }
</MudItem> </MudItem>
} }