Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 release updates #10

Merged
merged 1 commit into from
Jun 16, 2024
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
24 changes: 12 additions & 12 deletions BlazorExpress.ChartJS.Demo.RCL/Components/Layout/MainLayoutBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ public class MainLayoutBase : LayoutComponentBase
internal Sidebar sidebar = default!;
internal IEnumerable<NavItem> 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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
<div class="mb-3">
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
</div>
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_01_Install.txt" />
<div class="p-2 text-bg-dark rounded">
Install-Package BlazorExpress.ChartJS -Version @version
</div>

<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
<div class="mb-3">
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:
</div>
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_02_Scripts.html" />
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_01_WebAssembly\Getting_Started_Snippet_01_Scripts.html" />

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

@code {
private const string pageUrl = "/charts/getting-started";
Expand All @@ -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);
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,42 @@
<div class="mb-3">
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
</div>
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Install.txt" />
<div class="p-2 text-bg-dark rounded">
Install-Package BlazorExpress.ChartJS -Version @version
</div>

<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
<div class="mb-3">
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:
</div>
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Scripts.html" />
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Scripts.html" />

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

@code {
private const string pageUrl = "/charts/getting-started/blazor-webapp-server-global-net-8";
private const string title = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Server - Global location";
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
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,44 @@
<div class="mb-3">
Looking to quickly add <b>BlazorExpress.ChartJS</b> to your project? Use NuGet package manager.
</div>
<Snippet LanguageCode="LanguageCode.PowerShell" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Install.txt" />
<div class="p-2 text-bg-dark rounded">
Install-Package BlazorExpress.ChartJS -Version @version
</div>

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

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

<SectionHeading Size="HeadingSize.H4" Text="Add script references" PageUrl="@pageUrl" HashTagName="add-script-references" />
<div class="mb-3">
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:
</div>
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_02_Scripts.html" />
<Snippet LanguageCode="LanguageCode.JavaScript" FilePath="~\Components\Pages\GettingStarted\NET8_02_WebApp_Server_Global\Getting_Started_Snippet_01_Scripts.html" />

@code {
private const string pageUrl = "/charts/getting-started/blazor-webapp-auto-global-net-8";
private const string title = "Getting started - Blazor WebApp (.NET 8) - Interactive render mode Auto - Global location";
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
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0-preview1",
"version": "1.0.0",
"release": {
"short_description": "Bar, Doughnut, Line and Pie chart components!!!"
},
Expand Down
4 changes: 2 additions & 2 deletions BlazorExpress.ChartJS/BlazorExpress.ChartJS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>

<PackageId>BlazorExpress.ChartJS</PackageId>
<Version>1.0.0-preview1</Version>
<PackageVersion>1.0.0-preview1</PackageVersion>
<Version>1.0.0</Version>
<PackageVersion>1.0.0</PackageVersion>

<PackageIcon>logo-180.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down
Loading