重构作业结构:优化实体模型、DTO映射和前端界面
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
- 重构AppMainStruct、AssignmentQuestion、Question等实体模型 - 更新相关DTO以匹配新的数据结构 - 优化前端页面布局和组件 - 添加全局信息和笔记功能相关代码 - 更新数据库迁移和程序配置
This commit is contained in:
@@ -4,83 +4,67 @@
|
||||
<MudSnackbarProvider />
|
||||
<MudPopoverProvider />
|
||||
|
||||
@*
|
||||
<MudPaper Style="position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-image: url('/ref/bg4.jpg');
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
filter: blur(10px);
|
||||
z-index: -1;">
|
||||
</MudPaper>
|
||||
<MudPaper Class="d-flex flex-column flex-grow-0 overflow-auto" Style="height: 100vh; background-color:#22222200">
|
||||
<MudLayout>
|
||||
<MudAppBar Elevation="0" Class="rounded-xl" Style="background-color: transparent; border:none">
|
||||
<MudBreakpointProvider>
|
||||
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert=true>
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Primary" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
|
||||
</MudHidden>
|
||||
<MudHidden Breakpoint="Breakpoint.SmAndDown">
|
||||
<SearchBar></SearchBar>
|
||||
<MudButton Class="mt-1">application</MudButton>
|
||||
</MudHidden>
|
||||
</MudBreakpointProvider>
|
||||
<MudSpacer />
|
||||
<MudIconButton Icon="@Icons.Material.Filled.MoreVert" Color="Color.Primary" Edge="Edge.End" />
|
||||
</MudAppBar>
|
||||
<MudDrawer @bind-Open="_drawerOpen" Height="100%" Elevation="0" Style="background-color:#f5f6fb">
|
||||
<MudDrawerHeader Class="h-100 d-flex flex-grow-1" Style="background-color:#f5f6fb">
|
||||
<MudPaper Width="250px" Class="d-flex py-3 flex-column justify-content-between rounded-xl" Elevation="3">
|
||||
<MudNavMenu Bordered="true" Dense="true" Rounded="true" Color="Color.Error" Margin="Margin.Dense">
|
||||
<ApplicationMainIconCard></ApplicationMainIconCard>
|
||||
<MudDivider Class="my-2" />
|
||||
<MudNavLink Href="/">Dashboard</MudNavLink>
|
||||
<MudNavLink Href="/exam">Exam</MudNavLink>
|
||||
<MudNavLink Href="/exam">Billing</MudNavLink>
|
||||
<MudNavGroup Title="Settings" Expanded="true">
|
||||
<MudNavLink Href="/users">Users</MudNavLink>
|
||||
<MudNavLink Href="/security">Security</MudNavLink>
|
||||
</MudNavGroup>
|
||||
|
||||
|
||||
<MudPaper Class="d-flex flex-column flex-grow-1 overflow-hidden" Style="background-color:transparent">
|
||||
|
||||
|
||||
<MudPaper Elevation="3" Height="10%" Class=" d-flex justify-content-around flex-grow-0" Style="background-color:#ffffff55">
|
||||
<NavBar Class="flex-column flex-grow-1 " Style="background-color:transparent" />
|
||||
<AuthLinks Class="flex-column flex-grow-0 " Style="background-color:transparent" />
|
||||
</MudPaper>
|
||||
|
||||
|
||||
<MudPaper Elevation="3" Class="d-flex flex-row flex-grow-1 overflow-hidden" Style="background-color:transparent">
|
||||
|
||||
|
||||
<MudPaper Width="10%" Class="pa-2 ma-1 d-flex flex-column flex-grow-0 justify-content-between" Style="background-color:#ffffffaa">
|
||||
<MudSpacer />
|
||||
<MudNavLink Class="align-content-end" Href="/about">About</MudNavLink>
|
||||
</MudNavMenu>
|
||||
<MudSpacer />
|
||||
<MudNavMenu Class="align-content-end " Bordered="true" Dense="true" Rounded="true" Margin="Margin.Dense">
|
||||
<TechHelper.Client.Pages.Global.LoginInOut.LoginInOut></TechHelper.Client.Pages.Global.LoginInOut.LoginInOut>
|
||||
<MudNavLink Class="align-content-end" Href="/about">Setting</MudNavLink>
|
||||
</MudNavMenu>
|
||||
</MudPaper>
|
||||
|
||||
|
||||
<MudPaper Elevation="3" Class="d-flex flex-grow-1 pa-3 ma-1 overflow-hidden" Style="background-color:#ffffff22 ">
|
||||
@Body
|
||||
</MudDrawerHeader>
|
||||
</MudDrawer>
|
||||
<MudMainContent Style="background: #f5f6fb">
|
||||
<SnackErrorBoundary @ref="errorBoundary">
|
||||
<MudPaper Height="calc(100vh - 64px)" Style="background-color:transparent" Class="overflow-hidden px-1 py-2" Elevation="0">
|
||||
<MudPaper Style="background-color:#eeeeeeef" Elevation="3" Class="d-flex w-100 h-100 overflow-hidden pa-2 rounded-xl">
|
||||
@Body
|
||||
</MudPaper>
|
||||
</MudPaper>
|
||||
</SnackErrorBoundary>
|
||||
</MudMainContent>
|
||||
</MudLayout>
|
||||
@code {
|
||||
ErrorBoundary? errorBoundary;
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
errorBoundary?.Recover();
|
||||
}
|
||||
|
||||
bool _drawerOpen = true;
|
||||
|
||||
</MudPaper>
|
||||
|
||||
|
||||
</MudPaper>
|
||||
|
||||
|
||||
</MudPaper>
|
||||
|
||||
*@
|
||||
|
||||
<MudPaper Style="position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-image: url('/ref/bg4.jpg');
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
filter: blur(10px);
|
||||
z-index: -1;">
|
||||
</MudPaper>
|
||||
<MudPaper Style="background-color:transparent ; height:100vh" Class="overflow-hidden">
|
||||
|
||||
<MudPaper Class="justify-content-center" Style="background-color:blue; height: 50px">
|
||||
<MudStack Row="true" Class="justify-content-between">
|
||||
|
||||
<NavBar Class="flex-grow-1" Style="background-color:transparent; color:white" />
|
||||
<AuthLinks Class="justify-content-end " Style="background-color:transparent; color:white" />
|
||||
</MudStack>
|
||||
</MudPaper>
|
||||
|
||||
<MudPaper Class="d-flex flex-grow-0 " Style="background-color:#30303022; height:calc(100vh - 50px)">
|
||||
@* <MudPaper Class="ma-1" Width="200px">
|
||||
|
||||
</MudPaper> *@
|
||||
|
||||
<MudPaper Class="d-flex ma-1 flex-grow-1 overflow-auto">
|
||||
@Body
|
||||
</MudPaper>
|
||||
</MudPaper>
|
||||
</MudPaper>
|
||||
void DrawerToggle()
|
||||
{
|
||||
_drawerOpen = !_drawerOpen;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user