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 e985610..a7fd5ce 100644 Binary files a/IGP/Database.db and b/IGP/Database.db differ diff --git a/IGP/PageLayout.razor b/IGP/PageLayout.razor index d5ea13f..a644fbe 100644 --- a/IGP/PageLayout.razor +++ b/IGP/PageLayout.razor @@ -1,6 +1,4 @@ @inherits LayoutComponentBase -@inject IJSRuntime JsRuntime - @inject ISearchService SearchService @inject IWebsiteService WebService @inject IDataCollectionService DataCollectionService @@ -27,11 +25,16 @@ WebPages=WebService.WebPageModels/> + + + } + + @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