-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
238 additions
and
59 deletions.
There are no files selected for viewing
34 changes: 28 additions & 6 deletions
34
grade-management-new/GradeManagement.Client/Components/Helpers/SelectSubject.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
<MudSelect T="Subject" Value="@Value" ValueChanged="@((Subject value) => { Value = value; ValueChanged.InvokeAsync(value); })" ToStringFunc="@subjectToString" Label="Subject" Style="background-color: white;" Dense="true" Variant="Variant.Filled" AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter"> | ||
<style> | ||
.white-select .mud-input-label.mud-input-label-inputcontrol { | ||
color: white !important; | ||
background: var(--mud-palette-appbar-background); | ||
} | ||
.white-select .mud-input-outlined-border { | ||
border-color: white !important; | ||
} | ||
.white-select .mud-input-slot { | ||
color: white !important; | ||
} | ||
.white-select .mud-input-adornment .mud-icon-root { | ||
color: white !important; | ||
} | ||
</style> | ||
|
||
<MudSelect T="Subject" Value="@Value" | ||
ValueChanged="@((Subject value) => { Value = value; ValueChanged.InvokeAsync(value); })" | ||
ToStringFunc="@subjectToString" Label="Subject" Class="white-select" Dense="true" Variant="Variant.Outlined" | ||
AnchorOrigin="Origin.BottomCenter" TransformOrigin="Origin.TopCenter"> | ||
@foreach (var semester in PossibleValues) | ||
{ | ||
<MudSelectItem Value="@semester"/> | ||
<MudSelectItem Value="@semester"/> | ||
} | ||
</MudSelect> | ||
|
||
@code { | ||
[Parameter] public Subject Value { get; set; } | ||
[Parameter] public List<Subject> PossibleValues { get; set; } | ||
[Parameter] public EventCallback<Subject> ValueChanged { get; set; } | ||
[Parameter] public Subject Value { get; set; } | ||
[Parameter] public List<Subject> PossibleValues { get; set; } | ||
[Parameter] public EventCallback<Subject> ValueChanged { get; set; } | ||
|
||
private Func<Subject, string> subjectToString = p => p.Name; | ||
private Func<Subject, string> subjectToString = p => p.Name; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
grade-management-new/GradeManagement.Client/Layout/AppBar.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
grade-management-new/GradeManagement.Client/Pages/Authentication.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
@page "/authentication/{action}" | ||
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication | ||
@inject NavigationManager Navigation | ||
|
||
<RemoteAuthenticatorView Action="@Action"/> | ||
|
||
@code{ | ||
[Parameter] public string? Action { get; set; } | ||
|
||
protected override void OnInitialized() | ||
{ | ||
if (Action == "login-callback") | ||
{ | ||
// Call backend for user data | ||
Navigation.NavigateTo("/"); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.