public static string CalculateUrl(this UserMenuItem menuItem, string applicationPath)
        {
            if (string.IsNullOrEmpty(menuItem.Url))
            {
                return(applicationPath);
            }

            if (UrlChecker.IsRooted(menuItem.Url))
            {
                return(menuItem.Url);
            }

            return(applicationPath + menuItem.Url);
        }
Пример #2
0
        protected string MenuUrl(string url)
        {
            if (string.IsNullOrEmpty(url))
            {
                return(ApplicationPath);
            }

            if (UrlChecker.IsRooted(url))
            {
                return(url);
            }

            return(ApplicationPath + url);
        }
Пример #3
0
        string WrapUrl(string url)
        {
            if (string.IsNullOrEmpty(url))
            {
                return(this.Request.ApplicationPath);
            }

            if (UrlChecker.IsRooted(url))
            {
                return(url);
            }

            return(this.Request.ApplicationPath + url);
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(323, 3, true);
            WriteLiteral("<li");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 326, "\"", 504, 2);
#line 8 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
            WriteAttributeValue("", 334, Model.MenuItem.Name == Model.CurrentPageName ? "active" : "", 334, 63, false);

#line default
#line hidden
#line 8 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
            WriteAttributeValue(" ", 397, Model.MenuItem.Items.IsNullOrEmpty() ? "" : (Model.CurrentLevel == 0 ? "dropdown" : "dropdown-submenu"), 398, 106, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(505, 2, true);
            WriteLiteral(">\n");
            EndContext();
#line 9 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
            if (Model.MenuItem.Items.IsNullOrEmpty())
            {
                if (!Model.MenuItem.Url.IsNullOrEmpty())
                {
#line default
#line hidden
                    BeginContext(619, 14, true);
                    WriteLiteral("            <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 633, "\"", 744, 1);
#line 13 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                    WriteAttributeValue("", 640, UrlChecker.IsRooted(Model.MenuItem.Url) ? Model.MenuItem.Url : (ApplicationPath + Model.MenuItem.Url), 640, 104, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(745, 1, true);
                    WriteLiteral(">");
                    EndContext();
                    BeginContext(747, 26, false);
#line 13 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                    Write(Model.MenuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(773, 5, true);
                    WriteLiteral("</a>\n");
                    EndContext();
#line 14 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(811, 14, true);
                    WriteLiteral("            <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 825, "\"", 848, 1);
#line 17 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                    WriteAttributeValue("", 832, ApplicationPath, 832, 16, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(849, 1, true);
                    WriteLiteral(">");
                    EndContext();
                    BeginContext(851, 26, false);
#line 17 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                    Write(Model.MenuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(877, 5, true);
                    WriteLiteral("</a>\n");
                    EndContext();
#line 18 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                }
            }
            else
            {
#line default
#line hidden
                BeginContext(913, 107, true);
                WriteLiteral("        <a class=\"dropdown-toggle\" data-toggle=\"dropdown\" data-target=\"#\" href=\"javascript:;\">\n            ");
                EndContext();
                BeginContext(1021, 26, false);
#line 23 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                Write(Model.MenuItem.DisplayName);

#line default
#line hidden
                EndContext();
                BeginContext(1047, 53, true);
                WriteLiteral("\n        </a>\n            <ul class=\"dropdown-menu\">\n");
                EndContext();
#line 26 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                foreach (var childMenuItem in Model.MenuItem.Items)
                {
#line default
#line hidden
                    BeginContext(1208, 140, false);
#line 28 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                    Write(Html.Partial("Components/Header/_HeaderMenuItem", new HeaderMenuItemViewModel(childMenuItem, Model.CurrentLevel + 1, Model.CurrentPageName)));

#line default
#line hidden
                    EndContext();
#line 28 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
                }

#line default
#line hidden
                BeginContext(1367, 18, true);
                WriteLiteral("            </ul>\n");
                EndContext();
#line 31 "C:\Users\USER\Desktop\aspzero\aspnet-core\src\GSoft.AbpZeroTemplate.Web.Public\Views\Shared\Components\Header\_HeaderMenuItem.cshtml"
            }

#line default
#line hidden
            BeginContext(1391, 5, true);
            WriteLiteral("</li>");
            EndContext();
        }
Пример #5
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 5 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"

            var calculateMenuUrl = new Func <string, string>((url) =>
            {
                if (string.IsNullOrEmpty(url))
                {
                    return(ApplicationPath);
                }

                if (UrlChecker.IsRooted(url))
                {
                    return(url);
                }

                return(ApplicationPath + url);
            });

#line default
#line hidden
            BeginContext(429, 41, true);
            WriteLiteral("<div class=\"menu\">\n    <ul class=\"list\">\n");
            EndContext();
#line 23 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            foreach (var menuItem in Model.MainMenu.Items)
            {
#line default
#line hidden
                BeginContext(536, 15, true);
                WriteLiteral("            <li");
                EndContext();
                BeginWriteAttribute("class", " class=\"", 551, "\"", 619, 1);
#line 25 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                WriteAttributeValue("", 559, Model.ActiveMenuItemName == menuItem.Name ? "active" : "", 559, 60, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(620, 2, true);
                WriteLiteral(">\n");
                EndContext();
#line 26 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                if (menuItem.Items.IsNullOrEmpty())
                {
#line default
#line hidden
                    BeginContext(693, 22, true);
                    WriteLiteral("                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 715, "\"", 753, 1);
#line 28 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    WriteAttributeValue("", 722, calculateMenuUrl(menuItem.Url), 722, 31, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(754, 2, true);
                    WriteLiteral(">\n");
                    EndContext();
#line 29 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(854, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(909, 13, false);
#line 31 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(922, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 32 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(953, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(984, 20, false);
#line 33 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1004, 33, true);
                    WriteLiteral("</span>\n                    </a>\n");
                    EndContext();
#line 35 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1094, 71, true);
                    WriteLiteral("                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                    EndContext();
#line 39 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(1263, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(1318, 13, false);
#line 41 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(1331, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 42 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1362, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(1393, 20, false);
#line 43 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1413, 74, true);
                    WriteLiteral("</span>\n                    </a>\n                    <ul class=\"ml-menu\">\n");
                    EndContext();
#line 46 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    foreach (var subMenuItem in menuItem.Items)
                    {
#line default
#line hidden
                        BeginContext(1582, 31, true);
                        WriteLiteral("                            <li");
                        EndContext();
                        BeginWriteAttribute("class", " class=\"", 1613, "\"", 1684, 1);
#line 48 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        WriteAttributeValue("", 1621, Model.ActiveMenuItemName == subMenuItem.Name ? "active" : "", 1621, 63, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1685, 2, true);
                        WriteLiteral(">\n");
                        EndContext();
#line 49 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        if (subMenuItem.Items.IsNullOrEmpty())
                        {
#line default
#line hidden
                            BeginContext(1793, 38, true);
                            WriteLiteral("                                    <a");
                            EndContext();
                            BeginWriteAttribute("href", " href=\"", 1831, "\"", 1872, 1);
#line 51 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            WriteAttributeValue("", 1838, calculateMenuUrl(subMenuItem.Url), 1838, 34, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(1873, 2, true);
                            WriteLiteral(">\n");
                            EndContext();
#line 52 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2008, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2079, 16, false);
#line 54 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2095, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 55 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2142, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2189, 23, false);
#line 56 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2212, 49, true);
                            WriteLiteral("</span>\n                                    </a>\n");
                            EndContext();
#line 58 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(2366, 87, true);
                            WriteLiteral("                                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                            EndContext();
#line 62 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2586, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2657, 16, false);
#line 64 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2673, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 65 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2720, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2767, 23, false);
#line 66 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2790, 106, true);
                            WriteLiteral("</span>\n                                    </a>\n                                    <ul class=\"ml-menu\">\n");
                            EndContext();
#line 69 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            foreach (var subSubMenuItem in subMenuItem.Items)
                            {
#line default
#line hidden
                                BeginContext(3029, 47, true);
                                WriteLiteral("                                            <li");
                                EndContext();
                                BeginWriteAttribute("class", " class=\"", 3076, "\"", 3150, 1);
#line 71 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3084, Model.ActiveMenuItemName == subSubMenuItem.Name ? "active" : "", 3084, 66, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3151, 52, true);
                                WriteLiteral(">\n                                                <a");
                                EndContext();
                                BeginWriteAttribute("href", " href=\"", 3203, "\"", 3247, 1);
#line 72 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3210, calculateMenuUrl(subSubMenuItem.Url), 3210, 37, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3248, 54, true);
                                WriteLiteral(">\n                                                    ");
                                EndContext();
                                BeginContext(3303, 26, false);
#line 73 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subSubMenuItem.DisplayName);

#line default
#line hidden
                                EndContext();
                                BeginContext(3329, 104, true);
                                WriteLiteral("\n                                                </a>\n                                            </li>\n");
                                EndContext();
#line 76 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(3475, 42, true);
                            WriteLiteral("                                    </ul>\n");
                            EndContext();
#line 78 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }

#line default
#line hidden
                        BeginContext(3551, 34, true);
                        WriteLiteral("                            </li>\n");
                        EndContext();
#line 80 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(3611, 26, true);
                    WriteLiteral("                    </ul>\n");
                    EndContext();
#line 82 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(3655, 18, true);
                WriteLiteral("            </li>\n");
                EndContext();
#line 84 "D:\Training\Programs\Pos\4.8.0\aspnet-core\src\Pos.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            }

#line default
#line hidden
            BeginContext(3683, 17, true);
            WriteLiteral("    </ul>\n</div>\n");
            EndContext();
        }
Пример #6
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 5 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"

            var calculateMenuUrl = new Func <string, string>((url) =>
            {
                if (string.IsNullOrEmpty(url))
                {
                    return(ApplicationPath);
                }

                if (UrlChecker.IsRooted(url))
                {
                    return(url);
                }

                return(ApplicationPath + url);
            });

#line default
#line hidden
            BeginContext(459, 43, true);
            WriteLiteral("<div class=\"menu\">\r\n    <ul class=\"list\">\r\n");
            EndContext();
#line 23 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            foreach (var menuItem in Model.MainMenu.Items)
            {
#line default
#line hidden
                BeginContext(570, 15, true);
                WriteLiteral("            <li");
                EndContext();
                BeginWriteAttribute("class", " class=\"", 585, "\"", 653, 1);
#line 25 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                WriteAttributeValue("", 593, Model.ActiveMenuItemName == menuItem.Name ? "active" : "", 593, 60, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(654, 3, true);
                WriteLiteral(">\r\n");
                EndContext();
#line 26 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                if (menuItem.Items.IsNullOrEmpty())
                {
#line default
#line hidden
                    BeginContext(730, 22, true);
                    WriteLiteral("                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 752, "\"", 790, 1);
#line 28 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    WriteAttributeValue("", 759, calculateMenuUrl(menuItem.Url), 759, 31, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(791, 3, true);
                    WriteLiteral(">\r\n");
                    EndContext();
#line 29 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(894, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(949, 13, false);
#line 31 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(962, 6, true);
                        WriteLiteral("</i>\r\n");
                        EndContext();
#line 32 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(995, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(1026, 20, false);
#line 33 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1046, 35, true);
                    WriteLiteral("</span>\r\n                    </a>\r\n");
                    EndContext();
#line 35 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1141, 72, true);
                    WriteLiteral("                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\r\n");
                    EndContext();
#line 39 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(1313, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(1368, 13, false);
#line 41 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(1381, 6, true);
                        WriteLiteral("</i>\r\n");
                        EndContext();
#line 42 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1414, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(1445, 20, false);
#line 43 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1465, 77, true);
                    WriteLiteral("</span>\r\n                    </a>\r\n                    <ul class=\"ml-menu\">\r\n");
                    EndContext();
#line 46 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    foreach (var subMenuItem in menuItem.Items)
                    {
#line default
#line hidden
                        BeginContext(1639, 31, true);
                        WriteLiteral("                            <li");
                        EndContext();
                        BeginWriteAttribute("class", " class=\"", 1670, "\"", 1741, 1);
#line 48 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        WriteAttributeValue("", 1678, Model.ActiveMenuItemName == subMenuItem.Name ? "active" : "", 1678, 63, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1742, 3, true);
                        WriteLiteral(">\r\n");
                        EndContext();
#line 49 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        if (subMenuItem.Items.IsNullOrEmpty())
                        {
#line default
#line hidden
                            BeginContext(1853, 38, true);
                            WriteLiteral("                                    <a");
                            EndContext();
                            BeginWriteAttribute("href", " href=\"", 1891, "\"", 1932, 1);
#line 51 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            WriteAttributeValue("", 1898, calculateMenuUrl(subMenuItem.Url), 1898, 34, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(1933, 3, true);
                            WriteLiteral(">\r\n");
                            EndContext();
#line 52 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2071, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2142, 16, false);
#line 54 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2158, 6, true);
                                WriteLiteral("</i>\r\n");
                                EndContext();
#line 55 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2207, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2254, 23, false);
#line 56 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2277, 51, true);
                            WriteLiteral("</span>\r\n                                    </a>\r\n");
                            EndContext();
#line 58 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(2436, 88, true);
                            WriteLiteral("                                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\r\n");
                            EndContext();
#line 62 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2659, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2730, 16, false);
#line 64 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2746, 6, true);
                                WriteLiteral("</i>\r\n");
                                EndContext();
#line 65 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2795, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2842, 23, false);
#line 66 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2865, 109, true);
                            WriteLiteral("</span>\r\n                                    </a>\r\n                                    <ul class=\"ml-menu\">\r\n");
                            EndContext();
#line 69 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            foreach (var subSubMenuItem in subMenuItem.Items)
                            {
#line default
#line hidden
                                BeginContext(3109, 47, true);
                                WriteLiteral("                                            <li");
                                EndContext();
                                BeginWriteAttribute("class", " class=\"", 3156, "\"", 3230, 1);
#line 71 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3164, Model.ActiveMenuItemName == subSubMenuItem.Name ? "active" : "", 3164, 66, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3231, 53, true);
                                WriteLiteral(">\r\n                                                <a");
                                EndContext();
                                BeginWriteAttribute("href", " href=\"", 3284, "\"", 3328, 1);
#line 72 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3291, calculateMenuUrl(subSubMenuItem.Url), 3291, 37, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3329, 55, true);
                                WriteLiteral(">\r\n                                                    ");
                                EndContext();
                                BeginContext(3385, 26, false);
#line 73 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subSubMenuItem.DisplayName);

#line default
#line hidden
                                EndContext();
                                BeginContext(3411, 107, true);
                                WriteLiteral("\r\n                                                </a>\r\n                                            </li>\r\n");
                                EndContext();
#line 76 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(3561, 43, true);
                            WriteLiteral("                                    </ul>\r\n");
                            EndContext();
#line 78 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }

#line default
#line hidden
                        BeginContext(3639, 35, true);
                        WriteLiteral("                            </li>\r\n");
                        EndContext();
#line 80 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(3701, 27, true);
                    WriteLiteral("                    </ul>\r\n");
                    EndContext();
#line 82 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(3747, 19, true);
                WriteLiteral("            </li>\r\n");
                EndContext();
#line 84 "G:\杂项\Me\DemoCore\4.0.1\aspnet-core\src\DemoCore.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            }

#line default
#line hidden
            BeginContext(3777, 19, true);
            WriteLiteral("    </ul>\r\n</div>\r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 5 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"

            var calculateMenuUrl = new Func <string, string>((url) =>
            {
                if (string.IsNullOrEmpty(url))
                {
                    return(ApplicationPath);
                }

                if (UrlChecker.IsRooted(url))
                {
                    return(url);
                }

                return(ApplicationPath + url);
            });

#line default
#line hidden
            BeginContext(441, 41, true);
            WriteLiteral("<div class=\"menu\">\n    <ul class=\"list\">\n");
            EndContext();
#line 23 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            foreach (var menuItem in Model.MainMenu.Items)
            {
#line default
#line hidden
                BeginContext(548, 15, true);
                WriteLiteral("            <li");
                EndContext();
                BeginWriteAttribute("class", " class=\"", 563, "\"", 631, 1);
#line 25 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                WriteAttributeValue("", 571, Model.ActiveMenuItemName == menuItem.Name ? "active" : "", 571, 60, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(632, 2, true);
                WriteLiteral(">\n");
                EndContext();
#line 26 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                if (menuItem.Items.IsNullOrEmpty())
                {
#line default
#line hidden
                    BeginContext(705, 22, true);
                    WriteLiteral("                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 727, "\"", 765, 1);
#line 28 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    WriteAttributeValue("", 734, calculateMenuUrl(menuItem.Url), 734, 31, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(766, 2, true);
                    WriteLiteral(">\n");
                    EndContext();
#line 29 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(866, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(921, 13, false);
#line 31 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(934, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 32 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(965, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(996, 20, false);
#line 33 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1016, 33, true);
                    WriteLiteral("</span>\n                    </a>\n");
                    EndContext();
#line 35 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1106, 71, true);
                    WriteLiteral("                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                    EndContext();
#line 39 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(1275, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(1330, 13, false);
#line 41 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(1343, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 42 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1374, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(1405, 20, false);
#line 43 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1425, 74, true);
                    WriteLiteral("</span>\n                    </a>\n                    <ul class=\"ml-menu\">\n");
                    EndContext();
#line 46 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    foreach (var subMenuItem in menuItem.Items)
                    {
#line default
#line hidden
                        BeginContext(1594, 31, true);
                        WriteLiteral("                            <li");
                        EndContext();
                        BeginWriteAttribute("class", " class=\"", 1625, "\"", 1696, 1);
#line 48 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        WriteAttributeValue("", 1633, Model.ActiveMenuItemName == subMenuItem.Name ? "active" : "", 1633, 63, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1697, 2, true);
                        WriteLiteral(">\n");
                        EndContext();
#line 49 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        if (subMenuItem.Items.IsNullOrEmpty())
                        {
#line default
#line hidden
                            BeginContext(1805, 38, true);
                            WriteLiteral("                                    <a");
                            EndContext();
                            BeginWriteAttribute("href", " href=\"", 1843, "\"", 1884, 1);
#line 51 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            WriteAttributeValue("", 1850, calculateMenuUrl(subMenuItem.Url), 1850, 34, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(1885, 2, true);
                            WriteLiteral(">\n");
                            EndContext();
#line 52 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2020, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2091, 16, false);
#line 54 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2107, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 55 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2154, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2201, 23, false);
#line 56 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2224, 49, true);
                            WriteLiteral("</span>\n                                    </a>\n");
                            EndContext();
#line 58 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(2378, 87, true);
                            WriteLiteral("                                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                            EndContext();
#line 62 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2598, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2669, 16, false);
#line 64 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2685, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 65 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2732, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2779, 23, false);
#line 66 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2802, 106, true);
                            WriteLiteral("</span>\n                                    </a>\n                                    <ul class=\"ml-menu\">\n");
                            EndContext();
#line 69 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            foreach (var subSubMenuItem in subMenuItem.Items)
                            {
#line default
#line hidden
                                BeginContext(3041, 47, true);
                                WriteLiteral("                                            <li");
                                EndContext();
                                BeginWriteAttribute("class", " class=\"", 3088, "\"", 3162, 1);
#line 71 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3096, Model.ActiveMenuItemName == subSubMenuItem.Name ? "active" : "", 3096, 66, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3163, 52, true);
                                WriteLiteral(">\n                                                <a");
                                EndContext();
                                BeginWriteAttribute("href", " href=\"", 3215, "\"", 3259, 1);
#line 72 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3222, calculateMenuUrl(subSubMenuItem.Url), 3222, 37, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3260, 54, true);
                                WriteLiteral(">\n                                                    ");
                                EndContext();
                                BeginContext(3315, 26, false);
#line 73 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subSubMenuItem.DisplayName);

#line default
#line hidden
                                EndContext();
                                BeginContext(3341, 104, true);
                                WriteLiteral("\n                                                </a>\n                                            </li>\n");
                                EndContext();
#line 76 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(3487, 42, true);
                            WriteLiteral("                                    </ul>\n");
                            EndContext();
#line 78 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }

#line default
#line hidden
                        BeginContext(3563, 34, true);
                        WriteLiteral("                            </li>\n");
                        EndContext();
#line 80 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(3623, 26, true);
                    WriteLiteral("                    </ul>\n");
                    EndContext();
#line 82 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(3667, 18, true);
                WriteLiteral("            </li>\n");
                EndContext();
#line 84 "E:\Demo\MyProject_Build\4.2.1\aspnet-core\src\MyProject.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            }

#line default
#line hidden
            BeginContext(3695, 17, true);
            WriteLiteral("    </ul>\n</div>\n");
            EndContext();
        }
Пример #8
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 5 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"

            var calculateMenuUrl = new Func <string, string>((url) =>
            {
                if (string.IsNullOrEmpty(url))
                {
                    return(ApplicationPath);
                }

                if (UrlChecker.IsRooted(url))
                {
                    return(url);
                }

                return(ApplicationPath + url);
            });

#line default
#line hidden
            BeginContext(435, 41, true);
            WriteLiteral("<div class=\"menu\">\n    <ul class=\"list\">\n");
            EndContext();
#line 23 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            foreach (var menuItem in Model.MainMenu.Items)
            {
#line default
#line hidden
                BeginContext(542, 15, true);
                WriteLiteral("            <li");
                EndContext();
                BeginWriteAttribute("class", " class=\"", 557, "\"", 625, 1);
#line 25 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                WriteAttributeValue("", 565, Model.ActiveMenuItemName == menuItem.Name ? "active" : "", 565, 60, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(626, 2, true);
                WriteLiteral(">\n");
                EndContext();
#line 26 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                if (menuItem.Items.IsNullOrEmpty())
                {
#line default
#line hidden
                    BeginContext(699, 22, true);
                    WriteLiteral("                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 721, "\"", 759, 1);
#line 28 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    WriteAttributeValue("", 728, calculateMenuUrl(menuItem.Url), 728, 31, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(760, 2, true);
                    WriteLiteral(">\n");
                    EndContext();
#line 29 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(860, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(915, 13, false);
#line 31 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(928, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 32 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(959, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(990, 20, false);
#line 33 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1010, 33, true);
                    WriteLiteral("</span>\n                    </a>\n");
                    EndContext();
#line 35 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1100, 71, true);
                    WriteLiteral("                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                    EndContext();
#line 39 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    if (!string.IsNullOrWhiteSpace(menuItem.Icon))
                    {
#line default
#line hidden
                        BeginContext(1269, 54, true);
                        WriteLiteral("                            <i class=\"material-icons\">");
                        EndContext();
                        BeginContext(1324, 13, false);
#line 41 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        Write(menuItem.Icon);

#line default
#line hidden
                        EndContext();
                        BeginContext(1337, 5, true);
                        WriteLiteral("</i>\n");
                        EndContext();
#line 42 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1368, 30, true);
                    WriteLiteral("                        <span>");
                    EndContext();
                    BeginContext(1399, 20, false);
#line 43 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    Write(menuItem.DisplayName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1419, 74, true);
                    WriteLiteral("</span>\n                    </a>\n                    <ul class=\"ml-menu\">\n");
                    EndContext();
#line 46 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    foreach (var subMenuItem in menuItem.Items)
                    {
#line default
#line hidden
                        BeginContext(1588, 31, true);
                        WriteLiteral("                            <li");
                        EndContext();
                        BeginWriteAttribute("class", " class=\"", 1619, "\"", 1690, 1);
#line 48 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        WriteAttributeValue("", 1627, Model.ActiveMenuItemName == subMenuItem.Name ? "active" : "", 1627, 63, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1691, 2, true);
                        WriteLiteral(">\n");
                        EndContext();
#line 49 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        if (subMenuItem.Items.IsNullOrEmpty())
                        {
#line default
#line hidden
                            BeginContext(1799, 38, true);
                            WriteLiteral("                                    <a");
                            EndContext();
                            BeginWriteAttribute("href", " href=\"", 1837, "\"", 1878, 1);
#line 51 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            WriteAttributeValue("", 1844, calculateMenuUrl(subMenuItem.Url), 1844, 34, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(1879, 2, true);
                            WriteLiteral(">\n");
                            EndContext();
#line 52 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2014, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2085, 16, false);
#line 54 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2101, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 55 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2148, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2195, 23, false);
#line 56 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2218, 49, true);
                            WriteLiteral("</span>\n                                    </a>\n");
                            EndContext();
#line 58 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }
                        else
                        {
#line default
#line hidden
                            BeginContext(2372, 87, true);
                            WriteLiteral("                                    <a href=\"javascript:void(0);\" class=\"menu-toggle\">\n");
                            EndContext();
#line 62 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            if (!string.IsNullOrWhiteSpace(subMenuItem.Icon))
                            {
#line default
#line hidden
                                BeginContext(2592, 70, true);
                                WriteLiteral("                                            <i class=\"material-icons\">");
                                EndContext();
                                BeginContext(2663, 16, false);
#line 64 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subMenuItem.Icon);

#line default
#line hidden
                                EndContext();
                                BeginContext(2679, 5, true);
                                WriteLiteral("</i>\n");
                                EndContext();
#line 65 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(2726, 46, true);
                            WriteLiteral("                                        <span>");
                            EndContext();
                            BeginContext(2773, 23, false);
#line 66 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            Write(subMenuItem.DisplayName);

#line default
#line hidden
                            EndContext();
                            BeginContext(2796, 106, true);
                            WriteLiteral("</span>\n                                    </a>\n                                    <ul class=\"ml-menu\">\n");
                            EndContext();
#line 69 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            foreach (var subSubMenuItem in subMenuItem.Items)
                            {
#line default
#line hidden
                                BeginContext(3035, 47, true);
                                WriteLiteral("                                            <li");
                                EndContext();
                                BeginWriteAttribute("class", " class=\"", 3082, "\"", 3156, 1);
#line 71 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3090, Model.ActiveMenuItemName == subSubMenuItem.Name ? "active" : "", 3090, 66, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3157, 52, true);
                                WriteLiteral(">\n                                                <a");
                                EndContext();
                                BeginWriteAttribute("href", " href=\"", 3209, "\"", 3253, 1);
#line 72 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                WriteAttributeValue("", 3216, calculateMenuUrl(subSubMenuItem.Url), 3216, 37, false);

#line default
#line hidden
                                EndWriteAttribute();
                                BeginContext(3254, 54, true);
                                WriteLiteral(">\n                                                    ");
                                EndContext();
                                BeginContext(3309, 26, false);
#line 73 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                                Write(subSubMenuItem.DisplayName);

#line default
#line hidden
                                EndContext();
                                BeginContext(3335, 104, true);
                                WriteLiteral("\n                                                </a>\n                                            </li>\n");
                                EndContext();
#line 76 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                            }

#line default
#line hidden
                            BeginContext(3481, 42, true);
                            WriteLiteral("                                    </ul>\n");
                            EndContext();
#line 78 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                        }

#line default
#line hidden
                        BeginContext(3557, 34, true);
                        WriteLiteral("                            </li>\n");
                        EndContext();
#line 80 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(3617, 26, true);
                    WriteLiteral("                    </ul>\n");
                    EndContext();
#line 82 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(3661, 18, true);
                WriteLiteral("            </li>\n");
                EndContext();
#line 84 "D:\WorkPlace\Yaeher\trunk\YaeherAdmin\src\Yaeher.Web.Mvc\Views\Shared\Components\SideBarNav\Default.cshtml"
            }

#line default
#line hidden
            BeginContext(3689, 17, true);
            WriteLiteral("    </ul>\n</div>\n");
            EndContext();
        }