Exemple #1
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 4 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
            if (MenuPages.Any())
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.AddMarkupContent(1, @"<span class=""app-menu-toggler"">
        <button class=""navbar-toggler"" type=""button"" data-toggle=""collapse"" data-target=""#Menu"" aria-controls=""Menu"" aria-expanded=""false"" aria-label=""Toggle Navigation"">
            <span class=""navbar-toggler-icon""></span>
        </button>
    </span>
    ");
                __builder.OpenElement(2, "div");
                __builder.AddAttribute(3, "class", "app-menu");
                __builder.AddMarkupContent(4, "\n        ");
                __builder.OpenElement(5, "div");
                __builder.AddAttribute(6, "class", "collapse navbar-collapse");
                __builder.AddAttribute(7, "id", "Menu");
                __builder.AddMarkupContent(8, "\n            ");
                __builder.OpenElement(9, "ul");
                __builder.AddAttribute(10, "class", "navbar-nav mr-auto");
                __builder.AddMarkupContent(11, "\n");
#line 14 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                foreach (var p in MenuPages)
                {
                    if (p.PageId == PageState.Page.PageId)
                    {
#line default
#line hidden
                        __builder.AddContent(12, "                        ");
                        __builder.OpenElement(13, "li");
                        __builder.AddAttribute(14, "class", "nav-item active");
                        __builder.AddMarkupContent(15, "\n                            ");
                        __builder.OpenElement(16, "a");
                        __builder.AddAttribute(17, "class", "nav-link");
                        __builder.AddAttribute(18, "href",
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                               GetUrl(p)

#line default
#line hidden
                                               );
                        __builder.AddAttribute(19, "target",
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                               GetTarget(p)

#line default
#line hidden
                                               );
                        __builder.AddMarkupContent(20, "\n");
#line 20 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                        if (p.Icon != string.Empty)
                        {
#line default
#line hidden
                            __builder.AddContent(21, "                                    ");
                            __builder.OpenElement(22, "span");
                            __builder.AddAttribute(23, "class", "oi" + " oi-" + (
#line 22 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                                       p.Icon

#line default
#line hidden
                                                       ));
                            __builder.AddAttribute(24, "aria-hidden", "true");
                            __builder.CloseElement();
                            __builder.AddMarkupContent(25, "\n");
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                        }

#line default
#line hidden
                        __builder.AddContent(26, "                                ");
                        __builder.AddContent(27,
#line 24 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                             p.Name

#line default
#line hidden
                                             );
                        __builder.AddMarkupContent(28, "<span class=\"sr-only\">(current)</span>\n                            ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(29, "\n                        ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(30, "\n");
#line 27 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(31, "                        ");
                        __builder.OpenElement(32, "li");
                        __builder.AddAttribute(33, "class", "nav-item");
                        __builder.AddMarkupContent(34, "\n                            ");
                        __builder.OpenElement(35, "a");
                        __builder.AddAttribute(36, "class", "nav-link");
                        __builder.AddAttribute(37, "href",
#line 31 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                               GetUrl(p)

#line default
#line hidden
                                               );
                        __builder.AddAttribute(38, "target",
#line 31 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                               GetTarget(p)

#line default
#line hidden
                                               );
                        __builder.AddMarkupContent(39, "\n");
#line 32 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                        if (p.Icon != string.Empty)
                        {
#line default
#line hidden
                            __builder.AddContent(40, "                                    ");
                            __builder.OpenElement(41, "span");
                            __builder.AddAttribute(42, "class", "oi" + " oi-" + (
#line 34 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                                       p.Icon

#line default
#line hidden
                                                       ));
                            __builder.AddAttribute(43, "aria-hidden", "true");
                            __builder.CloseElement();
                            __builder.AddMarkupContent(44, "\n");
#line 35 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                        }

#line default
#line hidden
                        __builder.AddContent(45, "                                ");
                        __builder.AddContent(46,
#line 36 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                                             p.Name

#line default
#line hidden
                                             );
                        __builder.AddMarkupContent(47, "\n                            ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(48, "\n                        ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(49, "\n");
#line 39 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
                    }
                }

#line default
#line hidden
                __builder.AddContent(50, "            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(51, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(52, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(53, "\n");
#line 44 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuHorizontal.Razor"
            }

#line default
#line hidden
        }
Exemple #2
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 4 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
            if (MenuPages.Any())
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.AddMarkupContent(1, @"<span class=""app-menu-toggler"">
        <button class=""navbar-toggler"" type=""button"" data-toggle=""collapse"" data-target=""#Menu"" aria-controls=""Menu"" aria-expanded=""false"" aria-label=""Toggle Navigation"">
            <span class=""navbar-toggler-icon""></span>
        </button>
    </span>
    ");
                __builder.OpenElement(2, "div");
                __builder.AddAttribute(3, "class", "app-menu");
                __builder.AddMarkupContent(4, "\n        ");
                __builder.OpenElement(5, "div");
                __builder.AddAttribute(6, "class", "collapse navbar-collapse");
                __builder.AddAttribute(7, "id", "Menu");
                __builder.AddMarkupContent(8, "\n            ");
                __builder.OpenElement(9, "ul");
                __builder.AddAttribute(10, "class", "nav flex-column");
                __builder.AddMarkupContent(11, "\n");
#line 14 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                foreach (var p in MenuPages)
                {
#line default
#line hidden
                    __builder.AddContent(12, "                    ");
                    __builder.OpenElement(13, "li");
                    __builder.AddAttribute(14, "class", "nav-item px-3");
                    __builder.AddMarkupContent(15, "\n                        ");
                    __builder.OpenElement(16, "a");
                    __builder.AddAttribute(17, "href",
#line 17 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                                           GetUrl(p)

#line default
#line hidden
                                           );
                    __builder.AddAttribute(18, "class", "nav-link");
                    __builder.AddAttribute(19, "style", "padding-left:" + (
#line 17 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                                               (p.Level + 1) * 15

#line default
#line hidden
                                               ) + "px" + " !important;");
                    __builder.AddAttribute(20, "target",
#line 17 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                                           GetTarget(p)

#line default
#line hidden
                                           );
                    __builder.AddMarkupContent(21, "\n\n");
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                    if (p.HasChildren)
                    {
#line default
#line hidden
                        __builder.AddMarkupContent(22, "                                <i class=\"oi oi-chevron-right\"></i>\n");
#line 22 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                    }

#line default
#line hidden
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                    if (p.Icon != string.Empty)
                    {
#line default
#line hidden
                        __builder.AddContent(23, "                                ");
                        __builder.OpenElement(24, "span");
                        __builder.AddAttribute(25, "class", "oi" + " oi-" + (
#line 25 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                                                   p.Icon

#line default
#line hidden
                                                   ));
                        __builder.AddAttribute(26, "aria-hidden", "true");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(27, "\n");
#line 26 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(28, "                            ");
                    __builder.AddContent(29,
#line 27 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                                         p.Name

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(30, "\n                        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(31, "\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(32, "\n");
#line 30 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
                }

#line default
#line hidden
                __builder.AddContent(33, "            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(34, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(35, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(36, "\n");
#line 34 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/MenuVertical.razor"
            }

#line default
#line hidden
        }