} from 'vue-router/experimental'
import PageHome from '../pages/(home).vue'
-type ExtractMatcherQueryParams<T> =
- T extends MatcherPatternQuery<infer P> ? P : never
+// type ExtractMatcherQueryParams<T> =
+// T extends MatcherPatternQuery<infer P> ? P : never
// type CombineMatcherParams<T extends readonly MatcherPatternQuery[]> =
// T extends readonly [infer First, ...infer Rest]
}
const r_group = normalizeRouteRecord({
+ // cannot have a name because it's a group
meta: {
fromGroup: 'r_group',
},
components: { default: () => import('../pages/about.vue') },
})
-const r_profile_layout = normalizeRouteRecord({
- components: {},
+const r_profiles_layout = normalizeRouteRecord({
+ // cannot have a name because it's a layout and can't be matched (no path, query, or hash)
+ // name: 'profile',
+ // path: new MatcherPatternPathStatic('/profile'),
+ components: { default: () => import('../pages/profiles/+layout.vue') },
meta: {
layout: 'profile',
},
})
+const r_profiles_list = normalizeRouteRecord({
+ name: 'profiles-list',
+ components: { default: () => import('../pages/profiles/(list).vue') },
+ path: new MatcherPatternPathStatic('/profiles'),
+ parent: r_profiles_layout,
+})
+
const r_nested = normalizeRouteRecord({
name: 'nested',
components: { default: () => import('../pages/nested.vue') },
r_about,
r_nested,
r_nested_a,
+ r_profiles_list,
]),
})