itube-specs 0.0.346 → 0.0.348

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.346",
4
+ "version": "0.0.348",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -14,7 +14,7 @@ export const cleanVideoData = (data: IRawVideoData): IVideoData => ({
14
14
  categories: data.categories || '',
15
15
  actions: data.actions || null,
16
16
  channelName: data.channel?.name || '',
17
- channelAvatar: data.channel?.avatar || '',
17
+ channelAvatar: data.channel?.avatar_url || '',
18
18
  url: data.url || '',
19
19
  previewUrl: data.preview_url || '',
20
20
  thumbUrl: data.thumb_urls?.webp?.['480x270'] || '',
@@ -35,7 +35,7 @@ export interface IRawVideoData {
35
35
  custom_thumb_md5: string; // unused
36
36
  channel: {
37
37
  name: string
38
- avatar: string
38
+ avatar_url: string
39
39
  };
40
40
  uploader: Record<string, never>; // unused
41
41
  is_deleted: boolean;
@@ -1,28 +0,0 @@
1
- <template>
2
- <NuxtLink
3
- class="s-model-tag"
4
- :to="generateLink(`/models/${convertString().toSlug(card.title)}`)"
5
- >
6
- <SImg
7
- class="s-model-tag__img"
8
- sizes="20px sm:24px"
9
- :src="card.primaryImageUrl || placeholder"
10
- width="20"
11
- height="20"
12
- :alt="card.title"
13
- />
14
- {{ card.title }}
15
- </NuxtLink>
16
- </template>
17
-
18
- <script setup lang="ts">
19
- import type { IModelTag } from '../../types';
20
- import { convertString } from '../../runtime';
21
-
22
- defineProps<{
23
- card: IModelTag
24
- placeholder: string
25
- }>()
26
-
27
- const { generateLink } = useGenerateLink();
28
- </script>