Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
react-second
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
DongHwi Kim
react-second
Commits
97271606
Commit
97271606
authored
1 year ago
by
DongHwi Kim
Browse files
Options
Downloads
Patches
Plain Diff
search connect 8098
parent
7b0ef64c
Branches
master
No related tags found
No related merge requests found
Pipeline
#8417
passed
1 year ago
Stage: deploy
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/app.bundle.js
+1888
-304
1888 additions, 304 deletions
public/app.bundle.js
src/Search.js
+5
-5
5 additions, 5 deletions
src/Search.js
with
1893 additions
and
309 deletions
public/app.bundle.js
+
1888
−
304
View file @
97271606
This diff is collapsed.
Click to expand it.
src/Search.js
+
5
−
5
View file @
97271606
...
...
@@ -9,12 +9,12 @@ export default function SearchPage({list, onSearch,likes,handleLike,myFavoriteLi
event
.
preventDefault
();
console
.
log
(
searchWord
);
setSearchWord
(
''
);
fetch
(
`http://
itunes.apple.com/search?term=
${
searchWord
}
&entity=album`
)
.
then
(
r
=>
r
.
json
()).
then
(
r
=>
{
console
.
log
(
r
);
onSearch
(
r
.
results
);
fetch
(
`http://
localhost:8098/musicSearch/
${
searchWord
}
`
,{
method
:
"
GET
"
}
)
.
then
(
r
esponse
=>
response
.
json
()).
then
(
r
esponse
=>
{
console
.
log
(
r
esponse
);
onSearch
(
r
esponse
.
results
);
setSearchWord
(
''
);
}).
catch
(
e
=>
console
.
log
(
'
error when search musician
'
));
}).
catch
(
e
rror
=>
console
.
log
(
'
error when search musician
'
));
}
const
handleSearchTextChange
=
(
event
)
=>
{
...
...
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