summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2022-09-13 23:45:44 +0530
committerSunil Shetye2022-09-13 23:45:44 +0530
commitf67eccd4a589d69fcc644d006283ed50553cbdec (patch)
tree1cb112d4cacd0411d015beaff80afde535637faa
parent1d5c5d45533f25fbc1adf559a0aba65e3b64d3b7 (diff)
downloadCommon-Interface-Project-f67eccd4a589d69fcc644d006283ed50553cbdec.tar.gz
Common-Interface-Project-f67eccd4a589d69fcc644d006283ed50553cbdec.tar.bz2
Common-Interface-Project-f67eccd4a589d69fcc644d006283ed50553cbdec.zip
fix js syntax
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js10
-rw-r--r--blocks/eda-frontend/src/redux/actions/authActions.js10
-rw-r--r--blocks/eda-frontend/src/redux/actions/componentPropertiesActions.js4
-rw-r--r--blocks/eda-frontend/src/redux/actions/netlistActions.js6
-rw-r--r--blocks/eda-frontend/src/redux/actions/saveSchematicActions.js8
-rw-r--r--blocks/eda-frontend/src/redux/actions/schematicEditorActions.js2
-rw-r--r--blocks/eda-frontend/src/redux/actions/simulationActions.js8
-rw-r--r--blocks/eda-frontend/src/redux/reducers/schematicEditorReducer.js2
-rw-r--r--blocks/eda-frontend/src/utils/Sigbuilder-graph.js2
10 files changed, 27 insertions, 27 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
index 9d37347f..7236a822 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
@@ -326,7 +326,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) {
setMessage('Unsupported app name error !')
handleSnacClick()
} else {
- const obj = { data_dump: dataDump, title: title, description: description }
+ const obj = { data_dump: dataDump, title, description }
if (obj.data_dump === undefined || obj.title === undefined || obj.description === undefined) {
setMessage('Unsupported file error !')
handleSnacClick()
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
index 86ccf84a..36c2f10c 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
@@ -201,8 +201,8 @@ export default function SimulationScreen ({ open, close }) {
zoomtype: 'xy',
options3d: {
enabled: true,
- alpha: alpha,
- beta: beta,
+ alpha,
+ beta,
depth: 100,
viewDistance: 100,
frame: {
@@ -278,16 +278,16 @@ export default function SimulationScreen ({ open, close }) {
enabled: false
},
series: {
- lineWidth: lineWidth,
+ lineWidth,
states: {
hover: {
- lineWidth: lineWidth
+ lineWidth
}
}
},
scatter: {
marker: {
- radius: radius,
+ radius,
states: {
hover: {
enabled: true,
diff --git a/blocks/eda-frontend/src/redux/actions/authActions.js b/blocks/eda-frontend/src/redux/actions/authActions.js
index 28ba384e..889fe085 100644
--- a/blocks/eda-frontend/src/redux/actions/authActions.js
+++ b/blocks/eda-frontend/src/redux/actions/authActions.js
@@ -58,8 +58,8 @@ export const loadUser = () => (dispatch, getState) => {
// Handle api call for user login
export const login = (username, password, toUrl) => {
const body = {
- password: password,
- username: username
+ password,
+ username
}
return function (dispatch) {
@@ -107,9 +107,9 @@ export const login = (username, password, toUrl) => {
// Handle api call for user sign up
export const signUp = (email, username, password, history) => (dispatch) => {
const body = {
- email: email,
- username: username,
- password: password
+ email,
+ username,
+ password
}
// add headers
diff --git a/blocks/eda-frontend/src/redux/actions/componentPropertiesActions.js b/blocks/eda-frontend/src/redux/actions/componentPropertiesActions.js
index 60b1dcf2..602dbf6f 100644
--- a/blocks/eda-frontend/src/redux/actions/componentPropertiesActions.js
+++ b/blocks/eda-frontend/src/redux/actions/componentPropertiesActions.js
@@ -10,7 +10,7 @@ export const getCompProperties = (block) => (dispatch) => {
dispatch({
type: actions.GET_COMP_PROPERTIES,
payload: {
- block: block,
+ block,
name: block.style,
parameter_values: block.parameter_values,
compProperties: res.data[0]
@@ -33,7 +33,7 @@ export const setCompProperties = (block, parameterValues) => (dispatch) => {
dispatch({
type: actions.SET_COMP_PROPERTIES,
payload: {
- block: block,
+ block,
parameter_values: parameterValues,
displayProperties: res.data
}
diff --git a/blocks/eda-frontend/src/redux/actions/netlistActions.js b/blocks/eda-frontend/src/redux/actions/netlistActions.js
index d5657147..bc703f7b 100644
--- a/blocks/eda-frontend/src/redux/actions/netlistActions.js
+++ b/blocks/eda-frontend/src/redux/actions/netlistActions.js
@@ -5,7 +5,7 @@ export const setNetlist = (netlist) => (dispatch) => {
dispatch({
type: actions.SET_NETLIST,
payload: {
- netlist: netlist
+ netlist
}
})
}
@@ -15,7 +15,7 @@ export const setTitle = (title) => (dispatch) => {
dispatch({
type: actions.SET_TITLE,
payload: {
- title: title
+ title
}
})
}
@@ -25,7 +25,7 @@ export const setModel = (model) => (dispatch) => {
dispatch({
type: actions.SET_MODEL,
payload: {
- model: model
+ model
}
})
}
diff --git a/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js b/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
index e2c2ec45..c9236805 100644
--- a/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
+++ b/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
@@ -9,7 +9,7 @@ export const setSchTitle = (title) => (dispatch) => {
dispatch({
type: actions.SET_SCH_TITLE,
payload: {
- title: title
+ title
}
})
}
@@ -18,7 +18,7 @@ export const setSchDescription = (description) => (dispatch) => {
dispatch({
type: actions.SET_SCH_DESCRIPTION,
payload: {
- description: description
+ description
}
})
}
@@ -27,7 +27,7 @@ export const setSchXmlData = (xmlData) => (dispatch) => {
dispatch({
type: actions.SET_SCH_XML_DATA,
payload: {
- xmlData: xmlData
+ xmlData
}
})
}
@@ -38,7 +38,7 @@ export const saveSchematic = (title, description, xml, base64) => (dispatch, get
data_dump: xml,
base64_image: base64,
name: title,
- description: description
+ description
}
// Get token from localstorage
diff --git a/blocks/eda-frontend/src/redux/actions/schematicEditorActions.js b/blocks/eda-frontend/src/redux/actions/schematicEditorActions.js
index 9351246b..d9f61d48 100644
--- a/blocks/eda-frontend/src/redux/actions/schematicEditorActions.js
+++ b/blocks/eda-frontend/src/redux/actions/schematicEditorActions.js
@@ -84,7 +84,7 @@ export const fetchComponentImages = () => (dispatch) => {
export const toggleCollapse = (id) => (dispatch) => {
dispatch({
type: actions.TOGGLE_COLLAPSE,
- payload: { id: id }
+ payload: { id }
})
}
diff --git a/blocks/eda-frontend/src/redux/actions/simulationActions.js b/blocks/eda-frontend/src/redux/actions/simulationActions.js
index 530a6c50..f2d249a5 100644
--- a/blocks/eda-frontend/src/redux/actions/simulationActions.js
+++ b/blocks/eda-frontend/src/redux/actions/simulationActions.js
@@ -5,7 +5,7 @@ export const setResultTitle = (title) => (dispatch) => {
dispatch({
type: actions.SET_RESULT_TITLE,
payload: {
- title: title
+ title
}
})
}
@@ -15,7 +15,7 @@ export const setResultGraph = (graph) => (dispatch) => {
dispatch({
type: actions.SET_RESULT_GRAPH,
payload: {
- graph: graph
+ graph
}
})
}
@@ -25,7 +25,7 @@ export const setResultText = (text) => (dispatch) => {
dispatch({
type: actions.SET_RESULT_TEXT,
payload: {
- text: text
+ text
}
})
}
@@ -35,7 +35,7 @@ export const setResultTaskId = (taskId) => (dispatch) => {
dispatch({
type: actions.SET_RESULT_TASK_ID,
payload: {
- taskId: taskId
+ taskId
}
})
}
diff --git a/blocks/eda-frontend/src/redux/reducers/schematicEditorReducer.js b/blocks/eda-frontend/src/redux/reducers/schematicEditorReducer.js
index 0b20503c..540974df 100644
--- a/blocks/eda-frontend/src/redux/reducers/schematicEditorReducer.js
+++ b/blocks/eda-frontend/src/redux/reducers/schematicEditorReducer.js
@@ -17,7 +17,7 @@ export default function schematicEditorReducer (state = InitialState, action) {
collapse[element.id] = false
components[element.id] = []
})
- return { ...state, libraries: action.payload, collapse: collapse, components: components }
+ return { ...state, libraries: action.payload, collapse, components }
}
case actions.TOGGLE_COLLAPSE: {
diff --git a/blocks/eda-frontend/src/utils/Sigbuilder-graph.js b/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
index 30bde79c..e8524726 100644
--- a/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
+++ b/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
@@ -109,7 +109,7 @@ function createDraggablePointsChartSigbuilder (graphParameters, pointsHistory, x
draggableY: true,
showInLegend: false,
data: graphParameters.graphPoints,
- step: step,
+ step,
name: stepname
}]
})