Refactor, fix stuff
1 files changed, 0 insertions, 31 deletions
diff --git a/MatrixRoomUtils.Web/Pages/DevOptions.razor b/MatrixRoomUtils.Web/Pages/DevOptions.razor
deleted file mode 100644
index 8511a26..0000000
--- a/MatrixRoomUtils.Web/Pages/DevOptions.razor
+++ /dev/null
@@ -1,31 +0,0 @@
-@page "/DevOptions"
-@using LibMatrix.Extensions
-@using ArcaneLibs.Extensions
-@inject NavigationManager NavigationManager
-@inject ILocalStorageService LocalStorage
-
-<PageTitle>Developer options</PageTitle>
-
-<h3>Rory&::MatrixUtils - Developer options</h3>
-<hr/>
-
-<InputCheckbox @bind-Value="@settings.DeveloperSettings.EnableLogViewers" @oninput="@LogStuff"></InputCheckbox><label> Enable log views</label><br/>
-<InputCheckbox @bind-Value="@settings.DeveloperSettings.EnableConsoleLogging" @oninput="@LogStuff"></InputCheckbox><label> Enable console logging</label><br/>
-<InputCheckbox @bind-Value="@settings.DeveloperSettings.EnablePortableDevtools" @oninput="@LogStuff"></InputCheckbox><label> Enable portable devtools</label><br/>
-<br/>
-
-@code {
-
- MRUStorageWrapper.Settings settings { get; set; } = new();
- protected override async Task OnInitializedAsync() {
- settings = await TieredStorage.DataStorageProvider.LoadObjectAsync<MRUStorageWrapper.Settings>("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);
- }
-
-}
|