Compare commits
2 commits
5729caeea0
...
bd536f2ea5
Author | SHA1 | Date | |
---|---|---|---|
bd536f2ea5 | |||
8e08327dd9 |
2 changed files with 19 additions and 1 deletions
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
// IntelliSense를 사용하여 가능한 특성에 대해 알아보세요.
|
||||||
|
// 기존 특성에 대한 설명을 보려면 가리킵니다.
|
||||||
|
// 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요.
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "localhost에 대해 Chrome 시작",
|
||||||
|
"url": "http://localhost:5173",
|
||||||
|
"webRoot": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -69,7 +69,7 @@ function ComicViewer({
|
||||||
return () => {
|
return () => {
|
||||||
img.removeEventListener("load", listener);
|
img.removeEventListener("load", listener);
|
||||||
// abort loading
|
// abort loading
|
||||||
img.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAI=;';
|
img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
||||||
// TODO: use web worker to abort loading image in the future
|
// TODO: use web worker to abort loading image in the future
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -85,6 +85,9 @@ function ComicViewer({
|
||||||
)}
|
)}
|
||||||
alt="main content"/>
|
alt="main content"/>
|
||||||
<div className="absolute right-0 w-1/2 h-full z-10 select-none" onMouseDown={() => pageUp(1)} />
|
<div className="absolute right-0 w-1/2 h-full z-10 select-none" onMouseDown={() => pageUp(1)} />
|
||||||
|
{curPage + 1 < totalPage && (
|
||||||
|
<img src={`/api/doc/${doc.id}/comic/${curPage + 1}`} alt="next page" className="sr-only" />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue