From 09e45cd4f5e233d4ec75c086dd7ab912a2f79a41 Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Thu, 23 Jan 2020 15:45:57 -0600 Subject: Change eslint rules to use vue recommended MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resubmitting after reverted–original commit here https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/28763/7 - Ran npm run lint - Resolved eslint issues Signed-off-by: Derick Montague Change-Id: I2b8b9244acddd483d0a72f9a5d156a79de9869a0 --- src/components/AppHeader/AppHeader.vue | 6 ++--- src/components/AppNavigation/AppNavigation.vue | 8 +++--- src/components/Global/PageSection.vue | 7 ++++- src/components/Global/PageTitle.vue | 7 ++++- src/components/Global/StatusIcon.vue | 7 ++++- src/layouts/AppLayout.vue | 8 +++--- .../LocalUserManagement/LocalUserManagement.vue | 12 ++++----- .../LocalUserManagement/ModalSettings.vue | 7 ++++- .../LocalUserManagement/ModalUser.vue | 13 +++++++--- .../LocalUserManagement/TableRoles.vue | 8 +++--- src/views/Login/Login.vue | 12 ++++----- src/views/Overview/Overview.vue | 30 +++++++++++----------- src/views/Overview/OverviewEvents.vue | 10 ++++---- src/views/Overview/OverviewQuickLinks.vue | 20 +++++++-------- src/views/Unauthorized/Unauthorized.vue | 2 +- 15 files changed, 91 insertions(+), 66 deletions(-) (limited to 'src') diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue index 5c2c333c..b2d29c95 100644 --- a/src/components/AppHeader/AppHeader.vue +++ b/src/components/AppHeader/AppHeader.vue @@ -42,9 +42,6 @@ import StatusIcon from '../Global/StatusIcon'; export default { name: 'AppHeader', components: { IconAvatar, IconRenew, StatusIcon }, - created() { - this.getHostInfo(); - }, computed: { hostStatus() { return this.$store.getters['global/hostStatus']; @@ -61,6 +58,9 @@ export default { } } }, + created() { + this.getHostInfo(); + }, methods: { getHostInfo() { this.$store.dispatch('global/getHostStatus'); diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue index c246b537..47609d96 100644 --- a/src/components/AppNavigation/AppNavigation.vue +++ b/src/components/AppNavigation/AppNavigation.vue @@ -7,7 +7,7 @@ Health - + Event Log Hardware Status Sensors @@ -19,7 +19,7 @@ Control - + Server power operations @@ -33,7 +33,7 @@ Configuration - + Network settings SNMP settings Firmware @@ -45,7 +45,7 @@ Access Control - + LDAP Local user management diff --git a/src/components/Global/PageSection.vue b/src/components/Global/PageSection.vue index 678fd31d..03040b29 100644 --- a/src/components/Global/PageSection.vue +++ b/src/components/Global/PageSection.vue @@ -8,7 +8,12 @@ diff --git a/src/components/Global/PageTitle.vue b/src/components/Global/PageTitle.vue index 02314249..26588ca7 100644 --- a/src/components/Global/PageTitle.vue +++ b/src/components/Global/PageTitle.vue @@ -8,7 +8,12 @@ diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue index e5a55018..e1bb4103 100644 --- a/src/layouts/AppLayout.vue +++ b/src/layouts/AppLayout.vue @@ -1,15 +1,15 @@