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.
- package/README.md +121 -0
- package/components/cards/f-video-mini-card.vue +49 -0
- package/components/grids/f-grid-categories.vue +20 -0
- package/components/grids/f-grid-channels.vue +23 -0
- package/components/grids/f-grid-models.vue +25 -0
- package/components/grids/f-grid-playlists.vue +21 -0
- package/components/grids/f-grid-videos.vue +33 -0
- package/components/page-components/f-breadcrumbs.vue +44 -0
- package/components/page-components/f-chips-panel.vue +101 -0
- package/components/page-components/f-pagination.vue +206 -0
- package/components/page-components/f-report.vue +221 -0
- package/components/page-components/f-share.vue +96 -0
- package/components/page-components/f-sort.vue +57 -0
- package/components/page-components/f-videos-title.vue +20 -0
- package/components/ui/f-button.vue +50 -0
- package/components/ui/f-checkbox.vue +55 -0
- package/components/ui/f-chips.vue +116 -0
- package/components/ui/f-count.vue +12 -0
- package/components/ui/f-country.vue +26 -0
- package/components/ui/f-dropdown.vue +122 -0
- package/components/ui/f-icon.vue +19 -0
- package/components/ui/f-img.vue +46 -0
- package/components/ui/f-input.vue +162 -0
- package/components/ui/f-label.vue +20 -0
- package/components/ui/f-link.vue +33 -0
- package/components/ui/f-model-tag.vue +28 -0
- package/components/ui/f-notification.vue +77 -0
- package/components/ui/f-popup.vue +136 -0
- package/components/ui/f-radio.vue +56 -0
- package/components/ui/f-select.vue +88 -0
- package/components/ui/f-slider.vue +55 -0
- package/components/ui/f-snackbar.vue +47 -0
- package/components/ui/f-timestamp.vue +51 -0
- package/components/ui/f-toggle.vue +29 -0
- package/composables/use-antiadblock-domains.ts +20 -0
- package/composables/use-auth-popup.ts +25 -0
- package/composables/use-convert-query-categories.ts +7 -0
- package/composables/use-generate-link.ts +30 -0
- package/composables/use-get-pure-route-name.ts +5 -0
- package/composables/use-get-videos-filter-request.ts +30 -0
- package/composables/use-meta.ts +42 -0
- package/composables/use-playlist-edit.ts +36 -0
- package/composables/use-report-popup.ts +21 -0
- package/composables/use-seo-links.ts +87 -0
- package/composables/use-share-popup.ts +23 -0
- package/composables/use-snackbar.ts +52 -0
- package/composables/use-test-composable.ts +3 -0
- package/lib/alphabet-items.ts +2 -0
- package/lib/contact-forms-scheme.ts +98 -0
- package/lib/contacts/report-issue-items.ts +5 -0
- package/lib/contacts/report-malware-items.ts +6 -0
- package/lib/contacts/report-reasons-items.ts +12 -0
- package/lib/contacts/report-wrong-items.ts +6 -0
- package/lib/index.ts +7 -0
- package/lib/report-forms-scheme.ts +205 -0
- package/nuxt.config.ts +20 -0
- package/package.json +53 -0
- package/runtime/enums/async-data.ts +48 -0
- package/runtime/enums/auth-step.ts +5 -0
- package/runtime/enums/contacts-subjects.ts +7 -0
- package/runtime/enums/languages.ts +9 -0
- package/runtime/enums/niche.ts +6 -0
- package/runtime/enums/playlist-step.ts +5 -0
- package/runtime/enums/playlist-type.ts +4 -0
- package/runtime/enums/report-forms-subjects.ts +7 -0
- package/runtime/index.ts +51 -0
- package/runtime/utils/cleaners/clean-category-card.ts +9 -0
- package/runtime/utils/cleaners/clean-category-info.ts +9 -0
- package/runtime/utils/cleaners/clean-channel-card.ts +12 -0
- package/runtime/utils/cleaners/clean-channel-info.ts +13 -0
- package/runtime/utils/cleaners/clean-model-card.ts +9 -0
- package/runtime/utils/cleaners/clean-model-info.ts +11 -0
- package/runtime/utils/cleaners/clean-playlist-card.ts +16 -0
- package/runtime/utils/cleaners/clean-playlist-data.ts +15 -0
- package/runtime/utils/cleaners/clean-playlist-video.ts +12 -0
- package/runtime/utils/cleaners/clean-profile-data.ts +11 -0
- package/runtime/utils/cleaners/clean-user-playlists-card.ts +11 -0
- package/runtime/utils/cleaners/clean-video-card.ts +19 -0
- package/runtime/utils/cleaners/clean-video-data.ts +27 -0
- package/runtime/utils/compress-image.ts +27 -0
- package/runtime/utils/converters/convert-categories-to-chips.ts +13 -0
- package/runtime/utils/converters/convert-categories-to-footer.ts +11 -0
- package/runtime/utils/converters/convert-date-to-timestamp.ts +37 -0
- package/runtime/utils/converters/convert-model-card-to-chips.ts +13 -0
- package/runtime/utils/converters/convert-string.ts +56 -0
- package/runtime/utils/converters/group-categories-by-first-letter.ts +24 -0
- package/runtime/utils/converters/group-objects-by-first-letter.ts +16 -0
- package/runtime/utils/format-date.ts +12 -0
- package/runtime/utils/format-number.ts +12 -0
- package/runtime/utils/format-time-ago.ts +21 -0
- package/runtime/utils/get-duration.ts +17 -0
- package/runtime/utils/get-month.ts +22 -0
- package/runtime/utils/get-multiple-query.ts +26 -0
- package/runtime/utils/get-selected-query.ts +6 -0
- package/runtime/utils/is-mobile.ts +15 -0
- package/runtime/utils/normalize-url.ts +43 -0
- package/runtime/utils/on-backdrop-click.ts +5 -0
- package/runtime/utils/scroll-lock.ts +28 -0
- package/runtime/utils/server/abort-controller.ts +14 -0
- package/runtime/utils/server/api-helper.ts +41 -0
- package/runtime/utils/server/get-url-with-proxied-params.ts +6 -0
- package/runtime/utils/server/parse-api-error.ts +14 -0
- package/runtime/utils/server/server-api-helper.ts +28 -0
- package/runtime/utils/validate-email.ts +4 -0
- package/runtime/utils/validate-password.ts +3 -0
- package/runtime/utils/validate-phone.ts +4 -0
- package/runtime/utils/validate-username.ts +4 -0
- package/runtime/utils/video-data-add-model-icon.ts +20 -0
- package/runtime/utils/vtt-helper.ts +86 -0
- package/types/authorization-forms.d.ts +16 -0
- package/types/breadcrumb-item.d.ts +4 -0
- package/types/button-sizes.d.ts +1 -0
- package/types/button-themes.d.ts +1 -0
- package/types/card-info.d.ts +22 -0
- package/types/category-card.d.ts +8 -0
- package/types/change-email-form.d.ts +3 -0
- package/types/change-password-form.d.ts +4 -0
- package/types/channel-card.d.ts +10 -0
- package/types/chips-item.d.ts +8 -0
- package/types/contacts-form.d.ts +10 -0
- package/types/contacts-scheme.d.ts +14 -0
- package/types/country.d.ts +5 -0
- package/types/css-breakpoints.d.ts +1 -0
- package/types/filter-scheme.d.ts +37 -0
- package/types/fluid-player.d.ts +226 -0
- package/types/gender.d.ts +5 -0
- package/types/group-categories.d.ts +15 -0
- package/types/index.d.ts +59 -0
- package/types/input-types.d.ts +1 -0
- package/types/link-item.d.ts +6 -0
- package/types/model-card.d.ts +7 -0
- package/types/model-filter-payload.d.ts +4 -0
- package/types/model-filter.d.ts +15 -0
- package/types/model-group.d.ts +5 -0
- package/types/model-tag.d.ts +5 -0
- package/types/multi-suggest.d.ts +105 -0
- package/types/navigation-items.d.ts +10 -0
- package/types/paginated-response.d.ts +8 -0
- package/types/parameter-model.d.ts +14 -0
- package/types/playlist-card.d.ts +16 -0
- package/types/playlist-data.d.ts +15 -0
- package/types/playlist-info-type.d.ts +28 -0
- package/types/playlist-video-form.d.ts +9 -0
- package/types/profile-data.d.ts +9 -0
- package/types/raw/raw-category-card.d.ts +23 -0
- package/types/raw/raw-category-info.d.ts +23 -0
- package/types/raw/raw-channel-card.d.ts +29 -0
- package/types/raw/raw-channel-info.d.ts +29 -0
- package/types/raw/raw-model-card.d.ts +53 -0
- package/types/raw/raw-model-info.d.ts +54 -0
- package/types/raw/raw-playlist-card.d.ts +27 -0
- package/types/raw/raw-playlist-data.d.ts +29 -0
- package/types/raw/raw-playlist-user.d.ts +24 -0
- package/types/raw/raw-playlist-video.d.ts +18 -0
- package/types/raw/raw-profile-data.d.ts +22 -0
- package/types/raw/raw-video-card.d.ts +78 -0
- package/types/raw/raw-video-data.d.ts +53 -0
- package/types/recovery-password-form.d.ts +4 -0
- package/types/related-phrases.d.ts +6 -0
- package/types/report-form.d.ts +9 -0
- package/types/report-scheme.d.ts +21 -0
- package/types/request-filters.d.ts +13 -0
- package/types/request-pagination.d.ts +5 -0
- package/types/search-top-models.d.ts +6 -0
- package/types/select-item.d.ts +10 -0
- package/types/tab-item.d.ts +6 -0
- package/types/thumbs-urls.d.ts +13 -0
- package/types/video-card.d.ts +18 -0
- 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,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,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
|
+
}
|