Updated CI for Blazor WebAssembly. Added styles for product cards.
All checks were successful
ci / build-test (push) Successful in 2m16s
ci / publish-image (push) Has been skipped

This commit is contained in:
2025-11-15 02:34:15 -05:00
parent 76284f2fab
commit 634050c06f
13 changed files with 289 additions and 94 deletions

View File

@@ -41,19 +41,15 @@ public static class ImageUrlProvider
var imageUrlTemplate = "//img.dlsite.jp/[folder]/images2/[imageType1]/[imageWorkType]/[fullRoundedProductId]/[productId][imageType2]_img_[imageSize].jpg";
var productIdWithoutPrefixString = productId.Substring(2);
string productIdWithoutPrefixString = productId.Substring(2);
int productIdWithoutPrefix = Convert.ToInt32(productId.Substring(2));
string productIdPrefix = productId.Substring(0, 2);
double something = (double)((productIdWithoutPrefix / 1000) * 1000);
int roundedProductId = (int)Math.Round(Math.Ceiling((double)productIdWithoutPrefix / 1000) * 1000);
//string actualRoundedProductId = ("000000" + roundedProductId.ToString()).Substring(roundedProductId.ToString().Length);
//string fullRoundedProductId = productIdPrefix + actualRoundedProductId;
var productIdWithPrefixStringLength = productIdWithoutPrefixString.Length;
var zeroPadLength = productIdWithPrefixStringLength - roundedProductId.ToString().Length;
int productIdWithPrefixStringLength = productIdWithoutPrefixString.Length;
int zeroPadLength = productIdWithPrefixStringLength - roundedProductId.ToString().Length;
var fullRoundedProductId = productIdPrefix.PadRight(productIdPrefix.Length + zeroPadLength, '0') + roundedProductId;