fix: Landing cleanup: 404 route, German comments, dead code, orphaned heading (#306)

- Add /:pathMatch(.*)*  catch-all route that redirects to / so unknown
  URLs no longer render blank
- Replace German inline comments in scrollBehavior with English equivalents
- Remove seven dead `// group: "navbar"` comments from /docs route and its
  child routes (the live group: 'navbar' property on the parent is kept)
- HomeView.vue and HomeViewMixed.vue already carry the renamed
  "Verified On-Chain" heading with supporting copy; no changes needed there

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-27 07:53:42 +00:00
parent 8c336ae0f5
commit 1e6f817cf4

View file

@ -31,7 +31,6 @@ const router = createRouter({
meta: { meta: {
title: 'Docs', title: 'Docs',
group: 'navbar', group: 'navbar',
// group: "navbar",
}, },
redirect: '/docs/introduction', redirect: '/docs/introduction',
component: () => import('../views/DocsView.vue'), component: () => import('../views/DocsView.vue'),
@ -41,7 +40,6 @@ const router = createRouter({
name: 'DocsIntroduction', name: 'DocsIntroduction',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/Introduction'], alias: ['/docs/Introduction'],
component: () => import('../views/docs/IntroductionDocs.vue'), component: () => import('../views/docs/IntroductionDocs.vue'),
@ -51,7 +49,6 @@ const router = createRouter({
name: 'DocsHowItWorks', name: 'DocsHowItWorks',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/How-It-Works'], alias: ['/docs/How-It-Works'],
component: () => import('../views/docs/HowItWorks.vue'), component: () => import('../views/docs/HowItWorks.vue'),
@ -61,7 +58,6 @@ const router = createRouter({
name: 'DocsLiquidityManagement', name: 'DocsLiquidityManagement',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/Liquidity-Management'], alias: ['/docs/Liquidity-Management'],
component: () => import('../views/docs/LiquidityManagement.vue'), component: () => import('../views/docs/LiquidityManagement.vue'),
@ -71,7 +67,6 @@ const router = createRouter({
name: 'DocsAiAgent', name: 'DocsAiAgent',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/AI-agent'], alias: ['/docs/AI-agent'],
component: () => import('../views/docs/AiAgent.vue'), component: () => import('../views/docs/AiAgent.vue'),
@ -81,7 +76,6 @@ const router = createRouter({
name: 'DocsTokenomics', name: 'DocsTokenomics',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/Tokenomics'], alias: ['/docs/Tokenomics'],
component: () => import('../views/docs/TokenomicsDocs.vue'), component: () => import('../views/docs/TokenomicsDocs.vue'),
@ -91,7 +85,6 @@ const router = createRouter({
name: 'DocsStaking', name: 'DocsStaking',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/Staking'], alias: ['/docs/Staking'],
component: () => import('../views/docs/StakingDocs.vue'), component: () => import('../views/docs/StakingDocs.vue'),
@ -101,7 +94,6 @@ const router = createRouter({
name: 'DocsFaq', name: 'DocsFaq',
meta: { meta: {
title: 'Docs', title: 'Docs',
// group: "navbar",
}, },
alias: ['/docs/FAQ'], alias: ['/docs/FAQ'],
component: () => import('../views/docs/FaqDocs.vue'), component: () => import('../views/docs/FaqDocs.vue'),
@ -117,18 +109,22 @@ const router = createRouter({
}, },
], ],
}, },
{
path: '/:pathMatch(.*)*',
redirect: '/',
},
], ],
scrollBehavior(to, from, savedPosition) { scrollBehavior(to, from, savedPosition) {
// Überprüfen, ob der Zielort ein Hash enthält // Check if the target route contains a hash
if (to.hash) { if (to.hash) {
// Warten, bis die Komponente geladen ist und dann zum Ziel scrollen // Wait for the component to load, then scroll to the target
return { return {
el: to.hash, el: to.hash,
behavior: 'smooth', // Optional: für sanftes Scrollen behavior: 'smooth', // Optional: for smooth scrolling
top: 80, top: 80,
}; };
} }
return savedPosition || { top: 0 }; // Scrollen zum Anfang der Seite, falls kein Hash vorhanden ist return savedPosition || { top: 0 }; // Scroll to the top of the page if no hash is present
}, },
}); });