77 Commits

Author SHA1 Message Date
patdelphi
0e50d70f76 Clean up empty test files
- Remove test-analysis.js (empty file)
- Remove test-ziwei.js (empty file)
- Keep essential configuration files (eslint, postcss, tailwind)
- Keep index.html as Vite entry template
2025-08-19 19:06:43 +08:00
patdelphi
34eee56fee Fix static file serving by including dist directory
- Remove dist/ from .gitignore to include build artifacts
- Add complete dist directory with built frontend assets
- This ensures static files are available for deployment
- Fixes 404 errors on Koyeb deployment
2025-08-19 19:04:31 +08:00
patdelphi
d0e27602aa Add debug logging for static file serving
- Add filesystem checks for dist directory and index.html
- Log directory contents to help diagnose deployment issues
- Improve error handling for missing static files
2025-08-19 19:02:32 +08:00
patdelphi
e6d814ff74 Fix Koyeb deployment configuration
- Update build command to use pnpm instead of npm
- Fix frontend build process in Koyeb config
- Update API URL configuration for production
- Fix database initialization in Dockerfile
- Ensure proper static file serving for SPA
2025-08-19 18:55:08 +08:00
patdelphi
858a0961b5 Fix API configuration and test production build
- Updated .env file with correct VITE_API_BASE_URL for local development
- Fixed API endpoint routing from localhost:5173 to localhost:3001
- Tested npm run build successfully with no errors
- Updated database and server configurations
2025-08-19 18:47:26 +08:00
patdelphi
9472fa8af7 Add frontend static file serving: 配置统一部署支持Web界面访问 2025-08-19 17:52:20 +08:00
patdelphi
8553d79f5e Update CORS config: 支持动态Koyeb域名 2025-08-19 17:39:12 +08:00
patdelphi
7b47b6cc2c Fix Koyeb deployment: 修复服务器监听地址和CORS配置 2025-08-19 17:37:22 +08:00
patdelphi
e60e32830a Fix TypeScript compilation errors for Koyeb deployment 2025-08-19 17:26:03 +08:00
patdelphi
16661debfc Update pnpm-lock.yaml to fix Koyeb deployment lockfile mismatch 2025-08-19 17:11:05 +08:00
patdelphi
5c10fe8d38 修复Koyeb部署问题:添加packageManager字段指定pnpm版本 2025-08-19 16:56:26 +08:00
patdelphi
3e7120a339 添加Koyeb部署配置和文档 2025-08-19 16:05:39 +08:00
patdelphi
78f39e500b 添加Railway部署配置文件和CORS设置 2025-08-19 15:30:13 +08:00
patdelphi
57cd405e94 添加Vercel部署配置 2025-08-19 15:11:31 +08:00
patdelphi
e00a5e6101 更新系统文档,反映v2.0架构重构 2025-08-19 14:17:02 +08:00
patdelphi
3730d66185 重构分析架构,彻底解决重复历史记录问题 2025-08-19 13:58:26 +08:00
patdelphi
75aedeb7ca 修复分析结果页面宽度显示问题
- 统一所有分析类型的容器宽度约束为 max-w-7xl (1248px 有效宽度)
- 修复易经占卜结果页面宽度小于参数区的问题
- 修复紫微斗数结果页面宽度小于参数区的问题
- 在 AnalysisResultDisplay 组件中为易经占卜和紫微斗数添加特殊处理逻辑
- 避免额外的 max-w-4xl 容器包裹,直接返回完整分析组件
- 确保参数输入区与分析结果区的视觉对齐和一致性
- 提升整体界面的专业性和用户体验
2025-08-19 09:52:42 +08:00
patdelphi
af0d6cd019 feat: 完整重构易经占卜系统 - 专业化升级和界面修复
🎯 主要更新:
- 重构易经分析器:增加多种起卦方法、高级分析、象数理论
- 创建专业前端组件:CompleteYijingAnalysis,参考八字分析样式
- 修复表单验证逻辑:易经占卜只需问题,无需个人信息
- 优化后端API接口:适配新的参数格式和验证逻辑

🚀 功能增强:
- 多种起卦方法:时间、梅花易数、金钱卦、数字起卦
- 高级分析:互卦、错卦、综卦四卦综合分析
- 象数理论:八卦数理、时间共振、五行分析
- 动态分析:问题类型识别、时间因素、针对性指导
- 专业展示:卦象符号、爻辞象传、哲学洞察

