Пример #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"

            ViewData["Title"] = "Account";
            Layout            = "~/Views/Shared/Layout/_main.cshtml";
            WeShare.Web.ApplicationUser u = ViewData["user"] as WeShare.Web.ApplicationUser;
            string profilePicture         = ViewData["userProfilePicturePath"] as string;

#line default
#line hidden
            DefineSection("AddToHead", async() => {
                BeginContext(286, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(292, 57, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "9fbde4ddc93c4b839f4d5f51de103c51", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(349, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(355, 56, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "04c340e8caa04677a099d0d9997f417e", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(411, 2, true);
                WriteLiteral("\r\n");
                EndContext();
            }
                          );
            BeginContext(416, 317, true);
            WriteLiteral(@"

<main>
    <section class=""topArea""></section>
    <aside>
        <h2>Account</h2>
        <a href=""#1"">Verify Email</a>
        <a href=""account/edit"">Profile Settings</a>
        <a href=""#3"">Manage account</a>
    </aside> 
    <section class=""accountEdit"">
        <section class=""profilePicture"">
");
            EndContext();
#line 23 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"

            if (!u.HasProfilePicture)
            {
#line default
#line hidden
                BeginContext(792, 20, true);
                WriteLiteral("                    ");
                EndContext();
                BeginContext(812, 80, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "222db885ebe2401bb08e666d0a9f5a22", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(892, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 26 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(937, 58, true);
                WriteLiteral("                    <img id=\"profilePicture\" class=\"myPfp\"");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 995, "\"", 1016, 1);
#line 28 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
                WriteAttributeValue("", 1001, profilePicture, 1001, 15, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1017, 13, true);
                WriteLiteral(" alt=\"pfp\">\r\n");
                EndContext();
#line 29 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
            }


#line default
#line hidden
            BeginContext(1064, 158, true);
            WriteLiteral("            <button id=\"updateImage\" ><i class=\"fas fa-pen\"></i></button>\r\n        </section>\r\n        \r\n        <img id=\"imgCrop\" src=\"\" alt=\"\" >\r\n\r\n        ");
            EndContext();
            BeginContext(1222, 1681, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "43a9e1161a4b44cf80ea7972e1c73c91", async() => {
                BeginContext(1252, 164, true);
                WriteLiteral("\r\n            <div class=\"form-item\">\r\n                <label for=\"firstname\">First Name</label>\r\n                <input type=\"text\" name=\"firstname\" id=\"firstname\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1416, "\"", 1436, 1);
#line 39 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
                WriteAttributeValue("", 1424, u.FirstName, 1424, 12, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1437, 206, true);
                WriteLiteral(" placeholder=\"First name\">\r\n            </div>\r\n            <div class=\"form-item\">\r\n                <label for=\"lastname\">Last Name</label>\r\n                <input type=\"text\" name=\"lastname\" id=\"lastname\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1643, "\"", 1662, 1);
#line 43 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
                WriteAttributeValue("", 1651, u.LastName, 1651, 11, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1663, 193, true);
                WriteLiteral(" placeholder=\"Last name\">\r\n            </div>\r\n            <div class=\"form-item\">\r\n                <label for=\"email\">Email</label>\r\n                <input type=\"email\" name=\"email\" id=\"email\"");
                EndContext();
                BeginWriteAttribute("value", "  value=\"", 1856, "\"", 1873, 1);
#line 47 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
                WriteAttributeValue("", 1865, u.Email, 1865, 8, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1874, 200, true);
                WriteLiteral(" placeholder=\"Email\">\r\n            </div>\r\n            <div class=\"form-item\">\r\n                <label for=\"username\">Username</label>\r\n                <input type=\"text\" name=\"username\" id=\"username\"");
                EndContext();
                BeginWriteAttribute("value", "  value=\"", 2074, "\"", 2094, 1);
#line 51 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\EditAccount.cshtml"
                WriteAttributeValue("", 2083, u.UserName, 2083, 11, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2095, 801, true);
                WriteLiteral(@" placeholder=""Username"">
            </div>
            <div class=""form-item"">
                <label for=""password"">Current Password</label>
                <input type=""password"" name=""password"" id=""password"" placeholder=""Password"">
            </div>
            <div class=""form-item"">
                <label for=""newpassword"">New Password</label>
                <input type=""password"" name=""newpassword"" id=""newpassword"" placeholder=""New password"">
            </div>
            <div class=""form-item"">
                <label for=""newpassword2"">Confirm New Password</label>
                <input type=""password"" name=""newpassword2"" id=""newpassword2"" placeholder=""Confirm new password"">
            </div>
            <button type=""submit"" class=""saveBtn"">Save</button>
        ");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2903, 370, true);
            WriteLiteral(@"
    </section>
</main>
<div id=""modalFoto"" class=""painelModal"" style=""display:none;"">
    <div class=""modal"">
       <input id=""hdnFile"" type=""file"" style=""display:none"" >
        <div>
            <div id=""upload-demo"" class=""center-block ready""></div>
        </div> 
        <button id=""btnCrop""><i class=""fas fa-check""></i></button>
    </div>
</div>

");
            EndContext();
            DefineSection("scripts", async() => {
                BeginContext(3290, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(3296, 48, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "856187151d90401083a9b6248a17a5b9", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3344, 1971, true);
                WriteLiteral(@"
    <script>
    $(""#updateImage"").on(""click"", function() {
        $(""#hdnFile"").trigger(""click"");
    });
    var $uploadCrop,tempFilename,rawImg,imageId;
    $uploadCrop = $('#upload-demo').croppie({
        viewport: {
            width: 200,
            height: 200
        },
        enforceBoundary: true,
        enableExif: true
    });
    $(""#hdnFile"").change( function() {
        imageId = $(this).data('id'); 
        tempFilename = $(this).val();
        if (this.files && this.files[0]) {
            var reader = new FileReader();
            reader.onload = function (e) {
                rawImg = e.target.result;
                $uploadCrop.croppie('bind', {
				    url: rawImg
				});
                $(""#modalFoto"").toggle();
            }
            reader.readAsDataURL(this.files[0]);
        }else{
            swal(""Sorry - you're browser doesn't support the FileReader API"");
        }
    });
    $('#btnCrop').on('click', function (ev) {
        $uploadCrop.croppie('result', {
            t"    );
                WriteLiteral(@"ype: 'base64',
            format: 'jpeg',
            size: {width: 200, height: 200}
        }).then(function (resp) {
            $('.myPfp').attr('src', resp);
            $.ajax({
                url: ""changeProfilePicture"",
                type: ""POST"",
                data: {profilePicture: resp},
                cache: false,
                beforeSend: function() {
                    $('#btnCrop').html('<img src=""../img/loading-sm.svg"" width=""30"" height=""30""/>');
                }, 
                success: function(html){
                    /*$('#error').html(html);*/
                    $('#btnCrop').html('<i class=""fas fa-check""></i>');
                    $('.painelModal').hide();
                }
            });
        });
    });
    $('.painelModal').on('click', function () {
        $('.painelModal').hide();
    });
    $('.modal').on('click', function (e) {
        e.stopPropagation();
    });
    </script>
");
                EndContext();
            }
                          );
            BeginContext(5318, 28, true);
            WriteLiteral("\r\n/*<div id=\"error\"></div>*/");
            EndContext();
        }
Пример #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"

            ViewData["Title"] = "Account";
            Layout            = "~/Views/Shared/Layout/_main.cshtml";
            WeShare.Web.ApplicationUser u = ViewData["user"] as WeShare.Web.ApplicationUser;
            string profilePicture         = ViewData["userProfilePicturePath"] as string;

#line default
#line hidden
            DefineSection("AddToHead", async() => {
                BeginContext(286, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(292, 57, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "52f7c7f608e243ecb9eba1bf62f07cbb", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(349, 2, true);
                WriteLiteral("\r\n");
                EndContext();
            }
                          );
            BeginContext(354, 310, true);
            WriteLiteral(@"

<main>
    <section class=""topArea""></section>
    <aside>
        <h2>Account</h2>
        <a href=""#1"">Verify Email</a>
        <a href=""edit"">Profile Settings</a>
        <a href=""#3"">Manage account</a>
    </aside> 
    <section class=""accountIndex"">
        <section class=""profilePicture"">
");
            EndContext();
#line 22 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"

            if (!u.HasProfilePicture)
            {
#line default
#line hidden
                BeginContext(723, 20, true);
                WriteLiteral("                    ");
                EndContext();
                BeginContext(743, 80, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "9a0544f6d88847a198f29ff231df8e53", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(823, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 25 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(868, 58, true);
                WriteLiteral("                    <img id=\"profilePicture\" class=\"myPfp\"");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 926, "\"", 947, 1);
#line 27 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
                WriteAttributeValue("", 932, profilePicture, 932, 15, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(948, 13, true);
                WriteLiteral(" alt=\"pfp\">\r\n");
                EndContext();
#line 28 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
            }


#line default
#line hidden
            BeginContext(995, 42, true);
            WriteLiteral("        </section>\r\n        <h3 id=\"name\">");
            EndContext();
            BeginContext(1038, 11, false);
#line 31 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
            Write(u.FirstName);

#line default
#line hidden
            EndContext();
            BeginContext(1049, 1, true);
            WriteLiteral(" ");
            EndContext();
            BeginContext(1051, 10, false);
#line 31 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
            Write(u.LastName);

#line default
#line hidden
            EndContext();
            BeginContext(1061, 22, true);
            WriteLiteral("<span id=\"username\"> #");
            EndContext();
            BeginContext(1084, 10, false);
#line 31 "C:\Users\Computador Sala\Desktop\Projetos\Outros\Snippets\AspNet\Second\WeShare.Web\Views\Account\Account.cshtml"
            Write(u.UserName);

#line default
#line hidden
            EndContext();
            BeginContext(1094, 814, true);
            WriteLiteral(@"</span></h3>
        <section class=""stats"">
            <section class=""comments"">
                <i class=""far fa-comments""></i>
                <p>1.325</p> 
                <p>comentários feitos</p>
            </section>
            <section class=""likes"">
                <i class=""far fa-thumbs-up""></i>
                <p>468</p>
                <p>likes dados</p>
            </section>
            <section class=""videos"">
                <i class=""far fa-play-circle""></i>
                <p>4.124</p>
                <p>vídeos assistidos</p>
            </section>
            <section class=""time"">
                <i class=""fas fa-video""></i>
                <p>239</p>
                <p>horas assistidas</p> 
            </section>
        </section>
    </section>
</main>");
            EndContext();
        }