fix error commit

This commit is contained in:
rexmyl 2023-06-02 02:58:28 +08:00
parent 0e9464022a
commit 32b1a83b8e
10 changed files with 0 additions and 71 deletions

View file

@ -68,13 +68,10 @@ namespace v2rayN.Handler
ProfileExHandler.Instance.SetTestDelay(it.indexId, "0"); ProfileExHandler.Instance.SetTestDelay(it.indexId, "0");
ProfileExHandler.Instance.SetTestSpeed(it.indexId, "0"); ProfileExHandler.Instance.SetTestSpeed(it.indexId, "0");
break; break;
<<<<<<< HEAD
case ESpeedActionType.QuickSelect: case ESpeedActionType.QuickSelect:
UpdateFunc(it.indexId, ResUI.Speedtesting, ""); UpdateFunc(it.indexId, ResUI.Speedtesting, "");
ProfileExHandler.Instance.SetTestDelay(it.indexId, "0"); ProfileExHandler.Instance.SetTestDelay(it.indexId, "0");
break; break;
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
} }
} }
@ -99,12 +96,9 @@ namespace v2rayN.Handler
case ESpeedActionType.Mixedtest: case ESpeedActionType.Mixedtest:
Task.Run(RunMixedtestAsync); Task.Run(RunMixedtestAsync);
break; break;
<<<<<<< HEAD
case ESpeedActionType.QuickSelect: case ESpeedActionType.QuickSelect:
Task.Run(RunQuickSelectAsync); Task.Run(RunQuickSelectAsync);
break; break;
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
} }
} }
@ -346,7 +340,6 @@ namespace v2rayN.Handler
await RunSpeedTestMulti(); await RunSpeedTestMulti();
} }
<<<<<<< HEAD
private async Task RunQuickSelectAsync() private async Task RunQuickSelectAsync()
{ {
await RunRealPing(); await RunRealPing();
@ -355,8 +348,6 @@ namespace v2rayN.Handler
UpdateFunc("#", "ok"); UpdateFunc("#", "ok");
} }
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
public async Task<string> GetRealPingTime(DownloadHandle downloadHandle, IWebProxy webProxy) public async Task<string> GetRealPingTime(DownloadHandle downloadHandle, IWebProxy webProxy)
{ {
int responseTime = await downloadHandle.GetRealPingTime(_config.speedTestItem.speedPingTestUrl, webProxy, 10); int responseTime = await downloadHandle.GetRealPingTime(_config.speedTestItem.speedPingTestUrl, webProxy, 10);

View file

@ -6,11 +6,7 @@
Tcping, Tcping,
Realping, Realping,
Speedtest, Speedtest,
<<<<<<< HEAD
Mixedtest, Mixedtest,
QuickSelect QuickSelect
=======
Mixedtest
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
} }
} }

View file

@ -1627,7 +1627,6 @@ namespace v2rayN.Resx {
} }
/// <summary> /// <summary>
<<<<<<< HEAD
/// 查找类似 flash filtering 的本地化字符串。 /// 查找类似 flash filtering 的本地化字符串。
/// </summary> /// </summary>
public static string quickSelect { public static string quickSelect {
@ -1637,8 +1636,6 @@ namespace v2rayN.Resx {
} }
/// <summary> /// <summary>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
/// 查找类似 Global hotkey {0} registered failed, reason {1} 的本地化字符串。 /// 查找类似 Global hotkey {0} registered failed, reason {1} 的本地化字符串。
/// </summary> /// </summary>
public static string RegisterGlobalHotkeyFailed { public static string RegisterGlobalHotkeyFailed {

View file

@ -1009,7 +1009,6 @@
<data name="TbSettingsEnableHWA" xml:space="preserve"> <data name="TbSettingsEnableHWA" xml:space="preserve">
<value>فعال‌سازی شتاب‌دهنده سخت‌افزاری (نیاز به راه‌اندازی مجدد)</value> <value>فعال‌سازی شتاب‌دهنده سخت‌افزاری (نیاز به راه‌اندازی مجدد)</value>
</data> </data>
<<<<<<< HEAD
<data name="flashSelect" xml:space="preserve"> <data name="flashSelect" xml:space="preserve">
<value>Filtre en un clic</value> <value>Filtre en un clic</value>
</data> </data>
@ -1018,6 +1017,4 @@
一键筛选 一键筛选
Filtre en un clic</value> Filtre en un clic</value>
</data> </data>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
</root> </root>

View file

@ -1141,10 +1141,7 @@
<data name="TbRoutingRuleDomain" xml:space="preserve"> <data name="TbRoutingRuleDomain" xml:space="preserve">
<value>Domain</value> <value>Domain</value>
</data> </data>
<<<<<<< HEAD
<data name="quickSelect" xml:space="preserve"> <data name="quickSelect" xml:space="preserve">
<value>flash filtering</value> <value>flash filtering</value>
</data> </data>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
</root> </root>

View file

@ -1054,13 +1054,10 @@
<data name="TbSettingsEnableHWA" xml:space="preserve"> <data name="TbSettingsEnableHWA" xml:space="preserve">
<value>Включить аппаратное ускорение (требуется перезагрузка)</value> <value>Включить аппаратное ускорение (требуется перезагрузка)</value>
</data> </data>
<<<<<<< HEAD
<data name="flashSelect" xml:space="preserve"> <data name="flashSelect" xml:space="preserve">
<value>Фильтр одним нажатием клавиш</value> <value>Фильтр одним нажатием клавиш</value>
</data> </data>
<data name="quickSelect" xml:space="preserve"> <data name="quickSelect" xml:space="preserve">
<value>Фильтр одним нажатием клавиш</value> <value>Фильтр одним нажатием клавиш</value>
</data> </data>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
</root> </root>

View file

@ -1138,13 +1138,10 @@
<data name="TbRoutingRuleIP" xml:space="preserve"> <data name="TbRoutingRuleIP" xml:space="preserve">
<value>IP 或 IP CIDR</value> <value>IP 或 IP CIDR</value>
</data> </data>
<<<<<<< HEAD
<data name="flashSelect" xml:space="preserve"> <data name="flashSelect" xml:space="preserve">
<value>一键筛选</value> <value>一键筛选</value>
</data> </data>
<data name="quickSelect" xml:space="preserve"> <data name="quickSelect" xml:space="preserve">
<value>一键筛选</value> <value>一键筛选</value>
</data> </data>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
</root> </root>

View file

@ -30,10 +30,7 @@ namespace v2rayN.ViewModels
private CoreHandler _coreHandler; private CoreHandler _coreHandler;
private StatisticsHandler _statistics; private StatisticsHandler _statistics;
<<<<<<< HEAD
private QuickSelectHandler _quickSelectHandler; private QuickSelectHandler _quickSelectHandler;
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
private List<ProfileItem> _lstProfile; private List<ProfileItem> _lstProfile;
private string _subId = string.Empty; private string _subId = string.Empty;
private string _serverFilter = string.Empty; private string _serverFilter = string.Empty;
@ -114,10 +111,7 @@ namespace v2rayN.ViewModels
public ReactiveCommand<Unit, Unit> MoveBottomCmd { get; } public ReactiveCommand<Unit, Unit> MoveBottomCmd { get; }
//servers ping //servers ping
<<<<<<< HEAD
public ReactiveCommand<Unit, Unit> QuickSelectCmd { get; } public ReactiveCommand<Unit, Unit> QuickSelectCmd { get; }
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
public ReactiveCommand<Unit, Unit> MixedTestServerCmd { get; } public ReactiveCommand<Unit, Unit> MixedTestServerCmd { get; }
public ReactiveCommand<Unit, Unit> PingServerCmd { get; } public ReactiveCommand<Unit, Unit> PingServerCmd { get; }
@ -263,10 +257,7 @@ namespace v2rayN.ViewModels
Locator.CurrentMutable.RegisterLazySingleton(() => new NoticeHandler(snackbarMessageQueue), typeof(NoticeHandler)); Locator.CurrentMutable.RegisterLazySingleton(() => new NoticeHandler(snackbarMessageQueue), typeof(NoticeHandler));
_noticeHandler = Locator.Current.GetService<NoticeHandler>(); _noticeHandler = Locator.Current.GetService<NoticeHandler>();
_config = LazyConfig.Instance.GetConfig(); _config = LazyConfig.Instance.GetConfig();
<<<<<<< HEAD
_quickSelectHandler = new QuickSelectHandler(); _quickSelectHandler = new QuickSelectHandler();
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
//ThreadPool.RegisterWaitForSingleObject(App.ProgramStarted, OnProgramStarted, null, -1, false); //ThreadPool.RegisterWaitForSingleObject(App.ProgramStarted, OnProgramStarted, null, -1, false);
Init(); Init();
@ -405,14 +396,11 @@ namespace v2rayN.ViewModels
}, canEditRemove); }, canEditRemove);
//servers ping //servers ping
<<<<<<< HEAD
QuickSelectCmd = ReactiveCommand.Create(() => QuickSelectCmd = ReactiveCommand.Create(() =>
{ {
QuickSelect(); QuickSelect();
}); });
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
MixedTestServerCmd = ReactiveCommand.Create(() => MixedTestServerCmd = ReactiveCommand.Create(() =>
{ {
ServerSpeedtest(ESpeedActionType.Mixedtest); ServerSpeedtest(ESpeedActionType.Mixedtest);
@ -686,7 +674,6 @@ namespace v2rayN.ViewModels
})); }));
} }
<<<<<<< HEAD
private void UpdateSpeedtestAndSelectUselessResultHandler(string indexId, string delay, string speed) private void UpdateSpeedtestAndSelectUselessResultHandler(string indexId, string delay, string speed)
{ {
Application.Current.Dispatcher.Invoke((Action)(() => Application.Current.Dispatcher.Invoke((Action)(() =>
@ -727,7 +714,6 @@ namespace v2rayN.ViewModels
{ {
ite.delay = it.E; ite.delay = it.E;
ite.delayVal = $"{it.E.ToString()} {Global.DelayUnit}"; ite.delayVal = $"{it.E.ToString()} {Global.DelayUnit}";
ProfileExHandler.Instance.SetTestDelay(it.indexId, it.E.ToString());
} }
_profileItems.Replace(ite, Utils.DeepCopy(ite)); _profileItems.Replace(ite, Utils.DeepCopy(ite));
} }
@ -741,13 +727,10 @@ namespace v2rayN.ViewModels
{ {
ite.delay = int.Parse(it.getDelay(2)); ite.delay = int.Parse(it.getDelay(2));
ite.delayVal = $"{it.getDelay(2)} {Global.DelayUnit}"; ite.delayVal = $"{it.getDelay(2)} {Global.DelayUnit}";
ProfileExHandler.Instance.SetTestDelay(it.indexId, it.getDelay(2));
} }
_profileItems.Replace(ite, Utils.DeepCopy(ite)); _profileItems.Replace(ite, Utils.DeepCopy(ite));
} }
} }
SortServer(EServerColName.delayVal.ToString());
SetDefaultServer(_profileItems.First().indexId);
_noticeHandler?.SendMessage(ResUI.OperationSuccess, true); _noticeHandler?.SendMessage(ResUI.OperationSuccess, true);
_noticeHandler?.Enqueue(ResUI.OperationSuccess); _noticeHandler?.Enqueue(ResUI.OperationSuccess);
} }
@ -773,8 +756,6 @@ namespace v2rayN.ViewModels
} }
} }
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
private void SetTestResult(string indexId, string delay, string speed) private void SetTestResult(string indexId, string delay, string speed)
{ {
if (Utils.IsNullOrEmpty(indexId)) if (Utils.IsNullOrEmpty(indexId))
@ -1128,7 +1109,6 @@ namespace v2rayN.ViewModels
} }
} }
<<<<<<< HEAD
public void RemoveServerByItems(List<ProfileItem> lst) public void RemoveServerByItems(List<ProfileItem> lst)
{ {
var exists = lst.Exists(t => t.indexId == _config.indexId); var exists = lst.Exists(t => t.indexId == _config.indexId);
@ -1140,8 +1120,6 @@ namespace v2rayN.ViewModels
} }
} }
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
public void RemoveServer() public void RemoveServer()
{ {
if (GetProfileItems(out List<ProfileItem> lstSelecteds, true) < 0) if (GetProfileItems(out List<ProfileItem> lstSelecteds, true) < 0)
@ -1349,7 +1327,6 @@ namespace v2rayN.ViewModels
} }
} }
} }
<<<<<<< HEAD
public void QuickSelect() public void QuickSelect()
{ {
SelectedProfiles = _profileItems; SelectedProfiles = _profileItems;
@ -1360,8 +1337,6 @@ namespace v2rayN.ViewModels
_quickSelectHandler.clear(); _quickSelectHandler.clear();
new SpeedtestHandler(_config, _coreHandler, lstSelecteds, ESpeedActionType.QuickSelect, UpdateSpeedtestAndSelectUselessResultHandler); new SpeedtestHandler(_config, _coreHandler, lstSelecteds, ESpeedActionType.QuickSelect, UpdateSpeedtestAndSelectUselessResultHandler);
} }
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
public void ServerSpeedtest(ESpeedActionType actionType) public void ServerSpeedtest(ESpeedActionType actionType)
{ {

View file

@ -13,15 +13,9 @@
xmlns:tb="clr-namespace:H.NotifyIcon;assembly=H.NotifyIcon.Wpf" xmlns:tb="clr-namespace:H.NotifyIcon;assembly=H.NotifyIcon.Wpf"
xmlns:vms="clr-namespace:v2rayN.ViewModels" xmlns:vms="clr-namespace:v2rayN.ViewModels"
Title="v2rayN" Title="v2rayN"
<<<<<<< HEAD
Width="950" Width="950"
Height="700" Height="700"
MinWidth="950" MinWidth="950"
=======
Width="900"
Height="700"
MinWidth="900"
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
MinHeight="700" MinHeight="700"
x:TypeArguments="vms:MainWindowViewModel" x:TypeArguments="vms:MainWindowViewModel"
Background="{DynamicResource MaterialDesignPaper}" Background="{DynamicResource MaterialDesignPaper}"
@ -387,7 +381,6 @@
</Grid> </Grid>
</StackPanel> </StackPanel>
</materialDesign:PopupBox> </materialDesign:PopupBox>
<<<<<<< HEAD
<Separator/> <Separator/>
<Button x:Name="btnQuickOp" <Button x:Name="btnQuickOp"
> >
@ -399,8 +392,6 @@
<TextBlock Text="{x:Static resx:ResUI.quickSelect}" /> <TextBlock Text="{x:Static resx:ResUI.quickSelect}" />
</StackPanel> </StackPanel>
</Button> </Button>
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
</ToolBar> </ToolBar>
</ToolBarTray> </ToolBarTray>
<WrapPanel Margin="2" DockPanel.Dock="Top"> <WrapPanel Margin="2" DockPanel.Dock="Top">

View file

@ -1,9 +1,6 @@
using ReactiveUI; using ReactiveUI;
using Splat; using Splat;
<<<<<<< HEAD
using System; using System;
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
using System.ComponentModel; using System.ComponentModel;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
@ -99,10 +96,7 @@ namespace v2rayN.Views
this.BindCommand(ViewModel, vm => vm.MoveBottomCmd, v => v.menuMoveBottom).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.MoveBottomCmd, v => v.menuMoveBottom).DisposeWith(disposables);
//servers ping //servers ping
<<<<<<< HEAD
this.BindCommand(ViewModel, vm => vm.QuickSelectCmd, v => v.btnQuickOp).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.QuickSelectCmd, v => v.btnQuickOp).DisposeWith(disposables);
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
this.BindCommand(ViewModel, vm => vm.MixedTestServerCmd, v => v.menuMixedTestServer).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.MixedTestServerCmd, v => v.menuMixedTestServer).DisposeWith(disposables);
this.BindCommand(ViewModel, vm => vm.PingServerCmd, v => v.menuPingServer).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.PingServerCmd, v => v.menuPingServer).DisposeWith(disposables);
this.BindCommand(ViewModel, vm => vm.TcpingServerCmd, v => v.menuTcpingServer).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.TcpingServerCmd, v => v.menuTcpingServer).DisposeWith(disposables);
@ -638,9 +632,6 @@ namespace v2rayN.Views
} }
#endregion Drag and Drop #endregion Drag and Drop
<<<<<<< HEAD
=======
>>>>>>> bc957fea71fac743870efdaecacb22c70bef9488
} }
} }