< Summary

Information
Class: Syki.Front.Pages.Teacher.TeacherClassPage
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Pages/Teacher/TeacherClassPage.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 59
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 4
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/syki/syki/Front/Pages/Teacher/TeacherClassPage.razor

#LineLine coverage
 1@namespace Syki.Front.Pages.Teacher
 2
 3@page "/teacher/classes/{id:guid}"
 4@attribute [Authorize(Roles = "Teacher")]
 5
 6<SykiPageTitle Title="Turma" />
 7
 8<MudContainer Class="my-4 px-4">
 9    <MudCard Class="px-2 my-4">
 10        <MudCardContent>
 011            @if (_loading)
 12            {
 13                <MudSkeleton Animation="Animation.Wave" />
 14            }
 15            else
 16            {
 17            <MudGrid Class="align-center">
 18                <MudItem xs="12" sm="9" md="9" lg="9">
 19                    <MudText Typo="Typo.h5" Style="font-weight: bold">@_class.Discipline</MudText>
 20                </MudItem>
 21                <MudItem xs="12" sm="3" md="3" lg="3" Class="d-flex justify-end">
 22                    <MudTabs Elevation="0" Rounded="true" Outlined="true" @bind-ActivePanelIndex="@_index" MinimumTabWid
 23                        <MudTabPanel Text="Frequência" ID='"panel_0"'></MudTabPanel>
 24                        <MudTabPanel Text="Notas" ID='"panel_1"'></MudTabPanel>
 25                    </MudTabs>
 26                </MudItem>
 27            </MudGrid>
 28            }
 29        </MudCardContent>
 30    </MudCard>
 31
 032    @if (_index == 0)
 33    {
 34        <TeacherClassFrequencyTab ClassId="@Id" />
 35    }
 36    else
 37    {
 38        <TeacherClassNotesTab ClassId="@Id" />
 39    }
 40</MudContainer>
 41
 42@inject GetTeacherClassClient GetTeacherClassClient
 43
 44@code
 45{
 46  [Parameter]
 047  public Guid Id { get; set; }
 48
 49    private int _index;
 50    private bool _loading;
 051    private TeacherClassOut _class = new();
 52
 53    protected override async Task OnInitializedAsync()
 54    {
 055        _loading = true;
 056        _class = await GetTeacherClassClient.Get(Id);
 057        _loading = false;
 058    }
 59}