Implemented template crud, db entities, import/export, ptero and pelican import
This commit is contained in:
16
MoonlightServers.Frontend/Admin/Templates/ScriptEditor.razor
Normal file
16
MoonlightServers.Frontend/Admin/Templates/ScriptEditor.razor
Normal file
@@ -0,0 +1,16 @@
|
||||
@using ShadcnBlazor.Extras.Editors
|
||||
|
||||
@inherits Editor<string>
|
||||
|
||||
<Editor @ref="Editor" Language="EditorLanguage.None" InitialValue="@Value" />
|
||||
|
||||
@code
|
||||
{
|
||||
private Editor Editor;
|
||||
|
||||
public async Task SubmitAsync()
|
||||
{
|
||||
Value = await Editor.GetValueAsync();
|
||||
await ValueChanged.InvokeAsync(Value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user