mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-05 13:18:14 +03:00
Code clean
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
using System.Reflection;
|
||||
using ServiceLib.Enums;
|
||||
using ServiceLib.Manager;
|
||||
using ServiceLib.Models;
|
||||
|
||||
namespace ServiceLib.Tests.CoreConfig;
|
||||
|
||||
internal static class CoreConfigTestFactory
|
||||
|
||||
@@ -716,7 +716,6 @@ public class CoreConfigSingboxServiceTests
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public async Task GenerateClientConfigContent_CustomOutbound_ShouldReplaceWithUserCustomOutboundJson()
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ public class CoreConfigV2rayServiceTests
|
||||
.Select(item => item!.GetValue<string>())
|
||||
.Should().BeEquivalentTo(["a=1", "b=2"]);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public async Task GenerateClientConfigContent_PolicyGroup_ShouldExpandChildrenAndBuildBalancer()
|
||||
{
|
||||
|
||||
@@ -43,9 +43,9 @@ public class McBeService : IUdpTest
|
||||
{
|
||||
// 0x1c | client alive time in ms (recorded from previous ping) |
|
||||
// server GUID | Magic | string length | Edition
|
||||
//
|
||||
//
|
||||
// Edition Example:
|
||||
//
|
||||
//
|
||||
// MCPE;Dedicated Server;527;1.19.1;0;10;13253860892328930865;Bedrock level;Survival;1;19132;19133;
|
||||
if (mcbeResponseBytes.Length < 48)
|
||||
{
|
||||
|
||||
Generated
+1
-1
@@ -941,7 +941,7 @@ namespace ServiceLib.Resx {
|
||||
return ResourceManager.GetString("menuCheckAndUpdate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Only Check 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -148,7 +148,6 @@ public partial class AddServerWindow : WindowBase<AddServerViewModel>
|
||||
this.Bind(ViewModel, vm => vm.MasquePath, v => v.txtPath14.Text).DisposeWith(currentTypeDisposables);
|
||||
this.Bind(ViewModel, vm => vm.MasqueHeaders, v => v.txtHttpHeaders14.Text).DisposeWith(currentTypeDisposables);
|
||||
break;
|
||||
|
||||
}
|
||||
})
|
||||
.DisposeWith(disposables);
|
||||
@@ -202,7 +201,6 @@ public partial class AddServerWindow : WindowBase<AddServerViewModel>
|
||||
this.BindCommand(ViewModel, vm => vm.FetchCertChainCmd, v => v.btnFetchCertChain).DisposeWith(disposables);
|
||||
this.BindCommand(ViewModel, vm => vm.SaveCmd, v => v.btnSave).DisposeWith(disposables);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void InitializeData(ProfileItem profileItem)
|
||||
|
||||
@@ -439,6 +439,7 @@ public partial class ProfilesView : ReactiveUserControl<ProfilesViewModel>
|
||||
|
||||
private static readonly DataFormat<ProfileItemModel> LstProfilesRowFormat =
|
||||
DataFormat.CreateInProcessFormat<ProfileItemModel>("LstProfilesRow");
|
||||
|
||||
private (Point, PointerPressedEventArgs)? _dragStartPoint;
|
||||
|
||||
private void LstProfiles_PointerPressed(object? sender, PointerPressedEventArgs e)
|
||||
|
||||
@@ -149,5 +149,6 @@ public partial class ProfilesSelectWindow
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Event
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user