refactor: move APP import from data to configs for better organization

This commit is contained in:
Ardeman
2025-02-25 06:07:45 +08:00
parent 5227204791
commit 0c38a775e3
10 changed files with 9 additions and 9 deletions
-31
View File
@@ -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 })),
),
]