feat(trading-assistant): refactor strategy creation and enhance script mode functionality
- Removed conditional rendering for the assistant guide bar. - Simplified strategy overview and strategy list item components. - Introduced a new modal for selecting strategy mode. - Enhanced strategy creation modal to support script strategies with a dedicated editor. - Updated form handling for script strategies, including validation and submission logic. - Improved user experience with better messaging and streamlined UI components. - Updated translations for better clarity in Chinese.
This commit is contained in:
+10
-11
@@ -1,26 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# QuantDinger Python API 启动脚本
|
||||
# QuantDinger Python API startup script
|
||||
|
||||
# 激活虚拟环境(如果使用虚拟环境)
|
||||
# Activate the virtual environment if one is used
|
||||
# source venv/bin/activate
|
||||
|
||||
# 检查依赖是否安装
|
||||
# Check whether dependencies are installed
|
||||
if ! python -c "import flask" 2>/dev/null; then
|
||||
echo "正在安装依赖..."
|
||||
echo "Installing dependencies..."
|
||||
pip install -r requirements.txt
|
||||
fi
|
||||
|
||||
# 启动服务
|
||||
echo "启动 QuantDinger Python API 服务..."
|
||||
echo "服务地址: http://0.0.0.0:5000"
|
||||
# Start the service
|
||||
echo "Starting QuantDinger Python API service..."
|
||||
echo "Service address: http://0.0.0.0:5000"
|
||||
|
||||
# 创建日志目录
|
||||
# Create the log directory
|
||||
mkdir -p logs
|
||||
|
||||
# 开发环境(使用新的入口文件)
|
||||
# Development environment (uses the new entry file)
|
||||
python run.py
|
||||
|
||||
# 生产环境(使用 gunicorn)
|
||||
# Production environment (uses gunicorn)
|
||||
# gunicorn -w 4 -b 0.0.0.0:5000 --timeout 120 --access-logfile logs/access.log --error-logfile logs/error.log "run:create_app()"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user