kmcom-nuxt-layers 1.6.22 → 1.6.27
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/layers/content/app/components/Blog/List.vue +1 -0
- package/layers/content/app/components/Gallery/Detail.vue +1 -0
- package/layers/content/app/components/Gallery/Grid.vue +1 -0
- package/layers/content/app/components/Gallery/ImageDetail.vue +1 -0
- package/layers/content/app/components/NuxtContent/Detail.vue +1 -0
- package/layers/content/app/components/Portfolio/Detail.vue +1 -0
- package/layers/content/app/components/Portfolio/List.vue +1 -0
- package/layers/content/app/composables/useContentPage.ts +1 -0
- package/layers/content/app/composables/useGalleryItems.ts +1 -0
- package/layers/content/app/composables/usePortfolioItems.ts +1 -0
- package/layers/core/app/components/ErrorBoundary.vue +1 -0
- package/layers/core/app/composables/useCache.ts +1 -0
- package/layers/core/app/composables/useErrorLog.ts +1 -0
- package/layers/core/app/composables/useFeatures.ts +1 -0
- package/layers/core/app/composables/useNetworkInfo.ts +1 -0
- package/layers/core/app/composables/useRendering.ts +1 -0
- package/layers/core/app/composables/useScreen.ts +1 -0
- package/layers/core/app/plugins/feature-detection.client.ts +1 -0
- package/layers/core/app/plugins/init.ts +1 -0
- package/layers/forms/app/components/Form/Contact.vue +1 -0
- package/layers/forms/app/composables/useFormSchema.ts +1 -0
- package/layers/forms/app/config/fields.ts +1 -0
- package/layers/forms/app/types/fields.ts +1 -0
- package/layers/layout/app/components/Layout/Grid/Item.vue +1 -0
- package/layers/layout/app/components/Layout/Section/Hero.vue +1 -0
- package/layers/layout/app/components/Layout/Section/Stack.vue +1 -0
- package/layers/motion/app/components/Motion/Staggered.vue +1 -0
- package/layers/shader/app/components/Effect/PostProcessing.vue +1 -0
- package/layers/shader/app/components/Material/Fresnel.client.vue +1 -0
- package/layers/shader/app/components/Material/Gradient.client.vue +1 -0
- package/layers/shader/app/components/Material/Image.client.vue +1 -0
- package/layers/shader/app/components/Material/Noise.client.vue +1 -0
- package/layers/shader/app/composables/useUniforms.ts +1 -0
- package/layers/shader/app/utils/tsl/animation.ts +1 -0
- package/layers/shader/app/utils/tsl/color.ts +1 -0
- package/layers/shader/app/utils/tsl/noise.ts +1 -0
- package/layers/shader/app/utils/tsl/patterns.ts +1 -0
- package/layers/shader/app/utils/tsl/uv.ts +1 -0
- package/layers/theme/app/composables/useAccentColor.ts +1 -0
- package/layers/theme/app/composables/useThemeContrast.ts +1 -0
- package/layers/theme/app/composables/useThemeMotion.ts +1 -0
- package/layers/theme/app/composables/useThemeTransparency.ts +1 -0
- package/layers/ui/app/app.config.ts +1 -13
- package/layers/ui/app/components/Accent/Scene.vue +1 -0
- package/layers/ui/app/components/Base/Modal.vue +1 -0
- package/layers/ui/app/components/Links/Group.vue +1 -0
- package/layers/ui/app/components/Links/Named.vue +1 -0
- package/layers/ui/app/components/Mast/NavModal.vue +4 -3
- package/layers/ui/app/types/nav.ts +5 -0
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
type MastNavLink = {
|
|
2
|
-
id: string
|
|
3
|
-
label: string
|
|
4
|
-
to:
|
|
5
|
-
| string
|
|
6
|
-
| {
|
|
7
|
-
name: string
|
|
8
|
-
params?: Record<string, string | number>
|
|
9
|
-
query?: Record<string, string | number>
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
1
|
export default defineAppConfig({
|
|
14
2
|
site: {
|
|
15
3
|
title: '',
|
|
@@ -17,7 +5,7 @@ export default defineAppConfig({
|
|
|
17
5
|
description: '',
|
|
18
6
|
},
|
|
19
7
|
mastNav: {
|
|
20
|
-
links: []
|
|
8
|
+
links: [],
|
|
21
9
|
scrollBehaviour: 'router',
|
|
22
10
|
},
|
|
23
11
|
uiLayer: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { MastNavLink } from '../../types/nav'
|
|
3
|
+
|
|
2
4
|
const { open } = defineProps<{ open?: boolean }>()
|
|
3
5
|
const emit = defineEmits<{
|
|
4
6
|
'update:open': [value: boolean]
|
|
5
7
|
'close': []
|
|
6
8
|
}>()
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
const { links, scrollBehaviour } = useAppConfig().mastNav as { links: NavLink[]; scrollBehaviour: string }
|
|
10
|
+
const { links, scrollBehaviour } = useAppConfig().mastNav as { links: MastNavLink[]; scrollBehaviour: string }
|
|
10
11
|
const activeSection = useState<string>('activeSection', () => '')
|
|
11
12
|
const route = useRoute()
|
|
12
13
|
const { close: closeNav } = useMastNav()
|
|
@@ -17,7 +18,7 @@ function dismiss() {
|
|
|
17
18
|
closeNav()
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
function handleNav(link:
|
|
21
|
+
function handleNav(link: MastNavLink) {
|
|
21
22
|
if (scrollBehaviour === 'smooth-scroll' && route.name === 'index') {
|
|
22
23
|
try { useSmoothScroll().scrollTo(`#${link.id}`) }
|
|
23
24
|
catch {}
|