forked from wabbajack-tools/wabbajack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
577 changed files
with
25,066 additions
and
25,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
using System.Collections.Generic; | ||
using Avalonia.Threading; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Logging; | ||
using Wabbajack.App; | ||
using Wabbajack.Networking.WabbajackClientApi; | ||
using Wabbajack.Services.OSIntegrated; | ||
using Xunit.DependencyInjection; | ||
using Xunit.DependencyInjection.Logging; | ||
|
||
namespace Wabbajack.App.Test | ||
namespace Wabbajack.App.Test; | ||
|
||
public class Startup | ||
{ | ||
public class Startup | ||
public void ConfigureServices(IServiceCollection service) | ||
{ | ||
public void ConfigureServices(IServiceCollection service) | ||
{ | ||
service.AddAppServices(); | ||
} | ||
service.AddAppServices(); | ||
} | ||
|
||
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor) | ||
{ | ||
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; })); | ||
MessageBus.Instance = new SimpleMessageBus(); | ||
} | ||
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor) | ||
{ | ||
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; })); | ||
MessageBus.Instance = new SimpleMessageBus(); | ||
} | ||
} | ||
|
||
public class SimpleMessageBus : IMessageBus | ||
{ | ||
public List<object> Messages { get; } = new(); | ||
|
||
public class SimpleMessageBus : IMessageBus | ||
public void Send<T>(T message) | ||
{ | ||
public List<object> Messages { get; } = new(); | ||
public void Send<T>(T message) | ||
{ | ||
Messages.Add(message); | ||
} | ||
Messages.Add(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Wabbajack.App" | ||
xmlns:i="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" | ||
x:Class="Wabbajack.App.App"> | ||
<Application.DataTemplates> | ||
<local:ViewLocator/> | ||
<local:ViewLocator /> | ||
</Application.DataTemplates> | ||
|
||
<Application.Styles> | ||
<StyleInclude Source="avares://Material.Icons.Avalonia/App.xaml"></StyleInclude> | ||
<FluentTheme Mode="Dark"/> | ||
<StyleInclude Source="avares://Wabbajack.App/Assets/Wabbajack.axaml"></StyleInclude> | ||
<StyleInclude Source="avares://Material.Icons.Avalonia/App.xaml" /> | ||
<FluentTheme Mode="Dark" /> | ||
<StyleInclude Source="avares://Wabbajack.App/Assets/Wabbajack.axaml" /> | ||
<Style Selector="Button:not(:pointerover) /template/ ContentPresenter"> | ||
<Setter Property="Background" Value="Transparent"></Setter> | ||
<Setter Property="Background" Value="Transparent" /> | ||
</Style> | ||
|
||
|
||
<Style Selector="Button:pointerover /template/ ContentPresenter"> | ||
<Setter Property="Background" Value="Transparent"></Setter> | ||
<Setter Property="BorderBrush" Value="LightGray"></Setter> | ||
<Setter Property="CornerRadius" Value="5"></Setter> | ||
<Setter Property="Background" Value="Transparent" /> | ||
<Setter Property="BorderBrush" Value="LightGray" /> | ||
<Setter Property="CornerRadius" Value="5" /> | ||
</Style> | ||
</Application.Styles> | ||
</Application> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.