AI-Studio/app/MindWork AI Studio/Dialogs/PandocDocumentCheckDialog.razor

43 lines
1.4 KiB
Plaintext
Raw Normal View History

@inherits MSGComponentBase
<MudDialog>
<DialogContent>
<PreviewPrototype/>
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
@T("Test how Pandoc loads your file. Check the raw content it produces before further processing.")
</MudJustifiedText>
@if (FilePath == string.Empty)
{
<ReadFileContent Text="@T("Load file")" @bind-FileContent="@this.FileContent"/>
}
else
{
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
@T("Loaded file path:") @FilePath
</MudJustifiedText>
}
<MudTextField
T="string"
@bind-Text="@this.FileContent"
AdornmentIcon="@Icons.Material.Filled.Article"
Adornment="Adornment.Start"
Immediate="@true"
Label="@T("Content Loaded by Pandoc")"
Variant="Variant.Outlined"
Lines="6"
AutoGrow="@true"
MaxLines="25"
Class="mt-10"
HelperText="@T("This is the content Pandoc loaded from your file — including headings, lists, and formatting. Use this to verify your file loads as expected.")"
/>
</DialogContent>
<DialogActions>
<MudButton OnClick="@this.Cancel" Variant="Variant.Filled">
@T("Cancel")
</MudButton>
</DialogActions>
</MudDialog>