itube-specs 0.0.810 → 0.0.812
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/components/card/channel.vue +1 -1
- package/components/card/playlist.vue +1 -1
- package/components/card/video/index.vue +1 -1
- package/components/filter/selects.vue +1 -1
- package/components/layout/burger.vue +1 -1
- package/components/layout/extra-links.vue +1 -1
- package/components/layout/header-user.vue +1 -1
- package/components/layout/nav.vue +1 -1
- package/lib/css-breakpoints.ts +15 -0
- package/lib/index.ts +4 -0
- package/lib/scheme/additional-links-items.ts +24 -0
- package/lib/scheme/navigation-items.ts +78 -0
- package/lib/scheme/profile-navigation-items.ts +47 -0
- package/nuxt.config.ts +9 -0
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<script setup lang="ts">
|
|
62
62
|
import { convertString, formatDate } from '../../runtime';
|
|
63
63
|
import type { IChannelCard } from '../../types';
|
|
64
|
-
import { CSS_BREAKPOINTS } from '
|
|
64
|
+
import { CSS_BREAKPOINTS } from '../../lib/css-breakpoints';
|
|
65
65
|
|
|
66
66
|
const props = defineProps<{
|
|
67
67
|
card: IChannelCard
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
import { formatDate, ThumbSize } from '../../runtime';
|
|
177
177
|
import type { IPlaylistCard, IProfileData, IThumbUrls } from '../../types';
|
|
178
178
|
import { AuthorizationApiService } from '../../services/api/authorization.service';
|
|
179
|
-
import { CSS_BREAKPOINTS } from '
|
|
179
|
+
import { CSS_BREAKPOINTS } from '../../lib/css-breakpoints';
|
|
180
180
|
|
|
181
181
|
const props = defineProps<{
|
|
182
182
|
card: IPlaylistCard
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
<script setup lang="ts">
|
|
139
139
|
import type { IVideoCard } from '../../../types';
|
|
140
140
|
import { convertString, getDuration } from '../../../runtime';
|
|
141
|
-
import { CSS_BREAKPOINTS } from '
|
|
141
|
+
import { CSS_BREAKPOINTS } from '../../../lib/css-breakpoints';
|
|
142
142
|
|
|
143
143
|
const featureFlags = useRuntimeConfig().public.featureFlags;
|
|
144
144
|
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
import type { IModelFilter } from '../../types';
|
|
112
112
|
import { onClickOutside } from '@vueuse/core';
|
|
113
113
|
import { convertString, checkDeviceWidth } from '../../runtime';
|
|
114
|
-
import { CSS_BREAKPOINTS } from '
|
|
114
|
+
import { CSS_BREAKPOINTS } from '../../lib/css-breakpoints';
|
|
115
115
|
|
|
116
116
|
const props = defineProps<{
|
|
117
117
|
filters: IModelFilter[]
|
|
@@ -81,7 +81,7 @@ import { AuthSteps, onBackdropClick, checkDeviceWidth } from '../../runtime';
|
|
|
81
81
|
import type { CssBreakpoints, IProfileData } from '../../types';
|
|
82
82
|
import { AuthorizationApiService } from '../../services/api/authorization.service';
|
|
83
83
|
|
|
84
|
-
import { getNavigationItems } from '
|
|
84
|
+
import { getNavigationItems } from '../../lib';
|
|
85
85
|
|
|
86
86
|
const { t } = useI18n();
|
|
87
87
|
const { generateLink } = useGenerateLink();
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<script setup lang="ts">
|
|
110
110
|
import { onClickOutside } from '@vueuse/core';
|
|
111
111
|
import { AuthorizationApiService } from '../../services/api/authorization.service';
|
|
112
|
-
import { profileNavigationItems } from '
|
|
112
|
+
import { profileNavigationItems } from '../../lib';
|
|
113
113
|
import type { IProfileData } from '../../types';
|
|
114
114
|
|
|
115
115
|
const userRef = ref<HTMLElement>();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type CssBreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Брейкпоинты на проекте,
|
|
5
|
+
* должны совпадать с тем что в CSS assets/scss/_breakpoints.scss
|
|
6
|
+
*
|
|
7
|
+
* Используется для свайпера, для установки брейкпоинтов у него.
|
|
8
|
+
*/
|
|
9
|
+
export const CSS_BREAKPOINTS: Record<CssBreakpointName, number> = {
|
|
10
|
+
xs: 475,
|
|
11
|
+
sm: 960,
|
|
12
|
+
md: 1350,
|
|
13
|
+
lg: 1600,
|
|
14
|
+
xl: 2560,
|
|
15
|
+
};
|
package/lib/index.ts
CHANGED
|
@@ -12,3 +12,7 @@ export * from './scheme/sort-models';
|
|
|
12
12
|
export * from './scheme/sort-playlists';
|
|
13
13
|
export * from './scheme/sort-items-default';
|
|
14
14
|
export * from './scheme/categories-navigation';
|
|
15
|
+
export * from './scheme/navigation-items';
|
|
16
|
+
export * from './scheme/profile-navigation-items';
|
|
17
|
+
export * from './scheme/additional-links-items';
|
|
18
|
+
export * from './css-breakpoints';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ILinkItem } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const additionalLinksItems: ILinkItem[] = [
|
|
4
|
+
{
|
|
5
|
+
title: 'contact',
|
|
6
|
+
name: '/contacts',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
title: 'terms',
|
|
10
|
+
name: '/terms',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
title: 'dmca',
|
|
14
|
+
name: '/dmca',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: '2257',
|
|
18
|
+
name: '/2257',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: 'privacy',
|
|
22
|
+
name: '/policy',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { INavigationItems } from '../../types';
|
|
2
|
+
|
|
3
|
+
/** Пункты главной навигации; часть завязана на фича-флаги, поэтому строится в setup-контексте. */
|
|
4
|
+
export function getNavigationItems(): INavigationItems[] {
|
|
5
|
+
const { featureFlags } = useRuntimeConfig().public;
|
|
6
|
+
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
title: 'videos',
|
|
10
|
+
link: '/',
|
|
11
|
+
icon: 'video-camera',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: 'categories',
|
|
15
|
+
link: '/categories',
|
|
16
|
+
icon: 'grid',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: 'gay_models',
|
|
20
|
+
link: '/models',
|
|
21
|
+
icon: 'user',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'channels',
|
|
25
|
+
link: '/channels',
|
|
26
|
+
icon: 'play-circle',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'playlists',
|
|
30
|
+
link: '/playlists',
|
|
31
|
+
icon: 'list',
|
|
32
|
+
},
|
|
33
|
+
...(featureFlags.FeatureLiveEnabled ? [{
|
|
34
|
+
title: 'live_sex',
|
|
35
|
+
link: '/2257',
|
|
36
|
+
icon: 'photo-cam',
|
|
37
|
+
accent: true,
|
|
38
|
+
}] : []),
|
|
39
|
+
...(featureFlags.FeatureHistoryEnabled ? [{
|
|
40
|
+
title: 'history',
|
|
41
|
+
link: '/2257',
|
|
42
|
+
icon: 'time',
|
|
43
|
+
top: true,
|
|
44
|
+
}] : []),
|
|
45
|
+
...(featureFlags.FeatureFavoritesEnabled ? [{
|
|
46
|
+
title: 'favorites',
|
|
47
|
+
icon: 'heart',
|
|
48
|
+
top: true,
|
|
49
|
+
childs: [
|
|
50
|
+
{
|
|
51
|
+
title: 'videos',
|
|
52
|
+
icon: 'video-camera',
|
|
53
|
+
link: '/favorites',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: 'watch_later',
|
|
57
|
+
icon: 'time',
|
|
58
|
+
link: '/2257',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: 'playlists',
|
|
62
|
+
icon: 'list',
|
|
63
|
+
link: '/2257',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: 'models',
|
|
67
|
+
icon: 'user',
|
|
68
|
+
link: '/2257',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: 'channels',
|
|
72
|
+
icon: 'play-circle',
|
|
73
|
+
link: '/2257',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
}] : []),
|
|
77
|
+
];
|
|
78
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const profileNavigationItems = [
|
|
2
|
+
{
|
|
3
|
+
value: '/user/profile?edit=true',
|
|
4
|
+
title: 'history',
|
|
5
|
+
icon: 'time',
|
|
6
|
+
group: 1,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
value: '/user/profile?edit=true',
|
|
10
|
+
title: 'favorites',
|
|
11
|
+
icon: 'heart',
|
|
12
|
+
group: 1,
|
|
13
|
+
childs: [
|
|
14
|
+
{
|
|
15
|
+
value: '/user/profile?edit=true',
|
|
16
|
+
title: 'videos',
|
|
17
|
+
icon: 'video-camera',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: '/user/profile?edit=true',
|
|
21
|
+
title: 'watch_later',
|
|
22
|
+
icon: 'time',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: '/user/profile?edit=true',
|
|
26
|
+
title: 'playlists',
|
|
27
|
+
icon: 'list',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: '/user/profile?edit=true',
|
|
31
|
+
title: 'models',
|
|
32
|
+
icon: 'user',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: '/user/profile?edit=true',
|
|
36
|
+
title: 'channels',
|
|
37
|
+
icon: 'play-circle',
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: '/user/settings',
|
|
43
|
+
title: 'edit_profile',
|
|
44
|
+
icon: 'settings',
|
|
45
|
+
group: 2,
|
|
46
|
+
},
|
|
47
|
+
];
|
package/nuxt.config.ts
CHANGED
|
@@ -20,4 +20,13 @@ export default defineNuxtConfig({
|
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
+
// Пустые контейнеры-заглушки: код слоя (adv/sentry/fetch) читает эти ключи, поэтому
|
|
24
|
+
// они должны существовать и в standalone-окружении слоя (иначе `undefined.X` крашит CI
|
|
25
|
+
// и свежие форки). Значения живут в проекте — его runtimeConfig deep-merge'ится поверх.
|
|
26
|
+
runtimeConfig: {
|
|
27
|
+
public: {
|
|
28
|
+
featureFlags: {},
|
|
29
|
+
adsConfig: {}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
23
32
|
});
|