From 1a88912340f70d1a25d965dc6c60ee0ffc516df8 Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Fri, 1 Jul 2022 14:50:02 +0300 Subject: code clean --- src/components/Mixins/TableFilterMixin.js | 2 -- src/store/modules/HardwareStatus/SensorsStore.js | 3 --- src/views/Fans/StaticInformation/FansStaticPage.vue | 7 ------- src/views/HardwareStatus/Sensors/Sensors.vue | 7 ------- 4 files changed, 19 deletions(-) (limited to 'src') diff --git a/src/components/Mixins/TableFilterMixin.js b/src/components/Mixins/TableFilterMixin.js index 4c3b4334..7a2cc540 100644 --- a/src/components/Mixins/TableFilterMixin.js +++ b/src/components/Mixins/TableFilterMixin.js @@ -7,7 +7,6 @@ const TableFilterMixin = { return [...arr, ...filter.values]; }, []); // If no filters are active, then return all table data - console.log('tableData!', tableData); if (filterItems.length === 0) return tableData; // Check if row property value is included in list of @@ -21,7 +20,6 @@ const TableFilterMixin = { break; } } - console.log('returnRow!', returnRow); return returnRow; }); }, diff --git a/src/store/modules/HardwareStatus/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js index ecf2c401..287796d9 100644 --- a/src/store/modules/HardwareStatus/SensorsStore.js +++ b/src/store/modules/HardwareStatus/SensorsStore.js @@ -16,7 +16,6 @@ const SensorsStore = { }, actions: { async getAllSensors({ dispatch }) { - console.log('getAllSensors@@@'); const collection = await dispatch('getChassisCollection'); if (!collection) return; const promises = collection.reduce((acc, id) => { @@ -36,12 +35,10 @@ const SensorsStore = { .catch((error) => console.log(error)); }, async getSensors({ commit }, id) { - console.log('getSensors@@@'); const sensors = await api .get(`${id}/Sensors`) .then((response) => response.data.Members) .catch((error) => console.log(error)); - console.log('sensors@@@', sensors); if (!sensors) return; const promises = sensors.map((sensor) => { return api.get(sensor['@odata.id']).catch((error) => { diff --git a/src/views/Fans/StaticInformation/FansStaticPage.vue b/src/views/Fans/StaticInformation/FansStaticPage.vue index 041046c1..6b071e87 100644 --- a/src/views/Fans/StaticInformation/FansStaticPage.vue +++ b/src/views/Fans/StaticInformation/FansStaticPage.vue @@ -119,13 +119,6 @@ export default { }, filteredSensors() { - console.log('wow!'); - console.log('this.allSensors!', this.allSensors); - console.log('this.activeFilters!', this.activeFilters); - console.log( - 'eeeeeeeeeeeeeee!', - this.getFilteredTableData(this.allSensors, this.activeFilters) - ); return this.getFilteredTableData(this.allSensors, this.activeFilters); }, }, diff --git a/src/views/HardwareStatus/Sensors/Sensors.vue b/src/views/HardwareStatus/Sensors/Sensors.vue index b5ccb42f..6329d9d8 100644 --- a/src/views/HardwareStatus/Sensors/Sensors.vue +++ b/src/views/HardwareStatus/Sensors/Sensors.vue @@ -217,13 +217,6 @@ export default { : this.filteredSensors.length; }, filteredSensors() { - console.log('wow!'); - console.log('this.allSensors!', this.allSensors); - console.log('this.activeFilters!', this.activeFilters); - console.log( - 'eeeeeeeeeeeeeee!', - this.getFilteredTableData(this.allSensors, this.activeFilters) - ); return this.getFilteredTableData(this.allSensors, this.activeFilters); }, }, -- cgit v1.2.3