更新UI和管理后台
This commit is contained in:
1 parent
9949072ae0
commit
de78d7de07
9 files changed
+2020
-432
No files matched your search
@@ -0,0 +1,545 @@
|
||||
/* =========================================
|
||||
SecHub 管理后台样式表
|
||||
========================================= */
|
||||
|
||||
/* CSS 变量 + 暗黑模式变量 */
|
||||
:root {
|
||||
--bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
||||
--card-bg: rgba(255, 255, 255, 0.92);
|
||||
--card-border: rgba(255, 255, 255, 0.3);
|
||||
--text: #2c3e50;
|
||||
--text-sec: #7f8c8d;
|
||||
--border: #e0e6ed;
|
||||
--primary: #2b6cb0;
|
||||
--primary-h: #1a4f8b;
|
||||
--primary-light: #ebf4ff;
|
||||
--success: #27ae60;
|
||||
--success-bg: #d4edda;
|
||||
--success-text: #155724;
|
||||
--danger: #e74c3c;
|
||||
--danger-bg: #f8d7da;
|
||||
--danger-text: #721c24;
|
||||
--warning: #f39c12;
|
||||
--warning-bg: #fff3cd;
|
||||
--warning-text: #856404;
|
||||
--shadow: 0 4px 16px rgba(0,0,0,0.07);
|
||||
--shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
|
||||
--radius: 16px;
|
||||
--radius-sm: 8px;
|
||||
--transition: 0.25s ease;
|
||||
}
|
||||
|
||||
body.dark-mode {
|
||||
--bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
|
||||
--card-bg: rgba(26, 32, 44, 0.92);
|
||||
--card-border: rgba(255, 255, 255, 0.08);
|
||||
--text: #e2e8f0;
|
||||
--text-sec: #a0aec0;
|
||||
--border: #4a5568;
|
||||
--primary: #63b3ed;
|
||||
--primary-h: #4299e1;
|
||||
--primary-light: #2d3748;
|
||||
--success-bg: #22543d;
|
||||
--success-text: #68d391;
|
||||
--danger-bg: #742a2a;
|
||||
--danger-text: #fc8181;
|
||||
--warning-bg: #744210;
|
||||
--warning-text: #f6e05e;
|
||||
--shadow: 0 4px 16px rgba(0,0,0,0.3);
|
||||
--shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
/* Reset & Base */
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
}
|
||||
|
||||
.container { max-width: 1300px; margin: 0 auto; padding: 20px; }
|
||||
|
||||
/* ======= Header ======= */
|
||||
.header {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--card-border);
|
||||
padding: 22px 30px;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
margin-bottom: 22px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
transition: background var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 1.4em;
|
||||
color: var(--primary);
|
||||
transition: color var(--transition);
|
||||
}
|
||||
.header-sub {
|
||||
color: var(--text-sec);
|
||||
font-size: 0.85em;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.header-actions { display: flex; gap: 10px; align-items: center; }
|
||||
|
||||
/* ======= Theme Toggle ======= */
|
||||
.theme-btn {
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px 14px;
|
||||
cursor: pointer;
|
||||
font-size: 1em;
|
||||
color: var(--text-sec);
|
||||
transition: all var(--transition);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
.theme-btn:hover {
|
||||
background: var(--primary-light);
|
||||
color: var(--primary);
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
/* ======= Buttons ======= */
|
||||
.btn {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: all var(--transition);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
|
||||
|
||||
.btn-primary { background: var(--primary); color: white; padding: 8px 18px; border-radius: 6px; }
|
||||
.btn-primary:hover { background: var(--primary-h); }
|
||||
.btn-success { background: var(--success); color: white; padding: 8px 18px; border-radius: 6px; }
|
||||
.btn-success:hover { background: #229954; }
|
||||
.btn-danger { background: var(--danger); color: white; padding: 8px 18px; border-radius: 6px; }
|
||||
.btn-danger:hover { background: #c0392b; }
|
||||
.btn-warning { background: var(--warning); color: white; padding: 8px 18px; border-radius: 6px; }
|
||||
.btn-warning:hover { background: #d68910; }
|
||||
.btn-small { padding: 5px 12px; font-size: 0.85em; }
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
padding: 8px 18px;
|
||||
border-radius: 6px;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.btn-outline:hover {
|
||||
background: var(--card-bg);
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
}
|
||||
.btn-text { background: none; border: none; cursor: pointer; color: var(--primary); padding: 4px 8px; font-size: 0.9em; }
|
||||
.btn-text:hover { text-decoration: underline; }
|
||||
.btn-text.danger { color: var(--danger); }
|
||||
.btn-lg { font-size: 1.1em; padding: 12px 50px; }
|
||||
|
||||
/* ======= Tabs ======= */
|
||||
.tabs {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: var(--radius) var(--radius) 0 0;
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
border-bottom: 2px solid var(--border);
|
||||
overflow-x: auto;
|
||||
transition: background var(--transition);
|
||||
}
|
||||
.tab-btn {
|
||||
padding: 14px 24px;
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
font-size: 0.95em;
|
||||
font-weight: 500;
|
||||
color: var(--text-sec);
|
||||
transition: all var(--transition);
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
}
|
||||
.tab-btn:hover { color: var(--text); background: var(--primary-light); }
|
||||
.tab-btn.active {
|
||||
color: var(--primary);
|
||||
background: var(--primary-light);
|
||||
font-weight: 600;
|
||||
}
|
||||
.tab-btn.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: var(--primary);
|
||||
animation: tabSlideIn 0.2s ease;
|
||||
}
|
||||
@keyframes tabSlideIn {
|
||||
from { transform: scaleX(0); }
|
||||
to { transform: scaleX(1); }
|
||||
}
|
||||
|
||||
/* Tab Content */
|
||||
.tab-content { display: none; }
|
||||
.tab-content.active { display: block; animation: fadeIn 0.2s ease; }
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(4px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* ======= Panel ======= */
|
||||
.panel {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 0 0 var(--radius) var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 25px;
|
||||
margin-bottom: 22px;
|
||||
transition: background var(--transition);
|
||||
}
|
||||
|
||||
/* ======= Alert ======= */
|
||||
.alert {
|
||||
padding: 14px 20px;
|
||||
border-radius: var(--radius-sm);
|
||||
margin-bottom: 20px;
|
||||
font-weight: 500;
|
||||
animation: slideDown 0.3s ease;
|
||||
}
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid; }
|
||||
.alert-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid; }
|
||||
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid; }
|
||||
|
||||
/* ======= Toast ======= */
|
||||
.toast-container {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
pointer-events: auto;
|
||||
padding: 14px 20px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 500;
|
||||
font-size: 0.95em;
|
||||
box-shadow: var(--shadow-lg);
|
||||
animation: toastIn 0.35s ease;
|
||||
max-width: 400px;
|
||||
word-break: break-word;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
|
||||
@keyframes toastIn {
|
||||
from { opacity: 0; transform: translateX(50px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@keyframes toastOut {
|
||||
from { opacity: 1; transform: translateX(0); }
|
||||
to { opacity: 0; transform: translateX(50px); }
|
||||
}
|
||||
.toast-success { background: var(--success-bg); color: var(--success-text); border-left: 4px solid var(--success); }
|
||||
.toast-error { background: var(--danger-bg); color: var(--danger-text); border-left: 4px solid var(--danger); }
|
||||
.toast-warning { background: var(--warning-bg); color: var(--warning-text); border-left: 4px solid var(--warning); }
|
||||
|
||||
/* ======= Table ======= */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); transition: background 0.15s; }
|
||||
th {
|
||||
background: var(--primary-light);
|
||||
font-weight: 600;
|
||||
color: var(--text-sec);
|
||||
font-size: 0.9em;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
}
|
||||
tr:hover { background: var(--primary-light); }
|
||||
.draggable-row { cursor: move; }
|
||||
.draggable-row.dragging { opacity: 0.5; background: rgba(43, 108, 176, 0.1); }
|
||||
.drag-handle { color: var(--text-sec); cursor: move; font-size: 1.2em; user-select: none; }
|
||||
.order-num { font-weight: 600; color: var(--primary); }
|
||||
.mono { font-family: 'Courier New', monospace; font-size: 0.9em; color: var(--text-sec); }
|
||||
.count-badge {
|
||||
display: inline-block;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
padding: 2px 10px;
|
||||
border-radius: 12px;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* ======= Two column layout ======= */
|
||||
.two-col { display: flex; gap: 22px; align-items: flex-start; }
|
||||
.two-col .side { flex: 0 0 280px; }
|
||||
.two-col .main { flex: 1; min-width: 0; }
|
||||
|
||||
/* ======= Section list ======= */
|
||||
.section-list { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
|
||||
.section-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.section-list-item:last-child { border-bottom: none; }
|
||||
.section-list-item:hover { background: var(--primary-light); }
|
||||
.section-list-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
|
||||
.section-list-item .sname { font-weight: 500; }
|
||||
.section-list-item .scount { font-size: 0.85em; color: var(--text-sec); }
|
||||
.section-list-item .sactions { display: flex; gap: 4px; opacity: 0.3; transition: opacity 0.15s; }
|
||||
.section-list-item:hover .sactions { opacity: 1; }
|
||||
|
||||
/* ======= Modal ======= */
|
||||
.modal-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
z-index: 1000;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
.modal-overlay.show {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
.modal {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
border-radius: var(--radius);
|
||||
padding: 30px;
|
||||
width: 500px;
|
||||
max-width: 90vw;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: var(--shadow-lg);
|
||||
transform: scale(0.92) translateY(10px);
|
||||
transition: transform 0.25s ease;
|
||||
color: var(--text);
|
||||
}
|
||||
.modal-overlay.show .modal {
|
||||
transform: scale(1) translateY(0);
|
||||
}
|
||||
.modal h2 { margin-bottom: 20px; font-size: 1.2em; }
|
||||
.modal .form-group { margin-bottom: 16px; }
|
||||
.modal .form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9em; color: var(--text-sec); }
|
||||
.modal .form-group input,
|
||||
.modal .form-group textarea {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 6px;
|
||||
font-size: 0.95em;
|
||||
font-family: inherit;
|
||||
background: var(--card-bg);
|
||||
color: var(--text);
|
||||
transition: border-color 0.2s, background var(--transition), color var(--transition);
|
||||
}
|
||||
.modal .form-group input:focus,
|
||||
.modal .form-group textarea:focus {
|
||||
border-color: var(--primary);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
|
||||
}
|
||||
.modal .form-group textarea { min-height: 80px; resize: vertical; }
|
||||
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
|
||||
.modal .modal-actions .btn { padding: 10px 24px; }
|
||||
.modal .required-star { color: var(--danger); }
|
||||
|
||||
/* ======= Import ======= */
|
||||
.import-area textarea {
|
||||
width: 100%;
|
||||
min-height: 200px;
|
||||
padding: 14px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9em;
|
||||
resize: vertical;
|
||||
transition: border-color 0.2s;
|
||||
background: var(--card-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
.import-area textarea:focus { border-color: var(--primary); outline: none; }
|
||||
.import-preview { margin-top: 15px; animation: fadeIn 0.2s ease; }
|
||||
.import-preview table { font-size: 0.9em; }
|
||||
.import-preview table th { background: var(--primary-light); }
|
||||
.preview-empty { color: var(--text-sec); text-align: center; padding: 20px; }
|
||||
|
||||
/* ======= Settings ======= */
|
||||
.settings-group {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
.settings-group h3 { margin-bottom: 15px; font-size: 1.05em; }
|
||||
.settings-group .form-group { margin-bottom: 12px; }
|
||||
.settings-group .form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.9em; color: var(--text-sec); }
|
||||
.settings-group .form-group input {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 10px 14px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 6px;
|
||||
font-size: 0.95em;
|
||||
background: var(--card-bg);
|
||||
color: var(--text);
|
||||
transition: border-color 0.2s, background var(--transition);
|
||||
}
|
||||
.settings-group .form-group input:focus { border-color: var(--primary); outline: none; }
|
||||
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.settings-info {
|
||||
color: var(--text-sec);
|
||||
font-size: 0.9em;
|
||||
margin-bottom: 12px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* ======= Tip ======= */
|
||||
.tip {
|
||||
background: var(--primary-light);
|
||||
border-left: 4px solid var(--primary);
|
||||
padding: 12px 16px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* ======= Empty state ======= */
|
||||
.empty-state { text-align: center; color: var(--text-sec); padding: 40px 20px; }
|
||||
|
||||
/* ======= Warning box ======= */
|
||||
.warning-box {
|
||||
margin-bottom: 16px;
|
||||
padding: 12px 16px;
|
||||
background: var(--warning-bg);
|
||||
color: var(--warning-text);
|
||||
border-radius: 6px;
|
||||
border: 1px solid;
|
||||
font-size: 0.95em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ======= Action bar ======= */
|
||||
.action-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
.action-bar h3 { font-size: 1em; }
|
||||
.section-header-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* ======= Sort save bar ======= */
|
||||
.sort-save-bar {
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
border-top: 2px solid var(--border);
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* ======= Separator ======= */
|
||||
.separator { border: none; border-top: 2px solid var(--border); margin: 20px 0; }
|
||||
|
||||
/* ======= Tool list cells ======= */
|
||||
.cell-url { word-break: break-all; font-size: 0.9em; }
|
||||
.cell-desc { color: var(--text-sec); font-size: 0.9em; }
|
||||
.cell-url a { color: var(--primary); text-decoration: none; }
|
||||
.cell-url a:hover { text-decoration: underline; }
|
||||
.col-section-title { color: var(--primary); }
|
||||
|
||||
/* ======= Form Select ======= */
|
||||
.form-select {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 10px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 6px;
|
||||
font-size: 0.95em;
|
||||
background: var(--card-bg);
|
||||
color: var(--text);
|
||||
transition: border-color 0.2s, background var(--transition), color var(--transition);
|
||||
}
|
||||
.form-select:focus { border-color: var(--primary); outline: none; }
|
||||
.form-select-sm {
|
||||
padding: 8px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 6px;
|
||||
font-size: 0.9em;
|
||||
background: var(--card-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* ======= Export box ======= */
|
||||
.export-box {
|
||||
border: 1px solid var(--border);
|
||||
padding: 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
|
||||
/* ======= Footer ======= */
|
||||
.admin-footer {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: var(--text-sec);
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* ======= Responsive ======= */
|
||||
@media (max-width: 768px) {
|
||||
.container { padding: 10px; }
|
||||
.header { flex-direction: column; text-align: center; }
|
||||
.two-col { flex-direction: column; }
|
||||
.two-col .side { flex: 0 0 auto; }
|
||||
.tab-btn { padding: 10px 14px; font-size: 0.85em; }
|
||||
.panel { padding: 15px; }
|
||||
.modal { padding: 20px; }
|
||||
}
|
||||
Binary file not shown.
@@ -27,5 +27,10 @@
|
||||
"name": "蓝队工具箱",
|
||||
"url": "http://github.com/abc123info/BlueTeamTools",
|
||||
"description": "蓝队分析研判工具箱(小工具集)"
|
||||
},
|
||||
{
|
||||
"name": "国密加解密工具",
|
||||
"url": "https://github.com/milu001/sm234_decrypt_gui",
|
||||
"description": "国密可视化加解密工具"
|
||||
}
|
||||
]
|
||||
@@ -42,5 +42,10 @@
|
||||
"name": "LinkFinder",
|
||||
"url": "https://github.com/GerbenJavado/LinkFinder",
|
||||
"description": "提取网站文件中的路径信息"
|
||||
},
|
||||
{
|
||||
"name": "FOFA Viewer",
|
||||
"url": "https://github.com/wgpsec/fofa_viewer",
|
||||
"description": "FOFA快速信息收集可视化工具"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user