feat(home): add home page as main entry point

Introduce HomeView with quick links to wiki sections and community features
Update navigation, routing, and logo links to point to the new home page
This commit is contained in:
2026-05-03 17:46:36 +08:00
parent 6782ddd101
commit 6758aaaa7e
9 changed files with 693 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import {
iconDreamIsland,
iconEvent,
iconHabitat,
iconHome,
iconItem,
iconLife,
iconPokemon,
@@ -42,6 +43,7 @@ function can(permissionKey: string) {
const navItems = computed(() => {
const items = [
{ label: t('nav.home'), to: '/', icon: iconHome },
{ label: t('nav.pokemon'), to: '/pokemon', icon: iconPokemon },
{ label: t('nav.habitats'), to: '/habitats', icon: iconHabitat },
{ label: t('nav.items'), to: '/items', icon: iconItem },
@@ -87,7 +89,7 @@ async function logout() {
currentUser.value = null;
setAuthToken(null);
await router.push('/pokemon');
await router.push('/');
}
async function loadLanguages() {