Merge pull request #293 from Moonlight-Panel/SmallFixes
Some small fixes
This commit is contained in:
commit
6da8393612
3 changed files with 25 additions and 3 deletions
|
@ -111,6 +111,8 @@
|
|||
<script src="/assets/js/jquery.min.js"></script>
|
||||
<script src="/assets/js/toastr.min.js"></script>
|
||||
|
||||
<script src="/assets/js/apexcharts.js"></script>
|
||||
|
||||
<script src="/_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
|
||||
<script>require.config({ paths: { 'vs': '/_content/BlazorMonaco/lib/monaco-editor/min/vs' } });</script>
|
||||
<script src="/_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
|
||||
|
@ -122,8 +124,7 @@
|
|||
moonlight.loading.registerXterm();
|
||||
</script>
|
||||
|
||||
<script src="/_content/Blazor-ApexCharts/js/apex-charts.min.js"></script>
|
||||
<script src="/_content/Blazor-ApexCharts/js/blazor-apex-charts.js"></script>
|
||||
<script src="_content/Blazor-ApexCharts/js/blazor-apex-charts.js"></script>
|
||||
|
||||
<script src="/_framework/blazor.server.js"></script>
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
<WButton Text="@(SmartTranslateService.Translate("Start scan"))"
|
||||
CssClasses="btn-success me-3"
|
||||
OnClick="MalwareBackgroundScanService.Start">
|
||||
OnClick="Scan">
|
||||
</WButton>
|
||||
|
||||
<WButton Text="@(SmartTranslateService.Translate("Purge page"))"
|
||||
|
@ -206,4 +206,11 @@
|
|||
await ToastService.RemoveProcessToast("purgeProcess");
|
||||
await ToastService.Success($"Successfully purged {servers} servers by {users} users");
|
||||
}
|
||||
|
||||
private async Task Scan()
|
||||
{
|
||||
ScanResults.Clear();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
await MalwareBackgroundScanService.Start();
|
||||
}
|
||||
}
|
14
Moonlight/wwwroot/assets/js/apexcharts.js
vendored
Normal file
14
Moonlight/wwwroot/assets/js/apexcharts.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue