@@ -39,14 +39,14 @@ export default function Dashboard() {
3939 useEffect ( ( ) => {
4040 async function loadImageList ( ) {
4141 try {
42- const response = await fetch ( '/ image-list.json' )
42+ const response = await fetch ( 'image-list.json' )
4343 if ( response . ok ) {
4444 const data = await response . json ( )
4545 const imageList : ImageData [ ] = data . images . map ( ( imageName : string ) => ( {
4646 id : imageName ,
47- thumbnailPath : `/ thumbnails/${ imageName } .jpg` ,
48- imagePath : `/ downsampled/${ imageName } .jpg` ,
49- annotationPath : `/ annotations/nsd/${ imageName } _annotations.json`
47+ thumbnailPath : `thumbnails/${ imageName } .jpg` ,
48+ imagePath : `downsampled/${ imageName } .jpg` ,
49+ annotationPath : `annotations/nsd/${ imageName } _annotations.json`
5050 } ) )
5151 setImages ( imageList )
5252 } else {
@@ -108,7 +108,7 @@ export default function Dashboard() {
108108 async function loadAnnotationsForImage ( imageId : string ) {
109109 setImageLoading ( true )
110110 try {
111- const response = await fetch ( `/ annotations/nsd/${ imageId } _annotations.json` )
111+ const response = await fetch ( `annotations/nsd/${ imageId } _annotations.json` )
112112 if ( response . ok ) {
113113 const data = await response . json ( )
114114 setAnnotations ( prev => ( { ...prev , [ imageId ] : data . annotations || [ ] } ) )
@@ -182,7 +182,7 @@ export default function Dashboard() {
182182 className = "flex items-center gap-3 md:gap-4 hover:opacity-90 transition-opacity"
183183 >
184184 < img
185- src = "/ AGI-square.svg"
185+ src = "AGI-square.svg"
186186 alt = "AGI Logo"
187187 className = "w-10 h-10 md:w-12 md:h-12"
188188 />
0 commit comments