mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.1 KiB
51 lines
2.1 KiB
@page "{handler?}"
|
|
@{
|
|
Layout = null;
|
|
}
|
|
@using Volo.ClientSimulation
|
|
@using Volo.ClientSimulation.Clients
|
|
@using Volo.ClientSimulation.Demo.Pages
|
|
@model Volo.ClientSimulation.Demo.Pages.SimulationAreaModel
|
|
<abp-alert alert-type="Primary">
|
|
<form class="d-inline" id="StartButtonForm" method="post" asp-page-handler="Start" data-ajaxForm="true">
|
|
<abp-button button-type="Primary" type="submit" disabled="@(Model.Simulation.State != SimulationState.Stopped)">Start</abp-button>
|
|
</form>
|
|
<form class="d-inline" id="StopButtonForm" method="post" asp-page-handler="Stop" data-ajaxForm="true">
|
|
<abp-button button-type="Primary" type="submit" disabled="@(Model.Simulation.State != SimulationState.Started)">Stop</abp-button>
|
|
</form>
|
|
<span class="ml-3">
|
|
@Model.Simulation.State
|
|
</span>
|
|
</abp-alert>
|
|
<abp-card class="mt-3">
|
|
<abp-card-body>
|
|
@foreach (var clientHandler in Model.Simulation.ActiveClients)
|
|
{
|
|
<span class="simulation-client simulation-client-@clientHandler.Client.State.ToString().ToLowerInvariant()">
|
|
<span class="simulation-client-icon">
|
|
@if (clientHandler.Client.State == ClientState.Running)
|
|
{
|
|
<i class="fa fa-play"></i>
|
|
}
|
|
else if (clientHandler.Client.State == ClientState.Stopping)
|
|
{
|
|
<i class="fa fa-eject"></i>
|
|
}
|
|
else if (clientHandler.Client.State == ClientState.Stopped)
|
|
{
|
|
<i class="fa fa-stop"></i>
|
|
}
|
|
</span>
|
|
<span class="simulation-client-scenario">
|
|
@clientHandler.Client.Scenario.GetDisplayText()
|
|
</span>
|
|
<span class="simulation-client-scenario-current-step">
|
|
@if (clientHandler.Client.State != ClientState.Stopped)
|
|
{
|
|
<text>| @clientHandler.Client.Scenario.CurrentStep.GetDisplayText()</text>
|
|
}
|
|
</span>
|
|
</span>
|
|
}
|
|
</abp-card-body>
|
|
</abp-card>
|