Skip to content

Commit acb69f6

Browse files
committed
BlazorExpress - docs update - draft
1 parent 5dfd102 commit acb69f6

12 files changed

Lines changed: 165 additions & 335 deletions

File tree

BlazorExpress.ChartJS.Demo.RCL/BlazorExpress.ChartJS.Demo.RCL.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="BlazorExpress.Bulma" Version="0.1.2" />
14+
<PackageReference Include="BlazorExpress.Bulma" Version="0.1.3" />
1515
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.11" />
1616
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
1717
</ItemGroup>

BlazorExpress.ChartJS.Demo.RCL/Constants/RouteConstants.cs

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,40 @@ public static class RouteConstants
66
public const string Docs_Prefix = "/docs";
77
public const string Demos_Prefix = "/demos";
88

9-
#region Demos
10-
11-
public const string Docs_BarChart_Route = Docs_Prefix + "/bar-chart";
12-
public const string Docs_DoughnutChart_Route = Docs_Prefix + "/doughnut-chart";
13-
public const string Docs_LineChart_Route = Docs_Prefix + "/line-chart";
14-
public const string Docs_PieChart_Route = Docs_Prefix + "/pie-chart";
15-
public const string Docs_PolarAreaChart_Route = Docs_Prefix + "/polar-area-chart";
16-
public const string Docs_RadarChart_Route = Docs_Prefix + "/radar-chart";
17-
public const string Docs_ScatterChart_Route = Docs_Prefix + "/scatter-chart";
9+
#region Docs
10+
11+
// Getting Started
12+
public const string Docs_GettingStarted = Docs_Prefix + "/getting-started";
13+
14+
// Charts
15+
public const string Docs_BarChart = Docs_Prefix + "/bar-chart";
16+
public const string Docs_DoughnutChart = Docs_Prefix + "/doughnut-chart";
17+
public const string Docs_LineChart = Docs_Prefix + "/line-chart";
18+
public const string Docs_PieChart = Docs_Prefix + "/pie-chart";
19+
public const string Docs_PolarAreaChart = Docs_Prefix + "/polar-area-chart";
20+
public const string Docs_RadarChart = Docs_Prefix + "/radar-chart";
21+
public const string Docs_ScatterChart = Docs_Prefix + "/scatter-chart";
22+
23+
// Utils
24+
public const string Docs_Utils_Prefix = Docs_Prefix + "/utils";
25+
public const string Docs_ColorUtils = Docs_Utils_Prefix + "/color-utility";
1826

1927
#endregion
2028

2129
#region Demos
2230

23-
// Getting Started
24-
public const string Demos_GettingStarted_Route = Demos_Prefix + "/getting-started";
25-
26-
public const string Demos_BarChart_Route = Demos_Prefix + "/bar-chart";
27-
public const string Demos_DoughnutChart_Route = Demos_Prefix + "/doughnut-chart";
28-
public const string Demos_LineChart_Route = Demos_Prefix + "/line-chart";
29-
public const string Demos_PieChart_Route = Demos_Prefix + "/pie-chart";
30-
public const string Demos_PolarAreaChart_Route = Demos_Prefix + "/polar-area-chart";
31-
public const string Demos_RadarChart_Route = Demos_Prefix + "/radar-chart";
32-
public const string Demos_ScatterChart_Route = Demos_Prefix + "/scatter-chart";
31+
// Charts
32+
public const string Demos_BarChart = Demos_Prefix + "/bar-chart";
33+
public const string Demos_DoughnutChart = Demos_Prefix + "/doughnut-chart";
34+
public const string Demos_LineChart = Demos_Prefix + "/line-chart";
35+
public const string Demos_PieChart = Demos_Prefix + "/pie-chart";
36+
public const string Demos_PolarAreaChart = Demos_Prefix + "/polar-area-chart";
37+
public const string Demos_RadarChart = Demos_Prefix + "/radar-chart";
38+
public const string Demos_ScatterChart = Demos_Prefix + "/scatter-chart";
3339

34-
// Utilities
40+
// Utils
3541
public const string Demos_Utils_Prefix = Demos_Prefix + "/utils";
36-
public const string Demos_ColorUtils_Route = Demos_Utils_Prefix + "/color-utility";
42+
public const string Demos_ColorUtils = Demos_Utils_Prefix + "/color-utility";
3743

3844
#endregion
3945
}

BlazorExpress.ChartJS.Demo.RCL/Layout/DemosMainLayout.razor.cs

