Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>10.0.0</Version>
<Version>10.0.1</Version>
</PropertyGroup>

<PropertyGroup>
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Pdf Viewer</PackageTags>
<Description>Bootstrap UI components extensions of PdfViewer</Description>
</PropertyGroup>

<ItemGroup>
<Content Remove="wwwroot\readme.txt" />
<None Include="wwwroot\readme.txt" />
Comment on lines +13 to +14
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSBuild generally tolerates backslashes, but using forward slashes in item paths is more consistently cross-platform and avoids edge cases in tooling. Consider changing to "wwwroot/readme.txt" for both entries.

Suggested change
<Content Remove="wwwroot\readme.txt" />
<None Include="wwwroot\readme.txt" />
<Content Remove="wwwroot/readme.txt" />
<None Include="wwwroot/readme.txt" />

Copilot uses AI. Check for mistakes.
</ItemGroup>

<ItemGroup>
<PackageReference Include="BootstrapBlazor" Version="$(BBVersion)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
namespace BootstrapBlazor.Components;

/// <summary>
/// 滚动方向枚举
/// <para lang="zh">滚动方向枚举</para>
/// <para lang="en">Scroll strategy enumeration</para>
Comment on lines +10 to +11
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: prefer "xml:lang" for localized XML documentation (many tools do not interpret a plain "lang" attribute).

Copilot uses AI. Check for mistakes.
/// </summary>
public enum EmbedPDFScrollStrategy
{
/// <summary>
/// 垂直方向
/// <para lang="zh">垂直方向</para>
/// <para lang="en">Vertical</para>
/// </summary>
[Description("vertical")]
Vertical,

/// <summary>
/// 水平方向
/// <para lang="zh">水平方向</para>
/// <para lang="en">Horizontal</para>
/// </summary>
[Description("horizontal")]
Horizontal
Expand Down
12 changes: 8 additions & 4 deletions src/components/BootstrapBlazor.EmbedPDF/EmbedPDFTabBarMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@
namespace BootstrapBlazor.Components;

/// <summary>
/// 标签模式
/// <para lang="zh">标签模式枚举</para>
/// <para lang="en">Tab bar mode enumeration</para>
Comment on lines +10 to +11
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: use "xml:lang" instead of "lang" on XML doc elements to ensure localization metadata is recognized by documentation generators.

Copilot uses AI. Check for mistakes.
/// </summary>
public enum EmbedPDFTabBarMode
{
/// <summary>
/// 始终显示
/// <para lang="zh">始终显示</para>
/// <para lang="en">Always show</para>
/// </summary>
[Description("always")]
Always,

/// <summary>
/// 多标签模式
/// <para lang="zh">多标签模式</para>
/// <para lang="en">Multiple tabs mode</para>
/// </summary>
[Description("multiple")]
Multiple,

/// <summary>
/// 不显示
/// <para lang="zh">不显示</para>
/// <para lang="en">Never show</para>
/// </summary>
[Description("never")]
Never
Expand Down
12 changes: 8 additions & 4 deletions src/components/BootstrapBlazor.EmbedPDF/EmbedPDFTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@
namespace BootstrapBlazor.Components;

/// <summary>
/// 主题枚举
/// <para lang="zh">主题枚举</para>
/// <para lang="en">Theme enumeration</para>
Comment on lines +10 to +11
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XML documentation localization should use the standard "xml:lang" attribute rather than "lang" (which many doc tools ignore). Consider updating to xml:lang (e.g., / ) for better tooling support.

Copilot uses AI. Check for mistakes.
/// </summary>
public enum EmbedPDFTheme
{
/// <summary>
/// 跟随系统
/// <para lang="zh">跟随系统</para>
/// <para lang="en">Follow system</para>
/// </summary>
[Description("system")]
System,

/// <summary>
/// 明亮模式
/// <para lang="zh">明亮模式</para>
/// <para lang="en">Light mode</para>
/// </summary>
[Description("light")]
Light,

/// <summary>
/// 暗黑模式
/// <para lang="zh">暗黑模式</para>
/// <para lang="en">Dark mode</para>
/// </summary>
[Description("dark")]
Dark
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading