diff --git a/src/Banquale/Banquale.sln b/src/Banquale/Banquale.sln new file mode 100644 index 0000000..24e7bb1 --- /dev/null +++ b/src/Banquale/Banquale.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 17.0.31611.283 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Banquale", "Banquale\Banquale.csproj", "{CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.Build.0 = Release|Any CPU + {CB24D887-5DF3-4ED9-BAFF-DEA8F43253EE}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572} + EndGlobalSection +EndGlobal diff --git a/src/Banquale/Banquale/App.xaml b/src/Banquale/Banquale/App.xaml new file mode 100644 index 0000000..9b1f1c8 --- /dev/null +++ b/src/Banquale/Banquale/App.xaml @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/src/Banquale/Banquale/App.xaml.cs b/src/Banquale/Banquale/App.xaml.cs new file mode 100644 index 0000000..4531e5c --- /dev/null +++ b/src/Banquale/Banquale/App.xaml.cs @@ -0,0 +1,12 @@ +namespace Banquale; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} + diff --git a/src/Banquale/Banquale/AppShell.xaml b/src/Banquale/Banquale/AppShell.xaml new file mode 100644 index 0000000..395b7b0 --- /dev/null +++ b/src/Banquale/Banquale/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/src/Banquale/Banquale/AppShell.xaml.cs b/src/Banquale/Banquale/AppShell.xaml.cs new file mode 100644 index 0000000..602ca78 --- /dev/null +++ b/src/Banquale/Banquale/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace Banquale; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} + diff --git a/src/Banquale/Banquale/Banquale.csproj b/src/Banquale/Banquale/Banquale.csproj new file mode 100644 index 0000000..0bfb0cf --- /dev/null +++ b/src/Banquale/Banquale/Banquale.csproj @@ -0,0 +1,60 @@ + + + + net6.0-android;net6.0-ios;net6.0-maccatalyst + $(TargetFrameworks);net6.0-windows10.0.19041.0 + + + Exe + Banquale + true + true + enable + + + Banquale + + + com.companyname.banquale + 59d159ae-058c-4142-9c66-ed0e1c72e87d + + + 1.0 + 1 + + 14.2 + 14.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Banquale/Banquale/MauiProgram.cs b/src/Banquale/Banquale/MauiProgram.cs new file mode 100644 index 0000000..555e0c3 --- /dev/null +++ b/src/Banquale/Banquale/MauiProgram.cs @@ -0,0 +1,19 @@ +namespace Banquale; + +public static class MauiProgram +{ + public static MauiApp CreateMauiApp() + { + var builder = MauiApp.CreateBuilder(); + builder + .UseMauiApp() + .ConfigureFonts(fonts => + { + fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + }); + + return builder.Build(); + } +} + diff --git a/src/Banquale/Banquale/Platforms/Android/AndroidManifest.xml b/src/Banquale/Banquale/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..ddd284f --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/Banquale/Banquale/Platforms/Android/MainActivity.cs b/src/Banquale/Banquale/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..2c88cf9 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Android/MainActivity.cs @@ -0,0 +1,11 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace Banquale; + +[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] +public class MainActivity : MauiAppCompatActivity +{ +} + diff --git a/src/Banquale/Banquale/Platforms/Android/MainApplication.cs b/src/Banquale/Banquale/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..a1852af --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Android/MainApplication.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Runtime; + +namespace Banquale; + +[Application] +public class MainApplication : MauiApplication +{ + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} + diff --git a/src/Banquale/Banquale/Platforms/Android/Resources/values/colors.xml b/src/Banquale/Banquale/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..c2794f7 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,7 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + + diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs b/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..a637ab1 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace Banquale; + +[Register("AppDelegate")] +public class AppDelegate : MauiUIApplicationDelegate +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} + diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist b/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..0690e47 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/MacCatalyst/Info.plist @@ -0,0 +1,30 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs b/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..9096b85 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace Banquale; + +public class Program +{ + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } +} + diff --git a/src/Banquale/Banquale/Platforms/Tizen/Main.cs b/src/Banquale/Banquale/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..0c5641d --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Tizen/Main.cs @@ -0,0 +1,17 @@ +using System; +using Microsoft.Maui; +using Microsoft.Maui.Hosting; + +namespace Banquale; + +class Program : MauiApplication +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } +} + diff --git a/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml b/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..5ddbe54 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Tizen/tizen-manifest.xml @@ -0,0 +1,15 @@ + + + + + + maui-appicon-placeholder + + + + + http://tizen.org/privilege/internet + + + + diff --git a/src/Banquale/Banquale/Platforms/Windows/App.xaml b/src/Banquale/Banquale/Platforms/Windows/App.xaml new file mode 100644 index 0000000..a6d37ce --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Windows/App.xaml @@ -0,0 +1,9 @@ + + + + diff --git a/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs b/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..be5c6c7 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Windows/App.xaml.cs @@ -0,0 +1,25 @@ +using Microsoft.UI.Xaml; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace Banquale.WinUI; + +/// +/// Provides application-specific behavior to supplement the default Application class. +/// +public partial class App : MauiWinUIApplication +{ + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} + + diff --git a/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest b/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..7a784ce --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,47 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Banquale/Banquale/Platforms/Windows/app.manifest b/src/Banquale/Banquale/Platforms/Windows/app.manifest new file mode 100644 index 0000000..787d3c3 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/Windows/app.manifest @@ -0,0 +1,16 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + + diff --git a/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs b/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..a637ab1 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace Banquale; + +[Register("AppDelegate")] +public class AppDelegate : MauiUIApplicationDelegate +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} + diff --git a/src/Banquale/Banquale/Platforms/iOS/Info.plist b/src/Banquale/Banquale/Platforms/iOS/Info.plist new file mode 100644 index 0000000..358337b --- /dev/null +++ b/src/Banquale/Banquale/Platforms/iOS/Info.plist @@ -0,0 +1,32 @@ + + + + + LSRequiresIPhoneOS + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/src/Banquale/Banquale/Platforms/iOS/Program.cs b/src/Banquale/Banquale/Platforms/iOS/Program.cs new file mode 100644 index 0000000..9096b85 --- /dev/null +++ b/src/Banquale/Banquale/Platforms/iOS/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace Banquale; + +public class Program +{ + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } +} + diff --git a/src/Banquale/Banquale/Properties/launchSettings.json b/src/Banquale/Banquale/Properties/launchSettings.json new file mode 100644 index 0000000..90f92d9 --- /dev/null +++ b/src/Banquale/Banquale/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} diff --git a/src/Banquale/Banquale/Resources/AppIcon/appicon.svg b/src/Banquale/Banquale/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..49f9800 --- /dev/null +++ b/src/Banquale/Banquale/Resources/AppIcon/appicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Banquale/Banquale/Resources/AppIcon/appiconfg.svg b/src/Banquale/Banquale/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..e9b7139 --- /dev/null +++ b/src/Banquale/Banquale/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/Banquale/Banquale/Resources/Fonts/OpenSans-Regular.ttf b/src/Banquale/Banquale/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..a49f11d Binary files /dev/null and b/src/Banquale/Banquale/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/src/Banquale/Banquale/Resources/Fonts/OpenSans-Semibold.ttf b/src/Banquale/Banquale/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..23911e4 Binary files /dev/null and b/src/Banquale/Banquale/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/src/Banquale/Banquale/Resources/Images/dotnet_bot.svg b/src/Banquale/Banquale/Resources/Images/dotnet_bot.svg new file mode 100644 index 0000000..e19b012 --- /dev/null +++ b/src/Banquale/Banquale/Resources/Images/dotnet_bot.svg @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Banquale/Banquale/Resources/Raw/AboutAssets.txt b/src/Banquale/Banquale/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..808d6d3 --- /dev/null +++ b/src/Banquale/Banquale/Resources/Raw/AboutAssets.txt @@ -0,0 +1,17 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories). Deployment of the asset to your application +is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. + + + +These files will be deployed with you package and will be accessible using Essentials: + + async Task LoadMauiAsset() + { + using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); + using var reader = new StreamReader(stream); + + var contents = reader.ReadToEnd(); + } + + diff --git a/src/Banquale/Banquale/Resources/Splash/splash.svg b/src/Banquale/Banquale/Resources/Splash/splash.svg new file mode 100644 index 0000000..4b71383 --- /dev/null +++ b/src/Banquale/Banquale/Resources/Splash/splash.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/Banquale/Banquale/Resources/Styles/Colors.xaml b/src/Banquale/Banquale/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..e4a7a43 --- /dev/null +++ b/src/Banquale/Banquale/Resources/Styles/Colors.xaml @@ -0,0 +1,44 @@ + + + + + #512BD4 + #DFD8F7 + #2B0B98 + White + Black + #E1E1E1 + #C8C8C8 + #ACACAC + #919191 + #6E6E6E + #404040 + #212121 + #141414 + + + + + + + + + + + + + + + #F7B548 + #FFD590 + #FFE5B9 + #28C2D1 + #7BDDEF + #C3F2F4 + #3E8EED + #72ACF1 + #A7CBF6 + + diff --git a/src/Banquale/Banquale/Resources/Styles/Styles.xaml b/src/Banquale/Banquale/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..b88aed6 --- /dev/null +++ b/src/Banquale/Banquale/Resources/Styles/Styles.xaml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Banquale/Banquale/Views/BalancePage.xaml b/src/Banquale/Banquale/Views/BalancePage.xaml new file mode 100644 index 0000000..ade9fd7 --- /dev/null +++ b/src/Banquale/Banquale/Views/BalancePage.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/src/Banquale/Banquale/Views/BalancePage.xaml.cs b/src/Banquale/Banquale/Views/BalancePage.xaml.cs new file mode 100644 index 0000000..f0b719d --- /dev/null +++ b/src/Banquale/Banquale/Views/BalancePage.xaml.cs @@ -0,0 +1,9 @@ +namespace Banquale.Views; + +public partial class BalancePage : ContentPage +{ + public BalancePage() + { + InitializeComponent(); + } +}