Lines changed: 13 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -32,92 +32,29 @@ private HashSet<LinkGroup> GetLinkGroups()
3232
{
3333
var groups = new HashSet<LinkGroup>();
3434

35-
// GETTING STARTED
35+
// CHARTS
3636
groups.Add(new LinkGroup
3737
{
38-
Name = "GETTING STARTED",
39-
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
40-
Links = [
41-
new Link { Href = RouteConstants.Demos_Getting_Started_Introduction, Text = "Introduction" },
42-
]
43-
});
44-
45-
// FEATURES
46-
groups.Add(new LinkGroup
47-
{
48-
Name = "FEATURES",
38+
Name = "Charts",
4939
CssClass = "is-size-7 has-text-weight-bold has-text-warning",
5040
Links = [
51-
new Link { Href = RouteConstants.Demos_Skeletons_Documentation, Text = "Skeletons" }
52-
]
53-
});
54-
55-
// ICONS
56-
groups.Add(new LinkGroup
57-
{
58-
Name = "ICONS",
59-
CssClass = "is-size-7 has-text-weight-bold has-text-info",
60-
Links = [
61-
new Link { Href = RouteConstants.Demos_BootstrapIcons_Documentation, Text = "Bootstrap Icons" },
62-
new Link { Href = RouteConstants.Demos_GoogleFontIcons_Documentation, Text = "Google Font Icons" }
41+
new Link { Href = RouteConstants.Demos_BarChart, Text = "Bar chart" },
42+
new Link { Href = RouteConstants.Demos_DoughnutChart, Text = "Doughnut chart" },
43+
new Link { Href = RouteConstants.Demos_LineChart, Text = "Line chart" },
44+
new Link { Href = RouteConstants.Demos_PieChart, Text = "Pie chart" },
45+
new Link { Href = RouteConstants.Demos_PolarAreaChart, Text = "PolarArea chart" },
46+
new Link { Href = RouteConstants.Demos_RadarChart, Text = "Radar chart" },
47+
new Link { Href = RouteConstants.Demos_ScatterChart, Text = "Scatter chart" }
6348
]
6449
});
6550

66-
// ELEMENTS
51+
// UTILS
6752
groups.Add(new LinkGroup
6853
{
69-
Name = "ELEMENTS",
70-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
71-
Links = [
72-
new Link { Href = RouteConstants.Demos_Block_Documentation, Text = "Block" },
73-
new Link { Href = RouteConstants.Demos_Box_Documentation, Text = "Box" },
74-
new Link { Href = RouteConstants.Demos_Button_Documentation, Text = "Button" },
75-
new Link { Href = RouteConstants.Demos_DeleteButton_Documentation, Text = "Delete Button" },
76-
new Link { Href = RouteConstants.Demos_Image_Documentation, Text = "Image" },
77-
new Link { Href = RouteConstants.Demos_Notification_Documentation, Text = "Notification" },
78-
new Link { Href = RouteConstants.Demos_ProgressBar_Documentation, Text = "Progress Bar" },
79-
new Link { Href = RouteConstants.Demos_Tags_Documentation, Text = "Tags" },
80-
]
81-
});
82-
83-
// FORM
84-
groups.Add(new LinkGroup
85-
{
86-
Name = "FORM",
87-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
88-
Links = [
89-
new Link { Href = RouteConstants.Demos_Form_DateInput_Documentation , Text = "Date Input" },
90-
new Link { Href = RouteConstants.Demos_Form_EnumInput_Documentation , Text = "Enum Input" },
91-
new Link { Href = RouteConstants.Demos_Form_OTPInput_Documentation , Text = "OTP Input" },
92-
new Link { Href = RouteConstants.Demos_Form_TextInput_Documentation , Text = "Text Input" },
93-
]
94-
});
95-
96-
// COMPONENTS
97-
groups.Add(new LinkGroup
98-
{
99-
Name = "COMPONENTS",
100-
CssClass = "is-size-7 has-text-weight-bold has-text-dark",
101-
Links = [
102-
new Link { Href = RouteConstants.Demos_Breadcrumb_Documentation, Text = "Breadcrumb" },
103-
new Link { Href = RouteConstants.Demos_ConfirmDialog_Documentation, Text = "Confirm Dialog" },
104-
new Link { Href = RouteConstants.Demos_GoogleMaps_Documentation, Text = "Google Maps" },
105-
new Link { Href = RouteConstants.Demos_Grid_Documentation, Text = "Grid" },
106-
new Link { Href = RouteConstants.Demos_Message_Documentation, Text = "Message" },
107-
new Link { Href = RouteConstants.Demos_Modal_Documentation, Text = "Modal" },
108-
new Link { Href = RouteConstants.Demos_Pagination_Documentation, Text = "Pagination" },
109-
new Link { Href = RouteConstants.Demos_ScriptLoader_Documentation, Text = "Script Loader" },
110-
new Link { Href = RouteConstants.Demos_Tabs_Documentation, Text = "Tabs" }
111-
]
112-
});
113-
114-
// LAYOUT
115-
groups.Add(new LinkGroup
116-
{
117-
Name = "LAYOUT",
118-
CssClass = "is-size-7 has-text-weight-bold has-text-success",
54+
Name = "UTILS",
55+
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
11956
Links = [
120-
new Link { Href = RouteConstants.Demos_Hero_Documentation, Text = "Hero" }
57+
new Link { Href = RouteConstants.Demos_ColorUtils, Text = "Color Utils" },
12158
]
12259
});
12360

BlazorExpress.ChartJS.Demo.RCL/Layout/DocsMainLayout.razor.cs

Lines changed: 15 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -38,76 +38,33 @@ private HashSet<LinkGroup> GetLinkGroups()
3838
Name = "FEATURES",
3939
CssClass = "is-size-7 has-text-weight-bold has-text-warning",
4040
Links = [
41-
new Link { Href = RouteConstants.Docs_Skeletons_Documentation, Text = "Skeletons" }
41+
new Link { Href = RouteConstants.Docs_GettingStarted, Text = "Getting started" }
4242
]
4343
});
4444

