feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
2026-08-18 20:46:21 +08:00
parent 3c3ddac8be
commit a0b84977a2
630 changed files with 101647 additions and 11293 deletions
+4 -21
View File
@@ -18,7 +18,6 @@
*/
export const MODULE_TYPES = [
'hero',
'banner',
'category',
'tabs',
@@ -42,18 +41,6 @@ export const MODULE_TYPES = [
]
export const MODULE_LIBRARY = [
{
type: 'hero',
label: 'Hero 首屏',
icon: 'image',
desc: '固定首页骨架:大图轮播首屏。幻灯片内容在「页面&显示 → Hero 轮播」维护;搜索/卡片参数见「顶部多功能组件」。',
defaultConfig: { with_search: true, show_cards: false, card_columns: 4, icon_cards: [] },
fields: [
{ key: 'with_search', type: 'switch', label: '显示搜索覆盖框' },
{ key: 'show_cards', type: 'switch', label: '显示图标卡片覆盖' },
{ key: 'card_columns', type: 'number', label: '卡片列数', min: 2, max: 6 },
],
},
{
type: 'banner',
label: 'Banner 轮播',
@@ -451,9 +438,8 @@ export const PRESET_TEMPLATES = [
{
key: 'resource_standard',
label: '资源站标准',
desc: 'Hero(固定骨架)+ Tabs + 最新文章 + 下载排行',
desc: 'Tabs + 最新文章 + 下载排行;头部幻灯由导航系统独立渲染',
modules: [
{ type: 'hero', config: {} },
{ type: 'tabs', config: { count: 8, layout: 'card' } },
{ type: 'recent', config: { count: 8, layout: 'card' } },
{ type: 'ranking', config: { metric: 'downloads', count: 6 } },
@@ -473,9 +459,8 @@ export const PRESET_TEMPLATES = [
{
key: 'mixed',
label: '混合站',
desc: 'Hero(固定骨架)+ 最新文章 + 多个分类块',
desc: '最新文章 + 多个分类块;头部幻灯由导航系统独立渲染',
modules: [
{ type: 'hero', config: {} },
{ type: 'recent', config: { count: 6, layout: 'card' } },
{ type: 'category', config: { count: 6, columns: 3, layout: 'card' } },
{ type: 'category', config: { count: 6, columns: 3, layout: 'card' } },
@@ -484,9 +469,8 @@ export const PRESET_TEMPLATES = [
{
key: 'landing',
label: '落地页',
desc: 'Hero + 标题 + 高亮卡片 + FAQ + 按钮组',
desc: '标题 + 高亮卡片 + FAQ + 按钮组',
modules: [
{ type: 'hero', config: {} },
{ type: 'text_title', config: { title: '为什么选择我们', align: 'center', style: 'default' } },
{ type: 'highlight_cards', config: { columns: 3 } },
{ type: 'spacing', config: { height: 40 } },
@@ -497,9 +481,8 @@ export const PRESET_TEMPLATES = [
{
key: 'corporate',
label: '企业站',
desc: 'Hero + 数据网格 + 产品展示 + 合作伙伴',
desc: '数据网格 + 产品展示 + 合作伙伴',
modules: [
{ type: 'hero', config: {} },
{ type: 'data_grid', config: { title: '核心数据', columns: 4, style: 'number' } },
{ type: 'product_showcase', config: { title: '产品展示', columns: 3 } },
{ type: 'partner_marquee', config: { title: '合作伙伴', speed: 30 } },