
* Refactoring * Refactoring * Check for a valid email. * Fixed missing character. * Moved logic to the Utilities class. * Rename template .sql file * Modified null and empty string check. * Check for a valid email. * Fixed missing character. * Moved logic to the Utilities class. * Added Favicon support, Progressive Web App support, page title and url support, and private/public user registration options * Refactoring * Refactoring * Check for a valid email. * Moved logic to the Utilities class. Co-authored-by: Aubrey <aubrey.b@treskcow.tech> Co-authored-by: MIchael Atwood <matwood@dragonmastery.com> Co-authored-by: Shaun Walker <shaun.walker@siliqon.com>
32 lines
992 B
Plaintext
32 lines
992 B
Plaintext
@namespace Oqtane.Modules.Admin.Dashboard
|
|
@inherits ModuleBase
|
|
@inject IPageService PageService
|
|
@inject IUserService UserService
|
|
|
|
<div class="row">
|
|
@foreach (var p in _pages)
|
|
{
|
|
if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.View, p.Permissions))
|
|
{
|
|
string url = NavigateUrl(p.Path);
|
|
<div class="col-md-2 mx-auto text-center">
|
|
<NavLink class="nav-link" href="@url" Match="NavLinkMatch.All">
|
|
<h2><span class="oi oi-@p.Icon" aria-hidden="true"></span></h2>@p.Name
|
|
</NavLink>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
|
|
@code {
|
|
var List<Page> _pages;
|
|
|
|
public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Admin;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
var admin = PageState.Pages.FirstOrDefault(item => item.Path == "admin");
|
|
_pages = PageState.Pages.Where(item => item.ParentId == admin?.PageId).ToList();
|
|
}
|
|
}
|