[frontend/pages] Add page boilerplate for drive management
This commit is contained in:
parent
59e1cdde81
commit
e3608a2bf9
2 changed files with 24 additions and 0 deletions
|
@ -36,6 +36,12 @@
|
||||||
<span class="text">@Loc["Follow requests"]</span>
|
<span class="text">@Loc["Follow requests"]</span>
|
||||||
</div>
|
</div>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
<NavLink href="/drive">
|
||||||
|
<div class="sidebar-btn">
|
||||||
|
<Icon Name="Icons.Cloud"></Icon>
|
||||||
|
<span class="text">@Loc["Drive"]</span>
|
||||||
|
</div>
|
||||||
|
</NavLink>
|
||||||
<NavLink href="/settings/">
|
<NavLink href="/settings/">
|
||||||
<div class="sidebar-btn">
|
<div class="sidebar-btn">
|
||||||
<Icon Name="Icons.Gear"></Icon>
|
<Icon Name="Icons.Gear"></Icon>
|
||||||
|
|
18
Iceshrimp.Frontend/Pages/DrivePage.razor
Normal file
18
Iceshrimp.Frontend/Pages/DrivePage.razor
Normal 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; }
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue