Add Patch Puppeteer

This commit is contained in:
Leandro Hernan Rojas 2025-05-15 08:57:56 -03:00
parent 684036875c
commit 19403c6023
8 changed files with 58 additions and 2 deletions

7
Documents/Class1.cs Normal file
View File

@ -0,0 +1,7 @@
namespace Documents
{
public class Class1
{
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,12 @@
namespace Domain.Dtos
{
public class QuoteCustomerDto
{
public string Name { get; set; } = "";
public string Cuit { get; set; } = "";
public string IngresosBrutos { get; set; } = "";
public string Address { get; set; } = "";
public string IvaCondition { get; set; } = "";
}
}

View File

@ -1,4 +1,6 @@
namespace Core.Dtos using Domain.Dtos;
namespace Core.Dtos
{ {
public class QuoteDto public class QuoteDto
{ {
@ -81,5 +83,10 @@
/// Ajustes comerciales aplicados (descuentos o recargos). /// Ajustes comerciales aplicados (descuentos o recargos).
/// </summary> /// </summary>
public List<QuoteAdjustmentDto> Adjustments { get; set; } = new(); public List<QuoteAdjustmentDto> Adjustments { get; set; } = new();
/// <summary>
/// Datos comerciales del cliente.
/// </summary>
public QuoteCustomerDto Customer { get; set; } = new();
} }
} }

View File

@ -18,6 +18,7 @@ namespace Transversal.Services
_browser = Puppeteer.LaunchAsync(new LaunchOptions _browser = Puppeteer.LaunchAsync(new LaunchOptions
{ {
Headless = true, Headless = true,
ExecutablePath = "/usr/bin/chromium",
Args = new[] Args = new[]
{ {
"--no-sandbox", "--no-sandbox",

View File

@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\maski\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\maski\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.13.1</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.13.2</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\maski\.nuget\packages\" /> <SourceRoot Include="C:\Users\maski\.nuget\packages\" />

View File

@ -10,6 +10,16 @@ EXPOSE 8081
# Instalación de Node.js en la fase base (si lo necesitas para el contenedor final) # Instalación de Node.js en la fase base (si lo necesitas para el contenedor final)
#RUN apt-get update && apt-get install -y nodejs npm #RUN apt-get update && apt-get install -y nodejs npm
# Instalación de Chromium y dependencias en la imagen base
RUN apt-get update && \
apt-get install -y wget gnupg2 ca-certificates fonts-liberation libappindicator3-1 libasound2 \
libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 \
libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils chromium && \
rm -rf /var/lib/apt/lists/*
ENV CHROME_BIN=/usr/bin/chromium
# Esta fase se usa para compilar el proyecto de servicio # Esta fase se usa para compilar el proyecto de servicio
#FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build #FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build

View File

@ -39,6 +39,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.9 Services", "1.9 Service
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Services", "Services\Services.csproj", "{34FC5538-4779-41F5-8355-7866B1395A4F}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Services", "Services\Services.csproj", "{34FC5538-4779-41F5-8355-7866B1395A4F}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.5 Documents", "1.5 Documents", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documents", "Documents\Documents.csproj", "{85E827F9-36AF-4E3D-83E5-5B5644AB044B}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -77,6 +81,10 @@ Global
{34FC5538-4779-41F5-8355-7866B1395A4F}.Debug|Any CPU.Build.0 = Debug|Any CPU {34FC5538-4779-41F5-8355-7866B1395A4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.ActiveCfg = Release|Any CPU {34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.Build.0 = Release|Any CPU {34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.Build.0 = Release|Any CPU
{85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -94,6 +102,8 @@ Global
{8A7FB2B3-E208-4237-B4E5-9DDF69D4FD05} = {0A1CFFA9-E7E9-47B7-B494-F37A71A53C7F} {8A7FB2B3-E208-4237-B4E5-9DDF69D4FD05} = {0A1CFFA9-E7E9-47B7-B494-F37A71A53C7F}
{13328F60-28A6-446D-9935-23866F3F3D9D} = {74280C0B-F2CC-4A3E-86D6-05530F9766D5} {13328F60-28A6-446D-9935-23866F3F3D9D} = {74280C0B-F2CC-4A3E-86D6-05530F9766D5}
{34FC5538-4779-41F5-8355-7866B1395A4F} = {13328F60-28A6-446D-9935-23866F3F3D9D} {34FC5538-4779-41F5-8355-7866B1395A4F} = {13328F60-28A6-446D-9935-23866F3F3D9D}
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {74280C0B-F2CC-4A3E-86D6-05530F9766D5}
{85E827F9-36AF-4E3D-83E5-5B5644AB044B} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {92DE3FEB-7D7E-4C78-BE8C-34931CA1DAED} SolutionGuid = {92DE3FEB-7D7E-4C78-BE8C-34931CA1DAED}