Skip to content

Commit

Permalink
Merge pull request #559 from Leo-Corporation/vNext
Browse files Browse the repository at this point in the history
Version 8.2.1.2404
  • Loading branch information
lpeyr authored Apr 15, 2024
2 parents d4a0c20 + b203d6b commit c4484ca
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
4 changes: 2 additions & 2 deletions InternetTest/InternetTest/Classes/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public static class Global
#if NIGHTLY
private static DateTime Date => System.IO.File.GetLastWriteTime(System.Reflection.Assembly.GetEntryAssembly().Location);

public static string Version => $"8.2.0.2404-nightly{Date:yyMM.dd@HHmm}";
public static string Version => $"8.2.1.2404-nightly{Date:yyMM.dd@HHmm}";

#else
public static string Version => "8.2.0.2404";
public static string Version => "8.2.1.2404";
#endif
public static string LastVersionLink => "https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/InternetTest/7.0/Version.txt";
internal static string SynethiaPath => $@"{FileSys.AppDataPath}\Léo Corporation\InternetTest Pro\NewSynethiaConfig.json";
Expand Down
2 changes: 1 addition & 1 deletion InternetTest/InternetTest/InternetTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<UseWindowsForms>True</UseWindowsForms>
<Version>8.2.0.2404</Version>
<Version>8.2.1.2404</Version>
<Copyright>© 2024</Copyright>
<Company>Léo Corporation</Company>
<Description>Taking you to another level. InternetTest can locate IP addresses, send ping request, recover your WiFi passwords and more!</Description>
Expand Down
33 changes: 19 additions & 14 deletions InternetTest/InternetTest/Pages/RequestsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ private void SendBtn_Click(object sender, RoutedEventArgs e)
{
try
{
if (!UrlTxt.Text.Contains("http")) return;
ExecuteRequest();
}
catch (Exception ex)
Expand All @@ -74,25 +75,29 @@ private void SendBtn_Click(object sender, RoutedEventArgs e)
string _baseUrl = "";
private async void ExecuteRequest()
{
var options = new RestClientOptions(UrlTxt.Text);
var client = new RestClient(options);
var request = new RestRequest("", (Method)RequestTypeComboBox.SelectedIndex);
try
{
var options = new RestClientOptions(UrlTxt.Text);
var client = new RestClient(options);
var request = new RestRequest("", (Method)RequestTypeComboBox.SelectedIndex);

var response = await client.ExecuteAsync(request);
ResponseTxt.Text = response.Content;
var response = await client.ExecuteAsync(request);
ResponseTxt.Text = response.Content;

HeadersPanel.Children.Clear();
_headers = "";
HeadersPanel.Children.Clear();
_headers = "";

foreach (var item in response.Headers)
{
_headers += item.ToString() + "\n";
var header = item.ToString().Split("=", 2);
if (header.Length < 2) continue;
foreach (var item in response.Headers)
{
_headers += item.ToString() + "\n";
var header = item.ToString().Split("=", 2);
if (header.Length < 2) continue;

HeadersPanel.Children.Add(new TextBlock() { Text = header[0], FontWeight = FontWeights.Bold, TextWrapping = TextWrapping.Wrap, Margin = new(0, 5, 0, 0) });
HeadersPanel.Children.Add(new TextBlock() { Text = header[1], TextWrapping = TextWrapping.Wrap });
HeadersPanel.Children.Add(new TextBlock() { Text = header[0], FontWeight = FontWeights.Bold, TextWrapping = TextWrapping.Wrap, Margin = new(0, 5, 0, 0) });
HeadersPanel.Children.Add(new TextBlock() { Text = header[1], TextWrapping = TextWrapping.Wrap });
}
}
catch { }
}

private void UrlTxt_KeyUp(object sender, KeyEventArgs e)
Expand Down
18 changes: 9 additions & 9 deletions InternetTest/InternetTest/Properties/Resources.it-IT.resx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
<value>Tempo medio</value>
</data>
<data name="PingWait" xml:space="preserve">
<value>La richiesta di ping è in corso. Attendi.</value>
<value>Richiesta di ping in corso. Attendi.</value>
</data>
<data name="PingSuccess" xml:space="preserve">
<value>La richiesta ping è andata a buon fine</value>
Expand Down Expand Up @@ -733,7 +733,7 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>Velocità</value>
</data>
<data name="SpeedTestSucess" xml:space="preserve">
<value>Test velocità completato correttamente</value>
<value>Test velocità completato</value>
</data>
<data name="SpeedTestFailed" xml:space="preserve">
<value>Il test velocità è fallito</value>
Expand Down Expand Up @@ -919,7 +919,7 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>Aggiungi sito</value>
</data>
<data name="TimerDesc" xml:space="preserve">
<value>Esecuzione automatica di test per verificare se un sito web è attivo o meno.</value>
<value>Esecuzione automatica test verifica se un sito web è attivo o meno.</value>
</data>
<data name="TestAll" xml:space="preserve">
<value>Test di tutti</value>
Expand All @@ -934,7 +934,7 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>Ethernet</value>
</data>
<data name="InvalidURLMsg" xml:space="preserve">
<value>Si prega di fornire un URL valido.</value>
<value>Indica una URL valida.</value>
</data>
<data name="Unknown" xml:space="preserve">
<value>Sconosciuto</value>
Expand Down Expand Up @@ -964,7 +964,7 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>WiFi</value>
</data>
<data name="NoWiFIPasswordsFound" xml:space="preserve">
<value>Non sono state trovate password WiFi su questo dispositivo.</value>
<value>In questo dispositivo non sono state trovate password WiFi.</value>
</data>
<data name="SearchingForWiFiPasswords" xml:space="preserve">
<value>InternetTest Pro sta cercando le password WiFi.</value>
Expand All @@ -976,16 +976,16 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>Esportazione senza password</value>
</data>
<data name="WiFiExportSuccessful" xml:space="preserve">
<value>Tutte le reti WiFi sono state esportate con successo.</value>
<value>Esportazione completata di tutte le reti WiFi.</value>
</data>
<data name="DataConsumption" xml:space="preserve">
<value>Consumo di dati</value>
<value>Consumo dati</value>
</data>
<data name="Requests" xml:space="preserve">
<value>Richieste</value>
</data>
<data name="Send" xml:space="preserve">
<value>Inviare</value>
<value>Invia</value>
</data>
<data name="Response" xml:space="preserve">
<value>Risposta</value>
Expand All @@ -994,6 +994,6 @@ Assolutamente NESSUN dato verrà inviato a Léo Corporation.</value>
<value>Intestazioni</value>
</data>
<data name="Cookies" xml:space="preserve">
<value>Cookies</value>
<value>Cookie</value>
</data>
</root>

0 comments on commit c4484ca

Please sign in to comment.