itube-specs 0.0.795 → 0.0.796

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 (107) hide show
  1. package/composables/fetch/use-fetch-categories-by-letter.ts +15 -15
  2. package/composables/fetch/use-fetch-categories-by-phrase.ts +18 -18
  3. package/composables/fetch/use-fetch-categories-group-by-letter.ts +13 -13
  4. package/composables/fetch/use-fetch-channels-by-model.ts +18 -18
  5. package/composables/fetch/use-fetch-channels-by-name.ts +15 -15
  6. package/composables/fetch/use-fetch-channels-by-network-name.ts +30 -30
  7. package/composables/fetch/use-fetch-channels.ts +31 -31
  8. package/composables/fetch/use-fetch-dictionaries-countries.ts +13 -13
  9. package/composables/fetch/use-fetch-dictionaries-genders.ts +13 -13
  10. package/composables/fetch/use-fetch-groups-categories-lazy.ts +15 -15
  11. package/composables/fetch/use-fetch-groups-categories.ts +13 -13
  12. package/composables/fetch/use-fetch-model-by-name.ts +15 -15
  13. package/composables/fetch/use-fetch-models-by-category.ts +17 -17
  14. package/composables/fetch/use-fetch-models-by-channel.ts +17 -17
  15. package/composables/fetch/use-fetch-models-by-letter.ts +40 -40
  16. package/composables/fetch/use-fetch-models-by-phrases.ts +32 -32
  17. package/composables/fetch/use-fetch-models-by-tag.ts +1 -1
  18. package/composables/fetch/use-fetch-models-related.ts +24 -24
  19. package/composables/fetch/use-fetch-models.ts +38 -38
  20. package/composables/fetch/use-fetch-multi-suggest.ts +27 -27
  21. package/composables/fetch/use-fetch-playlists-by-id.ts +15 -15
  22. package/composables/fetch/use-fetch-playlists-by-niche.ts +30 -30
  23. package/composables/fetch/use-fetch-playlists-get-videos-by-id.ts +29 -29
  24. package/composables/fetch/use-fetch-related-searches.ts +11 -11
  25. package/composables/fetch/use-fetch-related-videos.ts +27 -27
  26. package/composables/fetch/use-fetch-top-chips-models.ts +15 -15
  27. package/composables/fetch/use-fetch-top-models.ts +19 -19
  28. package/composables/fetch/use-fetch-top-random-categories.ts +13 -13
  29. package/composables/fetch/use-fetch-top-random-full.ts +17 -17
  30. package/composables/fetch/use-fetch-video-referer-phrases.ts +34 -34
  31. package/composables/fetch/use-fetch-videos-by-categories.ts +34 -34
  32. package/composables/fetch/use-fetch-videos-by-channel.ts +34 -34
  33. package/composables/fetch/use-fetch-videos-by-model-and-channel.ts +40 -40
  34. package/composables/fetch/use-fetch-videos-by-model-and-tag.ts +40 -40
  35. package/composables/fetch/use-fetch-videos-by-model.ts +34 -34
  36. package/composables/fetch/use-fetch-videos-by-tag.ts +34 -34
  37. package/composables/fetch/use-fetch-videos-search-by-niche.ts +32 -32
  38. package/composables/use-api-fetcher-no-cache.ts +24 -24
  39. package/composables/use-api-fetcher.ts +19 -19
  40. package/composables/use-get-videos-filter-request.ts +28 -28
  41. package/composables/use-lang.ts +8 -8
  42. package/composables/use-meta.ts +54 -54
  43. package/composables/use-noindex.ts +8 -8
  44. package/composables/use-report-popup.ts +19 -19
  45. package/lib/contact-forms-scheme.ts +92 -92
  46. package/lib/contacts/report-issue-items.ts +3 -3
  47. package/lib/contacts/report-malware-items.ts +4 -4
  48. package/lib/contacts/report-reasons-items.ts +10 -10
  49. package/lib/contacts/report-wrong-items.ts +4 -4
  50. package/lib/report-forms-scheme.ts +259 -259
  51. package/lib/scheme/categories-navigation.ts +8 -8
  52. package/lib/scheme/select-added-items.ts +41 -41
  53. package/lib/scheme/select-duration-items.ts +35 -35
  54. package/nuxt.config.ts +18 -18
  55. package/package.json +1 -1
  56. package/runtime/constants/adverts.ts +5 -5
  57. package/runtime/constants/async-data.ts +57 -57
  58. package/runtime/constants/languages.ts +12 -12
  59. package/runtime/constants/niche.ts +3 -3
  60. package/runtime/constants/playlist-type.ts +2 -2
  61. package/runtime/utils/check-device-width.ts +18 -18
  62. package/runtime/utils/cleaners/clean-mini-category-card.ts +5 -5
  63. package/runtime/utils/cleaners/clean-model-card.ts +20 -20
  64. package/runtime/utils/cleaners/clean-video-data.ts +50 -50
  65. package/runtime/utils/converters/convert-date-to-timestamp.ts +22 -22
  66. package/runtime/utils/converters/convert-query-categories.ts +2 -2
  67. package/runtime/utils/converters/convert-string-array-to-chips.ts +6 -6
  68. package/runtime/utils/converters/convert-string.ts +0 -0
  69. package/runtime/utils/server/age.ts +55 -55
  70. package/runtime/utils/server/api-helper.ts +26 -26
  71. package/runtime/utils/server/get-url-with-proxied-params.ts +3 -3
  72. package/runtime/utils/server/server-api-helper.ts +15 -15
  73. package/runtime/utils/validate-email.ts +2 -2
  74. package/services/api/categories.service.ts +222 -222
  75. package/services/api/dictionaries.service.ts +28 -28
  76. package/services/api/models.service.ts +297 -297
  77. package/types/authorization-forms.d.ts +8 -8
  78. package/types/burger-menu-item.d.ts +5 -5
  79. package/types/change-email-form.d.ts +1 -1
  80. package/types/change-password-form.d.ts +2 -2
  81. package/types/chips-item.d.ts +8 -8
  82. package/types/contacts-scheme.d.ts +9 -9
  83. package/types/country.d.ts +5 -5
  84. package/types/fluid-player.d.ts +176 -176
  85. package/types/gender.d.ts +4 -4
  86. package/types/group-categories.d.ts +10 -10
  87. package/types/info-chips.d.ts +2 -2
  88. package/types/model-card.d.ts +15 -15
  89. package/types/model-filter-payload.d.ts +2 -2
  90. package/types/model-filter.d.ts +10 -10
  91. package/types/model-group.d.ts +4 -4
  92. package/types/model-tag.d.ts +3 -3
  93. package/types/playlist-short.d.ts +2 -2
  94. package/types/playlist-video-form.d.ts +7 -7
  95. package/types/popular-tags.d.ts +2 -2
  96. package/types/raw/raw-playlist-user.d.ts +20 -20
  97. package/types/raw/raw-thumbs-urls.d.ts +2 -2
  98. package/types/raw/raw-video-card.d.ts +70 -70
  99. package/types/raw/raw-video-data.d.ts +50 -50
  100. package/types/recovery-password-form.d.ts +2 -2
  101. package/types/report-request.d.ts +2 -2
  102. package/types/report-scheme.d.ts +18 -18
  103. package/types/request-filters.d.ts +10 -10
  104. package/types/request-pagination.d.ts +2 -2
  105. package/types/search-top-models.d.ts +4 -4
  106. package/types/site.d.ts +15 -15
  107. package/types/thumbs-urls.d.ts +1 -1
