Added configuration menu. Added some services. New translation system. Assets
This commit is contained in:
20
Moonlight/Shared/Components/StateLogic/IsSetup.razor
Normal file
20
Moonlight/Shared/Components/StateLogic/IsSetup.razor
Normal file
@@ -0,0 +1,20 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (!setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
20
Moonlight/Shared/Components/StateLogic/NonSetup.razor
Normal file
20
Moonlight/Shared/Components/StateLogic/NonSetup.razor
Normal file
@@ -0,0 +1,20 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user