itube-specs 0.0.195

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 (169) hide show
  1. package/README.md +121 -0
  2. package/components/cards/f-video-mini-card.vue +49 -0
  3. package/components/grids/f-grid-categories.vue +20 -0
  4. package/components/grids/f-grid-channels.vue +23 -0
  5. package/components/grids/f-grid-models.vue +25 -0
  6. package/components/grids/f-grid-playlists.vue +21 -0
  7. package/components/grids/f-grid-videos.vue +33 -0
  8. package/components/page-components/f-breadcrumbs.vue +44 -0
  9. package/components/page-components/f-chips-panel.vue +101 -0
  10. package/components/page-components/f-pagination.vue +206 -0
  11. package/components/page-components/f-report.vue +221 -0
  12. package/components/page-components/f-share.vue +96 -0
  13. package/components/page-components/f-sort.vue +57 -0
  14. package/components/page-components/f-videos-title.vue +20 -0
  15. package/components/ui/f-button.vue +50 -0
  16. package/components/ui/f-checkbox.vue +55 -0
  17. package/components/ui/f-chips.vue +116 -0
  18. package/components/ui/f-count.vue +12 -0
  19. package/components/ui/f-country.vue +26 -0
  20. package/components/ui/f-dropdown.vue +122 -0
  21. package/components/ui/f-icon.vue +19 -0
  22. package/components/ui/f-img.vue +46 -0
  23. package/components/ui/f-input.vue +162 -0
  24. package/components/ui/f-label.vue +20 -0
  25. package/components/ui/f-link.vue +33 -0
  26. package/components/ui/f-model-tag.vue +28 -0
  27. package/components/ui/f-notification.vue +77 -0
  28. package/components/ui/f-popup.vue +136 -0
  29. package/components/ui/f-radio.vue +56 -0
  30. package/components/ui/f-select.vue +88 -0
  31. package/components/ui/f-slider.vue +55 -0
  32. package/components/ui/f-snackbar.vue +47 -0
  33. package/components/ui/f-timestamp.vue +51 -0
  34. package/components/ui/f-toggle.vue +29 -0
  35. package/composables/use-antiadblock-domains.ts +20 -0
  36. package/composables/use-auth-popup.ts +25 -0
  37. package/composables/use-convert-query-categories.ts +7 -0
  38. package/composables/use-generate-link.ts +30 -0
  39. package/composables/use-get-pure-route-name.ts +5 -0
  40. package/composables/use-get-videos-filter-request.ts +30 -0
  41. package/composables/use-meta.ts +42 -0
  42. package/composables/use-playlist-edit.ts +36 -0
  43. package/composables/use-report-popup.ts +21 -0
  44. package/composables/use-seo-links.ts +87 -0
  45. package/composables/use-share-popup.ts +23 -0
  46. package/composables/use-snackbar.ts +52 -0
  47. package/composables/use-test-composable.ts +3 -0
  48. package/lib/alphabet-items.ts +2 -0
  49. package/lib/contact-forms-scheme.ts +98 -0
  50. package/lib/contacts/report-issue-items.ts +5 -0
  51. package/lib/contacts/report-malware-items.ts +6 -0
  52. package/lib/contacts/report-reasons-items.ts +12 -0
  53. package/lib/contacts/report-wrong-items.ts +6 -0
  54. package/lib/index.ts +7 -0
  55. package/lib/report-forms-scheme.ts +205 -0
  56. package/nuxt.config.ts +20 -0
  57. package/package.json +53 -0
  58. package/runtime/enums/async-data.ts +48 -0
  59. package/runtime/enums/auth-step.ts +5 -0
  60. package/runtime/enums/contacts-subjects.ts +7 -0
  61. package/runtime/enums/languages.ts +9 -0
  62. package/runtime/enums/niche.ts +6 -0
  63. package/runtime/enums/playlist-step.ts +5 -0
  64. package/runtime/enums/playlist-type.ts +4 -0
  65. package/runtime/enums/report-forms-subjects.ts +7 -0
  66. package/runtime/index.ts +51 -0
  67. package/runtime/utils/cleaners/clean-category-card.ts +9 -0
  68. package/runtime/utils/cleaners/clean-category-info.ts +9 -0
  69. package/runtime/utils/cleaners/clean-channel-card.ts +12 -0
  70. package/runtime/utils/cleaners/clean-channel-info.ts +13 -0
  71. package/runtime/utils/cleaners/clean-model-card.ts +9 -0
  72. package/runtime/utils/cleaners/clean-model-info.ts +11 -0
  73. package/runtime/utils/cleaners/clean-playlist-card.ts +16 -0
  74. package/runtime/utils/cleaners/clean-playlist-data.ts +15 -0
  75. package/runtime/utils/cleaners/clean-playlist-video.ts +12 -0
  76. package/runtime/utils/cleaners/clean-profile-data.ts +11 -0
  77. package/runtime/utils/cleaners/clean-user-playlists-card.ts +11 -0
  78. package/runtime/utils/cleaners/clean-video-card.ts +19 -0
  79. package/runtime/utils/cleaners/clean-video-data.ts +27 -0
  80. package/runtime/utils/compress-image.ts +27 -0
  81. package/runtime/utils/converters/convert-categories-to-chips.ts +13 -0
  82. package/runtime/utils/converters/convert-categories-to-footer.ts +11 -0
  83. package/runtime/utils/converters/convert-date-to-timestamp.ts +37 -0
  84. package/runtime/utils/converters/convert-model-card-to-chips.ts +13 -0
  85. package/runtime/utils/converters/convert-string.ts +56 -0
  86. package/runtime/utils/converters/group-categories-by-first-letter.ts +24 -0
  87. package/runtime/utils/converters/group-objects-by-first-letter.ts +16 -0
  88. package/runtime/utils/format-date.ts +12 -0
  89. package/runtime/utils/format-number.ts +12 -0
  90. package/runtime/utils/format-time-ago.ts +21 -0
  91. package/runtime/utils/get-duration.ts +17 -0
  92. package/runtime/utils/get-month.ts +22 -0
  93. package/runtime/utils/get-multiple-query.ts +26 -0
  94. package/runtime/utils/get-selected-query.ts +6 -0
  95. package/runtime/utils/is-mobile.ts +15 -0
  96. package/runtime/utils/normalize-url.ts +43 -0
  97. package/runtime/utils/on-backdrop-click.ts +5 -0
  98. package/runtime/utils/scroll-lock.ts +28 -0
  99. package/runtime/utils/server/abort-controller.ts +14 -0
  100. package/runtime/utils/server/api-helper.ts +41 -0
  101. package/runtime/utils/server/get-url-with-proxied-params.ts +6 -0
  102. package/runtime/utils/server/parse-api-error.ts +14 -0
  103. package/runtime/utils/server/server-api-helper.ts +28 -0
  104. package/runtime/utils/validate-email.ts +4 -0
  105. package/runtime/utils/validate-password.ts +3 -0
  106. package/runtime/utils/validate-phone.ts +4 -0
  107. package/runtime/utils/validate-username.ts +4 -0
  108. package/runtime/utils/video-data-add-model-icon.ts +20 -0
  109. package/runtime/utils/vtt-helper.ts +86 -0
  110. package/types/authorization-forms.d.ts +16 -0
  111. package/types/breadcrumb-item.d.ts +4 -0
  112. package/types/button-sizes.d.ts +1 -0
  113. package/types/button-themes.d.ts +1 -0
  114. package/types/card-info.d.ts +22 -0
  115. package/types/category-card.d.ts +8 -0
  116. package/types/change-email-form.d.ts +3 -0
  117. package/types/change-password-form.d.ts +4 -0
  118. package/types/channel-card.d.ts +10 -0
  119. package/types/chips-item.d.ts +8 -0
  120. package/types/contacts-form.d.ts +10 -0
  121. package/types/contacts-scheme.d.ts +14 -0
  122. package/types/country.d.ts +5 -0
  123. package/types/css-breakpoints.d.ts +1 -0
  124. package/types/filter-scheme.d.ts +37 -0
  125. package/types/fluid-player.d.ts +226 -0
  126. package/types/gender.d.ts +5 -0
  127. package/types/group-categories.d.ts +15 -0
  128. package/types/index.d.ts +59 -0
  129. package/types/input-types.d.ts +1 -0
  130. package/types/link-item.d.ts +6 -0
  131. package/types/model-card.d.ts +7 -0
  132. package/types/model-filter-payload.d.ts +4 -0
  133. package/types/model-filter.d.ts +15 -0
  134. package/types/model-group.d.ts +5 -0
  135. package/types/model-tag.d.ts +5 -0
  136. package/types/multi-suggest.d.ts +105 -0
  137. package/types/navigation-items.d.ts +10 -0
  138. package/types/paginated-response.d.ts +8 -0
  139. package/types/parameter-model.d.ts +14 -0
  140. package/types/playlist-card.d.ts +16 -0
  141. package/types/playlist-data.d.ts +15 -0
  142. package/types/playlist-info-type.d.ts +28 -0
  143. package/types/playlist-video-form.d.ts +9 -0
  144. package/types/profile-data.d.ts +9 -0
  145. package/types/raw/raw-category-card.d.ts +23 -0
  146. package/types/raw/raw-category-info.d.ts +23 -0
  147. package/types/raw/raw-channel-card.d.ts +29 -0
  148. package/types/raw/raw-channel-info.d.ts +29 -0
  149. package/types/raw/raw-model-card.d.ts +53 -0
  150. package/types/raw/raw-model-info.d.ts +54 -0
  151. package/types/raw/raw-playlist-card.d.ts +27 -0
  152. package/types/raw/raw-playlist-data.d.ts +29 -0
  153. package/types/raw/raw-playlist-user.d.ts +24 -0
  154. package/types/raw/raw-playlist-video.d.ts +18 -0
  155. package/types/raw/raw-profile-data.d.ts +22 -0
  156. package/types/raw/raw-video-card.d.ts +78 -0
  157. package/types/raw/raw-video-data.d.ts +53 -0
  158. package/types/recovery-password-form.d.ts +4 -0
  159. package/types/related-phrases.d.ts +6 -0
  160. package/types/report-form.d.ts +9 -0
  161. package/types/report-scheme.d.ts +21 -0
  162. package/types/request-filters.d.ts +13 -0
  163. package/types/request-pagination.d.ts +5 -0
  164. package/types/search-top-models.d.ts +6 -0
  165. package/types/select-item.d.ts +10 -0
  166. package/types/tab-item.d.ts +6 -0
  167. package/types/thumbs-urls.d.ts +13 -0
  168. package/types/video-card.d.ts +18 -0
  169. package/types/video-data.d.ts +36 -0
