import { ComponentMetadata } from '@/components/types' import { contentLoaded } from '@/core/life-cycle' import { mountVueComponent } from '@/core/utils' import { homeUrls } from '../urls' export const component: ComponentMetadata = { name: 'freshHome', displayName: '清爽首页', description: '使用重新设计的清爽风格首页替换原本的首页.', urlInclude: homeUrls, tags: [ componentsTags.style, ], entry: () => { contentLoaded(async () => { const FreshHome = await import('./FreshHome.vue') const freshHome = mountVueComponent(FreshHome) document.body.appendChild(freshHome.$el) }) }, options: { layoutOptions: { displayName: '版块设置', defaultValue: { trending: { linebreak: true, }, areas: { linebreak: true, }, }, hidden: true, }, personalized: { displayName: '个性化推荐', defaultValue: false, }, }, instantStyles: [ { name: 'fresh-home-hide-original', style: () => import('../hide-original.scss'), }, ], }