feat(password-generator): affiche la version de la base et arrondit les mails
- sidebar: réaffiche l'indicateur de version de la base partagée (● Base partagée (vN)), aligné sur cmdb/switch/cert - mails HTML: banner plus arrondi (18px), bloc de code arrondi porté par le <pre> et padding réduit - bump du sous-module cmdb Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
7e8cf8a053
commit
7bdcd9193a
2 changed files with 9 additions and 3 deletions
2
cmdb
2
cmdb
|
|
@ -1 +1 @@
|
|||
Subproject commit 63caa769a0646db22b4a8381742a456739f95ddb
|
||||
Subproject commit 572e88120e4a6060456b06cae0ecd3f3c9c67393
|
||||
|
|
@ -73,6 +73,7 @@
|
|||
.psw-txt b{display:block;font-size:13px;color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.psw-txt small{display:block;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:7px;padding-top:14px;border-top:1px solid var(--border)}
|
||||
.db-status{font-size:11px;color:var(--muted);padding:4px 8px;word-break:break-word;line-height:1.5}
|
||||
|
||||
/* ---------- main ---------- */
|
||||
main{flex:1;padding:30px 36px;max-width:1100px;min-width:0}
|
||||
|
|
@ -243,6 +244,7 @@
|
|||
<div class="psw">
|
||||
<a href="../cmdb/preferences.html#pwgen"><div class="psw-ico">⚙</div><div class="psw-txt"><b>Préférences</b><small>Réglages du générateur</small></div></a>
|
||||
</div>
|
||||
<div class="db-status" id="dbStatus">chargement…</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
|
|
@ -766,6 +768,10 @@ function applyAdFromMap(map){
|
|||
}else AD_CFG = null;
|
||||
}
|
||||
function renderAdStatus(){
|
||||
const status = document.getElementById('dbStatus');
|
||||
if(status) status.textContent = !SERVER_MODE
|
||||
? '● Base locale (localStorage)'
|
||||
: pushing ? '⇅ Enregistrement…' : '● Base partagée (v' + dbVersion + ')';
|
||||
const hint = document.getElementById('adHint');
|
||||
if(hint) hint.textContent = AD_CFG ? '' :
|
||||
'Recherche AD indisponible : configurez l’AD dans Préférences CMDB (base partagée).';
|
||||
|
|
@ -1076,14 +1082,14 @@ function renderEmailHtml(src, ctx){
|
|||
const color = m[1] || '#5b9cf5', buf = [];
|
||||
for(i++; i < lines.length && !/^:::\s*$/.test(lines[i]); i++) buf.push(lines[i]);
|
||||
i++;
|
||||
html += '<div style="background:' + color + ';color:#fff;padding:24px 28px;border-radius:14px;font-size:20px;font-weight:700;line-height:1.35;margin:0 0 18px">' + inline(buf.join('<br>')) + '</div>';
|
||||
html += '<div style="background:' + color + ';color:#fff;padding:24px 28px;border-radius:18px;font-size:20px;font-weight:700;line-height:1.35;margin:0 0 18px">' + inline(buf.join('<br>')) + '</div>';
|
||||
continue;
|
||||
}
|
||||
if(/^```/.test(line)){
|
||||
const buf = [];
|
||||
for(i++; i < lines.length && !/^```/.test(lines[i]); i++) buf.push(lines[i]);
|
||||
i++;
|
||||
html += '<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 16px;border-collapse:separate"><tr><td style="background:#1d2026;color:#e6e6e6;padding:16px 18px;border-radius:12px;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.55"><pre style="margin:0;overflow-x:auto;font-family:inherit"><code>' + buf.join('\n') + '</code></pre></td></tr></table>';
|
||||
html += '<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 16px"><tr><td style="padding:0"><pre style="margin:0;background:#1d2026;color:#e6e6e6;padding:12px 14px;border-radius:14px;overflow-x:auto;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.55"><code>' + buf.join('\n') + '</code></pre></td></tr></table>';
|
||||
continue;
|
||||
}
|
||||
if(m = line.match(/^!\[([^\]]*)\]\(([^)]+)\)\s*$/)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue