Исправил баг с загрузкой конфигурации AP сети в Settings. Добавил возможность изменять из в админ панели. Применил их к AP сети. Изменил функциональность endpoint'ов и удалил лишние. Обновил README

This commit is contained in:
2026-09-30 18:29:00 +07:00
parent 371cdfb6c5
commit 940695f6aa
9 changed files with 615 additions and 292 deletions
+209 -8
View File
@@ -1,9 +1,93 @@
/* Специфичное ограничение ширины для карточек настроек */
.main-content {
max-width: 700px;
/* ==========================================================================
ИМПОРТ ИЛИ СЛИЯНИЕ С БАЗОВЫМИ СТИЛЯМИ (base.css)
========================================================================== */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #121212;
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
color: #ff6600;
margin: 0 0 30px 0;
text-transform: uppercase;
letter-spacing: 2px;
border-bottom: 2px solid #ff6600;
padding-bottom: 10px;
width: 100%;
}
/* ШАПКА (TOP BAR) */
.top-bar {
width: 100%;
background-color: #1a1a1a;
border-bottom: 2px solid #ff6600;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
position: sticky;
top: 0;
z-index: 1000;
}
.top-bar-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 20px;
font-weight: bold;
color: #ffffff;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
}
.logo span {
color: #ff6600;
}
.nav-links {
display: flex;
align-items: center;
gap: 20px;
}
.nav-link {
color: #e0e0e0;
text-decoration: none;
font-size: 15px;
transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
color: #ff6600;
}
.nav-link.active {
font-weight: 600;
}
/* ==========================================================================
СПЕЦИФИЧНЫЕ СТИЛИ СТРАНИЦЫ НАСТРОЕК
========================================================================== */
.main-content {
width: 100%;
max-width: 740px; /* 700px + padding */
padding: 40px 20px;
box-sizing: border-box;
}
/* Ссылка назад к списку */
.back-link {
display: inline-flex;
align-items: center;
@@ -19,20 +103,20 @@
color: #ff6600;
}
/* Сетка для блоков настроек */
.settings-grid {
display: flex;
flex-direction: column;
gap: 30px;
width: 100%;
}
/* Карточка настроек */
.settings-card {
background-color: #1a1a1a;
border-radius: 8px;
padding: 30px;
box-shadow: 0 4px 15px rgba(255, 102, 0, 0.05);
border: 1px solid #2a2a2a;
box-sizing: border-box;
}
.card-title {
@@ -43,6 +127,10 @@
display: flex;
align-items: center;
gap: 10px;
border-bottom: none;
padding-bottom: 0;
text-transform: none;
letter-spacing: normal;
}
.form-group {
@@ -52,6 +140,17 @@
gap: 8px;
}
/* Строчный контейнер для трех полей (IP, Gateway, Mask) */
.form-row-three {
display: flex;
gap: 15px;
width: 100%;
}
.form-row-three .form-group {
flex: 1;
}
label {
color: #a0a0a0;
font-size: 14px;
@@ -79,6 +178,18 @@ input[type="password"]:focus {
box-shadow: 0 0 8px rgba(255, 102, 0, 0.2);
}
/* Чекбоксы */
.checkbox-group {
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
cursor: pointer;
user-select: none;
margin-bottom: 25px;
position: relative;
}
.checkbox-group input[type="checkbox"] {
position: absolute;
opacity: 0;
@@ -96,6 +207,7 @@ input[type="password"]:focus {
display: inline-block;
position: relative;
transition: all 0.2s ease;
flex-shrink: 0;
}
.checkbox-group:hover input[type="checkbox"] ~ .checkmark {
@@ -131,7 +243,7 @@ input[type="password"]:focus {
letter-spacing: 0.5px;
}
/* Кнопка отправки формы */
/* Кнопка отправки */
.submit-btn {
background-color: #ff6600;
color: #000000;
@@ -153,12 +265,95 @@ input[type="password"]:focus {
box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}
/* Адаптивность для карточек и инпутов */
/* Текстовый блок "Текущие настройки" */
.info-card {
border-left: 4px solid #ff6600;
}
.info-group {
display: flex;
flex-direction: column;
gap: 14px;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 10px;
border-bottom: 1px solid #222222;
}
.info-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.info-label {
color: #a0a0a0;
font-size: 14px;
}
.info-value {
color: #ffffff;
font-weight: 600;
font-size: 15px;
}
/* Цвета статусов */
.status-connected {
color: #00cc66;
background-color: rgba(0, 204, 102, 0.1);
padding: 4px 8px;
border-radius: 4px;
font-size: 13px;
}
.status-disconnected {
color: #ff3333;
background-color: rgba(255, 51, 51, 0.1);
padding: 4px 8px;
border-radius: 4px;
font-size: 13px;
}
/* ==========================================================================
АДАПТИВНОСТЬ
========================================================================== */
@media (max-width: 768px) {
.top-bar-container {
height: auto;
padding: 12px 16px;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.nav-links {
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
}
.main-content {
padding: 24px 14px;
}
h1 {
font-size: 24px;
letter-spacing: 1px;
}
.settings-card {
padding: 20px 16px;
}
.form-row-three {
flex-direction: column;
gap: 0;
}
.form-group {
margin-bottom: 16px;
}
@@ -171,4 +366,10 @@ input[type="password"]:focus {
padding: 12px 10px;
font-size: 14px;
}
.info-item {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
}