Former-commit-id: 16b7a55b17466fd2ff43c8ea2ca8a039de3b941c
This commit is contained in:
troyeguo
2021-10-30 15:55:41 +08:00
parent e3efe2a644
commit d2be69a4ef
7 changed files with 18 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
</h3>
<div align="center">
[Download](https://koodo.960960.xyz/en/download) | [Preview](https://koodo-reader.vercel.app/) | [Roadmap](https://troyeguo.notion.site/d1c19a132932465bae1d89dd963c92ea?v=ca8aa69cf25849c18c92b92ba868663b) | [Document](https://troyeguo.notion.site/Koodo-Reader-Document-9c767af3d66c459db996bdd08a34c34b)
[Download](https://koodo.960960.xyz/en/download) | [Preview](https://koodo-reader.vercel.app) | [Roadmap](https://troyeguo.notion.site/d1c19a132932465bae1d89dd963c92ea?v=ca8aa69cf25849c18c92b92ba868663b) | [Document](https://troyeguo.notion.site/Koodo-Reader-Document-9c767af3d66c459db996bdd08a34c34b)
</div>
@@ -58,7 +58,7 @@
- Desktop Version:
- Stable Version (Recommended): [Download](https://koodo.960960.xyz/en/download)
- Developer Version: [Download](https://github.com/troyeguo/koodo-reader/releases/latest) ( With new feature and bug fix, but may induce some unknown bugs)
- Web Version[Preview](https://koodo-reader.vercel.app/)
- Web Version[Preview](https://koodo-reader.vercel.app)
- Install with Homebrew:
```shell

View File

@@ -18,7 +18,7 @@
<div align="center">
[下载](https://koodo.960960.xyz/zh/download) | [预览](https://koodo-reader.vercel.app/) | [计划](https://troyeguo.notion.site/215baeda57804fd29dbb0e91d1e6a021?v=360c00183d944b598668f34c255edfd7) | [文档](https://troyeguo.notion.site/Koodo-Reader-0c9c7ccdc5104a54825dfc72f1c84bea)
[下载](https://koodo.960960.xyz/zh/download) | [预览](https://koodo-reader.vercel.app) | [计划](https://troyeguo.notion.site/215baeda57804fd29dbb0e91d1e6a021?v=360c00183d944b598668f34c255edfd7) | [文档](https://troyeguo.notion.site/Koodo-Reader-0c9c7ccdc5104a54825dfc72f1c84bea)
</div>
@@ -58,7 +58,7 @@
- 桌面端:
- 稳定版 (推荐下载)[官网](https://koodo.960960.xyz/zh/download)(感谢 [GitHub Proxy](https://ghproxy.com/) 提供下载加速服务)
- 开发版:[Github Release](https://github.com/troyeguo/koodo-reader/releases/latest) (包含新功能和 bug 修复,但也可能引入更多未知 bug
- 网页版:[前往](https://koodo-reader.vercel.app/)
- 网页版:[前往](https://koodo-reader.vercel.app)
- 使用 Homebrew 安装:
```shell

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<link rel="dns-prefetch" href="https://koodo-reader.vercel.app/" />
<link rel="dns-prefetch" href="https://koodo-reader.vercel.app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="epub reader free koodo" />
<meta

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
export const config = {
callback_url:
process.env.NODE_ENV === "production"
? "https://koodo-reader.vercel.app/"
? "https://koodo-reader.vercel.app"
: "http://localhost:3000",
token_url:
process.env.NODE_ENV === "production"

View File

@@ -42,6 +42,14 @@ class Viewer extends React.Component<ViewerProps, ViewerState> {
this.handleRenderBook();
this.props.handleRenderFunc(this.handleRenderBook);
var doit;
window.addEventListener("resize", () => {
if (StorageUtil.getReaderConfig("readerMode") === "single") {
return;
}
clearTimeout(doit);
doit = setTimeout(this.handleRenderBook, 100);
});
}
handleRenderBook = () => {
let { key, path, format, name } = this.props.currentBook;

View File

@@ -82,7 +82,9 @@ class ContentList extends React.Component<ContentListProps, ContentListState> {
onClick={this.handleJump}
className="book-content-name"
>
{item.label}
{item.label.indexOf("#") > -1
? item.label.split("#")[0]
: item.label}
</a>
{item.subitems.length > 0 &&
(this.state.currentIndex === index ||