Skip to content

Commit 6f1e366

Browse files
authored
1.0.0 release updates (#10)
1 parent c103b1d commit 6f1e366

15 files changed

Lines changed: 68 additions & 27 deletions

BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ public class MainLayoutBase : LayoutComponentBase
1717
internal Sidebar sidebar = default!;
1818
internal IEnumerable<NavItem> navItems = default!;
1919

20-
[Inject] public IConfiguration Configuration { get; set; } = default!;
20+
[Inject] public IConfiguration _configuration { get; set; } = default!;
2121

2222
protected override void OnInitialized()
2323
{
24-
version = $"v{Configuration["version"]}"; // example: v0.6.1
25-
homeUrl = $"{Configuration["urls:homeUrl"]}";
26-
docsUrl = $"{Configuration["urls:docs"]}";
27-
blogUrl = $"{Configuration["urls:blog"]}";
28-
githubUrl = $"{Configuration["urls:github"]}";
29-
twitterUrl = $"{Configuration["urls:twitter"]}";
30-
linkedInUrl = $"{Configuration["urls:linkedin"]}";
31-
openCollectiveUrl = $"{Configuration["urls:opencollective"]}";
32-
githubIssuesUrl = $"{Configuration["urls:github_issues"]}";
33-
githubDiscussionsUrl = $"{Configuration["urls:github_discussions"]}";
34-
stackoverflowUrl = $"{Configuration["urls:stackoverflow"]}";
24+
version = $"v{_configuration["version"]}"; // example: v0.6.1
25+
homeUrl = $"{_configuration["urls:homeUrl"]}";
26+
docsUrl = $"{_configuration["urls:docs"]}";
27+
blogUrl = $"{_configuration["urls:blog"]}";
28+
githubUrl = $"{_configuration["urls:github"]}";
29+
twitterUrl = $"{_configuration["urls:twitter"]}";
30+
linkedInUrl = $"{_configuration["urls:linkedin"]}";
31+
openCollectiveUrl = $"{_configuration["urls:opencollective"]}";
32+
githubIssuesUrl = $"{_configuration["urls:github_issues"]}";
33+
githubDiscussionsUrl = $"{_configuration["urls:github_discussions"]}";
34+
stackoverflowUrl = $"{_configuration["urls:stackoverflow"]}";
3535
base.OnInitialized();
3636
}
3737

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/GettingStarted.razor

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@
1111
<div class="mb-3">
1212
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
1313
</div>
14-
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_01_Install.txt" />
14+
<div class="p-2 text-bg-dark rounded">
15+
Install-Package BlazorExpress.ChartJS -Version @version
16+
</div>
1517

1618
<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
1719
<div class="mb-3">
1820
Insert the following references into the <b>body</b> section of the <b>wwwroot/index.html</b> file, immediately after the <b>_framework/blazor.webassembly.js</b> reference:
1921
</div>
20-
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_02_Scripts.html" />
22+
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_01_Scripts.html" />
2123

2224
<SectionHeading Size="HeadingSize.H4" Text="Register services" PageUrl="@pageUrl" HashTagName="register-services" />
2325
<div class="mb-3">
2426
Register tag helpers in <b>_Imports.razor</b>.
2527
</div>
26-
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_03_Register.txt" />
28+
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_02_Register.txt" />
2729

2830
@code {
2931
private const string pageUrl = "/charts/getting-started";
@@ -32,14 +34,20 @@
3234
private const string heading = "Getting started - Blazor WebAssembly (.NET 8)";
3335
private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library.";
3436
private const string imageUrl = "https://i.imgur.com/xEPhAsW.png";
37+
private string version = default!;
3538

3639
[Inject]
3740
private NavigationManager _navigationManager { get; set; } = default!;
3841

42+
[Inject]
43+
private IConfiguration _configuration { get; set; } = default!;
44+
3945
protected override void OnInitialized()
4046
{
4147
try
4248
{
49+
version = _configuration["version"]!;
50+
4351
if (_navigationManager.Uri.Replace(_navigationManager.BaseUri, "").Contains("charts/getting-started"))
4452
_navigationManager.NavigateTo(pageUrl2);
4553
}

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Install.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Scripts.html renamed to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Scripts.html

File renamed without changes.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_03_Register.txt renamed to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Register.txt

File renamed without changes.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/GettingStarted.razor

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,42 @@
1010
<div class="mb-3">
1111
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
1212
</div>
13-
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Install.txt" />
13+
<div class="p-2 text-bg-dark rounded">
14+
Install-Package BlazorExpress.ChartJS -Version @version
15+
</div>
1416

1517
<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
1618
<div class="mb-3">
1719
Insert the following references into the <b>body</b> section of the <b>Components/App.razor</b> file, immediately after the <b>_framework/blazor.web.js</b> reference:
1820
</div>
19-
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Scripts.html" />
21+
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Scripts.html" />
2022

2123
<SectionHeading Size="HeadingSize.H4" Text="Register services" PageUrl="@pageUrl" HashTagName="register-services" />
2224
<div class="mb-3">
2325
Register tag helpers in <b>Components/_Imports.razor</b>.
2426
</div>
25-
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_03_Register.txt" />
27+
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Register.txt" />
2628

2729
@code {
2830
private const string pageUrl = "/charts/getting-started/blazor-webapp-server-global-net-8";
2931
private const string title = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Server - Global location";
3032
private const string heading = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Server - Global location";
3133
private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library.";
3234
private const string imageUrl = "https://i.imgur.com/C5ObC3A.png";
35+
private string version = default!;
36+
37+
[Inject]
38+
private IConfiguration _configuration { get; set; } = default!;
39+
40+
protected override void OnInitialized()
41+
{
42+
try
43+
{
44+
version = _configuration["version"]!;
45+
}
46+
catch
47+
{
48+
// do nothing
49+
}
50+
}
3351
}

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Install.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Scripts.html renamed to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Scripts.html

File renamed without changes.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_03_Register.txt renamed to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Register.txt

File renamed without changes.

BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/GettingStarted.razor

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,44 @@
1212
<div class="mb-3">
1313
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
1414
</div>
15-
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Install.txt" />
15+
<div class="p-2 text-bg-dark rounded">
16+
Install-Package BlazorExpress.ChartJS -Version @version
17+
</div>
1618

1719
<SectionHeading Size="HeadingSize.H4" Text="Register services" PageUrl="@pageUrl" HashTagName="register-services" />
1820
<div class="mb-3">
1921
Register tag helpers in <b>_Imports.razor</b>.
2022
</div>
21-
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_03_Register.txt" />
23+
<Snippet LanguageCode="LanguageCode.Razor" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Register.txt" />
2224

2325
<SectionHeading Size="HeadingSize.H3" Text="Server Project" PageUrl="@pageUrl" HashTagName="server-project" />
2426

2527
<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
2628
<div class="mb-3">
2729
Insert the following references into the <b>body</b> section of the <b>Components/App.razor</b> file, immediately after the <b>_framework/blazor.web.js</b> reference:
2830
</div>
29-
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Scripts.html" />
31+
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Scripts.html" />
3032

3133
@code {
3234
private const string pageUrl = "/charts/getting-started/blazor-webapp-auto-global-net-8";
3335
private const string title = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Auto - Global location";
3436
private const string heading = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Auto - Global location";
3537
private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library.";
3638
private const string imageUrl = "https://i.imgur.com/C5ObC3A.png";
39+
private string version = default!;
40+
41+
[Inject]
42+
private IConfiguration _configuration { get; set; } = default!;
43+
44+
protected override void OnInitialized()
45+
{
46+
try
47+
{
48+
version = _configuration["version"]!;
49+
}
50+
catch
51+
{
52+
// do nothing
53+
}
54+
}
3755
}

0 commit comments

Comments
 (0)