feat: 为评论区添加图片上传和 Emoji 选择器功能
主要变更: - 新增图片上传功能,支持上传到外部图床并插入 Markdown 格式图片 - 新增灯箱功能,支持图片点击放大、滚轮缩放、拖拽移动 - 新增 Emoji 选择器,提供 70 个常用表情快捷插入 - 移除未使用的 pages 集合定义以消除警告 技术细节: - 图床 API 支持自定义配置 (URL/Token) - 灯箱缩放范围 50%-300%,带平滑过渡动画 - Emoji 选择器支持点击外部自动关闭 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -22,19 +22,6 @@ const blogCollection = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
// 页面集合 (如关于页面等)
|
||||
const pagesCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
layout: z.string().optional(),
|
||||
showInNav: z.boolean().default(false),
|
||||
order: z.number().default(0),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
blog: blogCollection,
|
||||
pages: pagesCollection,
|
||||
};
|
||||
Reference in New Issue
Block a user