🔧 技术优化:
- 前端表单条件渲染:根据分析类型显示不同表单
- 后端参数验证:易经占卜验证问题而非姓名
- API接口统一:标准化数据传递格式
- 数据库适配:易经记录使用合理默认值

 问题修复:
- 解决'缺少姓名'错误
- 修复按钮无法点击问题
- 优化用户体验和界面响应
2025-08-19 09:05:25 +08:00
patdelphi
07de78c4a8 feat: 完善紫微斗数分析系统 - 增加四化飞星和大限分析详细解释
主要更新内容:
1. 修复大限分析岁数计算问题,使用真实出生年份
2. 增加命宫主星详细解释,包含性格、事业、财运分析
3. 完善四化飞星解释系统,详细说明化禄、化权、化科、化忌
4. 增加十二宫位大限分析,提供重点领域、机会、挑战、建议
5. 优化前端显示效果,改进布局和视觉设计
6. 修复大限显示限制问题,现在显示完整的12个大限
7. 提升用户体验,增加专业性和实用性

技术改进:
- 重构大限计算方法,传递真实出生年份参数
- 建立完整的星曜和宫位解释数据库
- 优化前端组件结构和样式设计
- 增强响应式布局和交互效果
2025-08-19 01:02:29 +08:00
patdelphi
2a70320730 feat: Complete overhaul of Bazi analysis system with professional features
- Implement dynamic Bazi analysis based on traditional Four Pillars theory
- Add comprehensive pillar interpretations (year, month, day, hour)
- Implement precise Dayun (Great Luck) and yearly fortune calculations
- Add detailed 6-year fortune analysis with monthly highlights
- Replace fixed templates with dynamic pattern analysis
- Implement Wuxing (Five Elements) strength analysis system
- Add professional life guidance and modern application suggestions
- Create new CompleteBaziAnalysis component with modern UI
- Update BaziDetailsPage with improved user experience
- Integrate all analysis modules into unified display system
- Add missing getElementRelation method to BaziAnalyzer
- Ensure all analysis content is dynamically generated from real Bazi data
2025-08-18 23:45:30 +08:00
patdelphi
d9c57dedb7 feat: 完成易经64卦数据补全和本地化改造
- 完全按照logic/yijing.txt补全所有64卦的完整数据结构
- 包含每卦的卦辞、象传、六爻详解和人生指导
- 重建八字、易经、紫微斗数三个核心分析器
- 实现完整的本地SQLite数据库替代Supabase
- 添加本地Express.js后端服务器
- 更新前端API调用为本地接口
- 实现JWT本地认证系统
- 完善历史记录和用户管理功能
2025-08-18 22:34:39 +08:00
patdelphi
29bc9d8c4a feat: 保存当前Supabase版本,准备进行本地化改造 2025-08-18 20:53:16 +08:00
patdelphi
d19fccd12c feat: 添加Supabase本地开发环境配置和Edge Functions 2025-08-18 10:58:23 +08:00
patdelphi
9db422fb9a fix: 修复ProfilePage和AnalysisPage中的Supabase数据库调用\n\n- 将ProfilePage中的.from().select().eq()调用改为使用本地API的auth.getUser()和auth.updateUser()\n- 将AnalysisPage中的用户档案加载逻辑改为使用本地API\n- 确保所有Supabase调用都已迁移到本地API\n- 修复个人档案保存功能 2025-08-18 09:53:04 +08:00
patdelphi
e806c216af feat: 完成从Supabase到本地化架构的迁移\n\n- 添加本地SQLite数据库支持\n- 实现本地认证系统(JWT + bcrypt)\n- 创建Express.js API服务器\n- 实现完整的命理分析算法\n- 替换Supabase客户端为本地API客户端\n- 保持前端接口兼容性\n- 添加本地服务器启动脚本 2025-08-18 09:41:38 +08:00
patdelphi
5e87725cde docs: 添加完整的项目文档和说明文件 2025-08-18 09:20:15 +08:00
patdelphi
db343a096e Initial commit: AI-powered numerology analysis application 2025-08-18 09:13:18 +08:00