Refactor project structure and update dependencies
- Updated project setup to use Vite for React application. - Removed unnecessary files and simplified configurations. - Enhanced authentication and routing in the application. - Improved code quality with ESLint and updated styles. - Added new components for better user experience, including a password recovery modal. - Updated documentation for clearer setup instructions.
This commit is contained in:
parent
dfb721c2f8
commit
88bcac382c
@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Identity.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Surge365.MassEmailReact.Server.Controllers
|
||||
{
|
||||
//[Route("api/[controller]")]
|
||||
//[ApiController]
|
||||
//public class AuthenticationController : ControllerBase
|
||||
//{
|
||||
// private readonly IAuthService _authService;
|
||||
|
||||
// public AuthenticationController(IAuthService authService)
|
||||
// {
|
||||
// _authService = authService;
|
||||
// }
|
||||
|
||||
// [HttpPost("login")]
|
||||
// public IActionResult Authenticate([FromBody] LoginRequest request)
|
||||
// {
|
||||
// var token = _authService.Authenticate(request.Username, request.Password);
|
||||
// if (token == null)
|
||||
// {
|
||||
// return Unauthorized(new { message = "Invalid credentials" });
|
||||
// }
|
||||
|
||||
// return Ok(new { token });
|
||||
// }
|
||||
//}
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Surge365.MassEmailReact.Server.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class AuthencticationController : ControllerBase
|
||||
{
|
||||
[HttpPost]
|
||||
public bool Authenticate(string username, string password)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -16,10 +16,10 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Surge365.MassEmailReact.Application\Surge365.MassEmailReact.Application.csproj" />
|
||||
<ProjectReference Include="..\surge365.massemailreact.client\Surge365.MassEmailReact.Web.esproj" />
|
||||
<ProjectReference Include="..\surge365.massemailreact.Web\Surge365.MassEmailReact.Web.esproj" />
|
||||
<ProjectReference Include="..\Surge365.MassEmailReact.Domain\Surge365.MassEmailReact.Domain.csproj" />
|
||||
<ProjectReference Include="..\Surge365.MassEmailReact.Infrastructure\Surge365.MassEmailReact.Infrastructure.csproj" />
|
||||
<ProjectReference Include="..\Surge365.MassEmailReact.Server\Surge365.MassEmailReact.API.csproj" />
|
||||
<ProjectReference Include="..\Surge365.MassEmailReact.API\Surge365.MassEmailReact.API.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.13.35806.99
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "Surge365.MassEmailReact.Web", "surge365.massemailreact.client\Surge365.MassEmailReact.Web.esproj", "{E719388D-D7C7-6E5A-3D56-06DBCCECFF8F}"
|
||||
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "Surge365.MassEmailReact.Web", "Surge365.MassEmailReact.Web\Surge365.MassEmailReact.Web.esproj", "{E719388D-D7C7-6E5A-3D56-06DBCCECFF8F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Surge365.MassEmailReact.API", "Surge365.MassEmailReact.Server\Surge365.MassEmailReact.API.csproj", "{585F39DB-9461-48EB-9A0A-294478A9F052}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Surge365.MassEmailReact.API", "Surge365.MassEmailReact.API\Surge365.MassEmailReact.API.csproj", "{585F39DB-9461-48EB-9A0A-294478A9F052}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Surge365.MassEmailReact.Domain", "Surge365.MassEmailReact.Domain\Surge365.MassEmailReact.Domain.csproj", "{6032050E-5666-4246-BA3E-4FABCD813724}"
|
||||
EndProject
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "edge",
|
||||
"request": "launch",
|
||||
"name": "localhost (Edge)",
|
||||
"url": "https://localhost:52871",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"name": "localhost (Chrome)",
|
||||
"url": "https://localhost:52871",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user