-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [danielmonettelli] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" | ||
directory: "/Mitawi/" | ||
schedule: | ||
interval: "daily" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<Shell | ||
x:Class="Mitawi.AppShell" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | ||
xmlns:view="clr-namespace:Mitawi.Views" | ||
Title="Mitawi" | ||
Shell.FlyoutBehavior="Disabled"> | ||
|
||
<Shell.Behaviors> | ||
<mct:StatusBarBehavior | ||
StatusBarColor="#11b0fd" | ||
StatusBarStyle="Default" /> | ||
</Shell.Behaviors> | ||
|
||
<ShellContent | ||
Title="Welcome" | ||
ContentTemplate="{DataTemplate view:WelcomePage}" | ||
Route="WelcomePage" /> | ||
|
||
</Shell> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Mitawi; | ||
|
||
public partial class AppShell : Shell | ||
{ | ||
public AppShell() | ||
{ | ||
InitializeComponent(); | ||
|
||
Routing.RegisterRoute(nameof(HomePage), typeof(HomePage)); | ||
Routing.RegisterRoute(nameof(HomeDetailPage), typeof(HomeDetailPage)); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
namespace Mitawi.CodeFontIcons | ||
namespace Mitawi.CodeFontIcons; | ||
|
||
internal static class CustomFontIcons | ||
{ | ||
internal static class CustomFontIcons | ||
{ | ||
public const string icon_arrow_forward_outline = "\ue800"; | ||
public const string icon_calendar_outline = "\ue801"; | ||
public const string icon_degree_symbol_outline = "\ue802"; | ||
public const string icon_location_solid = "\ue803"; | ||
public const string icon_picker_solid = "\ue804"; | ||
public const string icon_wind_outline = "\ue805"; | ||
} | ||
public const string icon_arrow_forward_outline = "\ue800"; | ||
public const string icon_calendar_outline = "\ue801"; | ||
public const string icon_degree_symbol_outline = "\ue802"; | ||
public const string icon_location_solid = "\ue803"; | ||
public const string icon_picker_solid = "\ue804"; | ||
public const string icon_wind_outline = "\ue805"; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
namespace Mitawi.Converters | ||
namespace Mitawi.Converters; | ||
|
||
public class CustomImageUrlScalingConverter : BaseConverter<object, object, object> | ||
{ | ||
public class CustomImageUrlScalingConverter : BaseConverter<object, object, object> | ||
{ | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
|
||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
{ | ||
// Image scale type in the parameter: 2(100x100approx), 4(200x200approx), 10(500x500approx) | ||
return "https://raw.githubusercontent.com/danielmonettelli/MyResources/main/OpenWeather_Icons_Redesign/" + value + "@" + parameter + "x.png"; | ||
} | ||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
Check warning on line 8 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_iOS
Check warning on line 8 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Android
Check warning on line 8 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 8 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Windows
Check warning on line 8 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Windows
|
||
{ | ||
// Image scale type in the parameter: 2(100x100approx), 4(200x200approx), 10(500x500approx) | ||
return "https://raw.githubusercontent.com/danielmonettelli/MyResources/main/OpenWeather_Icons_Redesign/" + value + "@" + parameter + "x.png"; | ||
} | ||
|
||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
Check warning on line 14 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_iOS
Check warning on line 14 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Android
Check warning on line 14 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 14 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Windows
Check warning on line 14 in Mitawi/Converters/CustomImageUrlScalingConverter.cs GitHub Actions / Build_Windows
|
||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
namespace Mitawi.Converters | ||
namespace Mitawi.Converters; | ||
|
||
public class NegativeAndPositiveNumberConverter : BaseConverter<object, object> | ||
{ | ||
public class NegativeAndPositiveNumberConverter : BaseConverter<object, object> | ||
{ | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
|
||
public override object ConvertFrom(object value, CultureInfo culture) | ||
{ | ||
int number = (int)value; | ||
public override object ConvertFrom(object value, CultureInfo culture) | ||
Check warning on line 8 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_iOS
Check warning on line 8 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_Android
Check warning on line 8 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 8 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_Windows
Check warning on line 8 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_Windows
|
||
{ | ||
int number = (int)value; | ||
|
||
return number < 0 ? number : "+" + number; | ||
} | ||
return number < 0 ? number : "+" + number; | ||
} | ||
|
||
public override object ConvertBackTo(object value, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public override object ConvertBackTo(object value, CultureInfo culture) | ||
Check warning on line 15 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_iOS
Check warning on line 15 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_Android
Check warning on line 15 in Mitawi/Converters/NegativeAndPositiveNumberConverter.cs GitHub Actions / Build_MacCatalyst
|
||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
namespace Mitawi.Converters | ||
namespace Mitawi.Converters; | ||
|
||
public class OpenWeatherImageUrlScalingConverter : BaseConverter<object, object, object> | ||
{ | ||
public class OpenWeatherImageUrlScalingConverter : BaseConverter<object, object, object> | ||
{ | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
|
||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
{ | ||
// Image scale type in the parameter: 2(100x100), 4(200x200) | ||
return "http://openweathermap.org/img/wn/" + value + "@" + parameter + "x.png"; | ||
} | ||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
Check warning on line 8 in Mitawi/Converters/OpenWeatherImageUrlScalingConverter.cs GitHub Actions / Build_iOS
Check warning on line 8 in Mitawi/Converters/OpenWeatherImageUrlScalingConverter.cs GitHub Actions / Build_Android
|
||
{ | ||
// Image scale type in the parameter: 2(100x100), 4(200x200) | ||
return "http://openweathermap.org/img/wn/" + value + "@" + parameter + "x.png"; | ||
} | ||
|
||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
Check warning on line 14 in Mitawi/Converters/OpenWeatherImageUrlScalingConverter.cs GitHub Actions / Build_iOS
Check warning on line 14 in Mitawi/Converters/OpenWeatherImageUrlScalingConverter.cs GitHub Actions / Build_Android
|
||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
namespace Mitawi.Converters | ||
namespace Mitawi.Converters; | ||
|
||
public class StringToFirstCharactersConverter : BaseConverter<object, object, object> | ||
{ | ||
public class StringToFirstCharactersConverter : BaseConverter<object, object, object> | ||
{ | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
public override object DefaultConvertBackReturnValue { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } | ||
|
||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
{ | ||
return value.ToString().Substring(0, Convert.ToInt32(parameter)); | ||
} | ||
public override object ConvertFrom(object value, object parameter, CultureInfo culture) | ||
Check warning on line 8 in Mitawi/Converters/StringToFirstCharactersConverter.cs GitHub Actions / Build_iOS
Check warning on line 8 in Mitawi/Converters/StringToFirstCharactersConverter.cs GitHub Actions / Build_Android
|
||
{ | ||
return value.ToString().Substring(0, Convert.ToInt32(parameter)); | ||
} | ||
|
||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public override object ConvertBackTo(object value, object parameter, CultureInfo culture) | ||
Check warning on line 13 in Mitawi/Converters/StringToFirstCharactersConverter.cs GitHub Actions / Build_iOS
Check warning on line 13 in Mitawi/Converters/StringToFirstCharactersConverter.cs GitHub Actions / Build_Android
|
||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |