kmcom-nuxt-layers 1.6.43 → 1.6.44

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,19 @@
1
+ <script setup lang="ts">
2
+ const { contentLayer } = useAppConfig()
3
+ if (contentLayer?.sections?.portfolio === false) {
4
+ throw createError({ statusCode: 404, statusMessage: 'Not Found' })
5
+ }
6
+
7
+ const { slug, collection = 'portfolio' } = defineProps<{
8
+ slug: string
9
+ collection?: string
10
+ }>()
11
+ </script>
12
+
13
+ <template>
14
+ <LayoutSection>
15
+ <LayoutGridItem>
16
+ <PortfolioDetail :slug :collection />
17
+ </LayoutGridItem>
18
+ </LayoutSection>
19
+ </template>
@@ -1,13 +1,13 @@
1
1
  <script setup lang="ts">
2
- const { contentLayer } = useAppConfig()
3
- if (contentLayer?.sections?.portfolio === false) {
4
- throw createError({ statusCode: 404, statusMessage: 'Not Found' })
5
- }
2
+ const { contentLayer } = useAppConfig()
3
+ if (contentLayer?.sections?.portfolio === false) {
4
+ throw createError({ statusCode: 404, statusMessage: 'Not Found' })
5
+ }
6
6
 
7
- useSeoMeta({
8
- title: 'Portfolio',
9
- description: 'Featured projects and work',
10
- })
7
+ useSeoMeta({
8
+ title: 'Portfolio',
9
+ description: 'Featured projects and work',
10
+ })
11
11
  </script>
12
12
 
13
13
  <template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kmcom-nuxt-layers",
3
3
  "private": false,
4
- "version": "1.6.43",
4
+ "version": "1.6.44",
5
5
  "description": "Composable Nuxt 4 layers for building scalable Vue applications",
6
6
  "exports": {
7
7
  "./layers/core": "./layers/core/nuxt.config.ts",
@@ -1,17 +0,0 @@
1
- <script setup lang="ts">
2
- const { contentLayer } = useAppConfig()
3
- if (contentLayer?.sections?.portfolio === false) {
4
- throw createError({ statusCode: 404, statusMessage: 'Not Found' })
5
- }
6
-
7
- const route = useRoute()
8
- const slug = route.params.slug as string
9
- </script>
10
-
11
- <template>
12
- <LayoutSection>
13
- <LayoutGridItem>
14
- <PortfolioDetail :slug="slug" />
15
- </LayoutGridItem>
16
- </LayoutSection>
17
- </template>