Skip to content
Draft
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
19 changes: 19 additions & 0 deletions dist/actions/axes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateYAxis = exports.updateXAxis = void 0;
var _action_type = require("../constants/action_type");
const updateXAxis = payload => ({
type: _action_type.AXES.UPDATE_X_AXIS,
payload
});
exports.updateXAxis = updateXAxis;
const updateYAxis = payload => ({
type: _action_type.AXES.UPDATE_Y_AXIS,
payload
});

// eslint-disable-line
exports.updateYAxis = updateYAxis;
22 changes: 22 additions & 0 deletions dist/actions/curve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toggleShowAllCurves = exports.setAllCurves = exports.selectCurve = void 0;
var _action_type = require("../constants/action_type");
const selectCurve = payload => ({
type: _action_type.CURVE.SELECT_WORKING_CURVE,
payload
});
exports.selectCurve = selectCurve;
const setAllCurves = payload => ({
type: _action_type.CURVE.SET_ALL_CURVES,
payload
});
exports.setAllCurves = setAllCurves;
const toggleShowAllCurves = payload => ({
type: _action_type.CURVE.SET_SHOULD_SHOW_ALL_CURVES,
payload
});
exports.toggleShowAllCurves = toggleShowAllCurves;
72 changes: 72 additions & 0 deletions dist/actions/cyclic_voltammetry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setWorkWithMaxPeak = exports.setCylicVoltaRefFactor = exports.setCylicVoltaRef = exports.selectRefPeaks = exports.selectPairPeak = exports.removeCylicVoltaPecker = exports.removeCylicVoltaPairPeak = exports.removeCylicVoltaMinPeak = exports.removeCylicVoltaMaxPeak = exports.addNewCylicVoltaPairPeak = exports.addCylicVoltaPecker = exports.addCylicVoltaMinPeak = exports.addCylicVoltaMaxPeak = void 0;
var _action_type = require("../constants/action_type");
const addNewCylicVoltaPairPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.ADD_PAIR_PEAKS,
payload
});
exports.addNewCylicVoltaPairPeak = addNewCylicVoltaPairPeak;
const removeCylicVoltaPairPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_PAIR_PEAKS,
payload
});
exports.removeCylicVoltaPairPeak = removeCylicVoltaPairPeak;
const addCylicVoltaMaxPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.ADD_MAX_PEAK,
payload
});
exports.addCylicVoltaMaxPeak = addCylicVoltaMaxPeak;
const removeCylicVoltaMaxPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_MAX_PEAK,
payload
});
exports.removeCylicVoltaMaxPeak = removeCylicVoltaMaxPeak;
const addCylicVoltaMinPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.ADD_MIN_PEAK,
payload
});
exports.addCylicVoltaMinPeak = addCylicVoltaMinPeak;
const removeCylicVoltaMinPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_MIN_PEAK,
payload
});
exports.removeCylicVoltaMinPeak = removeCylicVoltaMinPeak;
const setWorkWithMaxPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.WORK_WITH_MAX_PEAK,
payload
});
exports.setWorkWithMaxPeak = setWorkWithMaxPeak;
const selectPairPeak = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.SELECT_PAIR_PEAK,
payload
});
exports.selectPairPeak = selectPairPeak;
const addCylicVoltaPecker = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.ADD_PECKER,
payload
});
exports.addCylicVoltaPecker = addCylicVoltaPecker;
const removeCylicVoltaPecker = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.REMOVE_PECKER,
payload
});
exports.removeCylicVoltaPecker = removeCylicVoltaPecker;
const selectRefPeaks = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.SELECT_REF_PEAK,
payload
});
exports.selectRefPeaks = selectRefPeaks;
const setCylicVoltaRefFactor = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.SET_FACTOR,
payload
});
exports.setCylicVoltaRefFactor = setCylicVoltaRefFactor;
const setCylicVoltaRef = payload => ({
type: _action_type.CYCLIC_VOLTA_METRY.SET_REF,
payload
});
exports.setCylicVoltaRef = setCylicVoltaRef;
14 changes: 14 additions & 0 deletions dist/actions/detector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateDetector = void 0;
var _action_type = require("../constants/action_type");
/* eslint-disable import/prefer-default-export */

const updateDetector = payload => ({
type: _action_type.SEC.UPDATE_DETECTOR,
payload
});
exports.updateDetector = updateDetector;
22 changes: 22 additions & 0 deletions dist/actions/edit_peak.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.rmFromPosList = exports.rmFromNegList = exports.clearAllPeaks = void 0;
var _action_type = require("../constants/action_type");
const rmFromPosList = payload => ({
type: _action_type.EDITPEAK.RM_POSITIVE,
payload
});
exports.rmFromPosList = rmFromPosList;
const rmFromNegList = payload => ({
type: _action_type.EDITPEAK.RM_NEGATIVE,
payload
});
exports.rmFromNegList = rmFromNegList;
const clearAllPeaks = payload => ({
type: _action_type.EDITPEAK.CLEAR_ALL,
payload
});
exports.clearAllPeaks = clearAllPeaks;
27 changes: 27 additions & 0 deletions dist/actions/forecast.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setNmrStatus = exports.setIrStatus = exports.initForecastStatus = exports.clearForecastStatus = void 0;
var _action_type = require("../constants/action_type");
const initForecastStatus = payload => ({
type: _action_type.FORECAST.INIT_STATUS,
payload
});
exports.initForecastStatus = initForecastStatus;
const setIrStatus = payload => ({
type: _action_type.FORECAST.SET_IR_STATUS,
payload
});
exports.setIrStatus = setIrStatus;
const setNmrStatus = payload => ({
type: _action_type.FORECAST.SET_NMR_STATUS,
payload
});
exports.setNmrStatus = setNmrStatus;
const clearForecastStatus = payload => ({
type: _action_type.FORECAST.CLEAR_STATUS,
payload
});
exports.clearForecastStatus = clearForecastStatus;
24 changes: 24 additions & 0 deletions dist/actions/integration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sweepIntegration = exports.setIntegrationFkr = exports.clearIntegrationAll = void 0;
var _action_type = require("../constants/action_type");
const sweepIntegration = payload => ({
type: _action_type.INTEGRATION.SWEEP,
payload
});
exports.sweepIntegration = sweepIntegration;
const setIntegrationFkr = payload => ({
type: _action_type.INTEGRATION.SET_FKR,
payload
});
exports.setIntegrationFkr = setIntegrationFkr;
const clearIntegrationAll = payload => ({
type: _action_type.INTEGRATION.CLEAR_ALL,
payload
});

// eslint-disable-line
exports.clearIntegrationAll = clearIntegrationAll;
27 changes: 27 additions & 0 deletions dist/actions/jcamp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toggleShow = exports.rmOthersOne = exports.clearAll = exports.addOthers = void 0;
var _action_type = require("../constants/action_type");
const addOthers = payload => ({
type: _action_type.JCAMP.ADD_OTHERS,
payload
});
exports.addOthers = addOthers;
const rmOthersOne = payload => ({
type: _action_type.JCAMP.RM_OTHERS_ONE,
payload
});
exports.rmOthersOne = rmOthersOne;
const toggleShow = payload => ({
type: _action_type.JCAMP.TOGGLE_SHOW,
payload
});
exports.toggleShow = toggleShow;
const clearAll = payload => ({
type: _action_type.JCAMP.CLEAR_ALL,
payload
});
exports.clearAll = clearAll;
14 changes: 14 additions & 0 deletions dist/actions/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateLayout = void 0;
var _action_type = require("../constants/action_type");
const updateLayout = payload => ({
type: _action_type.LAYOUT.UPDATE,
payload
});

// eslint-disable-line
exports.updateLayout = updateLayout;
42 changes: 42 additions & 0 deletions dist/actions/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.resetMultiplicity = exports.resetInitNmr = exports.resetInitMs = exports.resetInitCommonWithIntergation = exports.resetInitCommon = exports.resetDetector = exports.resetAll = void 0;
var _action_type = require("../constants/action_type");
const resetAll = payload => ({
type: _action_type.MANAGER.RESETALL,
payload
});
exports.resetAll = resetAll;
const resetInitCommon = payload => ({
type: _action_type.MANAGER.RESET_INIT_COMMON,
payload
});
exports.resetInitCommon = resetInitCommon;
const resetInitNmr = payload => ({
type: _action_type.MANAGER.RESET_INIT_NMR,
payload
});
exports.resetInitNmr = resetInitNmr;
const resetInitMs = payload => ({
type: _action_type.MANAGER.RESET_INIT_MS,
payload
});
exports.resetInitMs = resetInitMs;
const resetInitCommonWithIntergation = payload => ({
type: _action_type.MANAGER.RESET_INIT_COMMON_WITH_INTERGATION,
payload
});
exports.resetInitCommonWithIntergation = resetInitCommonWithIntergation;
const resetDetector = () => ({
type: _action_type.MANAGER.RESET_DETECTOR
});
exports.resetDetector = resetDetector;
const resetMultiplicity = () => ({
type: _action_type.MANAGER.RESET_MULTIPLICITY
});

// eslint-disable-line
exports.resetMultiplicity = resetMultiplicity;
17 changes: 17 additions & 0 deletions dist/actions/meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateMetaPeaks = exports.updateDSCMetaData = void 0;
var _action_type = require("../constants/action_type");
const updateMetaPeaks = payload => ({
type: _action_type.META.UPDATE_PEAKS,
payload
});
exports.updateMetaPeaks = updateMetaPeaks;
const updateDSCMetaData = payload => ({
type: _action_type.META.UPDATE_META_DATA,
payload
});
exports.updateDSCMetaData = updateDSCMetaData;
39 changes: 39 additions & 0 deletions dist/actions/multiplicity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateMpyJ = exports.selectMpyType = exports.rmMpyPeakByPanel = exports.resetMpyOne = exports.clickMpyOne = exports.clearMpyAll = void 0;
var _action_type = require("../constants/action_type");
const clickMpyOne = payload => ({
type: _action_type.MULTIPLICITY.ONE_CLICK,
payload
});
exports.clickMpyOne = clickMpyOne;
const rmMpyPeakByPanel = payload => ({
type: _action_type.MULTIPLICITY.PEAK_RM_BY_PANEL,
payload
});
exports.rmMpyPeakByPanel = rmMpyPeakByPanel;
const selectMpyType = payload => ({
type: _action_type.MULTIPLICITY.TYPE_SELECT,
payload
});
exports.selectMpyType = selectMpyType;
const clearMpyAll = payload => ({
type: _action_type.MULTIPLICITY.CLEAR_ALL,
payload
});
exports.clearMpyAll = clearMpyAll;
const resetMpyOne = payload => ({
type: _action_type.MULTIPLICITY.RESET_ONE,
payload
});
exports.resetMpyOne = resetMpyOne;
const updateMpyJ = payload => ({
type: _action_type.MULTIPLICITY.UPDATE_J,
payload
});

// eslint-disable-line
exports.updateMpyJ = updateMpyJ;
22 changes: 22 additions & 0 deletions dist/actions/scan.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toggleScanIsAuto = exports.setScanTarget = exports.resetScanTarget = void 0;
var _action_type = require("../constants/action_type");
const setScanTarget = payload => ({
type: _action_type.SCAN.SET_TARGET,
payload
});
exports.setScanTarget = setScanTarget;
const resetScanTarget = () => ({
type: _action_type.SCAN.SET_TARGET,
payload: false
});
exports.resetScanTarget = resetScanTarget;
const toggleScanIsAuto = payload => ({
type: _action_type.SCAN.TOGGLE_ISAUTO,
payload
});
exports.toggleScanIsAuto = toggleScanIsAuto;
Loading
Loading