itube-specs 0.0.207 → 0.0.209
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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="f-info-grid">
|
|
3
|
+
<div
|
|
4
|
+
v-for="(item, index) in card.parameters"
|
|
5
|
+
class="f-info-grid__item"
|
|
6
|
+
:key="`f-info-grid-item-${index}`"
|
|
7
|
+
>
|
|
8
|
+
<span class="f-info-grid__item-title">{{ item.title }}</span>
|
|
9
|
+
<p class="f-info-grid__item-values">
|
|
10
|
+
<NuxtLink
|
|
11
|
+
v-for="(value, subindex) in getValue(item.values)"
|
|
12
|
+
:key="`model-value-${index}${subindex}`"
|
|
13
|
+
class="f-info-grid__item-value"
|
|
14
|
+
:to="link(item, value.name)"
|
|
15
|
+
>{{ value.title }}{{ subindex < getValue(item.values).length - 1 ? ', ' : ''}}</NuxtLink>
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import type { ICardInfo, IParameterModel, IParameterModelValue } from '../../types';
|
|
23
|
+
|
|
24
|
+
defineProps<{
|
|
25
|
+
card: ICardInfo
|
|
26
|
+
}>();
|
|
27
|
+
|
|
28
|
+
function getValue(value: IParameterModelValue[]) {
|
|
29
|
+
return value.map(item => item);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function link(item: IParameterModel, value: string) {
|
|
33
|
+
const formattedValue = value.toLowerCase().replace(/\s+/g, '+');
|
|
34
|
+
const groupNumber = `&group=${item.group.order}`;
|
|
35
|
+
|
|
36
|
+
if (item.kind === 'range') {
|
|
37
|
+
return `/models?filter_${item.name}_from=${formattedValue}&filter_${item.name}_to=${formattedValue}${groupNumber}`;
|
|
38
|
+
} else {
|
|
39
|
+
return `/models?filter_${item.name}=${formattedValue}${groupNumber}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="f-info-socials">
|
|
3
|
+
<NuxtLink
|
|
4
|
+
v-for="(item, index) in items"
|
|
5
|
+
class="f-info-socials__item"
|
|
6
|
+
:key="`info-social-${index}`"
|
|
7
|
+
:to="Array.isArray(item.name) ? item.name[0] : item.name"
|
|
8
|
+
target="_blank"
|
|
9
|
+
:aria-label="item.title"
|
|
10
|
+
:title="item.title"
|
|
11
|
+
>
|
|
12
|
+
<FIcon
|
|
13
|
+
:size="iconSize"
|
|
14
|
+
prefix="socials"
|
|
15
|
+
:name="knownIcons.includes(item?.icon?.toLowerCase() || '') ? `${item?.icon?.toLowerCase()}` : 'globe'"
|
|
16
|
+
/>
|
|
17
|
+
</NuxtLink>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import type { ILinkItem } from '../../types';
|
|
23
|
+
|
|
24
|
+
withDefaults(
|
|
25
|
+
defineProps<{
|
|
26
|
+
items: ILinkItem[];
|
|
27
|
+
knownIcons: string[];
|
|
28
|
+
iconSize?: string
|
|
29
|
+
}>(), {
|
|
30
|
+
iconSize: '24'
|
|
31
|
+
})
|
|
32
|
+
</script>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="s-video-autoplay">
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
|
-
class="
|
|
5
|
+
class="s-video-autoplay__button"
|
|
6
6
|
@click="value = !value"
|
|
7
7
|
>
|
|
8
8
|
{{ $t('autoplay_next_video')}}
|
|
9
9
|
</button>
|
|
10
10
|
<FToggle
|
|
11
|
-
class="
|
|
11
|
+
class="s-video-autoplay__toggle"
|
|
12
12
|
v-model="value"
|
|
13
13
|
/>
|
|
14
14
|
</div>
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "itube-specs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.209",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"prepublish": "npm install && npx nuxi prepare"
|
|
8
|
+
"prepublish": "npm install && npx nuxi prepare",
|
|
9
|
+
"patch": "npm version patch"
|
|
9
10
|
},
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|