@@ -6,263 +6,263 @@ import { reportWrongItems } from './contacts/report-wrong-items';
6
6
  import { reportMalwareItems } from './contacts/report-malware-items';
7
7
 
8
8
  export const reportFormsScheme: Array<IReportScheme> = [
9
- {
10
- subject: ReportFormsSubjects.DMCA,
11
- title: 'dmca_title',
12
- items: [
13
- {
14
- type: 'text',
15
- value: 'firstName',
16
- label: 'first_name',
17
- hideLabel: true,
18
- placeholder: 'first_name',
19
- required: true,
20
- marginClass: '_mb-12'
21
- },
22
- {
23
- type: 'text',
24
- value: 'lastName',
25
- label: 'last_name',
26
- hideLabel: true,
27
- placeholder: 'last_name',
28
- required: true,
29
- marginClass: '_mb-12'
30
- },
31
- {
32
- type: 'text',
33
- value: 'company',
34
- label: 'your_company',
35
- hideLabel: true,
36
- placeholder: 'your_company',
37
- wide: true,
38
- marginClass: '_mb-12'
39
- },
40
- {
41
- type: 'text',
42
- value: 'address',
43
- label: 'address',
44
- hideLabel: true,
45
- placeholder: 'address',
46
- required: true,
47
- marginClass: '_mb-12'
48
- },
49
- {
50
- type: 'tel',
51
- value: 'phone',
52
- label: 'phone',
53
- hideLabel: true,
54
- placeholder: 'phone',
55
- required: true,
56
- marginClass: '_mb-12'
57
- },
58
- {
59
- type: 'textarea',
60
- value: 'message',
61
- label: 'message',
62
- required: true,
63
- wide: true,
64
- marginClass: '_mb-12'
65
- },
66
- {
67
- type: 'email',
68
- value: 'from',
69
- label: 'email',
70
- hideLabel: true,
71
- placeholder: 'email',
72
- required: true,
73
- wide: true,
74
- marginClass: '_mb-16'
75
- },
76
- {
77
- type: 'checkbox',
78
- value: 'confirmTrue',
79
- required: true,
80
- wide: true,
81
- text: 'confirm_text',
82
- marginClass: '_mb-12'
83
- },
84
- {
85
- type: 'checkbox',
86
- value: 'confirmOwner',
87
- required: true,
88
- wide: true,
89
- text: 'confirmowner_text',
90
- marginClass: '_mb-12'
91
- },
92
- ]
93
- },
94
- {
95
- subject: ReportFormsSubjects.Inappropriate,
96
- title: 'inappropriate_title',
97
- text: 'inappropriate_text',
98
- hasReason: true,
99
- items: [
100
- ...(reportReasonsItems).map((value, index) => ({
101
- type: 'radio',
102
- value,
103
- text: `reason_inappropriate_${index + 1}`,
104
- wide: true,
105
- marginClass: '_mb-12'
106
- })),
107
- {
108
- type: 'textarea',
109
- value: 'message',
110
- label: 'message',
111
- required: true,
112
- wide: true,
113
- marginClass: '_mb-12 _mt-4'
114
- },
115
- {
116
- type: 'email',
117
- value: 'from',
118
- label: 'email',
119
- hideLabel: true,
120
- placeholder: 'email',
121
- required: true,
122
- marginClass: '_mb-16'
123
- },
124
- {
125
- type: 'text',
126
- value: 'name',
127
- label: 'name',
128
- hideLabel: true,
129
- placeholder: 'name',
130
- marginClass: '_mb-16'
131
- },
132
- ]
133
- },
134
- {
135
- subject: ReportFormsSubjects.Issue,
136
- title: 'issue_title',
137
- text: 'issue_text',
138
- hasReason: true,
139
- items: [
140
- ...(reportIssueItems).map((value, index) => ({
141
- type: 'radio',
142
- value,
143
- text: `reason_issue_${index + 1}`,
144
- wide: true,
145
- marginClass: '_mb-12'
146
- })),
147
- {
148
- type: 'textarea',
149
- value: 'message',
150
- label: 'message',
151
- required: true,
152
- wide: true,
153
- marginClass: '_mb-12 _mt-4'
154
- },
155
- {
156
- type: 'email',
157
- value: 'from',
158
- label: 'email',
159
- hideLabel: true,
160
- placeholder: 'email',
161
- required: true,
162
- marginClass: '_mb-16'
163
- },
164
- {
165
- type: 'text',
166
- value: 'name',
167
- label: 'name',
168
- hideLabel: true,
169
- placeholder: 'name',
170
- marginClass: '_mb-16'
171
- },
172
- ],
173
- },
174
- {
175
- subject: ReportFormsSubjects.Wrong,
176
- title: 'wrong_title',
177
- text: 'wrong_text',
178
- hasReason: true,
179
- items: [
180
- ...(reportWrongItems).map((value, index) => ({
181
- type: 'radio',
182
- value,
183
- text: `reason_wrong_${index + 1}`,
184
- wide: true,
185
- marginClass: '_mb-12'
186
- })),
187
- {
188
- type: 'email',
189
- value: 'from',
190
- label: 'email',
191
- hideLabel: true,
192
- placeholder: 'email',
193
- required: true,
194
- marginClass: '_mb-16 _mt-4'
195
- },
196
- {
197
- type: 'text',
198
- value: 'name',
199
- label: 'name',
200
- hideLabel: true,
201
- placeholder: 'name',
202
- marginClass: '_mb-16 _mt-4'
203
- },
204
- ],
205
- },
206
- {
207
- subject: ReportFormsSubjects.Malware,
208
- title: 'malware_title',
209
- text: 'malware_text',
210
- hasReason: true,
211
- list: [
212
- ...Array.from({ length: 4 }, (_, i) => ({
213
- text: `malware_list${i + 1}`,
214
- })),
215
- ],
216
- subtext: 'malware_subtext',
217
- items: [
218
- {
219
- type: 'textarea',
220
- value: 'message',
221
- label: 'message',
222
- required: true,
223
- wide: true,
224
- marginClass: '_mb-16'
225
- },
226
- {
227
- type: 'heading',
228
- value: 'malwareReasonHeading',
229
- text: 'malware_reason_text',
230
- wide: true
231
- },
232
- ...(reportMalwareItems).map((value, index)=> ({
233
- type: 'radio',
234
- value,
235
- text: `reason_malware_${index + 1}`,
236
- wide: true,
237
- marginClass: '_mb-12'
238
- })),
239
- {
240
- type: 'text',
241
- value: 'antivirus',
242
- label: 'antivirus',
243
- hideLabel: true,
244
- placeholder: 'antivirus',
245
- required: true,
246
- wide: true,
247
- marginClass: '_mt-4 _mb-12'
248
- },
249
- {
250
- type: 'email',
251
- value: 'from',
252
- label: 'email',
253
- hideLabel: true,
254
- placeholder: 'email',
255
- required: true,
256
- marginClass: '_mb-16'
257
- },
258
- {
259
- type: 'text',
260
- value: 'name',
261
- label: 'name',
262
- hideLabel: true,
263
- placeholder: 'name',
264
- marginClass: '_mb-16'
265
- },
266
- ],
267
- },
9
+ {
10
+ subject: ReportFormsSubjects.DMCA,
11
+ title: 'dmca_title',
12
+ items: [
13
+ {
14
+ type: 'text',
15
+ value: 'firstName',
16
+ label: 'first_name',
17
+ hideLabel: true,
18
+ placeholder: 'first_name',
19
+ required: true,
20
+ marginClass: '_mb-12'
21
+ },
22
+ {
23
+ type: 'text',
24
+ value: 'lastName',
25
+ label: 'last_name',
26
+ hideLabel: true,
27
+ placeholder: 'last_name',
28
+ required: true,
29
+ marginClass: '_mb-12'
30
+ },
31
+ {
32
+ type: 'text',
33
+ value: 'company',
34
+ label: 'your_company',
35
+ hideLabel: true,
36
+ placeholder: 'your_company',
37
+ wide: true,
38
+ marginClass: '_mb-12'
39
+ },
40
+ {
41
+ type: 'text',
42
+ value: 'address',
43
+ label: 'address',
44
+ hideLabel: true,
45
+ placeholder: 'address',
46
+ required: true,
47
+ marginClass: '_mb-12'
48
+ },
49
+ {
50
+ type: 'tel',
51
+ value: 'phone',
52
+ label: 'phone',
53
+ hideLabel: true,
54
+ placeholder: 'phone',
55
+ required: true,
56
+ marginClass: '_mb-12'
57
+ },
58
+ {
59
+ type: 'textarea',
60
+ value: 'message',
61
+ label: 'message',
62
+ required: true,
63
+ wide: true,
64
+ marginClass: '_mb-12'
65
+ },
66
+ {
67
+ type: 'email',
68
+ value: 'from',
69
+ label: 'email',
70
+ hideLabel: true,
71
+ placeholder: 'email',
72
+ required: true,
73
+ wide: true,
74
+ marginClass: '_mb-16'
75
+ },
76
+ {
77
+ type: 'checkbox',
78
+ value: 'confirmTrue',
79
+ required: true,
80
+ wide: true,
81
+ text: 'confirm_text',
82
+ marginClass: '_mb-12'
83
+ },
84
+ {
85
+ type: 'checkbox',
86
+ value: 'confirmOwner',
87
+ required: true,
88
+ wide: true,
89
+ text: 'confirmowner_text',
90
+ marginClass: '_mb-12'
91
+ },
92
+ ]
93
+ },
94
+ {
95
+ subject: ReportFormsSubjects.Inappropriate,
96
+ title: 'inappropriate_title',
97
+ text: 'inappropriate_text',
98
+ hasReason: true,
99
+ items: [
100
+ ...(reportReasonsItems).map((value, index) => ({
101
+ type: 'radio',
102
+ value,
103
+ text: `reason_inappropriate_${index + 1}`,
104
+ wide: true,
105
+ marginClass: '_mb-12'
106
+ })),
107
+ {
108
+ type: 'textarea',
109
+ value: 'message',
110
+ label: 'message',
111
+ required: true,
112
+ wide: true,
113
+ marginClass: '_mb-12 _mt-4'
114
+ },
115
+ {
116
+ type: 'email',
117
+ value: 'from',
118
+ label: 'email',
119
+ hideLabel: true,
120
+ placeholder: 'email',
121
+ required: true,
122
+ marginClass: '_mb-16'
123
+ },
124
+ {
125
+ type: 'text',
126
+ value: 'name',
127
+ label: 'name',
128
+ hideLabel: true,
129
+ placeholder: 'name',
130
+ marginClass: '_mb-16'
131
+ },
132
+ ]
133
+ },
134
+ {
135
+ subject: ReportFormsSubjects.Issue,
136
+ title: 'issue_title',
137
+ text: 'issue_text',
138
+ hasReason: true,
139
+ items: [
140
+ ...(reportIssueItems).map((value, index) => ({
141
+ type: 'radio',
142
+ value,
143
+ text: `reason_issue_${index + 1}`,
144
+ wide: true,
145
+ marginClass: '_mb-12'
146
+ })),
147
+ {
148
+ type: 'textarea',
149
+ value: 'message',
150
+ label: 'message',
151
+ required: true,
152
+ wide: true,
153
+ marginClass: '_mb-12 _mt-4'
154
+ },
155
+ {
156
+ type: 'email',
157
+ value: 'from',
158
+ label: 'email',
159
+ hideLabel: true,
160
+ placeholder: 'email',
161
+ required: true,
162
+ marginClass: '_mb-16'
163
+ },
164
+ {
165
+ type: 'text',
166
+ value: 'name',
167
+ label: 'name',
168
+ hideLabel: true,
169
+ placeholder: 'name',
170
+ marginClass: '_mb-16'
171
+ },
172
+ ],
173
+ },
174
+ {
175
+ subject: ReportFormsSubjects.Wrong,
176
+ title: 'wrong_title',
177
+ text: 'wrong_text',
178
+ hasReason: true,
179
+ items: [
180
+ ...(reportWrongItems).map((value, index) => ({
181
+ type: 'radio',
182
+ value,
183
+ text: `reason_wrong_${index + 1}`,
184
+ wide: true,
185
+ marginClass: '_mb-12'
186
+ })),
187
+ {
188
+ type: 'email',
189
+ value: 'from',
190
+ label: 'email',
191
+ hideLabel: true,
192
+ placeholder: 'email',
193
+ required: true,
194
+ marginClass: '_mb-16 _mt-4'
195
+ },
196
+ {
197
+ type: 'text',
198
+ value: 'name',
199
+ label: 'name',
200
+ hideLabel: true,
201
+ placeholder: 'name',
202
+ marginClass: '_mb-16 _mt-4'
203
+ },
204
+ ],
205
+ },
206
+ {
207
+ subject: ReportFormsSubjects.Malware,
208
+ title: 'malware_title',
209
+ text: 'malware_text',
210
+ hasReason: true,
211
+ list: [
212
+ ...Array.from({ length: 4 }, (_, i) => ({
213
+ text: `malware_list${i + 1}`,
214
+ })),
215
+ ],
216
+ subtext: 'malware_subtext',
217
+ items: [
218
+ {
219
+ type: 'textarea',
220
+ value: 'message',
221
+ label: 'message',
222
+ required: true,
223
+ wide: true,
224
+ marginClass: '_mb-16'
225
+ },
226
+ {
227
+ type: 'heading',
228
+ value: 'malwareReasonHeading',
229
+ text: 'malware_reason_text',
230
+ wide: true
231
+ },
232
+ ...(reportMalwareItems).map((value, index)=> ({
233
+ type: 'radio',
234
+ value,
235
+ text: `reason_malware_${index + 1}`,
236
+ wide: true,
237
+ marginClass: '_mb-12'
238
+ })),
239
+ {
240
+ type: 'text',
241
+ value: 'antivirus',
242
+ label: 'antivirus',
243
+ hideLabel: true,
244
+ placeholder: 'antivirus',
245
+ required: true,
246
+ wide: true,
247
+ marginClass: '_mt-4 _mb-12'
248
+ },
249
+ {
250
+ type: 'email',
251
+ value: 'from',
252
+ label: 'email',
253
+ hideLabel: true,
254
+ placeholder: 'email',
255
+ required: true,
256
+ marginClass: '_mb-16'
257
+ },
258
+ {
259
+ type: 'text',
260
+ value: 'name',
261
+ label: 'name',
262
+ hideLabel: true,
263
+ placeholder: 'name',
264
+ marginClass: '_mb-16'
265
+ },
266
+ ],
267
+ },
268
268
  ];
