This commit is contained in:
David Štaleker
2024-02-23 12:56:54 +01:00
parent 18bac3de1c
commit 28d1630749
1388 changed files with 558637 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
@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 the <strong>Development</strong> environment displays detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>

View File

@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Diagnostics;
namespace ZpcBulletinBoard.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[IgnoreAntiforgeryToken]
public class ErrorModel : PageModel
{
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
private readonly ILogger<ErrorModel> _logger;
public ErrorModel(ILogger<ErrorModel> logger)
{
_logger = logger;
}
public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}
}

View File

@@ -0,0 +1,32 @@
@page
@model IndexModel
@{
ViewData["Title"] = "Urejanje";
}
@section Styles
{
<link rel="stylesheet" href="~/css/index/main.css" asp-append-version="true"/>
}
<h4 class="d-flex justify-content-between align-items-center w-100 font-weight-bold py-1 mb-4">
<span>
<span class="text-muted font-weight-light">Bulletin board /</span> Urejevalnik
</span>
</h4>
<div class="row">
<div id="divCanvas" class="col-12">
</div>
</div>
@section Scripts
{
<script src="~/lib/p5/lib/p5.min.js" asp-append-version="true"></script>
<script src="~/lib/p5.js-svg/dist/p5.svg.js" asp-append-version="true"></script>
<script src="~/js/index/note.js" asp-append-version="true"></script>
<script src="~/js/index/main.js" asp-append-version="true"></script>
}

View File

@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace ZpcBulletinBoard.Pages
{
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _logger;
public IndexModel(ILogger<IndexModel> logger)
{
_logger = logger;
}
public void OnGet()
{
}
}
}

View File

@@ -0,0 +1,11 @@
<nav class="layout-footer footer bg-footer-theme">
<div class="container-fluid d-flex flex-wrap justify-content-between text-center container-p-x pb-3">
<div class="pt-3">
© @DateTime.Now.Year <span class="footer-text font-weight-bolder">/</span>
</div>
<div>
<a href="javascript:void(0)" class="footer-link pt-3 ml-4">Pomoč</a>
<a href="javascript:void(0)" class="footer-link pt-3 ml-4">Kontakt</a>
</div>
</div>
</nav>

View File

@@ -0,0 +1,54 @@
@using System.Security.Claims
@using Microsoft.AspNetCore.Identity
@* @using Microsoft.EntityFrameworkCore
@inject UserManager<IdentityApplicationUser> _userManager *@
@{bool hideToggle = ViewData["LayoutNavbarHideToggle"] != null && ViewData["LayoutNavbarHideToggle"].ToString() == "True";}
@* @{
var user = _userManager.Users.Include(x => x.Company).FirstOrDefaultAsync(x => x.Id == _userManager.GetUserAsync(User).Result.Id).Result;
} *@
<!-- Layout navbar -->
<nav class="layout-navbar navbar navbar-expand-lg align-items-lg-center bg-white container-p-x" id="layout-navbar">
<a href="/" class="navbar-brand app-brand demo d-lg-none py-0 mr-4">
<span class="app-brand-logo demo bg-secondary">
<i class="far fa-truck-loading text-white"></i>
</span>
<span class="app-brand-text demo font-weight-normal ml-2">EveryThing</span>
</a>
@if (!hideToggle)
{
<div class="layout-sidenav-toggle navbar-nav d-lg-none align-items-lg-center mr-auto">
<a class="nav-item nav-link px-0 mr-lg-4" href="javascript:void(0)">
<i class="ion ion-md-menu text-large align-middle"></i>
</a>
</div>
}
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#layout-navbar-collapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="layout-navbar-collapse">
<hr class="d-lg-none w-100 my-2">
<div class="navbar-nav align-items-lg-center">
<div class="navbar-text col-lg-12 order-lg-1 w-auto w-lg-100 small px-0">
@* <strong>@user.Company.Title</strong>, @user.Company.Street @user.Company.HouseNumber, @user.Company.PostNumber @user.Company.Post *@
</div>
</div>
<div class="navbar-nav align-items-lg-center ml-auto">
<a class="nav-item nav-link ml-lg-2" href="#">
<i class="fas fa-cog navbar-icon align-middle"></i>
<span class="d-lg-none align-middle">&nbsp; Nastavitve</span>
</a>
<a class="nav-item nav-link ml-lg-2" asp-page="/User/Logout">
<i class="fas fa-sign-out-alt navbar-icon align-middle"></i>
<span class=" align-middle">&nbsp; Odjava</span>
</a>
</div>
</div>
</nav>

View File

@@ -0,0 +1,22 @@
@{string currentPage = ViewContext.RouteData.Values["Page"].ToString();}
<div id="layout-sidenav" class="layout-sidenav sidenav-vertical sidenav bg-sidenav-theme">
<div class="app-brand demo">
<span class="app-brand-logo demo bg-secondary">
<i class="fas fa-draw-circle text-white"></i>
</span>
<a href="/" class="app-brand-text demo sidenav-text font-weight-normal ml-2">Bulletin board</a>
<a href="javascript:void(0)" class="layout-sidenav-toggle sidenav-link text-large ml-auto">
<i class="ion ion-md-menu align-middle"></i>
</a>
</div>
<div class="sidenav-divider mt-0"></div>
<ul class="sidenav-inner">
<li class="sidenav-item@(currentPage == "/Index" ? " active" : "")">
<a asp-page="/Index" class="sidenav-link"><i class="sidenav-icon fas fa-home"></i><div>Urejevalnik</div></a>
</li>
</ul>
</div>

