Skip to content

Commit

Permalink
enhancement/multiple-instrument (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJJackson authored Nov 21, 2024
1 parent 2b6823a commit eb76dc1
Show file tree
Hide file tree
Showing 30 changed files with 1,050 additions and 499 deletions.
158 changes: 157 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"stream-browserify": "^3.0.0",
"url": "^0.11.1",
"util": "^0.12.5",
"xhr": "^2.6.0"
"xhr": "^2.6.0",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.9",
Expand Down
32 changes: 16 additions & 16 deletions src/app-bundles/explore-data-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ const exploreDataBundle = {
});
});

await fetch(`${apiRoot}/inclinometer_explorer?before=${before}&after=${after}`, {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + getToken(),
},
body: JSON.stringify(instrumentIds),
})
.then((response) => response.json())
.then((data) => {
dispatch({
type: 'INCLINOMETER_DATA_LOAD',
payload: data,
});
});
// await fetch(`${apiRoot}/inclinometer_explorer?before=${before}&after=${after}`, {
// method: 'POST',
// mode: 'cors',
// headers: {
// 'Content-Type': 'application/json',
// 'Authorization': 'Bearer ' + getToken(),
// },
// body: JSON.stringify(instrumentIds),
// })
// .then((response) => response.json())
// .then((data) => {
// dispatch({
// type: 'INCLINOMETER_DATA_LOAD',
// payload: data,
// });
// });

dispatch({ type: 'EXPLORE_DATA_LOADING', payload: false });
},
Expand Down
69 changes: 0 additions & 69 deletions src/app-bundles/inclinometer-measurements.js

This file was deleted.

Loading

0 comments on commit eb76dc1

Please sign in to comment.