[sln] Code cleanup

This commit is contained in:
Laura Hausmann 2024-09-18 20:05:40 +02:00
parent 91aab7c8d6
commit ff425b6439
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 10 additions and 15 deletions

View file

@ -1,6 +1,5 @@
@inject IOptions<Config.InstanceSection> Instance
@using Iceshrimp.Backend.Core.Configuration
@using Iceshrimp.Backend.Core.Database.Tables
@using Microsoft.Extensions.Options
<!DOCTYPE html>
<html lang="en">

View file

@ -1,6 +1,6 @@
@using Iceshrimp.Frontend.Components
@using Microsoft.AspNetCore.Components.Authorization
<ErrorBoundary @ref="ErrorBoundary">
<ErrorBoundary>
<ChildContent>
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
@ -23,8 +23,4 @@
<ErrorContent Context="Exception">
<ErrorUi Exception="Exception"></ErrorUi>
</ErrorContent>
</ErrorBoundary>
@code {
private ErrorBoundary? ErrorBoundary { get; set; }
}
</ErrorBoundary>

View file

@ -9,7 +9,4 @@
@if (ComponentState is Core.Miscellaneous.State.Empty)
{
<div>No posts here yet! Go find someone to follow!</div>
}
@code {
}

View file

@ -183,11 +183,14 @@
private Menu MenuFilterAction { get; set; } = null!;
private Menu MenuFilterContexts { get; set; } = null!;
private List<FilterResponse.FilterContext> FilterContexts { get; } = [];
private StateButton ButtonAddFilter { get; set; } = null!;
private bool _filterNameInvalid;
private bool _filterKeywordsInvalid;
private bool _filterExpiryInvalid;
private bool _filterContextsInvalid;
// ReSharper disable once UnusedAutoPropertyAccessor.Local, Justification: this is still work in progress
private StateButton ButtonAddFilter { get; set; } = null!;
private bool _filterNameInvalid;
private bool _filterKeywordsInvalid;
private bool _filterExpiryInvalid;
private bool _filterContextsInvalid;
protected override async Task OnInitializedAsync()
{