itube-specs 0.0.272 → 0.0.273

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,28 @@
1
+ <template>
2
+ <template v-if="items && items.length > 0">
3
+ <h2 class="s-footer-models__title _title">{{ title }}</h2>
4
+
5
+ <SGridModels
6
+ :items="items"
7
+ footer
8
+ class="s-footer-models__grid"
9
+ />
10
+ </template>
11
+ </template>
12
+
13
+ <script setup lang="ts">
14
+ import { convertString, EAsyncData } from 'itube-specs/runtime';
15
+ import { IModelCard } from 'itube-specs/types';
16
+
17
+ const props = defineProps<{
18
+ title: string
19
+ dataItems: IModelCard[]
20
+ }>()
21
+
22
+ const currentModel = computed(() => convertString().fromSlug(String(useRoute().params['slug'])));
23
+
24
+ const items = computed(() => props.dataItems?.filter(item => item.title !== currentModel.value))
25
+ </script>
26
+
27
+ <style scoped lang="scss">
28
+ </style>
@@ -1,5 +1,5 @@
1
1
  import { EAsyncData, ELanguage } from '../runtime';
2
- import { IModelCard, PaginatedResponse } from 'itube-specs';
2
+ import type { IModelCard, PaginatedResponse } from '../types';
3
3
 
4
4
  export const useFetchTopModels = (apiMethod: (...args: any[]) => Promise<PaginatedResponse<IModelCard>>, limit: number, eName: EAsyncData | string, cacheId: string) => {
5
5
  const { locale } = useI18n();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.272",
4
+ "version": "0.0.273",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {