
* 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>
38 lines
819 B
Plaintext
38 lines
819 B
Plaintext
@inject IInstallationService InstallationService
|
|
|
|
@if (_initialized)
|
|
{
|
|
@if (!_installed)
|
|
{
|
|
<Installer />
|
|
}
|
|
else
|
|
{
|
|
<CascadingAuthenticationState>
|
|
<CascadingValue Value="@PageState">
|
|
<SiteRouter OnStateChange="@ChangeState" />
|
|
</CascadingValue>
|
|
</CascadingAuthenticationState>
|
|
}
|
|
}
|
|
|
|
@code {
|
|
private bool _initialized;
|
|
private bool _installed;
|
|
|
|
private PageState PageState { get; set; }
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
var installation = await InstallationService.IsInstalled();
|
|
_installed = installation.Success;
|
|
_initialized = true;
|
|
}
|
|
|
|
private void ChangeState(PageState pageState)
|
|
{
|
|
PageState = pageState;
|
|
StateHasChanged();
|
|
}
|
|
}
|