Fully remove MudBlazor
This commit is contained in:
parent
6b6a07060c
commit
44644b7ac9
2 changed files with 0 additions and 50 deletions
|
@ -1,35 +0,0 @@
|
|||
using MudBlazor;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace LANCommander.Models
|
||||
{
|
||||
public class PerformanceChartData
|
||||
{
|
||||
public PerformanceCounterData ProcessorUtilization { get; set; }
|
||||
public Dictionary<string, PerformanceCounterData> NetworkUploadRate { get; set; }
|
||||
public Dictionary<string, PerformanceCounterData> NetworkDownloadRate { get; set; }
|
||||
}
|
||||
|
||||
public class PerformanceCounterData
|
||||
{
|
||||
public PerformanceCounter PerformanceCounter { get; set; }
|
||||
public double[] Data { get; set; }
|
||||
|
||||
public ChartSeries ToSeries(string name)
|
||||
{
|
||||
return new ChartSeries
|
||||
{
|
||||
Name = name,
|
||||
Data = Data
|
||||
};
|
||||
}
|
||||
|
||||
public List<ChartSeries> ToSeriesList(string name)
|
||||
{
|
||||
return new List<ChartSeries>
|
||||
{
|
||||
ToSeries(name)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,8 +7,6 @@ using Microsoft.AspNetCore.Identity;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using MudBlazor;
|
||||
using MudBlazor.Services;
|
||||
using System.Text;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
@ -89,19 +87,6 @@ builder.Services.AddSwaggerGen();
|
|||
|
||||
builder.Services.AddAntDesign();
|
||||
|
||||
builder.Services.AddMudServices(config =>
|
||||
{
|
||||
config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomLeft;
|
||||
|
||||
config.SnackbarConfiguration.PreventDuplicates = false;
|
||||
config.SnackbarConfiguration.NewestOnTop = false;
|
||||
config.SnackbarConfiguration.ShowCloseIcon = true;
|
||||
config.SnackbarConfiguration.VisibleStateDuration = 10000;
|
||||
config.SnackbarConfiguration.HideTransitionDuration = 500;
|
||||
config.SnackbarConfiguration.ShowTransitionDuration = 500;
|
||||
config.SnackbarConfiguration.SnackbarVariant = Variant.Filled;
|
||||
});
|
||||
|
||||
builder.Services.AddHttpClient();
|
||||
|
||||
builder.Services.AddScoped<SettingService>();
|
||||
|
|
Loading…
Add table
Reference in a new issue