diff --git a/.gitignore b/.gitignore index 703446e..6bd25cf 100644 --- a/.gitignore +++ b/.gitignore @@ -367,3 +367,4 @@ VideoAnalysis/AICore/_Static/ VideoAnalysisCore/AICore/_Static/ VideoAnalysis/WebUI/node_modules/ VideoAnalysis/WebUI/dist/ +VideoAnalysis/WebUI/.vscode/ diff --git a/VideoAnalysis/Components/App.razor b/VideoAnalysis/Components/App.razor deleted file mode 100644 index 78db69e..0000000 --- a/VideoAnalysis/Components/App.razor +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - @* *@ - - - - diff --git a/VideoAnalysis/Components/Error.razor b/VideoAnalysis/Components/Error.razor deleted file mode 100644 index 3e72685..0000000 --- a/VideoAnalysis/Components/Error.razor +++ /dev/null @@ -1,36 +0,0 @@ -@page "/Error" -@using System.Diagnostics - -Error - -

错误页面.

-

处理您的请求时出错。

- -@if (ShowRequestId) -{ -

- Request ID: @RequestId -

-} - -

开发模式

-

- 切换到Development环境将显示有关发生的错误的更多详细信息。 -

-

- 不应为已部署的应用程序启用开发环境。 - 它可能导致向最终用户显示来自异常的敏感信息。 - 对于本地调试,通过将 ASPNETCORE_ENVIRONMENT 环境变量设置为 Development 来启用 开发 环境 - 并重新启动应用程序。 -

- -@code{ - [CascadingParameter] - private HttpContext? HttpContext { get; set; } - - private string? RequestId { get; set; } - private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - protected override void OnInitialized() => - RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; -} diff --git a/VideoAnalysis/Components/Layouts/BasicLayout.razor b/VideoAnalysis/Components/Layouts/BasicLayout.razor deleted file mode 100644 index b8d5774..0000000 --- a/VideoAnalysis/Components/Layouts/BasicLayout.razor +++ /dev/null @@ -1,36 +0,0 @@ -@namespace VideoAnalysisRazor.Layouts -@using static AntDesign.IconType -@inherits LayoutComponentBase - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/VideoAnalysis/Components/Layouts/BasicLayout.razor.cs b/VideoAnalysis/Components/Layouts/BasicLayout.razor.cs deleted file mode 100644 index a387811..0000000 --- a/VideoAnalysis/Components/Layouts/BasicLayout.razor.cs +++ /dev/null @@ -1,106 +0,0 @@ -using AntDesign.Extensions.Localization; -using AntDesign.ProLayout; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Identity.Client.Extensions.Msal; -using Microsoft.JSInterop; -using System.Globalization; -using System.Net.Http.Json; - -namespace VideoAnalysisRazor.Layouts -{ - public partial class BasicLayout : LayoutComponentBase, IDisposable - { - private MenuDataItem[] _menuData; - [Inject] private NavigationManager NavigationManager { get; set; } = default!; - - [Inject] IHttpContextAccessor HttpContextAccessor { get; set; } = default!; - [Inject] private ReuseTabsService TabService { get; set; } - [Inject] private IJSRuntime JSRuntime { get; set; } - [Inject] private ProtectedSessionStorage session { get; set; } = default!; - - bool collapsed; - void Toggle() - { - collapsed = !collapsed; - } - - - protected override async Task OnAfterRenderAsync(bool firstRender) - { - } - protected override async Task OnInitializedAsync() - { - if (!await CheckLogin()) - { - NavigationManager.NavigateTo("/Login"); - } - _menuData = [ - new MenuDataItem - { - Path = "/", - Name = "任务队列", - Key = "VideoTaskPage", - Icon = "unordered-list", - }, - new MenuDataItem - { - Path = "/Project", - Name = "课堂指标", - Key = "EvaluationProject", - Icon = "question-circle", - HideInMenu = true, - }, - new MenuDataItem - { - Path = "/Login", - Name = "登录页", - Key = "Login", - HideInMenu = true, - }, - new MenuDataItem - { - Path = "/VideoTaskShow", - Name = "视频任务预览", - Key = "VideoTaskShow", - HideInMenu = true, - }, - new MenuDataItem - { - Path = "/NodeSubscriptionPage", - Name = "文件订阅", - Key = "NodeSubscriptionPage", - Icon="clock-circle", - HideInMenu = true, - } - ]; - } - - public async Task CheckLogin() - { - try - { - return (await session.GetAsync("Login")).Value; - } - catch - { - return false; - } - } - void Reload() - { - TabService.ReloadPage(); - } - async Task ToSwagger() - { - await JSRuntime.InvokeVoidAsync("open", "/swagger/index.html", "_blank"); - } - - public void Dispose() - { - - } - - } -} diff --git a/VideoAnalysis/Components/Pages/Dto/TaskShowRoute.cs b/VideoAnalysis/Components/Pages/Dto/TaskShowRoute.cs deleted file mode 100644 index bb90b83..0000000 --- a/VideoAnalysis/Components/Pages/Dto/TaskShowRoute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; -using System.Security.Policy; - -namespace Learn.VideoAnalysis.Components.Pages.Dto -{ - public class TaskShowRoute : PageModel - { - - public int ID; - public void OnGet(int id) - { - ID = id; - } - } -} diff --git a/VideoAnalysis/Components/Pages/EvaluationProject.razor b/VideoAnalysis/Components/Pages/EvaluationProject.razor deleted file mode 100644 index 7dc918c..0000000 --- a/VideoAnalysis/Components/Pages/EvaluationProject.razor +++ /dev/null @@ -1,88 +0,0 @@ -@page "/Project" -@using AntDesign -@using AntDesign.TableModels -@using System.ComponentModel.DataAnnotations -@using SqlSugar -@using VideoAnalysisCore.Model -@using UserCenter.Model.Enum - - - - - - - - - - - - - - -
- -@{ - RenderFragment modelfooter = @; -} - - -
- - - -
- - -
-
-
- - - - - - - - - - - - -