surtur
24a830b523
commit 47c8a3e8e27fb8a71e702232c681d588fa152bc0 Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:58:07 2021 +0100 chore: register and login on the right commit 3e32cd61c2436123887d78f4ae396577b378e53c Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:43:07 2021 +0100 chore: add {Login,Register}ViewModel commit f82f12a5328f1500c3a58dccb3728dc86d1cc92c Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:30:36 2021 +0100 chore: libs and pkgs version bump commit 202b06505c94817c7bc60b432a9320efce80afac Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:29:40 2021 +0100 chore: local post-kaniko convenience chown * [skip ci] commit 7e4c4ccbbf4f7290d47c4c682f09ee508b34ae1e Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:29:15 2021 +0100 chore: add Manager on app start commit 62e9d567c07794b821eb86e7dcff4ecbb6bbd47e Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 14:12:24 2021 +0100 chore: add Login page * include FontAwesome (atm from CDN, will fetch it later and bundle it here) commit 3c899a2d024d8b74c7e28dfd4b86e1332d964129 Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 13:33:32 2021 +0100 fix: use proper service provider commit 88a6e0f45eae7d71cf352d01a693429246effd98 Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 12:26:41 2021 +0100 chore: do creation async + s/FirstName/Name/ commit eaed0ec13c0dd3824802a698ac9ed30bffc52de9 Author: surtur <a_mirre@utb.cz> Date: Thu Jan 28 10:55:23 2021 +0100 fix: err creating admin * cause of silly passwd requirements - require {upper,lower}case and non-alphanumeric characters is implicitly set to true commit f55f8517f8f8516192b5d156c71596e7fcc55ad2 Author: surtur <a_mirre@utb.cz> Date: Wed Jan 27 23:11:06 2021 +0100 feat: table renames+call role-creating methods * no "AspNet" prefix * actually call Ensure{Admin,Roles}Created on app start commit 20d3458f281ec9478dc9b0fab3795556dcd0a78f Author: surtur <a_mirre@utb.cz> Date: Wed Jan 27 22:05:11 2021 +0100 fix typo: DbContext --> DBContext commit f972ac83e7197813bf4c9b4d9bb44d640b5dd071 Author: surtur <a_mirre@utb.cz> Date: Wed Jan 27 20:55:22 2021 +0100 chore: add login and usr mgmt logic * add login and registration views * add methods to create admin user on app start commit b65a6d21f8dc5227a8da2d5040348e269c2f3711 Author: surtur <a_mirre@utb.cz> Date: Wed Jan 27 16:02:33 2021 +0100 chore: add auth options * FIXME dev fun settings need to be replaced with proper settings commit 8f84939c22ec96e0a143350b9b9ba3d738dfc149 Author: surtur <a_mirre@utb.cz> Date: Wed Jan 27 14:54:57 2021 +0100 chore: adding identity roles (batch 1) * preparing Startup and DBContext to work with roles and auth * added Roles enum * added User model * added Microsoft.AspNetCore.Identity.EntityFrameworkCore v3.1.10 nuget * note: auth is not ready and working yet, this is batch one of the preparations
100 lines
3.6 KiB
Plaintext
100 lines
3.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>@ViewData["Title"] - pwt_0x01-ng</title>
|
|
|
|
@RenderSection("Styles", required: false)
|
|
<environment include="Development">
|
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"/>
|
|
<link rel="stylesheet" href="~/css/site.css"/>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.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"/>
|
|
</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">pwt_0x01-ng</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="Admin" asp-controller="Carousel" asp-action="Select">Carousel</a>
|
|
</li>
|
|
<li>
|
|
<a asp-area="Admin" asp-controller="Product" asp-action="Select">Products</a>
|
|
</li>
|
|
<li>
|
|
<a asp-area="Admin" asp-controller="Orders" asp-action="Index">Orders</a>
|
|
</li>
|
|
<li>
|
|
<a asp-area="Admin" asp-controller="OrderItem" asp-action="Index">OrderItems</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li>
|
|
<a asp-area="Security" asp-controller="Account" asp-action="Login">Login</a>
|
|
</li>
|
|
<li>
|
|
<a asp-area="Security" asp-controller="Account" asp-action="Register">Register</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<partial name="_CookieConsentPartial"/>
|
|
|
|
<div class="container body-content">
|
|
@RenderBody()
|
|
<partial name="_footer_part"/>
|
|
</div>
|
|
|
|
<environment include="Development">
|
|
<script defer src="~/lib/jquery/dist/jquery.js"></script>
|
|
<script defer src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
|
|
<script defer src="~/js/site.js" asp-append-version="true"></script>
|
|
</environment>
|
|
<environment exclude="Development">
|
|
<script defer 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 defer 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 defer src="~/js/site.min.js" asp-append-version="true"></script>
|
|
</environment>
|
|
|
|
@RenderSection("Scripts", required: false)
|
|
</body>
|
|
</html>
|