refactor: move APP import from data to configs for better organization
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
import { MENU as ADMIN_MENU } from '~/layouts/admin/menu'
|
||||
|
||||
export const APP = {
|
||||
title: 'LegalGo',
|
||||
description:
|
||||
'Bonus judex secundum aequum et\n bonum judicat et aequitatem stricto juri praefert',
|
||||
logo: '/images/logo.png',
|
||||
}
|
||||
|
||||
type TMetaTitleConfig = {
|
||||
path: string
|
||||
title: string
|
||||
}[]
|
||||
|
||||
export const META_TITLE_CONFIG: TMetaTitleConfig = [
|
||||
{
|
||||
path: '/news',
|
||||
title: 'Home',
|
||||
},
|
||||
{
|
||||
path: '/admin/auth/login',
|
||||
title: 'Login',
|
||||
},
|
||||
{
|
||||
path: '/admin/auth/register',
|
||||
title: 'Register',
|
||||
},
|
||||
...ADMIN_MENU.flatMap((menu) =>
|
||||
menu.items.map((item) => ({ path: item.url, title: item.title })),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user