@@ -1,12 +1,12 @@
1
1
  import type { IChipsItem } from '../../types';
2
2
 
3
3
  export const categoriesNavigation: Array<IChipsItem> = [
4
- {
5
- title: 'grouped',
6
- value: '/categories',
7
- },
8
- {
9
- title: 'all_categories',
10
- value: '/categories/all',
11
- },
4
+ {
5
+ title: 'grouped',
6
+ value: '/categories',
7
+ },
8
+ {
9
+ title: 'all_categories',
10
+ value: '/categories/all',
11
+ },
12
12
  ];
@@ -1,45 +1,45 @@
1
1
  import type { ISelectItem } from '../../types';
2
2
 
3
3
  export const selectAddedItems: Array<ISelectItem> = [
4
- {
5
- title: 'all',
6
- key: 'added',
7
- value: 'all',
8
- },
9
- {
10
- title: '1_day_ago',
11
- key: 'added',
12
- value: '1d',
13
- query: '1d',
14
- },
15
- {
16
- title: '3_day_ago',
17
- key: 'added',
18
- value: '3d',
19
- query: '3d',
20
- },
21
- {
22
- title: '7_day_ago',
23
- key: 'added',
24
- value: '7d',
25
- query: '7d',
26
- },
27
- {
28
- title: '1_month_ago',
29
- key: 'added',
30
- value: '30d',
31
- query: '30d',
32
- },
33
- {
34
- title: '3_months_ago',
35
- key: 'added',
36
- value: '90d',
37
- query: '90d',
38
- },
39
- {
40
- title: 'other_1_year_ago',
41
- key: 'added',
42
- value: '360d',
43
- query: '360d',
44
- },
4
+ {
5
+ title: 'all',
6
+ key: 'added',
7
+ value: 'all',
8
+ },
9
+ {
10
+ title: '1_day_ago',
11
+ key: 'added',
12
+ value: '1d',
13
+ query: '1d',
14
+ },
15
+ {
16
+ title: '3_day_ago',
17
+ key: 'added',
18
+ value: '3d',
19
+ query: '3d',
20
+ },
21
+ {
22
+ title: '7_day_ago',
23
+ key: 'added',
24
+ value: '7d',
25
+ query: '7d',
26
+ },
27
+ {
28
+ title: '1_month_ago',
29
+ key: 'added',
30
+ value: '30d',
31
+ query: '30d',
32
+ },
33
+ {
34
+ title: '3_months_ago',
35
+ key: 'added',
36
+ value: '90d',
37
+ query: '90d',
38
+ },
39
+ {
40
+ title: 'other_1_year_ago',
41
+ key: 'added',
42
+ value: '360d',
43
+ query: '360d',
44
+ },
45
45
  ];