Skip to content

Commit 5ee13de

Browse files
committed
add dist folder
1 parent 281bb2c commit 5ee13de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3355
-2777
lines changed

dist/actions/manager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
6-
exports.resetInitNmr = exports.resetInitMs = exports.resetInitCommonWithIntergation = exports.resetInitCommon = exports.resetDetector = exports.resetAll = void 0;
6+
exports.resetMultiplicity = exports.resetInitNmr = exports.resetInitMs = exports.resetInitCommonWithIntergation = exports.resetInitCommon = exports.resetDetector = exports.resetAll = void 0;
77
var _action_type = require("../constants/action_type");
88
const resetAll = payload => ({
99
type: _action_type.MANAGER.RESETALL,
@@ -33,6 +33,10 @@ exports.resetInitCommonWithIntergation = resetInitCommonWithIntergation;
3333
const resetDetector = () => ({
3434
type: _action_type.MANAGER.RESET_DETECTOR
3535
});
36+
exports.resetDetector = resetDetector;
37+
const resetMultiplicity = () => ({
38+
type: _action_type.MANAGER.RESET_MULTIPLICITY
39+
});
3640

3741
// eslint-disable-line
38-
exports.resetDetector = resetDetector;
42+
exports.resetMultiplicity = resetMultiplicity;

dist/actions/ui.js

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ const setUiViewerType = payload => ({
1010
payload
1111
});
1212
exports.setUiViewerType = setUiViewerType;
13-
const setUiSweepType = function (payload) {
14-
let jcampIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
15-
return {
16-
type: _action_type.UI.SWEEP.SET_TYPE,
17-
payload,
18-
jcampIdx
19-
};
20-
};
13+
const setUiSweepType = (payload, jcampIdx = 0) => ({
14+
type: _action_type.UI.SWEEP.SET_TYPE,
15+
payload,
16+
jcampIdx
17+
});
2118
exports.setUiSweepType = setUiSweepType;
2219
const selectUiSweep = payload => ({
2320
type: _action_type.UI.SWEEP.SELECT,
@@ -29,17 +26,12 @@ const scrollUiWheel = payload => ({
2926
payload
3027
});
3128
exports.scrollUiWheel = scrollUiWheel;
32-
const clickUiTarget = function (payload, onPeak) {
33-
let voltammetryPeakIdx = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
34-
let jcampIdx = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
35-
let onPecker = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
36-
return {
37-
type: _action_type.UI.CLICK_TARGET,
38-
payload,
39-
onPeak,
40-
voltammetryPeakIdx,
41-
jcampIdx,
42-
onPecker
43-
};
44-
};
29+
const clickUiTarget = (payload, onPeak, voltammetryPeakIdx = 0, jcampIdx = 0, onPecker = false) => ({
30+
type: _action_type.UI.CLICK_TARGET,
31+
payload,
32+
onPeak,
33+
voltammetryPeakIdx,
34+
jcampIdx,
35+
onPecker
36+
});
4537
exports.clickUiTarget = clickUiTarget;

dist/app.js

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
66
});
77
Object.defineProperty(exports, "FN", {
88
enumerable: true,
9-
get: function () {
9+
get: function get() {
1010
return _fn.default;
1111
}
1212
});
@@ -22,6 +22,7 @@ var _index = _interopRequireDefault(require("./reducers/index"));
2222
var _index2 = _interopRequireDefault(require("./sagas/index"));
2323
var _layer_init = _interopRequireDefault(require("./layer_init"));
2424
var _fn = _interopRequireDefault(require("./fn"));
25+
var _jsxRuntime = require("react/jsx-runtime");
2526
/* eslint-disable react/function-component-definition, react/require-default-props */
2627

2728
// eslint-disable-line
@@ -44,50 +45,49 @@ const ensureQuillDelta = descs => {
4445
};
4546

4647
// - - - React - - -
47-
const SpectraEditor = _ref => {
48-
let {
49-
entity,
50-
others,
51-
cLabel,
52-
xLabel,
53-
yLabel,
54-
operations,
55-
forecast,
56-
molSvg,
57-
editorOnly,
58-
descriptions,
59-
exactMass,
60-
canChangeDescription,
61-
onDescriptionChanged,
62-
multiEntities,
63-
multiMolSvgs,
64-
entityFileNames,
65-
userManualLink
66-
} = _ref;
67-
return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
68-
store: store
69-
}, /*#__PURE__*/_react.default.createElement(_material.StyledEngineProvider, {
70-
injectFirst: true
71-
}, /*#__PURE__*/_react.default.createElement(_layer_init.default, {
72-
entity: entity,
73-
multiEntities: multiEntities,
74-
entityFileNames: entityFileNames,
75-
userManualLink: userManualLink,
76-
others: others,
77-
cLabel: cLabel,
78-
xLabel: xLabel,
79-
yLabel: yLabel,
80-
forecast: forecast,
81-
operations: operations,
82-
descriptions: ensureQuillDelta(descriptions),
83-
molSvg: molSvg,
84-
multiMolSvgs: multiMolSvgs,
85-
editorOnly: editorOnly,
86-
exactMass: exactMass,
87-
canChangeDescription: canChangeDescription,
88-
onDescriptionChanged: onDescriptionChanged
89-
})));
90-
};
48+
const SpectraEditor = ({
49+
entity,
50+
others,
51+
cLabel,
52+
xLabel,
53+
yLabel,
54+
operations,
55+
forecast,
56+
molSvg,
57+
editorOnly,
58+
descriptions,
59+
exactMass,
60+
canChangeDescription,
61+
onDescriptionChanged,
62+
multiEntities,
63+
multiMolSvgs,
64+
entityFileNames,
65+
userManualLink
66+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRedux.Provider, {
67+
store: store,
68+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StyledEngineProvider, {
69+
injectFirst: true,
70+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layer_init.default, {
71+
entity: entity,
72+
multiEntities: multiEntities,
73+
entityFileNames: entityFileNames,
74+
userManualLink: userManualLink,
75+
others: others,
76+
cLabel: cLabel,
77+
xLabel: xLabel,
78+
yLabel: yLabel,
79+
forecast: forecast,
80+
operations: operations,
81+
descriptions: ensureQuillDelta(descriptions),
82+
molSvg: molSvg,
83+
multiMolSvgs: multiMolSvgs,
84+
editorOnly: editorOnly,
85+
exactMass: exactMass,
86+
canChangeDescription: canChangeDescription,
87+
onDescriptionChanged: onDescriptionChanged
88+
})
89+
})
90+
});
9191
exports.SpectraEditor = SpectraEditor;
9292
SpectraEditor.propTypes = {
9393
entity: _propTypes.default.object.isRequired,

dist/components/cmd_bar/01_viewer.js

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,50 @@ var _ui = require("../../actions/ui");
1818
var _cfg = _interopRequireDefault(require("../../helpers/cfg"));
1919
var _common = require("./common");
2020
var _list_ui = require("../../constants/list_ui");
21+
var _jsxRuntime = require("react/jsx-runtime");
2122
/* eslint-disable prefer-object-spread, react/function-component-definition */
2223

2324
const styles = () => Object.assign({}, _common.commonStyle);
24-
const Viewer = _ref => {
25-
let {
26-
classes,
27-
isfocusSpectrumSt,
28-
isfocusAnalysisSt,
29-
hideCmdAnaViewerSt,
30-
disableCmdAnaViewerSt,
31-
setUiViewerTypeAct
32-
} = _ref;
25+
const Viewer = ({
26+
classes,
27+
isfocusSpectrumSt,
28+
isfocusAnalysisSt,
29+
hideCmdAnaViewerSt,
30+
disableCmdAnaViewerSt,
31+
setUiViewerTypeAct
32+
}) => {
3333
const onViewSpectrum = () => setUiViewerTypeAct(_list_ui.LIST_UI_VIEWER_TYPE.SPECTRUM);
3434
const onViewAnalysis = () => setUiViewerTypeAct(_list_ui.LIST_UI_VIEWER_TYPE.ANALYSIS);
35-
return /*#__PURE__*/_react.default.createElement("span", {
35+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
3636
className: classes.group,
37-
"data-testid": "Viewer"
38-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
39-
title: /*#__PURE__*/_react.default.createElement("span", {
40-
className: "txt-sv-tp"
41-
}, "Spectrum Viewer")
42-
}, /*#__PURE__*/_react.default.createElement(_common.MuButton, {
43-
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusSpectrumSt, classes), 'btn-sv-bar-spctrum'),
44-
onClick: onViewSpectrum
45-
}, /*#__PURE__*/_react.default.createElement(_TimelineOutlined.default, {
46-
className: classes.icon
47-
}))), hideCmdAnaViewerSt ? null : /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
48-
title: /*#__PURE__*/_react.default.createElement("span", {
49-
className: "txt-sv-tp"
50-
}, "Analysis Viewer")
51-
}, /*#__PURE__*/_react.default.createElement(_common.MuButton, {
52-
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusAnalysisSt, classes), 'btn-sv-bar-analysis'),
53-
disabled: disableCmdAnaViewerSt,
54-
onClick: onViewAnalysis
55-
}, /*#__PURE__*/_react.default.createElement(_SpellcheckOutlined.default, {
56-
className: classes.icon
57-
}))));
37+
"data-testid": "Viewer",
38+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
39+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
40+
className: "txt-sv-tp",
41+
children: "Spectrum Viewer"
42+
}),
43+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.MuButton, {
44+
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusSpectrumSt, classes), 'btn-sv-bar-spctrum'),
45+
onClick: onViewSpectrum,
46+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TimelineOutlined.default, {
47+
className: classes.icon
48+
})
49+
})
50+
}), hideCmdAnaViewerSt ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
51+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
52+
className: "txt-sv-tp",
53+
children: "Analysis Viewer"
54+
}),
55+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.MuButton, {
56+
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusAnalysisSt, classes), 'btn-sv-bar-analysis'),
57+
disabled: disableCmdAnaViewerSt,
58+
onClick: onViewAnalysis,
59+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpellcheckOutlined.default, {
60+
className: classes.icon
61+
})
62+
})
63+
})]
64+
});
5865
};
5966
const mapStateToProps = (state, props) => (
6067
// eslint-disable-line

dist/components/cmd_bar/02_zoom.js

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,46 @@ var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
1717
var _ui = require("../../actions/ui");
1818
var _common = require("./common");
1919
var _list_ui = require("../../constants/list_ui");
20+
var _jsxRuntime = require("react/jsx-runtime");
2021
/* eslint-disable prefer-object-spread, react/function-component-definition */
2122

2223
const styles = () => Object.assign({}, _common.commonStyle);
23-
const Zoom = _ref => {
24-
let {
25-
classes,
26-
isfocusZoomSt,
27-
setUiSweepTypeAct
28-
} = _ref;
24+
const Zoom = ({
25+
classes,
26+
isfocusZoomSt,
27+
setUiSweepTypeAct
28+
}) => {
2929
const onSweepZoomIn = () => setUiSweepTypeAct(_list_ui.LIST_UI_SWEEP_TYPE.ZOOMIN);
3030
const onSweepZoomReset = () => setUiSweepTypeAct(_list_ui.LIST_UI_SWEEP_TYPE.ZOOMRESET);
31-
return /*#__PURE__*/_react.default.createElement("span", {
31+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
3232
className: classes.group,
33-
"data-testid": "Zoom"
34-
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
35-
title: /*#__PURE__*/_react.default.createElement("span", {
36-
className: "txt-sv-tp"
37-
}, "Zoom In")
38-
}, /*#__PURE__*/_react.default.createElement(_common.MuButton, {
39-
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusZoomSt, classes), 'btn-sv-bar-zoomin'),
40-
onClick: onSweepZoomIn
41-
}, /*#__PURE__*/_react.default.createElement(_ZoomInOutlined.default, {
42-
className: (0, _classnames.default)(classes.icon, classes.iconWp)
43-
}))), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
44-
title: /*#__PURE__*/_react.default.createElement("span", {
45-
className: "txt-sv-tp"
46-
}, "Reset Zoom")
47-
}, /*#__PURE__*/_react.default.createElement(_common.MuButton, {
48-
className: (0, _classnames.default)('btn-sv-bar-zoomreset'),
49-
onClick: onSweepZoomReset
50-
}, /*#__PURE__*/_react.default.createElement(_FindReplaceOutlined.default, {
51-
className: classes.icon
52-
}))));
33+
"data-testid": "Zoom",
34+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
35+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
36+
className: "txt-sv-tp",
37+
children: "Zoom In"
38+
}),
39+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.MuButton, {
40+
className: (0, _classnames.default)((0, _common.focusStyle)(isfocusZoomSt, classes), 'btn-sv-bar-zoomin'),
41+
onClick: onSweepZoomIn,
42+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ZoomInOutlined.default, {
43+
className: (0, _classnames.default)(classes.icon, classes.iconWp)
44+
})
45+
})
46+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
47+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
48+
className: "txt-sv-tp",
49+
children: "Reset Zoom"
50+
}),
51+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.MuButton, {
52+
className: (0, _classnames.default)('btn-sv-bar-zoomreset'),
53+
onClick: onSweepZoomReset,
54+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FindReplaceOutlined.default, {
55+
className: classes.icon
56+
})
57+
})
58+
})]
59+
});
5360
};
5461
const mapStateToProps = (state, _) => (
5562
// eslint-disable-line

0 commit comments

Comments
 (0)