Initial dashboard skill - Vite+React+Tailwind web UI

This commit is contained in:
Azat
2026-02-02 23:57:37 +01:00
commit 65ec6ad1ec
27 changed files with 2264 additions and 0 deletions

28
scripts/run.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
DASHBOARD_PORT="${DASHBOARD_PORT:-3000}"
SKILL_DIR="$(dirname "$(dirname "$0")")"
UI_DIR="$SKILL_DIR/ui"
# Export environment for the app
export DASHBOARD_PORT
export SUPERVISOR_URL="${SUPERVISOR_URL:-http://localhost:9001}"
export MEMORY_URL="${MEMORY_URL:-http://localhost:8081}"
export SKILLS_DIR="${SKILLS_DIR:-/skills}"
echo "Starting Dashboard on port $DASHBOARD_PORT..."
echo "Supervisor: $SUPERVISOR_URL"
echo "Memory API: $MEMORY_URL"
cd "$UI_DIR"
# In production, serve built files
# In development, run vite dev server
if [ "${NODE_ENV:-production}" = "development" ]; then
echo "Running in development mode..."
exec npm run dev -- --port "$DASHBOARD_PORT" --host
else
echo "Running in production mode..."
exec npm run preview -- --port "$DASHBOARD_PORT" --host
fi