mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
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'),
|
|
},
|
|
],
|
|
}
|