Skip to content

Commit 75c8bd9

Browse files
VIL-CIELclaude
andcommitted
fix(lint): corrige les 41 erreurs Stylelint et 2 warnings ESLint (CI au vert)
- style.css : rgb() moderne (r g b / X%), alpha en %, font-family Inter sans guillemets, shorthands non redondants, inset, ligne vide avant déclaration - script.js : catch sans liaison e inutilisée Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 83457cf commit 75c8bd9

4 files changed

Lines changed: 35 additions & 27 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ Toutes les modifications notables de ce projet sont documentées ici.
55
Le format suit [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/)
66
et le projet respecte le [versionnage sémantique](https://semver.org/lang/fr/) (`MAJEUR.MINEUR.CORRECTIF`).
77

8+
## [1.2.5] - 2026-06-04
9+
10+
### Corrigé
11+
- **Lint CI au vert** : 41 erreurs Stylelint corrigées dans `style.css` — notation de
12+
couleur moderne (`rgb(r g b / X%)`), alpha en pourcentage, `font-family` sans
13+
guillemets superflus (`Inter`), shorthands non redondants, propriété `inset`, et
14+
suppression d'une ligne vide avant déclaration. Plus 2 avertissements ESLint réglés
15+
(`catch` sans liaison `e` inutilisée dans `script.js`).
16+
817
## [1.2.4] - 2026-06-04
918

1019
### Ajouté

public/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function setupCollapse(sidebar) {
105105
let stored = null;
106106
try {
107107
stored = localStorage.getItem(SIDEBAR_KEY);
108-
} catch (e) {
108+
} catch {
109109
stored = null;
110110
}
111111
let collapsed = stored === 'true';
@@ -117,7 +117,7 @@ function setupCollapse(sidebar) {
117117
collapsed = !collapsed;
118118
try {
119119
localStorage.setItem(SIDEBAR_KEY, String(collapsed));
120-
} catch (e) {
120+
} catch {
121121
// localStorage indisponible (ex. file://) : on applique sans mémoriser.
122122
}
123123
applyCollapsed(collapsed);
@@ -194,7 +194,7 @@ function injectShell() {
194194
// Version de repli, affichée quand `fetch` est indisponible (ouverture en `file://`,
195195
// où les navigateurs bloquent la lecture des fichiers locaux). À garder synchronisée
196196
// avec public/version.json, qui reste la source canonique (site déployé en HTTP + CI).
197-
const FALLBACK_VERSION = '1.2.4';
197+
const FALLBACK_VERSION = '1.2.5';
198198

199199
// Affiche la version courante en pied de sidebar : repli immédiat, puis valeur
200200
// canonique lue dans version.json dès que le site est servi en HTTP.

public/style.css

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
body {
18-
font-family: 'Inter', system-ui, sans-serif;
18+
font-family: Inter, system-ui, sans-serif;
1919
background-color: var(--bg-dark);
2020
color: var(--text-main);
2121
margin: 0;
@@ -63,7 +63,7 @@ body {
6363
margin-bottom: 10px;
6464
font-weight: 700;
6565
letter-spacing: 0.5px;
66-
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
66+
border-bottom: 1px solid rgb(255 255 255 / 5%);
6767
padding-bottom: 5px;
6868
}
6969

@@ -94,7 +94,7 @@ body {
9494
}
9595

9696
.nav-group-title:hover {
97-
background: rgba(56, 189, 248, 0.08);
97+
background: rgb(56 189 248 / 8%);
9898
color: var(--primary);
9999
}
100100

@@ -147,7 +147,7 @@ body {
147147
.nav-sub li a.active {
148148
color: var(--primary);
149149
border-left-color: var(--primary);
150-
background: rgba(56, 189, 248, 0.06);
150+
background: rgb(56 189 248 / 6%);
151151
}
152152

153153
.sidebar-footer {
@@ -186,7 +186,7 @@ h3 {
186186

187187
h4 {
188188
color: var(--primary);
189-
margin: 0 0 5px 0;
189+
margin: 0 0 5px;
190190
font-size: 1rem;
191191
}
192192

@@ -205,7 +205,7 @@ h4 {
205205

206206
.status-badge {
207207
display: inline-block;
208-
background: rgba(168, 85, 247, 0.15);
208+
background: rgb(168 85 247 / 15%);
209209
color: var(--accent);
210210
border: 1px solid var(--accent);
211211
padding: 4px 12px;
@@ -239,23 +239,22 @@ h4 {
239239
border: 1px solid var(--border);
240240
padding: 25px;
241241
border-radius: 12px;
242-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
242+
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
243243
}
244244

245245
.info-box {
246-
background: rgba(255, 255, 255, 0.02);
246+
background: rgb(255 255 255 / 2%);
247247
transition: transform 0.2s;
248248
}
249249

250250
.info-box:hover {
251-
252251
border-color: var(--primary);
253252
}
254253

255254
.success-box {
256255
margin-top: 30px;
257256
border-left-color: var(--success);
258-
background: rgba(34, 197, 94, 0.1);
257+
background: rgb(34 197 94 / 10%);
259258
}
260259

261260
.table-container {
@@ -278,7 +277,7 @@ td {
278277
}
279278

280279
th {
281-
background: rgba(56, 189, 248, 0.05);
280+
background: rgb(56 189 248 / 5%);
282281
color: var(--primary);
283282
font-weight: 600;
284283
font-size: 0.9rem;
@@ -290,7 +289,7 @@ tr:last-child td {
290289
}
291290

292291
tr:hover {
293-
background-color: rgba(255, 255, 255, 0.02);
292+
background-color: rgb(255 255 255 / 2%);
294293
}
295294

296295
.role-card {
@@ -317,8 +316,8 @@ tr:hover {
317316

318317
.highlight-me {
319318
border: 1px solid var(--primary);
320-
background: rgba(56, 189, 248, 0.05);
321-
box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
319+
background: rgb(56 189 248 / 5%);
320+
box-shadow: 0 0 20px rgb(56 189 248 / 10%);
322321
}
323322

324323
.custom-list {
@@ -357,8 +356,8 @@ tr:hover {
357356
.overlay {
358357
display: none;
359358
position: fixed;
360-
top: 0; left: 0; right: 0; bottom: 0;
361-
background: rgba(0,0,0,0.7);
359+
inset: 0;
360+
background: rgb(0 0 0 / 70%);
362361
z-index: 999;
363362
backdrop-filter: blur(2px);
364363
}
@@ -376,7 +375,7 @@ tr:hover {
376375

377376
.sidebar.active {
378377
transform: translateX(0);
379-
box-shadow: 5px 0 20px rgba(0,0,0,0.5);
378+
box-shadow: 5px 0 20px rgb(0 0 0 / 50%);
380379
}
381380

382381
.overlay.active {
@@ -404,11 +403,11 @@ tr:hover {
404403
display: flex;
405404
justify-content: space-between;
406405
align-items: center;
407-
background: rgba(0, 0, 0, 0.3);
406+
background: rgb(0 0 0 / 30%);
408407
padding: 8px 12px;
409408
border-radius: 6px;
410409
margin-bottom: 10px;
411-
border: 1px solid rgba(255,255,255,0.05);
410+
border: 1px solid rgb(255 255 255 / 5%);
412411
}
413412

414413
.command-row:last-child {
@@ -430,7 +429,7 @@ tr:hover {
430429
}
431430

432431
.copy-btn-mini {
433-
background: rgba(56, 189, 248, 0.1);
432+
background: rgb(56 189 248 / 10%);
434433
color: var(--primary);
435434
border: 1px solid var(--primary);
436435
padding: 4px 10px;
@@ -449,7 +448,7 @@ tr:hover {
449448
/* --- TOC inline sous le lien actif --- */
450449
.toc-inline {
451450
list-style: none;
452-
padding: 4px 0 6px 0;
451+
padding: 4px 0 6px;
453452
margin: 0;
454453
display: flex;
455454
flex-direction: column;
@@ -477,13 +476,13 @@ tr:hover {
477476
.toc-inline li a:hover {
478477
color: var(--primary);
479478
border-left-color: var(--primary);
480-
background: rgba(56, 189, 248, 0.05);
479+
background: rgb(56 189 248 / 5%);
481480
}
482481

483482
.toc-inline li a.toc-active {
484483
color: var(--primary);
485484
border-left-color: var(--primary);
486-
background: rgba(56, 189, 248, 0.07);
485+
background: rgb(56 189 248 / 7%);
487486
font-weight: 600;
488487
}
489488

public/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.4",
2+
"version": "1.2.5",
33
"name": "Wiki Plugins DAP Pymodaq",
44
"lastUpdate": "2026-06-04"
55
}

0 commit comments

Comments
 (0)