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-06-01 03:29:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef5f1a522372e04f50e51cbdf7f5fdbc5148daa2
ef5f1a52
1 parent
f348106f
[Modify] Hide id/pw in file
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
.gitignore
package-lock.json
package.json
server/server.js
.gitignore
View file @
ef5f1a5
...
...
@@ -22,3 +22,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.prettierignore
server/libs/login.pvdata
...
...
package-lock.json
View file @
ef5f1a5
...
...
@@ -13,6 +13,7 @@
"@testing-library/user-event"
:
"^13.5.0"
,
"axios"
:
"^0.27.2"
,
"express"
:
"^4.18.1"
,
"fs"
:
"^0.0.1-security"
,
"localforage"
:
"^1.10.0"
,
"puppeteer"
:
"^14.1.1"
,
"react"
:
"^18.1.0"
,
...
...
@@ -7888,6 +7889,11 @@
"node"
:
">= 0.6"
}
},
"node_modules/fs"
:
{
"version"
:
"0.0.1-security"
,
"resolved"
:
"https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz"
,
"integrity"
:
"sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"node_modules/fs-constants"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz"
,
...
...
@@ -22268,6 +22274,11 @@
"resolved"
:
"https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz"
,
"integrity"
:
"sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
},
"fs"
:
{
"version"
:
"0.0.1-security"
,
"resolved"
:
"https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz"
,
"integrity"
:
"sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"fs-constants"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz"
,
...
...
package.json
View file @
ef5f1a5
...
...
@@ -8,6 +8,7 @@
"@testing-library/user-event"
:
"^13.5.0"
,
"axios"
:
"^0.27.2"
,
"express"
:
"^4.18.1"
,
"fs"
:
"^0.0.1-security"
,
"localforage"
:
"^1.10.0"
,
"puppeteer"
:
"^14.1.1"
,
"react"
:
"^18.1.0"
,
...
...
server/server.js
View file @
ef5f1a5
import
express
from
"express"
;
import
{
login
}
from
"./libs/E_Campus.js"
;
import
fs
from
"fs"
;
const
app
=
express
();
const
router
=
express
.
Router
();
...
...
@@ -11,8 +13,15 @@ router.get("/", (req, res) => {
app
.
use
(
"/"
,
router
);
login
(
"asdf"
,
"asdf!"
);
fs
.
readFile
(
"server/login.pvdata"
,
"utf8"
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
err
);
console
.
log
(
"server/login.pvdata에 ID\\nPW를 작성"
);
return
;
}
login
(...
data
.
split
(
"\r\n"
));
app
.
listen
(
3001
,
function
()
{
console
.
log
(
"listening on 3001"
);
app
.
listen
(
3001
,
function
()
{
console
.
log
(
"listening on 3001"
);
});
});
...
...
Please
register
or
login
to post a comment