Removed the WebUI. Removed the Modules
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
@page "/setup-wizard"
|
||||
@inject DialogService DialogService
|
||||
|
||||
@using DiscordBotCore
|
||||
@using DiscordBotCore.Others.Exceptions
|
||||
@using DiscordBotWebUI.Components.Items.Setup
|
||||
|
||||
<RadzenCard Style="max-width: 600px; margin: auto; margin-top: 50px; padding: 20px;">
|
||||
<RadzenSteps @bind-Value="currentStep" ShowStepsButtons="false">
|
||||
<RadzenStepsItem Text="Welcome" />
|
||||
<RadzenStepsItem Text="Basic Configuration" />
|
||||
<RadzenStepsItem Text="Download Dependencies" />
|
||||
<RadzenStepsItem Text="Final Setup" />
|
||||
</RadzenSteps>
|
||||
|
||||
<div>
|
||||
@if (currentStep == 0)
|
||||
{
|
||||
<WelcomeComponent NextStep="NextStep" />
|
||||
}
|
||||
else if (currentStep == 1)
|
||||
{
|
||||
<StartupConfigurationComponent NextStep="NextStep" />
|
||||
}
|
||||
else if (currentStep == 2)
|
||||
{
|
||||
<ModuleSetupComponent ModuleRequirementReference="RequirementsToDownload" NextStep="NextStep" />
|
||||
}
|
||||
else if (currentStep == 3)
|
||||
{
|
||||
<FinishSetupComponent CompleteSetup="FinishSetup" />
|
||||
}
|
||||
</div>
|
||||
</RadzenCard>
|
||||
|
||||
@code {
|
||||
[Parameter] public ModuleRequirement RequirementsToDownload { get; set; }
|
||||
|
||||
private int currentStep = 0;
|
||||
|
||||
private void NextStep()
|
||||
{
|
||||
currentStep++;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void FinishSetup()
|
||||
{
|
||||
DialogService.Close(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user