45-
// ICONS
45+
// CHARTS
4646
groups.Add(new LinkGroup
4747
{
48-
Name = "ICONS",
49-
CssClass = "is-size-7 has-text-weight-bold has-text-info",
50-
Links = [
51-
new Link { Href = RouteConstants.Docs_BootstrapIcons_Documentation, Text = "Bootstrap Icons" },
52-
new Link { Href = RouteConstants.Docs_GoogleFontIcons_Documentation, Text = "Google Font Icons" }
53-
]
54-
});
55-
56-
// ELEMENTS
57-
groups.Add(new LinkGroup
58-
{
59-
Name = "ELEMENTS",
60-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
61-
Links = [
62-
new Link { Href = RouteConstants.Docs_Block_Documentation, Text = "Block" },
63-
new Link { Href = RouteConstants.Docs_Box_Documentation, Text = "Box" },
64-
new Link { Href = RouteConstants.Docs_Button_Documentation, Text = "Button" },
65-
new Link { Href = RouteConstants.Docs_DeleteButton_Documentation, Text = "Delete Button" },
66-
new Link { Href = RouteConstants.Docs_Image_Documentation, Text = "Image" },
67-
new Link { Href = RouteConstants.Docs_Notification_Documentation, Text = "Notification" },
68-
new Link { Href = RouteConstants.Docs_ProgressBar_Documentation, Text = "Progress Bar" },
69-
new Link { Href = RouteConstants.Docs_Tags_Documentation, Text = "Tags" },
70-
]
71-
});
72-
73-
// FORM
74-
groups.Add(new LinkGroup
75-
{
76-
Name = "FORM",
77-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
48+
Name = "Charts",
49+
CssClass = "is-size-7 has-text-weight-bold has-text-warning",
7850
Links = [
79-
new Link { Href = RouteConstants.Docs_Form_DateInput_Documentation , Text = "Date Input" },
80-
new Link { Href = RouteConstants.Docs_Form_EnumInput_Documentation , Text = "Enum Input" },
81-
new Link { Href = RouteConstants.Docs_Form_OTPInput_Documentation , Text = "OTP Input" },
82-
new Link { Href = RouteConstants.Docs_Form_TextInput_Documentation , Text = "Text Input" },
51+
new Link { Href = RouteConstants.Docs_BarChart, Text = "Bar chart" },
52+
new Link { Href = RouteConstants.Docs_DoughnutChart, Text = "Doughnut chart" },
53+
new Link { Href = RouteConstants.Docs_LineChart, Text = "Line chart" },
54+
new Link { Href = RouteConstants.Docs_PieChart, Text = "Pie chart" },
55+
new Link { Href = RouteConstants.Docs_PolarAreaChart, Text = "PolarArea chart" },
56+
new Link { Href = RouteConstants.Docs_RadarChart, Text = "Radar chart" },
57+
new Link { Href = RouteConstants.Docs_ScatterChart, Text = "Scatter chart" }
8358
]
8459
});
8560

86-
// COMPONENTS
87-
groups.Add(new LinkGroup
88-
{
89-
Name = "COMPONENTS",
90-
CssClass = "is-size-7 has-text-weight-bold has-text-dark",
91-
Links = [
92-
new Link { Href = RouteConstants.Docs_Breadcrumb_Documentation, Text = "Breadcrumb" },
93-
new Link { Href = RouteConstants.Docs_ConfirmDialog_Documentation, Text = "Confirm Dialog" },
94-
new Link { Href = RouteConstants.Docs_GoogleMaps_Documentation, Text = "Google Maps" },
95-
new Link { Href = RouteConstants.Docs_Grid_Documentation, Text = "Grid" },
96-
new Link { Href = RouteConstants.Docs_Message_Documentation, Text = "Message" },
97-
new Link { Href = RouteConstants.Docs_Modal_Documentation, Text = "Modal" },
98-
new Link { Href = RouteConstants.Docs_Pagination_Documentation, Text = "Pagination" },
99-
new Link { Href = RouteConstants.Docs_ScriptLoader_Documentation, Text = "Script Loader" },
100-
new Link { Href = RouteConstants.Docs_Tabs_Documentation, Text = "Tabs" }
101-
]
102-
});
103-
104-
// LAYOUT
61+
// UTILS
10562
groups.Add(new LinkGroup
10663
{
107-
Name = "LAYOUT",
108-
CssClass = "is-size-7 has-text-weight-bold has-text-success",
64+
Name = "UTILS",
65+
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
10966
Links = [
110-
new Link { Href = RouteConstants.Docs_Hero_Documentation, Text = "Hero" }
67+
new Link { Href = RouteConstants.Demos_ColorUtils, Text = "Color Utils" },
11168
]
11269
});
11370

0 commit comments

Comments
 (0)