Commit Graph

10 Commits

Author SHA1 Message Date
Abner
2eab92a20f 📝 docs: 更新项目文档并添加 .context 目录管理规则
- 在 CLAUDE.md 中添加 `.context/` 目录的项目上下文说明,明确其用于管理开发决策
- 规定编码规范、工作流规则和决策历史的文件路径:`prefs/coding-style.md`、`prefs/workflow.md` 和 `history/commits.md`
- 添加核心规则:修改代码前必须阅读 prefs/ 相关文档,做重要决策时需按 workflow.md 要求记录变更日志
- 在 .gitignore 中忽略 `.context/` 目录,避免将内部决策记录提交到版本库
2026-05-19 22:07:18 +08:00
Abner
c09d438dc8 chore: 从仓库中移除 .omx 目录并添加到 .gitignore
- 删除 .omx/metrics.json 和相关状态文件
- 将 .omx/ 添加到 .gitignore 排除列表
- 防止 oh-my-claudecode 工具状态文件被追踪
2026-03-08 14:16:05 +08:00
Abner
465085f8fa chore: 更新 .gitignore 文件
- 添加了 `.ace-tool/` 和 `.omc` 目录到 .gitignore 文件中,以忽略这些临时或工具生成的文件。
- 这是一个常规的维护性更新,确保项目不包含不必要的自动生成文件。
2026-02-08 09:41:41 +08:00
Abner
1d8e37003c chore: 删除 .gemini-clipboard 文件夹并添加到 .gitignore
- 从 Git 仓库中移除 .gemini-clipboard 临时文件
- 将 .gemini-clipboard/ 添加到 .gitignore 防止未来提交
- 保持仓库整洁,避免临时文件污染
2026-01-22 22:47:35 +08:00
Abner
31567efca2 chore: 从版本控制中排除 .ai-config 目录 2025-12-13 23:49:34 +08:00
Abner
cde5a0af1d 新增 CLAUDE.md 项目指导文件,包含完整的项目架构、技术栈和开发规范
- 详细说明项目架构模式:无框架设计、Serverless优先、BFF模式
- 定义文件结构和模块划分,包括前端模块、Netlify Functions和构建脚本
- 制定代码风格规范:命名约定、导入规则、日志规范、异常处理和参数校验
- 包含测试策略、构建部署流程和Git工作流程说明
- 提供安全规范、性能优化指南和故障排查方案
- 统一项目文档标准和维护要求
2025-11-24 00:42:17 +08:00
Abner
b55b014c36 feat(giffgaff): implement manual eSIM activation flow and update documentation
- replace automatic SIM swap with manual activation process
- add eSIM information display with activation code and SSN
- include step-by-step manual activation guide and confirmation button
- update README and documentation to reflect new activation method
- add service time warning for Giffgaff's maintenance window
- remove outdated deployment options and simplify usage instructions
2025-08-02 17:07:41 +08:00
Abner
d760c1525f 🔧 Fix Giffgaff CSP and OAuth callback issues
🐛 Problems Fixed:
1. CSP violation blocking id.giffgaff.com API calls
2. OAuth callback URL parsing for giffgaff:// protocol

 Solutions Implemented:
1. CSP Configuration:
   - Added comprehensive Content-Security-Policy meta tag
   - Included id.giffgaff.com and publicapi.giffgaff.com domains
   - Fixed connect-src directive to allow OAuth token exchange

2. OAuth Callback Parsing:
   - Support for giffgaff://auth/callback/ protocol URLs
   - Backward compatibility with standard HTTP/HTTPS URLs
   - Regex-based parameter extraction for custom protocols
   - Enhanced debugging with console logs

3. User Interface Improvements:
   - Added callback URL format explanation
   - Clear examples of supported URL formats
   - Better placeholder text with actual example

🔍 Technical Details:
- CSP now allows connections to all required Giffgaff domains
- Callback parser handles both giffgaff:// and https:// protocols
- Added proper URL decoding for extracted parameters

📋 Files Modified:
- giffgaff_complete_esim.html: CSP config + callback parsing
- Added GIFFGAFF_CSP_CALLBACK_FIX.md: Detailed fix documentation

This resolves the CSP violation and enables proper OAuth flow.
2025-08-01 19:18:44 +08:00
Abner
d8a56818da 🔧 Fix Giffgaff OAuth authentication issue
🐛 Problem Fixed:
- GraphQL API calls returning 'unauthorized' error
- Missing MFA signature in request headers
- Incomplete authentication flow

 Solutions Implemented:
- Added X-MFA-Signature header to all GraphQL requests
- Enhanced error handling with detailed logging
- Added authentication state validation
- Improved debugging information

🔍 Technical Details:
- Analyzed Postman script to understand correct auth flow
- Giffgaff requires dual authentication: OAuth + MFA signature
- All GraphQL endpoints now include both auth mechanisms

📋 Files Modified:
- giffgaff_complete_esim.html: Fixed all GraphQL requests
- Added GIFFGAFF_OAUTH_FIX.md: Detailed fix documentation

This should resolve the 'Full authentication is required' error.
2025-08-01 19:06:50 +08:00
Abner
974b6034f3 🚀 Initial commit: eSIM Tools v1.0
 Features:
- Complete Giffgaff eSIM management with OAuth 2.0 PKCE
- Simyo eSIM tools with device switching support
- Netlify deployment ready with CORS proxy
- Responsive UI with Bootstrap 5
- Comprehensive testing suite
- Multi-language support (Chinese)

🔧 Technical:
- Node.js proxy server for CORS handling
- Environment-aware API endpoints
- Static deployment optimization
- Professional documentation

📦 Deployment:
- Netlify configuration included
- GitHub Actions ready
- Custom domain support
- HTTPS enabled
2025-08-01 18:42:54 +08:00