├── ToDo S2 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ └── TaskInfo.razor │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── _Imports.razor │ │ ├── App.razor │ │ ├── ToDo.Client.csproj │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ ├── TaskServices.cs │ │ └── Shared │ │ │ └── MainLayout.razor │ ├── Shared │ │ ├── ToDo.Shared.csproj │ │ └── TaskDto.cs │ └── Server │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── ToDo.Server.csproj │ │ ├── Pages │ │ ├── Shared │ │ │ └── _Layout.cshtml │ │ ├── Error.cshtml.cs │ │ └── Error.cshtml │ │ ├── Program.cs │ │ └── Properties │ │ └── launchSettings.json └── 进击吧blazor-第二课 页面制作.pptx ├── ToDo S3 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ ├── TaskSearch.razor │ │ │ ├── TaskInfo.razor │ │ │ └── TaskInfo.razor.cs │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── _Imports.razor │ │ ├── App.razor │ │ ├── ToDo.Client.csproj │ │ ├── TaskDetailServices.cs │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Shared │ │ │ └── MainLayout.razor │ ├── Server │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── Pages │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── Error.cshtml.cs │ │ │ └── Error.cshtml │ │ ├── ToDo.Server.csproj │ │ ├── Program.cs │ │ └── Properties │ │ │ └── launchSettings.json │ └── Shared │ │ ├── ToDo.Shared.csproj │ │ ├── SetFinishReq.cs │ │ ├── GetSearchRsp.cs │ │ ├── SetImportantReq.cs │ │ ├── GetSearchReq.cs │ │ └── TaskDto.cs ├── 进击吧blazor-第三课 数据交互.pptx └── ToDo.Entity │ ├── ToDo.Entity.csproj │ ├── efpt.config.json │ └── Task.cs ├── ToDo S4 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ ├── CP │ │ │ │ ├── Father.razor │ │ │ │ ├── Son.razor │ │ │ │ └── Grandson.razor │ │ │ ├── NewTask.razor │ │ │ ├── Star.razor │ │ │ ├── TaskSearch.razor │ │ │ ├── TaskInfo.razor │ │ │ └── ToDay.razor │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── _Imports.razor │ │ ├── App.razor │ │ ├── ToDo.Client.csproj │ │ ├── TaskDetailServices.cs │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Shared │ │ │ └── MainLayout.razor │ ├── Server │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── Pages │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── Error.cshtml.cs │ │ │ └── Error.cshtml │ │ ├── ToDo.Server.csproj │ │ ├── Program.cs │ │ └── Properties │ │ │ └── launchSettings.json │ └── Shared │ │ ├── ToDo.Shared.csproj │ │ ├── SetFinishReq.cs │ │ ├── GetSearchRsp.cs │ │ ├── SetImportantReq.cs │ │ ├── GetSearchReq.cs │ │ └── TaskDto.cs ├── 进击吧blazor-第四课 组件开发.pptx └── ToDo.Entity │ ├── ToDo.Entity.csproj │ ├── efpt.config.json │ └── Task.cs ├── ToDo S5 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ ├── CP │ │ │ │ ├── Father.razor │ │ │ │ ├── Son.razor │ │ │ │ └── Grandson.razor │ │ │ ├── NewTask.razor │ │ │ ├── Star.razor │ │ │ ├── Login.razor │ │ │ ├── TaskSearch.razor │ │ │ ├── TaskInfo.razor │ │ │ └── ToDay.razor │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── App.razor │ │ ├── _Imports.razor │ │ ├── ToDo.Client.csproj │ │ ├── TaskDetailServices.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Program.cs │ ├── Server │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── Pages │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── Error.cshtml.cs │ │ │ └── Error.cshtml │ │ ├── ToDo.Server.csproj │ │ ├── Program.cs │ │ └── Properties │ │ │ └── launchSettings.json │ └── Shared │ │ ├── ToDo.Shared.csproj │ │ ├── SetFinishReq.cs │ │ ├── GetSearchRsp.cs │ │ ├── SetImportantReq.cs │ │ ├── UserDto.cs │ │ ├── LoginDto.cs │ │ ├── GetSearchReq.cs │ │ └── TaskDto.cs └── ToDo.Entity │ ├── ToDo.Entity.csproj │ ├── efpt.config.json │ └── Task.cs ├── ToDo S6 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ ├── Statistics.razor │ │ │ ├── CP │ │ │ │ ├── Father.razor │ │ │ │ ├── Son.razor │ │ │ │ └── Grandson.razor │ │ │ ├── NewTask.razor │ │ │ ├── Star.razor │ │ │ ├── Login.razor │ │ │ ├── TaskSearch.razor │ │ │ ├── TaskInfo.razor │ │ │ └── ToDay.razor │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── App.razor │ │ ├── _Imports.razor │ │ ├── ToDo.Client.csproj │ │ ├── TaskDetailServices.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Program.cs │ ├── Server │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── Pages │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── Error.cshtml.cs │ │ │ └── Error.cshtml │ │ ├── ToDo.Server.csproj │ │ ├── Program.cs │ │ ├── Controllers │ │ │ └── ChartController.cs │ │ └── Properties │ │ │ └── launchSettings.json │ └── Shared │ │ ├── ToDo.Shared.csproj │ │ ├── SetFinishReq.cs │ │ ├── GetSearchRsp.cs │ │ ├── SetImportantReq.cs │ │ ├── UserDto.cs │ │ ├── LoginDto.cs │ │ ├── ChartAmountDto.cs │ │ ├── GetSearchReq.cs │ │ └── TaskDto.cs └── ToDo.Entity │ ├── ToDo.Entity.csproj │ ├── efpt.config.json │ └── Task.cs ├── ToDo S7 ├── ToDo │ ├── Client │ │ ├── Pages │ │ │ ├── Index.razor │ │ │ ├── Statistics.razor │ │ │ ├── CP │ │ │ │ ├── Father.razor │ │ │ │ ├── Son.razor │ │ │ │ └── Grandson.razor │ │ │ ├── NewTask.razor │ │ │ ├── Star.razor │ │ │ ├── Login.razor │ │ │ ├── TaskSearch.razor │ │ │ ├── TaskInfo.razor │ │ │ └── ToDay.razor │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── App.razor │ │ ├── _Imports.razor │ │ ├── ToDo.Client.csproj │ │ ├── TaskDetailServices.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Program.cs │ ├── Server │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ ├── .config │ │ │ └── dotnet-tools.json │ │ ├── appsettings.json │ │ ├── Pages │ │ │ ├── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── Error.cshtml.cs │ │ │ └── Error.cshtml │ │ ├── ToDo.Server.csproj │ │ ├── Controllers │ │ │ └── ChartController.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Program.cs │ └── Shared │ │ ├── ToDo.Shared.csproj │ │ ├── SetFinishReq.cs │ │ ├── GetSearchRsp.cs │ │ ├── SetImportantReq.cs │ │ ├── UserDto.cs │ │ ├── LoginDto.cs │ │ ├── ChartAmountDto.cs │ │ ├── GetSearchReq.cs │ │ └── TaskDto.cs ├── ToDo.BlazorHost │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── ToDo.BlazorHost.csproj │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ └── Startup.cs ├── ToDo.Gateway │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── ToDo.Gateway.csproj │ ├── Properties │ │ └── launchSettings.json │ ├── Program.cs │ ├── Ocelot.json │ └── Startup.cs └── ToDo.Entity │ ├── ToDo.Entity.csproj │ ├── efpt.config.json │ └── Task.cs ├── Performance S6 ├── 进击吧blazor-第六课 企业内部应用建设实战.pptx └── Performance │ ├── Performance.Gateway │ ├── Ocelot.json │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── Performance.Gateway.csproj │ ├── Properties │ │ └── launchSettings.json │ ├── Program.cs │ └── Startup.cs │ ├── Performance │ ├── Client │ │ ├── wwwroot │ │ │ ├── favicon.ico │ │ │ └── css │ │ │ │ └── app.css │ │ ├── Shared │ │ │ ├── MainLayout.razor │ │ │ ├── NavMenu.razor.cs │ │ │ └── NavMenu.razor │ │ ├── Pages │ │ │ ├── Org.razor.css │ │ │ ├── Index.razor │ │ │ ├── IndexLibraryChart.razor │ │ │ ├── Login.razor │ │ │ ├── OrgEdit.razor │ │ │ └── Login.razor.cs │ │ ├── App.razor │ │ ├── AutomapperConfig.cs │ │ ├── _Imports.razor │ │ ├── Properties │ │ │ └── launchSettings.json │ │ ├── Performance.Client.csproj │ │ └── Program.cs │ ├── Server │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ ├── AutomapperConfig.cs │ │ ├── Controllers │ │ │ ├── IndexController.cs │ │ │ └── ChartController.cs │ │ ├── Program.cs │ │ ├── Pages │ │ │ └── Error.cshtml.cs │ │ ├── Properties │ │ │ └── launchSettings.json │ │ └── Performance.Server.csproj │ └── Shared │ │ ├── Performance.Shared.csproj │ │ ├── UserDto.cs │ │ ├── LoginDto.cs │ │ ├── IndexLibraryChartDto.cs │ │ ├── OrgIndexLinkDto.cs │ │ ├── OrgTreeDto.cs │ │ ├── IndexLibraryQueryDto.cs │ │ ├── OrgSelectOptions.cs │ │ ├── SelectDto.cs │ │ ├── QueryDto.cs │ │ ├── OrgDto.cs │ │ ├── AchievementEditDto.cs │ │ └── IndexLibraryDto.cs │ ├── Performance.BlazorHost │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── Performance.BlazorHost.csproj │ ├── Properties │ │ └── launchSettings.json │ ├── Program.cs │ └── Startup.cs │ └── Performance.Entity │ ├── Performance.Entity.csproj │ ├── efpt.config.json │ └── OrganizationIndex.cs └── README.md /ToDo S2/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S3/ToDo/Server/Startup.cs -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S4/ToDo/Server/Startup.cs -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S5/ToDo/Server/Startup.cs -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S6/ToDo/Server/Startup.cs -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | " -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S7/ToDo/Server/Startup.cs -------------------------------------------------------------------------------- /ToDo S2/进击吧blazor-第二课 页面制作.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S2/进击吧blazor-第二课 页面制作.pptx -------------------------------------------------------------------------------- /ToDo S3/进击吧blazor-第三课 数据交互.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S3/进击吧blazor-第三课 数据交互.pptx -------------------------------------------------------------------------------- /ToDo S4/进击吧blazor-第四课 组件开发.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S4/进击吧blazor-第四课 组件开发.pptx -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S2/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S3/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S4/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S5/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S6/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/ToDo S7/ToDo/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Performance S6/进击吧blazor-第六课 企业内部应用建设实战.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/Performance S6/进击吧blazor-第六课 企业内部应用建设实战.pptx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Blazor-ToDo 2 | 微软Reactor【Blazor中文社区】进击吧!Blazor!系列课程Demo代码 3 | 4 | # 系列视频链接 5 | 6 | https://space.bilibili.com/483888821/channel/detail?cid=151273 7 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Gateway/Ocelot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/Performance S6/Performance/Performance.Gateway/Ocelot.json -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TimChen44/Blazor-ToDo/HEAD/Performance S6/Performance/Performance/Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ToDo S2/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/ToDo.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/Statistics.razor: -------------------------------------------------------------------------------- 1 | @page "/statistics" 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/Statistics.razor: -------------------------------------------------------------------------------- 1 | @page "/statistics" 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.BlazorHost/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.Gateway/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "5.0.3", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /ToDo S7/ToDo.BlazorHost/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.Gateway/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.BlazorHost/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Gateway/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Gateway/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.BlazorHost/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Shared/SetFinishReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetFinishReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsFinish { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Shared/SetFinishReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetFinishReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsFinish { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/SetFinishReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetFinishReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsFinish { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/SetFinishReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetFinishReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsFinish { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/SetFinishReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetFinishReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsFinish { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/Performance.Shared.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Shared/GetSearchRsp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchRsp 8 | { 9 | public List Data { get; set; } 10 | 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Shared/GetSearchRsp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchRsp 8 | { 9 | public List Data { get; set; } 10 | 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/GetSearchRsp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchRsp 8 | { 9 | public List Data { get; set; } 10 | 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/GetSearchRsp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchRsp 8 | { 9 | public List Data { get; set; } 10 | 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/GetSearchRsp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchRsp 8 | { 9 | public List Data { get; set; } 10 | 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Shared/SetImportantReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetImportantReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsImportant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Shared/SetImportantReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetImportantReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsImportant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/SetImportantReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetImportantReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsImportant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/SetImportantReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetImportantReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsImportant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/SetImportantReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class SetImportantReq 8 | { 9 | public Guid TaskId { get; set; } 10 | 11 | public bool IsImportant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S3/ToDo.Entity/ToDo.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ToDo S4/ToDo.Entity/ToDo.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ToDo S5/ToDo.Entity/ToDo.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ToDo S6/ToDo.Entity/ToDo.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.Entity/ToDo.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Gateway/Performance.Gateway.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/UserDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class UserDto 10 | { 11 | public string Name { get; set; } 12 | 13 | public string Token { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/UserDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class UserDto 10 | { 11 | public string Name { get; set; } 12 | 13 | public string Token { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/UserDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class UserDto 10 | { 11 | public string Name { get; set; } 12 | 13 | public string Token { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Entity/Performance.Entity.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | 4 | 5 | 6 |
7 | @Body 8 |
9 |
10 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/LoginDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class LoginDto 10 | { 11 | public string UserName { get; set; } 12 | 13 | public string Password { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/LoginDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class LoginDto 10 | { 11 | public string UserName { get; set; } 12 | 13 | public string Password { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/LoginDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class LoginDto 10 | { 11 | public string UserName { get; set; } 12 | 13 | public string Password { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/UserDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Performance.Shared 8 | { 9 | public class UserDto 10 | { 11 | public string Name { get; set; } 12 | 13 | public string Token { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/Pages/Org.razor.css: -------------------------------------------------------------------------------- 1 | .tree-node { 2 | display: flex; 3 | flex-direction: row; 4 | justify-content: space-between; 5 | } 6 | 7 | .tree-node .title { 8 | flex: 1 1 auto 9 | } 10 | 11 | .tree-node .action { 12 | opacity: 0; 13 | } 14 | 15 | .tree-node:hover .action { 16 | opacity: 1; 17 | } 18 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/LoginDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Performance.Shared 8 | { 9 | public class LoginDto 10 | { 11 | public string UserName { get; set; } 12 | 13 | public string Password { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=ToDo;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=ToDo;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=ToDo;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=ToDo;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=ToDo;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/ChartAmountDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class ChartAmountDto 10 | { 11 | public string Day { get; set; } 12 | 13 | public int Value { get; set; } 14 | 15 | public string Type { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/ChartAmountDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ToDo.Shared 8 | { 9 | public class ChartAmountDto 10 | { 11 | public string Day { get; set; } 12 | 13 | public int Value { get; set; } 14 | 15 | public string Type { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=Performance;Integrated Security=True" 4 | }, 5 | "Logging": { 6 | "LogLevel": { 7 | "Default": "Information", 8 | "Microsoft": "Warning", 9 | "Microsoft.Hosting.Lifetime": "Information" 10 | } 11 | }, 12 | "AllowedHosts": "*" 13 | } 14 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.Gateway/ToDo.Gateway.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |

Hello, world!

4 | 5 | Welcome to your new app. 6 |
7 | Host:@host 8 | 9 | @inject HttpClient Http 10 | @code{ 11 | 12 | string host; 13 | protected override async Task OnInitializedAsync() 14 | { 15 | host = await Http.GetStringAsync($"api/Index/GetHost"); 16 | await base.OnInitializedAsync(); 17 | } 18 | 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/AutomapperConfig.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using Performance.Shared; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace Performance.Client 9 | { 10 | public class AutomapperConfig: Profile 11 | { 12 | public AutomapperConfig() 13 | { 14 | CreateMap(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/CP/Father.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Father

4 | me: 5 | 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | public void OnRef() 15 | { 16 | StateHasChanged(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/CP/Father.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Father

4 | me: 5 | 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | public void OnRef() 15 | { 16 | StateHasChanged(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/CP/Father.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Father

4 | me: 5 | 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | public void OnRef() 15 | { 16 | StateHasChanged(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.BlazorHost/ToDo.BlazorHost.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/CP/Father.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Father

4 | me: 5 | 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | public void OnRef() 15 | { 16 | StateHasChanged(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared 12 | @using Microsoft.AspNetCore.Components.Authorization 13 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared 12 | @using Microsoft.AspNetCore.Components.Authorization 13 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using ToDo.Client 9 | @using ToDo.Client.Shared 10 | @using AntDesign 11 | @using ToDo.Shared 12 | @using Microsoft.AspNetCore.Components.Authorization 13 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/IndexLibraryChartDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Performance.Shared 8 | { 9 | public class IndexLibraryChartDto 10 | { 11 | public int Year { get; set; } 12 | public string OrgName { get; set; } 13 | public Guid OrgId { get; set; } 14 | public decimal ActualValue { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/CP/Son.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Son

4 |
father:
5 | me: 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | [CascadingParameter] 15 | public Father father { get; set; } 16 | 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/CP/Son.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Son

4 |
father:
5 | me: 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | [CascadingParameter] 15 | public Father father { get; set; } 16 | 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/CP/Son.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Son

4 |
father:
5 | me: 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | [CascadingParameter] 15 | public Father father { get; set; } 16 | 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/CP/Son.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Son

4 |
father:
5 | me: 6 | 7 | 8 | 9 |
10 | @code { 11 | 12 | public string value { get; set; } 13 | 14 | [CascadingParameter] 15 | public Father father { get; set; } 16 | 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/CP/Grandson.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Grandson

4 |
father:
5 |
son:@son.value
6 | me: 7 | 8 |
9 | @code { 10 | 11 | public string value { get; set; } 12 | 13 | [CascadingParameter] 14 | public Father father { get; set; } 15 | 16 | [CascadingParameter] 17 | public Son son { get; set; } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/CP/Grandson.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Grandson

4 |
father:
5 |
son:@son.value
6 | me: 7 | 8 |
9 | @code { 10 | 11 | public string value { get; set; } 12 | 13 | [CascadingParameter] 14 | public Father father { get; set; } 15 | 16 | [CascadingParameter] 17 | public Son son { get; set; } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/CP/Grandson.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Grandson

4 |
father:
5 |
son:@son.value
6 | me: 7 | 8 |
9 | @code { 10 | 11 | public string value { get; set; } 12 | 13 | [CascadingParameter] 14 | public Father father { get; set; } 15 | 16 | [CascadingParameter] 17 | public Son son { get; set; } 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/CP/Grandson.razor: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Grandson

4 |
father:
5 |
son:@son.value
6 | me: 7 | 8 |
9 | @code { 10 | 11 | public string value { get; set; } 12 | 13 | [CascadingParameter] 14 | public Father father { get; set; } 15 | 16 | [CascadingParameter] 17 | public Son son { get; set; } 18 | } 19 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.BlazorHost/Performance.BlazorHost.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } 19 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/OrgIndexLinkDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Performance.Shared 8 | { 9 | public class OrgIndexLinkDto 10 | { 11 | /// 12 | /// 机构/部门 13 | /// 14 | public Guid OrganizationId { get; set; } 15 | /// 16 | /// 指标 17 | /// 18 | public Guid IndexLibraryId { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.Web.Virtualization 7 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 8 | @using Microsoft.JSInterop 9 | @using Performance.Client 10 | @using Performance.Client.Shared 11 | @using AntDesign 12 | @using Performance.Shared 13 | @using Microsoft.AspNetCore.Components.Authorization -------------------------------------------------------------------------------- /ToDo S2/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/Pages/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | @RenderBody() 16 |
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/Pages/IndexLibraryChart.razor: -------------------------------------------------------------------------------- 1 | @inherits DrawerTemplate 2 | 3 | 4 | 5 | 历年各部门对比 6 | 7 | @if (columnDatas?.Count == 0) 8 | { 9 | 10 | } 11 | 最近一年各部门占比 12 | 13 | @if (donutDatas?.Count == 0) 14 | { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/NewTask.razor: -------------------------------------------------------------------------------- 1 | 2 | @if (newTask != null) 3 | { 4 | 5 |
6 | 7 | 8 | @if(ChildContent!=null ) 9 | { 10 | @ChildContent(newTask) 11 | } 12 |
13 |
14 | } 15 | 23 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/NewTask.razor: -------------------------------------------------------------------------------- 1 | 2 | @if (newTask != null) 3 | { 4 | 5 |
6 | 7 | 8 | @if(ChildContent!=null ) 9 | { 10 | @ChildContent(newTask) 11 | } 12 |
13 |
14 | } 15 | 23 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/NewTask.razor: -------------------------------------------------------------------------------- 1 | 2 | @if (newTask != null) 3 | { 4 | 5 |
6 | 7 | 8 | @if(ChildContent!=null ) 9 | { 10 | @ChildContent(newTask) 11 | } 12 |
13 |
14 | } 15 | 23 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/NewTask.razor: -------------------------------------------------------------------------------- 1 | 2 | @if (newTask != null) 3 | { 4 | 5 |
6 | 7 | 8 | @if(ChildContent!=null ) 9 | { 10 | @ChildContent(newTask) 11 | } 12 |
13 |
14 | } 15 | 23 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Server/AutomapperConfig.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using Performance.Entity; 3 | using Performance.Shared; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Threading.Tasks; 8 | 9 | namespace Performance.Server 10 | { 11 | public class AutomapperConfig: Profile 12 | { 13 | public AutomapperConfig() 14 | { 15 | CreateMap(); 16 | CreateMap(); 17 | CreateMap(); 18 | CreateMap(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/Pages/Star.razor: -------------------------------------------------------------------------------- 1 | @page "/star" 2 | 3 | 4 | 5 | 6 | @foreach (var item in taskDtos) 7 | { 8 | 9 | 10 | } 11 | 12 | 13 | 14 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/Star.razor: -------------------------------------------------------------------------------- 1 | @page "/star" 2 | 3 | 4 | 5 | 6 | @foreach (var item in taskDtos) 7 | { 8 | 9 | 10 | } 11 | 12 | 13 | 14 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/Star.razor: -------------------------------------------------------------------------------- 1 | @page "/star" 2 | 3 | 4 | 5 | 6 | @foreach (var item in taskDtos) 7 | { 8 | 9 | 10 | } 11 | 12 | 13 | 14 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/Star.razor: -------------------------------------------------------------------------------- 1 | @page "/star" 2 | 3 | 4 | 5 | 6 | @foreach (var item in taskDtos) 7 | { 8 | 9 | 10 | } 11 | 12 | 13 | 14 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/OrgTreeDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Performance.Shared 8 | { 9 | public class OrgTreeDto 10 | { 11 | /// 12 | /// 机构/部门 13 | /// 14 | public Guid OrganizationId { get; set; } 15 | /// 16 | /// 父ID 17 | /// 18 | public Guid? ParentId { get; set; } 19 | 20 | public string Name { get; set; } 21 | 22 | public List Childs { get; set; } = new List(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/IndexLibraryQueryDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Performance.Shared 9 | { 10 | public class IndexLibraryQueryDto: QueryDto 11 | { 12 | [DisplayName("指标名称")] 13 | public string Name { get; set; } 14 | [DisplayName("指标范围")] 15 | public string Scope { get; set; } 16 | 17 | [DisplayName("指标类别")] 18 | public string Type { get; set; } 19 | [DisplayName("指标定义")] 20 | public string Definition { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/OrgSelectOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Performance.Shared 9 | { 10 | public class OrgSelectOptions 11 | { 12 | /// 13 | /// 选中 14 | /// 15 | public bool Checked { get; set; } 16 | 17 | /// 18 | /// 部门Id 19 | /// 20 | public Guid OrgId { get; set; } 21 | /// 22 | /// 部门名称 23 | /// 24 | public string OrgName { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/ToDo.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Client/ToDo.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Client/ToDo.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Shared/GetSearchReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchReq 8 | { 9 | public string QueryTitle { get; set; } 10 | public int PageIndex { get; set; } 11 | 12 | public int PageSize { get; set; } 13 | 14 | public List Sorts { get; set; } 15 | } 16 | 17 | public class SortFieldName 18 | { 19 | /// 20 | /// 排序字段 21 | /// 22 | public string SortField { get; set; } 23 | /// 24 | /// 排序方向 25 | /// 26 | public string SortOrder { get; set; } 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Shared/GetSearchReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchReq 8 | { 9 | public string QueryTitle { get; set; } 10 | public int PageIndex { get; set; } 11 | 12 | public int PageSize { get; set; } 13 | 14 | public List Sorts { get; set; } 15 | } 16 | 17 | public class SortFieldName 18 | { 19 | /// 20 | /// 排序字段 21 | /// 22 | public string SortField { get; set; } 23 | /// 24 | /// 排序方向 25 | /// 26 | public string SortOrder { get; set; } 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Shared/GetSearchReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchReq 8 | { 9 | public string QueryTitle { get; set; } 10 | public int PageIndex { get; set; } 11 | 12 | public int PageSize { get; set; } 13 | 14 | public List Sorts { get; set; } 15 | } 16 | 17 | public class SortFieldName 18 | { 19 | /// 20 | /// 排序字段 21 | /// 22 | public string SortField { get; set; } 23 | /// 24 | /// 排序方向 25 | /// 26 | public string SortOrder { get; set; } 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Shared/GetSearchReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchReq 8 | { 9 | public string QueryTitle { get; set; } 10 | public int PageIndex { get; set; } 11 | 12 | public int PageSize { get; set; } 13 | 14 | public List Sorts { get; set; } 15 | } 16 | 17 | public class SortFieldName 18 | { 19 | /// 20 | /// 排序字段 21 | /// 22 | public string SortField { get; set; } 23 | /// 24 | /// 排序方向 25 | /// 26 | public string SortOrder { get; set; } 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Shared/GetSearchReq.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ToDo.Shared 6 | { 7 | public class GetSearchReq 8 | { 9 | public string QueryTitle { get; set; } 10 | public int PageIndex { get; set; } 11 | 12 | public int PageSize { get; set; } 13 | 14 | public List Sorts { get; set; } 15 | } 16 | 17 | public class SortFieldName 18 | { 19 | /// 20 | /// 排序字段 21 | /// 22 | public string SortField { get; set; } 23 | /// 24 | /// 排序方向 25 | /// 26 | public string SortOrder { get; set; } 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/Pages/Login.razor: -------------------------------------------------------------------------------- 1 |
2 | 3 | @if (model != null) 4 | { 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | } 17 |
18 |
-------------------------------------------------------------------------------- /ToDo S6/ToDo/Client/Pages/Login.razor: -------------------------------------------------------------------------------- 1 |
2 | 3 | @if (model != null) 4 | { 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | } 17 |
18 |
-------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Client/Pages/Login.razor: -------------------------------------------------------------------------------- 1 | @inherits DrawerTemplate 2 | 3 | 4 | @if (model != null) 5 | { 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | } 19 |
-------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Server/Controllers/IndexController.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using Microsoft.AspNetCore.Mvc; 3 | using Microsoft.Extensions.Logging; 4 | using Performance.Entity; 5 | using Performance.Shared; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Threading.Tasks; 10 | using System.Linq.Dynamic.Core; 11 | 12 | namespace Performance.Server.Controllers 13 | { 14 | [ApiController] 15 | [Route("api/[controller]/[action]")] 16 | public class IndexController : ControllerBase 17 | { 18 | 19 | public IndexController() 20 | { 21 | 22 | } 23 | 24 | [HttpGet] 25 | public string GetHost() 26 | { 27 | return HttpContext.Request.Host.ToString(); 28 | } 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.Gateway/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:5500", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "Performance.Gateway": { 19 | "commandName": "Project", 20 | "dotnetRunMessages": "true", 21 | "launchBrowser": true, 22 | "applicationUrl": "http://localhost:5500", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /ToDo S2/ToDo/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace ToDo.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S3/ToDo/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace ToDo.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S4/ToDo/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace ToDo.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Client/ToDo.Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /ToDo S5/ToDo/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace ToDo.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S6/ToDo/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace ToDo.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S7/ToDo.BlazorHost/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Hosting; 2 | using Microsoft.Extensions.Configuration; 3 | using Microsoft.Extensions.Hosting; 4 | using Microsoft.Extensions.Logging; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Threading.Tasks; 9 | 10 | namespace ToDo.BlazorHost 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S3/ToDo.Entity/efpt.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ContextClassName": "TodoContext", 3 | "ContextNamespace": null, 4 | "DefaultDacpacSchema": null, 5 | "FilterSchemas": false, 6 | "IncludeConnectionString": true, 7 | "ModelNamespace": null, 8 | "OutputContextPath": null, 9 | "OutputPath": null, 10 | "ProjectRootNamespace": "ToDo.Entity", 11 | "Schemas": null, 12 | "SelectedHandlebarsLanguage": 0, 13 | "SelectedToBeGenerated": 0, 14 | "Tables": [ 15 | { 16 | "Name": "[dbo].[Task]", 17 | "ObjectType": 0 18 | } 19 | ], 20 | "UseDatabaseNames": true, 21 | "UseDbContextSplitting": false, 22 | "UseFluentApiOnly": false, 23 | "UseHandleBars": false, 24 | "UseInflector": false, 25 | "UseLegacyPluralizer": false, 26 | "UseNodaTime": false, 27 | "UseSpatial": false 28 | } -------------------------------------------------------------------------------- /ToDo S4/ToDo.Entity/efpt.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ContextClassName": "TodoContext", 3 | "ContextNamespace": null, 4 | "DefaultDacpacSchema": null, 5 | "FilterSchemas": false, 6 | "IncludeConnectionString": true, 7 | "ModelNamespace": null, 8 | "OutputContextPath": null, 9 | "OutputPath": null, 10 | "ProjectRootNamespace": "ToDo.Entity", 11 | "Schemas": null, 12 | "SelectedHandlebarsLanguage": 0, 13 | "SelectedToBeGenerated": 0, 14 | "Tables": [ 15 | { 16 | "Name": "[dbo].[Task]", 17 | "ObjectType": 0 18 | } 19 | ], 20 | "UseDatabaseNames": true, 21 | "UseDbContextSplitting": false, 22 | "UseFluentApiOnly": false, 23 | "UseHandleBars": false, 24 | "UseInflector": false, 25 | "UseLegacyPluralizer": false, 26 | "UseNodaTime": false, 27 | "UseSpatial": false 28 | } -------------------------------------------------------------------------------- /ToDo S5/ToDo.Entity/efpt.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ContextClassName": "TodoContext", 3 | "ContextNamespace": null, 4 | "DefaultDacpacSchema": null, 5 | "FilterSchemas": false, 6 | "IncludeConnectionString": true, 7 | "ModelNamespace": null, 8 | "OutputContextPath": null, 9 | "OutputPath": null, 10 | "ProjectRootNamespace": "ToDo.Entity", 11 | "Schemas": null, 12 | "SelectedHandlebarsLanguage": 0, 13 | "SelectedToBeGenerated": 0, 14 | "Tables": [ 15 | { 16 | "Name": "[dbo].[Task]", 17 | "ObjectType": 0 18 | } 19 | ], 20 | "UseDatabaseNames": true, 21 | "UseDbContextSplitting": false, 22 | "UseFluentApiOnly": false, 23 | "UseHandleBars": false, 24 | "UseInflector": false, 25 | "UseLegacyPluralizer": false, 26 | "UseNodaTime": false, 27 | "UseSpatial": false 28 | } -------------------------------------------------------------------------------- /ToDo S6/ToDo.Entity/efpt.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ContextClassName": "TodoContext", 3 | "ContextNamespace": null, 4 | "DefaultDacpacSchema": null, 5 | "FilterSchemas": false, 6 | "IncludeConnectionString": true, 7 | "ModelNamespace": null, 8 | "OutputContextPath": null, 9 | "OutputPath": null, 10 | "ProjectRootNamespace": "ToDo.Entity", 11 | "Schemas": null, 12 | "SelectedHandlebarsLanguage": 0, 13 | "SelectedToBeGenerated": 0, 14 | "Tables": [ 15 | { 16 | "Name": "[dbo].[Task]", 17 | "ObjectType": 0 18 | } 19 | ], 20 | "UseDatabaseNames": true, 21 | "UseDbContextSplitting": false, 22 | "UseFluentApiOnly": false, 23 | "UseHandleBars": false, 24 | "UseInflector": false, 25 | "UseLegacyPluralizer": false, 26 | "UseNodaTime": false, 27 | "UseSpatial": false 28 | } -------------------------------------------------------------------------------- /ToDo S7/ToDo.Entity/efpt.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ContextClassName": "TodoContext", 3 | "ContextNamespace": null, 4 | "DefaultDacpacSchema": null, 5 | "FilterSchemas": false, 6 | "IncludeConnectionString": true, 7 | "ModelNamespace": null, 8 | "OutputContextPath": null, 9 | "OutputPath": null, 10 | "ProjectRootNamespace": "ToDo.Entity", 11 | "Schemas": null, 12 | "SelectedHandlebarsLanguage": 0, 13 | "SelectedToBeGenerated": 0, 14 | "Tables": [ 15 | { 16 | "Name": "[dbo].[Task]", 17 | "ObjectType": 0 18 | } 19 | ], 20 | "UseDatabaseNames": true, 21 | "UseDbContextSplitting": false, 22 | "UseFluentApiOnly": false, 23 | "UseHandleBars": false, 24 | "UseInflector": false, 25 | "UseLegacyPluralizer": false, 26 | "UseNodaTime": false, 27 | "UseSpatial": false 28 | } -------------------------------------------------------------------------------- /ToDo S7/ToDo.BlazorHost/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:4000", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "ToDo.BlazorHost": { 19 | "commandName": "Project", 20 | "dotnetRunMessages": "true", 21 | "launchBrowser": true, 22 | "applicationUrl": "https://localhost:3001;http://localhost:3000", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.Gateway/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:5500", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "Performance.Gateway": { 19 | "commandName": "Project", 20 | "dotnetRunMessages": "true", 21 | "launchBrowser": true, 22 | "applicationUrl": "http://localhost:5500", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance.BlazorHost/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:5100", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "Performance.BlazorHost": { 19 | "commandName": "Project", 20 | "dotnetRunMessages": "true", 21 | "launchBrowser": true, 22 | "applicationUrl": "http://localhost:5100", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Server/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Hosting; 2 | using Microsoft.Extensions.Configuration; 3 | using Microsoft.Extensions.Hosting; 4 | using Microsoft.Extensions.Logging; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Threading.Tasks; 9 | 10 | namespace Performance.Server 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Server/ToDo.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 57e4bda5-0b19-469f-86e2-c86220d743d2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /ToDo S7/ToDo/Client/Pages/Login.razor: -------------------------------------------------------------------------------- 1 |

前端地址:@ClientHost

2 |

API服务地址:@ServerHost

3 | 4 |
5 | 6 | @if (model != null) 7 | { 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | } 20 |
21 |
-------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/SelectDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Performance.Shared 6 | { 7 | /// 8 | /// 包含Value和Text的选择对象 9 | /// 10 | public class SelectOptionCore 11 | { 12 | public SelectOptionCore() { } 13 | 14 | public SelectOptionCore(string value, string text) 15 | { 16 | this.Value = value; 17 | this.Text = text; 18 | } 19 | 20 | /// 21 | /// 值 22 | /// 23 | public string Value { get; set; } 24 | /// 25 | /// 显示文本 26 | /// 27 | public string Text { get; set; } 28 | 29 | 30 | public override string ToString() 31 | { 32 | return Text; 33 | } 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /Performance S6/Performance/Performance/Shared/QueryDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Performance.Shared 6 | { 7 | 8 | public class QueryDto 9 | { 10 | /// 11 | /// 页开始序号 12 | /// 13 | public int PageIndex { get; set; } = 0; 14 | /// 15 | /// 每页数量 16 | /// 17 | public int PageSize { get; set; } = 5; 18 | 19 | public List Sorts { get; set; } = new List(); 20 | } 21 | 22 | public class QuerySort 23 | { 24 | /// 25 | /// 排序字段 26 | /// 27 | public string SortField { get; set; } 28 | /// 29 | /// 排序方向 30 | /// 31 | public string SortOrder { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ToDo S2/ToDo/Client/Pages/TaskInfo.razor: -------------------------------------------------------------------------------- 1 | @inherits DrawerTemplate 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |