HyeonJun Jeon

[Disable] Puppeteer by issue#1

...@@ -21,3 +21,4 @@ ...@@ -21,3 +21,4 @@
21 npm-debug.log* 21 npm-debug.log*
22 yarn-debug.log* 22 yarn-debug.log*
23 yarn-error.log* 23 yarn-error.log*
24 +.prettierignore
......
...@@ -60,8 +60,8 @@ async function peedGet(page) { ...@@ -60,8 +60,8 @@ async function peedGet(page) {
60 return data.href; 60 return data.href;
61 }, temp); 61 }, temp);
62 62
63 - console.log(Promise.resolve(data)); 63 + console.log(data);
64 - return Promise.resolve(data); 64 + return data;
65 } 65 }
66 66
67 67
...@@ -74,7 +74,7 @@ async function subjectGet(page) { ...@@ -74,7 +74,7 @@ async function subjectGet(page) {
74 for (let index = 0; index < number; index++) { 74 for (let index = 0; index < number; index++) {
75 data.push(await getOne(page, index + 1)); 75 data.push(await getOne(page, index + 1));
76 } 76 }
77 - console.log(Promise.resolve(data)); 77 + console.log(data);
78 } 78 }
79 79
80 async function getOne(page, index) { 80 async function getOne(page, index) {
...@@ -88,7 +88,7 @@ async function getOne(page, index) { ...@@ -88,7 +88,7 @@ async function getOne(page, index) {
88 }, temp); 88 }, temp);
89 // 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); 89 // 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);
90 // 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); 90 // 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);
91 - return Promise.resolve(data); 91 + return data;
92 } 92 }
93 93
94 94
......
1 import { useState } from "react"; 1 import { useState } from "react";
2 import { useNavigate } from "react-router-dom"; 2 import { useNavigate } from "react-router-dom";
3 -import { login } from "../libs/E_Campus"; 3 +//import { login } from "../libs/E_Campus";
4 4
5 import "../styles/Debug.css"; 5 import "../styles/Debug.css";
6 import { initTempSubjects } from "../utils/Test"; 6 import { initTempSubjects } from "../utils/Test";
...@@ -30,7 +30,7 @@ const Debug = () => { ...@@ -30,7 +30,7 @@ const Debug = () => {
30 result = "inited"; 30 result = "inited";
31 break; 31 break;
32 case "login": 32 case "login":
33 - result = login(state.input1, state.input2); 33 + //result = login(state.input1, state.input2);
34 break; 34 break;
35 default: 35 default:
36 } 36 }
......