itube-specs 0.0.764 → 0.0.766

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.
Files changed (100) hide show
  1. package/composables/{use-fetch-categories-by-letter.ts → fetch/use-fetch-categories-by-letter.ts} +5 -5
  2. package/composables/{use-fetch-categories-by-name.ts → fetch/use-fetch-categories-by-name.ts} +5 -5
  3. package/composables/{use-fetch-categories-by-phrase.ts → fetch/use-fetch-categories-by-phrase.ts} +5 -5
  4. package/composables/{use-fetch-categories-group-by-letter.ts → fetch/use-fetch-categories-group-by-letter.ts} +4 -4
  5. package/composables/{use-fetch-categories-related.ts → fetch/use-fetch-categories-related.ts} +5 -5
  6. package/composables/{use-fetch-channels-by-model.ts → fetch/use-fetch-channels-by-model.ts} +5 -5
  7. package/composables/{use-fetch-channels-by-name.ts → fetch/use-fetch-channels-by-name.ts} +5 -5
  8. package/composables/{use-fetch-channels-by-network-name.ts → fetch/use-fetch-channels-by-network-name.ts} +5 -5
  9. package/composables/{use-fetch-channels.ts → fetch/use-fetch-channels.ts} +6 -6
  10. package/composables/{use-fetch-dictionaries-countries.ts → fetch/use-fetch-dictionaries-countries.ts} +5 -5
  11. package/composables/{use-fetch-dictionaries-genders.ts → fetch/use-fetch-dictionaries-genders.ts} +5 -5
  12. package/composables/{use-fetch-footer-categories.ts → fetch/use-fetch-footer-categories.ts} +5 -5
  13. package/composables/{use-fetch-groups-categories-lazy.ts → fetch/use-fetch-groups-categories-lazy.ts} +3 -3
  14. package/composables/{use-fetch-groups-categories.ts → fetch/use-fetch-groups-categories.ts} +5 -5
  15. package/composables/{use-fetch-model-by-name.ts → fetch/use-fetch-model-by-name.ts} +5 -5
  16. package/composables/{use-fetch-models-by-category.ts → fetch/use-fetch-models-by-category.ts} +5 -5
  17. package/composables/{use-fetch-models-by-channel.ts → fetch/use-fetch-models-by-channel.ts} +5 -5
  18. package/composables/{use-fetch-models-by-letter.ts → fetch/use-fetch-models-by-letter.ts} +6 -6
  19. package/composables/{use-fetch-models-by-phrases.ts → fetch/use-fetch-models-by-phrases.ts} +5 -5
  20. package/composables/{use-fetch-models-by-tag.ts → fetch/use-fetch-models-by-tag.ts} +5 -5
  21. package/composables/{use-fetch-models-related.ts → fetch/use-fetch-models-related.ts} +5 -5
  22. package/composables/{use-fetch-models.ts → fetch/use-fetch-models.ts} +6 -6
  23. package/composables/{use-fetch-multi-suggest.ts → fetch/use-fetch-multi-suggest.ts} +5 -5
  24. package/composables/{use-fetch-playlists-by-id.ts → fetch/use-fetch-playlists-by-id.ts} +4 -4
  25. package/composables/{use-fetch-playlists-by-niche.ts → fetch/use-fetch-playlists-by-niche.ts} +6 -6
  26. package/composables/{use-fetch-playlists-get-videos-by-id.ts → fetch/use-fetch-playlists-get-videos-by-id.ts} +4 -4
  27. package/composables/{use-fetch-popular-tags-by-channel-name.ts → fetch/use-fetch-popular-tags-by-channel-name.ts} +5 -5
  28. package/composables/{use-fetch-popular-tags-by-model-name.ts → fetch/use-fetch-popular-tags-by-model-name.ts} +5 -5
  29. package/composables/{use-fetch-related-searches.ts → fetch/use-fetch-related-searches.ts} +4 -4
  30. package/composables/{use-fetch-related-videos.ts → fetch/use-fetch-related-videos.ts} +5 -5
  31. package/composables/{use-fetch-top-chips-models.ts → fetch/use-fetch-top-chips-models.ts} +5 -5
  32. package/composables/{use-fetch-top-models.ts → fetch/use-fetch-top-models.ts} +4 -4
  33. package/composables/{use-fetch-top-random-categories.ts → fetch/use-fetch-top-random-categories.ts} +5 -5
  34. package/composables/{use-fetch-top-random-full.ts → fetch/use-fetch-top-random-full.ts} +6 -6
  35. package/composables/{use-fetch-video-referer-phrases.ts → fetch/use-fetch-video-referer-phrases.ts} +4 -4
  36. package/composables/{use-fetch-video.ts → fetch/use-fetch-video.ts} +5 -5
  37. package/composables/{use-fetch-videos-by-categories.ts → fetch/use-fetch-videos-by-categories.ts} +6 -6
  38. package/composables/{use-fetch-videos-by-channel.ts → fetch/use-fetch-videos-by-channel.ts} +6 -6
  39. package/composables/{use-fetch-videos-by-model-and-channel.ts → fetch/use-fetch-videos-by-model-and-channel.ts} +6 -6
  40. package/composables/{use-fetch-videos-by-model-and-tag.ts → fetch/use-fetch-videos-by-model-and-tag.ts} +6 -6
  41. package/composables/{use-fetch-videos-by-model.ts → fetch/use-fetch-videos-by-model.ts} +6 -6
  42. package/composables/{use-fetch-videos-by-tag.ts → fetch/use-fetch-videos-by-tag.ts} +6 -6
  43. package/composables/{use-fetch-videos-search-by-niche.ts → fetch/use-fetch-videos-search-by-niche.ts} +5 -5
  44. package/composables/{use-fetch-videos.ts → fetch/use-fetch-videos.ts} +6 -6
  45. package/composables/use-auth-popup.ts +4 -4
  46. package/composables/use-generate-link.ts +3 -3
  47. package/composables/use-playlist-add.ts +2 -2
  48. package/composables/use-playlist-edit.ts +5 -5
  49. package/lib/contact-forms-scheme.ts +6 -6
  50. package/lib/report-forms-scheme.ts +6 -6
  51. package/nuxt.config.ts +4 -1
  52. package/package.json +1 -1
  53. package/runtime/constants/async-data.ts +61 -0
  54. package/runtime/constants/auth-step.ts +7 -0
  55. package/runtime/constants/contacts-subjects.ts +9 -0
  56. package/runtime/constants/languages.ts +22 -0
  57. package/runtime/constants/niche.ts +8 -0
  58. package/runtime/constants/playlist-step.ts +7 -0
  59. package/runtime/constants/playlist-type.ts +6 -0
  60. package/runtime/constants/report-forms-subjects.ts +9 -0
  61. package/runtime/constants/thumb-size.ts +7 -0
  62. package/runtime/index.ts +9 -9
  63. package/runtime/utils/cleaners/clean-category-card.ts +1 -1
  64. package/runtime/utils/cleaners/clean-category-info.ts +1 -1
  65. package/runtime/utils/cleaners/clean-channel-card.ts +1 -1
  66. package/runtime/utils/cleaners/clean-channel-info.ts +1 -1
  67. package/runtime/utils/cleaners/clean-model-card.ts +1 -1
  68. package/runtime/utils/cleaners/clean-model-info.ts +1 -1
  69. package/runtime/utils/cleaners/clean-playlist-card.ts +1 -1
  70. package/runtime/utils/cleaners/clean-user-playlists-card.ts +1 -1
  71. package/runtime/utils/cleaners/clean-video-card.ts +1 -1
  72. package/runtime/utils/converters/convert-model-card-to-chips.ts +1 -1
  73. package/types/contacts-form.d.ts +2 -2
  74. package/types/contacts-scheme.d.ts +2 -2
  75. package/types/playlist-card.d.ts +2 -2
  76. package/types/playlist-data.d.ts +2 -2
  77. package/types/playlist-short.d.ts +2 -2
  78. package/types/raw/raw-playlist-card.d.ts +2 -2
  79. package/types/raw/raw-playlist-data.d.ts +2 -2
  80. package/types/raw/raw-playlist-user.d.ts +2 -2
  81. package/types/raw/raw-thumbs-urls.d.ts +1 -1
  82. package/types/report-form.d.ts +2 -2
  83. package/types/report-scheme.d.ts +2 -2
  84. package/types/thumbs-urls.d.ts +1 -1
  85. package/components/categories/s-categories-letter.vue +0 -56
  86. package/components/categories/s-categories-list.vue +0 -146
  87. package/components/categories/s-categories-navigation.vue +0 -48
  88. package/components/categories/s-categories-section.vue +0 -102
  89. package/components/categories/s-letter-groups.vue +0 -53
  90. package/components/categories/s-letter.vue +0 -28
  91. package/components/categories/s-main-categories.vue +0 -22
  92. package/runtime/enums/async-data.ts +0 -59
  93. package/runtime/enums/auth-step.ts +0 -5
  94. package/runtime/enums/contacts-subjects.ts +0 -7
  95. package/runtime/enums/languages.ts +0 -20
  96. package/runtime/enums/niche.ts +0 -6
  97. package/runtime/enums/playlist-step.ts +0 -5
  98. package/runtime/enums/playlist-type.ts +0 -4
  99. package/runtime/enums/report-forms-subjects.ts +0 -7
  100. package/runtime/enums/thumb-size.ts +0 -5
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { ICategoryCard } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { ICategoryCard } from '../../types';
4
4
 
5
5
  export const useFetchCategoriesByLetter = async (
6
6
  apiMethod: (...args: any[]) => Promise<Array<ICategoryCard>>
7
7
  ) => {
8
- const key = EAsyncData.CategoriesByLetter;
9
- const lang = useLang() as ELanguage;
8
+ const key = AsyncData.CategoriesByLetter;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug();
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { ICardInfo } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { ICardInfo } from '../../types';
4
4
 
5
5
  export const useFetchCategoriesByName = async (
6
6
  apiMethod: (...args: any[]) => Promise<ICardInfo>
7
7
  ) => {
8
- const key = EAsyncData.CategoriesByName;
9
- const lang = useLang() as ELanguage;
8
+ const key = AsyncData.CategoriesByName;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug();
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IChipsItem } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IChipsItem } from '../../types';
4
4
 
5
5
  export const useFetchCategoriesByPhrase = async (
6
6
  apiMethod: (...args: any[]) => Promise<Array<IChipsItem>>
7
7
  ) => {
8
- const key = EAsyncData.CategoriesByPhrase;
9
- const lang = useLang() as ELanguage;
8
+ const key = AsyncData.CategoriesByPhrase;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug();
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
@@ -1,11 +1,11 @@
1
- import type { EAsyncData, ELanguage } from '../runtime';
2
- import type { ICategoryCard, IChipsItem } from '../types';
1
+ import type { AsyncData, Language } from '../../runtime';
2
+ import type { ICategoryCard, IChipsItem } from '../../types';
3
3
 
4
4
  export const useFetchCategoriesGroupByLetter = async (
5
- key: EAsyncData,
5
+ key: AsyncData,
6
6
  apiMethod: (...args: any[]) => Promise<Record<string, Array<ICategoryCard>>> | Promise<IChipsItem[]>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const stateKey = computed(() => `data-${key}-${lang}`);
10
10
 
11
11
  const { data, error, refresh, status } = await useAsyncData<Record<string, Array<ICategoryCard>> | IChipsItem[]>(
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IRelatedPhrases } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IRelatedPhrases } from '../../types';
4
4
 
5
5
  export const useFetchCategoriesRelated = async (
6
6
  apiMethod: (...args: any[]) => Promise<IRelatedPhrases>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug();
10
- const key = EAsyncData.CategoriesRelated;
10
+ const key = AsyncData.CategoriesRelated;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<IRelatedPhrases>(
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IChannelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IChannelCard, PaginatedResponse } from '../../types';
4
4
 
5
5
  export const useFetchChannelsByModel = async (
6
6
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IChannelCard>>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug();
10
- const key = EAsyncData.ChannelsByModel;
10
+ const key = AsyncData.ChannelsByModel;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<PaginatedResponse<IChannelCard>>(
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { ICardInfo } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { ICardInfo } from '../../types';
4
4
 
5
5
  export const useFetchChannelsByName = async (
6
6
  apiMethod: (...args: any[]) => Promise<ICardInfo>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug('channel');
10
- const key = EAsyncData.ChannelByName;
10
+ const key = AsyncData.ChannelByName;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<ICardInfo>(
@@ -1,17 +1,17 @@
1
1
  import { useRoute } from 'vue-router';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData } from '../runtime';
4
- import type { IChannelCard, PaginatedResponse } from '../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData } from '../../runtime';
4
+ import type { IChannelCard, PaginatedResponse } from '../../types';
5
5
 
6
6
  export const useFetchChannelsByNetworkName = async (
7
7
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IChannelCard>>
8
8
  ) => {
9
- const lang = useLang() as ELanguage;
9
+ const lang = useLang() as Language;
10
10
  const route = useRoute();
11
11
  const mobile = !!useState<boolean>('isMobile').value;
12
12
  const perPage = mobile ? 12 : 48;
13
13
  const slug = useSlug('channel');
14
- const key = EAsyncData.ChannelsByNetworkName;
14
+ const key = AsyncData.ChannelsByNetworkName;
15
15
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
16
16
 
17
17
  const { data, status, error } = await useAsyncData<PaginatedResponse<IChannelCard>>(
@@ -1,8 +1,8 @@
1
1
  import { useRoute } from 'vue-router';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData, getSelectedQuery } from '../runtime';
4
- import { sortChannels } from '../lib';
5
- import type { IChannelCard, PaginatedResponse } from '../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData, getSelectedQuery } from '../../runtime';
4
+ import { sortChannels } from '../../lib';
5
+ import type { IChannelCard, PaginatedResponse } from '../../types';
6
6
 
7
7
  export const useFetchChannels = async (
8
8
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IChannelCard>>
@@ -10,8 +10,8 @@ export const useFetchChannels = async (
10
10
  const route = useRoute();
11
11
  const mobile = !!useState<boolean>('isMobile').value;
12
12
  const perPage = mobile ? 12 : 48;
13
- const lang = useLang() as ELanguage;
14
- const key = EAsyncData.Channels;
13
+ const lang = useLang() as Language;
14
+ const key = AsyncData.Channels;
15
15
  const stateKey = computed(() => `data-${key}-${JSON.stringify(route.query)}-${lang}`);
16
16
 
17
17
  const { data, status, error } = await useAsyncData<PaginatedResponse<IChannelCard>>(
@@ -1,12 +1,12 @@
1
- import type { ICountries } from '../types';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData } from '../runtime';
1
+ import type { ICountries } from '../../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData } from '../../runtime';
4
4
 
5
5
  export const useFetchDictionariesCountries = async (
6
6
  apiMethod: (...args: any[]) => Promise<ICountries>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
9
- const key = EAsyncData.Countries;
8
+ const lang = useLang() as Language;
9
+ const key = AsyncData.Countries;
10
10
  const stateKey = computed(() => `data-${key}-${lang}`);
11
11
 
12
12
  const { data, status, error } = await useAsyncData<ICountries>(
@@ -1,12 +1,12 @@
1
- import type { IGenders } from '../types';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData } from '../runtime';
1
+ import type { IGenders } from '../../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData } from '../../runtime';
4
4
 
5
5
  export const useFetchDictionariesGenders = async (
6
6
  apiMethod: (...args: any[]) => Promise<IGenders>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
9
- const key = EAsyncData.Genders;
8
+ const lang = useLang() as Language;
9
+ const key = AsyncData.Genders;
10
10
  const stateKey = computed(() => `data-${key}-${lang}`);
11
11
 
12
12
  const { data, status, error } = await useAsyncData<IGenders>(
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IChipsItem } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IChipsItem } from '../../types';
4
4
 
5
5
  export const useFetchFooterCategories = async (
6
6
  apiMethod: (...args: any[]) => Promise<IChipsItem[]>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
9
- const key = EAsyncData.CategoriesTopRandomFooter;
8
+ const lang = useLang() as Language;
9
+ const key = AsyncData.CategoriesTopRandomFooter;
10
10
  const stateKey = computed(() => `data-${key}-${lang}`);
11
11
 
12
12
  const { data, status, error } = await useAsyncData<IChipsItem[]>(
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import type { IGroupCategories } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import type { IGroupCategories } from '../../types';
3
3
 
4
4
  export const useFetchGroupsCategoriesLazy = (
5
5
  apiMethod: (...args: any[]) => Promise<IGroupCategories[]>
6
6
  ) => {
7
7
  const data = useState<IGroupCategories[] | null>('lazy-groups-categories', () => null);
8
8
  const isLoading = useState<boolean>('lazy-groups-categories-loading', () => false);
9
- const lang = useLang() as ELanguage;
9
+ const lang = useLang() as Language;
10
10
 
11
11
  async function load() {
12
12
  if (data.value?.length || isLoading.value) return;
@@ -1,12 +1,12 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IGroupCategories } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IGroupCategories } from '../../types';
4
4
 
5
5
  export const useFetchGroupsCategories = async (
6
6
  apiMethod: (...args: any[]) => Promise<IGroupCategories[]>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
9
- const key = EAsyncData.GroupsCategoriesFilter;
8
+ const lang = useLang() as Language;
9
+ const key = AsyncData.GroupsCategoriesFilter;
10
10
  const stateKey = computed(() => `data-${key}-${lang}`);
11
11
 
12
12
  const { data, pending: status, error } = await useAsyncData<IGroupCategories[]>(
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { ICardInfo } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { ICardInfo } from '../../types';
4
4
 
5
5
  export const useFetchModelByName = async (
6
6
  apiMethod: (...args: any[]) => Promise<ICardInfo>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug();
10
- const key = EAsyncData.ModelsByName;
10
+ const key = AsyncData.ModelsByName;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<ICardInfo>(
@@ -1,14 +1,14 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IModelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IModelCard, PaginatedResponse } from '../../types';
4
4
 
5
5
  export const useFetchModelsByCategory = async (
6
6
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>,
7
7
  limit: number,
8
8
  ) => {
9
- const lang = useLang() as ELanguage;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug();
11
- const key = EAsyncData.ModelsByCategory;
11
+ const key = AsyncData.ModelsByCategory;
12
12
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
13
13
 
14
14
  const { data, status } = await useAsyncData<PaginatedResponse<IModelCard>>(
@@ -1,14 +1,14 @@
1
- import type { ELanguage } from '..runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IModelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IModelCard, PaginatedResponse } from '../../types';
4
4
 
5
5
  export const useFetchModelsByChannel = async (
6
6
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>,
7
7
  limit: number,
8
8
  ) => {
9
- const lang = useLang() as ELanguage;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug('channel');
11
- const key = EAsyncData.ModelsByChannel;
11
+ const key = AsyncData.ModelsByChannel;
12
12
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
13
13
 
14
14
  const { data, status } = await useAsyncData<PaginatedResponse<IModelCard>>(
@@ -1,8 +1,8 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData, getSelectedQuery } from '../runtime';
3
- import { sortModels } from '../lib';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData, getSelectedQuery } from '../../runtime';
3
+ import { sortModels } from '../../lib';
4
4
  import { useRoute } from 'vue-router';
5
- import type { IModelCard, PaginatedResponse } from '../types';
5
+ import type { IModelCard, PaginatedResponse } from '../../types';
6
6
 
7
7
  export const useFetchModelsByLetter = async (
8
8
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>
@@ -11,8 +11,8 @@ export const useFetchModelsByLetter = async (
11
11
  const mobile = !!useState<boolean>('isMobile').value;
12
12
  const perPage = mobile ? 12 : 48;
13
13
  const slug = useSlug();
14
- const lang = useLang() as ELanguage;
15
- const key = EAsyncData.ModelsByFirstLetter;
14
+ const lang = useLang() as Language;
15
+ const key = AsyncData.ModelsByFirstLetter;
16
16
  const stateKey = computed(() => `data-${key}-${slug.value}-${JSON.stringify(route.query)}-${lang}`);
17
17
 
18
18
  const filters = computed(() => Object.entries(route.query)
@@ -1,6 +1,6 @@
1
- import type { ELanguage } from '../runtime';
2
- import { convertString, EAsyncData } from '../runtime';
3
- import type { IModelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { convertString, AsyncData } from '../../runtime';
3
+ import type { IModelCard, PaginatedResponse } from '../../types';
4
4
  import { useRoute } from 'vue-router';
5
5
 
6
6
  export const useFetchModelsByPhrases = async (
@@ -9,9 +9,9 @@ export const useFetchModelsByPhrases = async (
9
9
  const route = useRoute();
10
10
  const mobile = !!useState<boolean>('isMobile').value;
11
11
  const perPage = mobile ? 12 : 48;
12
- const lang = useLang() as ELanguage;
12
+ const lang = useLang() as Language;
13
13
  const slug = useSlug();
14
- const key = EAsyncData.ModelsByPhrases;
14
+ const key = AsyncData.ModelsByPhrases;
15
15
  const stateKey = computed(() => `data-${key}-${slug.value}-${JSON.stringify(route.query)}-${lang}`);
16
16
 
17
17
  const { data, status, error } = await useAsyncData<PaginatedResponse<IModelCard>>(
@@ -1,14 +1,14 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IModelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IModelCard, PaginatedResponse } from '../../types';
4
4
 
5
5
  export const useFetchModelsByTag = async (
6
6
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>,
7
7
  limit: number,
8
8
  ) => {
9
- const lang = useLang() as ELanguage;
9
+ const lang = useLang() as Language;
10
10
  const slug = useSlug('tag');
11
- const key = EAsyncData.ModelsByTag;
11
+ const key = AsyncData.ModelsByTag;
12
12
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
13
13
 
14
14
  const { data, status } = await useAsyncData<PaginatedResponse<IModelCard>>(
@@ -1,15 +1,15 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IModelCard, PaginatedResponse } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IModelCard, PaginatedResponse } from '../../types';
4
4
 
5
5
  export const useFetchRelatedModels = async (
6
6
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>,
7
7
  limit: number,
8
8
  cacheId: string
9
9
  ) => {
10
- const lang = useLang() as ELanguage;
10
+ const lang = useLang() as Language;
11
11
  const slug = useSlug();
12
- const key = EAsyncData.TopModelsMore;
12
+ const key = AsyncData.TopModelsMore;
13
13
  const stateKey = computed(() => `data-${key}-${slug.value}-${cacheId}-${lang}`);
14
14
 
15
15
  const { data, status, refresh } = await useAsyncData<PaginatedResponse<IModelCard>>(
@@ -1,8 +1,8 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData, getSelectedQuery } from '../runtime';
3
- import { sortModels } from '../lib';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData, getSelectedQuery } from '../../runtime';
3
+ import { sortModels } from '../../lib';
4
4
  import { useRoute } from 'vue-router';
5
- import type { IModelCard, PaginatedResponse } from '../types';
5
+ import type { IModelCard, PaginatedResponse } from '../../types';
6
6
 
7
7
  export const useFetchModels = async (
8
8
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>
@@ -10,8 +10,8 @@ export const useFetchModels = async (
10
10
  const route = useRoute();
11
11
  const mobile = !!useState<boolean>('isMobile').value;
12
12
  const perPage = mobile ? 12 : 48;
13
- const lang = useLang() as ELanguage;
14
- const key = EAsyncData.Models;
13
+ const lang = useLang() as Language;
14
+ const key = AsyncData.Models;
15
15
  const stateKey = computed(() => `data-${key}-${JSON.stringify(route.query)}-${lang}`);
16
16
 
17
17
  const filters = computed(() => Object.entries(route.query)
@@ -1,6 +1,6 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IMultiSuggest } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IMultiSuggest } from '../../types';
4
4
  import { useRoute } from 'vue-router';
5
5
 
6
6
  export async function useFetchMultiSuggest(
@@ -12,9 +12,9 @@ export async function useFetchMultiSuggest(
12
12
  ) {
13
13
  const route = useRoute();
14
14
  const searchValue = useState<string>('searchValue', () => '');
15
- const lang = useLang() as ELanguage;
15
+ const lang = useLang() as Language;
16
16
  const slug = useSlug();
17
- const key = watchRoute ? EAsyncData.MultiSuggestRouteSearch : EAsyncData.MultiSuggestSearch;
17
+ const key = watchRoute ? AsyncData.MultiSuggestRouteSearch : AsyncData.MultiSuggestSearch;
18
18
  const stateKey = computed(() => `data-${key}-${watchRoute ? slug.value : searchValue.value}-${lang}`);
19
19
 
20
20
  const { data, status } = await useAsyncData<IMultiSuggest | null>(
@@ -1,13 +1,13 @@
1
1
  import { useRoute } from 'vue-router';
2
- import { EAsyncData, type ELanguage } from '../runtime';
3
- import type { IPlaylistData } from '../types';
2
+ import { AsyncData, type Language } from '../../runtime';
3
+ import type { IPlaylistData } from '../../types';
4
4
 
5
5
  export const useFetchPlaylistsById = async (apiMethod: (...args: any[]) => Promise<IPlaylistData>) => {
6
6
  const route = useRoute();
7
7
  const id = computed(() => String(route.params['playlistId']));
8
- const key = EAsyncData.PlaylistById;
8
+ const key = AsyncData.PlaylistById;
9
9
  const stateKey = computed(() => `data-${key}-${id.value}`);
10
- const lang = useLang() as ELanguage;
10
+ const lang = useLang() as Language;
11
11
 
12
12
  const { data, status, error, refresh } = await useAsyncData<IPlaylistData>(
13
13
  key,
@@ -1,15 +1,15 @@
1
1
  import { useRoute } from 'vue-router';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData, getSelectedQuery } from '../runtime';
4
- import { sortPlaylists } from '../lib';
5
- import type { IPlaylistCard, PaginatedResponse } from '../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData, getSelectedQuery } from '../../runtime';
4
+ import { sortPlaylists } from '../../lib';
5
+ import type { IPlaylistCard, PaginatedResponse } from '../../types';
6
6
 
7
7
  export const useFetchPlaylistsByNiche = async (apiMethod: (...args: any[]) => Promise<PaginatedResponse<IPlaylistCard>>) => {
8
8
  const route = useRoute();
9
9
  const mobile = !!useState<boolean>('isMobile').value;
10
10
  const perPage = mobile ? 12 : 48;
11
- const lang = useLang() as ELanguage;
12
- const key = EAsyncData.GetPlaylistsByNiche;
11
+ const lang = useLang() as Language;
12
+ const key = AsyncData.GetPlaylistsByNiche;
13
13
  const stateKey = computed(() => `data-${key}-${JSON.stringify(route.query)}-${lang}`);
14
14
 
15
15
  const { data, status, error } = await useAsyncData<PaginatedResponse<IPlaylistCard>>(
@@ -1,5 +1,5 @@
1
- import { EAsyncData, type ELanguage } from '../runtime';
2
- import type { IVideoCard, PaginatedResponse } from '../types';
1
+ import { AsyncData, type Language } from '../../runtime';
2
+ import type { IVideoCard, PaginatedResponse } from '../../types';
3
3
  import { useRoute } from 'vue-router';
4
4
 
5
5
  export const useFetchPlaylistsGetVideosById = async (
@@ -10,9 +10,9 @@ export const useFetchPlaylistsGetVideosById = async (
10
10
  const perPage = mobile ? 12 : 48;
11
11
  const route = useRoute();
12
12
  const id = computed(() => String(route.params['playlistId']));
13
- const key = EAsyncData.GetPlaylistsVideo;
13
+ const key = AsyncData.GetPlaylistsVideo;
14
14
  const stateKey = computed(() => `data-${key}-${id.value}`);
15
- const lang = useLang() as ELanguage;
15
+ const lang = useLang() as Language;
16
16
 
17
17
  const { data, status, error } = await useAsyncData<PaginatedResponse<IVideoCard>>(
18
18
  key,
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IPopularTags } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IPopularTags } from '../../types';
4
4
 
5
5
  export const useFetchPopularTagsByChannelName = async (
6
6
  apiMethod: (...args: any[]) => Promise<IPopularTags[]>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug('channel');
10
- const key = EAsyncData.PopularTagsByChannel;
10
+ const key = AsyncData.PopularTagsByChannel;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<IPopularTags[]>(
@@ -1,13 +1,13 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
3
- import type { IPopularTags } from '../types';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
+ import type { IPopularTags } from '../../types';
4
4
 
5
5
  export const useFetchPopularTagsByModelName = async (
6
6
  apiMethod: (...args: any[]) => Promise<IPopularTags[]>
7
7
  ) => {
8
- const lang = useLang() as ELanguage;
8
+ const lang = useLang() as Language;
9
9
  const slug = useSlug();
10
- const key = EAsyncData.PopularTagsByModel;
10
+ const key = AsyncData.PopularTagsByModel;
11
11
  const stateKey = computed(() => `data-${key}-${slug.value}-${lang}`);
12
12
 
13
13
  const { data, status, error } = await useAsyncData<IPopularTags[]>(
@@ -1,9 +1,9 @@
1
- import type { ELanguage } from '../runtime';
2
- import { EAsyncData } from '../runtime';
1
+ import type { Language } from '../../runtime';
2
+ import { AsyncData } from '../../runtime';
3
3
 
4
4
  export const useFetchRelatedSearch = async (apiMethod: (...args: any[]) => Promise<Array<string>>) => {
5
- const lang = useLang() as ELanguage;
6
- const key = EAsyncData.RelatedSearch;
5
+ const lang = useLang() as Language;
6
+ const key = AsyncData.RelatedSearch;
7
7
 
8
8
  const { data, status, error } = await useAsyncData<Array<string>>(
9
9
  key,
@@ -1,18 +1,18 @@
1
1
  import { useRoute } from 'vue-router';
2
- import type { ELanguage } from '../runtime';
3
- import { EAsyncData } from '../runtime';
4
- import type { IVideoCard, PaginatedResponse } from '../types';
2
+ import type { Language } from '../../runtime';
3
+ import { AsyncData } from '../../runtime';
4
+ import type { IVideoCard, PaginatedResponse } from '../../types';
5
5
 
6
6
  export const useFetchRelatedVideos = async (
7
7
  apiMethod: (...args: any[]) => Promise<PaginatedResponse<IVideoCard>>
8
8
  ) => {
9
9
  const { locale } = useI18n();
10
- const lang = useLang() as ELanguage;
10
+ const lang = useLang() as Language;
11
11
  const route = useRoute();
12
12
  const mobile = !!useState<boolean>('isMobile').value;
13
13
  const perPage = mobile ? 6 : 14;
14
14
  const slug = useSlug();
15
- const key = EAsyncData.RelatedVideos;
15
+ const key = AsyncData.RelatedVideos;
16
16
  const stateKey = computed(() => `data-${key}-${slug.value}-${JSON.stringify(route.query)}-${lang}`);
17
17
 
18
18
  const { data, status, error } = await useAsyncData<PaginatedResponse<IVideoCard>>(