View File

@@ -0,0 +1,8 @@
@page
@model PrivacyModel
@{
ViewData["Title"] = "Privacy Policy";
}
<h1>@ViewData["Title"]</h1>
<p>Use this page to detail your site's privacy policy.</p>

View File

@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace ZpcBulletinBoard.Pages
{
public class PrivacyModel : PageModel
{
private readonly ILogger<PrivacyModel> _logger;
public PrivacyModel(ILogger<PrivacyModel> logger)
{
_logger = logger;
}
public void OnGet()
{
}
}
}

View File

@@ -0,0 +1,73 @@
@using Microsoft.AspNetCore.Http
<!DOCTYPE html>
<html lang="en" class="default-style">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<title>ZPC-BB - @ViewData["Title"]</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900" rel="stylesheet" crossorigin="anonymous" />
<!-- jQuery -->
<script src="~/lib/jquery/dist/jquery.min.js" asp-append-version="true"></script>
@* <script src="~/lib/jquery-ajax-unobtrusive/dist/jquery.unobtrusive-ajax.min.js"></script> *@
<!-- Icons -->
<link rel="stylesheet" href="~/vendor/fonts/fontawesome.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/fonts/ionicons.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/fonts/linearicons.css" asp-append-version="true" />
<!-- Base -->
<link rel="stylesheet" href="~/vendor/css/bootstrap.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/css/appwork.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/css/theme-corporate.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/css/colors.css" asp-append-version="true" />
<link rel="stylesheet" href="~/vendor/css/uikit.css" asp-append-version="true" />
<!-- Layout helpers -->
<script src="~/vendor/js/layout-helpers.js" asp-append-version="true"></script>
<!-- Libs -->
<link rel="stylesheet" href="~/lib/perfect-scrollbar/css/perfect-scrollbar.css" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/bootstrap-select/dist/css/bootstrap-select.css" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker.css" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/spinkit/spinkit.css" asp-append-version="true">
@* <link rel="stylesheet" href="~/node_modules/dist/ladda/ladda.css" asp-append-version="true"> *@
<link rel="stylesheet" href="~/lib/sweetalert2/dist/sweetalert2.css" asp-append-version="true">
<!-- Custom -->
<link rel="stylesheet" href="~/css/demo.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
@await RenderSectionAsync("Styles", required: false)
</head>
<body>
@RenderBody()
@await Html.PartialAsync("Shared/_ValidationScriptsPartial")
<!-- Libs -->
@* <script src="~/node_modules/popper/popper.js" asp-append-version="true"></script> *@
<script src="~/lib/perfect-scrollbar/dist/perfect-scrollbar.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap-select/dist/js/bootstrap-select.js" asp-append-version="true"></script>
<script src="~/lib/moment/min/moment.min.js" asp-append-version="true"></script>
<script src="~/lib/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js" asp-append-version="true"></script>
<script src="~/vendor/js/bootstrap.js" asp-append-version="true"></script>
<script src="~/vendor/js/sidenav.js" asp-append-version="true"></script>
<script src="~/lib/block-ui/jquery.blockUI.js"></script>
<script src="~/lib/spin/dist/spin.js" asp-append-version="true"></script>
@* <script src="~/node_modules/ladda/ladda.js" asp-append-version="true"></script> *@
<script src="~/lib/sweetalert2/dist/sweetalert2.js"></script>
<!-- Custom -->
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>

View File

@@ -0,0 +1,32 @@
@{
Layout = "Shared/_Application";
}
@section Styles {
@await RenderSectionAsync("Styles", required: false)
}
<div class="layout-wrapper layout-2">
<div class="layout-inner">
@await Html.PartialAsync("Layouts/Partials/_LayoutSidenav")
<div class="layout-container">
@await Html.PartialAsync("Layouts/Partials/_LayoutNavbar")
<div class="layout-content">
<div class="container-fluid flex-grow-1 container-p-y">
@RenderBody()
</div>
@await Html.PartialAsync("Layouts/Partials/_LayoutFooter")
</div>
</div>
</div>
<div class="layout-overlay layout-sidenav-toggle"></div>
</div>
@section Scripts {
@await RenderSectionAsync("Scripts", required: false)
}

View File

@@ -0,0 +1,48 @@
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
a.navbar-brand {
white-space: normal;
text-align: center;
word-break: break-all;
}
a {
color: #0077cc;
}
.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}
.border-top {
border-top: 1px solid #e5e5e5;
}
.border-bottom {
border-bottom: 1px solid #e5e5e5;
}
.box-shadow {
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}
button.accept-policy {
font-size: 1rem;
line-height: inherit;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px;
}

View File

@@ -0,0 +1,2 @@
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>

View File

@@ -0,0 +1,3 @@
@using ZpcBulletinBoard
@namespace ZpcBulletinBoard.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

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