diff --git a/main.ts b/main.ts index 8a8dfd86..13afb114 100644 --- a/main.ts +++ b/main.ts @@ -29,10 +29,10 @@ app.on("ready", () => { height: 660, webPreferences: { webSecurity: false, nodeIntegration: true }, }); - if (!isDev) { - const { Menu } = require("electron"); - Menu.setApplicationMenu(null); - } + // if (!isDev) { + // const { Menu } = require("electron"); + // Menu.setApplicationMenu(null); + // } const urlLocation = isDev ? "http://localhost:3000/" diff --git a/package.json b/package.json index cb6c4276..43f00e3b 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,6 @@ "copy-text-to-clipboard": "^2.2.0", "dropbox": "^5.2.0", "electron-is-dev": "^1.1.0", - "epubjs": "^0.3.88", - "font-list": "^1.2.11", - "html-react-parser": "^0.13.0", "i18next": "^19.4.4", "i18next-browser-languagedetector": "^4.2.0", "is-electron": "^2.2.0", @@ -142,6 +139,9 @@ "sass-loader": "^8.0.0", "spark-md5": "^3.0.1", "typescript": "^3.8.3", - "wait-on": "^3.3.0" + "wait-on": "^3.3.0", + "epubjs": "^0.3.88", + "font-list": "^1.2.11", + "html-react-parser": "^0.13.0" } } diff --git a/src/components/updataDialog/updateDialog.css b/src/components/updataDialog/updateDialog.css index e6f7a6c5..cb367890 100644 --- a/src/components/updataDialog/updateDialog.css +++ b/src/components/updataDialog/updateDialog.css @@ -17,7 +17,7 @@ line-height: 15px; color: rgba(75, 75, 75, 1); opacity: 1; - margin: 20px 20px 10px; + margin: 20px 0px 10px; text-align: center; width: 346px; } @@ -47,7 +47,7 @@ margin-top: 10px; height: 300px; overflow-y: scroll; - width: 320px; + width: 346px; } .update-dialog-illustration { width: 200px; diff --git a/src/components/updateInfo/component.tsx b/src/components/updateInfo/component.tsx index d8f242cf..88a56125 100644 --- a/src/components/updateInfo/component.tsx +++ b/src/components/updateInfo/component.tsx @@ -16,6 +16,7 @@ class UpdateInfo extends React.Component { axios .get("https://koodo.960960.xyz/update") .then((res) => { + console.log(res); const download = res.data.download; const version = res.data.log.version; // console.log(version, "version"); diff --git a/src/utils/readerConfig.tsx b/src/utils/readerConfig.tsx index aec42a67..f3706bc7 100644 --- a/src/utils/readerConfig.tsx +++ b/src/utils/readerConfig.tsx @@ -44,7 +44,7 @@ export const themeList = [ export const updateLog = { date: "2020.9.6", new: [ - "现在 Koodo Reader 支持全书搜索啦", + "支持全书搜索", "客户端版本支持使用本地字体", "单页模式新增滚动阅读功能", "新增对epub文件内置样式的支持",