itube-specs 0.0.344 → 0.0.346

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,24 @@
1
+ <template>
2
+ <NuxtLink
3
+ class="s-chips-image"
4
+ :to="link"
5
+ >
6
+ <SImg
7
+ class="s-chips-image__img"
8
+ sizes="20px sm:24px"
9
+ :src="image"
10
+ width="20"
11
+ height="20"
12
+ :alt="title"
13
+ />
14
+ {{ title }}
15
+ </NuxtLink>
16
+ </template>
17
+
18
+ <script setup lang="ts">
19
+ defineProps<{
20
+ image: string
21
+ title: string
22
+ link: string
23
+ }>()
24
+ </script>
@@ -5,7 +5,7 @@ export const useFetchChannelsByName = (
5
5
  apiMethod: (...args: any[]) => Promise<ICardInfo>
6
6
  ) => {
7
7
  const lang = useI18n().locale.value as ELanguage;
8
- const slug = useSlug();
8
+ const slug = useSlug('channel');
9
9
  const key = EAsyncData.ChannelByName;
10
10
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
11
11
 
@@ -7,7 +7,7 @@ export const useFetchChannelsByNetworkName = (
7
7
  ) => {
8
8
  const lang = useI18n().locale.value as ELanguage;
9
9
  const route = useRoute();
10
- const slug = useSlug();
10
+ const slug = useSlug('channel');
11
11
  const key = EAsyncData.ChannelsByNetworkName;
12
12
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
13
13
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.344",
4
+ "version": "0.0.346",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {