Browse Source

Fix build and remove unused usings

pull/5/head
JT 1 year ago
parent
commit
860dee1456
  1. 2
      StabilityMatrix/App.xaml.cs
  2. 1
      StabilityMatrix/Helper/DialogErrorHandler.cs
  3. 3
      StabilityMatrix/Helper/DialogFactory.cs
  4. 2
      StabilityMatrix/LaunchOptionsDialog.xaml.cs
  5. 4
      StabilityMatrix/Models/Api/ImageResponse.cs
  6. 6
      StabilityMatrix/Models/LaunchOptionCard.cs
  7. 2
      StabilityMatrix/Models/Packages/A3WebUI.cs
  8. 5
      StabilityMatrix/Models/Packages/BaseGitPackage.cs
  9. 1
      StabilityMatrix/Models/Packages/VladAutomatic.cs
  10. 1
      StabilityMatrix/ViewModels/InstallerViewModel.cs
  11. 3
      StabilityMatrix/ViewModels/LaunchOptionsDialogViewModel.cs

2
StabilityMatrix/App.xaml.cs

@ -2,11 +2,9 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Net.Http;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Windows;
using Windows.ApplicationModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;

1
StabilityMatrix/Helper/DialogErrorHandler.cs

@ -1,6 +1,5 @@
using System.Threading.Tasks;
using System;
using System.Windows.Threading;
using Microsoft.Extensions.Logging;
using StabilityMatrix.Models;
using StabilityMatrix.ViewModels;

3
StabilityMatrix/Helper/DialogFactory.cs

@ -1,5 +1,4 @@
using System;
using StabilityMatrix.Models;
using StabilityMatrix.Models;
using StabilityMatrix.ViewModels;
using Wpf.Ui.Contracts;

2
StabilityMatrix/LaunchOptionsDialog.xaml.cs

@ -1,7 +1,5 @@
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using StabilityMatrix.ViewModels;
using Wpf.Ui.Contracts;
using Wpf.Ui.Controls.ContentDialogControl;

4
StabilityMatrix/Models/Api/ImageResponse.cs

@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using StabilityMatrix.ViewModels;
using System.Text.Json.Serialization;
namespace StabilityMatrix.Models.Api;

6
StabilityMatrix/Models/LaunchOptionCard.cs

@ -1,8 +1,4 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Documents;
using ABI.Windows.Data.Xml.Dom;
using StabilityMatrix.Helper;
using System.Collections.ObjectModel;
namespace StabilityMatrix.Models;

2
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -5,8 +5,6 @@ using System.IO;
using System.Threading.Tasks;
using StabilityMatrix.Api;
using StabilityMatrix.Helper;
using StabilityMatrix.Models.Api;
using StabilityMatrix.Python;
namespace StabilityMatrix.Models.Packages;

5
StabilityMatrix/Models/Packages/BaseGitPackage.cs

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.IO.Compression;
@ -74,10 +73,10 @@ public abstract class BaseGitPackage : BasePackage
return VenvRunner;
}
public override async Task<IEnumerable<string>> GetVersions()
public override async Task<IEnumerable<GithubRelease>> GetVersions()
{
var allReleases = await GithubApi.GetAllReleases(Author, Name);
return allReleases.Select(release => release.TagName!);
return allReleases;
}
public override async Task<string?> DownloadPackage(bool isUpdate = false, string? version = null)

1
StabilityMatrix/Models/Packages/VladAutomatic.cs

@ -5,7 +5,6 @@ using System.IO;
using System.Threading.Tasks;
using StabilityMatrix.Api;
using StabilityMatrix.Helper;
using StabilityMatrix.Python;
namespace StabilityMatrix.Models.Packages;

1
StabilityMatrix/ViewModels/InstallerViewModel.cs

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;

3
StabilityMatrix/ViewModels/LaunchOptionsDialogViewModel.cs

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;

Loading…
Cancel
Save