itube-specs 0.0.682 → 0.0.683
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/composables/use-user.ts +2 -1
- package/package.json +1 -1
- package/runtime/utils/cleaners/clean-category-card.ts +1 -1
- package/runtime/utils/cleaners/clean-category-info.ts +1 -1
- package/runtime/utils/cleaners/clean-channel-card.ts +1 -1
- package/runtime/utils/cleaners/clean-channel-info.ts +1 -1
- package/runtime/utils/cleaners/clean-model-card.ts +1 -1
- package/runtime/utils/cleaners/clean-model-info.ts +1 -1
- package/runtime/utils/cleaners/clean-playlist-card.ts +1 -1
- package/runtime/utils/cleaners/clean-video-card.ts +1 -1
package/composables/use-user.ts
CHANGED
|
@@ -89,10 +89,11 @@ export const useUser = (apiService) => {
|
|
|
89
89
|
|
|
90
90
|
const recoveryPassword = async (form: IRecoveryPasswordForm) => {
|
|
91
91
|
try {
|
|
92
|
+
const {generateLink} = useGenerateLink();
|
|
92
93
|
await apiService.recoveryPassword(form);
|
|
93
94
|
snackbarTheme.value = 'success';
|
|
94
95
|
snackbarText.value = 'Password recovered';
|
|
95
|
-
await useRouter().push('/profile');
|
|
96
|
+
await useRouter().push(generateLink('/profile'));
|
|
96
97
|
} catch (err) {
|
|
97
98
|
showErrorSnack('Error while recovery password');
|
|
98
99
|
console.log(err, 'error change password');
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ export const cleanCategoryCard = (card: IRawCategoryCard): ICategoryCard => ({
|
|
|
5
5
|
name: card.name || '',
|
|
6
6
|
title: card.title || '',
|
|
7
7
|
videosCount: card.videosCount || 0,
|
|
8
|
-
thumbUrl: card.video_thumb_urls?.webp?.[ThumbSize.
|
|
8
|
+
thumbUrl: card.video_thumb_urls?.webp?.[ThumbSize.Medium] || '',
|
|
9
9
|
guid: card.guid || '',
|
|
10
10
|
description: card.description || '',
|
|
11
11
|
icon: card.icon || '',
|
|
@@ -7,7 +7,7 @@ export const cleanCategoryInfo = (card: IRawCategoryInfo): ICardInfo => ({
|
|
|
7
7
|
title: card.title || '',
|
|
8
8
|
videosCount: card.videosCount || 0,
|
|
9
9
|
description: card.description || '',
|
|
10
|
-
// img: card.video_thumb_urls?.webp?.[ThumbSize.
|
|
10
|
+
// img: card.video_thumb_urls?.webp?.[ThumbSize.Small] || '',
|
|
11
11
|
fullDescription: card.fullDescription || '',
|
|
12
12
|
related: convertCategoriesToChips(card.related || [], 'categories'),
|
|
13
13
|
metaDescription: card.meta_description || '',
|
|
@@ -9,6 +9,6 @@ export const cleanChannelCard = (card: IRawChannelCard): IChannelCard => ({
|
|
|
9
9
|
isNetwork: card.is_network || false,
|
|
10
10
|
updated: card.updated || 0,
|
|
11
11
|
avatarUrl: card.avatar_url || '',
|
|
12
|
-
thumbUrl: card.video_thumb_urls.webp?.[ThumbSize.
|
|
12
|
+
thumbUrl: card.video_thumb_urls.webp?.[ThumbSize.Medium] || '',
|
|
13
13
|
description: card.description || '',
|
|
14
14
|
})
|
|
@@ -9,6 +9,6 @@ export const cleanChannelInfo = (card: IRawChannelInfo): ICardInfo => ({
|
|
|
9
9
|
videosCount: card.videos_count || 0,
|
|
10
10
|
isNetwork: card.is_network || false,
|
|
11
11
|
updated: card.updated || 0,
|
|
12
|
-
img: card.avatar_url || card.video_thumb_urls.webp?.[ThumbSize.
|
|
12
|
+
img: card.avatar_url || card.video_thumb_urls.webp?.[ThumbSize.Small] || '',
|
|
13
13
|
tags: card.tags || [],
|
|
14
14
|
})
|
|
@@ -10,7 +10,7 @@ const age = (card: IRawModelCard) => card.parameters.find(item => item.name ===
|
|
|
10
10
|
export const cleanModelCard = (card: IRawModelCard): IModelCard => ({
|
|
11
11
|
title: card.title || '',
|
|
12
12
|
videosCount: card.videos_count || 0,
|
|
13
|
-
thumbUrl: card.video_thumb_urls?.webp?.[ThumbSize.
|
|
13
|
+
thumbUrl: card.video_thumb_urls?.webp?.[ThumbSize.Small] || '',
|
|
14
14
|
primaryImageUrl: card.primary_image_url || '',
|
|
15
15
|
guid: card.guid || '',
|
|
16
16
|
country: {
|
|
@@ -6,7 +6,7 @@ export const cleanModelInfo = (card: IRawModelInfo): ICardInfo => ({
|
|
|
6
6
|
description: card.description || '',
|
|
7
7
|
social: card.social || '',
|
|
8
8
|
videosCount: card.videos_count || 0,
|
|
9
|
-
img: card.video_thumb_urls?.webp?.[ThumbSize.
|
|
9
|
+
img: card.video_thumb_urls?.webp?.[ThumbSize.Small] || '',
|
|
10
10
|
parameters: card.parameters || '',
|
|
11
11
|
fullDescription: card.bio || '',
|
|
12
12
|
relatedNames: card.relatedNames || [],
|
|
@@ -7,7 +7,7 @@ export const cleanPlaylistCard = (card: IRawPlaylistCard): IPlaylistCard => ({
|
|
|
7
7
|
name: card.name || '',
|
|
8
8
|
username: card.username || '',
|
|
9
9
|
playlistType: card.playlist_type || '',
|
|
10
|
-
thumbUrls: card.thumbs?.map(item => item.urls.webp?.[ThumbSize.
|
|
10
|
+
thumbUrls: card.thumbs?.map(item => item.urls.webp?.[ThumbSize.Small] || ''),
|
|
11
11
|
videosCount: card.videos_count || 0,
|
|
12
12
|
firstVideoId: card.first_video_id || '',
|
|
13
13
|
searchTags: card.search_tags || '',
|
|
@@ -14,7 +14,7 @@ export const cleanVideoCard = (card: IRawVideoCard): IVideoCard => ({
|
|
|
14
14
|
channelName: card.channel?.name || '',
|
|
15
15
|
url: card.url || '',
|
|
16
16
|
previewUrl: card.preview_url || '',
|
|
17
|
-
thumbUrl: card.thumb_urls?.webp?.[ThumbSize.
|
|
17
|
+
thumbUrl: card.thumb_urls?.webp?.[ThumbSize.Medium] || '',
|
|
18
18
|
thumbUrls: card.thumb_urls || {},
|
|
19
19
|
md5: card.md5 || '',
|
|
20
20
|
thumbNum: card.thumb_number || 0,
|