fix(vwb): double accolades JSX dans CapturePanel et CaptureLibrary
Some checks failed
security-audit / Bandit (scan statique) (push) Successful in 12s
security-audit / pip-audit (CVE dépendances) (push) Successful in 11s
security-audit / Scan secrets (grep) (push) Successful in 8s
tests / Lint (ruff + black) (push) Successful in 13s
tests / Tests unitaires (sans GPU) (push) Failing after 13s
tests / Tests sécurité (critique) (push) Has been skipped
Some checks failed
security-audit / Bandit (scan statique) (push) Successful in 12s
security-audit / pip-audit (CVE dépendances) (push) Successful in 11s
security-audit / Scan secrets (grep) (push) Successful in 8s
tests / Lint (ruff + black) (push) Successful in 13s
tests / Tests unitaires (sans GPU) (push) Failing after 13s
tests / Tests sécurité (critique) (push) Has been skipped
Corrige les src={{b64ImgSrc(...)}} → src={b64ImgSrc(...)} causés par
le replace_all sur les template literals. Corrige aussi l'appel
b64ImgSrc dans du code JS pur (pas de {} autour).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -155,7 +155,7 @@ export default function CaptureLibrary({ currentCapture, onSelectCapture, onCapt
|
|||||||
{!isExpanded && currentCapture && (
|
{!isExpanded && currentCapture && (
|
||||||
<div className="library-preview">
|
<div className="library-preview">
|
||||||
<img
|
<img
|
||||||
src={{b64ImgSrc(currentCapture.screenshot_base64)}}
|
src={b64ImgSrc(currentCapture.screenshot_base64)}
|
||||||
alt="Dernière capture"
|
alt="Dernière capture"
|
||||||
onClick={() => setIsExpanded(true)}
|
onClick={() => setIsExpanded(true)}
|
||||||
/>
|
/>
|
||||||
@@ -215,7 +215,7 @@ export default function CaptureLibrary({ currentCapture, onSelectCapture, onCapt
|
|||||||
className={`library-item ${selectedItems.has(item.id) ? 'selected' : ''}`}
|
className={`library-item ${selectedItems.has(item.id) ? 'selected' : ''}`}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={{b64ImgSrc(item.capture.screenshot_base64)}}
|
src={b64ImgSrc(item.capture.screenshot_base64)}
|
||||||
alt="Capture"
|
alt="Capture"
|
||||||
onClick={() => onSelectCapture(item.capture)}
|
onClick={() => onSelectCapture(item.capture)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default function CapturePanel({
|
|||||||
try {
|
try {
|
||||||
const { detectUIElements } = await import('../services/uiDetection');
|
const { detectUIElements } = await import('../services/uiDetection');
|
||||||
const result = await detectUIElements(
|
const result = await detectUIElements(
|
||||||
{b64ImgSrc(currentCapture.screenshot_base64)},
|
b64ImgSrc(currentCapture.screenshot_base64),
|
||||||
{ threshold: 0.35 }
|
{ threshold: 0.35 }
|
||||||
);
|
);
|
||||||
setPreviewElements(result.elements);
|
setPreviewElements(result.elements);
|
||||||
@@ -217,7 +217,7 @@ export default function CapturePanel({
|
|||||||
<div className="capture-preview-container">
|
<div className="capture-preview-container">
|
||||||
<img
|
<img
|
||||||
ref={previewImgRef}
|
ref={previewImgRef}
|
||||||
src={{b64ImgSrc(currentCapture.screenshot_base64)}}
|
src={b64ImgSrc(currentCapture.screenshot_base64)}
|
||||||
alt="Capture"
|
alt="Capture"
|
||||||
onClick={() => setIsFullscreen(true)}
|
onClick={() => setIsFullscreen(true)}
|
||||||
onLoad={handlePreviewImageLoad}
|
onLoad={handlePreviewImageLoad}
|
||||||
@@ -280,7 +280,7 @@ export default function CapturePanel({
|
|||||||
{library.slice(0, 4).map(item => (
|
{library.slice(0, 4).map(item => (
|
||||||
<div key={item.id} className="library-item">
|
<div key={item.id} className="library-item">
|
||||||
<img
|
<img
|
||||||
src={{b64ImgSrc(item.capture.screenshot_base64)}}
|
src={b64ImgSrc(item.capture.screenshot_base64)}
|
||||||
alt="Capture"
|
alt="Capture"
|
||||||
onClick={() => handleLibrarySelect(item)}
|
onClick={() => handleLibrarySelect(item)}
|
||||||
/>
|
/>
|
||||||
@@ -321,7 +321,7 @@ export default function CapturePanel({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={{b64ImgSrc(item.capture.screenshot_base64)}}
|
src={b64ImgSrc(item.capture.screenshot_base64)}
|
||||||
alt="Capture"
|
alt="Capture"
|
||||||
/>
|
/>
|
||||||
<div className="library-gallery-label">
|
<div className="library-gallery-label">
|
||||||
@@ -547,7 +547,7 @@ function FullscreenSelector({
|
|||||||
<div style={{ position: 'relative', display: 'inline-block', maxWidth: '100%', maxHeight: '100%' }}>
|
<div style={{ position: 'relative', display: 'inline-block', maxWidth: '100%', maxHeight: '100%' }}>
|
||||||
<img
|
<img
|
||||||
ref={imgRef}
|
ref={imgRef}
|
||||||
src={{b64ImgSrc(capture.screenshot_base64)}}
|
src={b64ImgSrc(capture.screenshot_base64)}
|
||||||
alt="Capture plein écran"
|
alt="Capture plein écran"
|
||||||
draggable={false}
|
draggable={false}
|
||||||
onLoad={handleImageLoad}
|
onLoad={handleImageLoad}
|
||||||
|
|||||||
Reference in New Issue
Block a user