Browse Source

Move Models.Progress to Core assembly

pull/55/head
Ionite 1 year ago
parent
commit
cbcfcb8217
No known key found for this signature in database
  1. 4
      StabilityMatrix.Core/StabilityMatrix.Core/Exceptions/ProcessException.cs
  2. 4
      StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressReport.cs
  3. 2
      StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressState.cs
  4. 2
      StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressType.cs
  5. 2
      StabilityMatrix/DesignData/MockFirstLaunchSetupViewModel.cs
  6. 2
      StabilityMatrix/Helper/ArchiveHelper.cs
  7. 2
      StabilityMatrix/Helper/FileHash.cs
  8. 2
      StabilityMatrix/Helper/FileTransfers.cs
  9. 2
      StabilityMatrix/Helper/IPrerequisiteHelper.cs
  10. 2
      StabilityMatrix/Helper/PrerequisiteHelper.cs
  11. 2
      StabilityMatrix/Helper/ProcessRunner.cs
  12. 2
      StabilityMatrix/Models/CheckpointFile.cs
  13. 2
      StabilityMatrix/Models/CheckpointFolder.cs
  14. 2
      StabilityMatrix/Models/Packages/A3WebUI.cs
  15. 2
      StabilityMatrix/Models/Packages/BaseGitPackage.cs
  16. 2
      StabilityMatrix/Models/Packages/BasePackage.cs
  17. 2
      StabilityMatrix/Models/Packages/ComfyUI.cs
  18. 2
      StabilityMatrix/Models/Packages/VladAutomatic.cs
  19. 2
      StabilityMatrix/Services/DownloadService.cs
  20. 2
      StabilityMatrix/Services/IDownloadService.cs
  21. 4
      StabilityMatrix/StabilityMatrix.csproj
  22. 2
      StabilityMatrix/Updater/IUpdateHelper.cs
  23. 2
      StabilityMatrix/Updater/UpdateHelper.cs
  24. 2
      StabilityMatrix/ViewModels/CheckpointBrowserCardViewModel.cs
  25. 2
      StabilityMatrix/ViewModels/InstallerViewModel.cs
  26. 2
      StabilityMatrix/ViewModels/OneClickInstallViewModel.cs
  27. 2
      StabilityMatrix/ViewModels/PackageManagerViewModel.cs
  28. 2
      StabilityMatrix/ViewModels/RefreshBadgeViewModel.cs
  29. 2
      StabilityMatrix/ViewModels/SelectInstallLocationsViewModel.cs
  30. 2
      StabilityMatrix/ViewModels/SettingsViewModel.cs
  31. 2
      StabilityMatrix/ViewModels/UpdateWindowViewModel.cs

4
StabilityMatrix/Exceptions/ProcessException.cs → StabilityMatrix.Core/StabilityMatrix.Core/Exceptions/ProcessException.cs

@ -1,6 +1,4 @@
using System; namespace StabilityMatrix.Core.Exceptions;
namespace StabilityMatrix.Exceptions;
/// <summary> /// <summary>
/// Exception that is thrown when a process fails. /// Exception that is thrown when a process fails.

4
StabilityMatrix/Models/Progress/ProgressReport.cs → StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressReport.cs

@ -1,6 +1,4 @@
using System; namespace StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Models.Progress;
public record struct ProgressReport public record struct ProgressReport
{ {

2
StabilityMatrix/Models/Progress/ProgressState.cs → StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressState.cs

@ -1,4 +1,4 @@
namespace StabilityMatrix.Models.Progress; namespace StabilityMatrix.Core.Models.Progress;
public enum ProgressState public enum ProgressState
{ {

2
StabilityMatrix/Models/Progress/ProgressType.cs → StabilityMatrix.Core/StabilityMatrix.Core/Models/Progress/ProgressType.cs

@ -1,4 +1,4 @@
namespace StabilityMatrix.Models.Progress; namespace StabilityMatrix.Core.Models.Progress;
public enum ProgressType public enum ProgressType
{ {

2
StabilityMatrix/DesignData/MockFirstLaunchSetupViewModel.cs

@ -1,4 +1,4 @@
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.ViewModels; using StabilityMatrix.ViewModels;
namespace StabilityMatrix.DesignData; namespace StabilityMatrix.DesignData;

2
StabilityMatrix/Helper/ArchiveHelper.cs

@ -9,7 +9,7 @@ using System.Windows.Threading;
using NLog; using NLog;
using SharpCompress.Common; using SharpCompress.Common;
using SharpCompress.Readers; using SharpCompress.Readers;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Helper; namespace StabilityMatrix.Helper;

2
StabilityMatrix/Helper/FileHash.cs

@ -4,7 +4,7 @@ using System.IO;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Threading.Tasks; using System.Threading.Tasks;
using Blake3; using Blake3;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Helper; namespace StabilityMatrix.Helper;

2
StabilityMatrix/Helper/FileTransfers.cs

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Helper; namespace StabilityMatrix.Helper;

2
StabilityMatrix/Helper/IPrerequisiteHelper.cs

@ -1,6 +1,6 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Helper; namespace StabilityMatrix.Helper;

2
StabilityMatrix/Helper/PrerequisiteHelper.cs

@ -8,7 +8,7 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Win32; using Microsoft.Win32;
using Octokit; using Octokit;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using StabilityMatrix.Services; using StabilityMatrix.Services;

2
StabilityMatrix/Helper/ProcessRunner.cs

@ -6,7 +6,7 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using StabilityMatrix.Exceptions; using StabilityMatrix.Core.Exceptions;
namespace StabilityMatrix.Helper; namespace StabilityMatrix.Helper;

2
StabilityMatrix/Models/CheckpointFile.cs

@ -11,9 +11,9 @@ using AsyncAwaitBestPractices;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using NLog; using NLog;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Extensions; using StabilityMatrix.Extensions;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models.Progress;
namespace StabilityMatrix.Models; namespace StabilityMatrix.Models;

2
StabilityMatrix/Models/CheckpointFolder.cs

@ -8,10 +8,10 @@ using System.Threading.Tasks;
using System.Windows; using System.Windows;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Extensions; using StabilityMatrix.Extensions;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models.FileInterfaces; using StabilityMatrix.Models.FileInterfaces;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Services; using StabilityMatrix.Services;
using StabilityMatrix.ViewModels; using StabilityMatrix.ViewModels;

2
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -6,9 +6,9 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Helper.Cache; using StabilityMatrix.Helper.Cache;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Services; using StabilityMatrix.Services;
namespace StabilityMatrix.Models.Packages; namespace StabilityMatrix.Models.Packages;

2
StabilityMatrix/Models/Packages/BaseGitPackage.cs

@ -7,9 +7,9 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using Octokit; using Octokit;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Helper.Cache; using StabilityMatrix.Helper.Cache;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using StabilityMatrix.Services; using StabilityMatrix.Services;

2
StabilityMatrix/Models/Packages/BasePackage.cs

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Octokit; using Octokit;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Models.Packages; namespace StabilityMatrix.Models.Packages;

2
StabilityMatrix/Models/Packages/ComfyUI.cs

@ -6,9 +6,9 @@ using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Helper.Cache; using StabilityMatrix.Helper.Cache;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Services; using StabilityMatrix.Services;
namespace StabilityMatrix.Models.Packages; namespace StabilityMatrix.Models.Packages;

2
StabilityMatrix/Models/Packages/VladAutomatic.cs

@ -7,9 +7,9 @@ using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Helper.Cache; using StabilityMatrix.Helper.Cache;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using StabilityMatrix.Services; using StabilityMatrix.Services;

2
StabilityMatrix/Services/DownloadService.cs

@ -5,7 +5,7 @@ using System.Net.Http.Headers;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Polly.Contrib.WaitAndRetry; using Polly.Contrib.WaitAndRetry;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Services; namespace StabilityMatrix.Services;

2
StabilityMatrix/Services/IDownloadService.cs

@ -1,6 +1,6 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Services; namespace StabilityMatrix.Services;

4
StabilityMatrix/StabilityMatrix.csproj

@ -105,5 +105,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\StabilityMatrix.Core\StabilityMatrix.Core\StabilityMatrix.Core.csproj" /> <ProjectReference Include="..\StabilityMatrix.Core\StabilityMatrix.Core\StabilityMatrix.Core.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Models\Progress\" />
</ItemGroup>
</Project> </Project>

2
StabilityMatrix/Updater/IUpdateHelper.cs

@ -1,6 +1,6 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Updater; namespace StabilityMatrix.Updater;

2
StabilityMatrix/Updater/UpdateHelper.cs

@ -7,10 +7,10 @@ using System.Threading.Tasks;
using System.Windows.Threading; using System.Windows.Threading;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Extensions; using StabilityMatrix.Extensions;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models.Configs; using StabilityMatrix.Models.Configs;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Services; using StabilityMatrix.Services;
namespace StabilityMatrix.Updater; namespace StabilityMatrix.Updater;

2
StabilityMatrix/ViewModels/CheckpointBrowserCardViewModel.cs

@ -10,12 +10,12 @@ using AsyncAwaitBestPractices;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using NLog; using NLog;
using Refit; using Refit;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Extensions; using StabilityMatrix.Extensions;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models; using StabilityMatrix.Models;
using StabilityMatrix.Models.Api; using StabilityMatrix.Models.Api;
using StabilityMatrix.Models.FileInterfaces; using StabilityMatrix.Models.FileInterfaces;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Services; using StabilityMatrix.Services;
using Wpf.Ui.Controls; using Wpf.Ui.Controls;

2
StabilityMatrix/ViewModels/InstallerViewModel.cs

@ -11,10 +11,10 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Octokit; using Octokit;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models; using StabilityMatrix.Models;
using StabilityMatrix.Models.Packages; using StabilityMatrix.Models.Packages;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using StabilityMatrix.Services; using StabilityMatrix.Services;
using Wpf.Ui.Contracts; using Wpf.Ui.Contracts;

2
StabilityMatrix/ViewModels/OneClickInstallViewModel.cs

@ -4,10 +4,10 @@ using System.Windows;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models; using StabilityMatrix.Models;
using StabilityMatrix.Models.Packages; using StabilityMatrix.Models.Packages;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using EventManager = StabilityMatrix.Helper.EventManager; using EventManager = StabilityMatrix.Helper.EventManager;

2
StabilityMatrix/ViewModels/PackageManagerViewModel.cs

@ -11,7 +11,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Polly; using Polly;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
using Wpf.Ui.Contracts; using Wpf.Ui.Contracts;
using Wpf.Ui.Controls; using Wpf.Ui.Controls;
using Wpf.Ui.Controls.ContentDialogControl; using Wpf.Ui.Controls.ContentDialogControl;

2
StabilityMatrix/ViewModels/RefreshBadgeViewModel.cs

@ -5,7 +5,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using NLog; using NLog;
using StabilityMatrix.Controls; using StabilityMatrix.Controls;
using StabilityMatrix.Models.Progress; using StabilityMatrix.Core.Models.Progress;
using Wpf.Ui.Common; using Wpf.Ui.Common;
using Wpf.Ui.Controls; using Wpf.Ui.Controls;
using Wpf.Ui.Controls.IconElements; using Wpf.Ui.Controls.IconElements;

2
StabilityMatrix/ViewModels/SelectInstallLocationsViewModel.cs

@ -9,8 +9,8 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using NLog; using NLog;
using Ookii.Dialogs.Wpf; using Ookii.Dialogs.Wpf;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Models.Settings; using StabilityMatrix.Models.Settings;
namespace StabilityMatrix.ViewModels; namespace StabilityMatrix.ViewModels;

2
StabilityMatrix/ViewModels/SettingsViewModel.cs

@ -20,10 +20,10 @@ using Ookii.Dialogs.Wpf;
using Polly.Timeout; using Polly.Timeout;
using Refit; using Refit;
using StabilityMatrix.Api; using StabilityMatrix.Api;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Database; using StabilityMatrix.Database;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models; using StabilityMatrix.Models;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Python; using StabilityMatrix.Python;
using Wpf.Ui.Appearance; using Wpf.Ui.Appearance;
using Wpf.Ui.Contracts; using Wpf.Ui.Contracts;

2
StabilityMatrix/ViewModels/UpdateWindowViewModel.cs

@ -5,8 +5,8 @@ using System.Threading.Tasks;
using System.Windows; using System.Windows;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using StabilityMatrix.Core.Models.Progress;
using StabilityMatrix.Helper; using StabilityMatrix.Helper;
using StabilityMatrix.Models.Progress;
using StabilityMatrix.Updater; using StabilityMatrix.Updater;
using Wpf.Ui.Controls.Window; using Wpf.Ui.Controls.Window;

Loading…
Cancel
Save