From 2ea7d6770649960371c8e84bde917ffb69467eeb Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Fri, 15 Apr 2022 12:10:14 -0400 Subject: [PATCH] wip(Settings) Adding stub setting pages --- IGP/Database.db | Bin 278528 -> 278528 bytes IGP/Pages/AnaltyicsPage.razor | 21 +++++++++ .../BuildCalculator/BuildCalculatorPage.razor | 34 +++++++------- .../Parts/OptionsComponent.razor | 25 +++++----- .../Parts/TimingComponent.razor | 12 +++-- IGP/Pages/PermissionsPage.razor | 44 ++++++++++++++++++ .../RoadMap/Parts/RoadMapComponent.razor | 2 +- IGP/Pages/StoragePage.razor | 20 ++++++++ IGP/wwwroot/generated/WebPageModels.json | 2 +- IGP/wwwroot/generated/WebSectionModels.json | 2 +- 10 files changed, 127 insertions(+), 35 deletions(-) create mode 100644 IGP/Pages/AnaltyicsPage.razor create mode 100644 IGP/Pages/PermissionsPage.razor create mode 100644 IGP/Pages/StoragePage.razor diff --git a/IGP/Database.db b/IGP/Database.db index 9498ffd849839acdcadad57c198bc55dd1b44d61..666e9cd674a461c67b830b763cf0a0f7ac5a0ef0 100644 GIT binary patch delta 295 zcmZo@5Nv1=+`wYM$I9=xjN+`psU;gV!D5z#0A^wC zy2Zs$vN&r%YEf=xadBpTUNM3x3D;JDkOpgP7TeP< QwucdjnYN4VVSd#N0O)66P5=M^ delta 90 zcmZo@5Nv1=+`wYM!@{4#!2gJU7yk_YoXvs)G5niz>=~@o@pn0z6`q**Abh-*GpK?P(X=!wAGo+r{=UziI{m*fSjp diff --git a/IGP/Pages/AnaltyicsPage.razor b/IGP/Pages/AnaltyicsPage.razor new file mode 100644 index 0000000..faabfe6 --- /dev/null +++ b/IGP/Pages/AnaltyicsPage.razor @@ -0,0 +1,21 @@ +@page "/analytics" + +@layout PageLayout + + + + + Not Implemented + + + + + TODO + + + + + + + + \ No newline at end of file diff --git a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor index 242c91f..5c52efd 100644 --- a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor +++ b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor @@ -33,17 +33,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -228,11 +228,13 @@ private void OnResetClicked() { - toastService.AddToast(new ToastModel(){ - SeverityType = SeverityType.Success, - Message = "Build order has been cleared.", - Title = "Reset"}); - + toastService.AddToast(new ToastModel + { + SeverityType = SeverityType.Success, + Message = "Build order has been cleared.", + Title = "Reset" + }); + buildOrderService.Reset(); } diff --git a/IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor b/IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor index 10b4009..cd9a2d6 100644 --- a/IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor +++ b/IGP/Pages/BuildCalculator/Parts/OptionsComponent.razor @@ -13,16 +13,16 @@ Building Input Delay Add a input delay to constructing buildings for simulating worker movement and player micro. - + - Wait Time - Not implemented - - - + Min="0" + Value="30" + OnChange="@OnWaitTimeChanged"> + Wait Time + Not implemented + + + Add Wait @@ -33,15 +33,15 @@ { buildOrderService.BuildingInputDelay = int.Parse(changeEventArgs.Value!.ToString()!); } - + void OnWaitTimeChanged(ChangeEventArgs changeEventArgs) { - toastService.AddToast(new ToastModel(){Title = "Not Implemented", SeverityType = SeverityType.Warning, Message = "The ability to wait for X seconds in a build order hasn't been implemented yet."}); + toastService.AddToast(new ToastModel { Title = "Not Implemented", SeverityType = SeverityType.Warning, Message = "The ability to wait for X seconds in a build order hasn't been implemented yet." }); } public void OnWaitClicked() { - toastService.AddToast(new ToastModel(){Title = "Not Implemented", SeverityType = SeverityType.Warning, Message = "The ability to wait for X seconds in a build order hasn't been implemented yet."}); + toastService.AddToast(new ToastModel { Title = "Not Implemented", SeverityType = SeverityType.Warning, Message = "The ability to wait for X seconds in a build order hasn't been implemented yet." }); } protected override bool ShouldRender() @@ -59,4 +59,5 @@ jsRuntime.InvokeVoidAsync("console.timeEnd", "TimingComponent"); #endif } + } \ No newline at end of file diff --git a/IGP/Pages/BuildCalculator/Parts/TimingComponent.razor b/IGP/Pages/BuildCalculator/Parts/TimingComponent.razor index 8f8f775..0adcfc5 100644 --- a/IGP/Pages/BuildCalculator/Parts/TimingComponent.razor +++ b/IGP/Pages/BuildCalculator/Parts/TimingComponent.razor @@ -11,7 +11,9 @@ Value="@timingService.GetAttackTime()" OnChange="@OnAttackTimeChanged"> Attack Time -   T @Interval.ToTime(timingService.GetAttackTime()) + +   T @Interval.ToTime(timingService.GetAttackTime()) + Travel Time -   T @Interval.ToTime(timingService.GetTravelTime()) + +   T @Interval.ToTime(timingService.GetTravelTime()) + @@ -36,7 +40,7 @@ Message = "Attack Time has changed.", SeverityType = SeverityType.Success }); - + StateHasChanged(); } @@ -50,7 +54,7 @@ Message = "Travel Time has changed.", SeverityType = SeverityType.Success }); - + StateHasChanged(); } diff --git a/IGP/Pages/PermissionsPage.razor b/IGP/Pages/PermissionsPage.razor new file mode 100644 index 0000000..0bad687 --- /dev/null +++ b/IGP/Pages/PermissionsPage.razor @@ -0,0 +1,44 @@ +@page "/permissions" + +@layout PageLayout + + + + + Not Implemented + + + + + TODO + + + + + + + What's this page? + This page has options to enable and disable certain permissions settings. Such as Storage and Data Collection. + + + + What does this website store? + This website usages storage to track user defined default on the Storage page. + + + + Why would I enable storage? + Enable storage if you want to website to remeber past settings whenever you visit the website on the same web browser. + + + + What data does this website collect? + This website usages Google Analytics to collect data enabled on the Analytics page. + + + + Why would I enable data collection? + Enable data tracking if you want the website maintainer to know how your using the website. + + + \ No newline at end of file diff --git a/IGP/Pages/RoadMap/Parts/RoadMapComponent.razor b/IGP/Pages/RoadMap/Parts/RoadMapComponent.razor index f0d9e8b..3740308 100644 --- a/IGP/Pages/RoadMap/Parts/RoadMapComponent.razor +++ b/IGP/Pages/RoadMap/Parts/RoadMapComponent.razor @@ -1,7 +1,7 @@ 
@RoadMap.Name
@((MarkupString)RoadMap.Description)
-
+