@@ -0,0 +1,53 @@
1
+ import { IThumbUrls } from '../thumbs-urls';
2
+
3
+ export interface IRawVideoData {
4
+ guid: string;
5
+ md5: string;
6
+ quality: string;
7
+ orientation: string; // unused
8
+ duration: number;
9
+ created: number; // unused
10
+ is_hd: boolean; // unused
11
+ title: string;
12
+ description: string; // unused
13
+ views: number;
14
+ likes: number;
15
+ dislikes: number; // unused
16
+ popularity: number; // unused
17
+ id: string;
18
+ tags: string[];
19
+ models: {
20
+ guid: string;
21
+ title: string;
22
+ }[];
23
+ categories: {
24
+ name: string;
25
+ title: string;
26
+ }[];
27
+ actions: null;
28
+ primary_thumb_rank: number; // unused
29
+ is_new: boolean; // unused
30
+ thumb_number: number; // unused
31
+ is_edited: boolean; // unused
32
+ fake_user_name: string; // unused
33
+ referer_phrases: null; // unused
34
+ is_canonical: boolean; // unused
35
+ custom_thumb_md5: string; // unused
36
+ channel: {
37
+ name: string
38
+ avatar: string
39
+ };
40
+ uploader: Record<string, never>; // unused
41
+ is_deleted: boolean;
42
+ url: string;
43
+ has_reels: boolean; // unused
44
+ cdn_preview_domain: string; // unused
45
+ cdn_thumbs_domain: string; // unused
46
+ cdn_video_domain: string; // unused
47
+ preview_url: string;
48
+ video_url: string; // unused
49
+ thumb_urls: IThumbUrls;
50
+ reels_url: string; // unused
51
+ vtt_url: string;
52
+ vtt_sprite_url: string;
53
+ }
@@ -0,0 +1,4 @@
1
+ export interface IRecoveryPasswordForm {
2
+ token: string | undefined
3
+ newPassword: string
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface IRelatedPhrases {
2
+ items: Array<{
3
+ score: string
4
+ query: string
5
+ }>
6
+ }
@@ -0,0 +1,9 @@
1
+ import { EReportFormsSubjects } from '../runtime/enums/report-forms-subjects';
2
+
3
+ export interface IReportForm {
4
+ categoryName: EReportFormsSubjects
5
+ reason: string
6
+ url: string
7
+ token: string
8
+ data: Record<string, string | boolean>
9
+ }
@@ -0,0 +1,21 @@
1
+ import type { InputTypes } from '../types';
2
+ import { EReportFormsSubjects } from '../runtime/enums/report-forms-subjects';
3
+
4
+ export interface IReportScheme {
5
+ subject: EReportFormsSubjects
6
+ title?: string
7
+ text?: string
8
+ list?: Array<{
9
+ text: string
10
+ }>
11
+ hasReason?: boolean
12
+ subtext?: string
13
+ items?: {
14
+ type: InputTypes | string
15
+ value: string
16
+ label?: string
17
+ required?: boolean
18
+ wide?: boolean
19
+ text?: string
20
+ }[]
21
+ }
@@ -0,0 +1,13 @@
1
+ /** Тип фильтра для получения видеороликов */
2
+ export interface IRequestVideoFilter {
3
+ categories?: Array<string>,
4
+ maxDuration?: string,
5
+ minDuration?: string,
6
+ maxAdded?: string,
7
+ minAdded?: string,
8
+ excludeCategories?: Array<string>,
9
+ onlyHd?: boolean,
10
+ onlyReused?: boolean,
11
+ onlyWithReels?: boolean,
12
+ onlyWithRemovedLogo?: boolean
13
+ }
@@ -0,0 +1,5 @@
1
+ /** Пагинация */
2
+ export type RequestPagination = {
3
+ page: number,
4
+ perPage?: number,
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface ISearchTopModelsType {
2
+ videosCount?: number
3
+ name: string
4
+ title: string
5
+ primaryImageUrl?: string
6
+ }
@@ -0,0 +1,10 @@
1
+ export interface ISelectItem {
2
+ title: string
3
+ value?: string | string[]
4
+ key?: string
5
+ query?: string | string[]
6
+ icon?: string
7
+ prefix?: string
8
+ name?: string
9
+ primaryImageUrl?: string
10
+ }
@@ -0,0 +1,6 @@
1
+ export interface ITabItem {
2
+ title: string
3
+ value: string
4
+ key?: string
5
+ icon?: string
6
+ }
@@ -0,0 +1,13 @@
1
+ /** Интерфейс для работы с тумбами */
2
+ export interface IThumbUrls {
3
+ jpeg: {
4
+ "1280x720": string;
5
+ "320x180": string;
6
+ "480x270": string;
7
+ };
8
+ webp: {
9
+ "1280x720": string;
10
+ "320x180": string;
11
+ "480x270": string;
12
+ };
13
+ }
@@ -0,0 +1,18 @@
1
+ export interface IVideoCard {
2
+ guid: string;
3
+ quality?: string;
4
+ duration: number;
5
+ title: string;
6
+ views?: number;
7
+ id?: string;
8
+ tags?: string[];
9
+ isNew?: boolean;
10
+ channelAvatar?: string;
11
+ channelName?: string;
12
+ url?: string;
13
+ previewUrl?: string;
14
+ thumbUrl: string;
15
+ playlistId?: string;
16
+ md5?: string;
17
+ thumbNum?: number;
18
+ }
@@ -0,0 +1,36 @@
1
+ export interface ITimestamp {
2
+ duration: number;
3
+ title: string;
4
+ }
5
+
6
+ export interface IVideoData {
7
+ guid: string;
8
+ md5: string;
9
+ quality: string;
10
+ duration: number;
11
+ title: string;
12
+ views: number;
13
+ likes: number;
14
+ id: string;
15
+ tags: string[];
16
+ models: {
17
+ guid: string;
18
+ title: string;
19
+ }[];
20
+ categories: {
21
+ name: string;
22
+ title: string;
23
+ }[];
24
+ actions: null;
25
+ channelName: string;
26
+ channelAvatar: string;
27
+ url: string;
28
+ previewUrl: string;
29
+ thumbUrl: string;
30
+ vttUrl: string;
31
+ vttSpriteUrl: string;
32
+ created: number;
33
+ videoUrl: string;
34
+ isDeleted: boolean;
35
+ thumbNum: number;
36
+ }