新功能: - 创建AI聊天助手组件(AIChatWidget) - 支持文字+图片多模态对话 - 集成Gemini AI API - 支持图片编辑和内容生成 - 实时对话历史管理 - 优雅的UI设计,支持黑夜模式 技术实现: - 后端API代理Gemini API(/api/ai-chat) - 支持最多5张图片上传 - 流式响应处理 - 对话历史管理 - Base64图片处理 配置: - 在.env中添加Gemini API配置 - GEMINI_API_KEY - GEMINI_API_BASE_URL - GEMINI_MODEL 替换原弹幕功能,提供更强大的AI助手体验!
58 lines
1.4 KiB
JSON
Executable File
58 lines
1.4 KiB
JSON
Executable File
{
|
|
"name": "simple-mind-map",
|
|
"version": "0.14.0-fix.1",
|
|
"description": "一个简单的web在线思维导图",
|
|
"authors": [
|
|
{
|
|
"name": "街角小林",
|
|
"email": "1013335014@qq.com"
|
|
},
|
|
{
|
|
"name": "理想青年实验室",
|
|
"url": "http://lxqnsys.com/"
|
|
}
|
|
],
|
|
"types": "./types/index.d.ts",
|
|
"typings": "./types/index.d.ts",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/wanglin2/mind-map"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint src/",
|
|
"format": "prettier --write .",
|
|
"types": "npx -p typescript tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2017 --skipLibCheck & node ./bin/createPluginsTypeFiles.js",
|
|
"wsServe": "node ./bin/wsServer.mjs"
|
|
},
|
|
"module": "index.js",
|
|
"main": "./dist/simpleMindMap.umd.min.js",
|
|
"dependencies": {
|
|
"@svgdotjs/svg.js": "3.2.0",
|
|
"deepmerge": "^1.5.2",
|
|
"eventemitter3": "^4.0.7",
|
|
"jszip": "^3.10.1",
|
|
"katex": "^0.16.8",
|
|
"mdast-util-from-markdown": "^1.3.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"quill": "^2.0.3",
|
|
"tern": "^0.24.3",
|
|
"uuid": "^9.0.0",
|
|
"ws": "^7.5.9",
|
|
"xml-js": "^1.6.11",
|
|
"y-webrtc": "^10.2.5",
|
|
"yjs": "^13.6.8"
|
|
},
|
|
"keywords": [
|
|
"javascript",
|
|
"svg",
|
|
"mind-map",
|
|
"mindMap",
|
|
"MindMap"
|
|
],
|
|
"devDependencies": {
|
|
"eslint": "^8.25.0",
|
|
"prettier": "^2.7.1"
|
|
}
|
|
}
|