Implemented download service

This commit is contained in:
2024-12-10 19:52:14 +01:00
parent 150a18cc0b
commit 75cefea4fa
4 changed files with 63 additions and 1 deletions

View File

@@ -1,5 +1,19 @@
@page "/admin"
@using Moonlight.Client.Services
@inject DownloadService DownloadService
<WButton OnClick="OnClick">Test DownloadService</WButton>
@code
{
private async Task OnClick(WButton _)
{
await DownloadService.DownloadString("test.txt", "Download seems to be working");
}
}
@*
@using ApexCharts
<div class="card max-w-md">
@@ -181,4 +195,4 @@
}
}
}*@