chore: checkpoint initial — Zektyc dataset, avant humanisation
- site vitrine + fingerprint test + zmap + z-panel - remplacement duckdns -> riricdev.tail5ea5cd.ts.net (canonical/og/alternates/docs) - suppression du token DuckDNS (plus utilisé)
This commit is contained in:
commit
d7ec32a458
92 changed files with 17476 additions and 0 deletions
772
public/z-panel/admin.css
Normal file
772
public/z-panel/admin.css
Normal file
|
|
@ -0,0 +1,772 @@
|
|||
:root {
|
||||
--bg: #0b0f14;
|
||||
--surface: #11161d;
|
||||
--surface-2: #161d27;
|
||||
--surface-3: #1b2430;
|
||||
--border: #1f2a37;
|
||||
--text: #e6ebf2;
|
||||
--muted: #8b96a6;
|
||||
--accent: #58a6ff;
|
||||
--accent-dim: rgba(88, 166, 255, 0.14);
|
||||
--ok: #34d399;
|
||||
--ok-dim: rgba(52, 211, 153, 0.12);
|
||||
--warn: #fbbf24;
|
||||
--warn-dim: rgba(251, 191, 36, 0.12);
|
||||
--err: #f87171;
|
||||
--err-dim: rgba(248, 113, 113, 0.12);
|
||||
--purple: #a78bfa;
|
||||
--radius: 12px;
|
||||
--shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
background:
|
||||
radial-gradient(1000px 500px at 80% -10%, rgba(88, 166, 255, 0.07), transparent 60%),
|
||||
radial-gradient(800px 400px at -10% 110%, rgba(167, 139, 250, 0.05), transparent 60%),
|
||||
var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
/* ---------- Connexion ---------- */
|
||||
|
||||
.login-view {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow);
|
||||
padding: 36px 32px 28px;
|
||||
}
|
||||
|
||||
.brand { display: flex; align-items: center; gap: 10px; }
|
||||
|
||||
.brand-mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 9px;
|
||||
background: var(--accent-dim);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.brand-mark svg { width: 22px; height: 12px; }
|
||||
|
||||
.brand-name {
|
||||
font-weight: 700;
|
||||
font-size: 17px;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.brand-login { margin-bottom: 22px; }
|
||||
|
||||
.login-card h1 { margin: 0 0 4px; font-size: 20px; }
|
||||
|
||||
.login-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
|
||||
|
||||
.login-card form label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
margin: 0 0 6px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.pw-wrap { position: relative; margin-bottom: 14px; }
|
||||
|
||||
.pw-wrap input {
|
||||
width: 100%;
|
||||
padding: 10px 40px 10px 12px;
|
||||
}
|
||||
|
||||
.pw-eye {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
padding: 8px;
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
|
||||
|
||||
.pw-eye svg { width: 18px; height: 18px; display: block; }
|
||||
|
||||
input[type="text"], input[type="password"], select {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
padding: 9px 12px;
|
||||
font: inherit;
|
||||
outline: none;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
input[type="text"]:focus, input[type="password"]:focus, select:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-dim);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: #04121f;
|
||||
font-weight: 700;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
padding: 11px 16px;
|
||||
cursor: pointer;
|
||||
transition: filter 0.15s, transform 0.05s;
|
||||
}
|
||||
|
||||
.btn-primary:hover { filter: brightness(1.08); }
|
||||
.btn-primary:active { transform: translateY(1px); }
|
||||
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
|
||||
|
||||
.btn-block { width: 100%; }
|
||||
|
||||
.msg { margin: 12px 0 0; font-size: 13px; min-height: 18px; }
|
||||
.msg.err { color: var(--err); }
|
||||
.msg.ok { color: var(--ok); }
|
||||
|
||||
/* ---------- Application : layout ---------- */
|
||||
|
||||
.app { display: flex; min-height: 100vh; }
|
||||
|
||||
.sidebar {
|
||||
width: 230px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 18px 12px 14px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar .brand { padding: 0 10px; margin-bottom: 22px; }
|
||||
|
||||
.side-nav { display: flex; flex-direction: column; gap: 2px; }
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
border-radius: 9px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
|
||||
|
||||
.nav-item:hover { background: var(--surface-2); color: var(--text); }
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--accent-dim);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
|
||||
|
||||
.btn-ghost {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
border-radius: 9px;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
}
|
||||
|
||||
.btn-ghost:hover { background: var(--surface-3); border-color: #2b3949; }
|
||||
.btn-ghost.active {
|
||||
background: rgba(88, 166, 255, 0.12);
|
||||
border-color: rgba(88, 166, 255, 0.45);
|
||||
color: var(--accent);
|
||||
}
|
||||
.btn-ghost svg { width: 15px; height: 15px; }
|
||||
|
||||
.side-foot .btn-ghost { width: 100%; justify-content: center; }
|
||||
|
||||
.main { flex: 1; min-width: 0; padding: 22px 28px 40px; }
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.topbar h1 { margin: 0; font-size: 20px; }
|
||||
|
||||
.topbar-actions { display: flex; align-items: center; gap: 12px; }
|
||||
|
||||
.updated { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* ---------- Interrupteur auto ---------- */
|
||||
|
||||
.switch {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.switch input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
|
||||
.switch-track {
|
||||
width: 34px;
|
||||
height: 20px;
|
||||
border-radius: 20px;
|
||||
background: var(--surface-3);
|
||||
border: 1px solid var(--border);
|
||||
position: relative;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.switch-track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted);
|
||||
transition: transform 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.switch input:checked + .switch-track { background: var(--accent-dim); border-color: var(--accent); }
|
||||
.switch input:checked + .switch-track::after { transform: translateX(14px); background: var(--accent); }
|
||||
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--accent-dim); }
|
||||
|
||||
/* ---------- Cartes & grilles ---------- */
|
||||
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 18px 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.card-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.card-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
|
||||
|
||||
.meta { color: var(--muted); font-size: 12px; }
|
||||
|
||||
.muted { color: var(--muted); }
|
||||
|
||||
.grid-2 {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-icon svg { width: 20px; height: 20px; }
|
||||
|
||||
.ic-total { background: var(--accent-dim); color: var(--accent); }
|
||||
.ic-ok { background: var(--ok-dim); color: var(--ok); }
|
||||
.ic-warn { background: var(--warn-dim); color: var(--warn); }
|
||||
.ic-err { background: var(--err-dim); color: var(--err); }
|
||||
.ic-info { background: rgba(167, 139, 250, 0.12); color: var(--purple); }
|
||||
|
||||
.stat-body { display: flex; flex-direction: column; min-width: 0; }
|
||||
|
||||
.stat-value { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
|
||||
|
||||
.stat-label { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* ---------- Tableaux ---------- */
|
||||
|
||||
.table-scroll { overflow-x: auto; }
|
||||
|
||||
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
|
||||
thead th {
|
||||
text-align: left;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
tbody td {
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
tbody tr:hover { background: var(--surface-2); }
|
||||
|
||||
td.uri {
|
||||
max-width: 380px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
td.mono, .ip { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-width: 44px;
|
||||
justify-content: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.pill.s2xx { background: var(--ok-dim); color: var(--ok); }
|
||||
.pill.s3xx { background: rgba(88, 166, 255, 0.12); color: var(--accent); }
|
||||
.pill.s4xx { background: var(--warn-dim); color: var(--warn); }
|
||||
.pill.s5xx { background: var(--err-dim); color: var(--err); }
|
||||
.pill.s0 { background: var(--err-dim); color: var(--err); }
|
||||
|
||||
.hit { font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* ---------- Graphique ---------- */
|
||||
|
||||
.chart { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px 0; }
|
||||
.chart-svg { width: 100%; height: auto; display: block; }
|
||||
|
||||
.legend {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.lg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
|
||||
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
|
||||
.lg-ok::before { background: var(--ok); }
|
||||
.lg-redir::before { background: var(--accent); }
|
||||
.lg-err4::before { background: var(--warn); }
|
||||
.lg-err5::before { background: var(--err); }
|
||||
|
||||
/* ---------- Filtres logs ---------- */
|
||||
|
||||
.filters {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filters input { flex: 1; min-width: 200px; }
|
||||
|
||||
/* ---------- Système ---------- */
|
||||
|
||||
.sys-grid-mini .stat-grid { grid-template-columns: repeat(3, 1fr); }
|
||||
|
||||
#disk pre {
|
||||
margin: 0;
|
||||
padding: 14px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow-x: auto;
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
font-size: 12px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* ---------- Redémarrage ---------- */
|
||||
|
||||
.restart-actions {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
margin-top: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
background: var(--err-dim);
|
||||
border: 1px solid rgba(248, 113, 113, 0.4);
|
||||
color: var(--err);
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
border-radius: 10px;
|
||||
padding: 11px 16px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
|
||||
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }
|
||||
.btn-danger svg { width: 17px; height: 17px; }
|
||||
|
||||
/* ---------- Articles & traductions ---------- */
|
||||
|
||||
.head-actions { display: flex; align-items: center; gap: 10px; }
|
||||
|
||||
.btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
|
||||
.btn-sm svg { width: 13px; height: 13px; }
|
||||
|
||||
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
|
||||
.col-actions { width: 1%; white-space: nowrap; }
|
||||
|
||||
.badge-ban {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
background: rgba(248, 113, 113, 0.18);
|
||||
color: #fca5a5;
|
||||
border: 1px solid rgba(248, 113, 113, 0.4);
|
||||
}
|
||||
|
||||
.hp-ends { min-width: 180px; }
|
||||
|
||||
.hp-end {
|
||||
display: inline-block;
|
||||
margin: 1px 3px 1px 0;
|
||||
padding: 1px 7px;
|
||||
border-radius: 999px;
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
background: var(--surface-3);
|
||||
color: var(--muted);
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px 16px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.field { display: flex; flex-direction: column; gap: 5px; }
|
||||
|
||||
.field > span {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
input[type="date"] {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
padding: 9px 12px;
|
||||
font: inherit;
|
||||
outline: none;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
input[type="date"]:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-dim);
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
padding: 9px 12px;
|
||||
font: inherit;
|
||||
outline: none;
|
||||
resize: vertical;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
textarea:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-dim);
|
||||
}
|
||||
|
||||
.rules-editor { margin-top: 14px; }
|
||||
|
||||
.rules-editor textarea {
|
||||
width: 100%;
|
||||
min-height: 320px;
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.lang-pane legend .btn-ghost {
|
||||
margin-left: 8px;
|
||||
font-size: 12px;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.md-tools {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.md-preview {
|
||||
margin-top: 10px;
|
||||
padding: 12px 14px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.md-preview p:first-child { margin-top: 0; }
|
||||
.md-preview p:last-child { margin-bottom: 0; }
|
||||
|
||||
.lang-pane {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 14px 16px 16px;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.lang-pane legend {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--accent);
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.form-actions .btn-danger { margin-left: auto; }
|
||||
|
||||
.trans-key {
|
||||
max-width: 260px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.trans-val {
|
||||
width: 100%;
|
||||
min-width: 220px;
|
||||
resize: vertical;
|
||||
padding: 6px 8px;
|
||||
border-radius: 7px;
|
||||
font-size: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.form-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* ---------- Responsive ---------- */
|
||||
|
||||
@media (max-width: 1080px) {
|
||||
.stat-grid { grid-template-columns: repeat(3, 1fr); }
|
||||
.grid-2 { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.app { flex-direction: column; }
|
||||
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.sidebar .brand { margin-bottom: 0; padding: 0 4px; }
|
||||
|
||||
.side-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; }
|
||||
|
||||
.side-foot .btn-ghost { width: auto; padding: 8px 10px; }
|
||||
|
||||
.side-nav {
|
||||
order: 3;
|
||||
flex-basis: 100%;
|
||||
flex-direction: row;
|
||||
gap: 4px;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.nav-item { white-space: nowrap; flex-shrink: 0; padding: 8px 10px; }
|
||||
.nav-item span { display: none; }
|
||||
.side-foot .btn-ghost span { display: none; }
|
||||
|
||||
.main { padding: 16px; }
|
||||
.stat-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.topbar h1 { font-size: 17px; }
|
||||
|
||||
.card-head { flex-wrap: wrap; }
|
||||
.head-actions { flex-wrap: wrap; }
|
||||
|
||||
.filters input { flex: 1 1 100%; min-width: 0; }
|
||||
.filters select { flex: 1 1 100%; }
|
||||
|
||||
.form-actions .btn-danger { margin-left: 0; }
|
||||
|
||||
#log-table, #trans-table { min-width: 600px; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.login-view { padding: 16px; }
|
||||
.login-card { padding: 26px 20px 22px; }
|
||||
.login-card h1 { font-size: 18px; }
|
||||
|
||||
.main { padding: 12px; }
|
||||
|
||||
.card { padding: 14px; }
|
||||
.card-head { gap: 8px; }
|
||||
|
||||
.stat-grid { gap: 10px; }
|
||||
.stat-card { padding: 10px 12px; gap: 10px; }
|
||||
.stat-icon { width: 34px; height: 34px; }
|
||||
.stat-icon svg { width: 17px; height: 17px; }
|
||||
.stat-value { font-size: 19px; }
|
||||
|
||||
.topbar-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; row-gap: 6px; }
|
||||
.updated { font-size: 11px; }
|
||||
|
||||
.legend { gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
.lang-pane { padding: 12px; }
|
||||
.lang-pane legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
||||
|
||||
.form-actions .btn { flex: 1 1 auto; justify-content: center; }
|
||||
.restart-actions .btn-danger { flex: 1 1 100%; justify-content: center; }
|
||||
}
|
||||
|
||||
/* ---------- ZMap build ---------- */
|
||||
|
||||
.build-bars { display: flex; flex-direction: column; gap: 8px; }
|
||||
.bar-row { display: flex; align-items: center; gap: 10px; }
|
||||
.bar-label { width: 110px; font-size: 12px; color: var(--dim); text-align: right; }
|
||||
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
|
||||
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
|
||||
.bar-pct { width: 40px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--dim); }
|
||||
|
||||
.build-log {
|
||||
max-height: 320px;
|
||||
overflow: auto;
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono, monospace);
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: var(--bg);
|
||||
border-radius: var(--radius);
|
||||
color: var(--dim);
|
||||
}
|
||||
1035
public/z-panel/admin.js
Normal file
1035
public/z-panel/admin.js
Normal file
File diff suppressed because it is too large
Load diff
406
public/z-panel/index.html
Normal file
406
public/z-panel/index.html
Normal file
|
|
@ -0,0 +1,406 @@
|
|||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>Console · Zektyc</title>
|
||||
<link rel="stylesheet" href="/z-panel/admin.css?v=2" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="login" class="login-view" hidden>
|
||||
<div class="login-card">
|
||||
<div class="brand brand-login">
|
||||
<span class="brand-mark" aria-hidden="true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" role="presentation" focusable="false">
|
||||
<path d="M5 4h22L5 12h22" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="brand-name">Zektyc</span>
|
||||
</div>
|
||||
<h1>Console d'administration</h1>
|
||||
<p class="login-sub">Accès restreint · réservé à l'éditeur</p>
|
||||
<form id="auth-form">
|
||||
<label for="password">Mot de passe</label>
|
||||
<div class="pw-wrap">
|
||||
<input type="password" id="password" autocomplete="current-password" required spellcheck="false" />
|
||||
<button type="button" id="toggle-pw" class="pw-eye" aria-label="Afficher ou masquer le mot de passe">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
|
||||
<circle cx="12" cy="12" r="3" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<button type="submit" id="auth-btn" class="btn-primary btn-block">Connexion</button>
|
||||
<p id="auth-msg" class="msg" role="status"></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="app" class="app" hidden>
|
||||
<aside class="sidebar">
|
||||
<div class="brand">
|
||||
<span class="brand-mark" aria-hidden="true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" role="presentation" focusable="false">
|
||||
<path d="M5 4h22L5 12h22" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="brand-name">Zektyc</span>
|
||||
</div>
|
||||
<nav class="side-nav" aria-label="Sections du panneau">
|
||||
<button class="nav-item active" data-tab="dash" type="button" aria-label="Tableau de bord" title="Tableau de bord">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3v18h18"/><path d="M7 14l4-4 4 3 5-6"/></svg>
|
||||
<span>Tableau de bord</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="logs" type="button" aria-label="Logs" title="Logs">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10"/></svg>
|
||||
<span>Logs</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="system" type="button" aria-label="Système" title="Système">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8M12 17v4"/></svg>
|
||||
<span>Système</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="zmap" type="button" aria-label="ZMap" title="ZMap">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
|
||||
<span>ZMap</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="articles" type="button" aria-label="Articles" title="Articles">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 5a2 2 0 0 1 2-2h8l6 6v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"/><path d="M14 3v6h6"/><path d="M8 13h8M8 17h5"/></svg>
|
||||
<span>Articles</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="trans" type="button" aria-label="Traductions" title="Traductions">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
|
||||
<span>Traductions</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="rules" type="button" aria-label="Règles Discord" title="Règles Discord">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="M12 8v4M12 16h.01"/></svg>
|
||||
<span>Règles Discord</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="honeypot" type="button" aria-label="Honeypot" title="Honeypot">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z"/><circle cx="12" cy="11" r="3"/></svg>
|
||||
<span>Honeypot</span>
|
||||
</button>
|
||||
<button class="nav-item" data-tab="restart" type="button" aria-label="Redémarrage" title="Redémarrage">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 4v6h-6"/><path d="M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10"/><path d="M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>
|
||||
<span>Redémarrage</span>
|
||||
</button>
|
||||
</nav>
|
||||
<div class="side-foot">
|
||||
<button id="logout" class="btn-ghost" type="button" aria-label="Se déconnecter" title="Se déconnecter">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="M16 17l5-5-5-5"/><path d="M21 12H9"/></svg>
|
||||
<span>Se déconnecter</span>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<main class="main">
|
||||
<header class="topbar">
|
||||
<h1 id="page-title">Tableau de bord</h1>
|
||||
<div class="topbar-actions">
|
||||
<span id="updated" class="updated" role="status"></span>
|
||||
<label class="switch" title="Actualisation automatique toutes les 15 s">
|
||||
<input type="checkbox" id="autorefresh" checked />
|
||||
<span class="switch-track" aria-hidden="true"></span>
|
||||
Auto
|
||||
</label>
|
||||
<button id="refresh" class="btn-ghost" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 4v6h-6"/><path d="M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10"/><path d="M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>
|
||||
Actualiser
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="tab-dash" class="tab" aria-label="Tableau de bord">
|
||||
<div id="stat-cards" class="stat-grid">
|
||||
<div class="stat-card"><div class="stat-icon ic-total"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3v18h18"/><path d="M7 14l4-4 4 3 5-6"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">requêtes</span></div></div>
|
||||
<div class="stat-card"><div class="stat-icon ic-ok"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="M22 4L12 14l-3-3"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">200 OK</span></div></div>
|
||||
<div class="stat-card"><div class="stat-icon ic-err"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">404 bloqués</span></div></div>
|
||||
<div class="stat-card"><div class="stat-icon ic-warn"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 9v4M12 17h.01"/><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">429 rate-limit</span></div></div>
|
||||
<div class="stat-card"><div class="stat-icon ic-err"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">405 refusés</span></div></div>
|
||||
<div class="stat-card"><div class="stat-icon ic-info"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3v18h18"/><path d="M7 9h4M7 13h8M7 17h6"/></svg></div><div class="stat-body"><b class="stat-value">—</b><span class="stat-label">statuts distincts</span></div></div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Activité par heure</h2>
|
||||
<span id="chart-meta" class="meta"></span>
|
||||
</div>
|
||||
<div id="chart" class="chart"><p class="meta">Chargement…</p></div>
|
||||
<div class="legend">
|
||||
<span class="lg lg-ok">200–299</span>
|
||||
<span class="lg lg-redir">300–399</span>
|
||||
<span class="lg lg-err4">400–499</span>
|
||||
<span class="lg lg-err5">500+</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid-2">
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Chemins bloqués</h2><span id="blocked-count" class="meta"></span></div>
|
||||
<div id="blocked-table" class="table-scroll"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Rate-limit par IP</h2><span id="ratelimit-count" class="meta"></span></div>
|
||||
<div id="ratelimit-table" class="table-scroll"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-logs" class="tab" hidden aria-label="Logs">
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Logs d'accès</h2>
|
||||
<div class="head-actions">
|
||||
<span id="log-meta" class="meta"></span>
|
||||
<button id="log-exclude" class="btn-ghost btn-sm" type="button" aria-pressed="true" title="Masquer/afficher les requêtes de base (CSS, JS, images, favicon, robots.txt, API du panneau)">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/>
|
||||
</svg>
|
||||
<span id="log-exclude-label">Masquer le bruit</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filters">
|
||||
<input type="text" id="log-filter" placeholder="Filtre (IP, URI, méthode)…" spellcheck="false" />
|
||||
<select id="log-status">
|
||||
<option value="">Tous les statuts</option>
|
||||
<option value="200">200</option>
|
||||
<option value="404">404</option>
|
||||
<option value="405">405</option>
|
||||
<option value="429">429</option>
|
||||
<option value="500">5xx</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="table-scroll">
|
||||
<table id="log-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>IP</th>
|
||||
<th>Méthode</th>
|
||||
<th>URI</th>
|
||||
<th>Statut</th>
|
||||
<th>Durée</th>
|
||||
<th>User-Agent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-system" class="tab" hidden aria-label="Système">
|
||||
<div id="sys-grid" class="stat-grid"></div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Processus</h2></div>
|
||||
<div id="procs" class="table-scroll"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Disque</h2></div>
|
||||
<div id="disk"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-zmap" class="tab" hidden aria-label="ZMap">
|
||||
<div id="zmap-grid" class="stat-grid"></div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Build Planet</h2><span id="zmap-build-meta" class="meta"></span></div>
|
||||
<div id="zmap-build-info"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Grilles</h2><span id="zmap-grids-meta" class="meta"></span></div>
|
||||
<div id="zmap-grids-info"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Log du build</h2></div>
|
||||
<pre id="zmap-build-log" class="build-log"></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-articles" class="tab" hidden aria-label="Articles">
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Articles</h2>
|
||||
<span id="articles-meta" class="meta"></span>
|
||||
<button id="article-new" class="btn-primary" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
|
||||
Nouvel article
|
||||
</button>
|
||||
</div>
|
||||
<div id="articles-list" class="table-scroll"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
|
||||
<div id="article-editor" class="card" hidden>
|
||||
<div class="card-head">
|
||||
<h2 id="article-editor-title">Nouvel article</h2>
|
||||
<span id="article-editor-meta" class="meta"></span>
|
||||
</div>
|
||||
<form id="article-form">
|
||||
<div class="form-grid">
|
||||
<label class="field">
|
||||
<span>Slug (URL)</span>
|
||||
<input type="text" id="art-slug" required pattern="[a-z0-9-]+" spellcheck="false" placeholder="ex : censure-reseaux-sociaux-mineurs" />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Date de publication</span>
|
||||
<input type="date" id="art-published" required />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<fieldset class="lang-pane">
|
||||
<legend>
|
||||
Français
|
||||
<button type="button" class="btn-ghost btn-sm" id="art-copy-from-en" title="Copie titre + description + contenu depuis l'anglais">← Copier depuis l'anglais</button>
|
||||
</legend>
|
||||
<div class="form-grid">
|
||||
<label class="field">
|
||||
<span>Titre</span>
|
||||
<input type="text" id="art-fr-title" required />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Titre OG (partage)</span>
|
||||
<input type="text" id="art-fr-og" spellcheck="false" />
|
||||
</label>
|
||||
</div>
|
||||
<label class="field">
|
||||
<span>Description (meta)</span>
|
||||
<input type="text" id="art-fr-desc" spellcheck="false" />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Contenu (Markdown)</span>
|
||||
<textarea id="art-fr-body" rows="10" spellcheck="false" required></textarea>
|
||||
<span class="md-tools">
|
||||
<button type="button" class="btn-ghost btn-sm" data-preview="fr">Aperçu</button>
|
||||
</span>
|
||||
</label>
|
||||
<div id="art-fr-preview" class="md-preview" hidden></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="lang-pane">
|
||||
<legend>
|
||||
English
|
||||
<button type="button" class="btn-ghost btn-sm" id="art-copy-from-fr" title="Copies title + description + content from French">Copier depuis le français →</button>
|
||||
</legend>
|
||||
<div class="form-grid">
|
||||
<label class="field">
|
||||
<span>Title</span>
|
||||
<input type="text" id="art-en-title" required />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>OG title (share)</span>
|
||||
<input type="text" id="art-en-og" spellcheck="false" />
|
||||
</label>
|
||||
</div>
|
||||
<label class="field">
|
||||
<span>Description (meta)</span>
|
||||
<input type="text" id="art-en-desc" spellcheck="false" />
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Body (Markdown)</span>
|
||||
<textarea id="art-en-body" rows="10" spellcheck="false" required></textarea>
|
||||
<span class="md-tools">
|
||||
<button type="button" class="btn-ghost btn-sm" data-preview="en">Preview</button>
|
||||
</span>
|
||||
</label>
|
||||
<div id="art-en-preview" class="md-preview" hidden></div>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" id="art-save" class="btn-primary">Enregistrer</button>
|
||||
<button type="button" id="art-cancel" class="btn-ghost">Annuler</button>
|
||||
<button type="button" id="art-delete" class="btn-danger" hidden>Supprimer</button>
|
||||
</div>
|
||||
<p id="art-msg" class="msg" role="status"></p>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-trans" class="tab" hidden aria-label="Traductions">
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Traductions</h2>
|
||||
<span id="trans-meta" class="meta"></span>
|
||||
<div class="head-actions">
|
||||
<button id="trans-add" class="btn-ghost" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
|
||||
Ajouter une clé
|
||||
</button>
|
||||
<button id="trans-save" class="btn-primary" type="button">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filters">
|
||||
<input type="text" id="trans-filter" placeholder="Filtrer les clés…" spellcheck="false" />
|
||||
</div>
|
||||
<div class="table-scroll">
|
||||
<table id="trans-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Clé</th>
|
||||
<th>Français</th>
|
||||
<th>English</th>
|
||||
<th class="col-actions"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p id="trans-msg" class="msg" role="status"></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-rules" class="tab" hidden aria-label="Règles Discord">
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Règles Discord</h2>
|
||||
<span id="rules-meta" class="meta"></span>
|
||||
<div class="head-actions">
|
||||
<button id="rules-reload" class="btn-ghost" type="button">Recharger</button>
|
||||
<button id="rules-save" class="btn-primary" type="button">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
<p class="muted">Markdown Discord. Le bot Zektyc publie ces règles chaque minute dans le salon des règles, avec le bouton « ✅ Accepter » qui attribue le rôle <b>Membre</b>. Si le contenu change, le message existant est mis à jour automatiquement. Limite : 2000 caractères.</p>
|
||||
<div class="rules-editor">
|
||||
<textarea id="rules-content" rows="18" spellcheck="false" placeholder="# Règles du serveur…"></textarea>
|
||||
</div>
|
||||
<p id="rules-msg" class="msg" role="status"></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-honeypot" class="tab" hidden aria-label="Honeypot">
|
||||
<div class="card">
|
||||
<div class="card-head">
|
||||
<h2>Honeypot</h2>
|
||||
<span id="honeypot-meta" class="meta"></span>
|
||||
<div class="head-actions">
|
||||
<button id="honeypot-clear" class="btn-danger" type="button">Vider la liste</button>
|
||||
<button id="honeypot-refresh" class="btn-ghost" type="button">Actualiser</button>
|
||||
</div>
|
||||
</div>
|
||||
<p class="muted">Les adresses qui demandent des chemins WordPress inexistants (wp-login.php, .env, xmlrpc.php, etc.) reçoivent une fausse réponse WordPress et sont enregistrées ici. Bannir une IP la bloque définitivement (HTTP 403).</p>
|
||||
<div id="honeypot-list" class="table-scroll"><p class="meta">Chargement…</p></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="tab-restart" class="tab" hidden aria-label="Redémarrage">
|
||||
<div class="card">
|
||||
<div class="card-head"><h2>Redémarrage des services</h2></div>
|
||||
<p class="muted">Redémarrage automatique via pm2. L'application relance en ~1 s, Caddy entraîne une coupure TLS de quelques secondes.</p>
|
||||
<div class="restart-actions">
|
||||
<button id="restart-app" class="btn-danger" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
|
||||
Redémarrer l'application
|
||||
</button>
|
||||
<button id="restart-caddy" class="btn-danger" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 4v6h-6"/><path d="M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10"/><path d="M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>
|
||||
Redémarrer Caddy
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
<script src="/vendor/marked.umd.js" defer></script>
|
||||
<script src="/z-panel/admin.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue