reorg
This commit is contained in:
parent
d000f77098
commit
40e8e08690
3487 changed files with 39 additions and 21 deletions
7
src/Yavsc.Web/Views/Home/About.cshtml
Executable file
7
src/Yavsc.Web/Views/Home/About.cshtml
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
@{
|
||||
ViewData["Title"] = "About";
|
||||
}
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<h3>@ViewData["Message"]</h3>
|
||||
|
||||
<p>Use this area to provide additional information.</p>
|
||||
6
src/Yavsc.Web/Views/Home/Contact.cshtml
Executable file
6
src/Yavsc.Web/Views/Home/Contact.cshtml
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
@{
|
||||
ViewData["Title"] = "Contact";
|
||||
}
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
<h3>@ViewData["Message"]</h3>
|
||||
|
||||
44
src/Yavsc.Web/Views/Home/Index.cshtml
Executable file
44
src/Yavsc.Web/Views/Home/Index.cshtml
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
@using Microsoft.AspNetCore.Authentication
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
@using Microsoft.AspNetCore.Authentication
|
||||
|
||||
<div class="jumbotron">
|
||||
@if (User?.Identity?.IsAuthenticated ?? false) {
|
||||
<h1>Welcome, @User.Identity.Name</h1>
|
||||
|
||||
<p>
|
||||
@foreach (var claim in Context.User.Claims) {
|
||||
<div>@claim.Type: <b>@claim.Value</b></div>
|
||||
}
|
||||
</p>
|
||||
|
||||
if (Model!=null) {
|
||||
<h3>Message received from the resource controller: @Model</h3>
|
||||
}
|
||||
|
||||
<form action="~/Home/GetUserInfo" method="post">
|
||||
<button class="btn btn-light btn-warning" type="submit">Get user info</button>
|
||||
</form>
|
||||
|
||||
<form action="~/Home/GetApiCall" method="post">
|
||||
<button class="btn btn-light btn-warning" type="submit">Api Call</button>
|
||||
</form>
|
||||
|
||||
<form action="~/Home/PostDeviceInfo" method="post">
|
||||
<button class="btn btn-light btn-warning" type="submit">Post device info</button>
|
||||
</form>
|
||||
<form action="~/Home/PostFiles/?subdir=test" method="post" enctype="multipart/form-data">
|
||||
Envoyer vers le dossier "test" <input type="file" name="file" multiple/>
|
||||
<button class="btn btn-light btn-warning" type="submit">Post files</button>
|
||||
</form>
|
||||
|
||||
<a class="btn btn-light btn-danger" href="/signout">Sign out</a>
|
||||
}
|
||||
|
||||
else {
|
||||
<h1>Welcome, anonymous</h1>
|
||||
<a class="btn btn-light btn-success" href="/signin">Sign in</a>
|
||||
}
|
||||
</div>
|
||||
7
src/Yavsc.Web/Views/Home/UserInfo.cshtml
Normal file
7
src/Yavsc.Web/Views/Home/UserInfo.cshtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@model string
|
||||
@{
|
||||
ViewData["Title"] = "User Info";
|
||||
}
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<code>@Model</code>
|
||||
6
src/Yavsc.Web/Views/Shared/Error.cshtml
Executable file
6
src/Yavsc.Web/Views/Shared/Error.cshtml
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
46
src/Yavsc.Web/Views/Shared/_Layout.cshtml
Executable file
46
src/Yavsc.Web/Views/Shared/_Layout.cshtml
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - sampleWebAsWebApiClient</title>
|
||||
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div 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-controller="Home" asp-action="Index" class="navbar-brand">sampleWebAsWebApiClient</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a asp-controller="Home" asp-action="Index">Home</a></li>
|
||||
<li><a asp-controller="Home" asp-action="About">About</a></li>
|
||||
<li><a asp-controller="Home" asp-action="Contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container body-content">
|
||||
@RenderBody()
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© 2016 - sampleWebAsWebApiClient</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
1
src/Yavsc.Web/Views/Shared/json.cshtml
Normal file
1
src/Yavsc.Web/Views/Shared/json.cshtml
Normal file
|
|
@ -0,0 +1 @@
|
|||
<pre>@ViewBag.Json</pre>
|
||||
2
src/Yavsc.Web/Views/_ViewImports.cshtml
Executable file
2
src/Yavsc.Web/Views/_ViewImports.cshtml
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
@using sampleWebAsWebApiClient
|
||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||
3
src/Yavsc.Web/Views/_ViewStart.cshtml
Executable file
3
src/Yavsc.Web/Views/_ViewStart.cshtml
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue