feat: 实现导航页基础功能
- 添加导航条目和分类数据模型 - 实现导航卡片网格展示 - 支持点击卡片打开链接 - 添加主题样式(渐变色、卡片阴影) - 区分系统默认和自定义条目 - 添加分类统计信息"
This commit is contained in:
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"site": {
|
||||
"name": "Suxing Nav",
|
||||
"searchHint": "输入关键字搜索全网资源...",
|
||||
"submitUrl": "https://mattermost.example.com"
|
||||
},
|
||||
"groups": [
|
||||
{
|
||||
"id": "common",
|
||||
"title": "常用推荐",
|
||||
"source": "system",
|
||||
"order": 10,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [
|
||||
{
|
||||
"id": "github",
|
||||
"title": "GitHub",
|
||||
"url": "https://github.com",
|
||||
"description": "代码托管与开源社区",
|
||||
"source": "system",
|
||||
"order": 10,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"submittedBy": ""
|
||||
},
|
||||
{
|
||||
"id": "zhihu",
|
||||
"title": "知乎",
|
||||
"url": "https://www.zhihu.com",
|
||||
"description": "深度内容问答社区",
|
||||
"source": "system",
|
||||
"order": 20,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"submittedBy": ""
|
||||
},
|
||||
{
|
||||
"id": "bilibili",
|
||||
"title": "哔哩哔哩",
|
||||
"url": "https://www.bilibili.com",
|
||||
"description": "弹幕视频分享网站",
|
||||
"source": "system",
|
||||
"order": 30,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"submittedBy": ""
|
||||
}
|
||||
],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "materials",
|
||||
"title": "素材资源",
|
||||
"source": "system",
|
||||
"order": 20,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": [
|
||||
{
|
||||
"id": "design",
|
||||
"title": "UI 设计",
|
||||
"source": "system",
|
||||
"order": 10,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [
|
||||
{
|
||||
"id": "figma",
|
||||
"title": "Figma",
|
||||
"url": "https://www.figma.com",
|
||||
"description": "协同界面设计工具",
|
||||
"source": "system",
|
||||
"order": 10,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"submittedBy": ""
|
||||
},
|
||||
{
|
||||
"id": "dribbble",
|
||||
"title": "Dribbble",
|
||||
"url": "https://dribbble.com",
|
||||
"description": "全球设计作品分享社区",
|
||||
"source": "system",
|
||||
"order": 20,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"submittedBy": ""
|
||||
}
|
||||
],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "icon",
|
||||
"title": "图标库",
|
||||
"source": "system",
|
||||
"order": 20,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "stock",
|
||||
"title": "高清壁纸",
|
||||
"source": "system",
|
||||
"order": 30,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "dev-tools",
|
||||
"title": "开发工具",
|
||||
"source": "system",
|
||||
"order": 30,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": [
|
||||
{
|
||||
"id": "dev",
|
||||
"title": "前端框架",
|
||||
"source": "system",
|
||||
"order": 10,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "api",
|
||||
"title": "在线 API",
|
||||
"source": "system",
|
||||
"order": 20,
|
||||
"createdAt": "2026-09-13T10:29:48Z",
|
||||
"updatedAt": "2026-09-13T10:29:48Z",
|
||||
"sites": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user