[frontend/pages] Add authorize attribute to pages that require auth (ISH-481)
This commit is contained in:
parent
d240b94668
commit
825a887603
11 changed files with 22 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@inherits LayoutComponentBase
|
||||
@layout MainLayout
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
@page "/follow-requests"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@inject IStringLocalizer<Localization> Loc;
|
||||
|
||||
<SectionContent SectionName="top-bar">
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
@page "/notifications"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
|
||||
@inject IStringLocalizer<Localization> Loc;
|
||||
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
@page "/{User}"
|
||||
@attribute [Authorize]
|
||||
|
||||
@using System.Text.RegularExpressions
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Components.Note
|
||||
@using Iceshrimp.Frontend.Core.Miscellaneous
|
||||
@using Iceshrimp.Frontend.Core.Services
|
||||
@using Iceshrimp.Shared.Schemas.Web
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@inject ApiService Api
|
||||
|
||||
@if (_init)
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
@page "/search"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
|
||||
@inject IStringLocalizer<Localization> Loc;
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
@page "/settings/about"
|
||||
@attribute [Authorize]
|
||||
@using System.Text
|
||||
@using Iceshrimp.Frontend.Core.InMemoryLogger
|
||||
@using Iceshrimp.Frontend.Core.Services;
|
||||
@using Iceshrimp.Frontend.Localization;
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.Extensions.Localization;
|
||||
@layout SettingsLayout;
|
||||
@inject VersionService Version;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@page "/settings/filters"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Core.Miscellaneous
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Core.Services
|
||||
|
@ -6,6 +7,7 @@
|
|||
@using Iceshrimp.Shared.Schemas.Web
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@layout SettingsLayout
|
||||
@inject ApiService Api;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@page "/settings/profile"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Core.Miscellaneous
|
||||
@using Iceshrimp.Frontend.Core.Services
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
|
@ -6,6 +7,7 @@
|
|||
@using Microsoft.Extensions.Localization
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.Extensions.Logging
|
||||
@layout SettingsLayout
|
||||
@inject ApiService Api;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
@page "/Settings"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@* @inject NavigationManager Nav; *@
|
||||
@inject IStringLocalizer<Localization> Loc;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@page "/notes/{NoteId}"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Frontend.Components.Note
|
||||
@using Iceshrimp.Frontend.Core.Miscellaneous
|
||||
|
@ -9,6 +10,7 @@
|
|||
@using Microsoft.Extensions.Localization
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@inject ApiService ApiService
|
||||
@inject IJSRuntime Js
|
||||
@inject MessageService MessageService
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
@page "/"
|
||||
@attribute [Authorize]
|
||||
@using Iceshrimp.Frontend.Components
|
||||
@using Microsoft.AspNetCore.Components.Sections
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@using Iceshrimp.Frontend.Localization
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@inject IStringLocalizer<Localization> Loc;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue