itube-specs 0.0.680 → 0.0.682

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.
@@ -1,23 +1,22 @@
1
1
  <template>
2
- <NuxtImg
3
- v-if="!isStaticImg"
4
- v-bind="{
5
- ...$attrs,
6
- fetchpriority: priority ? 'high' : undefined
7
- }"
8
- :src="src"
9
- :width="width"
10
- :height="height"
11
- :sizes="sizes"
12
- :alt="alt"
13
- :loading="loading"
14
- :fit="fit"
15
- densities="x1"
16
- decoding="async"
17
- @error="emit('error', $event)"
18
- />
2
+ <!-- <NuxtImg-->
3
+ <!-- v-if="!isStaticImg"-->
4
+ <!-- v-bind="{-->
5
+ <!-- ...$attrs,-->
6
+ <!-- fetchpriority: priority ? 'high' : undefined-->
7
+ <!-- }"-->
8
+ <!-- :src="src"-->
9
+ <!-- :width="width"-->
10
+ <!-- :height="height"-->
11
+ <!-- :sizes="sizes"-->
12
+ <!-- :alt="alt"-->
13
+ <!-- :loading="loading"-->
14
+ <!-- :fit="fit"-->
15
+ <!-- densities="x1"-->
16
+ <!-- decoding="async"-->
17
+ <!-- @error="emit('error', $event)"-->
18
+ <!-- />-->
19
19
  <img
20
- v-else
21
20
  v-bind="$attrs"
22
21
  :src="src"
23
22
  :loading="loading"
@@ -47,7 +46,7 @@ const props = withDefaults(defineProps<{
47
46
  fit: 'cover',
48
47
  })
49
48
 
50
- const isStaticImg = computed(() => String(props.src).startsWith('/img'));
49
+ // const isStaticImg = computed(() => String(props.src).startsWith('/img'));
51
50
 
52
51
  const emit = defineEmits<{
53
52
  (e: 'error', event: Event): void
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.680",
4
+ "version": "0.0.682",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -15,6 +15,7 @@ export const cleanVideoCard = (card: IRawVideoCard): IVideoCard => ({
15
15
  url: card.url || '',
16
16
  previewUrl: card.preview_url || '',
17
17
  thumbUrl: card.thumb_urls?.webp?.[ThumbSize.Big] || '',
18
+ thumbUrls: card.thumb_urls || {},
18
19
  md5: card.md5 || '',
19
20
  thumbNum: card.thumb_number || 0,
20
21
  models: card.models?.map(item => item.title) || [],
@@ -1,3 +1,5 @@
1
+ import type { IThumbUrls } from '~/types/thumbs-urls';
2
+
1
3
  export interface IVideoCard {
2
4
  guid: string;
3
5
  quality?: string;
@@ -16,4 +18,5 @@ export interface IVideoCard {
16
18
  md5?: string;
17
19
  thumbNum?: number;
18
20
  models?: string[];
21
+ thumbUrls?: IThumbUrls;
19
22
  }