From 56df27c85f3506168c7fa9b754091f80e0f28b88 Mon Sep 17 00:00:00 2001 From: windpacer Date: Wed, 10 Jun 2026 19:40:38 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Point=20Builder=20=ED=96=89?= =?UTF-8?q?=EB=B3=84=20is=5Factive=20=EB=9E=A8=ED=94=84=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=20+=20=EB=93=B1=EB=A1=9D/=EC=83=81=ED=83=9C=20?= =?UTF-8?q?=EC=BB=AC=EB=9F=BC=20=ED=99=95=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 🟒/πŸ”΄ is_active ν† κΈ€ λž¨ν”„ μ‚­μ œ (등둝/μƒνƒœ 색상과 쀑볡, is_active μ „μ—­ TRUE라 무의미) - λ―Έμ‚¬μš© pbToggleOne ν•¨μˆ˜ 제거 - 등둝/μƒνƒœ 75β†’120px(κΈ΄ 라벨 λŒ€μ‘), 관리 110β†’80px(μ‚­μ œλ§Œ λ‚¨μŒ) - κ°œλ³„ ν™œμ„±/λΉ„ν™œμ„±μ€ 상단 일괄 λ²„νŠΌμœΌλ‘œ 일원화 Co-Authored-By: Claude Opus 4.8 --- src/Hc900Crawler/wwwroot/js/pb.js | 11 +---------- src/Hc900Crawler/wwwroot/panes/pb.html | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/Hc900Crawler/wwwroot/js/pb.js b/src/Hc900Crawler/wwwroot/js/pb.js index 3eba1e7..301b11f 100644 --- a/src/Hc900Crawler/wwwroot/js/pb.js +++ b/src/Hc900Crawler/wwwroot/js/pb.js @@ -301,8 +301,7 @@ function pbRenderPoints(res) { ${item.controllerId} ${statusLabel} - ${item.isActive ? '🟒' : 'πŸ”΄'} - + `; }).join(''); @@ -325,14 +324,6 @@ function pbUpdateBulkBar() { bar.hidden = checked.length === 0; } -async function pbToggleOne(id, active) { - const res = await pbApi(`/api/hc900/tags/${id}/active`, 'PUT', active); - if (res) { - pbRefresh(); - pbLoadSummary(); - } -} - async function pbDeleteOne(id) { if (!confirm('이 νƒœκ·Έλ₯Ό λΉ„ν™œμ„±ν™”ν•˜κ³  realtime_tableμ—μ„œ μ œκ±°ν•©λ‹ˆλ‹€. κ³„μ†ν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?')) return; const res = await pbApi(`/api/pointbuilder/${id}`, 'DELETE'); diff --git a/src/Hc900Crawler/wwwroot/panes/pb.html b/src/Hc900Crawler/wwwroot/panes/pb.html index b6db557..9dc9f22 100644 --- a/src/Hc900Crawler/wwwroot/panes/pb.html +++ b/src/Hc900Crawler/wwwroot/panes/pb.html @@ -313,8 +313,8 @@ 데이터 νƒ€μž… Modbus 컨트둀러 - 등둝/μƒνƒœ - 관리 + 등둝/μƒνƒœ + 관리