@streamscloud/embeddable 17.0.0-1775770367864 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,9 +7,10 @@ let data = $state.raw(null);
|
|
|
7
7
|
$effect(() => {
|
|
8
8
|
void handler;
|
|
9
9
|
untrack(() => {
|
|
10
|
-
|
|
11
|
-
data =
|
|
12
|
-
}
|
|
10
|
+
const load = async () => {
|
|
11
|
+
data = await handler.getPlaylist();
|
|
12
|
+
};
|
|
13
|
+
void load();
|
|
13
14
|
});
|
|
14
15
|
});
|
|
15
16
|
const currentPostIndex = $derived.by(() => {
|
|
@@ -33,7 +33,7 @@ const formatDate = (dateString) => {
|
|
|
33
33
|
style:height="{thumbnailHeight}px"
|
|
34
34
|
style:--_post-card--thumbnail-radius="{thumbnailRadius}px">
|
|
35
35
|
<Image src={post.thumbnailUrl} />
|
|
36
|
-
{#if post.durationSeconds
|
|
36
|
+
{#if post.durationSeconds !== null && post.durationSeconds !== undefined}
|
|
37
37
|
<div class="post-card__duration">{formatDuration(post.durationSeconds)}</div>
|
|
38
38
|
{/if}
|
|
39
39
|
</div>
|
|
@@ -10,9 +10,10 @@ $effect(() => {
|
|
|
10
10
|
const postId = currentPostId;
|
|
11
11
|
untrack(() => {
|
|
12
12
|
data = null;
|
|
13
|
-
|
|
14
|
-
data =
|
|
15
|
-
}
|
|
13
|
+
const load = async () => {
|
|
14
|
+
data = await handler.getRecommendations(postId);
|
|
15
|
+
};
|
|
16
|
+
void load();
|
|
16
17
|
});
|
|
17
18
|
});
|
|
18
19
|
</script>
|
|
@@ -42,7 +43,14 @@ $effect(() => {
|
|
|
42
43
|
<div class="recommended-tab__playlist-info">
|
|
43
44
|
<div class="recommended-tab__playlist-name">{playlist.name}</div>
|
|
44
45
|
<div class="recommended-tab__playlist-count">{localization.postsCount(playlist.postsCount)}</div>
|
|
45
|
-
<div
|
|
46
|
+
<div
|
|
47
|
+
class="recommended-tab__playlist-link"
|
|
48
|
+
onclick={(e: MouseEvent) => {
|
|
49
|
+
e.stopPropagation();
|
|
50
|
+
handler.onPlaylistShow?.(playlist.id);
|
|
51
|
+
}}
|
|
52
|
+
onkeydown={() => {}}
|
|
53
|
+
role="none">
|
|
46
54
|
{localization.showList}
|
|
47
55
|
</div>
|
|
48
56
|
</div>
|
|
@@ -117,6 +125,7 @@ $effect(() => {
|
|
|
117
125
|
background: white;
|
|
118
126
|
border-radius: 0.375rem;
|
|
119
127
|
overflow: hidden;
|
|
128
|
+
cursor: pointer;
|
|
120
129
|
}
|
|
121
130
|
.recommended-tab__playlist-thumbnail {
|
|
122
131
|
flex-shrink: 0;
|