Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Updown Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
November Web
Updown Server
Commits
0011c326
Commit
0011c326
authored
1 year ago
by
zzzang12
Browse files
Options
Downloads
Patches
Plain Diff
Refactor: change Keyword class export to default
parent
c4e8abde
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/crawl.js
+1
-1
1 addition, 1 deletion
src/modules/crawl.js
src/schemas/keyword.js
+3
-3
3 additions, 3 deletions
src/schemas/keyword.js
with
4 additions
and
4 deletions
src/modules/crawl.js
+
1
−
1
View file @
0011c326
import
{
Keyword
}
from
"
../schemas/keyword.js
"
;
import
Keyword
from
"
../schemas/keyword.js
"
;
import
puppeteer
from
"
puppeteer
"
;
import
puppeteer
from
"
puppeteer
"
;
export
const
crawl
=
async
(
req
,
res
)
=>
{
export
const
crawl
=
async
(
req
,
res
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/schemas/keyword.js
+
3
−
3
View file @
0011c326
export
class
Keyword
{
export
default
class
Keyword
{
constructor
(
title
)
{
constructor
(
title
)
{
this
.
title
=
title
;
this
.
title
=
title
;
this
.
views
=
1
0
;
this
.
views
=
0
;
this
.
url
=
"
https://updown.com
"
;
this
.
url
=
""
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment