From 2fd76baf2f22ad45777349ea3b09da48085ec15a Mon Sep 17 00:00:00 2001 From: next-autumn Date: Sun, 28 Feb 2021 18:22:21 +0800 Subject: [PATCH] merge --- ProxySU_Core/ProxySU_Core.csproj | 7 ++++ .../ViewModels/Developers/XrayProject.cs | 2 -- ProxySU_Core/Views/TerminalWindow.xaml | 10 +++--- ProxySU_Core/Views/TerminalWindow.xaml.cs | 20 +++-------- ProxySU_Core/Views/XrayWindow.xaml | 35 +++++++++++++++++++ ProxySU_Core/Views/XrayWindow.xaml.cs | 27 ++++++++++++++ 6 files changed, 79 insertions(+), 22 deletions(-) create mode 100644 ProxySU_Core/Views/XrayWindow.xaml create mode 100644 ProxySU_Core/Views/XrayWindow.xaml.cs diff --git a/ProxySU_Core/ProxySU_Core.csproj b/ProxySU_Core/ProxySU_Core.csproj index f54fa71..f40e48b 100644 --- a/ProxySU_Core/ProxySU_Core.csproj +++ b/ProxySU_Core/ProxySU_Core.csproj @@ -205,6 +205,9 @@ TerminalWindow.xaml + + XrayWindow.xaml + @@ -291,6 +294,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + diff --git a/ProxySU_Core/ViewModels/Developers/XrayProject.cs b/ProxySU_Core/ViewModels/Developers/XrayProject.cs index 70c2e7a..34359d5 100644 --- a/ProxySU_Core/ViewModels/Developers/XrayProject.cs +++ b/ProxySU_Core/ViewModels/Developers/XrayProject.cs @@ -24,8 +24,6 @@ namespace ProxySU_Core.ViewModels.Developers private const string ServerReverseDir = @"Templates\xray\server\09_reverse"; private const string CaddyFileDir = @"Templates\xray\caddy"; - private int randomCaddyListenPort = 8800; - public XrayProject(SshClient sshClient, XrayParameters parameters, Action writeOutput) : base(sshClient, parameters, writeOutput) { } diff --git a/ProxySU_Core/Views/TerminalWindow.xaml b/ProxySU_Core/Views/TerminalWindow.xaml index e57d59f..8ee8744 100644 --- a/ProxySU_Core/Views/TerminalWindow.xaml +++ b/ProxySU_Core/Views/TerminalWindow.xaml @@ -14,7 +14,7 @@ Foreground="LawnGreen" FontSize="14" FontFamily="Consolas" - Height="400"> + Height="320"> @@ -23,9 +23,11 @@ -