a web-based Rock Band 4 stats viewer and achievement tracker website
1@inject SavedStorage savedStorage
2@inject SongCache songCache
3@inherits LayoutComponentBase
4<div class="page">
5 <div class="sidebar">
6 <NavMenu />
7 </div>
8
9 <main>
10 <div class="top-row px-4">
11 @if (savedStorage.GetLogin() != null)
12 {
13 <img style="margin-right: 3px" width="32" height="32" src="@savedStorage.GetLogin()!.Profile!.ProfilePictureURI" />
14 <span>@savedStorage.GetLogin()!.Profile!.Gamertag</span>
15 }
16 else if (savedStorage.GetProfile() != null && savedStorage.GetMetadata()!.Source == "file")
17 {
18 <span>Local Save Loaded</span>
19 }
20 </div>
21
22 <article class="content px-4">
23 @Body
24 </article>
25 </main>
26</div>
27
28@code {
29 protected override async Task OnInitializedAsync()
30 {
31 await savedStorage.LoadSavedSave();
32 await savedStorage.LoadXboxLogin();
33 await songCache.ReadDatabase();
34 }
35}