Phase 1a — Gradient Removal: - Replaced all gradient-button/gradient-card with glass-button/path-option-card - Removed banned gradient CSS classes Phase 1b — Security Hardening: - SecretsManager: AES-256-GCM encryption (core/security) - electrs_status: credentials from env vars instead of hardcoded - port_manager: RwLock proper error handling (no unwrap) - Pinned all 11 :latest manifest images to specific versions - parmanode converter: pinned inferred image versions Phase 1c — Code Quality: - Split rpc.rs (1795 lines) into 6 handler modules (auth, node, container, package, peers) - Removed sideload code (UI, store, RPC client, 3 doc files) - Fixed body background flash on logout/refresh - Replaced 30 TypeScript `any` types with proper types - Deleted HelloWorld.vue, removed TODO comments - Added set -euo pipefail to all shell scripts - Made deploy script verbose with timestamps and elapsed time Also adds: - CLAUDE.md project guide - docs/three-mode-ui-design.md — design spec for Easy/Pro/Chat UI modes - OnlineStatusPill component Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.0 KiB
Bash
Executable File
40 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
# Quick dev script - just starts the mock backend for UI development
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
FRONTEND_DIR="$PROJECT_ROOT/neode-ui"
|
|
|
|
if [ ! -d "$FRONTEND_DIR" ]; then
|
|
echo "❌ Frontend directory not found: $FRONTEND_DIR"
|
|
exit 1
|
|
fi
|
|
|
|
echo "📁 Using: $FRONTEND_DIR"
|
|
cd "$FRONTEND_DIR"
|
|
|
|
# Kill any existing processes on ports 5959 and 8100
|
|
echo "🧹 Cleaning up ports 5959 and 8100..."
|
|
lsof -ti:5959 | xargs kill -9 2>/dev/null || true
|
|
lsof -ti:8100 | xargs kill -9 2>/dev/null || true
|
|
sleep 1
|
|
|
|
# Check if node_modules exists
|
|
if [ ! -d "node_modules" ]; then
|
|
echo "⚠️ Installing dependencies..."
|
|
npm install
|
|
fi
|
|
|
|
# Check if mock-backend.js exists
|
|
if [ ! -f "mock-backend.js" ]; then
|
|
echo "❌ mock-backend.js not found in $FRONTEND_DIR"
|
|
echo " Make sure you're using the correct project directory"
|
|
exit 1
|
|
fi
|
|
|
|
echo "🚀 Starting frontend with mock backend..."
|
|
echo " (Press Ctrl+C to stop)"
|
|
echo ""
|
|
npm run dev:mock
|