mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-28 03:01:54 +08:00
fix: dashboard null crash, chat layout, markdown escaping, gzip, gateway banner delay
feat: hosted agent with auto-stop, context compression, visual sliders feat: auto-reload gateway after config save (debounced 3s) style: toast solid bg, chat input enlargement, hosted agent panel CSS chore: fix dev.ps1 encoding, engagement share text
This commit is contained in:
34
dev.ps1
34
dev.ps1
@@ -1,30 +1,12 @@
|
||||
#!/usr/bin/env pwsh
|
||||
# ClawPanel 开发服务器启动脚本
|
||||
#!/usr/bin/env pwsh
|
||||
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
||||
|
||||
Write-Host "🚀 启动 ClawPanel 开发服务器..." -ForegroundColor Cyan
|
||||
Write-Host '[*] Starting ClawPanel dev server...' -ForegroundColor Cyan
|
||||
|
||||
# 检查 Node.js
|
||||
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "❌ 未找到 Node.js,请先安装" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
if (-not (Get-Command node -ErrorAction SilentlyContinue)) { Write-Host '[ERR] Node.js not found' -ForegroundColor Red; exit 1 }
|
||||
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) { Write-Host '[ERR] Rust not found' -ForegroundColor Red; exit 1 }
|
||||
if (-not (Test-Path 'node_modules')) { Write-Host '[*] Installing deps...' -ForegroundColor Yellow; npm install }
|
||||
if (-not (Test-Path 'src-tauri\target')) { Write-Host '[*] First Rust build (may take minutes)...' -ForegroundColor Yellow }
|
||||
|
||||
# 检查 Rust
|
||||
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "❌ 未找到 Rust,请先安装" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
# 检查依赖
|
||||
if (-not (Test-Path "node_modules")) {
|
||||
Write-Host "📦 安装前端依赖..." -ForegroundColor Yellow
|
||||
npm install
|
||||
}
|
||||
|
||||
if (-not (Test-Path "src-tauri/target")) {
|
||||
Write-Host "🦀 首次编译 Rust(可能需要几分钟)..." -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
# 启动开发服务器
|
||||
Write-Host "✨ 启动中..." -ForegroundColor Green
|
||||
Write-Host '[*] Launching...' -ForegroundColor Green
|
||||
npm run tauri dev
|
||||
|
||||
Reference in New Issue
Block a user