diff --git a/ComputerHardwareStore/ComputerHardwareStore.sln b/ComputerHardwareStore/ComputerHardwareStore.sln index ac65d69..d2b8921 100644 --- a/ComputerHardwareStore/ComputerHardwareStore.sln +++ b/ComputerHardwareStore/ComputerHardwareStore.sln @@ -15,6 +15,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputerHardwareStoreDataba EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputerHardwareStoreREST", "ComputerHardwareStoreREST\ComputerHardwareStoreREST.csproj", "{20E4D287-C0F4-4DAB-B338-349F8B6EA22B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VendorClient", "VendorClient\VendorClient.csproj", "{BD0D9FB9-7F73-4011-AAC8-D5508EC5EB53}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StoreKeeperClient", "ComputerHardwareStoreStoreKeeperApp\StoreKeeperClient.csproj", "{0FF8FE3D-A38E-40AF-9286-4D7B11ADA785}" EndProject Global @@ -51,6 +53,10 @@ Global {0FF8FE3D-A38E-40AF-9286-4D7B11ADA785}.Debug|Any CPU.Build.0 = Debug|Any CPU {0FF8FE3D-A38E-40AF-9286-4D7B11ADA785}.Release|Any CPU.ActiveCfg = Release|Any CPU {0FF8FE3D-A38E-40AF-9286-4D7B11ADA785}.Release|Any CPU.Build.0 = Release|Any CPU + {BD0D9FB9-7F73-4011-AAC8-D5508EC5EB53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD0D9FB9-7F73-4011-AAC8-D5508EC5EB53}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD0D9FB9-7F73-4011-AAC8-D5508EC5EB53}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD0D9FB9-7F73-4011-AAC8-D5508EC5EB53}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ComputerHardwareStore/VendorClient/Controllers/HomeController.cs b/ComputerHardwareStore/VendorClient/Controllers/HomeController.cs new file mode 100644 index 0000000..3782b3b --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Controllers/HomeController.cs @@ -0,0 +1,143 @@ +using ComputerHardwareStoreContracts.ViewModels; +using Microsoft.AspNetCore.Mvc; +using System.Diagnostics; +using VendorClient.Models; + +namespace VendorClient.Controllers +{ + public class HomeController : Controller + { + private readonly ILogger _logger; + + public HomeController(ILogger logger) + { + _logger = logger; + } + + [HttpGet] + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Privacy() + { + return View(); + } + + [HttpGet] + public IActionResult Enter() + { + return View(); + } + + [HttpGet] + public IActionResult Register() + { + return View(); + } + + [HttpGet] + public IActionResult AddBuildToPurchase() + { + return View(); + } + + [HttpGet] + public IActionResult Builds() + { + return View(new List()); + } + + [HttpGet] + public IActionResult BuildCreate() + { + return View(); + } + + [HttpGet] + public IActionResult BuildDelete() + { + return View(); + } + + [HttpGet] + public IActionResult BuildUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult CommentCreate() + { + return View(); + } + + [HttpGet] + public IActionResult CommentDelete() + { + return View(); + } + + [HttpGet] + public IActionResult CommentUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult Comments() + { + return View(new List()); + } + + [HttpGet] + public IActionResult ProductsList() + { + return View(new List()); + } + + [HttpGet] + public IActionResult PurchaseCreate() + { + return View(); + } + + [HttpGet] + public IActionResult PurchaseDelete() + { + return View(); + } + + [HttpGet] + public IActionResult Purchases() + { + return View(new List()); + } + + [HttpGet] + public IActionResult PurchaseUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult Report() + { + return View(new List()); + } + + [HttpPost] + public void Report(string password) + { + Response.Redirect("ReportOnly"); + } + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + public IActionResult Error() + { + return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); + } + } +} diff --git a/ComputerHardwareStore/VendorClient/Models/ErrorViewModel.cs b/ComputerHardwareStore/VendorClient/Models/ErrorViewModel.cs new file mode 100644 index 0000000..a412522 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Models/ErrorViewModel.cs @@ -0,0 +1,9 @@ +namespace VendorClient.Models +{ + public class ErrorViewModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + } +} diff --git a/ComputerHardwareStore/VendorClient/Program.cs b/ComputerHardwareStore/VendorClient/Program.cs new file mode 100644 index 0000000..df2434c --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Program.cs @@ -0,0 +1,23 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/ComputerHardwareStore/VendorClient/Properties/launchSettings.json b/ComputerHardwareStore/VendorClient/Properties/launchSettings.json new file mode 100644 index 0000000..c32e921 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Properties/launchSettings.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:27793", + "sslPort": 44393 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5194", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7085;http://localhost:5194", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/ComputerHardwareStore/VendorClient/VendorClient.csproj b/ComputerHardwareStore/VendorClient/VendorClient.csproj new file mode 100644 index 0000000..d63e0fb --- /dev/null +++ b/ComputerHardwareStore/VendorClient/VendorClient.csproj @@ -0,0 +1,17 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + diff --git a/ComputerHardwareStore/VendorClient/VendorClient.http b/ComputerHardwareStore/VendorClient/VendorClient.http new file mode 100644 index 0000000..00490f8 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/VendorClient.http @@ -0,0 +1,6 @@ +@VendorClient_HostAddress = http://localhost:5194 + +GET {{VendorClient_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/ComputerHardwareStore/VendorClient/Views/Home/AddBuildToPurchase.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/AddBuildToPurchase.cshtml new file mode 100644 index 0000000..7836c5b --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/AddBuildToPurchase.cshtml @@ -0,0 +1,29 @@ +@{ + ViewData["Title"] = "AddBuildToPurchase"; +} +
+

Добавить сборку в покупку

+
+
+
+
Покупка:
+
+ +
+
+
+
Сборка:
+
+ +
+
+
+
Количество:
+
+ +
+
+
+ +
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/BuildCreate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/BuildCreate.cshtml new file mode 100644 index 0000000..4486cfa --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/BuildCreate.cshtml @@ -0,0 +1,23 @@ +@{ + ViewData["Title"] = "BuildCreate"; +} +
+

Создать сборку

+
+
+
+
Название:
+
+
+
+
Цена:
+
+
+
+
+
+
+ +
+
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/BuildDelete.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/BuildDelete.cshtml new file mode 100644 index 0000000..b4531de --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/BuildDelete.cshtml @@ -0,0 +1,17 @@ +@{ + ViewData["Title"] = "BuildDelete"; +} +
+

Удалить сборку

+
+
+
+
Сборка:
+
+ +
+
+
+ +
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/BuildUpdate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/BuildUpdate.cshtml new file mode 100644 index 0000000..a92b044 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/BuildUpdate.cshtml @@ -0,0 +1,44 @@ +@{ + ViewData["Title"] = "BuildUpdate"; +} +
+

Обновить сборку

+
+
+
+
Сборка:
+
+ +
+
+
+
Название:
+
+
+
+
Цена:
+
+
+
+ +
+
+< diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Builds.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Builds.cshtml new file mode 100644 index 0000000..9d7a745 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Builds.cshtml @@ -0,0 +1,54 @@ +@using ComputerHardwareStoreContracts.ViewModels +@model List +@{ + ViewData["Title"] = "Builds"; +} +
+

Сборки

+
+
+ @{ + if (Model == null) + { +

Войдите!

+ return; + } +

+ Создать сборку + Изменить сборку + Удаление магазина +

+ + + + + + + + + + + @foreach (var build in Model) + { + + + + + + } + +
+ Номер + + Название + + Цена +
+ @Html.DisplayFor(modelItem => build.Id) + + @Html.DisplayFor(modelItem => build.Name) + + @Html.DisplayFor(modelItem => build.Price) +
+ } +
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/CommentCreate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/CommentCreate.cshtml new file mode 100644 index 0000000..c659129 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/CommentCreate.cshtml @@ -0,0 +1,29 @@ +@{ + ViewData["Title"] = "CommentCreate"; +} +
+

Создать комментарий

+
+
+
+
Заголовок:
+
+
+
+
Текст:
+
+
+
+
Сборка:
+
+ +
+
+
+
+
+
+ +
+
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/CommentDelete.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/CommentDelete.cshtml new file mode 100644 index 0000000..9103751 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/CommentDelete.cshtml @@ -0,0 +1,17 @@ +@{ + ViewData["Title"] = "CommentDelete"; +} +
+

Удалить комментарий

+
+
+
+
Комментарий:
+
+ +
+
+
+ +
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/CommentUpdate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/CommentUpdate.cshtml new file mode 100644 index 0000000..778c681 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/CommentUpdate.cshtml @@ -0,0 +1,52 @@ +@{ + ViewData["Title"] = "CommentUpdate"; +} +
+

Обновить комметрарий

+
+
+
+
Комментарий:
+
+ +
+
+
+
Заголовок:
+
+
+
+
Текст:
+
+
+
+
Сборка:
+
+ +
+
+
+ +
+
+< + diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Comments.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Comments.cshtml new file mode 100644 index 0000000..5ab43e7 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Comments.cshtml @@ -0,0 +1,51 @@ +@using ComputerHardwareStoreContracts.ViewModels +@model List +@{ + ViewData["Title"] = "Comments"; +} +
+

Комментарии

+
+
+ @{ + if (Model == null) + { +

Войди кому говорят!

+ return; + } +

+ Создать комментарий + изменить коммментарий + Удалить комментарий +

+ + + + + + + + + + + @foreach (var comment in Model) + { + + + + + } + +
+ Номер + + Заголовок + + Текст +
+ @Html.DisplayFor(modelItem => comment.Id) + + @Html.DisplayFor(modelItem => comment.Text) +
+ } +
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Enter.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Enter.cshtml new file mode 100644 index 0000000..ff4127f --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Enter.cshtml @@ -0,0 +1,20 @@ +@{ + ViewData["Title"] = "Enter"; +} +
+

Вход в приложение

+
+
+
+
Логин:
+
+
+
+
Пароль:
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Index.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Index.cshtml new file mode 100644 index 0000000..3702461 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Index.cshtml @@ -0,0 +1,7 @@ +@{ + ViewData["Title"] = "Home Page"; +} + +
+ logo +
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/ProductsList.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/ProductsList.cshtml new file mode 100644 index 0000000..b8014f5 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/ProductsList.cshtml @@ -0,0 +1,53 @@ +@using ComputerHardwareStoreContracts.ViewModels +@model List +@{ + ViewData["Title"] = "ProductsList"; +} +
+

Товары по сборкам

+
+
+
+ @{ + if (Model == null) + { +

Войдите!

+ return; + } +
+
Формат сохранения:
+
+ + + + +
+
+
+
Выберите файл:
+
+ + +
+
+
+
Выберите сборки:
+
+ +
+
+
+
+
+
+ +
+
+ } +
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/PurchaseCreate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseCreate.cshtml new file mode 100644 index 0000000..40f968c --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseCreate.cshtml @@ -0,0 +1,43 @@ +@using ComputerHardwareStoreContracts.ViewModels +@model List +@{ + ViewData["Title"] = "PurchaseCreate"; +} +
+

Создать покупку

+
+
+ @{ + if (Model == null) + { +

Надо войти!

+ return; + } +
+
Сумма:
+
+
+
+
Адрес:
+
+
+
+
Товары:
+
+ +
+
+
+
+
+
+ +
+
+ } +
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/PurchaseDelete.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseDelete.cshtml new file mode 100644 index 0000000..88da946 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseDelete.cshtml @@ -0,0 +1,17 @@ +@{ + ViewData["Title"] = "PurchaseDelete"; +} +
+

Удалить покупку

+
+
+
+
Покупка от даты:
+
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/ComputerHardwareStore/VendorClient/Views/Home/PurchaseUpdate.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseUpdate.cshtml new file mode 100644 index 0000000..45acc87 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/PurchaseUpdate.cshtml @@ -0,0 +1,89 @@ +@{ + ViewData["Title"] = "PurchaseUpdate"; +} +
+

Обновить покупку

+
+
+
+
Покупка:
+
+ +
+
+
+
Адрес:
+
+
+
+
Сумма:
+
+
+
+
Товары в покупке:
+
+ + + + + + + + + +
НазваниеКоличество
+
+
+
+
Сборки в покупке:
+
+ + + + + + + + + +
НазваниеКоличество
+
+
+
+ +
+
+< \ No newline at end of file diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Purchases.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Purchases.cshtml new file mode 100644 index 0000000..c036869 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Purchases.cshtml @@ -0,0 +1,62 @@ +@using ComputerHardwareStoreContracts.ViewModels +@model List +@{ + ViewData["Title"] = "Purchases"; +} +
+

Покупки

+
+
+ @{ + if (Model == null) + { +

Надо войти!

+ return; + } +

+ Создать покупку + Изменить покупку + Добавить сборку в покупку + Удалить покупку +

+ + + + + + + + + + + + @foreach (var puchase in Model) + { + + + + + + + } + +
+ Номер + + Дата + + Сумма + + Адрес +
+ @Html.DisplayFor(modelItem => puchase.Id) + + @Html.DisplayFor(modelItem => puchase.DateCreate) + + @Html.DisplayFor(modelItem => puchase.Sum) + + @Html.DisplayFor(modelItem => puchase.DateImplement) +
+ } +
+ diff --git a/ComputerHardwareStore/VendorClient/Views/Home/Register.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/Register.cshtml new file mode 100644 index 0000000..1556e4b --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/Register.cshtml @@ -0,0 +1,26 @@ +@{ + ViewData["Title"] = "Register"; +} +
+

Регистрация

+
+
+
+
Логин:
+
+
+
+
Пароль:
+
+
+
+
Имя:
+
+
+
+
+ +
+
+
diff --git a/ComputerHardwareStore/VendorClient/Views/Home/_Layout.cshtml b/ComputerHardwareStore/VendorClient/Views/Home/_Layout.cshtml new file mode 100644 index 0000000..fd84af1 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Home/_Layout.cshtml @@ -0,0 +1,63 @@ + + + + + + @ViewData["Title"] - AutomobilePlantClientApp + + + + + + + +
+ +
+
+
+ @RenderBody() +
+
+
+
+ © 2024 - Компьютерный магазин +
+
+ + @RenderSection("Scripts", required: false) + + \ No newline at end of file diff --git a/ComputerHardwareStore/VendorClient/Views/Shared/Error.cshtml b/ComputerHardwareStore/VendorClient/Views/Shared/Error.cshtml new file mode 100644 index 0000000..a1e0478 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Shared/Error.cshtml @@ -0,0 +1,25 @@ +@model ErrorViewModel +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if (Model.ShowRequestId) +{ +

+ Request ID: @Model.RequestId +

+} + +

Development Mode

+

+ Swapping to Development environment will display more 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/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml b/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..0fe71e9 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml @@ -0,0 +1,49 @@ + + + + + + @ViewData["Title"] - ComputerStoreWorkerApp + + + + + +
+ +
+
+
+ @RenderBody() +
+
+ +
+
+ © 2024 - ComputerStoreWorkerApp - Privacy +
+
+ + + + @await RenderSectionAsync("Scripts", required: false) + + diff --git a/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml.css b/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml.css new file mode 100644 index 0000000..a72cbea --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Shared/_Layout.cshtml.css @@ -0,0 +1,48 @@ +/* Please see documentation at https://docs.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; +} diff --git a/ComputerHardwareStore/VendorClient/Views/Shared/_ValidationScriptsPartial.cshtml b/ComputerHardwareStore/VendorClient/Views/Shared/_ValidationScriptsPartial.cshtml new file mode 100644 index 0000000..5a16d80 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/Shared/_ValidationScriptsPartial.cshtml @@ -0,0 +1,2 @@ + + diff --git a/ComputerHardwareStore/VendorClient/Views/_ViewImports.cshtml b/ComputerHardwareStore/VendorClient/Views/_ViewImports.cshtml new file mode 100644 index 0000000..7b7300a --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using VendorClient +@using VendorClient.Models +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/ComputerHardwareStore/VendorClient/Views/_ViewStart.cshtml b/ComputerHardwareStore/VendorClient/Views/_ViewStart.cshtml new file mode 100644 index 0000000..a5f1004 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/ComputerHardwareStore/VendorClient/appsettings.Development.json b/ComputerHardwareStore/VendorClient/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/ComputerHardwareStore/VendorClient/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/ComputerHardwareStore/VendorClient/appsettings.json b/ComputerHardwareStore/VendorClient/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/ComputerHardwareStore/VendorClient/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +}