| | 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; |
| 0 | 33 | | private AdmInsightsOut _data = new(); |
| | 34 | |
|
| | 35 | | protected override async Task OnInitializedAsync() |
| | 36 | | { |
| 0 | 37 | | _loading = true; |
| 0 | 38 | | _data = await GetAdmInsightsClient.Get(); |
| 0 | 39 | | _loading = false; |
| 0 | 40 | | } |
| | 41 | | } |