< Summary

Information
Class: Syki.Front.Features.Adm.GetAdmInsights.AdmInsightsPage
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Adm/GetAdmInsights/AdmInsightsPage.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 41
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%
OnInitializedAsync()100%210%

File(s)

/home/runner/work/syki/syki/Front/Features/Adm/GetAdmInsights/AdmInsightsPage.razor

#LineLine coverage
 1@using Syki.Front.Components.Indexes
 2
 3@namespace Syki.Front.Features.Adm.GetAdmInsights
 4
 5<MudContainer Class="my-4 px-4">
 6    <MudText Typo="Typo.h4" Style="font-weight: bold" Class="ml-4">
 7        <MudIcon Icon="@Icons.Material.Filled.Insights" Class="mr-1 mb-n1" Size="Size.Large"/>
 8        Insights
 9    </MudText>
 10    <MudAlert Class="mt-4" Severity="Severity.Normal" NoIcon="true" Variant="Variant.Text" Elevation="1">
 11        <MudStack Row="true" Justify="Justify.SpaceAround">
 12            <MudText>Aqui você encontra dados consolidados sobre todo o sistema, atualizados em tempo real!</MudText>
 13        </MudStack>
 14    </MudAlert>
 15    <MudGrid Class="pt-4" Spacing="4">
 16        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.School" Value="@_data.Institutions" Text="Instituiçõ
 17        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.People" Value="@_data.Users" Text="Usuários" />
 18        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.GroupWork" Value="@_data.Campi" Text="Campus" />
 19        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Class" Value="@_data.Courses" Text="Cursos" />
 20        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Apps" Value="@_data.Disciplines" Text="Disciplinas" 
 21        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.AccountTree" Value="@_data.CourseCurriculums" Text="
 22        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.PlaylistAddCheck" Value="@_data.CourseOfferings" Tex
 23        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.Person4" Value="@_data.Teachers" Text="Professores" 
 24        <IndexCard Loading="@_loading" Icon="@Icons.Material.Filled.People" Value="@_data.Students" Text="Alunos" />
 25    </MudGrid>
 26</MudContainer>
 27
 28@inject GetAdmInsightsClient GetAdmInsightsClient
 29
 30@code
 31{
 32    private bool _loading;
 033    private AdmInsightsOut _data = new();
 34
 35    protected override async Task OnInitializedAsync()
 36    {
 037        _loading = true;
 038        _data = await GetAdmInsightsClient.Get();
 039        _loading = false;
 040    }
 41}

Methods/Properties

.ctor()
OnInitializedAsync()