mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Move Windows versions chart to ChartJS.
This commit is contained in:
@@ -521,5 +521,16 @@ namespace DiscImageChef.Server.Controllers
|
||||
ctx.OperatingSystems.Where(o => o.Name == PlatformID.MacOSX.ToString()).OrderByDescending(o => o.Count).
|
||||
Take(10).Select(x => x.Count.ToString()).ToArray()
|
||||
});
|
||||
|
||||
public IActionResult GetWindowsData() => Json(new[]
|
||||
{
|
||||
ctx.OperatingSystems.Where(o => o.Name == PlatformID.Win32NT.ToString()).OrderByDescending(o => o.Count).
|
||||
Take(10).
|
||||
Select(x =>
|
||||
$"{DetectOS.GetPlatformName(PlatformID.Win32NT, x.Version)}{(string.IsNullOrEmpty(x.Version) ? "" : " ")}{x.Version}").
|
||||
ToArray(),
|
||||
ctx.OperatingSystems.Where(o => o.Name == PlatformID.Win32NT.ToString()).OrderByDescending(o => o.Count).
|
||||
Take(10).Select(x => x.Count.ToString()).ToArray()
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user