[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 @inject IOptions<Config.InstanceSection> Instance
@using Iceshrimp.Backend.Core.Configuration @using Iceshrimp.Backend.Core.Configuration
@using Iceshrimp.Backend.Core.Database.Tables
@using Microsoft.Extensions.Options @using Microsoft.Extensions.Options
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">

View file

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

View file

@ -9,7 +9,4 @@
@if (ComponentState is Core.Miscellaneous.State.Empty) @if (ComponentState is Core.Miscellaneous.State.Empty)
{ {
<div>No posts here yet! Go find someone to follow!</div> <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 MenuFilterAction { get; set; } = null!;
private Menu MenuFilterContexts { get; set; } = null!; private Menu MenuFilterContexts { get; set; } = null!;
private List<FilterResponse.FilterContext> FilterContexts { get; } = []; private List<FilterResponse.FilterContext> FilterContexts { get; } = [];
private StateButton ButtonAddFilter { get; set; } = null!;
private bool _filterNameInvalid; // ReSharper disable once UnusedAutoPropertyAccessor.Local, Justification: this is still work in progress
private bool _filterKeywordsInvalid; private StateButton ButtonAddFilter { get; set; } = null!;
private bool _filterExpiryInvalid;
private bool _filterContextsInvalid; private bool _filterNameInvalid;
private bool _filterKeywordsInvalid;
private bool _filterExpiryInvalid;
private bool _filterContextsInvalid;
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {