#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); builder.OpenElement(0, "div"); builder.AddContent(1, "\n "); builder.OpenComponent <Frontend.Shared.NavMenu>(2); builder.CloseComponent(); builder.AddContent(3, "\n"); builder.CloseElement(); builder.AddContent(4, "\n\n"); builder.OpenElement(5, "div"); builder.AddAttribute(6, "class", "main"); builder.AddContent(7, "\n "); builder.OpenElement(8, "div"); builder.AddAttribute(9, "class", "content px-4"); builder.AddContent(10, "\n "); builder.AddContent(11, Body); builder.AddContent(12, "\n "); builder.CloseElement(); builder.AddContent(13, "\n"); builder.CloseElement(); builder.AddContent(14, "\n\n"); builder.AddMarkupContent(15, @"<footer class=""blog-footer""> <p>Fresh Tomatoes built for <a href=""https://webassembly.org/"">WebAssembly</a> by <a href=""https://www.linkedin.com/in/hanwen-guo-71b805149/"">@Hanwen Guo</a>&<a href=""https://www.linkedin.com/in/gongdai-liu-bb8b5013b/""> @Gongdai Liu.</a></p> <p> <a href=""#"">Back to top</a> </p> </footer>"); }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); builder.OpenElement(0, "div"); builder.AddAttribute(1, "class", "form-signin"); builder.AddContent(2, "\n "); builder.AddMarkupContent(3, "<h1 class=\"h3 mb-3 font-weight-normal\">Please sign up</h1>\n "); builder.AddMarkupContent(4, "<label for=\"username\" class=\"sr-only\">Username</label>\n "); builder.OpenElement(5, "input"); builder.AddAttribute(6, "type", "text"); builder.AddAttribute(7, "id", "username"); builder.AddAttribute(8, "name", "username"); builder.AddAttribute(9, "class", "form-control"); builder.AddAttribute(10, "placeholder", "Username"); builder.AddAttribute(11, "required", true); builder.AddAttribute(12, "autofocus", true); builder.AddAttribute(13, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(username)); builder.AddAttribute(14, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => username = __value, username)); builder.CloseElement(); builder.AddContent(15, "\n "); builder.AddMarkupContent(16, "<label for=\"inputEmail\" class=\"sr-only\">Email address</label>\n "); builder.OpenElement(17, "input"); builder.AddAttribute(18, "type", "email"); builder.AddAttribute(19, "id", "inputEmail"); builder.AddAttribute(20, "name", "email"); builder.AddAttribute(21, "class", "form-control"); builder.AddAttribute(22, "placeholder", "Email address"); builder.AddAttribute(23, "required", true); builder.AddAttribute(24, "autofocus", true); builder.AddAttribute(25, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(email)); builder.AddAttribute(26, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => email = __value, email)); builder.CloseElement(); builder.AddContent(27, "\n "); builder.AddMarkupContent(28, "<label for=\"inputPassword\" class=\"sr-only\">Password</label>\n "); builder.OpenElement(29, "input"); builder.AddAttribute(30, "type", "password"); builder.AddAttribute(31, "id", "inputPassword"); builder.AddAttribute(32, "name", "password"); builder.AddAttribute(33, "class", "form-control"); builder.AddAttribute(34, "placeholder", "Password"); builder.AddAttribute(35, "required", true); builder.AddAttribute(36, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(password)); builder.AddAttribute(37, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => password = __value, password)); builder.CloseElement(); builder.AddContent(38, "\n "); builder.OpenElement(39, "button"); builder.AddAttribute(40, "class", "btn btn-lg btn-primary btn-block"); builder.AddAttribute(41, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(register)); builder.AddContent(42, "Sign up"); builder.CloseElement(); builder.AddContent(43, "\n"); builder.CloseElement(); }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); builder.OpenElement(0, "div"); builder.AddAttribute(1, "class", "alert alert-secondary mt-4"); builder.AddAttribute(2, "role", "alert"); builder.AddMarkupContent(3, "\n <span class=\"oi oi-pencil mr-2\" aria-hidden=\"true\"></span> \n "); builder.OpenElement(4, "strong"); builder.AddContent(5, Title); builder.CloseElement(); builder.AddContent(6, "\n\n "); builder.AddMarkupContent(7, "<span class=\"text-nowrap\">\n Please take our\n <a target=\"_blank\" class=\"font-weight-bold\" href=\"https://go.microsoft.com/fwlink/?linkid=2041371\">brief survey</a>\n </span>\n and tell us what you think.\n"); builder.CloseElement(); }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); builder.OpenElement(0, "div"); builder.AddAttribute(1, "class", "form-signin"); builder.AddContent(2, "\n "); builder.AddMarkupContent(3, "<h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>\n "); builder.AddMarkupContent(4, "<label for=\"inputEmail\" class=\"sr-only\">Email address</label>\n "); builder.OpenElement(5, "input"); builder.AddAttribute(6, "type", "email"); builder.AddAttribute(7, "id", "inputEmail"); builder.AddAttribute(8, "name", "email"); builder.AddAttribute(9, "class", "form-control"); builder.AddAttribute(10, "placeholder", "Email address"); builder.AddAttribute(11, "required", true); builder.AddAttribute(12, "autofocus", true); builder.AddAttribute(13, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(email)); builder.AddAttribute(14, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => email = __value, email)); builder.CloseElement(); builder.AddContent(15, "\n "); builder.AddMarkupContent(16, "<label for=\"inputPassword\" class=\"sr-only\">Password</label>\n "); builder.OpenElement(17, "input"); builder.AddAttribute(18, "type", "password"); builder.AddAttribute(19, "id", "inputPassword"); builder.AddAttribute(20, "name", "password"); builder.AddAttribute(21, "class", "form-control"); builder.AddAttribute(22, "placeholder", "Password"); builder.AddAttribute(23, "required", true); builder.AddAttribute(24, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(password)); builder.AddAttribute(25, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => password = __value, password)); builder.CloseElement(); builder.AddContent(26, "\n "); builder.OpenElement(27, "button"); builder.AddAttribute(28, "class", "btn btn-lg btn-primary btn-block"); builder.AddAttribute(29, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(async() => await login())); builder.AddContent(30, "Sign in"); builder.CloseElement(); builder.AddMarkupContent(31, "\n <br>\n "); builder.AddMarkupContent(32, "<a href=\"http://localhost:5000/api/Viewer/LinkedInLogin\">\n <img src=\"https://www.hotelhero.tech/assets/linkedinlogin-9672b9f87722274cc7824e0aec25ea257100b9475e8aa12296e7d5d428a992e3.png\" width=\"200\" height=\"50\">\n </a>\n"); builder.CloseElement(); }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); #line 6 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Search.cshtml" if (movies == null || movies.Count == 0) { #line default #line hidden builder.AddContent(0, " "); builder.AddMarkupContent(1, "<h1>Result Not Found</h1>\n"); #line 9 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Search.cshtml" } else { foreach (var movie in movies) { #line default #line hidden builder.AddContent(2, " "); builder.OpenElement(3, "div"); builder.AddAttribute(4, "class", "row"); builder.AddMarkupContent(5, "\n <div class=\"col-md-2\"></div>\n "); builder.OpenElement(6, "div"); builder.AddAttribute(7, "class", "col-md-8"); builder.AddContent(8, "\n "); builder.OpenElement(9, "div"); builder.AddAttribute(10, "class", "card flex-md-row mb-4 shadow-sm h-md-250"); builder.AddContent(11, "\n "); builder.OpenElement(12, "div"); builder.AddAttribute(13, "class", "card-body d-flex flex-column align-items-start"); builder.AddContent(14, "\n "); builder.OpenElement(15, "h3"); builder.AddAttribute(16, "class", "mb-0"); builder.AddContent(17, "\n "); builder.OpenElement(18, "a"); builder.AddAttribute(19, "class", "text-dark"); builder.AddAttribute(20, "href", "movie/" + (movie.Title)); builder.AddContent(21, movie.Title); builder.CloseElement(); builder.AddContent(22, "\n "); builder.CloseElement(); builder.AddMarkupContent(23, "\n <br>\n "); builder.OpenElement(24, "strong"); builder.AddAttribute(25, "class", "d-inline-block mb-2 text-primary"); builder.AddContent(26, "IMDB Rating: "); builder.AddContent(27, movie.imdbRating); builder.CloseElement(); builder.AddMarkupContent(28, "\n Released:<br>\n "); builder.OpenElement(29, "p"); builder.AddContent(30, movie.Released); builder.CloseElement(); builder.AddMarkupContent(31, "\n Actors:<br>\n "); builder.OpenElement(32, "p"); builder.AddContent(33, movie.Actors); builder.CloseElement(); builder.AddMarkupContent(34, "\n Plot:<br>\n "); builder.OpenElement(35, "p"); builder.AddContent(36, movie.Plot); builder.CloseElement(); builder.AddContent(37, "\n Website: "); builder.OpenElement(38, "a"); builder.AddAttribute(39, "target", "_blank"); builder.AddAttribute(40, "href", movie.Website); builder.AddContent(41, movie.Website); builder.CloseElement(); builder.AddContent(42, "\n "); builder.CloseElement(); builder.AddContent(43, "\n "); builder.OpenElement(44, "img"); builder.AddAttribute(45, "class", "card-img-right flex-auto d-none d-lg-block"); builder.AddAttribute(46, "src", movie.Poster); builder.CloseElement(); builder.AddContent(47, "\n "); builder.CloseElement(); builder.AddContent(48, "\n "); builder.CloseElement(); builder.AddContent(49, "\n "); builder.CloseElement(); builder.AddContent(50, "\n"); #line 36 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Search.cshtml" } } #line default #line hidden }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); builder.OpenElement(0, "nav"); builder.AddAttribute(1, "class", "site-header sticky-top py-1"); builder.AddContent(2, "\n "); builder.OpenElement(3, "div"); builder.AddAttribute(4, "class", "container d-flex flex-column flex-md-row justify-content-between"); builder.AddContent(5, "\n "); builder.AddMarkupContent(6, @"<a class=""p-2"" href=""/""> <svg xmlns=""http://www.w3.org/2000/svg"" width=""24"" height=""24"" viewbox=""0 0 24 24"" fill=""none"" stroke=""currentColor"" stroke-width=""2"" stroke-linecap=""round"" stroke-linejoin=""round""> <circle cx=""12"" cy=""12"" r=""10""></circle> <line x1=""14.31"" y1=""8"" x2=""20.05"" y2=""17.94""></line> <line x1=""9.69"" y1=""8"" x2=""21.17"" y2=""8""></line> <line x1=""7.38"" y1=""12"" x2=""13.12"" y2=""2.06""></line> <line x1=""9.69"" y1=""16"" x2=""3.95"" y2=""6.06""></line> <line x1=""14.31"" y1=""16"" x2=""2.83"" y2=""16""></line> <line x1=""16.62"" y1=""12"" x2=""10.88"" y2=""21.94""></line> </svg> <b>Fresh Tomatoes</b> </a> "); builder.OpenElement(7, "span"); builder.AddAttribute(8, "class", "py-2 d-none d-md-inline-block form-inline"); builder.AddMarkupContent(9, "\n "); builder.OpenElement(10, "input"); builder.AddAttribute(11, "class", "form-control mr-sm-2"); builder.AddAttribute(12, "type", "text"); builder.AddAttribute(13, "placeholder", "Search"); builder.AddAttribute(14, "aria-label", "Search"); builder.AddAttribute(15, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(keywords)); builder.AddAttribute(16, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => keywords = __value, keywords)); builder.CloseElement(); builder.AddContent(17, "\n "); builder.OpenElement(18, "button"); builder.AddAttribute(19, "class", "btn btn-outline-success my-2 my-sm-0"); builder.AddAttribute(20, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(Search)); builder.AddContent(21, "Search"); builder.CloseElement(); builder.AddContent(22, "\n "); builder.CloseElement(); builder.AddContent(23, "\n"); #line 28 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Shared\NavMenu.cshtml" if (username == null || username.Equals("")) { #line default #line hidden builder.AddContent(24, " "); builder.AddMarkupContent(25, "<span class=\"py-2 d-none d-md-inline-block\"><a href=\"/register\">Register /</a><a href=\"/login\"> Login</a></span>\n"); #line 31 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Shared\NavMenu.cshtml" } else { #line default #line hidden builder.AddContent(26, " "); builder.OpenElement(27, "a"); builder.AddAttribute(28, "class", "py-2 d-none d-md-inline-block"); builder.AddAttribute(29, "href", "/User"); builder.AddContent(30, username); builder.CloseElement(); builder.AddContent(31, "\n "); builder.AddMarkupContent(32, "<a class=\"py-2 d-none d-md-inline-block\" href=\"/comments\">MyComments</a>\n "); builder.OpenElement(33, "a"); builder.AddAttribute(34, "class", "py-2 d-none d-md-inline-block"); builder.AddAttribute(35, "href", "/#"); builder.AddAttribute(36, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(logout)); builder.AddContent(37, "Log Out"); builder.CloseElement(); builder.AddContent(38, "\n"); #line 37 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Shared\NavMenu.cshtml" } #line default #line hidden builder.AddContent(39, " "); builder.CloseElement(); builder.AddContent(40, "\n"); builder.CloseElement(); }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); #line 6 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\myComments.cshtml" if (comments == null) { #line default #line hidden builder.AddContent(0, " "); builder.AddMarkupContent(1, "<p><em>Loading...</em></p>\n"); #line 9 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\myComments.cshtml" } else { #line default #line hidden builder.AddContent(2, " "); builder.OpenElement(3, "div"); builder.AddAttribute(4, "class", "my-3 p-3 bg-white rounded shadow-sm comments"); builder.AddContent(5, "\n "); builder.AddMarkupContent(6, "<h6 class=\"border-bottom border-gray pb-2 mb-0\">My Comments</h6>\n"); #line 14 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\myComments.cshtml" foreach (var comment in comments) { #line default #line hidden builder.AddContent(7, " "); builder.OpenElement(8, "div"); builder.AddAttribute(9, "class", "media text-muted pt-3"); builder.AddContent(10, "\n "); builder.OpenElement(11, "div"); builder.AddAttribute(12, "class", "media-body pb-3 mb-0 small lh-125 border-bottom border-gray"); builder.AddMarkupContent(13, "\n <img src=\"http://www.icons101.com/icon_png/size_512/id_29125/tomato.png\" width=\"32\" height=\"32\" alt=\"\" class=\"mr-2 rounded\">\n "); builder.OpenElement(14, "a"); builder.AddAttribute(15, "class", "d-block"); builder.AddAttribute(16, "style", "font-size:30px;"); builder.AddAttribute(17, "href", "/movie/" + (comment.movieName)); builder.AddContent(18, comment.movieName); builder.CloseElement(); builder.AddContent(19, "\n "); builder.OpenElement(20, "div"); builder.AddAttribute(21, "class", "d-flex justify-content-between align-items-center w-100"); builder.AddContent(22, "\n "); builder.OpenElement(23, "strong"); builder.AddAttribute(24, "class", "text-gray-dark"); builder.AddAttribute(25, "style", "font-size:30px; color:blue"); builder.AddContent(26, "@"); builder.AddContent(27, comment.username); builder.CloseElement(); builder.AddContent(28, "\n "); builder.OpenElement(29, "button"); builder.AddAttribute(30, "class", "btn btn-danger"); builder.AddAttribute(31, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(() => DeleteComment(comment.commentID))); builder.AddContent(32, "Delete"); builder.CloseElement(); builder.AddContent(33, "\n "); builder.CloseElement(); builder.AddMarkupContent(34, "\n <br>\n "); builder.OpenElement(35, "span"); builder.AddAttribute(36, "class", "d-block"); builder.AddAttribute(37, "style", "font-size:20px; color:black"); builder.AddContent(38, comment.text); builder.CloseElement(); builder.AddMarkupContent(39, "\n <br>\n "); builder.OpenElement(40, "span"); builder.AddAttribute(41, "class", "d-block"); builder.AddAttribute(42, "style", "font-size:25px"); builder.AddContent(43, "Rating: "); builder.AddContent(44, comment.rating); builder.CloseElement(); builder.AddMarkupContent(45, "\n <br>\n "); builder.OpenElement(46, "span"); builder.AddAttribute(47, "class", "d-block"); builder.AddContent(48, "Date: "); builder.AddContent(49, comment.createDate.ToString("d")); builder.CloseElement(); builder.AddContent(50, "\n "); builder.CloseElement(); builder.AddContent(51, "\n "); builder.CloseElement(); builder.AddContent(52, "\n"); #line 32 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\myComments.cshtml" } #line default #line hidden builder.AddContent(53, " "); builder.CloseElement(); builder.AddContent(54, "\n"); #line 34 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\myComments.cshtml" } #line default #line hidden }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); #line 4 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Index.cshtml" if (movies.Count == 0) { #line default #line hidden builder.AddContent(0, " "); builder.AddMarkupContent(1, "<p><em>Loading...</em></p>\n"); #line 7 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Index.cshtml" } else { #line default #line hidden builder.AddContent(2, " "); builder.AddMarkupContent(3, @"<div class=""position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light topPart"" style=""background-image: url(https://cdn-image.departures.com/sites/default/files/styles/responsive_vertical_964x543/public/1518635768/watch-altered-carbon-netflix-FEBWATCHLIST0218.jpg?itok=Kq1HA6ov&timestamp=1518636029)""> <div class=""col-md-5 p-lg-5 mx-auto my-5""> <h1 class=""display-4 font-weight-normal"">Fresh Tomatoes</h1> <p class=""lead font-weight-normal""> This website is made by using WebAssebly(Blazor), ASP.NET Core and combination a set of third APIs. You can search movie infromation and leave your comments through this website. </p> <a class=""btn btn-outline-secondary"" href=""https://webassembly.org/"">Learn more about WebAssebly</a> </div> </div> "); builder.AddContent(4, " "); builder.OpenElement(5, "div"); builder.AddAttribute(6, "class", "d-md-flex flex-md-equal w-100 my-md-3 pl-md-3"); builder.AddContent(7, "\n "); builder.OpenElement(8, "div"); builder.AddAttribute(9, "class", "bg-dark mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center text-white overflow-hidden"); builder.AddContent(10, "\n "); builder.OpenElement(11, "div"); builder.AddAttribute(12, "class", "my-3 py-3"); builder.AddContent(13, "\n "); builder.OpenElement(14, "h2"); builder.AddAttribute(15, "class", "display-5"); builder.OpenElement(16, "a"); builder.AddAttribute(17, "href", "/movie/" + (movies[0].Title)); builder.AddContent(18, movies[0].Title); builder.CloseElement(); builder.CloseElement(); builder.AddContent(19, "\n "); builder.OpenElement(20, "p"); builder.AddAttribute(21, "class", "lead"); builder.AddContent(22, "IMDB Rating: "); builder.AddContent(23, movies[0].imdbRating); builder.CloseElement(); builder.AddContent(24, "\n "); builder.OpenElement(25, "img"); builder.AddAttribute(26, "width", "300"); builder.AddAttribute(27, "height", "444"); builder.AddAttribute(28, "src", movies[0].Poster); builder.CloseElement(); builder.AddContent(29, "\n "); builder.CloseElement(); builder.AddContent(30, "\n "); builder.CloseElement(); builder.AddContent(31, "\n "); builder.OpenElement(32, "div"); builder.AddAttribute(33, "class", "bg-light mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden"); builder.AddContent(34, "\n "); builder.OpenElement(35, "div"); builder.AddAttribute(36, "class", "my-3 p-3"); builder.AddContent(37, "\n "); builder.OpenElement(38, "h2"); builder.AddAttribute(39, "class", "display-5"); builder.OpenElement(40, "a"); builder.AddAttribute(41, "href", "/movie/" + (movies[1].Title)); builder.AddContent(42, movies[1].Title); builder.CloseElement(); builder.CloseElement(); builder.AddContent(43, "\n "); builder.OpenElement(44, "p"); builder.AddAttribute(45, "class", "lead"); builder.AddContent(46, "IMDB Rating: "); builder.AddContent(47, movies[1].imdbRating); builder.CloseElement(); builder.AddContent(48, "\n "); builder.OpenElement(49, "img"); builder.AddAttribute(50, "width", "300"); builder.AddAttribute(51, "height", "444"); builder.AddAttribute(52, "src", movies[1].Poster); builder.CloseElement(); builder.AddContent(53, "\n "); builder.CloseElement(); builder.AddContent(54, "\n "); builder.CloseElement(); builder.AddContent(55, "\n "); builder.CloseElement(); builder.AddContent(56, "\n"); builder.AddContent(57, " "); builder.OpenElement(58, "div"); builder.AddAttribute(59, "class", "d-md-flex flex-md-equal w-100 my-md-3 pl-md-3"); builder.AddContent(60, "\n "); builder.OpenElement(61, "div"); builder.AddAttribute(62, "class", "bg-light mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden"); builder.AddContent(63, "\n "); builder.OpenElement(64, "div"); builder.AddAttribute(65, "class", "my-3 p-3"); builder.AddContent(66, "\n "); builder.OpenElement(67, "h2"); builder.AddAttribute(68, "class", "display-5"); builder.OpenElement(69, "a"); builder.AddAttribute(70, "href", "/movie/" + (movies[2].Title)); builder.AddContent(71, movies[2].Title); builder.CloseElement(); builder.CloseElement(); builder.AddContent(72, "\n "); builder.OpenElement(73, "p"); builder.AddAttribute(74, "class", "lead"); builder.AddContent(75, "IMDB Rating: "); builder.AddContent(76, movies[2].imdbRating); builder.CloseElement(); builder.AddContent(77, "\n "); builder.OpenElement(78, "img"); builder.AddAttribute(79, "width", "300"); builder.AddAttribute(80, "height", "444"); builder.AddAttribute(81, "src", movies[2].Poster); builder.CloseElement(); builder.AddContent(82, "\n "); builder.CloseElement(); builder.AddContent(83, "\n "); builder.CloseElement(); builder.AddContent(84, "\n "); builder.OpenElement(85, "div"); builder.AddAttribute(86, "class", "bg-primary mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center text-white overflow-hidden"); builder.AddContent(87, "\n "); builder.OpenElement(88, "div"); builder.AddAttribute(89, "class", "my-3 py-3"); builder.AddContent(90, "\n "); builder.OpenElement(91, "h2"); builder.AddAttribute(92, "class", "display-5"); builder.OpenElement(93, "a"); builder.AddAttribute(94, "style", "color:white"); builder.AddAttribute(95, "href", "/movie/" + (movies[3].Title)); builder.AddContent(96, movies[3].Title); builder.CloseElement(); builder.CloseElement(); builder.AddContent(97, "\n "); builder.OpenElement(98, "p"); builder.AddAttribute(99, "class", "lead"); builder.AddContent(100, "IMDB Rating: "); builder.AddContent(101, movies[3].imdbRating); builder.CloseElement(); builder.AddContent(102, "\n "); builder.OpenElement(103, "img"); builder.AddAttribute(104, "width", "300"); builder.AddAttribute(105, "height", "444"); builder.AddAttribute(106, "src", movies[3].Poster); builder.CloseElement(); builder.AddContent(107, "\n "); builder.CloseElement(); builder.AddContent(108, "\n "); builder.CloseElement(); builder.AddContent(109, "\n "); builder.CloseElement(); builder.AddContent(110, "\n"); #line 54 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\Index.cshtml" } #line default #line hidden }
#pragma warning disable 1998 protected override void BuildRenderTree(Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); #line 6 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" if (movie == null) { #line default #line hidden builder.AddContent(0, " "); builder.AddMarkupContent(1, "<p><em>Loading...</em></p>\n"); #line 9 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" } else { #line default #line hidden builder.AddContent(2, " "); builder.OpenElement(3, "div"); builder.AddAttribute(4, "class", "row"); builder.AddMarkupContent(5, "\n <div class=\"col-md-2\"></div>\n "); builder.OpenElement(6, "div"); builder.AddAttribute(7, "class", "col-md-8"); builder.AddContent(8, "\n "); builder.OpenElement(9, "div"); builder.AddAttribute(10, "class", "card flex-md-row mb-4 shadow-sm h-md-250"); builder.AddContent(11, "\n "); builder.OpenElement(12, "div"); builder.AddAttribute(13, "class", "card-body d-flex flex-column align-items-start"); builder.AddContent(14, "\n "); builder.OpenElement(15, "h3"); builder.AddAttribute(16, "class", "mb-0"); builder.AddContent(17, "\n "); builder.OpenElement(18, "a"); builder.AddAttribute(19, "class", "text-dark"); builder.AddAttribute(20, "href", "movie/" + (movie.Title)); builder.AddContent(21, movie.Title); builder.CloseElement(); builder.AddContent(22, "\n "); builder.CloseElement(); builder.AddMarkupContent(23, "\n <br>\n "); builder.OpenElement(24, "strong"); builder.AddAttribute(25, "class", "d-inline-block mb-2 text-primary"); builder.AddContent(26, "IMDB Rating: "); builder.AddContent(27, movie.imdbRating); builder.CloseElement(); builder.AddMarkupContent(28, "\n Released:<br>\n "); builder.OpenElement(29, "p"); builder.AddContent(30, movie.Released); builder.CloseElement(); builder.AddMarkupContent(31, "\n Rated:<br>\n "); builder.OpenElement(32, "p"); builder.AddContent(33, movie.Rated); builder.CloseElement(); builder.AddMarkupContent(34, "\n Genre:<br>\n "); builder.OpenElement(35, "p"); builder.AddContent(36, movie.Genre); builder.CloseElement(); builder.AddMarkupContent(37, "\n Director:<br>\n "); builder.OpenElement(38, "p"); builder.AddContent(39, movie.Director); builder.CloseElement(); builder.AddMarkupContent(40, "\n Writer:<br>\n "); builder.OpenElement(41, "p"); builder.AddContent(42, movie.Writer); builder.CloseElement(); builder.AddMarkupContent(43, "\n Language:<br>\n "); builder.OpenElement(44, "p"); builder.AddContent(45, movie.Language); builder.CloseElement(); builder.AddMarkupContent(46, "\n Country:<br>\n "); builder.OpenElement(47, "p"); builder.AddContent(48, movie.Country); builder.CloseElement(); builder.AddMarkupContent(49, "\n Awards:<br>\n "); builder.OpenElement(50, "p"); builder.AddContent(51, movie.Awards); builder.CloseElement(); builder.AddMarkupContent(52, "\n Type:<br>\n "); builder.OpenElement(53, "p"); builder.AddContent(54, movie.Type); builder.CloseElement(); builder.AddMarkupContent(55, "\n Actors:<br>\n "); builder.OpenElement(56, "p"); builder.AddContent(57, movie.Actors); builder.CloseElement(); builder.AddMarkupContent(58, "\n Plot:<br>\n "); builder.OpenElement(59, "p"); builder.AddContent(60, movie.Plot); builder.CloseElement(); builder.AddContent(61, "\n Website: "); builder.OpenElement(62, "a"); builder.AddAttribute(63, "target", "_blank"); builder.AddAttribute(64, "href", movie.Website); builder.AddContent(65, movie.Website); builder.CloseElement(); builder.AddContent(66, "\n "); builder.OpenElement(67, "button"); builder.AddAttribute(68, "class", "btn btn-primary"); builder.AddAttribute(69, "id", "searchTheaters"); builder.AddAttribute(70, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(CallJSMethod)); builder.AddContent(71, "Check nearby theaters"); builder.CloseElement(); builder.AddContent(72, "\n "); builder.CloseElement(); builder.AddContent(73, "\n "); builder.OpenElement(74, "img"); builder.AddAttribute(75, "class", "card-img-right flex-auto d-none d-lg-block"); builder.AddAttribute(76, "width", "200"); builder.AddAttribute(77, "height", "300"); builder.AddAttribute(78, "src", movie.Poster); builder.CloseElement(); builder.AddContent(79, "\n "); builder.CloseElement(); builder.AddContent(80, "\n "); builder.AddMarkupContent(81, "<div class=\"row\">\n <div id=\"map\" class=\"col-md-6\" style=\"height: 400px;\"></div>\n <div id=\"places\" class=\"col-md-6\"></div>\n </div>\n "); builder.AddMarkupContent(82, "<div class=\"row\">\n <div class=\"col-md-6\"></div>\n <button class=\"btn btn-primary col-md-6\" id=\"more\">More</button>\n </div>\n "); builder.CloseElement(); builder.AddContent(83, "\n "); builder.CloseElement(); builder.AddContent(84, "\n "); builder.OpenElement(85, "div"); builder.AddAttribute(86, "class", "my-3 p-3 bg-white rounded shadow-sm comments"); builder.AddContent(87, "\n "); builder.AddMarkupContent(88, "<h6 class=\"border-bottom border-gray pb-2 mb-0\">Comments</h6>\n"); #line 61 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" foreach (var comment in comments) { #line default #line hidden builder.AddContent(89, " "); builder.OpenElement(90, "div"); builder.AddAttribute(91, "class", "media text-muted pt-3"); builder.AddContent(92, "\n "); builder.OpenElement(93, "div"); builder.AddAttribute(94, "class", "media-body pb-3 mb-0 small lh-125 border-bottom border-gray"); builder.AddMarkupContent(95, "\n <img src=\"http://www.icons101.com/icon_png/size_512/id_29125/tomato.png\" width=\"32\" height=\"32\" alt=\"\" class=\"mr-2 rounded\">\n "); builder.OpenElement(96, "div"); builder.AddAttribute(97, "class", "d-flex justify-content-between align-items-center w-100"); builder.AddContent(98, "\n "); builder.OpenElement(99, "strong"); builder.AddAttribute(100, "class", "text-gray-dark"); builder.AddAttribute(101, "style", "font-size:30px; color:blue"); builder.AddContent(102, "@"); builder.AddContent(103, comment.username); builder.CloseElement(); builder.AddContent(104, "\n "); builder.CloseElement(); builder.AddMarkupContent(105, "\n <br>\n "); builder.OpenElement(106, "span"); builder.AddAttribute(107, "class", "d-block"); builder.AddAttribute(108, "style", "font-size:20px; color:black"); builder.AddContent(109, comment.text); builder.CloseElement(); builder.AddMarkupContent(110, "\'\n <br>\n "); builder.OpenElement(111, "span"); builder.AddAttribute(112, "class", "d-block"); builder.AddAttribute(113, "style", "font-size:25px"); builder.AddContent(114, "Rating: "); builder.AddContent(115, comment.rating); builder.CloseElement(); builder.AddMarkupContent(116, "\n <br>\n "); builder.OpenElement(117, "span"); builder.AddAttribute(118, "class", "d-block"); builder.AddContent(119, "Date: "); builder.AddContent(120, comment.createDate.ToString("d")); builder.CloseElement(); builder.AddContent(121, "\n "); builder.CloseElement(); builder.AddContent(122, "\n "); builder.CloseElement(); builder.AddContent(123, "\n"); #line 77 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" } #line default #line hidden builder.AddMarkupContent(124, " <br>\n"); #line 79 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" if (username != null && !username.Equals("")) { #line default #line hidden builder.AddContent(125, " "); builder.OpenElement(126, "div"); builder.AddAttribute(127, "class", "col-md-8 order-md-1"); builder.AddContent(128, "\n "); builder.AddMarkupContent(129, "<h4 class=\"mb-3\">New Comment</h4>\n "); builder.OpenElement(130, "div"); builder.AddAttribute(131, "class", "row"); builder.AddContent(132, "\n "); builder.OpenElement(133, "div"); builder.AddAttribute(134, "class", "col-md-6 mb-3"); builder.AddContent(135, "\n "); builder.AddMarkupContent(136, "<label for=\"username\">Username</label>\n "); builder.OpenElement(137, "input"); builder.AddAttribute(138, "type", "text"); builder.AddAttribute(139, "class", "form-control"); builder.AddAttribute(140, "id", "username"); builder.AddAttribute(141, "required", ""); builder.AddAttribute(142, "readonly", ""); builder.AddAttribute(143, "value", username); builder.CloseElement(); builder.AddContent(144, "\n "); builder.CloseElement(); builder.AddContent(145, "\n "); builder.CloseElement(); builder.AddContent(146, "\n "); builder.OpenElement(147, "div"); builder.AddAttribute(148, "class", "row"); builder.AddContent(149, "\n "); builder.OpenElement(150, "div"); builder.AddAttribute(151, "class", "col-md-6 mb-3"); builder.AddContent(152, "\n "); builder.AddMarkupContent(153, "<label for=\"moviename\">Moviename</label>\n "); builder.OpenElement(154, "input"); builder.AddAttribute(155, "type", "text"); builder.AddAttribute(156, "class", "form-control"); builder.AddAttribute(157, "id", "moviename"); builder.AddAttribute(158, "required", ""); builder.AddAttribute(159, "readonly", ""); builder.AddAttribute(160, "value", movie.Title); builder.CloseElement(); builder.AddContent(161, "\n "); builder.CloseElement(); builder.AddContent(162, "\n "); builder.CloseElement(); builder.AddContent(163, "\n "); builder.OpenElement(164, "div"); builder.AddAttribute(165, "class", "mb-3"); builder.AddContent(166, "\n "); builder.AddMarkupContent(167, "<label for=\"Comment\">Comment</label>\n "); builder.OpenElement(168, "textarea"); builder.AddAttribute(169, "type", "text"); builder.AddAttribute(170, "class", "form-control"); builder.AddAttribute(171, "id", "comment"); builder.AddAttribute(172, "placeholder", "Leave your comment here."); builder.AddAttribute(173, "required", true); builder.AddAttribute(174, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(text)); builder.AddAttribute(175, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => text = __value, text)); builder.CloseElement(); builder.AddContent(176, "\n "); builder.AddMarkupContent(177, "<div class=\"invalid-feedback\">\n Please enter comment.\n </div>\n "); builder.CloseElement(); builder.AddContent(178, "\n "); builder.OpenElement(179, "div"); builder.AddAttribute(180, "class", "col-md-5 mb-3"); builder.AddContent(181, "\n "); builder.AddMarkupContent(182, "<label for=\"Rating\">Rating</label>\n "); builder.OpenElement(183, "select"); builder.AddAttribute(184, "class", "custom-select d-block w-100"); builder.AddAttribute(185, "id", "rating"); builder.AddAttribute(186, "required", true); builder.AddAttribute(187, "value", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetValue(rating)); builder.AddAttribute(188, "onchange", Microsoft.AspNetCore.Blazor.Components.BindMethods.SetValueHandler(__value => rating = __value, rating)); builder.AddContent(189, "\n "); builder.AddMarkupContent(190, "<option value=\"\">Choose...</option>\n "); builder.AddMarkupContent(191, "<option>1</option>\n "); builder.AddMarkupContent(192, "<option>2</option>\n "); builder.AddMarkupContent(193, "<option>3</option>\n "); builder.AddMarkupContent(194, "<option>4</option>\n "); builder.AddMarkupContent(195, "<option>5</option>\n "); builder.CloseElement(); builder.AddContent(196, "\n "); builder.AddMarkupContent(197, "<div class=\"invalid-feedback\">\n Please select a Rating.\n </div>\n "); builder.CloseElement(); builder.AddMarkupContent(198, "\n <hr class=\"mb-4\">\n "); builder.OpenElement(199, "button"); builder.AddAttribute(200, "class", "btn btn-primary btn-lg btn-block"); builder.AddAttribute(201, "onclick", Microsoft.AspNetCore.Blazor.Components.BindMethods.GetEventHandlerValue <Microsoft.AspNetCore.Blazor.UIMouseEventArgs>(AddComment)); builder.AddContent(202, "Add Comment"); builder.CloseElement(); builder.AddContent(203, "\n "); builder.CloseElement(); builder.AddContent(204, "\n"); #line 119 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" } #line default #line hidden builder.AddContent(205, " "); builder.CloseElement(); builder.AddContent(206, "\n"); #line 121 "D:\Study\GuoHanwen\Master\Info6250\FinalProject\Frontend\Pages\detail.cshtml" } #line default #line hidden }