Commit Graph

50 Commits

Author SHA1 Message Date
张翔 14448af731 feat: 实现动态详情页面和性能优化
- 添加案例、新闻、产品详情页面的E2E测试
- 优化详情页面的客户端组件和页面逻辑
- 添加高性能Docker配置和Nginx配置
- 更新API服务和常量配置
- 添加性能优化文档和任务进度更新
- 修复ESLint错误和类型问题
2026-03-26 12:53:58 +08:00
张翔 498bb3a3c8 refactor: reorganize project structure and improve code quality
- Move CI/CD configs to config/ci/ directory
- Reorganize scripts into categorized directories (deployment, monitoring, testing, utils)
- Consolidate documentation into docs/ directory with proper structure
- Update linting and testing configurations
- Remove obsolete test reports and performance summaries
- Add new documentation for code quality tools and contact form security
- Improve project organization and maintainability
- Fix lint-staged config to only lint JS/TS files
- Disable react/react-in-jsx-scope rule for Next.js compatibility
- Ignore scripts and test config directories in ESLint
2026-03-24 13:38:58 +08:00
张翔 2ec4e65836 feat: create security monitoring dashboard 2026-03-24 11:27:23 +08:00
张翔 60f3f371bb feat: implement security middleware 2026-03-24 10:53:37 +08:00
张翔 b542f922b2 feat: implement security logging system 2026-03-24 10:45:00 +08:00
张翔 0d020bc3f8 feat: implement input sanitization 2026-03-24 10:43:14 +08:00
张翔 c3dee9e2e7 feat: implement rate limiting system 2026-03-24 10:38:23 +08:00
张翔 cef0b6fb74 feat: implement enhanced captcha system 2026-03-24 10:36:30 +08:00
张翔 7dbaccc4ba feat: add security configuration module 2026-03-24 10:33:24 +08:00
张翔 f5dec95a83 feat: 添加管理后台页面和功能,优化测试和性能配置
refactor: 重构页面导航和滚动逻辑,提升用户体验

test: 更新测试配置和用例,增加覆盖率和稳定性

perf: 优化性能指标和阈值,适应开发环境需求

ci: 添加Lighthouse CI工作流,集成性能测试

docs: 更新API文档和健康检查端点

fix: 修复登录页面和表单提交问题

style: 调整响应式布局和可访问性改进

chore: 更新依赖项和脚本配置
2026-03-24 10:11:30 +08:00
张翔 ac2672729f feat: 实现内容管理API及相关功能
refactor(services-section): 重构服务展示组件使用API数据
refactor(news-section): 重构新闻展示组件使用API数据
refactor(products-section): 重构产品展示组件使用API数据

test: 添加API客户端和服务钩子的单元测试
test(e2e): 添加配置验证和API响应格式的端到端测试

ci: 更新Playwright测试配置
2026-03-13 18:55:25 +08:00
张翔 4fdfc2d8b4 feat: implement frontend-backend configuration linkage
- Create public config API for frontend consumption
- Add configuration fetching to homepage
- Implement module show/hide logic based on config
- Add support for Services items filtering
- Add support for Products featured products and pricing display
- Add support for News display count, categories, and sort order
- Fix table name from 'configs' to 'siteConfig' in API route
- Update type definitions for proper TypeScript support
2026-03-13 13:11:20 +08:00
张翔 8c82ce5bad fix: resolve NextAuth UntrustedHost error and add login debugging
- Add trustHost: true to NextAuth configuration
- Add console logging for login debugging
- Fix authentication issues preventing login redirect
2026-03-13 12:38:13 +08:00
张翔 5bc8356a37 fix: resolve HMR error and TypeScript build issues
- Disable all experimental features to fix React 19 and Next.js 16 compatibility
- Fix TypeScript error in check-permission.ts (role property issue)
- Add test script for Contact page validation
- Use production mode to avoid HMR issues completely
2026-03-13 12:25:42 +08:00
张翔 f357330ba8 feat: 重构用户角色系统为管理员标识
- 将用户角色字段从role改为is_admin布尔值
- 更新相关API权限检查逻辑
- 修改数据库schema和迁移文件
- 调整前端用户显示逻辑
- 添加API响应工具函数
- 优化权限检查中间件
- 重构英雄组件为原子组件
2026-03-12 20:45:43 +08:00
张翔 b207bfa7af feat: 增加测试覆盖率并优化代码质量
test: 添加单元测试和端到端测试
refactor: 重构登录页面和上传模块
ci: 更新测试覆盖率阈值至42%
build: 添加测试相关依赖
docs: 更新测试文档
style: 修复代码格式问题
2026-03-11 11:14:37 +08:00
张翔 e8dffa4f05 chore: remove GitHub Actions workflows, use Woodpecker CI exclusively 2026-03-10 13:10:11 +08:00
张翔 29ec90d2cc test: improve branch coverage with edge cases 2026-03-10 12:44:17 +08:00
张翔 7e885c88a7 test: add data validation tests 2026-03-10 11:49:51 +08:00
张翔 24cec5f572 test: add session management tests 2026-03-10 11:43:58 +08:00
张翔 4ece85a9c3 feat: 添加生产环境部署和监控配置
- 新增生产环境部署脚本和文档
- 添加监控系统配置(Alertmanager, Prometheus, Grafana)
- 更新e2e测试用例以适配新环境
- 添加.env.production配置文件
- 优化Sentry初始化逻辑为动态加载
- 新增全局设置脚本以支持不同环境
2026-03-09 16:37:23 +08:00
张翔 4897c6e11c feat: 建立监控告警体系和生产环境配置
阶段三:建立监控告警体系
- 集成Sentry错误监控:安装依赖,创建配置文件,初始化Sentry
- 配置性能监控:创建监控工具类,实现健康检查API
- 更新环境变量模板,添加Sentry和数据库配置

