[frontend/pages] Add page boilerplate for drive management

This commit is contained in:
pancakes 2024-12-15 19:18:12 +10:00 committed by Laura Hausmann
parent 59e1cdde81
commit e3608a2bf9
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 24 additions and 0 deletions

View file

@ -36,6 +36,12 @@
<span class="text">@Loc["Follow requests"]</span>
</div>
</NavLink>
<NavLink href="/drive">
<div class="sidebar-btn">
<Icon Name="Icons.Cloud"></Icon>
<span class="text">@Loc["Drive"]</span>
</div>
</NavLink>
<NavLink href="/settings/">
<div class="sidebar-btn">
<Icon Name="Icons.Gear"></Icon>

View file

@ -0,0 +1,18 @@
@page "/drive"
@page "/drive/{Id}"
@using Iceshrimp.Frontend.Localization
@using Microsoft.AspNetCore.Components.Sections
@using Microsoft.Extensions.Localization
@using Iceshrimp.Assets.PhosphorIcons
@inject IStringLocalizer<Localization> Loc;
<SectionContent SectionName="top-bar">
<Icon Name="Icons.Cloud"></Icon>
@Loc["Drive"]
</SectionContent>
<span>@(Id ?? "root")</span>
@code {
[Parameter] public string? Id { get; set; }
}