Toggle navigation
Toggle navigation
This project
Loading...
Sign in
HyeonJun Jeon
/
Extended-Calendar
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
HyeonJun Jeon
2022-05-31 04:06:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91b6928bb6e4db76ea5e06ce2171e993b606964c
91b6928b
1 parent
01e4dd41
[Disable] Puppeteer by issue
#1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
.gitignore
src/libs/E_Campus_login_getPeed.js
src/pages/Debug.js
.gitignore
View file @
91b6928
...
...
@@ -21,3 +21,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.prettierignore
...
...
src/libs/E_Campus_login_getPeed.js
View file @
91b6928
...
...
@@ -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
;
}
...
...
src/pages/Debug.js
View file @
91b6928
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
:
}
...
...
Please
register
or
login
to post a comment