From 7bdcd9193a2714beef4ceab12943d47007c15f34 Mon Sep 17 00:00:00 2001 From: Guillaume DENIS Date: Wed, 8 Jul 2026 15:39:50 +0200 Subject: [PATCH] feat(password-generator): affiche la version de la base et arrondit les mails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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
 et padding réduit
- bump du sous-module cmdb

Co-Authored-By: Claude Opus 4.8 
---
 cmdb                                       |  2 +-
 password-generator/password_generator.html | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/cmdb b/cmdb
index 63caa76..572e881 160000
--- a/cmdb
+++ b/cmdb
@@ -1 +1 @@
-Subproject commit 63caa769a0646db22b4a8381742a456739f95ddb
+Subproject commit 572e88120e4a6060456b06cae0ecd3f3c9c67393
diff --git a/password-generator/password_generator.html b/password-generator/password_generator.html
index aee520e..9d11c55 100644
--- a/password-generator/password_generator.html
+++ b/password-generator/password_generator.html
@@ -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 @@
     
+    
chargement…
@@ -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 += '
' + inline(buf.join('
')) + '
'; + html += '
' + inline(buf.join('
')) + '
'; continue; } if(/^```/.test(line)){ const buf = []; for(i++; i < lines.length && !/^```/.test(lines[i]); i++) buf.push(lines[i]); i++; - html += '
' + buf.join('\n') + '
'; + html += '
' + buf.join('\n') + '
'; continue; } if(m = line.match(/^!\[([^\]]*)\]\(([^)]+)\)\s*$/)){