From db048f7463b415eb3384ca363354e28bb3bfac9f Mon Sep 17 00:00:00 2001 From: SongSongso <694044699@qq.com> Date: Wed, 19 Jul 2023 19:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7Misc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/Styling/Controls/Stepper.axaml | 94 +-- .../UI/Views/Controls/Widgets/Stepper.cs | 46 +- .../Abstractions/IAuthenticatorImport.cs | 10 + .../Models/AuthenticatorFileImportBase.cs | 146 ++++ .../Models/AuthenticatorImportBase.cs | 18 + .../Models/AuthenticatorSdaFileImport.cs | 68 ++ .../Models/AuthenticatorSteamGuardImport.cs | 18 + .../Models/AuthenticatorSteamLoginImport.cs | 23 + .../AuthenticatorWattToolKitV1Import.cs | 69 ++ .../AuthenticatorWattToolKitV2Import.cs | 57 ++ .../Models/AuthenticatorWinAuthFileImport.cs | 208 +++++ .../Plugins/Plugin.cs | 2 +- .../ViewModels/AuthenticatorPageViewModel.cs | 24 +- .../AuthenticatorSteamGuardViewModel.cs | 141 ++++ .../ViewModels/SteamLoginImportViewModel.cs | 1 - .../ViewModels/SteamOtherImportViewModel.cs | 748 ------------------ .../Views/Pages/AuthenticatorHomePage.axaml | 2 +- .../Views/Pages/AuthenticatorImportPage.axaml | 11 + .../Pages/AuthenticatorImportPage.axaml.cs | 18 + .../UI/Views/Pages/MainFramePage.axaml | 46 ++ .../UI/Views/Pages/MainFramePage.axaml.cs | 41 + .../UI/Views/Pages/SteamLoginImportPage.axaml | 434 +++++----- .../UI/Views/Pages/SteamOtherImportPage.axaml | 44 -- .../Views/Pages/SteamOtherImportPage.axaml.cs | 19 - 24 files changed, 1175 insertions(+), 1113 deletions(-) create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/Abstractions/IAuthenticatorImport.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorFileImportBase.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorImportBase.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorSdaFileImport.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorSteamGuardImport.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorSteamLoginImport.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorWattToolKitV1Import.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorWattToolKitV2Import.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/Models/AuthenticatorWinAuthFileImport.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/AuthenticatorSteamGuardViewModel.cs delete mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/SteamOtherImportViewModel.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/AuthenticatorImportPage.axaml create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/AuthenticatorImportPage.axaml.cs create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/MainFramePage.axaml create mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/MainFramePage.axaml.cs delete mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/SteamOtherImportPage.axaml delete mode 100644 src/BD.WTTS.Client.Plugins.Authenticator/UI/Views/Pages/SteamOtherImportPage.axaml.cs diff --git a/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/Stepper.axaml b/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/Stepper.axaml index c7260a9fe..1cfcd78a6 100644 --- a/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/Stepper.axaml +++ b/src/BD.WTTS.Client.Avalonia/UI/Styling/Controls/Stepper.axaml @@ -1,8 +1,8 @@ + xmlns:ui="using:FluentAvalonia.UI.Controls" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -11,16 +11,16 @@ - + + IsSkip="True" + Title="Title2"> - + @@ -43,62 +43,64 @@ + VerticalAlignment="{TemplateBinding VerticalContentAlignment}"> + IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsFinish, Mode=OneWay}" + VerticalAlignment="Center"> + CornerRadius="25" + Height="50" + Margin="6" + Width="50"> + Text="你已经完成了所有步骤~" + VerticalAlignment="Center" /> + Grid.Row="0" + IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=!IsFinish, Mode=OneWay}" + Margin="0,0,0,5"> + ContentTemplate="{TemplateBinding SelectedContentTemplate}" + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" + Margin="{TemplateBinding Padding}" + Name="PART_SelectedContentHost" + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />