diff --git a/Surge365.MassEmailReact.API/Program.cs b/Surge365.MassEmailReact.API/Program.cs index 42834b1..5beb8fa 100644 --- a/Surge365.MassEmailReact.API/Program.cs +++ b/Surge365.MassEmailReact.API/Program.cs @@ -13,6 +13,7 @@ using System.Security.Claims; using System.Text; using Surge365.Core.Interfaces; using Surge365.MassEmailReact.Infrastructure.EntityMaps; +using Surge365.Core.OpenApi; var builder = WebApplication.CreateBuilder(args); @@ -55,10 +56,16 @@ try }); // Add services to the container. - builder.Services.AddControllers().AddApplicationPart(typeof(Surge365.Core.Controllers.AuthenticationController).Assembly); + builder.Services.AddControllers(options => + { + options.UseApiPrefixRouteConvention(); + }).AddApplicationPart(typeof(Surge365.Core.Controllers.AuthenticationController).Assembly); // Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi - builder.Services.AddOpenApi(); + builder.Services.AddOpenApi(options => + { + options.AddDocumentTransformer(); + }); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/Surge365.MassEmailReact.Web/src/components/pages/ActiveMailings.tsx b/Surge365.MassEmailReact.Web/src/components/pages/ActiveMailings.tsx index ed9b60f..ad99128 100644 --- a/Surge365.MassEmailReact.Web/src/components/pages/ActiveMailings.tsx +++ b/Surge365.MassEmailReact.Web/src/components/pages/ActiveMailings.tsx @@ -23,7 +23,7 @@ function ActiveMailings() { { field: "mailingId", headerName: "Mailing ID", width: 100 }, { field: "mailingName", headerName: "Name", flex: 1, minWidth: 160 }, { field: "emailCount", headerName: "Emails", width: 100 }, - { field: "sendCount", headerName: "Active", width: 100 }, + { field: "sendCount", headerName: "Sent", width: 100 }, { field: "deliveredCount", headerName: "Delivered", width: 100 }, { field: "failedCount", headerName: "Failed", width: 100 }, { field: "blockedCount", headerName: "Blocked", width: 100 }, diff --git a/Surge365.MassEmailReact.Web/src/components/pages/CompletedMailings.tsx b/Surge365.MassEmailReact.Web/src/components/pages/CompletedMailings.tsx index 458accc..d3e6684 100644 --- a/Surge365.MassEmailReact.Web/src/components/pages/CompletedMailings.tsx +++ b/Surge365.MassEmailReact.Web/src/components/pages/CompletedMailings.tsx @@ -62,7 +62,7 @@ function CompletedMailings() { return new Date(v1).getTime() - new Date(v2).getTime(); }}, { field: "emailCount", headerName: "Emails", width: 70 }, - { field: "sendCount", headerName: "Active", width: 70 }, + { field: "sendCount", headerName: "Sent", width: 70 }, { field: "deliveredCount", headerName: "Delivered", width: 90 }, { field: "failedCount", headerName: "Failed", width: 70 }, { field: "blockedCount", headerName: "Blocked", width: 80 }, diff --git a/Surge365.MassEmailReact.Web/src/components/pages/ScheduledMailings.tsx b/Surge365.MassEmailReact.Web/src/components/pages/ScheduledMailings.tsx index d9dee87..149b53b 100644 --- a/Surge365.MassEmailReact.Web/src/components/pages/ScheduledMailings.tsx +++ b/Surge365.MassEmailReact.Web/src/components/pages/ScheduledMailings.tsx @@ -69,7 +69,7 @@ function ScheduleMailings() { flex: 1, minWidth: 200, valueGetter: (_: any, row: Mailing) => row.scheduleDate ? new Date(row.scheduleDate).toLocaleString() : 'N/A', - sortComparator: (v1: any, v2: any, cellParams1: any, cellParams2: any) => { + sortComparator: (_v1: any, _v2: any, cellParams1: any, cellParams2: any) => { const date1 = cellParams1.api.getRow(cellParams1.id)?.scheduleDate; const date2 = cellParams2.api.getRow(cellParams2.id)?.scheduleDate;