Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mod-catalog",
"version": "0.3.0",
"version": "0.4.0",
"type": "module",
"private": true,
"scripts": {
Expand Down
11 changes: 2 additions & 9 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ onMounted(async () => {
});

function handleRedirectPlayer() {
// Usa o vídeo do hero (id: '1')
navigateToPlayerByVideoId('1');
}
</script>
Expand Down Expand Up @@ -87,14 +86,8 @@ function handleRedirectPlayer() {
</div>
</section>
<template v-if="!loading && catalog">
<VideoCarousel
v-for="carousel in catalog.carousels"
:key="carousel.id"
class="mt-4"
:title="carousel.title"
:videos="carousel.videos"
@select="openDetails"
/>
<VideoCarousel v-for="carousel in catalog.carousels" :key="carousel.id" class="mt-4" :title="carousel.title"
:videos="carousel.videos" @select="openDetails" />
</template>
<template v-else>
<VideoCarousel v-for="i in 3" :key="i" class="mt-4" title="" :videos="[]" :loading="true" />
Expand Down
2 changes: 1 addition & 1 deletion src/catalogData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type CatalogVideo = {
technologies?: string[];
learnings?: string[];
relatedIds?: string[];
manifestUrl?: string; // URL do manifest.remote.json para buscar thumbnail e duration real
manifestUrl?: string;
};

export type CatalogCarousel = {
Expand Down