✂️ Pruning useless code

This commit is contained in:
2021-06-14 10:47:12 -07:00
parent 7ea962952a
commit 22a5a84762
5 changed files with 1744 additions and 21228 deletions

19387
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,11 +32,11 @@
"fastest-validator": "^1.11.0",
"fs-extra": "^9.1.0",
"imghash": "^0.0.8",
"jsdoc": "^3.6.7",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-hooks-worker": "^1.0.0",
"react-window-dynamic-list": "^2.3.5",
"request": "^2.88.2",
"sharp": "^0.28.1",
"socket.io-client": "^4.1.2"
},

View File

@@ -3,7 +3,6 @@ import { connect } from "react-redux";
import ZeroState from "./ZeroState";
import { RecentlyImported } from "./RecentlyImported";
import { getRecentlyImportedComicBooks } from "../actions/fileops.actions";
import { isUndefined } from "lodash";
interface IProps {
getRecentComics: Function;
@@ -15,9 +14,6 @@ interface IState {
class Dashboard extends React.Component<IProps, IState> {
componentDidMount() {
if (!isUndefined(this.props.recentComics)) {
console.log("asd");
}
this.props.getRecentComics();
}
public render() {

View File

@@ -2,20 +2,4 @@ import router from "../router";
import { Request, Response } from "express";
import axios from "axios";
router.route("/walkFolder").post(async (req: Request, res: Response) => {
const basePathToWalk =
typeof req.body.basePathToWalk === "string" ? req.body.basePathToWalk : "";
const walkedFolders = await axios
.request({
url: "http://localhost:3000/api/import/walkFolders",
method: "POST",
data: {
basePathToWalk,
},
})
.then((data) => data.data)
.catch((error) => error);
return res.json(walkedFolders);
});
export default router;

3563
yarn.lock

File diff suppressed because it is too large Load Diff