Worlds fastest rename

This commit is contained in:
TheXamlGuy
2024-06-09 13:47:58 +01:00
parent 727bf877e9
commit 1f777e19cd
71 changed files with 282 additions and 282 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
<ComparisonCondition LeftOperand="{Binding Activated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Locker">
<NavigateAction Region="Main" Route="Wallet">
<Parameter Key="Filter" Value="{Binding Filter}" />
</NavigateAction>
</ConditionAction>
+22 -22
View File
@@ -26,7 +26,7 @@ public partial class App : Application
public override async void OnFrameworkInitializationCompleted()
{
IHost? host = DefaultHostBuilder.Create()
.AddConfiguration<LockerConfiguration>("Locker:*")
.AddConfiguration<WalletConfiguration>("Wallet:*")
.AddConfiguration<ItemConfiguration>("Item:*")
.AddConfiguration("Item:Bank Account", ItemConfiguration.BankAccount)
.AddConfiguration("Item:Credit Card", ItemConfiguration.CreditCard)
@@ -58,9 +58,9 @@ public partial class App : Application
services.AddTemplate<MainWindowViewModel, MainWindow>("MainWindow");
}
services.AddHandler<LockerActivatedHandler>();
services.AddHandler<WalletActivatedHandler>();
services.AddTransient<ILockerComponent>(provider => Component.Create<LockerComponent>(provider, args =>
services.AddTransient<IWalletComponent>(provider => Component.Create<WalletComponent>(provider, args =>
{
args.AddServices(services =>
{
@@ -80,7 +80,7 @@ public partial class App : Application
services.AddTransient<IKeyDeriver, KeyDeriver>();
services.AddTransient<ISecurityKeyFactory, SecurityKeyFactory>();
services.AddTransient<ILockerStorageFactory, LockerStorageFactory>();
services.AddTransient<IWalletStorageFactory, WalletStorageFactory>();
services.AddTransient<IItemConfigurationCollection, ItemConfigurationCollection>(provider =>
{
@@ -92,44 +92,44 @@ public partial class App : Application
});
services.TryAddSingleton<IDecoratorService<SecurityKey>, DecoratorService<SecurityKey>>();
services.TryAddSingleton<IDecoratorService<LockerConnection>, DecoratorService<LockerConnection>>();
services.TryAddSingleton<IDecoratorService<WalletConnection>, DecoratorService<WalletConnection>>();
services.AddDbContextFactory<LockerContext>((provider, args) =>
services.AddDbContextFactory<WalletContext>((provider, args) =>
{
if (provider.GetRequiredService<IDecoratorService<LockerConnection>>()
is IDecoratorService<LockerConnection> connection)
if (provider.GetRequiredService<IDecoratorService<WalletConnection>>()
is IDecoratorService<WalletConnection> connection)
{
args.UseSqlite($"{connection.Service}");
}
});
services.AddHandler<QueryLockerHandler>();
services.AddHandler<QueryWalletHandler>();
services.AddHandler<RequestItemHandler>();
services.AddHandler<CreateItemHandler>();
services.AddHandler<UpdateItemHander>();
services.AddHandler<UpdateItemStateHandler>();
services.AddHandler<OpenLockerHandler>();
services.AddHandler<OpenWalletHandler>();
services.AddTemplate<LockerNavigationViewModel, LockerNavigationView>();
services.AddTemplate<WalletNavigationViewModel, WalletNavigationView>();
services.AddTemplate<AllNavigationViewModel, AllNavigationView>();
services.AddTemplate<StarredNavigationViewModel, StarredNavigationView>();
services.AddTemplate<CategoriesNavigationViewModel, CategoriesNavigationView>();
services.AddTemplate<ArchiveNavigationViewModel, ArchiveNavigationView>();
services.AddTemplate<OpenLockerViewModel, OpenLockerView>("OpenLocker");
services.AddTemplate<OpenWalletViewModel, OpenWalletView>("OpenWallet");
services.AddScoped<LockerViewModelConfiguration>();
services.AddScoped<WalletViewModelConfiguration>();
services.AddTemplate<LockerViewModel, LockerView>("Locker");
services.AddTemplate<WalletViewModel, WalletView>("Wallet");
services.AddTemplate<ItemCollectionViewModel, ItemCollectionView>("ContentItemCollection");
services.AddHandler<SynchronizeItemViewModelHandler>();
services.AddTemplate<LockerHeaderViewModel, LockerHeaderView>("LockerHeader");
services.AddTemplate<WalletHeaderViewModel, WalletHeaderView>("WalletHeader");
services.AddTemplate<BackActionViewModel, BackActionView>();
services.AddTemplate<CreateItemActionViewModel, CreateItemActionView>();
services.AddTemplate<SearchLockerActionViewModel, SearchLockerActionView>();
services.AddTemplate<SearchWalletActionViewModel, SearchWalletActionView>();
services.AddTemplate<ItemCategoryCollectionViewModel, ItemCategoryCollectionView>("ItemCategoryCollection");
services.AddTemplate<ItemCategoryNavigationViewModel, ItemCategoryNavigationView>();
@@ -191,11 +191,11 @@ public partial class App : Application
});
})!);
services.AddTransient<ILockerFactory, LockerFactory>();
services.AddHandler<CreateLockerHandler>();
services.AddTransient<IWalletFactory, WalletFactory>();
services.AddHandler<CreateWalletHandler>();
services.AddSingleton<ILockerHostCollection, LockerHostCollection>();
services.AddInitializer<LockerInitializer>();
services.AddSingleton<IWalletHostCollection, WalletHostCollection>();
services.AddInitializer<WalletInitializer>();
services.AddTemplate<MainViewModel, MainView>("Main");
services.AddHandler<SynchronizeMainViewModelHandler>();
@@ -205,8 +205,8 @@ public partial class App : Application
services.AddTemplate<ManageNavigationViewModel, ManageNavigationView>();
services.AddTemplate<ManageViewModel, ManageView>("Manage");
services.AddTemplate<CreateLockerNavigationViewModel, CreateLockerNavigationView>();
services.AddTemplate<CreateLockerViewModel, CreateLockerView>("CreateLocker");
services.AddTemplate<CreateWalletNavigationViewModel, CreateWalletNavigationView>();
services.AddTemplate<CreateWalletViewModel, CreateWalletView>("CreateWallet");
})
.Build();
@@ -14,7 +14,7 @@
<ComparisonCondition LeftOperand="{Binding Activated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Locker">
<NavigateAction Region="Main" Route="Wallet">
<Parameter Key="Filter" Value="{Binding Filter}" />
</NavigateAction>
</ConditionAction>
+14 -14
View File
@@ -58,11 +58,11 @@
<Compile Update="ConfirmItemActionView.axaml.cs">
<DependentUpon>ConfirmItemActionView.axaml</DependentUpon>
</Compile>
<Compile Update="CreateLockerNavigationView.axaml.cs">
<DependentUpon>CreateLockerNavigationView.axaml</DependentUpon>
<Compile Update="CreateWalletNavigationView.axaml.cs">
<DependentUpon>CreateWalletNavigationView.axaml</DependentUpon>
</Compile>
<Compile Update="CreateLockerView.axaml.cs">
<DependentUpon>CreateLockerView.axaml</DependentUpon>
<Compile Update="CreateWalletView.axaml.cs">
<DependentUpon>CreateWalletView.axaml</DependentUpon>
</Compile>
<Compile Update="DismissItemActionView.axaml.cs">
<DependentUpon>DismissItemActionView.axaml</DependentUpon>
@@ -85,14 +85,14 @@
<Compile Update="MaskedTextEntryView.axaml.cs">
<DependentUpon>MaskedTextEntryView.axaml</DependentUpon>
</Compile>
<Compile Update="OpenLockerView.axaml.cs">
<DependentUpon>OpenLockerView.axaml</DependentUpon>
<Compile Update="OpenWalletView.axaml.cs">
<DependentUpon>OpenWalletView.axaml</DependentUpon>
</Compile>
<Compile Update="ManageNavigationView.axaml.cs">
<DependentUpon>ManageNavigationView.axaml</DependentUpon>
</Compile>
<Compile Update="LockerHeaderView.axaml.cs">
<DependentUpon>LockerHeaderView.axaml</DependentUpon>
<Compile Update="WalletHeaderView.axaml.cs">
<DependentUpon>WalletHeaderView.axaml</DependentUpon>
</Compile>
<Compile Update="ItemNavigationView.axaml.cs">
<DependentUpon>ItemNavigationView.axaml</DependentUpon>
@@ -100,14 +100,14 @@
<Compile Update="ItemView.axaml.cs">
<DependentUpon>ItemView.axaml</DependentUpon>
</Compile>
<Compile Update="LockerNavigationView.axaml.cs">
<DependentUpon>LockerNavigationView.axaml</DependentUpon>
<Compile Update="WalletNavigationView.axaml.cs">
<DependentUpon>WalletNavigationView.axaml</DependentUpon>
</Compile>
<Compile Update="LockerView.axaml.cs">
<DependentUpon>LockerView.axaml</DependentUpon>
<Compile Update="WalletView.axaml.cs">
<DependentUpon>WalletView.axaml</DependentUpon>
</Compile>
<Compile Update="SearchLockerActionView.axaml.cs">
<DependentUpon>SearchLockerActionView.axaml</DependentUpon>
<Compile Update="SearchWalletActionView.axaml.cs">
<DependentUpon>SearchWalletActionView.axaml</DependentUpon>
</Compile>
</ItemGroup>
</Project>
@@ -1,9 +0,0 @@
using Toolkit.UI.Controls.Avalonia;
namespace Bitvault.Avalonia;
public partial class CreateLockerNavigationView : SettingsExpander
{
public CreateLockerNavigationView() =>
InitializeComponent();
}
@@ -1,5 +1,5 @@
<SettingsExpander
x:Class="Bitvault.Avalonia.CreateLockerNavigationView"
x:Class="Bitvault.Avalonia.CreateWalletNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Description="Keep organized by separating your things into vaults."
@@ -8,7 +8,7 @@
<Button MinWidth="132" Content="Create vault">
<Interaction.Behaviors>
<EventTriggerBehavior EventName="Click">
<NavigateAction Region="self" Route="CreateLocker" />
<NavigateAction Region="self" Route="CreateWallet" />
</EventTriggerBehavior>
</Interaction.Behaviors>
</Button>
@@ -0,0 +1,9 @@
using Toolkit.UI.Controls.Avalonia;
namespace Bitvault.Avalonia;
public partial class CreateWalletNavigationView : SettingsExpander
{
public CreateWalletNavigationView() =>
InitializeComponent();
}
@@ -1,10 +1,10 @@
<ContentDialog
x:Class="Bitvault.Avalonia.CreateLockerView"
x:Class="Bitvault.Avalonia.CreateWalletView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
Title="Create vault"
x:DataType="vm:CreateLockerViewModel"
x:DataType="vm:CreateWalletViewModel"
CloseButtonText="Cancel"
PrimaryButtonText="Create">
<StackPanel Width="400">
@@ -2,8 +2,8 @@ using Toolkit.UI.Controls.Avalonia;
namespace Bitvault.Avalonia;
public partial class CreateLockerView : ContentDialog
public partial class CreateWalletView : ContentDialog
{
public CreateLockerView() =>
public CreateWalletView() =>
InitializeComponent();
}
+1 -1
View File
@@ -19,7 +19,7 @@
<Interaction.Behaviors>
<AttachedBehaviour>
<NavigateRegionAction Name="Main">
<NavigateAction Region="Main" Route="Locker" />
<NavigateAction Region="Main" Route="Wallet" />
</NavigateRegionAction>
</AttachedBehaviour>
</Interaction.Behaviors>
+1 -1
View File
@@ -2,7 +2,7 @@
x:Class="Bitvault.Avalonia.ManageNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Content="Manage Lockers">
Content="Manage Wallets">
<Interaction.Behaviors>
<EventTriggerBehavior EventName="Tapped">
<NavigateAction Region="Main" Route="Manage" />
@@ -1,9 +1,9 @@
<UserControl
x:Class="Bitvault.Avalonia.OpenLockerView"
x:Class="Bitvault.Avalonia.OpenWalletView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
x:DataType="vm:OpenLockerViewModel">
x:DataType="vm:OpenWalletViewModel">
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Center"
@@ -2,8 +2,8 @@ using Avalonia.Controls;
namespace Bitvault.Avalonia;
public partial class OpenLockerView : UserControl
public partial class OpenWalletView : UserControl
{
public OpenLockerView() =>
public OpenWalletView() =>
InitializeComponent();
}
@@ -1,9 +0,0 @@
using Avalonia.Controls;
namespace Bitvault.Avalonia;
public partial class SearchLockerActionView : UserControl
{
public SearchLockerActionView() =>
InitializeComponent();
}
@@ -1,9 +1,9 @@
<UserControl
x:Class="Bitvault.Avalonia.SearchLockerActionView"
x:Class="Bitvault.Avalonia.SearchWalletActionView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
x:DataType="vm:SearchLockerActionViewModel">
x:DataType="vm:SearchWalletActionViewModel">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
@@ -0,0 +1,9 @@
using Avalonia.Controls;
namespace Bitvault.Avalonia;
public partial class SearchWalletActionView : UserControl
{
public SearchWalletActionView() =>
InitializeComponent();
}
@@ -14,7 +14,7 @@
<ComparisonCondition LeftOperand="{Binding Activated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Locker">
<NavigateAction Region="Main" Route="Wallet">
<Parameter Key="Filter" Value="{Binding Filter}" />
</NavigateAction>
</ConditionAction>
@@ -1,9 +1,9 @@
<UserControl
x:Class="Bitvault.Avalonia.LockerHeaderView"
x:Class="Bitvault.Avalonia.WalletHeaderView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
x:DataType="vm:LockerHeaderViewModel">
x:DataType="vm:WalletHeaderViewModel">
<ItemsControl ItemTemplate="{ReflectionBinding Template}" ItemsSource="{Binding}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
@@ -2,8 +2,8 @@ using Avalonia.Controls;
namespace Bitvault.Avalonia;
public partial class LockerHeaderView : UserControl
public partial class WalletHeaderView : UserControl
{
public LockerHeaderView() =>
public WalletHeaderView() =>
InitializeComponent();
}
@@ -1,11 +1,11 @@
<NavigationViewItem
x:Class="Bitvault.Avalonia.LockerNavigationView"
x:Class="Bitvault.Avalonia.WalletNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:vm="using:Bitvault"
x:Name="NavigationViewItem"
x:DataType="vm:LockerNavigationViewModel"
x:DataType="vm:WalletNavigationViewModel"
Content="{Binding Name}"
IsExpanded="{Binding Expanded}"
MenuItemsSource="{Binding}"
@@ -19,7 +19,7 @@
<ComparisonCondition LeftOperand="{Binding Selected}" RightOperand="True" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="OpenLocker">
<NavigateAction Region="Main" Route="OpenWallet">
<Parameter Key="Name" Value="{Binding Name}" />
</NavigateAction>
<ChangePropertyAction
@@ -49,7 +49,7 @@
<ComparisonCondition LeftOperand="{Binding Opened}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="OpenLocker">
<NavigateAction Region="Main" Route="OpenWallet">
<Parameter Key="Name" Value="{Binding Name}" />
</NavigateAction>
</ConditionAction>
@@ -60,7 +60,7 @@
<ComparisonCondition LeftOperand="{Binding Activated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Locker" />
<NavigateAction Region="Main" Route="Wallet" />
<InvokeNavigationViewItemAction />
</ConditionAction>
</AttachedBehaviour>
@@ -71,7 +71,7 @@
<ComparisonCondition LeftOperand="{Binding Opened}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="OpenLocker">
<NavigateAction Region="Main" Route="OpenWallet">
<Parameter Key="Name" Value="{Binding Name}" />
</NavigateAction>
</ConditionAction>
@@ -82,7 +82,7 @@
<ComparisonCondition LeftOperand="{Binding Activated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Locker" />
<NavigateAction Region="Main" Route="Wallet" />
<InvokeNavigationViewItemAction />
</ConditionAction>
</AttachedEventTriggerBehaviour>
@@ -2,8 +2,8 @@ using Toolkit.UI.Controls.Avalonia;
namespace Bitvault.Avalonia;
public partial class LockerNavigationView : NavigationViewItem
public partial class WalletNavigationView : NavigationViewItem
{
public LockerNavigationView() =>
public WalletNavigationView() =>
InitializeComponent();
}
@@ -1,9 +1,9 @@
<UserControl
x:Class="Bitvault.Avalonia.LockerView"
x:Class="Bitvault.Avalonia.WalletView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
x:DataType="vm:LockerViewModel">
x:DataType="vm:WalletViewModel">
<Grid
x:Name="Container"
ColumnDefinitions="320,Auto,*,Auto"
@@ -17,7 +17,7 @@
<ContentControl VerticalAlignment="Center">
<Interaction.Behaviors>
<AttachedBehaviour>
<NavigateAction Region="{Binding $self}" Route="LockerHeader" />
<NavigateAction Region="{Binding $self}" Route="WalletHeader" />
</AttachedBehaviour>
</Interaction.Behaviors>
</ContentControl>
@@ -4,9 +4,9 @@ using FluentAvalonia.UI.Windowing;
namespace Bitvault.Avalonia;
public partial class LockerView : UserControl
public partial class WalletView : UserControl
{
public LockerView() => InitializeComponent();
public WalletView() => InitializeComponent();
protected override void OnLoaded(RoutedEventArgs args)
{