Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Aug 26, 2023
1 parent d11893d commit 4463dc9
Show file tree
Hide file tree
Showing 8 changed files with 4,219 additions and 4,981 deletions.
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@
"request": "^2.88.2",
"webdav": "^3.6.2",
"webdav-fs": "^3.0.0",
"ws": "^8.13.0",
"zip-a-folder": "^0.0.12"
},
"devDependencies": {
"@types/chardet": "^0.8.1",
"@types/express": "^4.17.15",
"@types/i18next": "^13.0.0",
"@types/marked": "^2.0.2",
"@types/md5": "^2.2.0",
"@types/node": "^13.13.2",
"@types/react": "17.0.2",
Expand All @@ -51,8 +47,6 @@
"@types/react-redux": "^7.1.7",
"@types/react-router-dom": "^5.1.6",
"@types/spark-md5": "^3.0.2",
"@types/underscore": "^1.10.24",
"@types/ws": "^8.5.4",
"classnames": "^2.2.6",
"concurrently": "^5.0.1",
"cross-env": "^6.0.3",
Expand All @@ -73,14 +67,14 @@
"react-lottie": "^1.2.3",
"react-redux": "^7.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"react-scripts": "^5.0.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"sass-loader": "^13.3.2",
"source-map-explorer": "^2.5.2",
"spark-md5": "^3.0.1",
"typescript": "3.8.3",
"wait-on": "^3.3.0"
"wait-on": "^7.0.1"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
Expand All @@ -89,7 +83,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"ele": "electron .",
"dev": "concurrently \"cross-env BROWSER=none npm start\" \"wait-on http://localhost:3000/ && nodemon --watch main.js --exec electron .\"",
"dev": "concurrently \"cross-env BROWSER=none npm start\" \"wait-on http://127.0.0.1:3000/ && nodemon --watch main.js --exec electron .\"",
"release": "electron-builder",
"prerelease": "react-scripts build"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/bookCardItem/bookCardItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
display: inline-block;
margin-left: 10px;
border-radius: 50%;
font-size: 8px;
font-size: 12px;
/* line-height: 31px; */
cursor: pointer;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/dialogs/settingDialog/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { themeList } from "../../../constants/themeList";
import toast from "react-hot-toast";
import { openExternalUrl } from "../../../utils/serviceUtils/urlUtil";
import ManagerUtil from "../../../utils/fileUtils/managerUtil";
declare var window: any;
class SettingDialog extends React.Component<
SettingInfoProps,
SettingInfoState
Expand Down
1 change: 1 addition & 0 deletions src/containers/lists/contentList/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import "./contentList.css";
import { ContentListProps, ContentListState } from "./interface";
import StorageUtil from "../../../utils/serviceUtils/storageUtil";
declare var window: any;
class ContentList extends React.Component<ContentListProps, ContentListState> {
constructor(props: ContentListProps) {
super(props);
Expand Down
2 changes: 1 addition & 1 deletion src/containers/panels/progressPanel/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Trans } from "react-i18next";
import { ProgressPanelProps, ProgressPanelState } from "./interface";

import StorageUtil from "../../../utils/serviceUtils/storageUtil";

declare var window: any;
class ProgressPanel extends React.Component<
ProgressPanelProps,
ProgressPanelState
Expand Down
1 change: 1 addition & 0 deletions src/utils/readUtils/recordLocation.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
declare var window: any;
class RecordLocation {
static recordCfi(bookKey: string, cfi: string, percentage: number) {
let json = localStorage.getItem("recordLocation");
Expand Down
1 change: 1 addition & 0 deletions src/utils/readUtils/sortUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NoteModel from "../../model/Note";
import ReadingTime from "./readingTime";
import RecordLocation from "./recordLocation";
import RecordRecent from "./recordRecent";
declare var window: any;
const getBookName = (books: BookModel[]) => {
return books.map((item) => item.name);
};
Expand Down
9,180 changes: 4,210 additions & 4,970 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4463dc9

Please sign in to comment.