itube-specs 0.0.677 → 0.0.679

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.
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div class="s-section-title">
3
+ <h1 v-if="titleTag === 'h1'" class="s-section-title__title _title">{{ title }}</h1>
4
+ <h2 v-else-if="titleTag === 'h2'" class="s-section-title__title _title">{{ title }}</h2>
5
+ <h3 v-else-if="titleTag === 'h3'" class="s-section-title__title _title">{{ title }}</h3>
6
+ <SCount
7
+ v-if="count"
8
+ class="s-section-title__count"
9
+ :icon="icon"
10
+ >{{ count }}</SCount>
11
+ </div>
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ withDefaults(defineProps<{
16
+ count?: string | number
17
+ titleTag?: string
18
+ title: string
19
+ icon?: string
20
+ }>(), {
21
+ titleTag: 'h1'
22
+ })
23
+ </script>
24
+
25
+ <style scoped lang="scss">
26
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.677",
4
+ "version": "0.0.679",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -9,4 +9,5 @@ export const cleanModelInfo = (card: IRawModelInfo): ICardInfo => ({
9
9
  img: card.video_thumb_urls?.webp?.[ThumbSize.Big] || '',
10
10
  parameters: card.parameters || '',
11
11
  fullDescription: card.bio || '',
12
+ relatedModels: card.related || [],
12
13
  })
@@ -21,6 +21,7 @@ export interface ICardInfo {
21
21
  [key: string]: string | undefined;
22
22
  };
23
23
  parameters?: IParameterModel[]
24
+ relatedModels?: string[]
24
25
 
25
26
  // Fields specific to Category
26
27
  related?: IChipsItem[]
@@ -32,5 +32,6 @@ export interface IRawModelInfo {
32
32
  rank: number;
33
33
  number_of_videos_in_recent_days: number;
34
34
  video_thumb_urls: IThumbUrls;
35
- parameters: IParameterModel[]
35
+ parameters: IParameterModel[];
36
+ related: string[]
36
37
  }
@@ -1,26 +0,0 @@
1
- <template>
2
- <div class="s-videos-title">
3
- <h1 v-if="titleTag === 'h1'" class="s-videos-title__title _title" v-html="title"/>
4
- <h2 v-else-if="titleTag === 'h2'" class="s-videos-title__title _title" v-html="title"/>
5
- <h3 v-else-if="titleTag === 'h3'" class="s-videos-title__title _title" v-html="title"/>
6
- <SCount
7
- v-if="count"
8
- class="s-videos-title__count"
9
- :icon="icon"
10
- >{{ count }}</SCount>
11
- </div>
12
- </template>
13
-
14
- <script setup lang="ts">
15
- withDefaults(defineProps<{
16
- count?: string | number
17
- titleTag?: string
18
- title: string
19
- icon?: string
20
- }>(), {
21
- titleTag: 'h1'
22
- })
23
- </script>
24
-
25
- <style scoped lang="scss">
26
- </style>