@@ -5,7 +5,7 @@ public partial class MainLayout : MainLayoutBase
55 #region Fields and Constants
66
77 private bool isSidebarVisible = false ;
8- private HashSet < LinkGroup > linkGroups = new ( ) ;
8+ // private HashSet<LinkGroup> linkGroups = new();
99 private Menu menuRef = default ! ;
1010
1111 #endregion
@@ -20,107 +20,107 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
2020 await base . OnAfterRenderAsync ( firstRender ) ;
2121 }
2222
23- protected override void OnInitialized ( )
24- {
25- if ( ! linkGroups . Any ( ) )
26- linkGroups = GetLinkGroups ( ) ;
27-
28- base . OnInitialized ( ) ;
29- }
30-
31- private HashSet < LinkGroup > GetLinkGroups ( )
32- {
33- var groups = new HashSet < LinkGroup > ( ) ;
34-
35- // GETTING STARTED
36- groups . Add ( new LinkGroup
37- {
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" ,
49- CssClass = "is-size-7 has-text-weight-bold has-text-warning" ,
50- 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" }
63- ]
64- } ) ;
65-
66- // ELEMENTS
67- groups . Add ( new LinkGroup
68- {
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_OTPInput_Documentation , Text = "OTP Input" } ,
91- new Link { Href = RouteConstants . Demos_Form_TextInput_Documentation , Text = "Text Input" } ,
92- ]
93- } ) ;
94-
95- // COMPONENTS
96- groups . Add ( new LinkGroup
97- {
98- Name = "COMPONENTS" ,
99- CssClass = "is-size-7 has-text-weight-bold has-text-dark" ,
100- Links = [
101- new Link { Href = RouteConstants . Demos_ConfirmDialog_Documentation , Text = "Confirm Dialog" } ,
102- new Link { Href = RouteConstants . Demos_GoogleMaps_Documentation , Text = "Google Maps" } ,
103- new Link { Href = RouteConstants . Demos_Grid_Documentation , Text = "Grid" } ,
104- new Link { Href = RouteConstants . Demos_Message_Documentation , Text = "Message" } ,
105- new Link { Href = RouteConstants . Demos_Modal_Documentation , Text = "Modal" } ,
106- new Link { Href = RouteConstants . Demos_Pagination_Documentation , Text = "Pagination" } ,
107- new Link { Href = RouteConstants . Demos_ScriptLoader_Documentation , Text = "Script Loader" } ,
108- new Link { Href = RouteConstants . Demos_Tabs_Documentation , Text = "Tabs" }
109- ]
110- } ) ;
111-
112- // LAYOUT
113- groups . Add ( new LinkGroup
114- {
115- Name = "LAYOUT" ,
116- CssClass = "is-size-7 has-text-weight-bold has-text-success" ,
117- Links = [
118- new Link { Href = RouteConstants . Demos_Hero_Documentation , Text = "Hero" }
119- ]
120- } ) ;
121-
122- return groups ;
123- }
23+ // protected override void OnInitialized()
24+ // {
25+ // if (!linkGroups.Any())
26+ // linkGroups = GetLinkGroups();
27+
28+ // base.OnInitialized();
29+ // }
30+
31+ // private HashSet<LinkGroup> GetLinkGroups()
32+ // {
33+ // var groups = new HashSet<LinkGroup>();
34+
35+ // // GETTING STARTED
36+ // groups.Add(new LinkGroup
37+ // {
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",
49+ // CssClass = "is-size-7 has-text-weight-bold has-text-warning",
50+ // 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" }
63+ // ]
64+ // });
65+
66+ // // ELEMENTS
67+ // groups.Add(new LinkGroup
68+ // {
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_OTPInput_Documentation , Text = "OTP Input" },
91+ // new Link { Href = RouteConstants.Demos_Form_TextInput_Documentation , Text = "Text Input" },
92+ // ]
93+ // });
94+
95+ // // COMPONENTS
96+ // groups.Add(new LinkGroup
97+ // {
98+ // Name = "COMPONENTS",
99+ // CssClass = "is-size-7 has-text-weight-bold has-text-dark",
100+ // Links = [
101+ // new Link { Href = RouteConstants.Demos_ConfirmDialog_Documentation, Text = "Confirm Dialog" },
102+ // new Link { Href = RouteConstants.Demos_GoogleMaps_Documentation, Text = "Google Maps" },
103+ // new Link { Href = RouteConstants.Demos_Grid_Documentation, Text = "Grid" },
104+ // new Link { Href = RouteConstants.Demos_Message_Documentation, Text = "Message" },
105+ // new Link { Href = RouteConstants.Demos_Modal_Documentation, Text = "Modal" },
106+ // new Link { Href = RouteConstants.Demos_Pagination_Documentation, Text = "Pagination" },
107+ // new Link { Href = RouteConstants.Demos_ScriptLoader_Documentation, Text = "Script Loader" },
108+ // new Link { Href = RouteConstants.Demos_Tabs_Documentation, Text = "Tabs" }
109+ // ]
110+ // });
111+
112+ // // LAYOUT
113+ // groups.Add(new LinkGroup
114+ // {
115+ // Name = "LAYOUT",
116+ // CssClass = "is-size-7 has-text-weight-bold has-text-success",
117+ // Links = [
118+ // new Link { Href = RouteConstants.Demos_Hero_Documentation, Text = "Hero" }
119+ // ]
120+ // });
121+
122+ // return groups;
123+ // }
124124
125125
126126 #endregion
0 commit comments