From fd3cbbfd91ace0ceab15c3607ddcb7828f839e18 Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Thu, 20 Apr 2023 14:27:02 -0700 Subject: [PATCH] gitlab: merge .UI.Avn and .UI in to GitLab --- Git-Credential-Manager.sln | 38 --------- .../Packaging.Linux/Packaging.Linux.csproj | 1 - src/linux/Packaging.Linux/layout.sh | 10 --- src/osx/Installer.Mac/Installer.Mac.csproj | 1 - src/osx/Installer.Mac/layout.sh | 9 --- src/shared/DotnetTool/layout.sh | 8 -- .../Commands/CredentialsCommandImpl.cs | 19 ----- .../Controls/TesterWindow.axaml | 49 ------------ .../Controls/TesterWindow.axaml.cs | 67 ---------------- .../GitLab.UI.Avalonia.csproj | 30 -------- src/shared/GitLab.UI.Avalonia/Program.cs | 77 ------------------- src/shared/GitLab.UI/GitLab.UI.csproj | 14 ---- .../UI}/Commands/CredentialsCommand.cs | 0 .../UI}/ViewModels/CredentialsViewModel.cs | 0 .../UI}/Views/CredentialsView.axaml | 3 +- .../UI}/Views/CredentialsView.axaml.cs | 0 .../GitLab.UI.Windows.csproj | 2 +- .../Views/CredentialsView.xaml | 2 +- 18 files changed, 3 insertions(+), 327 deletions(-) delete mode 100644 src/shared/GitLab.UI.Avalonia/Commands/CredentialsCommandImpl.cs delete mode 100644 src/shared/GitLab.UI.Avalonia/Controls/TesterWindow.axaml delete mode 100644 src/shared/GitLab.UI.Avalonia/Controls/TesterWindow.axaml.cs delete mode 100644 src/shared/GitLab.UI.Avalonia/GitLab.UI.Avalonia.csproj delete mode 100644 src/shared/GitLab.UI.Avalonia/Program.cs delete mode 100644 src/shared/GitLab.UI/GitLab.UI.csproj rename src/shared/{GitLab.UI => GitLab/UI}/Commands/CredentialsCommand.cs (100%) rename src/shared/{GitLab.UI => GitLab/UI}/ViewModels/CredentialsViewModel.cs (100%) rename src/shared/{GitLab.UI.Avalonia => GitLab/UI}/Views/CredentialsView.axaml (97%) rename src/shared/{GitLab.UI.Avalonia => GitLab/UI}/Views/CredentialsView.axaml.cs (100%) diff --git a/Git-Credential-Manager.sln b/Git-Credential-Manager.sln index e9667b6b7..75e1254b7 100644 --- a/Git-Credential-Manager.sln +++ b/Git-Credential-Manager.sln @@ -49,10 +49,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab", "src\shared\GitLab EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.Tests", "src\shared\GitLab.Tests\GitLab.Tests.csproj", "{1AF9F7C5-FA2E-48F1-B216-4D5E9A27F393}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.UI", "src\shared\GitLab.UI\GitLab.UI.csproj", "{9AFD88E2-7E2C-46DA-9D38-4342086426D3}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.UI.Avalonia", "src\shared\GitLab.UI.Avalonia\GitLab.UI.Avalonia.csproj", "{47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitLab.UI.Windows", "src\windows\GitLab.UI.Windows\GitLab.UI.Windows.csproj", "{83EAC1F9-8E1F-41FC-8FC9-2C452452D64E}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Git-Credential-Manager.UI.Windows", "src\windows\Git-Credential-Manager.UI.Windows\Git-Credential-Manager.UI.Windows.csproj", "{01BF56EC-AAC1-4BCA-8204-EE51D968DF5C}" @@ -321,38 +317,6 @@ Global {1AF9F7C5-FA2E-48F1-B216-4D5E9A27F393}.MacRelease|Any CPU.Build.0 = Release|Any CPU {1AF9F7C5-FA2E-48F1-B216-4D5E9A27F393}.WindowsRelease|Any CPU.ActiveCfg = Release|Any CPU {1AF9F7C5-FA2E-48F1-B216-4D5E9A27F393}.WindowsRelease|Any CPU.Build.0 = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.MacDebug|Any CPU.ActiveCfg = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.MacDebug|Any CPU.Build.0 = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.Release|Any CPU.Build.0 = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.WindowsDebug|Any CPU.ActiveCfg = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.WindowsDebug|Any CPU.Build.0 = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.LinuxDebug|Any CPU.ActiveCfg = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.LinuxDebug|Any CPU.Build.0 = Debug|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.LinuxRelease|Any CPU.ActiveCfg = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.LinuxRelease|Any CPU.Build.0 = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.MacRelease|Any CPU.ActiveCfg = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.MacRelease|Any CPU.Build.0 = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.WindowsRelease|Any CPU.ActiveCfg = Release|Any CPU - {9AFD88E2-7E2C-46DA-9D38-4342086426D3}.WindowsRelease|Any CPU.Build.0 = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.MacDebug|Any CPU.ActiveCfg = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.MacDebug|Any CPU.Build.0 = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.Release|Any CPU.Build.0 = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.WindowsDebug|Any CPU.ActiveCfg = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.WindowsDebug|Any CPU.Build.0 = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.LinuxDebug|Any CPU.ActiveCfg = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.LinuxDebug|Any CPU.Build.0 = Debug|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.LinuxRelease|Any CPU.ActiveCfg = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.LinuxRelease|Any CPU.Build.0 = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.MacRelease|Any CPU.ActiveCfg = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.MacRelease|Any CPU.Build.0 = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.WindowsRelease|Any CPU.ActiveCfg = Release|Any CPU - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE}.WindowsRelease|Any CPU.Build.0 = Release|Any CPU {83EAC1F9-8E1F-41FC-8FC9-2C452452D64E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {83EAC1F9-8E1F-41FC-8FC9-2C452452D64E}.MacDebug|Any CPU.ActiveCfg = Debug|Any CPU {83EAC1F9-8E1F-41FC-8FC9-2C452452D64E}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -400,8 +364,6 @@ Global {3F015046-DAF2-4D2A-96EC-F9782F169E45} = {66722747-1B61-40E4-A89B-1AC8E6D62EA9} {570897DC-A85C-4598-B793-9A00CF710119} = {D5277A0E-997E-453A-8CB9-4EFCC8B16A29} {1AF9F7C5-FA2E-48F1-B216-4D5E9A27F393} = {D5277A0E-997E-453A-8CB9-4EFCC8B16A29} - {9AFD88E2-7E2C-46DA-9D38-4342086426D3} = {D5277A0E-997E-453A-8CB9-4EFCC8B16A29} - {47186A50-8889-4FC7-8A05-F9FCE7F8F4AE} = {D5277A0E-997E-453A-8CB9-4EFCC8B16A29} {83EAC1F9-8E1F-41FC-8FC9-2C452452D64E} = {66722747-1B61-40E4-A89B-1AC8E6D62EA9} {01BF56EC-AAC1-4BCA-8204-EE51D968DF5C} = {66722747-1B61-40E4-A89B-1AC8E6D62EA9} EndGlobalSection diff --git a/src/linux/Packaging.Linux/Packaging.Linux.csproj b/src/linux/Packaging.Linux/Packaging.Linux.csproj index 0afb03062..edb7ef314 100644 --- a/src/linux/Packaging.Linux/Packaging.Linux.csproj +++ b/src/linux/Packaging.Linux/Packaging.Linux.csproj @@ -17,7 +17,6 @@ - diff --git a/src/linux/Packaging.Linux/layout.sh b/src/linux/Packaging.Linux/layout.sh index c43e19ba2..74b76a313 100755 --- a/src/linux/Packaging.Linux/layout.sh +++ b/src/linux/Packaging.Linux/layout.sh @@ -35,7 +35,6 @@ ROOT="$( cd "$THISDIR"/../../.. ; pwd -P )" SRC="$ROOT/src" OUT="$ROOT/out" GCM_SRC="$SRC/shared/Git-Credential-Manager" -GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia" PROJ_OUT="$OUT/linux/Packaging.Linux" # Build parameters @@ -78,15 +77,6 @@ $DOTNET_ROOT/dotnet publish "$GCM_SRC" \ -p:PublishSingleFile=true \ --output="$(make_absolute "$PAYLOAD")" || exit 1 -echo "Publishing GitLab UI helper..." -$DOTNET_ROOT/dotnet publish "$GITLAB_UI_SRC" \ - --configuration="$CONFIGURATION" \ - --framework="$FRAMEWORK" \ - --runtime="$RUNTIME" \ - --self-contained=true \ - -p:PublishSingleFile=true \ - --output="$(make_absolute "$PAYLOAD")" || exit 1 - # Collect symbols echo "Collecting managed symbols..." mv "$PAYLOAD"/*.pdb "$SYMBOLOUT" || exit 1 diff --git a/src/osx/Installer.Mac/Installer.Mac.csproj b/src/osx/Installer.Mac/Installer.Mac.csproj index c108f09a3..e55f211e2 100644 --- a/src/osx/Installer.Mac/Installer.Mac.csproj +++ b/src/osx/Installer.Mac/Installer.Mac.csproj @@ -13,7 +13,6 @@ - diff --git a/src/osx/Installer.Mac/layout.sh b/src/osx/Installer.Mac/layout.sh index b3dc017c0..a95eb1f0d 100755 --- a/src/osx/Installer.Mac/layout.sh +++ b/src/osx/Installer.Mac/layout.sh @@ -22,7 +22,6 @@ OUT="$ROOT/out" INSTALLER_SRC="$SRC/osx/Installer.Mac" GCM_SRC="$SRC/shared/Git-Credential-Manager" GCM_UI_SRC="$SRC/shared/Git-Credential-Manager.UI.Avalonia" -GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia" # Build parameters FRAMEWORK=net6.0 @@ -101,14 +100,6 @@ dotnet publish "$GCM_SRC" \ --self-contained \ --output="$(make_absolute "$PAYLOAD")" || exit 1 -echo "Publishing GitLab UI helper..." -dotnet publish "$GITLAB_UI_SRC" \ - --configuration="$CONFIGURATION" \ - --framework="$FRAMEWORK" \ - --runtime="$RUNTIME" \ - --self-contained \ - --output="$(make_absolute "$PAYLOAD")" || exit 1 - # Collect symbols echo "Collecting managed symbols..." mv "$PAYLOAD"/*.pdb "$SYMBOLOUT" || exit 1 diff --git a/src/shared/DotnetTool/layout.sh b/src/shared/DotnetTool/layout.sh index 7ef96ed53..b7335abc0 100755 --- a/src/shared/DotnetTool/layout.sh +++ b/src/shared/DotnetTool/layout.sh @@ -33,7 +33,6 @@ ROOT="$( cd "$THISDIR"/../../.. ; pwd -P )" SRC="$ROOT/src" OUT="$ROOT/out" GCM_SRC="$SRC/shared/Git-Credential-Manager" -GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia" DOTNET_TOOL="shared/DotnetTool" PROJ_OUT="$OUT/$DOTNET_TOOL" @@ -69,13 +68,6 @@ $DOTNET_ROOT/dotnet publish "$GCM_SRC" \ --output="$(make_absolute "$PAYLOAD")" \ -p:UseAppHost=false || exit 1 -echo "Publishing GitLab UI helper..." -$DOTNET_ROOT/dotnet publish "$GITLAB_UI_SRC" \ - --configuration="$CONFIGURATION" \ - --framework="$FRAMEWORK" \ - --output="$(make_absolute "$PAYLOAD")" \ - -p:UseAppHost=false || exit 1 - # Collect symbols echo "Collecting managed symbols..." mv "$PAYLOAD"/*.pdb "$SYMBOLOUT" || exit 1 diff --git a/src/shared/GitLab.UI.Avalonia/Commands/CredentialsCommandImpl.cs b/src/shared/GitLab.UI.Avalonia/Commands/CredentialsCommandImpl.cs deleted file mode 100644 index cca0e50e8..000000000 --- a/src/shared/GitLab.UI.Avalonia/Commands/CredentialsCommandImpl.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; -using GitLab.UI.ViewModels; -using GitLab.UI.Views; -using GitCredentialManager; -using GitCredentialManager.UI; - -namespace GitLab.UI.Commands -{ - public class CredentialsCommandImpl : CredentialsCommand - { - public CredentialsCommandImpl(ICommandContext context) : base(context) { } - - protected override Task ShowAsync(CredentialsViewModel viewModel, CancellationToken ct) - { - return AvaloniaUi.ShowViewAsync(viewModel, GetParentHandle(), ct); - } - } -} diff --git a/src/shared/GitLab.UI.Avalonia/Controls/TesterWindow.axaml b/src/shared/GitLab.UI.Avalonia/Controls/TesterWindow.axaml deleted file mode 100644 index c524d40d1..000000000 --- a/src/shared/GitLab.UI.Avalonia/Controls/TesterWindow.axaml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - -