mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-03 06:24:20 +08:00
🔧 Fixed CSP Issue: - Root cause: Netlify CSP configuration overriding HTML meta CSP - Added missing domains: id.giffgaff.com, publicapi.giffgaff.com - Updated netlify.toml CSP configuration - This resolves the OAuth token exchange CSP violation 📁 Project Architecture Restructure: - src/: Source code organized by provider (giffgaff/, simyo/) - docs/: Documentation categorized (fixes/, guides/, reference/) - tests/: All test files centralized - scripts/: Deployment and utility scripts - postman/: API collections and reference files 🔄 Path Updates: - Updated netlify.toml redirects for new file locations - Updated README.md with new project structure - Updated all internal documentation links - Maintained backward compatibility for all URLs 📋 Files Moved: - giffgaff_complete_esim.html → src/giffgaff/ - simyo_complete_esim.html → src/simyo/ - simyo_static.html → src/simyo/ - simyo_proxy_server.js → src/simyo/ - All docs → docs/{fixes,guides,reference}/ - All tests → tests/ - All scripts → scripts/ - Postman collections → postman/ ✨ Benefits: - Improved maintainability and organization - Better separation of concerns - Enhanced developer experience - Cleaner project structure following best practices - Zero impact on user experience (all URLs preserved) This major restructure sets foundation for better scalability and maintenance.
52 lines
1.1 KiB
Batchfile
52 lines
1.1 KiB
Batchfile
@echo off
|
||
REM Simyo eSIM 代理服务器启动脚本 (Windows)
|
||
|
||
echo 🚀 启动 Simyo eSIM 代理服务器...
|
||
|
||
REM 检查Node.js是否安装
|
||
node --version >nul 2>&1
|
||
if errorlevel 1 (
|
||
echo ❌ 错误: 未检测到 Node.js,请先安装 Node.js (版本 >= 14.0.0)
|
||
echo 下载地址: https://nodejs.org/
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
REM 显示Node.js版本
|
||
echo ✅ Node.js 版本:
|
||
node --version
|
||
|
||
REM 检查package.json是否存在
|
||
if not exist "package.json" (
|
||
echo ❌ 错误: 未找到 package.json 文件
|
||
echo 请确保在正确的目录中运行此脚本
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
REM 检查依赖是否已安装
|
||
if not exist "node_modules" (
|
||
echo 📦 安装依赖包...
|
||
npm install
|
||
|
||
if errorlevel 1 (
|
||
echo ❌ 依赖安装失败,请检查网络连接或npm配置
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
echo ✅ 依赖安装完成
|
||
) else (
|
||
echo ✅ 依赖包已存在
|
||
)
|
||
|
||
REM 启动服务器
|
||
echo 🌟 启动代理服务器...
|
||
echo 📍 服务器将在 http://localhost:3000 启动
|
||
echo 💡 按 Ctrl+C 停止服务器
|
||
echo.
|
||
|
||
REM 启动服务器
|
||
node simyo_proxy_server.js
|
||
|
||
pause |