ваше сообщение коммита

This commit is contained in:
2025-09-30 00:23:37 +03:00
parent ca718e3178
commit 4b03951b31
77 changed files with 17161 additions and 7255 deletions

View File

@@ -192,5 +192,275 @@ const formatTime = (timestamp) => {
</script>
<style scoped>
/* Ваши стили для формы */
/* Статус подключения */
.connection-status {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
padding: 1rem;
background: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
transition: background-color 0.3s ease;
}
.status-indicator.active {
background-color: #28a745;
box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}
.status-indicator.inactive {
background-color: #dc3545;
}
.status-text {
font-weight: 600;
color: #333;
}
.disconnect-btn {
background: #dc3545;
color: white;
border: none;
border-radius: 6px;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.9rem;
transition: background-color 0.2s;
}
.disconnect-btn:hover {
background: #c82333;
}
/* Форма */
.tunnel-form {
display: flex;
flex-direction: column;
gap: 2rem;
}
.form-section {
background: white;
border: 1px solid #e9ecef;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-section h3 {
margin: 0 0 1.5rem 0;
color: var(--color-primary);
font-size: 1.25rem;
font-weight: 600;
border-bottom: 2px solid #f0f0f0;
padding-bottom: 0.5rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #333;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
background: white;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-group input:disabled,
.form-group textarea:disabled {
background: #f8f9fa;
color: #6c757d;
cursor: not-allowed;
}
.form-group textarea {
resize: vertical;
min-height: 120px;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
}
/* Дополнительные настройки */
.advanced-section {
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
/* Кнопки */
.form-actions {
display: flex;
gap: 1rem;
justify-content: flex-start;
margin-top: 1rem;
}
.publish-btn {
background: linear-gradient(135deg, var(--color-primary), #20c997);
color: white;
border: none;
border-radius: 8px;
padding: 0.75rem 2rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
min-width: 140px;
}
.publish-btn:hover:not(:disabled) {
background: linear-gradient(135deg, #0056b3, #1ea085);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.publish-btn:disabled {
background: #6c757d;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.reset-btn {
background: #6c757d;
color: white;
border: none;
border-radius: 8px;
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.reset-btn:hover:not(:disabled) {
background: #5a6268;
transform: translateY(-1px);
}
.reset-btn:disabled {
background: #adb5bd;
cursor: not-allowed;
transform: none;
}
/* Лог операций */
.operation-log {
margin-top: 2rem;
background: white;
border: 1px solid #e9ecef;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.operation-log h3 {
margin: 0 0 1rem 0;
color: var(--color-primary);
font-size: 1.25rem;
font-weight: 600;
}
.log-container {
max-height: 300px;
overflow-y: auto;
background: #f8f9fa;
border-radius: 8px;
padding: 1rem;
}
.log-entry {
display: flex;
gap: 1rem;
padding: 0.5rem 0;
border-bottom: 1px solid #e9ecef;
font-size: 0.9rem;
}
.log-entry:last-child {
border-bottom: none;
}
.log-time {
color: #6c757d;
font-weight: 600;
min-width: 80px;
flex-shrink: 0;
}
.log-message {
flex: 1;
}
.log-entry.success .log-message {
color: #28a745;
font-weight: 600;
}
.log-entry.error .log-message {
color: #dc3545;
font-weight: 600;
}
.log-entry.info .log-message {
color: #17a2b8;
font-weight: 600;
}
/* Адаптивность */
@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
}
.form-actions {
flex-direction: column;
}
.publish-btn,
.reset-btn {
width: 100%;
}
.connection-status {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
}
</style>