From bd8d6e63735f79e6600e1b574244e9b240a26d5b Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Mon, 2 May 2022 12:13:28 -0400 Subject: [PATCH] feat(Footer) Adding a basic footer (#32) --- Components/Shared/FooterComponent.razor | 57 ++++++++++++++++++++++++ IGP/Database.db | Bin 278528 -> 278528 bytes IGP/PageLayout.razor | 7 ++- IGP/wwwroot/generated/Variables.json | 2 +- IGP_Convert/Program.cs | 4 +- 5 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 Components/Shared/FooterComponent.razor diff --git a/Components/Shared/FooterComponent.razor b/Components/Shared/FooterComponent.razor new file mode 100644 index 0000000..d01b1b9 --- /dev/null +++ b/Components/Shared/FooterComponent.razor @@ -0,0 +1,57 @@ +@inject IVariableService VariableService + +
+
+ + + + + + + + + + + + + + + + + + + | + + Updated @VariableService.Variables["LastUpdated"] +
+
+ This site is fan-made and not affiliated with SunSpear Games in any way. +
+
+ + + \ No newline at end of file diff --git a/IGP/Database.db b/IGP/Database.db index e9856105992fafad41a09ddd83c4c6ce848f4d72..a7fd5cec392c98e6660e9c9b2ed3e4a618bddf4a 100644 GIT binary patch delta 135 zcmZo@5Nv1=+`wYM!NmWVf&VlA6re^o=J{?q3xgjnYMrSXXgC?0Ni&i A-2eap delta 81 zcmZo@5Nv1=+`wYM#>oGff&cSXLB?nN%);)8&7bYJf3{~7`~Z}A#=!q + + + } + + @code { protected override void OnInitialized() diff --git a/IGP/wwwroot/generated/Variables.json b/IGP/wwwroot/generated/Variables.json index f23ac2c..4bfccba 100644 --- a/IGP/wwwroot/generated/Variables.json +++ b/IGP/wwwroot/generated/Variables.json @@ -1 +1 @@ -[{"Key":"GamePatch","Value":"v0.0.6.9553a"}] \ No newline at end of file +[{"Key":"GamePatch","Value":"v0.0.6.9553a"},{"Key":"LastUpdated","Value":"May 02, 2022"}] \ No newline at end of file diff --git a/IGP_Convert/Program.cs b/IGP_Convert/Program.cs index 7537b2a..d6765e1 100644 --- a/IGP_Convert/Program.cs +++ b/IGP_Convert/Program.cs @@ -27,6 +27,8 @@ using (var db = new DatabaseContext(options.Options)) File.WriteAllTextAsync($"{webPath}/NoteContentModels.json", JsonSerializer.Serialize(db.NoteContentModels)); File.WriteAllTextAsync($"{webPath}/NoteConnectionModels.json", JsonSerializer.Serialize(db.NoteConnectionModels)); File.WriteAllTextAsync($"{webPath}/NoteSectionModels.json", JsonSerializer.Serialize(db.NoteSectionModels)); - + + // Set date variable + db.Variables.Find("LastUpdated")!.Value = $"{DateTime.Now:MMMM dd, yyyy}"; File.WriteAllTextAsync($"{webPath}/Variables.json", JsonSerializer.Serialize(db.Variables)); } \ No newline at end of file