Added base models for servers. Added ws packet connection utility. Added some ui from old branch. Added some packeges. And more smaller things

This commit is contained in:
Marcel Baumgartner
2024-01-27 13:28:09 +01:00
parent 33c1ffa0ba
commit 6fd1336f1c
38 changed files with 2991 additions and 221 deletions

View File

@@ -0,0 +1,18 @@
using Microsoft.JSInterop;
namespace Moonlight.Core.Services.Interop;
public class ClipboardService
{
private readonly IJSRuntime JsRuntime;
public ClipboardService(IJSRuntime jsRuntime)
{
JsRuntime = jsRuntime;
}
public async Task Copy(string content)
{
await JsRuntime.InvokeVoidAsync("moonlight.clipboard.copy", content);
}
}