HyeonJun Jeon

[Disable] Puppeteer by issue#1

......@@ -21,3 +21,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.prettierignore
......
......@@ -60,8 +60,8 @@ async function peedGet(page) {
return data.href;
}, temp);
console.log(Promise.resolve(data));
return Promise.resolve(data);
console.log(data);
return data;
}
......@@ -74,7 +74,7 @@ async function subjectGet(page) {
for (let index = 0; index < number; index++) {
data.push(await getOne(page, index + 1));
}
console.log(Promise.resolve(data));
console.log(data);
}
async function getOne(page, index) {
......@@ -88,7 +88,7 @@ async function getOne(page, index) {
}, temp);
// data.subjectName = await page.$eval("#nav-tray-portal > span > span > div > div > div > div > div > ul:nth-child(3) > li:nth-child(" + index + ") > a", (data) => data.textContent);
// data.subjectLink = await page.$eval("#nav-tray-portal > span > span > div > div > div > div > div > ul:nth-child(3) > li:nth-child(" + index + ") > a", (data) => data.href);
return Promise.resolve(data);
return data;
}
......
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { login } from "../libs/E_Campus";
//import { login } from "../libs/E_Campus";
import "../styles/Debug.css";
import { initTempSubjects } from "../utils/Test";
......@@ -30,7 +30,7 @@ const Debug = () => {
result = "inited";
break;
case "login":
result = login(state.input1, state.input2);
//result = login(state.input1, state.input2);
break;
default:
}
......