Browse Source

Fix namespaces

pull/55/head
Ionite 1 year ago
parent
commit
c5f3f0faaa
No known key found for this signature in database
  1. 0
      StabilityMatrix.Core/Converters/Json/DefaultUnknownEnumConverter.cs
  2. 0
      StabilityMatrix.Core/Converters/Json/LaunchOptionValueJsonConverter.cs
  3. 0
      StabilityMatrix.Core/Exceptions/ProcessException.cs
  4. 0
      StabilityMatrix.Core/Extensions/EnumAttributes.cs
  5. 0
      StabilityMatrix.Core/Extensions/EnumConversion.cs
  6. 0
      StabilityMatrix.Core/Extensions/EnumerableExtensions.cs
  7. 0
      StabilityMatrix.Core/Extensions/LiteDBExtensions.cs
  8. 0
      StabilityMatrix.Core/Helper/Cache/GithubApiCache.cs
  9. 0
      StabilityMatrix.Core/Helper/Cache/IGithubApiCache.cs
  10. 0
      StabilityMatrix.Core/Helper/Cache/LRUCache.cs
  11. 0
      StabilityMatrix.Core/Helper/Expressions.cs
  12. 0
      StabilityMatrix.Core/Helper/FileHash.cs
  13. 0
      StabilityMatrix.Core/Helper/FileTransfers.cs
  14. 0
      StabilityMatrix.Core/Helper/HardwareHelper.cs
  15. 0
      StabilityMatrix.Core/Helper/MinimumDelay.cs
  16. 0
      StabilityMatrix.Core/Helper/ObjectHash.cs
  17. 0
      StabilityMatrix.Core/Helper/ProcessRunner.cs
  18. 0
      StabilityMatrix.Core/Helper/ProcessTracker.cs
  19. 0
      StabilityMatrix.Core/Helper/Size.cs
  20. 0
      StabilityMatrix.Core/Helper/SystemInfo.cs
  21. 0
      StabilityMatrix.Core/Helper/Utilities.cs
  22. 0
      StabilityMatrix.Core/Models/Configs/DebugOptions.cs
  23. 0
      StabilityMatrix.Core/Models/FileInterfaces/DirectoryPath.cs
  24. 0
      StabilityMatrix.Core/Models/FileInterfaces/FilePath.cs
  25. 0
      StabilityMatrix.Core/Models/FileInterfaces/FileSystemPath.cs
  26. 0
      StabilityMatrix.Core/Models/FileInterfaces/IPathObject.cs
  27. 0
      StabilityMatrix.Core/Models/FileSizeType.cs
  28. 0
      StabilityMatrix.Core/Models/GlobalConfig.cs
  29. 2
      StabilityMatrix.Core/Models/InstalledPackage.cs
  30. 0
      StabilityMatrix.Core/Models/LaunchOption.cs
  31. 0
      StabilityMatrix.Core/Models/LaunchOptionCard.cs
  32. 0
      StabilityMatrix.Core/Models/LaunchOptionDefinition.cs
  33. 0
      StabilityMatrix.Core/Models/LaunchOptionType.cs
  34. 0
      StabilityMatrix.Core/Models/LicenseInfo.cs
  35. 0
      StabilityMatrix.Core/Models/LoadState.cs
  36. 0
      StabilityMatrix.Core/Models/PackageVersion.cs
  37. 0
      StabilityMatrix.Core/Models/Progress/ProgressReport.cs
  38. 0
      StabilityMatrix.Core/Models/Progress/ProgressState.cs
  39. 0
      StabilityMatrix.Core/Models/Progress/ProgressType.cs
  40. 0
      StabilityMatrix.Core/Models/SharedFolderType.cs
  41. 0
      StabilityMatrix.Core/Models/TaskResult.cs
  42. 0
      StabilityMatrix.Core/Python/ArgParser.cs
  43. 0
      StabilityMatrix.Core/Python/IPyRunner.cs
  44. 0
      StabilityMatrix.Core/Python/Interop/PyIOStream.cs
  45. 0
      StabilityMatrix.Core/Python/PyRunner.cs
  46. 0
      StabilityMatrix.Core/Python/PyVenvRunner.cs
  47. 0
      StabilityMatrix.Core/ReparsePoints/DeviceIoControlCode.cs
  48. 0
      StabilityMatrix.Core/ReparsePoints/Junction.cs
  49. 0
      StabilityMatrix.Core/ReparsePoints/ReparseDataBuffer.cs
  50. 0
      StabilityMatrix.Core/ReparsePoints/Win32CreationDisposition.cs
  51. 0
      StabilityMatrix.Core/ReparsePoints/Win32ErrorCode.cs
  52. 0
      StabilityMatrix.Core/ReparsePoints/Win32FileAccess.cs
  53. 0
      StabilityMatrix.Core/ReparsePoints/Win32FileAttribute.cs
  54. 0
      StabilityMatrix.Core/ReparsePoints/Win32FileShare.cs
  55. 0
      StabilityMatrix.Core/StabilityMatrix.Core.csproj
  56. 1
      StabilityMatrix.Tests/Helper/PackageFactoryTests.cs
  57. 1
      StabilityMatrix.Tests/Models/InstalledPackageTests.cs
  58. 1
      StabilityMatrix.Tests/StabilityMatrix.Tests.csproj
  59. 8
      StabilityMatrix.sln
  60. 26
      StabilityMatrix/InstallerWindow.xaml
  61. 4
      StabilityMatrix/StabilityMatrix.csproj

0
StabilityMatrix.Core/StabilityMatrix.Core/Converters/Json/DefaultUnknownEnumConverter.cs → StabilityMatrix.Core/Converters/Json/DefaultUnknownEnumConverter.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Converters/Json/LaunchOptionValueJsonConverter.cs → StabilityMatrix.Core/Converters/Json/LaunchOptionValueJsonConverter.cs

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

0
StabilityMatrix.Core/StabilityMatrix.Core/Extensions/EnumAttributes.cs → StabilityMatrix.Core/Extensions/EnumAttributes.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Extensions/EnumConversion.cs → StabilityMatrix.Core/Extensions/EnumConversion.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Extensions/EnumerableExtensions.cs → StabilityMatrix.Core/Extensions/EnumerableExtensions.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Extensions/LiteDBExtensions.cs → StabilityMatrix.Core/Extensions/LiteDBExtensions.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Cache/GithubApiCache.cs → StabilityMatrix.Core/Helper/Cache/GithubApiCache.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Cache/IGithubApiCache.cs → StabilityMatrix.Core/Helper/Cache/IGithubApiCache.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Cache/LRUCache.cs → StabilityMatrix.Core/Helper/Cache/LRUCache.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Expressions.cs → StabilityMatrix.Core/Helper/Expressions.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/FileHash.cs → StabilityMatrix.Core/Helper/FileHash.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/FileTransfers.cs → StabilityMatrix.Core/Helper/FileTransfers.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/HardwareHelper.cs → StabilityMatrix.Core/Helper/HardwareHelper.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/MinimumDelay.cs → StabilityMatrix.Core/Helper/MinimumDelay.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/ObjectHash.cs → StabilityMatrix.Core/Helper/ObjectHash.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/ProcessRunner.cs → StabilityMatrix.Core/Helper/ProcessRunner.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/ProcessTracker.cs → StabilityMatrix.Core/Helper/ProcessTracker.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Size.cs → StabilityMatrix.Core/Helper/Size.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/SystemInfo.cs → StabilityMatrix.Core/Helper/SystemInfo.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Helper/Utilities.cs → StabilityMatrix.Core/Helper/Utilities.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/Configs/DebugOptions.cs → StabilityMatrix.Core/Models/Configs/DebugOptions.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/FileInterfaces/DirectoryPath.cs → StabilityMatrix.Core/Models/FileInterfaces/DirectoryPath.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/FileInterfaces/FilePath.cs → StabilityMatrix.Core/Models/FileInterfaces/FilePath.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/FileInterfaces/FileSystemPath.cs → StabilityMatrix.Core/Models/FileInterfaces/FileSystemPath.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/FileInterfaces/IPathObject.cs → StabilityMatrix.Core/Models/FileInterfaces/IPathObject.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/FileSizeType.cs → StabilityMatrix.Core/Models/FileSizeType.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/GlobalConfig.cs → StabilityMatrix.Core/Models/GlobalConfig.cs

2
StabilityMatrix.Core/StabilityMatrix.Core/Models/InstalledPackage.cs → StabilityMatrix.Core/Models/InstalledPackage.cs

@ -44,7 +44,7 @@ public class InstalledPackage
/// Get the path as a relative sub-path of the relative path.
/// If not a sub-path, return null.
/// </summary>
internal static string? GetSubPath(string relativeTo, string path)
public static string? GetSubPath(string relativeTo, string path)
{
var relativePath = System.IO.Path.GetRelativePath(relativeTo, path);
// GetRelativePath returns the path if it's not relative

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LaunchOption.cs → StabilityMatrix.Core/Models/LaunchOption.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LaunchOptionCard.cs → StabilityMatrix.Core/Models/LaunchOptionCard.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LaunchOptionDefinition.cs → StabilityMatrix.Core/Models/LaunchOptionDefinition.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LaunchOptionType.cs → StabilityMatrix.Core/Models/LaunchOptionType.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LicenseInfo.cs → StabilityMatrix.Core/Models/LicenseInfo.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/LoadState.cs → StabilityMatrix.Core/Models/LoadState.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/PackageVersion.cs → StabilityMatrix.Core/Models/PackageVersion.cs

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

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

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

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/SharedFolderType.cs → StabilityMatrix.Core/Models/SharedFolderType.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Models/TaskResult.cs → StabilityMatrix.Core/Models/TaskResult.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Python/ArgParser.cs → StabilityMatrix.Core/Python/ArgParser.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Python/IPyRunner.cs → StabilityMatrix.Core/Python/IPyRunner.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Python/Interop/PyIOStream.cs → StabilityMatrix.Core/Python/Interop/PyIOStream.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Python/PyRunner.cs → StabilityMatrix.Core/Python/PyRunner.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/Python/PyVenvRunner.cs → StabilityMatrix.Core/Python/PyVenvRunner.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/DeviceIoControlCode.cs → StabilityMatrix.Core/ReparsePoints/DeviceIoControlCode.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Junction.cs → StabilityMatrix.Core/ReparsePoints/Junction.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/ReparseDataBuffer.cs → StabilityMatrix.Core/ReparsePoints/ReparseDataBuffer.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Win32CreationDisposition.cs → StabilityMatrix.Core/ReparsePoints/Win32CreationDisposition.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Win32ErrorCode.cs → StabilityMatrix.Core/ReparsePoints/Win32ErrorCode.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Win32FileAccess.cs → StabilityMatrix.Core/ReparsePoints/Win32FileAccess.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Win32FileAttribute.cs → StabilityMatrix.Core/ReparsePoints/Win32FileAttribute.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/ReparsePoints/Win32FileShare.cs → StabilityMatrix.Core/ReparsePoints/Win32FileShare.cs

0
StabilityMatrix.Core/StabilityMatrix.Core/StabilityMatrix.Core.csproj → StabilityMatrix.Core/StabilityMatrix.Core.csproj

1
StabilityMatrix.Tests/Helper/PackageFactoryTests.cs

@ -1,5 +1,4 @@
using StabilityMatrix.Helper;
using StabilityMatrix.Models;
using StabilityMatrix.Models.Packages;
namespace StabilityMatrix.Tests.Helper;

1
StabilityMatrix.Tests/Models/InstalledPackageTests.cs

@ -1,5 +1,4 @@
using StabilityMatrix.Core.Models;
using StabilityMatrix.Models;
namespace StabilityMatrix.Tests.Models;

1
StabilityMatrix.Tests/StabilityMatrix.Tests.csproj

@ -26,6 +26,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StabilityMatrix.Core\StabilityMatrix.Core.csproj" />
<ProjectReference Include="..\StabilityMatrix\StabilityMatrix.csproj" />
</ItemGroup>

8
StabilityMatrix.sln

@ -7,7 +7,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StabilityMatrix", "Stabilit
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StabilityMatrix.Tests", "StabilityMatrix.Tests\StabilityMatrix.Tests.csproj", "{63EF4330-CCFF-4677-B14C-1A700CD81FDA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StabilityMatrix.Core", "StabilityMatrix.Core\StabilityMatrix.Core\StabilityMatrix.Core.csproj", "{E2E0B158-26D2-48EB-84E3-C5559D9AE84C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StabilityMatrix.Core", "StabilityMatrix.Core\StabilityMatrix.Core.csproj", "{E2E0B158-26D2-48EB-84E3-C5559D9AE84C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StabilityMatrix.Avalonia", "StabilityMatrix.Avalonia\StabilityMatrix.Avalonia.csproj", "{3F9F96FA-12E7-4B82-BFE5-1FAD88F3ACB2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -27,6 +29,10 @@ Global
{E2E0B158-26D2-48EB-84E3-C5559D9AE84C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2E0B158-26D2-48EB-84E3-C5559D9AE84C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2E0B158-26D2-48EB-84E3-C5559D9AE84C}.Release|Any CPU.Build.0 = Release|Any CPU
{3F9F96FA-12E7-4B82-BFE5-1FAD88F3ACB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F9F96FA-12E7-4B82-BFE5-1FAD88F3ACB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F9F96FA-12E7-4B82-BFE5-1FAD88F3ACB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F9F96FA-12E7-4B82-BFE5-1FAD88F3ACB2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

26
StabilityMatrix/InstallerWindow.xaml

@ -20,14 +20,14 @@
xmlns:converters="clr-namespace:StabilityMatrix.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:models="clr-namespace:StabilityMatrix.Core.Models;assembly=StabilityMatrix.Core"
xmlns:octokit="clr-namespace:Octokit;assembly=Octokit"
xmlns:packages="clr-namespace:StabilityMatrix.Models.Packages"
xmlns:system="clr-namespace:System;assembly=System.Runtime"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:viewModels="clr-namespace:StabilityMatrix.ViewModels"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xaml="clr-namespace:MdXaml;assembly=MdXaml"
xmlns:models="clr-namespace:StabilityMatrix.Core.Models;assembly=StabilityMatrix.Core">
xmlns:xaml="clr-namespace:MdXaml;assembly=MdXaml">
<ui:FluentWindow.Resources>
<converters:ValueConverterGroup x:Key="InvertAndVisibilitate">
@ -137,11 +137,12 @@
Text="{Binding SelectedPackage.DisplayName, FallbackValue=Stable Diffusion Web UI}" />
<TextBlock FontSize="12" Text="{Binding SelectedPackage.ByAuthor, FallbackValue=by Automatic111}" />
<ui:Button Command="{Binding ShowPreviewCommand}"
<ui:Button
Appearance="Transparent"
BorderBrush="Transparent"
Margin="0,8,0,0"
Content="UI Preview">
Command="{Binding ShowPreviewCommand}"
Content="UI Preview"
Margin="0,8,0,0">
<ui:Button.Style>
<Style BasedOn="{StaticResource {x:Type ui:Button}}" TargetType="{x:Type ui:Button}">
<Setter Property="Foreground">
@ -153,8 +154,7 @@
</ui:Button.Style>
</ui:Button>
<ui:Hyperlink NavigateUri="{Binding SelectedPackage.GithubUrl}"
Margin="0,0,0,8">
<ui:Hyperlink Margin="0,0,0,8" NavigateUri="{Binding SelectedPackage.GithubUrl}">
<TextBlock TextWrapping="Wrap">
<Run Text="GitHub Page:" />
<Run Text="{Binding SelectedPackage.GithubUrl, Mode=OneWay}" TextDecorations="Underline" />
@ -216,8 +216,7 @@
</StackPanel>
<Label Content="Display Name" Margin="0,16,0,0" />
<StackPanel Orientation="Horizontal"
Visibility="{Binding ShowDuplicateWarning, Converter={StaticResource BoolToVisConverter}}">
<StackPanel Orientation="Horizontal" Visibility="{Binding ShowDuplicateWarning, Converter={StaticResource BoolToVisConverter}}">
<ui:SymbolIcon
Foreground="{ui:ThemeResource SystemFillColorCriticalBrush}"
Margin="8"
@ -260,12 +259,15 @@
</StackPanel>
<FlowDocumentScrollViewer
Grid.Column="2"
Margin="16"
Document="{Binding ReleaseNotes, Converter={StaticResource TextToFlowDocumentConverter}}"
Grid.Column="2"
HorizontalAlignment="Stretch"
Margin="16"
VerticalAlignment="Stretch" />
<ContentPresenter Grid.Column="0" Grid.ColumnSpan="3" x:Name="InstallerContentDialog" />
<ContentPresenter
Grid.Column="0"
Grid.ColumnSpan="3"
x:Name="InstallerContentDialog" />
</Grid>
</Grid>
</ui:FluentWindow>

4
StabilityMatrix/StabilityMatrix.csproj

@ -17,7 +17,7 @@
<PackageReference Include="7-Zip.CommandLine" Version="18.1.0" />
<PackageReference Include="AsyncAwaitBestPractices" Version="6.0.6" />
<PackageReference Include="Blake3" Version="0.5.1" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageReference Include="FuzzySharp" Version="2.0.2" />
<PackageReference Include="LiteDB" Version="5.0.16" />
<PackageReference Include="LiteDB.Async" Version="0.1.6" />
@ -103,7 +103,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StabilityMatrix.Core\StabilityMatrix.Core\StabilityMatrix.Core.csproj" />
<ProjectReference Include="..\StabilityMatrix.Core\StabilityMatrix.Core.csproj" />
</ItemGroup>
</Project>

Loading…
Cancel
Save