From 08c1a54e51fd772f3f5bc40b78a4742c7a752e67 Mon Sep 17 00:00:00 2001 From: krut_ni Date: Tue, 15 Apr 2025 21:39:24 +0200 Subject: [PATCH] WIP: Included expressive dialog for automatic and manual installation --- .../Dialogs/PandocDialog.razor | 107 +++++++++++++----- 1 file changed, 81 insertions(+), 26 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/PandocDialog.razor b/app/MindWork AI Studio/Dialogs/PandocDialog.razor index 5f2a6d24..a420667c 100644 --- a/app/MindWork AI Studio/Dialogs/PandocDialog.razor +++ b/app/MindWork AI Studio/Dialogs/PandocDialog.razor @@ -1,38 +1,93 @@ - +@using ReverseMarkdown.Converters + Install Pandoc @if (this.showInstallPage) { - -

Installationpage

-
+
+ + AI Studio relies on the third-party app Pandoc to process and retrieve data from local + Office files (ex. Word) and later other text formats like LaTeX. + + + Unfortunately Pandocs GPL license is not compatible with AI Studios licences. + Therefore you have to accept Pandocs GPL license before we can download and install Pandoc automatically for you (recommended). + However you can download it yourself manually with the instructions below. + +
+ + + + Pandoc is distributed under the GNU General Public License v2 (GPL). + By clicking "Accept GPL and Install", you agree to the terms of the GPL license
and Pandoc will be installed automatically for you.
+
+ Accept GPL and Install +
+ + + If you prefer to install Pandoc yourself, please follow these steps: + + + + Accept the terms of the GPL license and download the latest archive with the button below. + + + Extract the archive to a folder of your choice. + (ex. C:\Users\%USERNAME%\pandoc) + + + Open the folder and copy the path to the pandoc.exe file into you clipboard. + (ex. C:\Users\%USERNAME%\pandoc\pandoc-3.6.4) + + + Add the copied path to your systems environment variables and check the installation by typing + pandoc --version into your command line interface. + + + + Pandoc is distributed under the GNU General Public License v2 (GPL). + By clicking "Accept GPL and Download", you agree to the terms of the GPL license. + + Accept GPL and Download + +
+
+ Reject GPL licence +
} else { - - @if (showSkeleton) - { - - - } - else if (isPandocAvailable) - { - - - Pandoc ist auf Ihrem System verfügbar - - } - else - { - - - Pandoc ist auf Ihrem System nicht verfügbar - - Proceed to installation - } - + + @if (showSkeleton) + { + + + } + else if (isPandocAvailable) + { + + + Pandoc ist auf Ihrem System verfügbar + + } + else + { + + + Pandoc ist auf Ihrem System nicht verfügbar + + Proceed + to installation + + } + }