Skip to content

Commit

Permalink
Feature: Dashboard - IP Geolocation & DNS API (#2392)
Browse files Browse the repository at this point in the history
* Feature: IP Geolocation API

* Feature: IP DNS Api added

* Chore: Rename converter

* Feature: IP Geo / DNS Api

* Feature: Dashboard Geo & DNS Api

* Fix: Language string

* Feature: Dashboard Geo & DNS Api

* Feature: Dashboard Geo & DNS Api

* Docs: #2392

* Feature: Dashboard Geo & DNS Api

* Feature: ScrollViewer added

* Feature: Loading indicator added

* Docs: DNS resolver & Geo IP

* Feature: Implement rate limit

* Docs: Update comment

* Feature: IP Geolocation & DNS resolver

* Feature: Implement error message & refactoring
  • Loading branch information
BornToBeRoot authored Jul 8, 2023
1 parent 1d5f0d2 commit ba07cdb
Show file tree
Hide file tree
Showing 73 changed files with 2,067 additions and 374 deletions.
4 changes: 2 additions & 2 deletions Source/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("2023.6.27.1")]
[assembly: AssemblyFileVersion("2023.6.27.1")]
[assembly: AssemblyVersion("2023.7.4.3")]
[assembly: AssemblyFileVersion("2023.7.4.3")]
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

namespace NETworkManager.Converters;

public sealed class NullableDateTimeToStringConverter : IValueConverter
public sealed class DoubleToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is DateTime time)
return time;
if (value == null)
return "-/-";

return "-/-";
double.TryParse(value.ToString(), out var doubleValue);

return doubleValue == 0 ? "-/-" : doubleValue.ToString();
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace NETworkManager.Converters;

public sealed class IntZeroReverseToVisibilityCollapsedConverter : IValueConverter
public sealed class IntNotZeroToVisibilityCollapsedConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace NETworkManager.Converters;

public sealed class NullOrEmptyToBoolConverter : IValueConverter
public sealed class StringNullOrEmptyToBoolConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace NETworkManager.Converters;

public sealed class NullOrEmptyToStringConverter : IValueConverter
public sealed class StringNullOrEmptyToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static class ExternalServicesManager
/// </summary>
public static List<ExternalServicesInfo> List => new()
{
new ExternalServicesInfo("ipify", "https://www.ipify.org/", Localization.Resources.Strings.ExternalService_ipify_Description)
new ExternalServicesInfo("ip-api", "https://ip-api.com/", Localization.Resources.Strings.ExternalService_ip_api_Description),
new ExternalServicesInfo("ipify", "https://www.ipify.org/", Localization.Resources.Strings.ExternalService_ipify_Description),
};
}
Loading

0 comments on commit ba07cdb

Please sign in to comment.