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