about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/PortableDevTools.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-30 03:36:58 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-30 03:36:58 +0200
commitbb8c2637af3b7982e7a4b2fd15e2fbec613d0848 (patch)
treeb8075ba7e507aad3f96f354712ad920ac421e474 /MatrixRoomUtils.Web/Shared/PortableDevTools.razor
parentUpdate stuff (diff)
downloadMatrixUtils-bb8c2637af3b7982e7a4b2fd15e2fbec613d0848.tar.xz
Todays progress
Diffstat (limited to '')
-rw-r--r--MatrixRoomUtils.Web/Shared/PortableDevTools.razor52
1 files changed, 26 insertions, 26 deletions
diff --git a/MatrixRoomUtils.Web/Shared/PortableDevTools.razor b/MatrixRoomUtils.Web/Shared/PortableDevTools.razor

index ffd7082..8ca10a0 100644 --- a/MatrixRoomUtils.Web/Shared/PortableDevTools.razor +++ b/MatrixRoomUtils.Web/Shared/PortableDevTools.razor
@@ -1,26 +1,26 @@ -@if (Enabled) { - <a href="/DevOptions">Portable devtools (enabled)</a> - <div id="PortableDevTools" style="position: fixed; bottom: 0; right: 0; min-width: 200px; min-height: 100px; background: #0002;" draggable> - <p>Cache size: @RuntimeCache.GenericResponseCache.Sum(x => x.Value.Cache.Count)</p> - </div> -} -else { - <a href="/DevOptions">Portable devtools (disabled)</a> -} - -@code { - private bool Enabled { get; set; } = LocalStorageWrapper.Settings.DeveloperSettings.EnablePortableDevtools; - - protected override async Task OnInitializedAsync() => - // if(!RuntimeCache.WasLoaded) - // await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage); - // StateHasChanged(); - Task.Run(async () => { - while (true) { - await Task.Delay(100); - Enabled = LocalStorageWrapper.Settings.DeveloperSettings.EnablePortableDevtools; - StateHasChanged(); - } - }); - -} \ No newline at end of file +@* @if (Enabled) { *@ +@* <a href="/DevOptions">Portable devtools (enabled)</a> *@ +@* <div id="PortableDevTools" style="position: fixed; bottom: 0; right: 0; min-width: 200px; min-height: 100px; background: #0002;" draggable> *@ +@* $1$ <p>Cache size: @RuntimeCache.GenericResponseCache.Sum(x => x.Value.Cache.Count)</p> #1# *@ +@* </div> *@ +@* } *@ +@* else { *@ +@* <a href="/DevOptions">Portable devtools (disabled)</a> *@ +@* } *@ +@* *@ +@* @code { *@ +@* private bool Enabled { get; set; } = LocalStorageWrapper.Settings.DeveloperSettings.EnablePortableDevtools; *@ +@* *@ +@* protected override async Task OnInitializedAsync() => *@ +@* // if(!RuntimeCache.WasLoaded) *@ +@* // await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage); *@ +@* // StateHasChanged(); *@ +@* Task.Run(async () => { *@ +@* while (true) { *@ +@* await Task.Delay(100); *@ +@* Enabled = LocalStorageWrapper.Settings.DeveloperSettings.EnablePortableDevtools; *@ +@* StateHasChanged(); *@ +@* } *@ +@* }); *@ +@* *@ +@* } *@ \ No newline at end of file