阶段四:配置生产环境
- 创建生产环境变量模板
- 创建Dockerfile和docker-compose.prod.yml
- 创建备份和恢复脚本
- 设置脚本执行权限
2026-03-09 11:00:42 +08:00
张翔 6d92024b63 feat: 修复测试套件问题并添加Woodpecker CI配置
- 修复API测试认证问题:创建全局认证设置,更新Playwright配置
- 优化回归测试稳定性:增加超时时间到15秒,修复定位器
- 创建Woodpecker CI工作流:CI、部署和质量门禁配置
- 添加Jest配置和测试脚本
- 移除登录页面的默认账号密码显示(安全问题修复)
2026-03-09 10:26:02 +08:00
张翔 96c96fe75d feat: 创建权限检查工具
- 定义权限矩阵(admin/editor/viewer)
- 实现权限检查函数
- 实现权限要求函数
2026-03-08 21:13:39 +08:00
张翔 62e251c6f3 feat: 配置 NextAuth.js 认证系统
- 支持邮箱密码登录
- 支持 Magic Link 登录(Resend)
- 配置 Session Provider
- 添加 TypeScript 类型定义
2026-03-08 21:11:58 +08:00
张翔 940598c5cc feat: add color contrast calculation utility with WCAG standards 2026-03-06 20:11:32 +08:00
张翔 6797c24b5c feat: 添加移动端适配和测试功能
refactor(layout): 优化页脚布局和备案信息展示
feat(constants): 添加ICP备案和公安备案信息
feat(header): 实现移动端加载时的骨架屏效果
style(globals): 调整文字颜色和添加移动端响应样式
feat(breadcrumb): 增加返回按钮和响应式优化
feat(e2e): 添加移动端测试工具和测试用例
docs: 添加页脚重设计文档
2026-03-05 11:40:21 +08:00
张翔 9cbc80742a feat: 重构联系页面并增强安全性
refactor: 优化导航和路由逻辑

fix: 修复移动端样式问题

perf: 优化字体加载和性能

test: 添加安全性和可访问性测试

style: 调整按钮和表单样式

chore: 更新依赖版本

ci: 添加安全头配置

build: 优化构建配置

docs: 更新常量信息
2026-03-01 10:56:54 +08:00
张翔 0cfefaa937 refactor(ui): 优化导航组件和页面布局
- 移除多个页面的面包屑导航组件
- 添加统一的返回按钮组件替代各页面独立实现
- 优化导航栏滚动检测逻辑和动画效果
- 更新常量类型定义和统计数据
- 调整动态导入的SSR配置为false
- 添加FlipClock组件展示公司运营时长
- 优化新闻列表页的类型安全和响应式设计
2026-02-28 13:09:07 +08:00
张翔 9451814ca4 feat: 添加面包屑导航组件并优化页面布局
refactor: 重构页面结构和导航逻辑

fix: 修复移动端菜单导航和滚动行为

perf: 优化图片加载性能和资源请求

test: 添加端到端测试和性能测试用例

docs: 更新.gitignore文件

chore: 更新依赖和配置

style: 优化代码格式和类型安全

ci: 调整Playwright测试超时时间

build: 更新Next.js配置和构建选项
2026-02-28 09:09:04 +08:00
张翔 5d5b7feb0a feat(e2e): 添加完整的E2E测试框架和测试用例
添加Playwright测试框架配置和基础页面对象
实现冒烟测试用例覆盖首页和联系页面核心功能
更新导航组件以支持滚动高亮功能
添加BackButton组件统一返回按钮行为
配置Woodpecker CI集成和测试报告生成
2026-02-27 10:30:33 +08:00
张翔 2b08a536eb refactor: update navigation to use independent page links 2026-02-26 21:27:19 +08:00
张翔 ac4f228b04 feat: update navigation to link to solutions page 2026-02-26 18:46:17 +08:00
张翔 ecfe72355e feat: extend products data structure with detailed information 2026-02-26 18:01:06 +08:00
张翔 331faa5767 feat: extend services data structure with detailed information 2026-02-26 17:57:46 +08:00
张翔 99e9c874b0 feat: add email templates for contact form 2026-02-26 17:54:32 +08:00
张翔 ee88d5e9be feat: 扩展PRODUCTS和SERVICES数据结构
- 为PRODUCTS添加fullDescription、technicalArchitecture、scenarios、cases字段
- 为SERVICES添加fullDescription、content、advantages、relatedServices字段
- 完善产品和服务的详细信息展示,支持技术架构、应用场景、客户案例等
2026-02-26 16:19:32 +08:00
张翔 7f450dff87 refactor(products): 更新产品列表和描述信息
移除物联网和AI产品,新增内容管理系统
更新产品页面描述和联系按钮滚动功能
2026-02-26 15:52:04 +08:00
张翔 fecbfd1990 feat: 添加预览效果页面并优化交互效果
refactor: 优化代码健壮性和类型安全

style: 更新字体样式和全局CSS

fix: 修复IntersectionObserver潜在空引用问题

chore: 更新依赖和ESLint配置

build: 更新构建ID和路由配置
2026-02-24 10:24:05 +08:00
张翔 64165c4499 feat(security,quality): implement security and code quality optimizations
Phase 6: Security Optimizations
- Install DOMPurify for XSS protection
- Create sanitize utilities (HTML, input, URL, escape)
- Implement input sanitization in contact form
- Add CSRF token generation and validation
- Integrate CSRF protection in form submissions

Phase 7: Code Quality Optimizations
- Enhance TypeScript strict mode configuration
- Add noUncheckedIndexedAccess for safer array access
- Enable noImplicitReturns and noFallthroughCasesInSwitch
- Add noUnusedLocals and noUnusedParameters
- Enable exactOptionalPropertyTypes for precise types
- Configure comprehensive ESLint rules
- Add React security rules (no-unescaped-entities, jsx-no-target-blank)
- Add TypeScript best practices rules
- Add code quality rules (prefer-const, eqeqeq, curly)

Files modified:
- package.json: Add DOMPurify dependency
- src/lib/sanitize.ts: New sanitization utilities
- src/lib/csrf.ts: New CSRF protection utilities
- src/components/sections/contact-section.tsx: Security integration
- tsconfig.json: Enhanced TypeScript configuration
- eslint.config.mjs: Comprehensive ESLint rules

Impact:
- XSS attack prevention
- CSRF attack prevention
- Better type safety
- Improved code quality
- Financial-grade security standards
2026-02-24 07:08:39 +08:00
张翔 25586a5a6c chore: 更新构建ID和相关文件引用 2026-02-23 10:38:29 +08:00
张翔 5ec2ad0043 style(ui组件): 更新UI组件颜色方案为深色主题
refactor(card): 调整卡片背景色和边框颜色
refactor(badge): 修改徽章颜色变体
refactor(button): 更新按钮颜色样式
refactor(input): 调整输入框颜色方案
refactor(textarea): 修改文本区域颜色样式
refactor(header): 更新导航栏颜色
refactor(hero-section): 调整英雄区域颜色和渐变
2026-02-23 09:18:41 +08:00
张翔 4f9cfffdad fix: 修复导航栏 active 状态错误
- NAVIGATION 数组顺序调整为与页面 Section 顺序一致
- 顺序: home → services → products → about → news → contact
2026-02-23 08:21:36 +08:00
张翔 afdd7a5456 refactor: 更新渐变定义为医疗健康风格 2026-02-23 00:07:08 +08:00
张翔 83bed14292 refactor: 更新 colors.ts 配色定义为医疗健康风格 2026-02-23 00:06:15 +08:00
张翔 5852e2a799 feat: 添加渐变色工具函数
- 创建渐变色样式生成函数
- 创建光晕效果生成函数
- 创建文字渐变效果函数
- 支持蓝色和紫色光晕
2026-02-22 15:04:25 +08:00
张翔 f88020ee5e feat: 更新色彩系统定义并修复组件类型
- 添加科技蓝、紫色、青色色彩系列
- 更新中性色系列
- 添加渐变色定义
- 创建 GlassCard 组件支持 variant 属性
- 更新 Input 组件支持 label 和 error 属性
- 更新 Textarea 组件支持 label 和 error 属性
- 安装 @radix-ui/react-dialog 依赖
2026-02-22 15:03:10 +08:00
张翔 7f9aad4965 feat: add theme constants and animation variants 2026-02-21 20:02:00 +08:00
张翔 5a93fbb047 feat: add utility functions for formatting and animation 2026-02-21 19:58:50 +08:00
张翔 2b74a83e72 feat: 添加核心工具函数、颜色配置和常量数据
style: 优化.gitignore文件结构

test: 添加导航测试用例

docs: 删除旧版网站重设计文档

chore: 更新浏览器配置和设置管理
2026-02-21 18:52:48 +08:00