chore(nav): reorder menu
This commit is contained in:
1 parent
7e06556d8d
commit
d862246c8b
3 files changed
+36
-16
No files matched your search
@@ -10,6 +10,10 @@
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@ToggleDrawer" />
|
||||
<MudText Typo="Typo.h5" Class="ml-3">Telegram Panel</MudText>
|
||||
<MudSpacer />
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Settings"
|
||||
Color="Color.Inherit"
|
||||
Href="/settings"
|
||||
title="系统设置" />
|
||||
<MudIconButton Icon="@Icons.Custom.Brands.GitHub"
|
||||
Color="Color.Inherit"
|
||||
Href="https://github.com/moeacgx/Telegram-Panel"
|
||||
|
||||
@@ -31,26 +31,10 @@
|
||||
任务中心
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/settings" Icon="@Icons.Material.Filled.Settings">
|
||||
系统设置
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/modules" Icon="@Icons.Material.Filled.Extension">
|
||||
模块管理
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/apis" Icon="@Icons.Material.Filled.Link">
|
||||
API 管理
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/admin/password" Icon="@Icons.Material.Filled.Password">
|
||||
修改密码
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/logout" Icon="@Icons.Material.Filled.Logout">
|
||||
退出登录
|
||||
</MudNavLink>
|
||||
|
||||
@if (Contributions.NavItems.Count > 0 || Contributions.Pages.Count > 0)
|
||||
{
|
||||
<MudNavGroup Title="扩展模块" Icon="@Icons.Material.Filled.Extension">
|
||||
@@ -76,4 +60,12 @@
|
||||
}
|
||||
</MudNavGroup>
|
||||
}
|
||||
|
||||
<MudNavLink Href="/apis" Icon="@Icons.Material.Filled.Link">
|
||||
API 管理
|
||||
</MudNavLink>
|
||||
|
||||
<MudNavLink Href="/logout" Icon="@Icons.Material.Filled.Logout">
|
||||
退出登录
|
||||
</MudNavLink>
|
||||
</MudNavMenu>
|
||||
@@ -11,6 +11,7 @@
|
||||
@inject IDialogService DialogService
|
||||
@inject IWebHostEnvironment Environment
|
||||
@inject PanelTimeZoneService TimeZone
|
||||
@inject NavigationManager Navigation
|
||||
@using TelegramPanel.Web.Services
|
||||
|
||||
<PageTitle>系统设置 - Telegram Panel</PageTitle>
|
||||
@@ -126,6 +127,23 @@
|
||||
</MudCardContent>
|
||||
</MudCard>
|
||||
|
||||
<MudCard Class="mb-4">
|
||||
<MudCardHeader>
|
||||
<MudText Typo="Typo.h6">安全</MudText>
|
||||
</MudCardHeader>
|
||||
<MudCardContent>
|
||||
<MudText Typo="Typo.body2">
|
||||
修改后台登录密码。
|
||||
</MudText>
|
||||
</MudCardContent>
|
||||
<MudCardActions>
|
||||
<MudButton Variant="Variant.Outlined" Color="Color.Primary" StartIcon="@Icons.Material.Filled.Password"
|
||||
OnClick="@(async (MouseEventArgs _) => await OpenChangePassword())">
|
||||
修改密码
|
||||
</MudButton>
|
||||
</MudCardActions>
|
||||
</MudCard>
|
||||
|
||||
<MudCard Class="mb-4">
|
||||
<MudCardHeader>
|
||||
<MudText Typo="Typo.h6">日志设置</MudText>
|
||||
@@ -305,6 +323,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
private Task OpenChangePassword()
|
||||
{
|
||||
Navigation.NavigateTo("/admin/password");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private async Task<System.Text.Json.Nodes.JsonObject> LoadOrCreateLocalConfigAsync()
|
||||
{
|
||||
var path = LocalConfigPath;
|
||||
|
||||
Reference in new issue
Block a user