From ccc8e92310aeb128510a48b6a6a29e0a48a0a005 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 04:26:23 +0000 Subject: [PATCH 01/15] Bump PeyrSharp.Core from 1.9.0.2309 to 1.10.0.2310 in /InternetTest Bumps [PeyrSharp.Core](https://github.com/DevyusCode/PeyrSharp) from 1.9.0.2309 to 1.10.0.2310. - [Release notes](https://github.com/DevyusCode/PeyrSharp/releases) - [Commits](https://github.com/DevyusCode/PeyrSharp/compare/1.9.0.2309...1.10.0.2310) --- updated-dependencies: - dependency-name: PeyrSharp.Core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- InternetTest/InternetTest/InternetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InternetTest/InternetTest/InternetTest.csproj b/InternetTest/InternetTest/InternetTest.csproj index a168873..6b81e04 100644 --- a/InternetTest/InternetTest/InternetTest.csproj +++ b/InternetTest/InternetTest/InternetTest.csproj @@ -37,7 +37,7 @@ - + From 0a2738846b74ed08ff019967885d425155411c54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 08:25:26 +0000 Subject: [PATCH 02/15] Bump PeyrSharp.Env from 1.9.0.2309 to 1.10.0.2310 in /InternetTest Bumps [PeyrSharp.Env](https://github.com/DevyusCode/PeyrSharp) from 1.9.0.2309 to 1.10.0.2310. - [Release notes](https://github.com/DevyusCode/PeyrSharp/releases) - [Commits](https://github.com/DevyusCode/PeyrSharp/compare/1.9.0.2309...1.10.0.2310) --- updated-dependencies: - dependency-name: PeyrSharp.Env dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- InternetTest/InternetTest/InternetTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InternetTest/InternetTest/InternetTest.csproj b/InternetTest/InternetTest/InternetTest.csproj index 6b81e04..be9bdd2 100644 --- a/InternetTest/InternetTest/InternetTest.csproj +++ b/InternetTest/InternetTest/InternetTest.csproj @@ -38,7 +38,7 @@ - + From 4b548382cf15bb1d1a69b2224f938c4ae1edb0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 26 Oct 2023 10:33:47 +0200 Subject: [PATCH 03/15] Fixed wrong adapter icon (#495) --- .../Windows/AdapterWindow.xaml.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/InternetTest/InternetTest/Windows/AdapterWindow.xaml.cs b/InternetTest/InternetTest/Windows/AdapterWindow.xaml.cs index 6314de4..1a67634 100644 --- a/InternetTest/InternetTest/Windows/AdapterWindow.xaml.cs +++ b/InternetTest/InternetTest/Windows/AdapterWindow.xaml.cs @@ -23,19 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ using InternetTest.Classes; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Net.NetworkInformation; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Shapes; namespace InternetTest.Windows { @@ -56,6 +45,17 @@ private void InitUI() { NameTxt.Text = AdapterInfo.Name; InfoTxt.Text = AdapterInfo.ToFormattedString(); + AdapterIcon.Text = AdapterInfo.NetworkInterfaceType switch + { + NetworkInterfaceType.Tunnel => "\uF18E", + NetworkInterfaceType.Ethernet => "\uFB32", + NetworkInterfaceType.Ethernet3Megabit => "\uFB32", + NetworkInterfaceType.FastEthernetFx => "\uFB32", + NetworkInterfaceType.FastEthernetT => "\uFB32", + NetworkInterfaceType.GigabitEthernet => "\uFB32", + _ => "\uF8AC" + }; + HeadTxt.Text = $"{Properties.Resources.Name}\n" + $"{Properties.Resources.InterfaceType}\n" + $"{Properties.Resources.Status}\n" + From 32016929a938074964cfacab3d66779f7861be79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 26 Oct 2023 10:41:09 +0200 Subject: [PATCH 04/15] Added translations (#496) --- .../InternetTest/Properties/Resources.Designer.cs | 9 +++++++++ .../InternetTest/Properties/Resources.en-US.resx | 3 +++ .../InternetTest/Properties/Resources.fr-FR.resx | 3 +++ .../InternetTest/Properties/Resources.it-IT.resx | 3 +++ InternetTest/InternetTest/Properties/Resources.resx | 3 +++ .../InternetTest/Properties/Resources.zh-CN.resx | 3 +++ 6 files changed, 24 insertions(+) diff --git a/InternetTest/InternetTest/Properties/Resources.Designer.cs b/InternetTest/InternetTest/Properties/Resources.Designer.cs index 50dcb2a..136a0c6 100644 --- a/InternetTest/InternetTest/Properties/Resources.Designer.cs +++ b/InternetTest/InternetTest/Properties/Resources.Designer.cs @@ -1137,6 +1137,15 @@ public static string LocateIPInfo { } } + /// + /// Looks up a localized string similar to Locate my IP on start. + /// + public static string LocateMyIpOnStart { + get { + return ResourceManager.GetString("LocateMyIpOnStart", resourceCulture); + } + } + /// /// Looks up a localized string similar to Longitude. /// diff --git a/InternetTest/InternetTest/Properties/Resources.en-US.resx b/InternetTest/InternetTest/Properties/Resources.en-US.resx index 6291ba5..7dff709 100644 --- a/InternetTest/InternetTest/Properties/Resources.en-US.resx +++ b/InternetTest/InternetTest/Properties/Resources.en-US.resx @@ -888,4 +888,7 @@ Absolutely NO data is sent to Léo Corporation. Show disabled + + Locate my IP on start + \ No newline at end of file diff --git a/InternetTest/InternetTest/Properties/Resources.fr-FR.resx b/InternetTest/InternetTest/Properties/Resources.fr-FR.resx index d2a5e0e..ca168f5 100644 --- a/InternetTest/InternetTest/Properties/Resources.fr-FR.resx +++ b/InternetTest/InternetTest/Properties/Resources.fr-FR.resx @@ -888,4 +888,7 @@ Absolument AUCUNE donnée n'est envoyée à Léo Corporation. Afficher désactivés + + Localiser mon IP lors du démarrage + \ No newline at end of file diff --git a/InternetTest/InternetTest/Properties/Resources.it-IT.resx b/InternetTest/InternetTest/Properties/Resources.it-IT.resx index 5b236cf..464380f 100644 --- a/InternetTest/InternetTest/Properties/Resources.it-IT.resx +++ b/InternetTest/InternetTest/Properties/Resources.it-IT.resx @@ -888,4 +888,7 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation. Visualizza disabilitato + + Individuare il mio IP all'avvio + \ No newline at end of file diff --git a/InternetTest/InternetTest/Properties/Resources.resx b/InternetTest/InternetTest/Properties/Resources.resx index 3d8b0b1..d838f30 100644 --- a/InternetTest/InternetTest/Properties/Resources.resx +++ b/InternetTest/InternetTest/Properties/Resources.resx @@ -888,4 +888,7 @@ Absolutely NO data is sent to Léo Corporation. Show disabled + + Locate my IP on start + \ No newline at end of file diff --git a/InternetTest/InternetTest/Properties/Resources.zh-CN.resx b/InternetTest/InternetTest/Properties/Resources.zh-CN.resx index 4d52c74..6e173e4 100644 --- a/InternetTest/InternetTest/Properties/Resources.zh-CN.resx +++ b/InternetTest/InternetTest/Properties/Resources.zh-CN.resx @@ -879,4 +879,7 @@ 显示禁用的适配器 + + 在启动时定位我的 IP + \ No newline at end of file From 36ccf88a7e88941d693854d486efd9be74a7988d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 26 Oct 2023 10:41:44 +0200 Subject: [PATCH 05/15] Added the possibility to disable IP location on start (#496) --- InternetTest/InternetTest/Classes/Settings.cs | 3 +++ InternetTest/InternetTest/Pages/LocateIpPage.xaml.cs | 2 +- InternetTest/InternetTest/Pages/MyIpPage.xaml.cs | 2 +- InternetTest/InternetTest/Pages/SettingsPage.xaml | 12 +++++++++++- InternetTest/InternetTest/Pages/SettingsPage.xaml.cs | 7 +++++++ 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/InternetTest/InternetTest/Classes/Settings.cs b/InternetTest/InternetTest/Classes/Settings.cs index 606054b..81b9537 100644 --- a/InternetTest/InternetTest/Classes/Settings.cs +++ b/InternetTest/InternetTest/Classes/Settings.cs @@ -52,6 +52,7 @@ public Settings() TraceRouteMaxHops = 30; TraceRouteMaxTimeOut = 5000; MainWindowSize = (950, 600); + LaunchIpLocationOnStart = true; } public Themes Theme { get; set; } @@ -72,6 +73,7 @@ public Settings() public int? TraceRouteMaxHops { get; set; } public int? TraceRouteMaxTimeOut { get; set; } public (double, double)? MainWindowSize { get; set; } + public bool? LaunchIpLocationOnStart { get; set; } } public static class SettingsManager @@ -111,6 +113,7 @@ public static Settings Load() settings.TraceRouteMaxHops ??= 30; settings.TraceRouteMaxTimeOut ??= 5000; settings.MainWindowSize ??= (950, 600); + settings.LaunchIpLocationOnStart ??= true; return settings; } diff --git a/InternetTest/InternetTest/Pages/LocateIpPage.xaml.cs b/InternetTest/InternetTest/Pages/LocateIpPage.xaml.cs index 62fb7b3..9302e88 100644 --- a/InternetTest/InternetTest/Pages/LocateIpPage.xaml.cs +++ b/InternetTest/InternetTest/Pages/LocateIpPage.xaml.cs @@ -53,7 +53,7 @@ private async void InitUI() TitleTxt.Text = $"{Properties.Resources.IPTools} > {Properties.Resources.LocateIP}"; try { - if (await Internet.IsAvailableAsync()) + if (Global.Settings.LaunchIpLocationOnStart ?? true && await Internet.IsAvailableAsync()) { LocateIP(""); // Get the current IP of the user } diff --git a/InternetTest/InternetTest/Pages/MyIpPage.xaml.cs b/InternetTest/InternetTest/Pages/MyIpPage.xaml.cs index 77910a6..af28c42 100644 --- a/InternetTest/InternetTest/Pages/MyIpPage.xaml.cs +++ b/InternetTest/InternetTest/Pages/MyIpPage.xaml.cs @@ -49,7 +49,7 @@ private async void InitUI() { try { - if (await Internet.IsAvailableAsync()) + if (Global.Settings.LaunchIpLocationOnStart ?? true && await Internet.IsAvailableAsync()) { GetMyIP(); // Locate the current IP } diff --git a/InternetTest/InternetTest/Pages/SettingsPage.xaml b/InternetTest/InternetTest/Pages/SettingsPage.xaml index 605290d..3c49ad9 100644 --- a/InternetTest/InternetTest/Pages/SettingsPage.xaml +++ b/InternetTest/InternetTest/Pages/SettingsPage.xaml @@ -8,7 +8,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Title="SettingsPage" d:Background="White" - d:DesignHeight="450" + d:DesignHeight="1450" d:DesignWidth="800" FontFamily="../Fonts/#Hauora" Foreground="{Binding Source={StaticResource Foreground1}}" @@ -467,6 +467,16 @@ Foreground="{Binding Source={StaticResource Foreground1}}" Style="{DynamicResource CheckBoxStyle1}" Unchecked="TestOnStartChk_Checked" /> + Date: Thu, 26 Oct 2023 11:06:46 +0200 Subject: [PATCH 06/15] Added Filter Button style (#497) --- InternetTest/InternetTest/App.xaml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/InternetTest/InternetTest/App.xaml b/InternetTest/InternetTest/App.xaml index ee3f823..185f26e 100644 --- a/InternetTest/InternetTest/App.xaml +++ b/InternetTest/InternetTest/App.xaml @@ -11,6 +11,52 @@ +