summaryrefslogtreecommitdiff
path: root/src/views/Overview
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2019-12-20 22:26:53 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-01-29 01:18:05 +0300
commite2fd156773dbc2e919c912673de092d707e8ef69 (patch)
tree5b861f723e71156def2a096d0542de96841ee27a /src/views/Overview
parentf65ee346bedb1811e88b12542abce0d18bb5fc32 (diff)
downloadwebui-vue-e2fd156773dbc2e919c912673de092d707e8ef69.tar.xz
Fix linting in script blocks in vue files
- Removed the .eslintrc and added the pretteri rules to the eslintrc file - Ran `npm run lint --fix` Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4e36c1967ae9b4d839ef88f1d47ffa20ab4e4991
Diffstat (limited to 'src/views/Overview')
-rw-r--r--src/views/Overview/Overview.vue24
-rw-r--r--src/views/Overview/OverviewEvents.vue12
-rw-r--r--src/views/Overview/OverviewQuickLinks.vue10
3 files changed, 23 insertions, 23 deletions
diff --git a/src/views/Overview/Overview.vue b/src/views/Overview/Overview.vue
index 570f8494..2672af7e 100644
--- a/src/views/Overview/Overview.vue
+++ b/src/views/Overview/Overview.vue
@@ -87,13 +87,13 @@
</template>
<script>
-import OverviewQuickLinks from "./OverviewQuickLinks";
-import OverviewEvents from "./OverviewEvents";
-import PageTitle from "../../components/Global/PageTitle";
-import PageSection from "../../components/Global/PageSection";
-import { mapState } from "vuex";
+import OverviewQuickLinks from './OverviewQuickLinks';
+import OverviewEvents from './OverviewEvents';
+import PageTitle from '../../components/Global/PageTitle';
+import PageSection from '../../components/Global/PageSection';
+import { mapState } from 'vuex';
export default {
- name: "Overview",
+ name: 'Overview',
components: {
OverviewQuickLinks,
OverviewEvents,
@@ -117,12 +117,12 @@ export default {
}),
methods: {
getOverviewInfo() {
- this.$store.dispatch("overview/getServerInfo");
- this.$store.dispatch("global/getHostName");
- this.$store.dispatch("firmware/getFirmwareInfo");
- this.$store.dispatch("powerConsumption/getPowerData");
- this.$store.dispatch("powerCap/getPowerCapData");
- this.$store.dispatch("networkSettings/getNetworkData");
+ this.$store.dispatch('overview/getServerInfo');
+ this.$store.dispatch('global/getHostName');
+ this.$store.dispatch('firmware/getFirmwareInfo');
+ this.$store.dispatch('powerConsumption/getPowerData');
+ this.$store.dispatch('powerCap/getPowerCapData');
+ this.$store.dispatch('networkSettings/getNetworkData');
}
}
};
diff --git a/src/views/Overview/OverviewEvents.vue b/src/views/Overview/OverviewEvents.vue
index 05106067..07aab1d5 100644
--- a/src/views/Overview/OverviewEvents.vue
+++ b/src/views/Overview/OverviewEvents.vue
@@ -2,11 +2,11 @@
<div>
<b-list-group v-for="logData in eventLogData" :key="logData.id">
<b-list-group-item href="#" class="flex-column align-items-start">
- {{ "#" + logData.logId }}
+ {{ '#' + logData.logId }}
<b-badge variant="danger">{{ logData.priority }}</b-badge>
<div class="d-flex w-100 justify-content-between">
<small>{{
- logData.Timestamp | date("MMM DD YYYY HH:MM:SS A ZZ")
+ logData.Timestamp | date('MMM DD YYYY HH:MM:SS A ZZ')
}}</small>
<ChevronRight16 />
</div>
@@ -20,9 +20,9 @@
</template>
<script>
-import ChevronRight16 from "@carbon/icons-vue/es/chevron--right/16";
+import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16';
export default {
- name: "events",
+ name: 'events',
components: {
ChevronRight16
},
@@ -31,12 +31,12 @@ export default {
},
computed: {
eventLogData() {
- return this.$store.getters["eventLog/eventLogData"];
+ return this.$store.getters['eventLog/eventLogData'];
}
},
methods: {
getEventLogData() {
- this.$store.dispatch("eventLog/getEventLogData");
+ this.$store.dispatch('eventLog/getEventLogData');
}
}
};
diff --git a/src/views/Overview/OverviewQuickLinks.vue b/src/views/Overview/OverviewQuickLinks.vue
index 577ea5ff..726eaf7d 100644
--- a/src/views/Overview/OverviewQuickLinks.vue
+++ b/src/views/Overview/OverviewQuickLinks.vue
@@ -4,7 +4,7 @@
<b-list-group-item>
<dl>
<dt>BMC time</dt>
- <dd>{{ bmcTime | date("MMM, DD YYYY HH:MM:SS A ZZ") }}</dd>
+ <dd>{{ bmcTime | date('MMM, DD YYYY HH:MM:SS A ZZ') }}</dd>
</dl>
</b-list-group-item>
<b-list-group-item>
@@ -35,9 +35,9 @@
</template>
<script>
-import ChevronRight16 from "@carbon/icons-vue/es/chevron--right/16";
+import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16';
export default {
- name: "quickLinks",
+ name: 'quickLinks',
components: {
ChevronRight16
},
@@ -46,12 +46,12 @@ export default {
},
computed: {
bmcTime() {
- return this.$store.getters["global/bmcTime"];
+ return this.$store.getters['global/bmcTime'];
}
},
methods: {
getBmcTime() {
- this.$store.dispatch("global/getBmcTime");
+ this.$store.dispatch('global/getBmcTime');
}
},
data() {