Добавление и Удаление сайта
Backend (Go): - Добавлен полный функционал создания сайтов - Добавлен функционал удаления сайтов - Новые API методы в admin.go: - Добавлен шаблон стартовой страницы - Добавлена функция DecodeBase64 Исправления критических ошибок: - Исправлена работа wildcard алиасов (*.domain.com) в handler.go - Исправлены ошибки "файл не найден" при создании файлов Frontend (JavaScript + HTML + CSS): - Добавлена страница создания сайта - Добавлена кнопка "Удалить сайт" в редактировании - Мелкие доработки стилей Build: - Обновлён build_admin.ps1 - добавлен шаг генерации биндингов (wails generate module) Fixes: - #fix Wildcard алиасы (*.domain.com) теперь работают корректно - #fix Удалён порт из host при проверке алиасов - #fix Приоритет точных доменов над wildcard - #fix Ошибки "файл не найден" при создании сайтов/vAccess - #fix Секция добавления сайта теперь скрывается при навигации
This commit is contained in:
@@ -62,6 +62,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Delete Button Variant */
|
||||
.delete-btn {
|
||||
background: rgba(239, 68, 68, 0.15);
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
color: var(--accent-red);
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: rgba(239, 68, 68, 0.25);
|
||||
border-color: rgba(239, 68, 68, 0.5);
|
||||
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
/* Icon Button - Квадратная кнопка с иконкой */
|
||||
.icon-btn {
|
||||
width: 32px;
|
||||
|
||||
@@ -91,11 +91,15 @@
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-lg);
|
||||
gap: 8px;
|
||||
padding: 20px var(--space-lg);
|
||||
border-top: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.modal-footer .action-btn {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Notification Modal */
|
||||
.notification {
|
||||
position: fixed;
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
margin-top: var(--space-3xl);
|
||||
margin-top: var(--space-lg);
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
|
||||
@@ -23,4 +23,5 @@
|
||||
/* 4. Pages */
|
||||
@import 'pages/dashboard.css';
|
||||
@import 'pages/vaccess.css';
|
||||
@import 'pages/site-creator.css';
|
||||
|
||||
|
||||
272
Backend/admin/frontend/assets/css/pages/site-creator.css
Normal file
272
Backend/admin/frontend/assets/css/pages/site-creator.css
Normal file
@@ -0,0 +1,272 @@
|
||||
/* ============================================
|
||||
Site Creator Page
|
||||
Страница создания нового сайта
|
||||
============================================ */
|
||||
|
||||
/* Form Section */
|
||||
.form-section {
|
||||
padding: var(--space-xl);
|
||||
background: rgba(139, 92, 246, 0.02);
|
||||
border-radius: var(--radius-xl);
|
||||
border: 1px solid var(--glass-border);
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.form-section:hover {
|
||||
background: rgba(139, 92, 246, 0.04);
|
||||
border-color: rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
/* Subsection Title (внутри формы) */
|
||||
.form-subsection-title {
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--font-semibold);
|
||||
color: var(--text-primary);
|
||||
margin: 0 0 var(--space-lg) 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
padding-bottom: var(--space-sm);
|
||||
border-bottom: 1px solid rgba(139, 92, 246, 0.1);
|
||||
|
||||
i {
|
||||
color: var(--accent-purple-light);
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Второй и последующие подзаголовки - добавляем отступ сверху */
|
||||
.form-subsection-title:not(:first-of-type) {
|
||||
margin-top: var(--space-xl);
|
||||
}
|
||||
|
||||
/* Custom Select Styling */
|
||||
.form-input[type="text"],
|
||||
.form-input[type="number"] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* Кастомный Select */
|
||||
.custom-select {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.custom-select-trigger {
|
||||
padding: 10px 40px 10px 14px;
|
||||
background: var(--glass-bg-dark);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-base);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.custom-select-trigger:hover {
|
||||
border-color: rgba(139, 92, 246, 0.4);
|
||||
background-color: rgba(139, 92, 246, 0.05);
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-trigger {
|
||||
border-color: rgba(139, 92, 246, 0.6);
|
||||
box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
|
||||
background-color: rgba(139, 92, 246, 0.03);
|
||||
}
|
||||
|
||||
.custom-select-value {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.custom-select-arrow {
|
||||
color: var(--accent-purple-light);
|
||||
font-size: 12px;
|
||||
transition: transform var(--transition-base);
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-arrow {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* Dropdown */
|
||||
.custom-select-dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #1a1d2e;
|
||||
border: 1px solid rgba(139, 92, 246, 0.3);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
transition: all var(--transition-base);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-dropdown {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Scrollbar для dropdown */
|
||||
.custom-select-dropdown::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.custom-select-dropdown::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.custom-select-dropdown::-webkit-scrollbar-thumb {
|
||||
background: rgba(139, 92, 246, 0.3);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(139, 92, 246, 0.5);
|
||||
}
|
||||
|
||||
/* Option */
|
||||
.custom-select-option {
|
||||
padding: 10px 14px;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.custom-select-option:hover {
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.custom-select-option.selected {
|
||||
background: rgba(139, 92, 246, 0.2);
|
||||
color: var(--accent-purple-light);
|
||||
font-weight: var(--font-semibold);
|
||||
}
|
||||
|
||||
.custom-select-option.selected::before {
|
||||
content: '✓ ';
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* File Upload Styling */
|
||||
.file-upload-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.file-upload-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-md);
|
||||
padding: 12px 20px;
|
||||
background: var(--glass-bg-dark);
|
||||
border: 2px dashed var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--font-medium);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
text-align: center;
|
||||
|
||||
i {
|
||||
color: var(--accent-purple-light);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(139, 92, 246, 0.05);
|
||||
border-color: rgba(139, 92, 246, 0.4);
|
||||
color: var(--text-primary);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.file-input:focus + .file-upload-btn {
|
||||
border-color: rgba(139, 92, 246, 0.6);
|
||||
box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
/* Drag over state */
|
||||
.file-upload-wrapper.drag-over .file-upload-btn {
|
||||
background: rgba(139, 92, 246, 0.15);
|
||||
border-color: rgba(139, 92, 246, 0.7);
|
||||
border-style: solid;
|
||||
color: var(--text-primary);
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
|
||||
.file-upload-wrapper.drag-over .file-upload-btn i {
|
||||
animation: bounce 0.6s ease infinite;
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%, 100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
}
|
||||
|
||||
/* File uploaded state */
|
||||
.file-uploaded {
|
||||
border-style: solid;
|
||||
border-color: rgba(16, 185, 129, 0.5);
|
||||
background: rgba(16, 185, 129, 0.05);
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(16, 185, 129, 0.6);
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
|
||||
i {
|
||||
color: var(--accent-green);
|
||||
}
|
||||
}
|
||||
|
||||
/* File status */
|
||||
#certFileStatus,
|
||||
#keyFileStatus,
|
||||
#caFileStatus {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
|
||||
i {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user