203 lines
8.3 KiB
Plaintext
203 lines
8.3 KiB
Plaintext
@using System.Security.Claims
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="pt-BR">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>@ViewData["Title"] - Chat</title>
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
|
|
@* <link rel="stylesheet" href="~/ChatMvc.styles.css" asp-append-version="true" />
|
|
*@
|
|
|
|
<link rel="stylesheet" href="~/css/layout.css" asp-append-version="true" />
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
@await RenderSectionAsync("Styles", required: false)
|
|
</head>
|
|
<body class="hide-body">
|
|
<partial name="_Busy" />
|
|
<div id="wrapper">
|
|
<nav id="nav-bar" class="navbar navbar-expand-lg navbar-dark">
|
|
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">Chat IA</a>
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="navbar-collapse collapse" id="navbarNav">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
|
</li>
|
|
@*
|
|
<li class="nav-item">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Plans" asp-action="Index">Planos</a>
|
|
</li>
|
|
*@
|
|
@if (User!=null && User.Identity!=null && User.Identity.IsAuthenticated)
|
|
{
|
|
<li class="nav-item">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Chat" asp-action="Index">Chat</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
@if (User!=null && User.Identity!=null && !User.Identity.IsAuthenticated)
|
|
{
|
|
<ul class="navbar-nav ml-auto">
|
|
<partial name="_Language" />
|
|
<li class="nav-item" style="margin-right: 10px">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Login" asp-action="Index"><i class="bi bi-person"></i> Login</a>
|
|
</li>
|
|
</ul>
|
|
}
|
|
else
|
|
{
|
|
<ul class="navbar-nav ml-auto">
|
|
<partial name="_Language"/>
|
|
<li class="nav-item dropdown" style="margin-right: 10px">
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="bi bi-person"></i> @(User.FindFirst("FirstName") != null ? User.FindFirst("FirstName").Value : "N/A")
|
|
</a>
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
<a class="dropdown-item" asp-area="" asp-controller="Login" asp-action="Logout">Sair</a>
|
|
@*
|
|
<a class="dropdown-item" href="#">Action</a>
|
|
<a class="dropdown-item" href="#">Another action</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
*@
|
|
</div>
|
|
</li>
|
|
@*
|
|
<li class="nav-item">
|
|
<a class="nav-link text-white" asp-area="" asp-controller="Login" asp-action="Logout">@User.FindFirst("FullName").Value
|
|
</a>
|
|
</li>
|
|
*@
|
|
</ul>
|
|
}
|
|
</div>
|
|
</nav>
|
|
<div class="container">
|
|
@RenderBody()
|
|
@*
|
|
<main role="main" class="pb-3">
|
|
</main>
|
|
*@
|
|
</div>
|
|
|
|
<footer class="border-top footer text-muted">
|
|
<div class="container">
|
|
© 2024 - Chat IA - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
|
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.6/purify.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.0.2/marked.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/prism.min.js"></script>
|
|
|
|
|
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
|
<script src="~/js/wait.js" asp-append-version="true"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$(document).ready(function () {
|
|
$('.loading').hide();
|
|
//$('body').fadeIn(1000);
|
|
$('body').slideDown('slow');
|
|
});
|
|
|
|
$('a[href="#search"]').on('click', function (event) {
|
|
event.preventDefault();
|
|
$('#search').addClass('open');
|
|
$('#search > form > input[type="search"]').focus();
|
|
inactivateActiveOption();
|
|
searchActive();
|
|
});
|
|
|
|
$('#search, #search button.close').on('click keyup', function (event) {
|
|
if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
|
|
$(this).removeClass('open');
|
|
setActiveByLocation();
|
|
searchInactive();
|
|
}
|
|
});
|
|
|
|
$(window).on('beforeunload', function () {
|
|
displayBusyIndicator();
|
|
});
|
|
|
|
$(document).on('submit', 'form', function () {
|
|
displayBusyIndicator();
|
|
});
|
|
|
|
$(document).ready(function () {
|
|
$('#wrapper').fadeIn('slow');
|
|
$('a.nav-link').click(function () {
|
|
$('#wrapper').fadeOut('slow');
|
|
});
|
|
setActiveByLocation();
|
|
});
|
|
|
|
|
|
|
|
function setActiveByLocation() {
|
|
$('ul.navbar-nav').find('a[href="' + location.pathname + '"]')
|
|
.closest('li')
|
|
.addClass("active")
|
|
|
|
$('ul.navbar-nav').find('a[href="' + location.pathname + '"]')
|
|
.closest('a')
|
|
.removeClass('text-white')
|
|
.addClass('text-black');
|
|
}
|
|
|
|
function searchActive() {
|
|
$('#searchLi').addClass("active");
|
|
$('#searchLi > a')
|
|
.removeClass('text-white')
|
|
.addClass('text-black');
|
|
}
|
|
|
|
function searchInactive() {
|
|
$('#searchLi').removeClass("active");
|
|
$('#searchLi > a')
|
|
.removeClass('text-black')
|
|
.addClass('text-white');
|
|
}
|
|
|
|
function inactivateActiveOption() {
|
|
$('ul.navbar-nav li.active')
|
|
.closest('li')
|
|
.removeClass("active")
|
|
|
|
$('ul.navbar-nav').find('a[href="' + location.pathname + '"]')
|
|
.closest('a')
|
|
.removeClass('text-black')
|
|
.addClass('text-white');
|
|
}
|
|
|
|
function displayBusyIndicator() {
|
|
//$('body').fadeOut(1000);
|
|
$('body').slideUp('slow');
|
|
}
|
|
|
|
//$(".hide-body").fadeOut(2000);
|
|
});
|
|
</script>
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
</html>
|