Что-то сделано

This commit is contained in:
Alexander Popov 2023-08-29 22:51:28 +03:00
parent 117226bfc4
commit 5119624bba
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
2 changed files with 15 additions and 31 deletions

View File

@ -12,8 +12,8 @@
</head> </head>
<body class="d-flex h-100 text-bg-dark"> <body class="d-flex h-100 text-bg-dark">
<div class="d-flex h-100 mx-auto p-3"> <div class="d-flex h-100 mx-auto p-3">
<nav class="d-flex flex-column flex-shrink-0 p-3 text-bg-dark" style="width: 300px"> <nav class="d-flex flex-column flex-shrink-0 p-3 text-bg-dark" style="width: 280px">
<p class="text-center fw-bold m-0"> Настройка модуля<br />торможения </p> <p class="text-center fw-bold m-0">Настройка модуля<br />торможения</p>
<hr /> <hr />
<ul class="nav nav-pills flex-column mb-auto"> <ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item"> <li class="nav-item">
@ -186,9 +186,7 @@
<main class="d-flex flex-fill" style="width: 600px"> <main class="d-flex flex-fill" style="width: 600px">
<!-- Device --> <!-- Device -->
<div id="appWindowDevice" class="flex-fill card shadow p-3"> <div id="appWindowDevice" class="flex-fill card shadow p-3">
<p class="text-center"> <p class="text-center">Порт для подключения</p>
Порт для подключения
</p>
<div class="input-group mb-3"> <div class="input-group mb-3">
<select id="port_selector" class="form-select"> <select id="port_selector" class="form-select">
<option value="null" selected>Выберите порт...</option> <option value="null" selected>Выберите порт...</option>
@ -207,9 +205,7 @@
<!-- Testing --> <!-- Testing -->
<div id="appWindowTesting" class="d-none flex-fill card shadow p-3"> <div id="appWindowTesting" class="d-none flex-fill card shadow p-3">
<p class="text-center"> <p class="text-center">Активация режимов</p>
Активация режимов
</p>
<div class="d-flex btn-group mb-3"> <div class="d-flex btn-group mb-3">
<input <input
type="checkbox" type="checkbox"
@ -230,9 +226,7 @@
</div> </div>
<!-- zone switchers --> <!-- zone switchers -->
<p class="text-center"> <p class="text-center">Переключатели зон</p>
Переключатели зон
</p>
<div class="d-flex btn-group mb-3"> <div class="d-flex btn-group mb-3">
<input <input
type="radio" type="radio"
@ -261,13 +255,11 @@
<label class="btn btn-outline-primary" for="option_zone_danger"> <label class="btn btn-outline-primary" for="option_zone_danger">
ОПАСНОСТЬ ОПАСНОСТЬ
</label> </label>
<button class="btn btn-warning" id="option_zone_reset"> СБРОС </button> <button class="btn btn-warning" id="option_zone_reset">СБРОС</button>
</div> </div>
<!-- command sender --> <!-- command sender -->
<p class="text-center"> <p class="text-center">Отправить команду</p>
Отправить команду
</p>
<div class="input-group mb-3"> <div class="input-group mb-3">
<span class="input-group-text">Команда</span> <span class="input-group-text">Команда</span>
<input id="input_command" type="text" class="form-control" /> <input id="input_command" type="text" class="form-control" />
@ -277,23 +269,17 @@
<!-- Settings --> <!-- Settings -->
<div id="appWindowSettings" class="d-none flex-fill card shadow p-3"> <div id="appWindowSettings" class="d-none flex-fill card shadow p-3">
<div class="alert alert-danger text-center"> <div class="alert alert-danger text-center">В разработке</div>
В разработке
</div>
</div> </div>
<!-- FirmwareUpdate --> <!-- FirmwareUpdate -->
<div id="appWindowFirmwareUpdate" class="d-none flex-fill card shadow p-3"> <div id="appWindowFirmwareUpdate" class="d-none flex-fill card shadow p-3">
<div class="alert alert-danger text-center"> <div class="alert alert-danger text-center">В разработке</div>
В разработке
</div>
</div> </div>
<!-- Log --> <!-- Log -->
<div id="appWindowLog" class="d-none flex-fill card shadow p-3"> <div id="appWindowLog" class="d-none flex-fill card shadow p-3">
<p class="text-center"> <p class="text-center">Лог работы программы</p>
Лог работы программы
</p>
<textarea <textarea
id="connection_log_console" id="connection_log_console"
class="form-control h-100 font-monospace bg-dark text-bg-dark" class="form-control h-100 font-monospace bg-dark text-bg-dark"
@ -315,16 +301,14 @@
<!-- About --> <!-- About -->
<div id="appWindowAbout" class="d-none flex-fill card shadow p-3"> <div id="appWindowAbout" class="d-none flex-fill card shadow p-3">
<p class="text-center"> <p class="text-center">О программе</p>
О программе
</p>
<div class="alert alert-info text-center"> <div class="alert alert-info text-center">
Программа для настройки Программа для настройки
<span class="fw-bold">модуля торможения</span>. <span class="fw-bold">модуля торможения.</span>
</div> </div>
<div class="alert alert-warning text-center"> <div class="alert alert-warning text-center">
Разработано специально для Разработано специально для
<span class="fw-bold">НК-Сервис</span>. <span class="fw-bold">НК-Сервис.</span>
</div> </div>
<div class="alert alert-dark text-center">2023 by Alexander Popov</div> <div class="alert alert-dark text-center">2023 by Alexander Popov</div>
</div> </div>

View File

@ -11,8 +11,8 @@ struct sp_port *serial_port;
int main(int argc, char const *argv[]) { int main(int argc, char const *argv[]) {
int app_window = webui_new_window(); int app_window = webui_new_window();
// html_document[html_document_len] = '\0'; html_document[html_document_len] = '\0';
html_document[html_document_len + 1] = '\0'; // html_document[html_document_len + 1] = '\0';
if (argc > 1 && strcmp(argv[1], "icanthink") == 0) { if (argc > 1 && strcmp(argv[1], "icanthink") == 0) {
} }