Optimized interop client side
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
await JsRuntime.InvokeVoidAsync("initMonacoTheme");
|
||||
await JsRuntime.InvokeVoidAsync("moonlight.loading.loadMonaco");
|
||||
|
||||
Editor.OnDidInit = new EventCallback<MonacoEditorBase>(this, async () =>
|
||||
{
|
||||
|
||||
@@ -47,6 +47,6 @@
|
||||
|
||||
private async void TriggerFlashbang()
|
||||
{
|
||||
await JsRuntime.InvokeVoidAsync("flashbang");
|
||||
await JsRuntime.InvokeVoidAsync("moonlight.flashbang.run");
|
||||
}
|
||||
}
|
||||
@@ -208,7 +208,7 @@
|
||||
{
|
||||
var url = await ServerService.DownloadBackup(CurrentServer, serverBackup);
|
||||
|
||||
await ClipboardService.CopyToClipboard(url);
|
||||
await ClipboardService.Copy(url);
|
||||
await AlertService.Success(
|
||||
SmartTranslateService.Translate("Success"),
|
||||
SmartTranslateService.Translate("Backup URL successfully copied to your clipboard"));
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
[Parameter]
|
||||
public Action RunOnFirstRender { get; set; }
|
||||
|
||||
private TerminalOptions TerminalOptions = new TerminalOptions
|
||||
private TerminalOptions TerminalOptions = new()
|
||||
{
|
||||
CursorBlink = false,
|
||||
CursorStyle = CursorStyle.Underline,
|
||||
@@ -33,6 +33,7 @@
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +51,7 @@
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user