Небольшое переформатирование
All checks were successful
Build and deploy / Publish image (push) Successful in 9m23s

This commit is contained in:
2025-01-20 22:24:00 +03:00
parent cf9e14c0fc
commit e85cb89e1c
10 changed files with 86 additions and 209 deletions

View File

@@ -1,24 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>
<ItemGroup>
<UpToDateCheckBuilt Include="wwwroot/css/site.css"
Set="Css" />
<UpToDateCheckBuilt Include="tailwind.config.js"
Set="Css" />
</ItemGroup>
<!-- <Target Name="Tailwind" BeforeTargets="Build">
<Exec Command="npm run css:build"/>
</Target> -->
<ItemGroup>
<PackageReference Include="BlazorPageScript"
Version="1.0.0" />
@@ -26,6 +31,7 @@
Version="3.2.0" />
<PackageReference Include="Gotenberg.Sharp.API.Client"
Version="2.4.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.1" />
<PackageReference Include="Microsoft.Identity.Web"
Version="3.2.2" />
<PackageReference Include="Microsoft.Identity.Web.UI"
@@ -37,9 +43,6 @@
<_ContentIncludedByDefault Remove="wwwroot\bootstrap\bootstrap.min.css" />
<_ContentIncludedByDefault Remove="wwwroot\bootstrap\bootstrap.min.css.map" />
</ItemGroup>
<ItemGroup>
<Folder Include="PDFCache\" />
</ItemGroup>
<ItemGroup>
<Content Include="Templates\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

View File

@@ -7,7 +7,6 @@ namespace Otchinslator;
[ApiController]
[Authorize]
[AllowAnonymous]
public class StatementController(IStatementGenerator statementGenerator, IConfiguration configuration) : Controller
{
[HttpPost("/generateStatement")]
@@ -33,7 +32,6 @@ public class StatementController(IStatementGenerator statementGenerator, IConfig
return BadRequest("Некорректный курс для магистратуры");
}
var userEmail = User.Identity.Name;
var userFIO = User.Claims.FirstOrDefault(x => x.Type == "name")?.Value;