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/shelf/ProductMediaShelf.svelte | 269 ++++++++++++++++++++++ 1 file changed, 269 insertions(+) create mode 100644 src/components/jet/shelf/ProductMediaShelf.svelte (limited to 'src/components/jet/shelf/ProductMediaShelf.svelte') diff --git a/src/components/jet/shelf/ProductMediaShelf.svelte b/src/components/jet/shelf/ProductMediaShelf.svelte new file mode 100644 index 0000000..f57fee7 --- /dev/null +++ b/src/components/jet/shelf/ProductMediaShelf.svelte @@ -0,0 +1,269 @@ + + + + + + {#if appPlatform === 'vision'} + + + + {:else if appPlatform === 'phone' || appPlatform === 'messages'} + + + + {:else if appPlatform === 'pad'} + + + + {:else if appPlatform === 'mac'} + + + + {:else if appPlatform === 'tv'} + + + + {:else if appPlatform === 'watch'} + + + + {:else} + + + + {/if} + + {#if appPlatform && shouldShowPlatform} +
+ +
+ {$i18n.t(platformToDescriptionMap[appPlatform])} +
+
+ {/if} +
+ +{#if shelf.expandedMedia && allPlatforms && allPlatforms.length > 1} +
+ {#if !shouldDisplayExpandedMedia} + + {/if} + {#if shouldDisplayExpandedMedia} +
+ {#each shelf.expandedMedia as expandedMediaShelf} + + {/each} +
+ {/if} +
+{/if} + +{#if !isExpandedMedia} +
+{/if} + + -- cgit v1.2.3