Skip to content

Commit

Permalink
架构重构:引入 Processor 图书类型处理器
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiee committed Aug 4, 2024
1 parent b99f447 commit 2bfec78
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ RayBook 是一个基于 Electron 和 React 的开源电子书管理应用。它
## 更新记录

2024-08-04
2024-08-05

- 架构重构:引入 Processor 图书类型处理器
- 优化:首页“添加图书”流程,使用 Processor 处理图书类型
- 初步支持 PDF 图书上传、解析元数据

2024-07-28

Expand Down
188 changes: 188 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "eslint --ext .ts,.tsx .",
"test": "jest"
"test": "jest",
"postinstall": "patch-package"
},
"devDependencies": {
"@electron-forge/cli": "^7.4.0",
Expand All @@ -34,6 +35,7 @@
"fork-ts-checker-webpack-plugin": "^7.2.13",
"jest": "^29.7.0",
"node-loader": "^2.0.0",
"patch-package": "^8.0.0",
"style-loader": "^3.0.0",
"ts-jest": "^29.1.5",
"ts-loader": "^9.2.2",
Expand Down
13 changes: 13 additions & 0 deletions patches/pdf-parse+1.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/pdf-parse/index.js b/node_modules/pdf-parse/index.js
index e9fc367..7d06b0c 100644
--- a/node_modules/pdf-parse/index.js
+++ b/node_modules/pdf-parse/index.js
@@ -3,7 +3,7 @@ const Pdf = require('./lib/pdf-parse.js');

module.exports = Pdf;

-let isDebugMode = !module.parent;
+let isDebugMode = false;

//process.env.AUTO_KENT_DEBUG

Loading

0 comments on commit 2bfec78

Please sign in to comment.