52 lines
936 B
Plaintext
52 lines
936 B
Plaintext
@page "/Setup"
|
|
|
|
@using MP.Prog.Data
|
|
@using System.Text
|
|
@using DiffMatchPatch
|
|
|
|
@inject MessageService AppMService
|
|
|
|
<h3>Setup</h3>
|
|
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<textarea @bind="@oldText" cols="50" rows="30" />
|
|
</div>
|
|
<div class="col-6">
|
|
<textarea @bind="@newText" cols="50" rows="30" />
|
|
</div>
|
|
<div class="col-12">
|
|
<MP.Prog.Components.DiffView oldText="@oldText" newText="@newText"></MP.Prog.Components.DiffView>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
|
|
protected string _oldText = "Prova primo testo";
|
|
protected string _newText = "Prova secondo testo";
|
|
|
|
protected string oldText
|
|
{
|
|
get
|
|
{
|
|
return _oldText;
|
|
}
|
|
set
|
|
{
|
|
_oldText = value;
|
|
}
|
|
}
|
|
|
|
protected string newText
|
|
{
|
|
get
|
|
{
|
|
return _newText;
|
|
}
|
|
set
|
|
{
|
|
_newText = value;
|
|
}
|
|
}
|
|
|
|
} |