chenpei
fc17c73df5
docs: 添加AI聊天助手使用指南
2025-10-27 17:50:46 +08:00
chenpei
b3de06ea39
feat: 增强AI聊天助手 - 完整图片支持
...
新增功能:
✅ 支持发送图片(点击上传、拖拽、粘贴)
✅ 支持接收AI返回的图片(Base64、inline data)
✅ 图片预览和下载功能
✅ 点击图片新窗口查看
✅ 拖拽上传可视化提示
✅ 支持粘贴剪贴板图片
✅ 最多支持5张图片同时发送
✅ 对话历史保留图片信息
图片处理:
- 自动转换为Base64格式
- 支持多种图片格式(PNG、JPG、GIF等)
- 图片预览带删除按钮
- 图片下载功能
- Hover显示下载按钮
用户体验:
- 拖拽区域高亮提示
- 实时图片预览
- 图片点击放大
- 支持键盘快捷键
- 响应式设计
这是一个功能完整的AI图片编辑助手!
2025-10-27 17:49:50 +08:00
chenpei
d0dc94e36d
feat: 将弹幕功能替换为AI聊天助手
...
新功能:
- 创建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助手体验!
2025-10-27 17:45:37 +08:00
chenpei
0c4e61ccfc
feat: 系统管理页面完全支持浏览器黑夜模式
...
- 更新背景色、容器、卡片样式支持dark模式
- 更新所有表格(素材、用户)样式支持dark模式
- 更新标签栏、标题、文本颜色支持dark模式
- 更新分类管理(使用店铺、场景类别)支持dark模式
- 更新部门管理UI支持dark模式
- 更新所有按钮、输入框、模态框支持dark模式
- 更新空状态、加载状态文本颜色
现在系统管理和系统设置页面都完全支持黑夜模式,提升用户体验!
2025-10-27 17:33:13 +08:00
chenpei
52f8b930bb
chore: 更新package-lock.json
2025-10-27 17:14:11 +08:00
chenpei
eb92f12e69
feat: 弹幕功能改为匿名模式
...
- 使用随机匿名用户名(神秘访客、路过的设计师等12种随机名称)
- 标题显示全站弹幕(匿名)
- 输入框提示匿名发送,保护隐私
- 不显示真实用户名,保护用户隐私
2025-10-27 17:13:37 +08:00
chenpei
3fff87cd18
feat: 添加S3存储桶配置、全站实时弹幕功能、LOGO分离上传
...
新功能:
1. S3存储桶配置管理 - 可在系统设置中配置S3端点、密钥等
2. 全站实时弹幕功能 - 右下角悬浮球,支持实时发送和接收弹幕
3. LOGO分离上传 - 导航栏LOGO和登录页LOGO分开上传
数据库更新:
- SystemSettings表新增s3Endpoint, s3AccessKey, s3SecretKey等6个字段
- 新增Danmaku表用于存储弹幕数据
技术改进:
- 部门管理从系统设置移至系统管理标签页
- 优化了浏览器标题动态更新
- 添加了弹幕轮询机制(2秒)
2025-10-27 17:06:54 +08:00
chenpei
d31a85ce9b
feat: 新增功能 - 场景数量父子关系联动 + 用户部门编辑
...
1. 场景类别数量父子关系联动:
- 选择店铺后,场景数量只显示该店铺下的数量
- 修改 /api/scenes API 支持 category 参数
- 前端动态更新场景数量统计
2. 用户部门编辑功能:
- 新增 /api/admin/users/update-department API
- 用户管理页面添加"编辑部门"按钮
- 支持为用户分配/修改所属部门
- 部门列表从系统设置的部门管理获取
2025-10-27 15:37:33 +08:00
chenpei
6377ce6d24
feat: Change preview card dimensions from 300x500 to 300x400
...
- Update card height from 500px to 400px in homepage
- Adjust maxHeight in image processor from 1000px to 800px
- Update all processImage calls to use maxHeight: 800
- Optimized for better display ratio on homepage
2025-10-26 17:45:46 +08:00
chenpei
74936237a1
docs: Add HTTPS deployment success report
...
- SSL certificate configured with Let's Encrypt
- Forced HTTPS redirect (HTTP 301 → HTTPS)
- HTTP/2 enabled
- Security headers added (HSTS, XSS, Frame, Content-Type)
- Auto-renewal configured
- Certificate valid until 2026-01-24
- Domain: https://3d.yydd.ai
- Status: Production ready
2025-10-26 17:43:01 +08:00
chenpei
3417b5b061
docs: Add HTTPS configuration guide for 3D.YYDD.AI
...
- Three solutions: Nginx+Certbot, Cloudflare SSL, acme.sh
- Detailed step-by-step instructions
- FRP configuration for HTTPS
- Troubleshooting guide
- Comparison of different approaches
2025-10-26 17:31:57 +08:00
chenpei
3bac4f0e11
fix: Remove thumbnailData reference (TypeScript error)
...
- ag-psd type definition doesn't include thumbnailData
- Simplified error handling for missing composite image data
- Fixes build error during Docker deployment
2025-10-26 17:30:42 +08:00
chenpei
c6831d2787
docs: Add concurrent upload fix documentation
2025-10-26 17:23:09 +08:00
chenpei
030fb2af0b
fix: Prevent concurrent upload conflicts with unique file names
...
- Add generateUniqueFileName function using crypto.randomBytes
- Replace Date.now() with timestamp + random hex for all file names
- Ensures unique file names even when multiple users upload simultaneously
- Fixes: temp PSD files, temp preview files, S3 preview files, and material files
- Resolves reported issue of upload errors with concurrent users
2025-10-26 17:21:39 +08:00
chenpei
765bdef97c
chore: Update package-lock.json for canvas dependency
2025-10-26 17:18:44 +08:00
chenpei
ab66b8cf72
fix: Add canvas support for PSD preview generation
...
- Add canvas as optional dependency in package.json
- Install canvas system dependencies in Dockerfile (cairo, pango, etc.)
- Initialize canvas in psd-processor with fallback support
- Add detailed logging for PSD processing
- Support both composite image data and thumbnail fallback
- Canvas will be available in Docker environment but optional locally
2025-10-26 16:42:00 +08:00
chenpei
f7d9ebe1ab
docs: Update PROJECT_INTRODUCTION.md with PSD auto-preview and dimension updates
...
- Add v2.6.0 changelog for PSD auto-preview and 300x500 dimensions
- Update upload flow to include PSD auto-preview generation
- Update card display specs to 300x500 vertical format
- Add ag-psd to technology stack
- Update image processing documentation
- Update user guide for PSD file uploads
2025-10-26 16:32:28 +08:00
chenpei
f17f0922a4
docs: Add image dimensions update report (300x500)
...
- Document PSD long image cropping feature (top 1200px)
- Document image processor maxHeight support
- Document homepage card height change to 500px
- Include technical specifications and best practices
2025-10-26 16:27:50 +08:00
chenpei
0666edc4a8
feat: Update preview image dimensions to 300x500
...
- Modify PSD processor to crop long images to top 1200px
- Update image processor to support maxHeight parameter (1000px)
- Change homepage card height from 300px to 500px
- Update upload API to use new image processing parameters
- Support vertical/portrait images better with 300x500 display
2025-10-26 16:15:14 +08:00
chenpei
a9a623b36d
docs: Add PSD auto-preview deployment report
2025-10-26 16:08:41 +08:00
chenpei
e9a14d9f4f
fix: Include ag-psd package and lib directory in Docker container
...
- Add ag-psd node_modules to Docker image
- Copy lib directory containing psd-processor
- Ensure PSD auto-preview functionality works in production
2025-10-26 16:00:32 +08:00
chenpei
e69f15337d
feat: Add automatic PSD preview generation
...
- Add psd-processor library to auto-generate previews from PSD files
- Update upload API to detect PSD files and generate previews automatically
- Make preview image optional for PSD file uploads
- Update UploadModal UI to show PSD files don't require manual preview upload
- Install ag-psd package for PSD processing
2025-10-26 15:49:33 +08:00
chenpei
d17f6df2c7
feat: 部门管理和文件上传优化
...
新功能:
1. 部门管理功能
- 管理员可在系统设置中添加/删除部门
- 用户注册时从下拉框选择部门
- 新增Department数据库表和API
2. 文件上传优化
- 支持直接上传源文件(.max/.psd/.ai/.cad/.dwg/.c4d)
- 自动识别文件类型并设置素材类型
- 压缩包需手动选择类型
- 优化拖拽上传体验
数据库变更:
- 新增departments表
- User表新增department字段
2025-10-26 14:06:19 +08:00
chenpei
69f774aa36
feat: SPU输入框限制中文并自动转大写
...
- UploadModal: SPU输入框只允许英文、数字和符号(- _ .),自动过滤中文,小写自动转大写
- EditMaterialModal: 同步修改编辑页面的SPU输入框规则
- 确保SPU格式统一规范
2025-10-26 13:46:26 +08:00
chenpei
3b825883bb
feat: 添加多类型素材支持和系统外观设置功能 (v2.4.0)
...
新增功能:
- 素材类型系统:支持3DMAX/PSD/AI/CAD/C4D/其他等多种类型
- 智能表单:渲染器选项仅在3DMAX类型时显示
- 类型标签:首页卡片显示素材类型标签(橙色)
- 系统外观设置:自定义导航栏颜色、LOGO和网站名称
数据库变更:
- 新增materialType字段到materials表
- 新增materialType索引优化查询
- 新增SystemSettings表存储系统设置
技术改进:
- 完整的TypeScript类型支持
- 前后端完整适配
- 修复Next.js配置弃用警告
- 添加完整的部署文档
文件变更:
- 修改: 上传/编辑组件支持素材类型
- 修改: API接口处理新字段
- 新增: 系统设置管理页面
- 新增: 系统设置API路由
- 新增: 数据库迁移文件
- 更新: 项目文档和部署指南
2025-10-26 09:58:40 +08:00
chenpei
caa3d66c0a
Initial commit: 共享平台项目
2025-10-26 09:11:04 +08:00