diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 55cc528..0000000 --- a/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) 2023 neroduckale - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 2573984..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# nrdkwebsite - -просто мой вебсайт \ No newline at end of file diff --git a/nrdkwebsite/Pages/_ViewImports.cshtml b/nrdkwebsite/Pages/_ViewImports.cshtml new file mode 100644 index 0000000..f90b56a --- /dev/null +++ b/nrdkwebsite/Pages/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using nrdkwebsite +@namespace nrdkwebsite.Pages +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/nrdkwebsite/Pages/_ViewStart.cshtml b/nrdkwebsite/Pages/_ViewStart.cshtml new file mode 100644 index 0000000..2157e73 --- /dev/null +++ b/nrdkwebsite/Pages/_ViewStart.cshtml @@ -0,0 +1,4 @@ +@using nrdkwebsite.Pages +@{ + Layout = "layout"; +} diff --git a/nrdkwebsite/Pages/about.cshtml b/nrdkwebsite/Pages/about.cshtml new file mode 100644 index 0000000..ba7b54d --- /dev/null +++ b/nrdkwebsite/Pages/about.cshtml @@ -0,0 +1,9 @@ +@page +@model About +@{ ViewData["Title"] = "about"; } +
+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/nrdkwebsite/Pages/error.cshtml.cs b/nrdkwebsite/Pages/error.cshtml.cs new file mode 100644 index 0000000..93b0804 --- /dev/null +++ b/nrdkwebsite/Pages/error.cshtml.cs @@ -0,0 +1,26 @@ +using System.Diagnostics; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace nrdkwebsite.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Мой никнейм читается по разному - неродакля, неродукель, неродакале, но одно в нем остается неизменным - неро.
+спасибо мактайлорс за помощь с созданием сайта. version: 0.7 diff --git a/nrdkwebsite/Pages/index.cshtml.cs b/nrdkwebsite/Pages/index.cshtml.cs new file mode 100644 index 0000000..511dbb9 --- /dev/null +++ b/nrdkwebsite/Pages/index.cshtml.cs @@ -0,0 +1,20 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace nrdkwebsite.Pages; + +public class IndexModel : PageModel +{ + private readonly ILogger