diff options
author | Derick Montague <derick.montague@ibm.com> | 2020-10-22 00:20:00 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-11-03 19:47:51 +0300 |
commit | 602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (patch) | |
tree | 2894194868ff987718a8b19f112b8106d662aa83 /src/components/AppNavigation | |
parent | 47165201c79b3d2c4ccc62a49a9c75d038ee8fe6 (diff) | |
download | webui-vue-602e98aa32f82fd3b0c3d250c7cc1f8da971db24.tar.xz |
Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the
lint command. There were a couple of small manual changes to meet the
property order patterns established as part of the vue:recommended
guidelines.
There are rules that were set from errors to warnings and new stories
are being opened to address those issues.
Testing:
- Successfully ran npm run serve
- Successfully ran npm run lint
- Verified functionality works as expected, e.g. success and failure use cases
- Resolved any JavaScript errors thrown to the console
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
Diffstat (limited to 'src/components/AppNavigation')
-rw-r--r-- | src/components/AppNavigation/AppNavigation.vue | 12 | ||||
-rw-r--r-- | src/components/AppNavigation/AppNavigationMixin.js | 60 |
2 files changed, 36 insertions, 36 deletions
diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue index 5d8a17f5..18b80000 100644 --- a/src/components/AppNavigation/AppNavigation.vue +++ b/src/components/AppNavigation/AppNavigation.vue @@ -63,16 +63,16 @@ export default { mixins: [AppNavigationMixin], data() { return { - isNavigationOpen: false + isNavigationOpen: false, }; }, watch: { - $route: function() { + $route: function () { this.isNavigationOpen = false; }, - isNavigationOpen: function(isNavigationOpen) { + isNavigationOpen: function (isNavigationOpen) { this.$root.$emit('change:isNavigationOpen', isNavigationOpen); - } + }, }, mounted() { this.$root.$on('toggle:navigation', () => this.toggleIsOpen()); @@ -80,8 +80,8 @@ export default { methods: { toggleIsOpen() { this.isNavigationOpen = !this.isNavigationOpen; - } - } + }, + }, }; </script> diff --git a/src/components/AppNavigation/AppNavigationMixin.js b/src/components/AppNavigation/AppNavigationMixin.js index 498d6ca1..cf34b914 100644 --- a/src/components/AppNavigation/AppNavigationMixin.js +++ b/src/components/AppNavigation/AppNavigationMixin.js @@ -12,7 +12,7 @@ const AppNavigationMixin = { iconControl: IconSettingsAdjust, iconConfiguration: IconSettings, iconAccessControl: IconPassword, - iconExpand: IconChevronUp + iconExpand: IconChevronUp, }, data() { return { @@ -21,7 +21,7 @@ const AppNavigationMixin = { id: 'overview', label: this.$t('appNavigation.overview'), route: '/', - icon: 'iconOverview' + icon: 'iconOverview', }, { id: 'health', @@ -31,19 +31,19 @@ const AppNavigationMixin = { { id: 'event-logs', label: this.$t('appNavigation.eventLogs'), - route: '/health/event-logs' + route: '/health/event-logs', }, { id: 'hardware-status', label: this.$t('appNavigation.hardwareStatus'), - route: '/health/hardware-status' + route: '/health/hardware-status', }, { id: 'sensors', label: this.$t('appNavigation.sensors'), - route: '/health/sensors' - } - ] + route: '/health/sensors', + }, + ], }, { id: 'control', @@ -53,39 +53,39 @@ const AppNavigationMixin = { { id: 'kvm', label: this.$t('appNavigation.kvm'), - route: '/control/kvm' + route: '/control/kvm', }, { id: 'manage-power-usage', label: this.$t('appNavigation.managePowerUsage'), - route: '/control/manage-power-usage' + route: '/control/manage-power-usage', }, { id: 'reboot-bmc', label: this.$t('appNavigation.rebootBmc'), - route: '/control/reboot-bmc' + route: '/control/reboot-bmc', }, { id: 'serial-over-lan', label: this.$t('appNavigation.serialOverLan'), - route: '/control/serial-over-lan' + route: '/control/serial-over-lan', }, { id: 'server-led', label: this.$t('appNavigation.serverLed'), - route: '/control/server-led' + route: '/control/server-led', }, { id: 'server-power-operations', label: this.$t('appNavigation.serverPowerOperations'), - route: '/control/server-power-operations' + route: '/control/server-power-operations', }, { id: 'virtual-media', label: this.$t('appNavigation.virtualMedia'), - route: '/control/virtual-media' - } - ] + route: '/control/virtual-media', + }, + ], }, { id: 'configuration', @@ -95,24 +95,24 @@ const AppNavigationMixin = { { id: 'date-time-settings', label: this.$t('appNavigation.dateTimeSettings'), - route: '/configuration/date-time-settings' + route: '/configuration/date-time-settings', }, { id: 'firmware', label: this.$t('appNavigation.firmware'), - route: '/configuration/firmware' + route: '/configuration/firmware', }, { id: 'network-settings', label: this.$t('appNavigation.networkSettings'), - route: '/configuration/network-settings' + route: '/configuration/network-settings', }, { id: 'snmp-settings', label: this.$t('appNavigation.snmpSettings'), - route: '' - } - ] + route: '', + }, + ], }, { id: 'access-control', @@ -122,23 +122,23 @@ const AppNavigationMixin = { { id: 'ldap', label: this.$t('appNavigation.ldap'), - route: '/access-control/ldap' + route: '/access-control/ldap', }, { id: 'local-user-management', label: this.$t('appNavigation.localUserManagement'), - route: '/access-control/local-user-management' + route: '/access-control/local-user-management', }, { id: 'ssl-certificates', label: this.$t('appNavigation.sslCertificates'), - route: '/access-control/ssl-certificates' - } - ] - } - ] + route: '/access-control/ssl-certificates', + }, + ], + }, + ], }; - } + }, }; export default AppNavigationMixin; |