Permalink
Browse files

Initial commit of File => New Project => WebApplication (no Auth)

  • Loading branch information...
scottsauber committed Jul 5, 2018
1 parent e63f98f commit d4ff016a89b4b1803ce4d466c0698b1ea8a8113c
Showing with 24,398 additions and 0 deletions.
  1. +25 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore.sln
  2. +9 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/About.cshtml
  3. +18 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/About.cshtml.cs
  4. +19 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Contact.cshtml
  5. +18 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Contact.cshtml.cs
  6. +23 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Error.cshtml
  7. +23 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Error.cshtml.cs
  8. +96 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Index.cshtml
  9. +17 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Index.cshtml.cs
  10. +8 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Privacy.cshtml
  11. +16 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Privacy.cshtml.cs
  12. +41 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Shared/_CookieConsentPartial.cshtml
  13. +74 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Shared/_Layout.cshtml
  14. +18 −0 ...zorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/Shared/_ValidationScriptsPartial.cshtml
  15. +3 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/_ViewImports.cshtml
  16. +3 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Pages/_ViewStart.cshtml
  17. +24 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Program.cs
  18. +11 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore.csproj
  19. +58 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/Startup.cs
  20. +9 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/appsettings.Development.json
  21. +8 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/appsettings.json
  22. +37 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/css/site.css
  23. +1 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/css/site.min.css
  24. BIN src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/favicon.ico
  25. +1 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/images/banner1.svg
  26. +1 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/images/banner2.svg
  27. +1 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/images/banner3.svg
  28. +4 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/js/site.js
  29. 0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/js/site.min.js
  30. +45 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/.bower.json
  31. +21 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/LICENSE
  32. +587 −0 ...mlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css
  33. +1 −0 ...ails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map
  34. +6 −0 ...ails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css
  35. +1 −0 ....AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map
  36. +6,757 −0 ...azorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap.css
  37. +1 −0 ...HtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map
  38. +6 −0 ...HtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css
  39. +1 −0 ...Emails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map
  40. BIN ...Core/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
  41. +288 −0 ...Core/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
  42. BIN ...Core/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
  43. BIN ...ore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
  44. BIN ...re/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
  45. +2,377 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/js/bootstrap.js
  46. +7 −0 ...orHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js
  47. +13 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/bootstrap/dist/js/npm.js
  48. +15 −0 ...mails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation-unobtrusive/.bower.json
  49. +12 −0 ...mails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt
  50. +431 −0 ...zorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
  51. +4 −0 ...tmlEmails.AspNetCore/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
  52. +41 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/.bower.json
  53. +22 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/LICENSE.md
  54. +1,158 −0 ...ls.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/dist/additional-methods.js
  55. +4 −0 ...spNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/dist/additional-methods.min.js
  56. +1,601 −0 ...mails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/dist/jquery.validate.js
  57. +4 −0 ...s.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js
  58. +26 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery/.bower.json
  59. +36 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery/LICENSE.txt
  60. +10,364 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery/dist/jquery.js
  61. +2 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery/dist/jquery.min.js
  62. +1 −0 src/RazorHtmlEmails.AspNetCore/RazorHtmlEmails.AspNetCore/wwwroot/lib/jquery/dist/jquery.min.map
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2026
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorHtmlEmails.AspNetCore", "RazorHtmlEmails.AspNetCore\RazorHtmlEmails.AspNetCore.csproj", "{47CAE758-0113-4D48-AB00-9BE33CD7164C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{47CAE758-0113-4D48-AB00-9BE33CD7164C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47CAE758-0113-4D48-AB00-9BE33CD7164C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47CAE758-0113-4D48-AB00-9BE33CD7164C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47CAE758-0113-4D48-AB00-9BE33CD7164C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8C2C9B42-288E-4700-9FB1-6C7EFF02D3DA}
EndGlobalSection
EndGlobal
@@ -0,0 +1,9 @@
@page
@model AboutModel
@{
ViewData["Title"] = "About";
}
<h2>@ViewData["Title"]</h2>
<h3>@Model.Message</h3>
<p>Use this area to provide additional information.</p>
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorHtmlEmails.AspNetCore.Pages
{
public class AboutModel : PageModel
{
public string Message { get; set; }
public void OnGet()
{
Message = "Your application description page.";
}
}
}
@@ -0,0 +1,19 @@
@page
@model ContactModel
@{
ViewData["Title"] = "Contact";
}
<h2>@ViewData["Title"]</h2>
<h3>@Model.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorHtmlEmails.AspNetCore.Pages
{
public class ContactModel : PageModel
{
public string Message { get; set; }
public void OnGet()
{
Message = "Your contact page.";
}
}
}
@@ -0,0 +1,23 @@
@page
@model ErrorModel
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
@if (Model.ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
</p>
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorHtmlEmails.AspNetCore.Pages
{
public class ErrorModel : PageModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}
}
@@ -0,0 +1,96 @@
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how to build ASP.NET apps that can run anywhere.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
There are powerful new features in Visual Studio for building modern web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner3.svg" alt="Microsoft Azure" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row">
<div class="col-md-3">
<h2>Application uses</h2>
<ul>
<li>Sample pages using ASP.NET Core Razor Pages</li>
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>How to</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?linkid=852130">Working with Razor Pages.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Overview</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Run &amp; Deploy</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure App Service</a></li>
</ul>
</div>
</div>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorHtmlEmails.AspNetCore.Pages
{
public class IndexModel : PageModel
{
public void OnGet()
{
}
}
}
@@ -0,0 +1,8 @@
@page
@model PrivacyModel
@{
ViewData["Title"] = "Privacy Policy";
}
<h2>@ViewData["Title"]</h2>
<p>Use this page to detail your site's privacy policy.</p>
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorHtmlEmails.AspNetCore.Pages
{
public class PrivacyModel : PageModel
{
public void OnGet()
{
}
}
}
@@ -0,0 +1,41 @@
@using Microsoft.AspNetCore.Http.Features
@{
var consentFeature = Context.Features.Get<ITrackingConsentFeature>();
var showBanner = !consentFeature?.CanTrack ?? false;
var cookieString = consentFeature?.CreateConsentCookie();
}
@if (showBanner)
{
<nav id="cookieConsent" class="navbar navbar-default navbar-fixed-top" role="alert">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#cookieConsent .navbar-collapse">
<span class="sr-only">Toggle cookie consent banner</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></span>
</div>
<div class="collapse navbar-collapse">
<p class="navbar-text">
Use this space to summarize your privacy and cookie use policy.
</p>
<div class="navbar-right">
<a asp-page="/Privacy" class="btn btn-info navbar-btn">Learn More</a>
<button type="button" class="btn btn-default navbar-btn" data-cookie-string="@cookieString">Accept</button>
</div>
</div>
</div>
</nav>
<script>
(function () {
document.querySelector("#cookieConsent button[data-cookie-string]").addEventListener("click", function (el) {
document.cookie = el.target.dataset.cookieString;
document.querySelector("#cookieConsent").classList.add("hidden");
}, false);
})();
</script>
}
Oops, something went wrong.

0 comments on commit d4ff016

Please sign in to comment.