Skip to content

Commit

Permalink
chore: update dependencies and csharpier formatting (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabynevada authored Sep 5, 2024
1 parent 57b780c commit 07d70ce
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.28.2",
"version": "0.29.1",
"commands": [
"dotnet-csharpier"
],
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleReportServer/SimpleReportServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.3" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorReports/Enums/BlazorReportsPageOrientation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public enum BlazorReportsPageOrientation
/// <summary>
/// Portrait orientation
/// </summary>
Portrait
Portrait,
}
4 changes: 2 additions & 2 deletions src/BlazorReports/Extensions/BlazorReportExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static string GetContentType(this BlazorReport blazorReport)
{
ReportOutputFormat.Pdf => "application/pdf",
ReportOutputFormat.Html => "text/html",
_ => "application/pdf"
_ => "application/pdf",
};
}

Expand All @@ -33,7 +33,7 @@ public static string GetFileExtension(this BlazorReport blazorReport)
{
ReportOutputFormat.Pdf => "pdf",
ReportOutputFormat.Html => "html",
_ => "pdf"
_ => "pdf",
};
}
}
4 changes: 2 additions & 2 deletions src/BlazorReports/Models/BlazorReportRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public BlazorReport AddReport<T>(BlazorReportRegistrationOptions? options = null
NormalizedName = normalizedReportName,
Component = typeof(T),
Data = null,
PageSettings = options?.PageSettings
PageSettings = options?.PageSettings,
};
if (!string.IsNullOrEmpty(options?.BaseStylesPath))
{
Expand Down Expand Up @@ -130,7 +130,7 @@ public BlazorReport AddReport<T, TD>(BlazorReportRegistrationOptions? options =
NormalizedName = normalizedReportName,
Component = typeof(T),
Data = typeof(TD),
PageSettings = options?.PageSettings
PageSettings = options?.PageSettings,
};
if (!string.IsNullOrEmpty(options?.BaseStylesPath))
{
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorReports/Models/ReportOutputFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public enum ReportOutputFormat
/// <summary>
/// HyperText Markup Language
/// </summary>
Html
Html,
}
2 changes: 1 addition & 1 deletion src/BlazorReports/Services/BrowserServices/Browsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public enum Browsers
/// <summary>
/// Microsoft Edge
/// </summary>
Edge
Edge,
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ BlazorReportsBrowserOptions browserOptions
"--no-first-run",
"--disable-crash-reporter",
"--remote-debugging-port=\"0\"",
$"--user-data-dir=\"{devToolsDirectory}\""
$"--user-data-dir=\"{devToolsDirectory}\"",
};

if (browserOptions.NoSandbox)
Expand All @@ -142,7 +142,7 @@ BlazorReportsBrowserOptions browserOptions
{
FileName = chromiumExeFileName,
Arguments = chromiumArguments,
CreateNoWindow = true
CreateNoWindow = true,
};

chromiumProcess.StartInfo = processStartInfo;
Expand Down Expand Up @@ -179,7 +179,7 @@ DirectoryInfo devToolsActivePortDirectory
{
Path = devToolsActivePortDirectory.FullName,
Filter = Path.GetFileName(devToolsActivePortFile),
EnableRaisingEvents = true
EnableRaisingEvents = true,
};

var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10)); // 10 second timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal static class BrowserFinder
{
Browsers.Chrome => ChromeFinder.Find(),
Browsers.Edge => EdgeFinder.Find(),
_ => string.Empty
_ => string.Empty,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal static class ChromeFinder
"/usr/bin",
"/sbin",
"/bin",
"/opt/microsoft/edge"
"/opt/microsoft/edge",
};

/// <summary>
Expand Down Expand Up @@ -131,7 +131,7 @@ private static List<string> GetExeNames()
ChromeExecutableNameLinux1,
ChromeExecutableNameLinux2,
ChromeExecutableNameLinux3,
ChromeExecutableNameLinux4
ChromeExecutableNameLinux4,
}
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal static class EdgeFinder
"/usr/bin",
"/sbin",
"/bin",
"/opt/microsoft/edge"
"/opt/microsoft/edge",
};

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorReports/Services/ReportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async ValueTask<
{
{ "BaseStyles", baseStyles },
{ "Data", data },
{ "GlobalAssets", reportRegistry.GlobalAssets }
{ "GlobalAssets", reportRegistry.GlobalAssets },
};

await using var htmlRenderer = new HtmlRenderer(scope.ServiceProvider, loggerFactory);
Expand Down

0 comments on commit 07d70ce

Please sign in to comment.