From 4626d56acdf572ec49bfa24d8ad67725d1ad3181 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Wed, 30 Oct 2024 20:11:28 +0100 Subject: [PATCH] Lint fixes Signed-off-by: Francesco Torchia --- pkg/harvester/components/DiskTags.vue | 6 +- pkg/harvester/components/FilterBySriov.vue | 15 +- pkg/harvester/components/FilterLabel.vue | 33 +- pkg/harvester/components/FilterVMSchedule.vue | 23 +- pkg/harvester/components/HarvesterUpgrade.vue | 6 +- .../components/HarvesterUpgradeHeader.vue | 81 ++- .../HarvesterUpgradeProgressBarList.vue | 27 +- .../components/SerialConsole/index.vue | 7 +- pkg/harvester/components/SettingList.vue | 65 ++- pkg/harvester/components/UpgradeInfo.vue | 10 +- .../components/novnc/NovncConsole.vue | 8 +- .../novnc/NovncConsoleCustomKeys.vue | 40 +- .../components/novnc/NovncConsoleItem.vue | 25 +- .../components/novnc/NovncConsoleWrapper.vue | 37 +- .../components/settings/backup-target.vue | 35 +- .../settings/containerd-registry.vue | 34 +- .../components/settings/csi-driver-config.vue | 20 +- .../components/settings/http-proxy.vue | 10 +- .../components/settings/storage-network.vue | 18 +- .../settings/support-bundle-image.vue | 7 +- .../settings/vm-force-reset-policy.vue | 5 +- pkg/harvester/config/doc-links.js | 2 +- pkg/harvester/config/harvester-cluster.js | 536 +++++++++--------- .../HarvesterHostBasic.vue | 61 +- .../HarvesterHostDisk.vue | 24 +- .../HarvesterKsmtuned.vue | 96 +++- .../harvesterhci.io.host/HarvesterSeeder.vue | 4 +- .../VirtualMachineInstance.vue | 18 +- .../harvesterhci.io.host/VlanStatus/index.vue | 2 +- .../detail/harvesterhci.io.host/index.vue | 40 +- .../BackupList.vue | 6 +- .../SnapshotList.vue | 4 +- .../index.vue | 6 +- .../detail/harvesterhci.io.secret.vue | 8 +- .../index.vue | 79 ++- .../index.vue | 69 ++- .../harvesterhci.io.vmsnapshot/index.vue | 79 ++- .../VirtualMachineBasics.vue | 79 ++- .../VirtualMachineKeypairs.vue | 23 +- .../VirtualMachineMigration.vue | 20 +- .../kubevirt.io.virtualmachine/index.vue | 116 +++- .../loadbalancer.harvesterhci.io.ippool.vue | 6 +- ...dbalancer.harvesterhci.io.loadbalancer.vue | 12 +- .../network.harvesterhci.io.vlanconfig.vue | 6 +- pkg/harvester/dialog/CloneVmDialog.vue | 21 +- .../dialog/ConfirmRelatedToRemoveDialog.vue | 30 +- pkg/harvester/dialog/DeepCloneVmDialog.vue | 18 +- pkg/harvester/dialog/EnablePciPassthrough.vue | 10 +- pkg/harvester/dialog/EnableSriovDevice.vue | 10 +- pkg/harvester/dialog/EnableUSBPassthrough.vue | 10 +- pkg/harvester/dialog/EnableVGpuDevice.vue | 11 +- .../dialog/HarvesterAddHotplugModal.vue | 19 +- pkg/harvester/dialog/HarvesterBackupModal.vue | 24 +- .../dialog/HarvesterCloneTemplate.vue | 16 +- .../dialog/HarvesterEjectCDROMDialog.vue | 16 +- .../dialog/HarvesterExportImageDialog.vue | 16 +- .../dialog/HarvesterMaintenanceDialog.vue | 35 +- .../dialog/HarvesterMigrationDialog.vue | 27 +- pkg/harvester/dialog/HarvesterQuotaDialog.vue | 12 +- .../dialog/HarvesterRestoreDialog.vue | 10 +- .../dialog/HarvesterSupportBundle.vue | 4 +- .../dialog/HarvesterUnplugVolume.vue | 19 +- .../dialog/HarvesterVMSnapshotDialog.vue | 29 +- .../HarvesterVlanConfigMigrateDialog.vue | 12 +- pkg/harvester/dialog/MessageBox.vue | 12 +- pkg/harvester/dialog/RestartVMDialog.vue | 6 +- .../dialog/RestoreSnapshotDialog.vue | 19 +- pkg/harvester/dialog/SnapshotDialog.vue | 14 +- pkg/harvester/dialog/VolumeCloneDialog.vue | 18 +- .../nvidia-driver-toolkit.vue | 10 +- .../harvesterhci.io.addon/rancher-logging.vue | 14 +- .../rancher-monitoring.vue | 28 +- .../vm-import-controller.vue | 4 +- .../edit/harvesterhci.io.cloudtemplate.vue | 8 +- .../harvesterhci.io.host/HarvesterDisk.vue | 30 +- .../HarvesterKsmtuned.vue | 14 +- .../harvesterhci.io.host/HarvesterSeeder.vue | 6 +- .../edit/harvesterhci.io.host/index.vue | 75 ++- .../edit/harvesterhci.io.keypair.vue | 15 +- .../harvesterhci.io.logging.clusterflow.vue | 2 +- .../harvesterhci.io.logging.clusteroutput.vue | 2 +- .../edit/harvesterhci.io.logging.output.vue | 49 +- .../index.vue | 6 +- ...sterhci.io.networkattachmentdefinition.vue | 17 +- .../edit/harvesterhci.io.schedulevmbackup.vue | 23 +- pkg/harvester/edit/harvesterhci.io.secret.vue | 4 +- .../edit/harvesterhci.io.setting.vue | 15 +- .../edit/harvesterhci.io.storage/index.vue | 27 +- .../provisioners/driver.longhorn.io_v1.vue | 19 +- .../provisioners/driver.longhorn.io_v2.vue | 19 +- .../lvm.driver.harvesterhci.io.vue | 18 +- .../harvesterhci.io.virtualmachinebackup.vue | 12 +- .../harvesterhci.io.virtualmachineimage.vue | 37 +- ...erhci.io.virtualmachinetemplateversion.vue | 75 ++- .../edit/harvesterhci.io.vmsnapshot.vue | 28 +- pkg/harvester/edit/harvesterhci.io.volume.vue | 121 +++- .../edit/harvesterhci.io.volumesnapshot.vue | 41 +- .../CompatibilityMatrix.vue | 20 +- .../AccessCredentialsUsers.vue | 2 +- .../VirtualMachineAccessCredentials/index.vue | 27 +- .../type/basicAuth.vue | 11 +- .../type/sshkey.vue | 4 +- .../DataTemplate.vue | 5 +- .../VirtualMachineCloudConfig/index.vue | 2 +- .../VirtualMachineCpuMemory.vue | 16 +- .../VirtualMachineNetwork/base.vue | 16 +- .../VirtualMachineNetwork/index.vue | 21 +- .../VirtualMachinePciDevices/DeviceList.vue | 27 +- .../VirtualMachinePciDevices/index.vue | 55 +- .../VirtualMachineReserved.vue | 4 +- .../VirtualMachineSSHKey.vue | 6 +- .../VirtualMachineUSBDevices/DeviceList.vue | 27 +- .../VirtualMachineUSBDevices/index.vue | 53 +- .../VirtualMachineVGpuDevices/index.vue | 34 +- .../VirtualMachineVolume/index.vue | 12 +- .../VirtualMachineVolume/type/container.vue | 2 +- .../VirtualMachineVolume/type/existing.vue | 8 +- .../VirtualMachineVolume/type/vmImage.vue | 17 +- .../VirtualMachineVolume/type/volume.vue | 24 +- .../edit/kubevirt.io.virtualmachine/index.vue | 77 ++- .../Priority.vue | 17 +- .../PriorityRow.vue | 21 +- .../Range.vue | 34 +- .../Selector.vue | 4 +- .../index.vue | 2 +- .../HealthCheck.vue | 9 +- .../Listeners.vue | 28 +- .../index.vue | 12 +- .../edit/management.cattle.io.project.vue | 6 +- .../index.vue | 2 +- .../NodeSelector.vue | 2 +- .../index.vue | 36 +- pkg/harvester/formatters/AttachVMWithName.vue | 2 +- .../formatters/BackupCreatedFrom.vue | 12 +- .../formatters/HarvesterBackupProgressBar.vue | 7 +- .../HarvesterBackupTargetValidation.vue | 7 +- .../formatters/HarvesterCPUPinning.vue | 12 +- .../formatters/HarvesterDiskState.vue | 4 +- pkg/harvester/formatters/HarvesterHost.vue | 5 +- .../formatters/HarvesterIpAddress.vue | 16 +- .../formatters/HarvesterListener.vue | 4 +- .../formatters/HarvesterMigrationState.vue | 7 +- .../formatters/HarvesterStorageUsed.vue | 2 +- .../formatters/HarvesterVFAddress.vue | 8 +- .../formatters/HarvesterVGpuDevices.vue | 8 +- pkg/harvester/formatters/HarvesterVmState.vue | 18 +- .../formatters/NetworkRouteConnectivity.vue | 17 +- .../formatters/SnapshotTargetVolume.vue | 2 +- pkg/harvester/formatters/StateWithPopover.vue | 4 +- .../devices.harvesterhci.io.pcidevice.vue | 8 +- ...devices.harvesterhci.io.sriovgpudevice.vue | 4 +- .../devices.harvesterhci.io.usbdevice.vue | 8 +- .../devices.harvesterhci.io.vgpudevice.vue | 12 +- pkg/harvester/list/harvesterhci.io.addon.vue | 5 +- .../list/harvesterhci.io.cloudtemplate.vue | 5 +- .../list/harvesterhci.io.dashboard.vue | 26 +- pkg/harvester/list/harvesterhci.io.host.vue | 15 +- .../harvesterhci.io.logging.clusterflow.vue | 19 +- .../harvesterhci.io.logging.clusteroutput.vue | 19 +- .../list/harvesterhci.io.logging.flow.vue | 19 +- .../list/harvesterhci.io.logging.output.vue | 19 +- ...erhci.io.monitoring.alertmanagerconfig.vue | 12 +- ...sterhci.io.networkattachmentdefinition.vue | 9 +- .../list/harvesterhci.io.schedulevmbackup.vue | 4 +- pkg/harvester/list/harvesterhci.io.secret.vue | 7 +- .../list/harvesterhci.io.setting.vue | 5 +- .../list/harvesterhci.io.storage.vue | 4 +- .../harvesterhci.io.virtualmachinebackup.vue | 10 +- .../harvesterhci.io.virtualmachineimage.vue | 12 +- ...erhci.io.virtualmachinetemplateversion.vue | 12 +- .../list/harvesterhci.io.vmsnapshot.vue | 7 +- pkg/harvester/list/harvesterhci.io.volume.vue | 17 +- .../list/harvesterhci.io.volumesnapshot.vue | 3 +- .../list/kubevirt.io.virtualmachine.vue | 22 +- ...network.harvesterhci.io.clusternetwork.vue | 7 +- pkg/harvester/mixins/harvester-vm/impl.js | 16 +- pkg/harvester/mixins/harvester-vm/index.js | 72 +-- .../devices.harvesterhci.io.pcidevice.js | 2 +- .../devices.harvesterhci.io.sriovgpudevice.js | 6 +- ...ices.harvesterhci.io.sriovnetworkdevice.js | 2 +- .../devices.harvesterhci.io.usbdevice.js | 2 +- ...cni.cncf.io.networkattachmentdefinition.js | 2 +- .../harvester/logging.banzaicloud.io.flow.js | 2 +- pkg/harvester/models/harvester/namespace.js | 6 +- pkg/harvester/models/harvester/node.js | 14 +- .../models/harvester/persistentvolumeclaim.js | 27 +- pkg/harvester/models/harvester/pod.js | 4 +- pkg/harvester/models/harvester/secret.js | 2 +- pkg/harvester/models/harvesterhci.io.addon.js | 2 +- .../models/harvesterhci.io.blockdevice.js | 4 +- .../harvesterhci.io.management.cluster.js | 15 +- .../harvesterhci.io.schedulevmbackup.js | 2 +- .../models/harvesterhci.io.setting.js | 6 +- .../models/harvesterhci.io.upgrade.js | 12 +- .../harvesterhci.io.virtualmachinebackup.js | 4 +- .../harvesterhci.io.virtualmachineimage.js | 18 +- .../harvesterhci.io.virtualmachinerestore.js | 2 +- .../harvesterhci.io.virtualmachinetemplate.js | 2 +- ...terhci.io.virtualmachinetemplateversion.js | 6 +- .../models/kubevirt.io.virtualmachine.js | 48 +- .../kubevirt.io.virtualmachineinstance.js | 6 +- .../loadbalancer.harvesterhci.io.ippool.js | 8 +- ...adbalancer.harvesterhci.io.loadbalancer.js | 2 +- pkg/harvester/models/longhorn.io.node.js | 6 +- .../network.harvesterhci.io.clusternetwork.js | 8 +- .../network.harvesterhci.io.vlanconfig.js | 10 +- .../pages/c/_cluster/airgapupgrade/index.vue | 30 +- .../pages/c/_cluster/brand/index.vue | 5 +- .../pages/c/_cluster/members/index.vue | 11 +- .../pages/c/_cluster/support/index.vue | 50 +- .../kubevirt.io.virtualmachine.vue | 19 +- pkg/harvester/routing/harvester-routing.js | 2 +- pkg/harvester/validators/setting.js | 2 +- pkg/harvester/validators/vm.js | 10 +- 214 files changed, 3162 insertions(+), 1298 deletions(-) diff --git a/pkg/harvester/components/DiskTags.vue b/pkg/harvester/components/DiskTags.vue index 00478fa5..e6264f80 100644 --- a/pkg/harvester/components/DiskTags.vue +++ b/pkg/harvester/components/DiskTags.vue @@ -102,7 +102,7 @@ export default { }, onRemoveTag(tag) { - this.tags = this.tags.filter(v => v !== tag); + this.tags = this.tags.filter((v) => v !== tag); this.$emit('update:value', this.tags); }, } @@ -124,7 +124,9 @@ export default {
{{ tag }} diff --git a/pkg/harvester/components/FilterBySriov.vue b/pkg/harvester/components/FilterBySriov.vue index 50800e3d..45575e9c 100644 --- a/pkg/harvester/components/FilterBySriov.vue +++ b/pkg/harvester/components/FilterBySriov.vue @@ -70,8 +70,14 @@ export default {