From 867bbf3de95fdff344fc1de2d42d20ecf9671f37 Mon Sep 17 00:00:00 2001 From: a2nr Date: Sat, 18 Jul 2026 06:56:14 +0700 Subject: [PATCH] feat(frontend): DeployProgress UI, SerialMonitor BLE toggle, EmbedBridge improvements - Add DeployProgress component (compile/transfer/flash progress bar) - SerialMonitor: add BLE/Hardware deploy toggle support - EditorToolbar: wire deploy state to progress - EmbedBridge: improved message passing for embed mode - useSimulatorStore: add deploy state tracking - CodeEditor: disable stickyScroll, config tweaks - nginx.conf: remove legacy redirect config - package.json: dependency cleanup --- deploy/nginx.conf | 4 - frontend/index.html | 2 +- frontend/package-lock.json | 85 +++---------------- frontend/package.json | 4 +- frontend/public/sitemap.xml | 56 ++++++------ frontend/src/App.css | 6 +- frontend/src/components/editor/CodeEditor.tsx | 43 +++++----- .../src/components/editor/DeployProgress.css | 66 ++++++++++++++ .../src/components/editor/DeployProgress.tsx | 69 +++++++++++++++ .../src/components/editor/EditorToolbar.tsx | 2 + .../components/simulator/SerialMonitor.tsx | 33 ++++++- frontend/src/pages/EditorPage.tsx | 22 +++-- frontend/src/services/EmbedBridge.ts | 26 ++++++ frontend/src/store/useSimulatorStore.ts | 11 +++ 14 files changed, 289 insertions(+), 140 deletions(-) create mode 100644 frontend/src/components/editor/DeployProgress.css create mode 100644 frontend/src/components/editor/DeployProgress.tsx diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 568ee2dc..252c7cd4 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -75,10 +75,6 @@ server { gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml application/rss+xml; # Frontend SPA routing — must be last so specific locations above take precedence - location = / { - return 301 /velxio/editor; - } - location / { try_files $uri $uri/ /index.html; } diff --git a/frontend/index.html b/frontend/index.html index c05bd06f..eb80d966 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - +