From 17b8f4b65ca9882d5b25e66d69c6e78999fa11da Mon Sep 17 00:00:00 2001 From: Vikram Reddy Date: Sun, 16 Jun 2024 21:18:11 +0530 Subject: [PATCH] 1.0.0 release updates --- .../Components/Layout/MainLayoutBase.cs | 24 +++++++++---------- .../NET8_01_WebAssembly/GettingStarted.razor | 14 ++++++++--- .../Getting_Started_Snippet_01_Install.txt | 1 - ...> Getting_Started_Snippet_01_Scripts.html} | 0 ...> Getting_Started_Snippet_02_Register.txt} | 0 .../GettingStarted.razor | 24 ++++++++++++++++--- .../Getting_Started_Snippet_01_Install.txt | 1 - ...> Getting_Started_Snippet_01_Scripts.html} | 0 ...> Getting_Started_Snippet_02_Register.txt} | 0 .../NET8_03_WebApp_Auto/GettingStarted.razor | 24 ++++++++++++++++--- .../Getting_Started_Snippet_01_Install.txt | 1 - ...> Getting_Started_Snippet_01_Scripts.html} | 0 ...> Getting_Started_Snippet_02_Register.txt} | 0 .../wwwroot/appsettings.json | 2 +- .../BlazorExpress.ChartJS.csproj | 4 ++-- 15 files changed, 68 insertions(+), 27 deletions(-) delete mode 100644 BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Install.txt rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/{Getting_Started_Snippet_02_Scripts.html => Getting_Started_Snippet_01_Scripts.html} (100%) rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/{Getting_Started_Snippet_03_Register.txt => Getting_Started_Snippet_02_Register.txt} (100%) delete mode 100644 BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Install.txt rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/{Getting_Started_Snippet_02_Scripts.html => Getting_Started_Snippet_01_Scripts.html} (100%) rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/{Getting_Started_Snippet_03_Register.txt => Getting_Started_Snippet_02_Register.txt} (100%) delete mode 100644 BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Install.txt rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/{Getting_Started_Snippet_02_Scripts.html => Getting_Started_Snippet_01_Scripts.html} (100%) rename BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/{Getting_Started_Snippet_03_Register.txt => Getting_Started_Snippet_02_Register.txt} (100%) diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs b/BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs index 581da33..5f3c685 100644 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs +++ b/BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs @@ -17,21 +17,21 @@ public class MainLayoutBase : LayoutComponentBase internal Sidebar sidebar = default!; internal IEnumerable navItems = default!; - [Inject] public IConfiguration Configuration { get; set; } = default!; + [Inject] public IConfiguration _configuration { get; set; } = default!; protected override void OnInitialized() { - version = $"v{Configuration["version"]}"; // example: v0.6.1 - homeUrl = $"{Configuration["urls:homeUrl"]}"; - docsUrl = $"{Configuration["urls:docs"]}"; - blogUrl = $"{Configuration["urls:blog"]}"; - githubUrl = $"{Configuration["urls:github"]}"; - twitterUrl = $"{Configuration["urls:twitter"]}"; - linkedInUrl = $"{Configuration["urls:linkedin"]}"; - openCollectiveUrl = $"{Configuration["urls:opencollective"]}"; - githubIssuesUrl = $"{Configuration["urls:github_issues"]}"; - githubDiscussionsUrl = $"{Configuration["urls:github_discussions"]}"; - stackoverflowUrl = $"{Configuration["urls:stackoverflow"]}"; + version = $"v{_configuration["version"]}"; // example: v0.6.1 + homeUrl = $"{_configuration["urls:homeUrl"]}"; + docsUrl = $"{_configuration["urls:docs"]}"; + blogUrl = $"{_configuration["urls:blog"]}"; + githubUrl = $"{_configuration["urls:github"]}"; + twitterUrl = $"{_configuration["urls:twitter"]}"; + linkedInUrl = $"{_configuration["urls:linkedin"]}"; + openCollectiveUrl = $"{_configuration["urls:opencollective"]}"; + githubIssuesUrl = $"{_configuration["urls:github_issues"]}"; + githubDiscussionsUrl = $"{_configuration["urls:github_discussions"]}"; + stackoverflowUrl = $"{_configuration["urls:stackoverflow"]}"; base.OnInitialized(); } diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/GettingStarted.razor b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/GettingStarted.razor index f40ace9..82ad1d0 100644 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/GettingStarted.razor +++ b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/GettingStarted.razor @@ -11,19 +11,21 @@
Looking to quickly add BlazorExpress.ChartJS to your project? Use NuGet package manager.
- +
+ Install-Package BlazorExpress.ChartJS -Version @version +
Insert the following references into the body section of the wwwroot/index.html file, immediately after the _framework/blazor.webassembly.js reference:
- +
Register tag helpers in _Imports.razor.
- + @code { private const string pageUrl = "/charts/getting-started"; @@ -32,14 +34,20 @@ private const string heading = "Getting started - Blazor WebAssembly (.NET 8)"; private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library."; private const string imageUrl = "https://i.imgur.com/xEPhAsW.png"; + private string version = default!; [Inject] private NavigationManager _navigationManager { get; set; } = default!; + [Inject] + private IConfiguration _configuration { get; set; } = default!; + protected override void OnInitialized() { try { + version = _configuration["version"]!; + if (_navigationManager.Uri.Replace(_navigationManager.BaseUri, "").Contains("charts/getting-started")) _navigationManager.NavigateTo(pageUrl2); } diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Install.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Install.txt deleted file mode 100644 index 140e693..0000000 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Install.txt +++ /dev/null @@ -1 +0,0 @@ -Install-Package BlazorExpress.ChartJS -Version 1.0.0-preview1 \ No newline at end of file diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Scripts.html b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Scripts.html similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Scripts.html rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_01_Scripts.html diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_03_Register.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Register.txt similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_03_Register.txt rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_01_WebAssembly/Getting_Started_Snippet_02_Register.txt diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/GettingStarted.razor b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/GettingStarted.razor index 3c9dcb9..ffb49ad 100644 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/GettingStarted.razor +++ b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/GettingStarted.razor @@ -10,19 +10,21 @@
Looking to quickly add BlazorExpress.ChartJS to your project? Use NuGet package manager.
- +
+ Install-Package BlazorExpress.ChartJS -Version @version +
Insert the following references into the body section of the Components/App.razor file, immediately after the _framework/blazor.web.js reference:
- +
Register tag helpers in Components/_Imports.razor.
- + @code { private const string pageUrl = "/charts/getting-started/blazor-webapp-server-global-net-8"; @@ -30,4 +32,20 @@ private const string heading = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Server - Global location"; private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library."; private const string imageUrl = "https://i.imgur.com/C5ObC3A.png"; + private string version = default!; + + [Inject] + private IConfiguration _configuration { get; set; } = default!; + + protected override void OnInitialized() + { + try + { + version = _configuration["version"]!; + } + catch + { + // do nothing + } + } } \ No newline at end of file diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Install.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Install.txt deleted file mode 100644 index 140e693..0000000 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Install.txt +++ /dev/null @@ -1 +0,0 @@ -Install-Package BlazorExpress.ChartJS -Version 1.0.0-preview1 \ No newline at end of file diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Scripts.html b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Scripts.html similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Scripts.html rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_01_Scripts.html diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_03_Register.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Register.txt similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_03_Register.txt rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_02_WebApp_Server_Global/Getting_Started_Snippet_02_Register.txt diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/GettingStarted.razor b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/GettingStarted.razor index e56e935..d15cfa7 100644 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/GettingStarted.razor +++ b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/GettingStarted.razor @@ -12,13 +12,15 @@
Looking to quickly add BlazorExpress.ChartJS to your project? Use NuGet package manager.
- +
+ Install-Package BlazorExpress.ChartJS -Version @version +
Register tag helpers in _Imports.razor.
- + @@ -26,7 +28,7 @@
Insert the following references into the body section of the Components/App.razor file, immediately after the _framework/blazor.web.js reference:
- + @code { private const string pageUrl = "/charts/getting-started/blazor-webapp-auto-global-net-8"; @@ -34,4 +36,20 @@ private const string heading = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Auto - Global location"; private const string description = "Get started with the Enterprise-class Component library built on the Blazor and Chart.js JavaScript library."; private const string imageUrl = "https://i.imgur.com/C5ObC3A.png"; + private string version = default!; + + [Inject] + private IConfiguration _configuration { get; set; } = default!; + + protected override void OnInitialized() + { + try + { + version = _configuration["version"]!; + } + catch + { + // do nothing + } + } } \ No newline at end of file diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Install.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Install.txt deleted file mode 100644 index 140e693..0000000 --- a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Install.txt +++ /dev/null @@ -1 +0,0 @@ -Install-Package BlazorExpress.ChartJS -Version 1.0.0-preview1 \ No newline at end of file diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_02_Scripts.html b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Scripts.html similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_02_Scripts.html rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_01_Scripts.html diff --git a/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_03_Register.txt b/BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_02_Register.txt similarity index 100% rename from BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_03_Register.txt rename to BlazorExpress.ChartJS.Demo.RCL/Components/Pages/GettingStarted/NET8_03_WebApp_Auto/Getting_Started_Snippet_02_Register.txt diff --git a/BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/appsettings.json b/BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/appsettings.json index eacd09c..013d3b1 100644 --- a/BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/appsettings.json +++ b/BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-preview1", + "version": "1.0.0", "release": { "short_description": "Bar, Doughnut, Line and Pie chart components!!!" }, diff --git a/BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj b/BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj index 09e90a7..6b403d4 100644 --- a/BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj +++ b/BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj @@ -3,8 +3,8 @@ BlazorExpress.ChartJS - 1.0.0-preview1 - 1.0.0-preview1 + 1.0.0 + 1.0.0 logo-180.png Apache-2.0