chore: added test pages

This commit is contained in:
surtur 2020-09-14 11:20:45 +02:00
parent 1424e847c7
commit 3a7ac9ae5c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
15 changed files with 275 additions and 117 deletions

View File

@ -29,6 +29,20 @@ namespace AW_0.Controllers
return View();
}
public IActionResult nupage()
{
ViewData["Message"] = "Your nupage page.";
return View();
}
public IActionResult anotherone()
{
ViewData["Message"] = "...yeah";
return View();
}
public IActionResult Privacy()
{
return View();
@ -37,7 +51,7 @@ namespace AW_0.Controllers
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
return View(new ErrorViewModel {RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier});
}
}
}

View File

@ -21,4 +21,4 @@ namespace AW_0
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
}
}

View File

@ -60,4 +60,4 @@ namespace AW_0
});
}
}
}
}

View File

@ -3,5 +3,6 @@
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>
<p>I'll write here whatever</p>
<p>Use this area to provide additional information.</p>

View File

@ -5,13 +5,13 @@
<h3>@ViewData["Message"]</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
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>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>
</address>

View File

@ -10,7 +10,7 @@
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
<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.
@ -21,7 +21,7 @@
</div>
</div>
<div class="item">
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
<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.
@ -32,7 +32,7 @@
</div>
</div>
<div class="item">
<img src="~/images/banner3.svg" alt="Microsoft Azure" class="img-responsive" />
<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.
@ -64,31 +64,61 @@
<div class="col-md-3">
<h2>How to</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</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>
<li>
<a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</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>
<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 Web Apps</a></li>
<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 Web Apps</a>
</li>
</ul>
</div>
</div>
</div>

View File

@ -3,4 +3,4 @@
}
<h2>@ViewData["Title"]</h2>
<p>Use this page to detail your site's privacy policy.</p>
<p>Use this page to detail your site's privacy policy.</p>

View File

@ -1,18 +1,127 @@
@model TModel
@{
Layout = null;
ViewData["Title"] = "anotherone";
}
<!DOCTYPE html>
<html>
<head>
<title>title</title>
</head>
<body>
<div>
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>
<p>a whole another page</p>
<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>
</body>
</html>
<div class="row">
<div class="col-md-3">
<h2>Application uses</h2>
<ul>
<li>Sample pages using ASP.NET Core MVC</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=398600">Add a Controller and View</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 Web Apps</a>
</li>
</ul>
</div>
</div>

View File

@ -1,18 +1,8 @@
@model TModel
@{
Layout = null;
ViewData["Title"] = "nupage";
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>
<p>I'll write here whatever</p>
<!DOCTYPE html>
<html>
<head>
<title>title</title>
</head>
<body>
<div>
</div>
</body>
</html>
<p>Use this area to provide additional information.</p>

View File

@ -19,4 +19,4 @@
</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>
</p>

View File

@ -17,7 +17,9 @@
<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>
<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">

View File

@ -1,74 +1,86 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>@ViewData["Title"] - AW_0</title>
<environment include="Development">
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" />
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"/>
<link rel="stylesheet" href="~/css/site.css"/>
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute"/>
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true"/>
</environment>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">AW_0</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul>
</div>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">AW_0</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a asp-area="" asp-controller="Home" asp-action="Index">Home</a>
</li>
<li>
<a asp-area="" asp-controller="Home" asp-action="About">About</a>
</li>
<li>
<a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a>
</li>
<li>
<a asp-area="" asp-controller="Home" asp-action="nupage">nupage</a>
</li>
<li>
<a asp-area="" asp-controller="Home" asp-action="anotherone">anotherone</a>
</li>
</ul>
</div>
</nav>
<partial name="_CookieConsentPartial" />
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>&copy; 2020 - AW_0</p>
</footer>
</div>
</nav>
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
<partial name="_CookieConsentPartial"/>
@RenderSection("Scripts", required: false)
<div class="container body-content">
@RenderBody()
<hr/>
<footer>
<p>&copy; 2020 - AW_0</p>
</footer>
</div>
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
@RenderSection("Scripts", required: false)
</body>
</html>

View File

@ -15,4 +15,4 @@
crossorigin="anonymous"
integrity="sha384-ifv0TYDWxBHzvAk2Z0n8R434FL1Rlv/Av18DXE43N/1rvHyOG4izKst0f2iSLdds">
</script>
</environment>
</environment>

View File

@ -1,3 +1,3 @@
@using AW_0
@using AW_0.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,3 +1,3 @@
@{
Layout = "_Layout";
}
}