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,9 +1,9 @@
@inject IStringLocalizer<BarcodeGenerateSettings> Localizer
@inject IStringLocalizer<BarcodeGenerateSettings> Localizer

<GroupBox Title="@Localizer["BarcodeGeneratorGroupBoxText"]">
<div class="row form-inline g-3">
<div class="col-12 col-sm-6">
<BootstrapInput Value="Value" ShowLabel="true" UseInputEvent="true" OnValueChanged="OnValueChanged" />
<BootstrapInput Value="Value" DisplayText="Value" ShowLabel="true" UseInputEvent="true" OnValueChanged="OnValueChanged" />
</div>
<div class="col-12 col-sm-6">
<Select @bind-Value="Format" OnValueChanged="OnFormatChanged" ShowLabel="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ protected override void OnInitialized()
{
base.OnInitialized();

Items = Enum.GetNames<RowType>().Select(i => new SelectedItem(i, Localizer[i]));
Items = new List<SelectedItem>
{
new SelectedItem("Normal", Localizer["Normal"]),
new SelectedItem("Inline", Localizer["Inline"]),
};
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@inject IOptions<WebsiteOptions> WebsiteOption
@inject IStringLocalizer<QQGroup> Localzier
@inject IOptions<WebsiteOptions> WebsiteOption
@inject IStringLocalizer<QQGroup> Localizer

<div>
@Localzier["Group"]:BootstrapAdmin & Blazor
@Localizer["Group"]:BootstrapAdmin & Blazor
<a class="mx-1" target="_blank" href="@WebsiteOption.Value.QQGroup1Link">
<span class="text-success fa-brands fa-qq"></span>
<span class="text-success"><b>795206915</b></span>
Expand All @@ -11,5 +11,5 @@
<span class="text-success fa-brands fa-qq"></span>
<span class="text-success"><b>675147445</b></span>
</a>
@Localzier["Welcome"]
@Localizer["Welcome"]
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
Expand All @@ -18,6 +18,10 @@ public partial class TutorialsNavMenu
[NotNull]
private IStringLocalizer<BaseLayout>? AppLocalizer { get; set; }

[Inject]
[NotNull]
private IStringLocalizer<Tutorials>? TutorialsLocalizer { get; set; }

[Inject]
[NotNull]
private IStringLocalizer<Tutorials>? Localizer { get; set; }
Expand Down Expand Up @@ -48,12 +52,12 @@ protected override async Task OnInitializedAsync()
new()
{
Template = CreateDownloadButtonComponent("dashboard", _dashboardFileList),
Text = Localizer["DashboardSummary"],
Text = TutorialsLocalizer["DashboardSummary"],
Url = "tutorials/dashboard"
},
new()
{
Text = Localizer["LoginSummary"],
Text = TutorialsLocalizer["LoginSummary"],
Url = "tutorials/login",
Items =
[
Expand Down Expand Up @@ -92,24 +96,24 @@ protected override async Task OnInitializedAsync()
new()
{
Template = CreateDownloadButtonComponent("waterfall", _waterfallFileList),
Text = Localizer["WaterfallSummary"],
Text = TutorialsLocalizer["WaterfallSummary"],
Url = "tutorials/waterfall"
},
new()
{
Template = CreateDownloadButtonComponent("translate", _translateFileList),
Text = Localizer["TranslateSummary"],
Text = TutorialsLocalizer["TranslateSummary"],
Url = "tutorials/translate"
},
new()
{
Template = CreateDownloadButtonComponent("drawing", _drawingAppFileList),
Text = Localizer["DrawingSummary"],
Text = TutorialsLocalizer["DrawingSummary"],
Url = "tutorials/drawing"
},
new()
{
Text = Localizer["AdminSummary"],
Text = TutorialsLocalizer["AdminSummary"],
Url = "tutorials/admin",
},
new()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@namespace BootstrapBlazor.Server.Components.Samples.Tutorials
@inject IStringLocalizer<BarCodeGenerator> Localizer
@page "/tutorials/barcode"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

using Microsoft.AspNetCore.Components.Forms;

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.BarCodeGenerator;

/// <summary>
/// BarCodeGenerator 组件示例代码
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.BarCodeGenerator;

/// <summary>
/// EmailContent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.BarCodeGenerator;

/// <summary>
/// TextContent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

using System.ComponentModel;

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.BarCodeGenerator;

/// <summary>
/// WiFiAuthentication enum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.BarCodeGenerator;

/// <summary>
/// WiFi content class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet;

/// <summary>
/// Contributor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet;

static class MockOnlineContributor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@namespace BootstrapBlazor.Server.Components.Samples.Tutorials

<div class="bb-contributor">
<img src="@Contributor.Avatar" />
<div class="bb-contributor-main">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet;

/// <summary>
/// Online sheet sample code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@namespace BootstrapBlazor.Server.Components.Samples.Tutorials
@page "/tutorials/online-sheet"

<div class="bb-online-sheet-demo">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone

namespace BootstrapBlazor.Server.Components.Samples.Tutorials;
namespace BootstrapBlazor.Server.Components.Samples.Tutorials.OnlineSheet;

/// <summary>
/// Online sheet sample code
Expand Down
Loading