Skip to content

Commit

Permalink
feat: add DSC layout (#113) (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
baolanlequang authored Jun 25, 2024
1 parent c354e35 commit 58eb4b3
Show file tree
Hide file tree
Showing 4 changed files with 1,039 additions and 964 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@complat/chem-spectra-client",
"version": "1.3.1",
"version": "1.3.2",
"description": "ChemSpectra client side server.",
"repository": {
"type": "git",
Expand All @@ -20,7 +20,7 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@complat/react-spectra-editor": "1.3.1",
"@complat/react-spectra-editor": "1.3.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.9",
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class Content extends React.Component {
saveOp({
peaks, shift, scan, thres, analysis, integration,
multiplicity, waveLength, cyclicvoltaSt, curveSt,
dscMetaData,
}) {
const {
saveFileInitAct, molSt,
Expand All @@ -249,6 +250,7 @@ class Content extends React.Component {
multiplicity: JSON.stringify(multiplicity),
waveLength: JSON.stringify(waveLength),
cyclicvolta: JSON.stringify(cyclicvoltaSt),
dscMetaData: JSON.stringify(dscMetaData),
});
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/fetchers/fetcher_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const convertFile = (target) => {
const saveFile = (target) => {
const {
src, dst, filename, mol, dstList, peakStr, shift, mass, scan, thres, predict,
integration, multiplicity, waveLength, cyclicvolta,
integration, multiplicity, waveLength, cyclicvolta, dscMetaData,
} = target;

const data = new FormData();
Expand All @@ -48,6 +48,7 @@ const saveFile = (target) => {
data.append('multiplicity', multiplicity);
data.append('wave_length', waveLength);
data.append('cyclic_volta', cyclicvolta);
data.append('dsc_meta_data', dscMetaData);

if (dstList) {
dstList.forEach((dstFile) => {
Expand Down
Loading

0 comments on commit 58eb4b3

Please sign in to comment.