mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 18:32:12 +00:00
adding html export via pandoc like odt before
This commit is contained in:
parent
c99be93bc5
commit
9622784e3c
@ -71,6 +71,11 @@
|
||||
@T("OpenDocument Text (.odt)")
|
||||
</MudTooltip>
|
||||
</MudMenuItem>
|
||||
<MudMenuItem OnClick="@(() => this.ExportDocument(FileExportFormat.HTML))" Icon="@Icons.Custom.FileFormats.FileCode">
|
||||
<MudTooltip Text="@T("Webpage")">
|
||||
@T("Hypertext (.html)")
|
||||
</MudTooltip>
|
||||
</MudMenuItem>
|
||||
</MudMenu>
|
||||
</MudTooltip>
|
||||
}
|
||||
|
||||
@ -4,4 +4,5 @@ public enum FileExportFormat
|
||||
{
|
||||
MICROSOFT_WORD,
|
||||
OPEN_DOCUMENT_TEXT,
|
||||
HTML,
|
||||
}
|
||||
@ -15,6 +15,7 @@ public static class PandocExport
|
||||
|
||||
private static readonly ExportTarget MICROSOFT_WORD = new("Microsoft Word (.docx)", "docx", FileTypes.MS_WORD);
|
||||
private static readonly ExportTarget OPEN_DOCUMENT_TEXT = new("OpenDocument Text (.odt)", "odt", FileTypes.OPEN_DOCUMENT_TEXT);
|
||||
private static readonly ExportTarget HTML = new("Hypertext (.html)", "html", FileTypes.HYPERTEXT);
|
||||
|
||||
private static string TB(string fallbackEn) => I18N.I.T(fallbackEn, typeof(PandocExport).Namespace, nameof(PandocExport));
|
||||
|
||||
@ -24,6 +25,7 @@ public static class PandocExport
|
||||
{
|
||||
FileExportFormat.MICROSOFT_WORD => MICROSOFT_WORD,
|
||||
FileExportFormat.OPEN_DOCUMENT_TEXT => OPEN_DOCUMENT_TEXT,
|
||||
FileExportFormat.HTML => HTML,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(format), format, null),
|
||||
};
|
||||
|
||||
|
||||
@ -31,6 +31,7 @@ public static class FileTypes
|
||||
public static readonly FileTypeFilter LUA = FileTypeFilter.Leaf("Lua", "lua");
|
||||
public static readonly FileTypeFilter PHP = FileTypeFilter.Leaf("PHP", "php");
|
||||
public static readonly FileTypeFilter WEB = FileTypeFilter.Leaf("HTML/CSS", "html", "css");
|
||||
public static readonly FileTypeFilter HYPERTEXT = FileTypeFilter.Leaf("HTML", "html");
|
||||
public static readonly FileTypeFilter APP = FileTypeFilter.Leaf("Swift/Kotlin", "swift", "kt");
|
||||
public static readonly FileTypeFilter SHELL = FileTypeFilter.Leaf("Shell", "sh", "bash", "zsh");
|
||||
public static readonly FileTypeFilter LOG = FileTypeFilter.Leaf("Log", "log");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user