itube-specs 0.0.846 → 0.0.848
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.
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<component
|
|
57
57
|
v-if="!mini"
|
|
58
58
|
:is="component"
|
|
59
|
-
:to="
|
|
59
|
+
:to="channelLink"
|
|
60
60
|
class="card-video__logo-wrapper"
|
|
61
61
|
>
|
|
62
62
|
<UiImg
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<component
|
|
85
85
|
v-if="!mini && card.channelName"
|
|
86
86
|
:is="component"
|
|
87
|
-
:to="
|
|
87
|
+
:to="channelLink"
|
|
88
88
|
class="card-video__channel-wrapper"
|
|
89
89
|
>
|
|
90
90
|
<span
|
|
@@ -158,7 +158,7 @@ const NuxtLinkComponent = resolveComponent('NuxtLink');
|
|
|
158
158
|
|
|
159
159
|
const component = computed(() => props.card.channelName ? NuxtLinkComponent : 'div');
|
|
160
160
|
|
|
161
|
-
const
|
|
161
|
+
const { generateLink } = useGenerateLink();
|
|
162
162
|
|
|
163
163
|
const pageName = useGetPureRouteName();
|
|
164
164
|
const isChannelPage = computed(() => pageName === 'channels-channel');
|
|
@@ -203,7 +203,11 @@ const duration = computed(() => {
|
|
|
203
203
|
|
|
204
204
|
const rootPath = computed(() => props.playlistId ? `playlists/${props.playlistId}` : 'videos');
|
|
205
205
|
|
|
206
|
-
const link = computed(() =>
|
|
206
|
+
const link = computed(() => generateLink(`/${rootPath.value}/${props.card[ featureFlags.FetchByUrlEnabled ? 'url' : 'id' ]}`));
|
|
207
|
+
|
|
208
|
+
const channelLink = computed(() => props.card.channelName
|
|
209
|
+
? generateLink(`/channels/${convertString().toSlug(props.card.channelName)}`)
|
|
210
|
+
: undefined);
|
|
207
211
|
|
|
208
212
|
const slug = useSlug();
|
|
209
213
|
|
package/components/info/grid.vue
CHANGED
|
@@ -161,6 +161,16 @@ function isWarning(value: string) {
|
|
|
161
161
|
.info-grid__item.--link .info-grid__item-value {
|
|
162
162
|
background-color: $info-grid-item-value-bg--link;
|
|
163
163
|
color: $info-grid-item-value--link;
|
|
164
|
+
|
|
165
|
+
@include from-br(sm) {
|
|
166
|
+
transition: var(--transition) background-color;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.info-grid__item.--link:is(:hover, :focus-visible) .info-grid__item-value {
|
|
171
|
+
@include from-br(sm) {
|
|
172
|
+
background-color: $info-grid-item-value-link-bg--hover;
|
|
173
|
+
}
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
.info-grid__item:not(.--link) .info-grid__item-value {
|
|
@@ -50,12 +50,13 @@ const props = defineProps<{
|
|
|
50
50
|
}>();
|
|
51
51
|
|
|
52
52
|
const featureFlags = useRuntimeConfig().public.featureFlags;
|
|
53
|
+
const { generateLink } = useGenerateLink();
|
|
53
54
|
|
|
54
55
|
const emit = defineEmits<{
|
|
55
56
|
(eventName: 'subscribe'): void
|
|
56
57
|
}>();
|
|
57
58
|
|
|
58
|
-
const link = computed(() => `/channels/${convertString().toSlug(props.name)}`);
|
|
59
|
+
const link = computed(() => generateLink(`/channels/${convertString().toSlug(props.name)}`));
|
|
59
60
|
|
|
60
61
|
const initials = computed(() => getNameInitials(props.name));
|
|
61
62
|
|
|
@@ -40,6 +40,7 @@ const props = defineProps<{
|
|
|
40
40
|
}>();
|
|
41
41
|
|
|
42
42
|
const featureFlags = useRuntimeConfig().public.featureFlags;
|
|
43
|
+
const { generateLink } = useGenerateLink();
|
|
43
44
|
|
|
44
45
|
const emit = defineEmits<{
|
|
45
46
|
(eventName: 'click'): void
|
|
@@ -55,7 +56,7 @@ function onButtonClick() {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
const link = computed(() => `/channels/${convertString().toSlug(props.card.name)}`);
|
|
59
|
+
const link = computed(() => generateLink(`/channels/${convertString().toSlug(props.card.name)}`));
|
|
59
60
|
</script>
|
|
60
61
|
|
|
61
62
|
<style lang="scss">
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
/>
|
|
15
15
|
<div class="player-interface__wrapper">
|
|
16
16
|
<UiBtn
|
|
17
|
+
class="player-interface__button"
|
|
17
18
|
theme="muted"
|
|
18
19
|
size="s"
|
|
19
20
|
@click="onAddPlaylistClick"
|
|
@@ -190,11 +191,6 @@ onMounted(() => {
|
|
|
190
191
|
background-color: $video-interface-button-bg;
|
|
191
192
|
border-radius: $radius-lg;
|
|
192
193
|
color: $video-interface-button-text;
|
|
193
|
-
|
|
194
|
-
@include hover(color, background-color) {
|
|
195
|
-
background-color: $video-interface-button-bg--hover;
|
|
196
|
-
color: $video-interface-button-text--hover;
|
|
197
|
-
}
|
|
198
194
|
}
|
|
199
195
|
|
|
200
196
|
.player-interface__description {
|