From 98cdbc09df6d51c58125a17985ada3cd07efbcfb Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 12 Sep 2023 00:02:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0?= =?UTF-8?q?=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D1=81=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B0=20=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B7=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 11 +++++++++++ gui/app.js | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..72da7a6 --- /dev/null +++ b/TODO.md @@ -0,0 +1,11 @@ +# πŸ–±οΈ Front-end + +* [x] НС Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ ΠΊΠ½ΠΎΠΏΠΊΠ° сброса ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»Π΅ΠΉ Π·ΠΎΠ½ +* [ ] Π Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΡƒ пустой ΠΊΠΎΠΌΠ°Π½Π΄Ρ‹ ΠΏΡ€ΠΈ Π½Π°ΠΆΠ°Ρ‚ΠΈΠΈ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡƒ `ΠžΡ‚ΠΏΡ€Π°Π²ΠΈΡ‚ΡŒ` ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ +* [x] Π”ΠΎΠ±Π°Π²ΠΈΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ Π°Π²Π°Ρ€ΠΈΠΉΠ½ΠΎΠ³ΠΎ Ρ€Π΅ΠΆΠΈΠΌΠ° ΠΈ рСвСрса (7de9849d9aa86955d9c8c902177dc54ff802046e) +* [ ] Π’Ρ‹Π²ΠΎΠ΄ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎΠ± устойствС Π½Π° Π²ΠΊΠ»Π°Π΄ΠΊΠ΅ `Устройство` +* [ ] Π Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΡƒ вСрсии ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΈΠ· ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚Π° + +# βš™οΈ Back-end + +* [ ] Π Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ статуса Π°Π²Π°Ρ€ΠΈΠΉΠ½ΠΎΠ³ΠΎ Ρ€Π΅ΠΆΠΈΠΌΠ° ΠΈ рСвСрса real-time для UI diff --git a/gui/app.js b/gui/app.js index c0a3f7f..72e5fea 100644 --- a/gui/app.js +++ b/gui/app.js @@ -41,6 +41,8 @@ window.onload = function () { document.getElementById('btn_app_close').addEventListener('click', close_app); document.getElementById('btn_port_refresh').addEventListener('click', refresh_ports); document.getElementById('btn_device_connect').addEventListener('click', connect_to_device); + + document.getElementById('option_zone_reset').addEventListener('click', reset_test_zones); }; /** @@ -191,6 +193,16 @@ function set_mode_status(mode, status) { return 0; } +/** + * БбрасываСт состояниС ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»Π΅ΠΉ Π·ΠΎΠ½ Π² ΠΎΠΊΠ½Π΅ `ВСстированиС` + */ +function reset_test_zones() { + const option_zones = document.getElementsByName('option-zone'); + for (let checkbox of option_zones) { + checkbox.checked = false; + } +} + /** * */