From 063fb6f12aea3a5b71c05beea22e7f6482c2f1cf Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 19 Oct 2023 07:21:41 +0200 Subject: Refactor, fix stuff --- MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor (limited to 'MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor') diff --git a/MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor b/MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor new file mode 100644 index 0000000..9b0f61c --- /dev/null +++ b/MatrixRoomUtils.Web/Pages/Dev/DevOptions.razor @@ -0,0 +1,30 @@ +@page "/Dev/Options" +@using ArcaneLibs.Extensions +@inject NavigationManager NavigationManager +@inject ILocalStorageService LocalStorage + +Developer options + +

Rory&::MatrixUtils - Developer options

+
+ +
+
+
+
+ +@code { + + MRUStorageWrapper.Settings settings { get; set; } = new(); + protected override async Task OnInitializedAsync() { + settings = await TieredStorage.DataStorageProvider.LoadObjectAsync("mru.settings"); + await base.OnInitializedAsync(); + } + + private async Task LogStuff() { + await Task.Delay(100); + Console.WriteLine($"Settings: {settings.ToJson()}"); + await TieredStorage.DataStorageProvider.SaveObjectAsync("mru.settings", settings); + } + +} -- cgit 1.4.1