From 61845516af93925452134246fcdedc0aa6f9fe80 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Mon, 7 Aug 2023 09:20:04 +0200 Subject: [PATCH] product details --- .../Pages/CatalogCountryProductPage.razor | 15 --- .../Pages/CatalogProductDetailPage.razor | 71 +++++++++++ ...r.cs => CatalogProductDetailPage.razor.cs} | 2 +- Wonky.Client/wwwroot/appsettings.json | 112 +++++++++--------- 4 files changed, 128 insertions(+), 72 deletions(-) delete mode 100644 Wonky.Client/Pages/CatalogCountryProductPage.razor create mode 100644 Wonky.Client/Pages/CatalogProductDetailPage.razor rename Wonky.Client/Pages/{CatalogCountryProductPage.razor.cs => CatalogProductDetailPage.razor.cs} (95%) diff --git a/Wonky.Client/Pages/CatalogCountryProductPage.razor b/Wonky.Client/Pages/CatalogCountryProductPage.razor deleted file mode 100644 index 5b68f11f..00000000 --- a/Wonky.Client/Pages/CatalogCountryProductPage.razor +++ /dev/null @@ -1,15 +0,0 @@ -@using Wonky.Client.Components -@using System.Text.Json -@page "/catalog/item/{SalesItemId}" - -

CatalogCountryProductPage

- -@if (!string.IsNullOrWhiteSpace(_item.Sku)) -{ - @JsonSerializer.Serialize(_item) -} - -@if (_working) -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/CatalogProductDetailPage.razor b/Wonky.Client/Pages/CatalogProductDetailPage.razor new file mode 100644 index 00000000..5a30638b --- /dev/null +++ b/Wonky.Client/Pages/CatalogProductDetailPage.razor @@ -0,0 +1,71 @@ +@using Wonky.Client.Components +@using System.Text.Json +@page "/catalog/item/{SalesItemId}" + + +@if (!string.IsNullOrWhiteSpace(_item.Sku)) +{ + Produkt Info @_item.Name +

Produkt Info @_item.Name

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ @_item.Name +
+ navn + + @_item.Name +
+ varenr + + @_item.Sku +
+ belgisk varenr + + @_item.VendorItemNo +
kort navn + @_item.ShortName +
udgået@_item.Discontinued
pakke størrelse@_item.BoxSize
dokumenter
+} + +@if (_working) +{ + +} diff --git a/Wonky.Client/Pages/CatalogCountryProductPage.razor.cs b/Wonky.Client/Pages/CatalogProductDetailPage.razor.cs similarity index 95% rename from Wonky.Client/Pages/CatalogCountryProductPage.razor.cs rename to Wonky.Client/Pages/CatalogProductDetailPage.razor.cs index 766902c3..f6f8b5ba 100644 --- a/Wonky.Client/Pages/CatalogCountryProductPage.razor.cs +++ b/Wonky.Client/Pages/CatalogProductDetailPage.razor.cs @@ -8,7 +8,7 @@ using Wonky.Entity.Views; namespace Wonky.Client.Pages; -public partial class CatalogCountryProductPage +public partial class CatalogProductDetailPage { // ############################################################## [Inject] public HttpInterceptorService Interceptor { get; set; } diff --git a/Wonky.Client/wwwroot/appsettings.json b/Wonky.Client/wwwroot/appsettings.json index 4a80d975..f0b67023 100644 --- a/Wonky.Client/wwwroot/appsettings.json +++ b/Wonky.Client/wwwroot/appsettings.json @@ -1,60 +1,60 @@ { - "appInfo": { - "name": "Wonky Online", - "version": "205.0", - "rc": true, - "sandBox": true, - "image": "grumpy-coder.png", - "sdk": "dotnet 7.0" + "appInfo": { + "name": "Wonky Online", + "version": "208.0", + "rc": true, + "sandBox": true, + "image": "grumpy-coder.png", + "sdk": "dotnet 7.0" + }, + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Debug", + "Microsoft": "Information" }, - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Debug", - "Microsoft": "Information" - }, - "Debug": { - "LogLevel": { - "Default": "Critical" - } - } - }, - "apiConfig": { - "assetUrl": "https://files.innotec.dk", - "baseUrl": "https://dev.innotec.dk", - "catalog": "api/v2/catalog/country", - "crmCustomers": "api/v2/crm/companies", - "crmReports": "api/v2/crm/advisors/reports", - "crmActivities": "api/v2/crm/advisors/activities", - "crmTasks": "api/v2/crm/advisors/tasks", - "officeBase": "api/v2/office", - "officeActivities": "api/v2/office/activities", - "officeAdvisors": "api/v2/office/users/advisors", - "officeCustomers": "api/v2/office/customers", - "officeReports": "api/v2/office/reports", - "officeUsers": "api/v2/office/users/admin", - "publicProducts": "api/v2/public/products", - "serviceAuth": "v2/token", - "serviceGlsId": "", - "serviceGlsTrack": "https://gls-group.eu/track/", - "serviceMail": "api/v2/services/sendmail", - "serviceSms": "api/v2/services/sms", - "serviceVatDk": "api/v2/services/virk", - "serviceVatEu": "api/v2/services/vies", - "serviceVatNo": "api/v2/services/brReg", - "serviceVatSe": "api/v2/services/allabolag", - "sync": "api/v2/sync", - "syncInvoice": "api/v2/sync/invoices", - "systemDocStringUrl": "api/v2/admin/doc", - "systemLabels": "api/v2/admin/doc/labels", - "systemTexts": "api/v2/admin/doc/texts", - "userInfoClient": "/api/v2/client/users", - "userInfoAuth": "api/v2/auth/userinfo", - "userManager": "api/v2/app/manage/users", - "userManagerSetPasswd": "api/v2/app/manage/passwd", - "userRoles": "api/v2/app/manage/roles", - "userSupport": "/api/v2/app/manage/support", - "warehouse": "api/v2/warehouse/packages", - "b2bCustomer": "api/v2/b2b" + "Debug": { + "LogLevel": { + "Default": "Critical" + } } + }, + "apiConfig": { + "assetUrl": "https://files.innotec.dk", + "baseUrl": "https://dev.innotec.dk", + "catalog": "api/v2/catalog/country", + "crmCustomers": "api/v2/crm/companies", + "crmReports": "api/v2/crm/advisors/reports", + "crmActivities": "api/v2/crm/advisors/activities", + "crmTasks": "api/v2/crm/advisors/tasks", + "officeBase": "api/v2/office", + "officeActivities": "api/v2/office/activities", + "officeAdvisors": "api/v2/office/users/advisors", + "officeCustomers": "api/v2/office/customers", + "officeReports": "api/v2/office/reports", + "officeUsers": "api/v2/office/users/admin", + "publicProducts": "api/v2/public/products", + "serviceAuth": "v2/token", + "serviceGlsId": "", + "serviceGlsTrack": "https://gls-group.eu/track/", + "serviceMail": "api/v2/services/sendmail", + "serviceSms": "api/v2/services/sms", + "serviceVatDk": "api/v2/services/virk", + "serviceVatEu": "api/v2/services/vies", + "serviceVatNo": "api/v2/services/brReg", + "serviceVatSe": "api/v2/services/allabolag", + "sync": "api/v2/sync", + "syncInvoice": "api/v2/sync/invoices", + "systemDocStringUrl": "api/v2/admin/doc", + "systemLabels": "api/v2/admin/doc/labels", + "systemTexts": "api/v2/admin/doc/texts", + "userInfoClient": "/api/v2/client/users", + "userInfoAuth": "api/v2/auth/userinfo", + "userManager": "api/v2/app/manage/users", + "userManagerSetPasswd": "api/v2/app/manage/passwd", + "userRoles": "api/v2/app/manage/roles", + "userSupport": "/api/v2/app/manage/support", + "warehouse": "api/v2/warehouse/packages", + "b2bCustomer": "api/v2/b2b" + } }