Physics formula calculators and DSP tools with React + Vite and Quarto.
- Netlify (推荐): [即将部署] - 自动构建,包含所有 React 项目
- Quarto Pub: https://tongsuoregonstate11.quarto.pub/calculator - 仅 Vanilla JS 版本
-
🔬 Physics Pipeline - Full formula pipeline system
- Vanilla JavaScript version (即用)
- React + Vite version (模块化架构)
- 10+ physics formulas
- Block-based connections
- Auto-calculation pipeline
-
🧪 Demo Versions - Learning resources
- 1-formula demos
- 2-formulas demos
- Both vanilla JS and React versions
- 🎛️ DSP R(z) Analysis - Zero-pole analysis with SymPy
- 🧮 Block Formula Demo - Interactive drag & calculate
- 🔗 Block Drag & Connect - Visual block connections
无需安装 Node.js! Netlify 会自动构建所有内容。
-
创建 GitHub 仓库
# 在 GitHub 上创建新仓库 -
推送代码
git init git add . git commit -m "Initial commit" git remote add origin YOUR_GITHUB_URL git push -u origin main
-
连接 Netlify
- 访问 https://app.netlify.com
- Import from GitHub
- 选择你的仓库
- 点击 Deploy(配置已在 netlify.toml)
-
完成!
- Netlify 自动构建和部署
- 所有 React 项目自动生成
- 获得免费 HTTPS 和 CDN
📖 详细指南: QUICK_START_NETLIFY.md
Quarto_Blog_Calculator/
├── physics-pipeline/ # Vanilla JS - 完整版
├── physics-pipeline-1formula/ # Vanilla JS - 1公式 demo
├── physics-pipeline-2formulas/ # Vanilla JS - 2公式 demo
│
├── physics-pipeline-react/ # React + Vite - 完整版
│ ├── src/
│ │ ├── components/ # 模块化组件
│ │ ├── data/ # 公式数据
│ │ ├── utils/ # 工具函数
│ │ └── ...
│ └── dist/ # 构建输出(Netlify生成)
│
├── physics-pipeline-react-1formula/ # React - 1公式 demo
├── physics-pipeline-react-2formulas/ # React - 2公式 demo
│
├── netlify.toml # Netlify 配置
├── build-all-react.sh # 构建脚本
├── build-react-projects.js # Node.js 构建脚本
├── package.json # NPM 配置
├── _quarto.yml # Quarto 配置
└── index.qmd # 主页
- Quarto - Static site generator
- React 18 - UI framework
- Vite 5 - Build tool and dev server
- Vanilla JavaScript - Direct-run versions
- Netlify - Automated CI/CD
- GitHub - Version control
- Node.js 20 - Build environment
- SymPy (via PyScript) - Symbolic math
- Quarto Pub - Alternative hosting
- 🚀 Quick Start (Netlify) - 5分钟部署指南
- 🌐 Netlify Deployment Guide - 完整部署文档
- ⚛️ React Projects Guide - React 项目详解
- 📐 React + Vite Architecture - 技术架构
- 🔧 Build & Deploy Manual - 手动构建指南
- 📝 Updates Log - 更新日志
# 修改代码
# ...
# 提交并推送
git add .
git commit -m "Your changes"
git push
# Netlify 自动构建和部署!✨# React 项目开发模式
cd physics-pipeline-react
npm install
npm run dev
# 访问 http://localhost:5173
# Quarto 预览
quarto preview| 版本 | 技术栈 | 构建需求 | 模块化 | 适用场景 |
|---|---|---|---|---|
| Vanilla JS | 纯 JavaScript | ❌ 无 | ❌ 单文件 | 快速部署 |
| React + Vite | React 18 | ✅ 需要 | ✅ 模块化 | 长期维护 |
- Physics Pipeline (Vanilla JS) -
./physics-pipeline/index.html - Physics Pipeline (React) -
./physics-pipeline-react/dist/index.html - Physics Formula Blocks -
./physics-blocks.html
- Vanilla JS: 1-formula, 2-formulas
- React + Vite: 1-formula, 2-formulas
Issues and pull requests are welcome!
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
MIT License - feel free to use for your projects!
Tong Su
- GitHub: @TONGSUOregonState
- Built with Quarto
- Powered by React and Vite
- Deployed on Netlify
- Previously hosted on Quarto Pub
Ready to deploy? Start with QUICK_START_NETLIFY.md! 🚀