Reformat files with new linter
All changes should be whitespace, and were done using npm run-script
lint.
Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/store/modules/HardwareStatus/AssemblyStore.js b/src/store/modules/HardwareStatus/AssemblyStore.js
index fe97a9c..c6ab7cf 100644
--- a/src/store/modules/HardwareStatus/AssemblyStore.js
+++ b/src/store/modules/HardwareStatus/AssemblyStore.js
@@ -61,7 +61,7 @@
throw new Error(i18n.t('pageInventory.toast.errorEnableIdentifyLed'));
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/BmcStore.js b/src/store/modules/HardwareStatus/BmcStore.js
index c042a83..f225e92 100644
--- a/src/store/modules/HardwareStatus/BmcStore.js
+++ b/src/store/modules/HardwareStatus/BmcStore.js
@@ -64,11 +64,11 @@
console.log('error', error);
if (led.identifyLed) {
throw new Error(
- i18n.t('pageInventory.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed'),
);
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/ChassisStore.js b/src/store/modules/HardwareStatus/ChassisStore.js
index 97930d2..6f2d74a 100644
--- a/src/store/modules/HardwareStatus/ChassisStore.js
+++ b/src/store/modules/HardwareStatus/ChassisStore.js
@@ -56,7 +56,7 @@
return await api
.get('/redfish/v1/Chassis')
.then(({ data: { Members = [] } }) =>
- Members.map((member) => api.get(member['@odata.id']))
+ Members.map((member) => api.get(member['@odata.id'])),
)
.then((promises) => api.all(promises))
.then((response) => {
@@ -78,11 +78,11 @@
console.log('error', error);
if (led.identifyLed) {
throw new Error(
- i18n.t('pageInventory.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed'),
);
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/FanStore.js b/src/store/modules/HardwareStatus/FanStore.js
index 832ef63..104f845 100644
--- a/src/store/modules/HardwareStatus/FanStore.js
+++ b/src/store/modules/HardwareStatus/FanStore.js
@@ -64,9 +64,9 @@
.then(({ data: { Members } }) =>
api.all(
Members.map((member) =>
- api.get(member['@odata.id']).then((response) => response.data)
- )
- )
+ api.get(member['@odata.id']).then((response) => response.data),
+ ),
+ ),
)
.catch((error) => console.log(error));
},
@@ -91,7 +91,7 @@
})
.then(({ data: { Members } }) => {
const promises = Members.map((member) =>
- api.get(member['@odata.id'])
+ api.get(member['@odata.id']),
);
return api.all(promises);
})
diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js
index 81996a7..86b77c0 100644
--- a/src/store/modules/HardwareStatus/MemoryStore.js
+++ b/src/store/modules/HardwareStatus/MemoryStore.js
@@ -80,7 +80,7 @@
throw new Error(i18n.t('pageInventory.toast.errorEnableIdentifyLed'));
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/PowerSupplyStore.js b/src/store/modules/HardwareStatus/PowerSupplyStore.js
index dc7691d..82b7174 100644
--- a/src/store/modules/HardwareStatus/PowerSupplyStore.js
+++ b/src/store/modules/HardwareStatus/PowerSupplyStore.js
@@ -50,7 +50,7 @@
return await api
.get('/redfish/v1/Chassis')
.then(({ data: { Members } }) =>
- Members.map((member) => member['@odata.id'])
+ Members.map((member) => member['@odata.id']),
)
.catch((error) => console.log(error));
},
@@ -62,7 +62,7 @@
.then((supplies) => {
let suppliesList = [];
supplies.forEach(
- (supply) => (suppliesList = [...suppliesList, ...supply])
+ (supply) => (suppliesList = [...suppliesList, ...supply]),
);
commit('setPowerSupply', suppliesList);
})
diff --git a/src/store/modules/HardwareStatus/ProcessorStore.js b/src/store/modules/HardwareStatus/ProcessorStore.js
index d4c99bc..29fb998 100644
--- a/src/store/modules/HardwareStatus/ProcessorStore.js
+++ b/src/store/modules/HardwareStatus/ProcessorStore.js
@@ -65,7 +65,7 @@
return await api
.get('/redfish/v1/Systems/system/Processors')
.then(({ data: { Members = [] } }) =>
- Members.map((member) => api.get(member['@odata.id']))
+ Members.map((member) => api.get(member['@odata.id'])),
)
.then((promises) => api.all(promises))
.then((response) => {
@@ -88,7 +88,7 @@
throw new Error(i18n.t('pageInventory.toast.errorEnableIdentifyLed'));
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js
index 32bf13b..5d1ac42 100644
--- a/src/store/modules/HardwareStatus/SensorsStore.js
+++ b/src/store/modules/HardwareStatus/SensorsStore.js
@@ -34,7 +34,7 @@
return await api
.get('/redfish/v1/Chassis')
.then(({ data: { Members } }) =>
- Members.map((member) => member['@odata.id'])
+ Members.map((member) => member['@odata.id']),
)
.catch((error) => console.log(error));
},
diff --git a/src/store/modules/HardwareStatus/ServerLedStore.js b/src/store/modules/HardwareStatus/ServerLedStore.js
index 028a6f7..af22802 100644
--- a/src/store/modules/HardwareStatus/ServerLedStore.js
+++ b/src/store/modules/HardwareStatus/ServerLedStore.js
@@ -21,7 +21,7 @@
.then((response) => {
commit(
'setIndicatorLedActiveState',
- response.data.LocationIndicatorActive
+ response.data.LocationIndicatorActive,
);
})
.catch((error) => console.log(error));
@@ -37,11 +37,11 @@
commit('setIndicatorLedActiveState', !payload);
if (payload) {
throw new Error(
- i18n.t('pageInventory.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed'),
);
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});
diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
index ddf0e20..f138234 100644
--- a/src/store/modules/HardwareStatus/SystemStore.js
+++ b/src/store/modules/HardwareStatus/SystemStore.js
@@ -39,7 +39,7 @@
return await api
.get('/redfish/v1')
.then((response) =>
- api.get(`${response.data.Systems['@odata.id']}/system`)
+ api.get(`${response.data.Systems['@odata.id']}/system`),
)
.then(({ data }) => commit('setSystemInfo', data))
.catch((error) => console.log(error));
@@ -54,11 +54,11 @@
console.log('error', error);
if (ledState) {
throw new Error(
- i18n.t('pageInventory.toast.errorEnableIdentifyLed')
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed'),
);
} else {
throw new Error(
- i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed'),
);
}
});