[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">
@ -24,7 +24,3 @@
<ErrorUi Exception="Exception"></ErrorUi> <ErrorUi Exception="Exception"></ErrorUi>
</ErrorContent> </ErrorContent>
</ErrorBoundary> </ErrorBoundary>
@code {
private ErrorBoundary? ErrorBoundary { get; set; }
}

View file

@ -10,6 +10,3 @@
{ {
<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,7 +183,10 @@
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; } = [];
// ReSharper disable once UnusedAutoPropertyAccessor.Local, Justification: this is still work in progress
private StateButton ButtonAddFilter { get; set; } = null!; private StateButton ButtonAddFilter { get; set; } = null!;
private bool _filterNameInvalid; private bool _filterNameInvalid;
private bool _filterKeywordsInvalid; private bool _filterKeywordsInvalid;
private bool _filterExpiryInvalid; private bool _filterExpiryInvalid;