refactor: simplify Carousel component and update news data structure for clarity

This commit is contained in:
Ardeman
2025-02-25 04:48:13 +08:00
parent 7e82768423
commit fe9b8bc97a
7 changed files with 58 additions and 60 deletions
+13 -3
View File
@@ -1,3 +1,5 @@
import { MENU as ADMIN_MENU } from '~/layouts/admin/menu'
export const APP = {
title: 'LegalGo',
description:
@@ -5,17 +7,25 @@ export const APP = {
logo: '/images/logo.png',
}
export const META_TITLE_CONFIG = [
type TMetaTitleConfig = {
path: string
title: string
}[]
export const META_TITLE_CONFIG: TMetaTitleConfig = [
{
path: '/news',
title: 'Home',
},
{
path: '/auth/login',
path: '/admin/auth/login',
title: 'Login',
},
{
path: '/auth/register',
path: '/admin/auth/register',
title: 'Register',
},
...ADMIN_MENU.flatMap((menu) =>
menu.items.map((item) => ({ path: item.url, title: item.title })),
),
]