Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
search-engine-ui
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INFO624 Search Engine Project
search-engine-ui
Commits
af80962c
Commit
af80962c
authored
2 years ago
by
cns82
Browse files
Options
Downloads
Patches
Plain Diff
add abstract update icon
parent
081e7dfc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
search-engine/public/covid.ico
+0
-0
0 additions, 0 deletions
search-engine/public/covid.ico
search-engine/public/index.html
+2
-2
2 additions, 2 deletions
search-engine/public/index.html
search-engine/src/component/search.js
+2
-1
2 additions, 1 deletion
search-engine/src/component/search.js
with
4 additions
and
3 deletions
search-engine/public/covid.ico
0 → 100644
+
0
−
0
View file @
af80962c
4.19 KiB
This diff is collapsed.
Click to expand it.
search-engine/public/index.html
+
2
−
2
View file @
af80962c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<link
rel=
"icon"
href=
"%PUBLIC_URL%/
favicon
.ico"
/>
<link
rel=
"icon"
href=
"%PUBLIC_URL%/
covid
.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
<meta
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
work correctly both with client-side routing and a non-root public URL.
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
Learn how to configure a non-root public URL by running `npm run build`.
-->
-->
<title>
React App
</title>
<title>
COVID Search Engine
</title>
</head>
</head>
<body>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
...
...
This diff is collapsed.
Click to expand it.
search-engine/src/component/search.js
+
2
−
1
View file @
af80962c
...
@@ -57,6 +57,7 @@ let SearchEngine = function () {
...
@@ -57,6 +57,7 @@ let SearchEngine = function () {
newObj
[
"
journal
"
]
=
row
[
"
_source
"
][
"
journal
"
]
newObj
[
"
journal
"
]
=
row
[
"
_source
"
][
"
journal
"
]
newObj
[
"
pmid
"
]
=
row
[
"
_source
"
][
"
pmid
"
]
newObj
[
"
pmid
"
]
=
row
[
"
_source
"
][
"
pmid
"
]
newObj
[
"
published_at
"
]
=
row
[
"
_source
"
][
"
published_at
"
]
newObj
[
"
published_at
"
]
=
row
[
"
_source
"
][
"
published_at
"
]
newObj
[
"
abstract
"
]
=
row
[
"
_source
"
][
"
abstract
"
]
parsedData
.
push
(
newObj
)
parsedData
.
push
(
newObj
)
}
}
return
parsedData
return
parsedData
...
@@ -104,7 +105,7 @@ let SearchEngine = function () {
...
@@ -104,7 +105,7 @@ let SearchEngine = function () {
<
div
className
=
'
form-box
'
>
<
div
className
=
'
form-box
'
>
<
form
onSubmit
=
{
handleSubmit
}
>
<
form
onSubmit
=
{
handleSubmit
}
>
<
div
className
=
"
row
"
>
<
div
className
=
"
row
"
>
<
div
className
=
"
column
"
><
h3
className
=
'
dx-header
'
>
Search
Elastic
!<
/h3></
div
>
<
div
className
=
"
column
"
><
h3
className
=
'
dx-header
'
>
Search
COVID
Research
!<
/h3></
div
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
>
<
div
className
=
"
row
"
>
<
div
className
=
"
column-left
"
>
<
div
className
=
"
column-left
"
>
...
...
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