重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s

This commit is contained in:
SpecialX
2025-10-09 18:57:28 +08:00
parent 403b34a098
commit ac900159ba
289 changed files with 11948 additions and 20150 deletions

View File

@@ -1,12 +1,17 @@
@page "/"
@using Microsoft.AspNetCore.Authorization
@using TechHelper.Client.Pages.Common.Exam
@*
<AuthorizeView Roles="Student">
<Authorizing>
<p>Loading...</p>
</Authorizing>
<Authorized>
<TechHelper.Client.Pages.Student.HomePage />
</Authorized>
</AuthorizeView>
</AuthorizeView> *@
<MudText>Hello</MudText>
@code {
[CascadingParameter]
private Task<AuthenticationState> authenticationStateTask { get; set; }
@@ -14,6 +19,5 @@
protected override Task OnInitializedAsync()
{
return base.OnInitializedAsync();
Console.WriteLine(authenticationStateTask.Result.User.IsInRole("Student"));
}
}