itube-specs 0.0.465 → 0.0.467
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/components/ui/s-img.vue +1 -0
- package/composables/use-fetch-categories-by-letter.ts +2 -2
- package/composables/use-fetch-categories-group-by-letter.ts +2 -2
- package/composables/use-fetch-categories-related.ts +2 -2
- package/composables/use-fetch-channels-by-model.ts +2 -2
- package/composables/use-fetch-channels-by-name.ts +2 -2
- package/composables/use-fetch-channels-by-network-name.ts +2 -2
- package/composables/use-fetch-dictionaries-countries.ts +2 -2
- package/composables/use-fetch-dictionaries-genders.ts +2 -2
- package/composables/use-fetch-footer-categories.ts +2 -2
- package/composables/use-fetch-models-related.ts +2 -2
- package/composables/use-fetch-multi-suggest.ts +2 -2
- package/composables/use-fetch-playlists-get-videos-by-id.ts +2 -2
- package/composables/use-fetch-popular-tags-by-model-name.ts +2 -2
- package/composables/use-fetch-related-searches.ts +2 -2
- package/composables/use-fetch-top-chips-models.ts +2 -2
- package/composables/use-fetch-top-models.ts +2 -2
- package/composables/use-fetch-top-random-categories.ts +2 -2
- package/composables/use-fetch-video-referer-phrases.ts +2 -2
- package/package.json +1 -1
package/components/ui/s-img.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { ICategoryCard } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchCategoriesByLetter = (
|
|
4
|
+
export const useFetchCategoriesByLetter = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<Array<ICategoryCard>>
|
|
6
6
|
) => {
|
|
7
7
|
const key = EAsyncData.CategoriesByLetter;
|
|
@@ -9,7 +9,7 @@ export const useFetchCategoriesByLetter = (
|
|
|
9
9
|
const slug = useSlug();
|
|
10
10
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
11
11
|
|
|
12
|
-
const { data, status, error } = useAsyncData<Array<ICategoryCard>>(
|
|
12
|
+
const { data, status, error } = await useAsyncData<Array<ICategoryCard>>(
|
|
13
13
|
key,
|
|
14
14
|
() => useApiFetcher<Array<ICategoryCard>>(
|
|
15
15
|
stateKey.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { ICategoryCard, IChipsItem } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchCategoriesGroupByLetter = (
|
|
4
|
+
export const useFetchCategoriesGroupByLetter = async (
|
|
5
5
|
key: EAsyncData,
|
|
6
6
|
apiMethod: (...args: any[]) => Promise<Record<string, Array<ICategoryCard>>> | Promise<IChipsItem[]>
|
|
7
7
|
) => {
|
|
8
8
|
const lang = useLang() as ELanguage;
|
|
9
9
|
const stateKey = computed(() => `data-${key}-${lang}`);
|
|
10
10
|
|
|
11
|
-
const { data, error, refresh, status } = useAsyncData<Record<string, Array<ICategoryCard>> | IChipsItem[]>(
|
|
11
|
+
const { data, error, refresh, status } = await useAsyncData<Record<string, Array<ICategoryCard>> | IChipsItem[]>(
|
|
12
12
|
key,
|
|
13
13
|
() => useApiFetcher<Record<string, Array<ICategoryCard>> | IChipsItem[]>(
|
|
14
14
|
stateKey.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { IRelatedPhrases } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchCategoriesRelated = (
|
|
4
|
+
export const useFetchCategoriesRelated = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<IRelatedPhrases>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
@@ -9,7 +9,7 @@ export const useFetchCategoriesRelated = (
|
|
|
9
9
|
const key = EAsyncData.CategoriesRelated;
|
|
10
10
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
11
11
|
|
|
12
|
-
const { data, status, error } = useAsyncData<IRelatedPhrases>(
|
|
12
|
+
const { data, status, error } = await useAsyncData<IRelatedPhrases>(
|
|
13
13
|
key,
|
|
14
14
|
() => useApiFetcher<IRelatedPhrases>(
|
|
15
15
|
stateKey.value,
|
|
@@ -2,7 +2,7 @@ import { useRoute } from 'vue-router';
|
|
|
2
2
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
3
3
|
import type { IChannelCard, PaginatedResponse } from '../types';
|
|
4
4
|
|
|
5
|
-
export const useFetchChannelsByModel = (
|
|
5
|
+
export const useFetchChannelsByModel = async (
|
|
6
6
|
apiMethod: (...args: any[]) => Promise<PaginatedResponse<IChannelCard>>
|
|
7
7
|
) => {
|
|
8
8
|
const lang = useLang() as ELanguage;
|
|
@@ -11,7 +11,7 @@ export const useFetchChannelsByModel = (
|
|
|
11
11
|
const key = EAsyncData.ChannelsByModel;
|
|
12
12
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
13
13
|
|
|
14
|
-
const { data, status, error } = useAsyncData<PaginatedResponse<IChannelCard>>(
|
|
14
|
+
const { data, status, error } = await useAsyncData<PaginatedResponse<IChannelCard>>(
|
|
15
15
|
key,
|
|
16
16
|
() => useApiFetcher<PaginatedResponse<IChannelCard>>(
|
|
17
17
|
stateKey.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { ICardInfo } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchChannelsByName = (
|
|
4
|
+
export const useFetchChannelsByName = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<ICardInfo>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
@@ -9,7 +9,7 @@ export const useFetchChannelsByName = (
|
|
|
9
9
|
const key = EAsyncData.ChannelByName;
|
|
10
10
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
11
11
|
|
|
12
|
-
const { data, status, error } = useAsyncData<ICardInfo>(
|
|
12
|
+
const { data, status, error } = await useAsyncData<ICardInfo>(
|
|
13
13
|
key,
|
|
14
14
|
() => useApiFetcher<ICardInfo>(
|
|
15
15
|
stateKey.value,
|
|
@@ -2,7 +2,7 @@ import { useRoute } from 'vue-router';
|
|
|
2
2
|
import { EAsyncData, ELanguage, isMobileDevice } from '../runtime';
|
|
3
3
|
import type { IChannelCard, PaginatedResponse } from '../types';
|
|
4
4
|
|
|
5
|
-
export const useFetchChannelsByNetworkName = (
|
|
5
|
+
export const useFetchChannelsByNetworkName = async (
|
|
6
6
|
apiMethod: (...args: any[]) => Promise<PaginatedResponse<IChannelCard>>
|
|
7
7
|
) => {
|
|
8
8
|
const lang = useLang() as ELanguage;
|
|
@@ -14,7 +14,7 @@ export const useFetchChannelsByNetworkName = (
|
|
|
14
14
|
const key = EAsyncData.ChannelsByNetworkName;
|
|
15
15
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
16
16
|
|
|
17
|
-
const { data, status, error } = useAsyncData<PaginatedResponse<IChannelCard>>(
|
|
17
|
+
const { data, status, error } = await useAsyncData<PaginatedResponse<IChannelCard>>(
|
|
18
18
|
key,
|
|
19
19
|
() => useApiFetcher<PaginatedResponse<IChannelCard>>(
|
|
20
20
|
stateKey.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ICountries } from '../types';
|
|
2
2
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
3
3
|
|
|
4
|
-
export const useFetchDictionariesCountries = (
|
|
4
|
+
export const useFetchDictionariesCountries = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<ICountries>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
8
8
|
const key = EAsyncData.Countries;
|
|
9
9
|
const stateKey = computed(() => `data-${key}-${lang}`);
|
|
10
10
|
|
|
11
|
-
const { data, status, error } = useAsyncData<ICountries>(
|
|
11
|
+
const { data, status, error } = await useAsyncData<ICountries>(
|
|
12
12
|
key,
|
|
13
13
|
() => useApiFetcher<ICountries>(
|
|
14
14
|
stateKey.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IGenders } from '../types';
|
|
2
2
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
3
3
|
|
|
4
|
-
export const useFetchDictionariesGenders = (
|
|
4
|
+
export const useFetchDictionariesGenders = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<IGenders>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
8
8
|
const key = EAsyncData.Genders;
|
|
9
9
|
const stateKey = computed(() => `data-${key}-${lang}`);
|
|
10
10
|
|
|
11
|
-
const { data, status, error } = useAsyncData<IGenders>(
|
|
11
|
+
const { data, status, error } = await useAsyncData<IGenders>(
|
|
12
12
|
key,
|
|
13
13
|
() => useApiFetcher<IGenders>(
|
|
14
14
|
stateKey.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { IChipsItem } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchFooterCategories = (
|
|
4
|
+
export const useFetchFooterCategories = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<IChipsItem[]>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
8
8
|
const key = EAsyncData.CategoriesTopRandomFooter;
|
|
9
9
|
const stateKey = computed(() => `data-${key}-${lang}`);
|
|
10
10
|
|
|
11
|
-
const { data, status, error } = useAsyncData<IChipsItem[]>(
|
|
11
|
+
const { data, status, error } = await useAsyncData<IChipsItem[]>(
|
|
12
12
|
key,
|
|
13
13
|
() => useApiFetcher<IChipsItem[]>(
|
|
14
14
|
stateKey.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { IModelCard, PaginatedResponse } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchRelatedModels = (
|
|
4
|
+
export const useFetchRelatedModels = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>,
|
|
6
6
|
limit: number,
|
|
7
7
|
cacheId: string
|
|
@@ -11,7 +11,7 @@ export const useFetchRelatedModels = (
|
|
|
11
11
|
const key = EAsyncData.TopModelsMore;
|
|
12
12
|
const stateKey = computed(() => `data-${key}-${slug.value}-${cacheId}-${lang}`);
|
|
13
13
|
|
|
14
|
-
const { data, status, refresh } = useAsyncData<PaginatedResponse<IModelCard>>(
|
|
14
|
+
const { data, status, refresh } = await useAsyncData<PaginatedResponse<IModelCard>>(
|
|
15
15
|
stateKey.value,
|
|
16
16
|
() => useApiFetcher<PaginatedResponse<IModelCard>>(
|
|
17
17
|
stateKey.value,
|
|
@@ -3,7 +3,7 @@ import type { IMultiSuggest } from '../types';
|
|
|
3
3
|
import { ELanguage } from '../runtime';
|
|
4
4
|
import { useRoute } from 'vue-router';
|
|
5
5
|
|
|
6
|
-
export function useFetchMultiSuggest(
|
|
6
|
+
export async function useFetchMultiSuggest(
|
|
7
7
|
apiMethod: (...args: any[]) => Promise<IMultiSuggest | null>,
|
|
8
8
|
phrasesLimit: number,
|
|
9
9
|
modelsLimit: number,
|
|
@@ -17,7 +17,7 @@ export function useFetchMultiSuggest(
|
|
|
17
17
|
const key = watchRoute ? EAsyncData.MultiSuggestRouteSearch : EAsyncData.MultiSuggestSearch;
|
|
18
18
|
const stateKey = computed(() => `data-${key}-${watchRoute ? slug.value : searchValue.value}-${lang}`);
|
|
19
19
|
|
|
20
|
-
const { data, status } = useAsyncData<IMultiSuggest | null>(
|
|
20
|
+
const { data, status } = await useAsyncData<IMultiSuggest | null>(
|
|
21
21
|
key,
|
|
22
22
|
() => useApiFetcher<IMultiSuggest | null>(
|
|
23
23
|
stateKey.value,
|
|
@@ -2,7 +2,7 @@ import { EAsyncData, isMobileDevice } from '../runtime';
|
|
|
2
2
|
import type { IVideoCard, PaginatedResponse } from '../types';
|
|
3
3
|
import { useRoute } from 'vue-router';
|
|
4
4
|
|
|
5
|
-
export const useFetchPlaylistsGetVideosById = (
|
|
5
|
+
export const useFetchPlaylistsGetVideosById = async (
|
|
6
6
|
apiMethod: (...args: any[]) => Promise<PaginatedResponse<IVideoCard>>,
|
|
7
7
|
isListPage?: boolean
|
|
8
8
|
) => {
|
|
@@ -14,7 +14,7 @@ export const useFetchPlaylistsGetVideosById = (
|
|
|
14
14
|
const key = EAsyncData.GetPlaylistsVideo;
|
|
15
15
|
const stateKey = computed(() => `data-${key}-${id.value}`);
|
|
16
16
|
|
|
17
|
-
const { data, status, error } = useAsyncData<PaginatedResponse<IVideoCard>>(
|
|
17
|
+
const { data, status, error } = await useAsyncData<PaginatedResponse<IVideoCard>>(
|
|
18
18
|
key,
|
|
19
19
|
() => useApiFetcherNoCache<PaginatedResponse<IVideoCard>>(
|
|
20
20
|
stateKey.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { IPopularTagsModel } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchPopularTagsByModelName = (
|
|
4
|
+
export const useFetchPopularTagsByModelName = async (
|
|
5
5
|
apiMethod: (...args: any[]) => Promise<IPopularTagsModel[]>
|
|
6
6
|
) => {
|
|
7
7
|
const lang = useLang() as ELanguage;
|
|
@@ -9,7 +9,7 @@ export const useFetchPopularTagsByModelName = (
|
|
|
9
9
|
const key = EAsyncData.PopularTagsByModel;
|
|
10
10
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
11
11
|
|
|
12
|
-
const { data, status, error } = useAsyncData<IPopularTagsModel[]>(
|
|
12
|
+
const { data, status, error } = await useAsyncData<IPopularTagsModel[]>(
|
|
13
13
|
key,
|
|
14
14
|
() => useApiFetcher<IPopularTagsModel[]>(
|
|
15
15
|
stateKey.value,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EAsyncData } from '../runtime';
|
|
2
2
|
import { ELanguage } from '../runtime';
|
|
3
3
|
|
|
4
|
-
export const useFetchRelatedSearch = (apiMethod: (...args: any[]) => Promise<Array<string>>) => {
|
|
4
|
+
export const useFetchRelatedSearch = async (apiMethod: (...args: any[]) => Promise<Array<string>>) => {
|
|
5
5
|
const lang = useLang() as ELanguage;
|
|
6
6
|
const key = EAsyncData.RelatedSearch;
|
|
7
7
|
|
|
8
|
-
const { data, status, error } = useAsyncData<Array<string>>(
|
|
8
|
+
const { data, status, error } = await useAsyncData<Array<string>>(
|
|
9
9
|
key,
|
|
10
10
|
() => useApiFetcher<Array<string>>(
|
|
11
11
|
null,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ELanguage, EAsyncData } from '../runtime';
|
|
2
2
|
import type { IModelTag } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchTopChipsModels = (apiMethod: (...args: any[]) => Promise<IModelTag[]>, cacheId: string) => {
|
|
4
|
+
export const useFetchTopChipsModels = async (apiMethod: (...args: any[]) => Promise<IModelTag[]>, cacheId: string) => {
|
|
5
5
|
const lang = useLang() as ELanguage;
|
|
6
6
|
const key = EAsyncData.TopChipsModels;
|
|
7
7
|
const stateKey = computed(() => `data-${key}-${cacheId}-${lang}`);
|
|
8
8
|
|
|
9
|
-
const { data: topChipsModels, refresh, status } = useAsyncData<IModelTag[]>(
|
|
9
|
+
const { data: topChipsModels, refresh, status } = await useAsyncData<IModelTag[]>(
|
|
10
10
|
stateKey.value,
|
|
11
11
|
() => useApiFetcher<IModelTag[]>(
|
|
12
12
|
stateKey.value,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
import type { IModelCard, PaginatedResponse } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchTopModels = (apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>, limit: number, eName: EAsyncData | string, cacheId: string) => {
|
|
4
|
+
export const useFetchTopModels = async (apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>, limit: number, eName: EAsyncData | string, cacheId: string) => {
|
|
5
5
|
const lang = useLang() as ELanguage;
|
|
6
6
|
const key = eName;
|
|
7
7
|
const stateKey = computed(() => `data-${key}-${cacheId}-${lang}`);
|
|
8
8
|
|
|
9
|
-
const { data, status, refresh } = useAsyncData(
|
|
9
|
+
const { data, status, refresh } = await useAsyncData(
|
|
10
10
|
stateKey.value,
|
|
11
11
|
() => useApiFetcher<PaginatedResponse<IModelCard>>(
|
|
12
12
|
stateKey.value,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ELanguage, EAsyncData } from '../runtime';
|
|
2
2
|
import type { IChipsItem } from '../types';
|
|
3
3
|
|
|
4
|
-
export const useFetchTopRandomCategories = (apiMethod: (...args: any[]) => Promise<Array<IChipsItem>>, cacheId: string) => {
|
|
4
|
+
export const useFetchTopRandomCategories = async (apiMethod: (...args: any[]) => Promise<Array<IChipsItem>>, cacheId: string) => {
|
|
5
5
|
const lang = useLang() as ELanguage;
|
|
6
6
|
const key = EAsyncData.CategoriesTopRandom;
|
|
7
7
|
const stateKey = computed(() => `data-${key}-${cacheId}-${lang}`);
|
|
8
8
|
|
|
9
|
-
const { data: topRandomCategories, refresh, error } = useAsyncData<Array<IChipsItem>>(
|
|
9
|
+
const { data: topRandomCategories, refresh, error } = await useAsyncData<Array<IChipsItem>>(
|
|
10
10
|
stateKey.value,
|
|
11
11
|
() => useApiFetcher<Array<IChipsItem>>(
|
|
12
12
|
stateKey.value,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EAsyncData, ELanguage } from '../runtime';
|
|
2
2
|
|
|
3
|
-
export const useFetchVideoRefererPhrases = (
|
|
3
|
+
export const useFetchVideoRefererPhrases = async (
|
|
4
4
|
apiMethod: (...args: any[]) => Promise<string[]>) => {
|
|
5
5
|
const lang = useLang() as ELanguage;
|
|
6
6
|
const slug = useSlug();
|
|
7
7
|
const key = EAsyncData.RefererPhrases;
|
|
8
8
|
const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
|
|
9
9
|
|
|
10
|
-
const { data, status, error } = useAsyncData<string[]>(
|
|
10
|
+
const { data, status, error } = await useAsyncData<string[]>(
|
|
11
11
|
key,
|
|
12
12
|
() => useApiFetcher<string[]>(
|
|
13
13
|
stateKey.value,
|