From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001 From: rxliuli Date: Tue, 4 Nov 2025 05:03:50 +0800 Subject: init commit --- src/components/jet/item/ProductBadgeItem.svelte | 188 ++++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 src/components/jet/item/ProductBadgeItem.svelte (limited to 'src/components/jet/item/ProductBadgeItem.svelte') diff --git a/src/components/jet/item/ProductBadgeItem.svelte b/src/components/jet/item/ProductBadgeItem.svelte new file mode 100644 index 0000000..fa32e6f --- /dev/null +++ b/src/components/jet/item/ProductBadgeItem.svelte @@ -0,0 +1,188 @@ + + + +
+
+
+ + {item.heading} + +
+ +
+ {#if isContentRatingBadge(item)} + + {:else if isParagraph} + {content.paragraphText} + {:else if isRating && !content.rating} + + {content.ratingFormatted} + + {:else if isEditorsChoice} + + + + + + {item.accessibilityTitle} + + + + + + {:else if artwork && hasImageArtwork} + + {:else if artwork && isSystemImageArtwork(artwork)} + + {:else if isController} + + {/if} + + {#if isRating && content.rating} + + + {:else} + {item.caption} + {/if} +
+
+
+
+ + -- cgit v1.2.3