|
| 1 | +using Microsoft.Extensions.Logging; |
| 2 | +using System.Collections.Generic; |
| 3 | + |
| 4 | +namespace RemoteLogViewer.ViewModels.Info; |
| 5 | + |
| 6 | +[AddSingleton] |
| 7 | +public class LicensePageViewModel : InfoPageViewModel<LicensePageViewModel> { |
| 8 | + public LicensePageViewModel(ILogger<LicensePageViewModel> logger) : base("Licenses", logger) { |
| 9 | + } |
| 10 | + |
| 11 | + public List<LicenseInfo> Licenses { get; } = [ |
| 12 | + new("CommunityToolkit.Mvvm", "MIT", "https://github.com/CommunityToolkit/dotnet/blob/main/License.md"), |
| 13 | + new("CommunityToolkit.WinUI", "MIT", "https://github.com/CommunityToolkit/Windows/blob/main/License.md"), |
| 14 | + new("Microsoft.Extensions.DependencyInjection", "MIT", "https://github.com/dotnet/dotnet/blob/main/LICENSE.TXT"), |
| 15 | + new("Microsoft.WindowsAppSDK", "MIT", "https://github.com/microsoft/WindowsAppSDK/blob/main/LICENSE"), |
| 16 | + new("ObservableCollections", "MIT", "https://github.com/Cysharp/ObservableCollections/blob/master/LICENSE"), |
| 17 | + new("R3", "MIT", "https://github.com/Cysharp/R3/blob/main/LICENSE"), |
| 18 | + new("Serilog", "Apache-2.0", "https://github.com/serilog/serilog/blob/dev/LICENSE"), |
| 19 | + new("SSH.NET", "MIT", "https://github.com/sshnet/SSH.NET/blob/develop/LICENSE"), |
| 20 | + new("System.Linq.Async", "MIT", "https://github.com/dotnet/reactive/blob/main/LICENSE") |
| 21 | + ]; |
| 22 | +} |
| 23 | + |
| 24 | +public record LicenseInfo(string Name, string License, string Url); |
0 commit comments