Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar filter #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/components/dataDetail/DataDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ class DataDetail extends React.Component {

componentDidMount() {
//const { handle } = this.props.match.params
axios.get('http://localhost:9000/datasets/list/').then(
(success) => {
this.setState({
data_list: success.data,
});
}, (failure) => {
console.log(failure);
}
);
var url = 'https://open-data-portal.s3.us-east-2.amazonaws.com/metadata.json';
axios.get(url).then(success => {
var data_list = success.data;
this.setState({
data_list: success.data,
final_list: data_list,
});
}, (failure) => {
console.log(failure);
}
);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/dataList/DataList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class DataList extends React.Component {
}

componentDidMount() {
axios.get('http://localhost:9000/datasets/list').then(
(success) => {
var url = 'https://open-data-portal.s3.us-east-2.amazonaws.com/metadata.json';
axios.get(url).then(success => {
var data_list = success.data;
this.setState({
data_list: success.data,
Expand Down
1 change: 0 additions & 1 deletion src/components/sideBar/SideBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class SideBar extends React.Component {
"type": "string",
"enum": [
"Numerical",
"Geospatial",
"Categorical",
"Temporal"
]
Expand Down
54 changes: 0 additions & 54 deletions webServer.js

This file was deleted.