summaryrefslogtreecommitdiff
path: root/src/env/components
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2020-10-22 00:20:00 +0300
committerDerick Montague <derick.montague@ibm.com>2020-11-03 19:47:51 +0300
commit602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (patch)
tree2894194868ff987718a8b19f112b8106d662aa83 /src/env/components
parent47165201c79b3d2c4ccc62a49a9c75d038ee8fe6 (diff)
downloadwebui-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/env/components')
-rw-r--r--src/env/components/AppNavigation/ibm.js56
-rw-r--r--src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue50
-rw-r--r--src/env/components/FirmwareSingleImage/FirmwareSingleImageModalRebootBackup.vue8
3 files changed, 57 insertions, 57 deletions
diff --git a/src/env/components/AppNavigation/ibm.js b/src/env/components/AppNavigation/ibm.js
index 1f25230a..a9870d3b 100644
--- a/src/env/components/AppNavigation/ibm.js
+++ b/src/env/components/AppNavigation/ibm.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,29 +53,29 @@ const AppNavigationMixin = {
{
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: 'configuration',
@@ -85,24 +85,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',
@@ -112,23 +112,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;
diff --git a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue b/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
index 3ad717e5..03f5af4c 100644
--- a/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
+++ b/src/env/components/FirmwareSingleImage/FirmwareSingleImage.vue
@@ -13,7 +13,7 @@
{{ $t('pageFirmware.alert.serverShutdownRequiredBeforeUpdate') }}
</p>
{{ $t('pageFirmware.alert.serverShutdownRequiredInfo') }}
- <template v-slot:action>
+ <template #action>
<b-btn variant="link" class="text-nowrap" @click="onClickShutDown">
{{ $t('pageFirmware.alert.shutDownServer') }}
</b-btn>
@@ -26,7 +26,7 @@
<b-card-group deck>
<!-- Current FW -->
<b-card header-bg-variant="success">
- <template v-slot:header>
+ <template #header>
<dl class="mb-0">
<dt>{{ $t('pageFirmware.current') }}</dt>
<dd class="mb-0">{{ systemFirmwareVersion }}</dd>
@@ -58,7 +58,7 @@
<!-- Backup FW -->
<b-card>
- <template v-slot:header>
+ <template #header>
<dl class="mb-0">
<dt>{{ $t('pageFirmware.backup') }}</dt>
<dd class="mb-0">{{ backupFirmwareVersion }}</dd>
@@ -226,7 +226,7 @@ export default {
ModalRebootBackup,
ModalUpload,
PageSection,
- PageTitle
+ PageTitle,
},
mixins: [BVToastMixin, LoadingBarMixin, VuelidateMixin],
data() {
@@ -235,7 +235,7 @@ export default {
file: null,
tftpIpAddress: null,
tftpFileName: null,
- timeoutId: null
+ timeoutId: null,
};
},
computed: {
@@ -252,26 +252,26 @@ export default {
'backupFirmwareStatus',
'backupFirmwareVersion',
'isRebootFromBackupAvailable',
- 'systemFirmwareVersion'
+ 'systemFirmwareVersion',
]),
isPageDisabled() {
return !this.isHostOff || this.loading || this.isOperationInProgress;
- }
+ },
},
watch: {
- isWorkstationSelected: function() {
+ isWorkstationSelected: function () {
this.$v.$reset();
this.file = null;
this.tftpIpAddress = null;
this.tftpFileName = null;
- }
+ },
},
created() {
this.startLoader();
this.$store.dispatch('firmwareSingleImage/getUpdateServiceApplyTime');
Promise.all([
this.$store.dispatch('global/getHostStatus'),
- this.$store.dispatch('firmwareSingleImage/getFirmwareInformation')
+ this.$store.dispatch('firmwareSingleImage/getFirmwareInformation'),
]).finally(() => this.endLoader());
},
beforeRouteLeave(to, from, next) {
@@ -282,20 +282,20 @@ export default {
validations() {
return {
file: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return this.isWorkstationSelected;
- })
+ }),
},
tftpIpAddress: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return !this.isWorkstationSelected;
- })
+ }),
},
tftpFileName: {
- required: requiredIf(function() {
+ required: requiredIf(function () {
return !this.isWorkstationSelected;
- })
- }
+ }),
+ },
};
},
methods: {
@@ -315,7 +315,7 @@ export default {
dispatchWorkstationUpload() {
this.$store
.dispatch('firmwareSingleImage/uploadFirmware', this.file)
- .then(success =>
+ .then((success) =>
this.infoToast(
success,
this.$t('pageFirmware.toast.successUploadTitle')
@@ -329,11 +329,11 @@ export default {
dispatchTftpUpload() {
const data = {
address: this.tftpIpAddress,
- filename: this.tftpFileName
+ filename: this.tftpFileName,
};
this.$store
.dispatch('firmwareSingleImage/uploadFirmwareTFTP', data)
- .then(success =>
+ .then((success) =>
this.infoToast(
success,
this.$t('pageFirmware.toast.successUploadTitle')
@@ -348,7 +348,7 @@ export default {
this.setRebootTimeout();
this.$store
.dispatch('firmwareSingleImage/switchFirmwareAndReboot')
- .then(success =>
+ .then((success) =>
this.infoToast(success, this.$t('global.status.success'))
)
.catch(({ message }) => {
@@ -384,14 +384,14 @@ export default {
.msgBoxConfirm(this.$t('pageFirmware.modal.serverShutdownMessage'), {
title: this.$t('pageFirmware.modal.serverShutdownWillCauseOutage'),
okTitle: this.$t('pageFirmware.modal.shutDownServer'),
- okVariant: 'danger'
+ okVariant: 'danger',
})
- .then(shutdownConfirmed => {
+ .then((shutdownConfirmed) => {
if (shutdownConfirmed)
this.$store.dispatch('controls/hostSoftPowerOff');
});
- }
- }
+ },
+ },
};
</script>
diff --git a/src/env/components/FirmwareSingleImage/FirmwareSingleImageModalRebootBackup.vue b/src/env/components/FirmwareSingleImage/FirmwareSingleImageModalRebootBackup.vue
index a8fb3ad5..5b700f2c 100644
--- a/src/env/components/FirmwareSingleImage/FirmwareSingleImageModalRebootBackup.vue
+++ b/src/env/components/FirmwareSingleImage/FirmwareSingleImageModalRebootBackup.vue
@@ -22,12 +22,12 @@ export default {
props: {
current: {
type: String,
- required: true
+ required: true,
},
backup: {
type: String,
- required: true
- }
- }
+ required: true,
+ },
+ },
};
</script>