Updated all the components to use emits to remove the warnings from the console.

This commit is contained in:
Cody Jackson 2024-09-20 16:07:56 -07:00 committed by Francesco Torchia
parent 7ea0fc54e1
commit 20584d293a
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
75 changed files with 163 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import Tag from '@shell/components/Tag';
export default {
name: 'Tags',
emits: ['update:value'],
components: { Tag },
props: {

View File

@ -4,6 +4,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect.vue';
export default {
name: 'HarvesterFilterLabel',
emits: ['change-rows'],
components: { LabeledSelect },
props: {

View File

@ -6,6 +6,8 @@ import LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';
export default {
name: 'HarvesterFilterLabel',
emits: ['changeRows'],
components: {
Select,
ArrayList,

View File

@ -11,6 +11,8 @@ import Socket, {
} from '@shell/utils/socket';
export default {
emits: ['close'],
props: {
value: {
type: Object,

View File

@ -7,6 +7,8 @@ import ModalWithCard from '@shell/components/ModalWithCard';
const PREFERED_SHORTCUT_KEYS = 'prefered-shortcut-keys';
export default {
emits: ['close'],
components: {
ModalWithCard, Banner, AsyncButton
},

View File

@ -1,6 +1,8 @@
<script>
export default {
name: 'NovncConsoleItem',
emits: ['send-keys', 'update'],
props: {
items: {

View File

@ -7,6 +7,8 @@ import HarvesterDisk from '../../mixins/harvester-disk';
import { RadioGroup } from '@components/Form/Radio';
export default {
emits: ['update:value'],
components: {
LabelValue,
BadgeState,

View File

@ -18,6 +18,8 @@ const registryAddresses = [
];
export default {
emits: ['input'],
components: {
ResourceTabs,
DetailText,

View File

@ -7,6 +7,8 @@ import { allHash } from '@shell/utils/promise';
import { NETWORK_HEADERS } from '@pkg/harvester/list/harvesterhci.io.networkattachmentdefinition.vue';
export default {
emits: ['input'],
components: {
ResourceTabs,
Tab,

View File

@ -10,6 +10,8 @@ import { matching } from '@shell/utils/selector';
import { IP_POOL_HEADERS } from '../product';
export default {
emits: ['input'],
components: {
ResourceTabs,
Tab,

View File

@ -11,6 +11,8 @@ import { isEmpty } from '@shell/utils/object';
import { HCI } from '@pkg/harvester/config/labels-annotations';
export default {
emits: ['input'],
components: {
ResourceTabs,
Tab,

View File

@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
export default {
name: 'CloneVMModal',
emits: ['close'],
components: {
AsyncButton, Banner, Checkbox, Card, LabeledInput
},

View File

@ -15,6 +15,8 @@ import CopyToClipboardText from '@shell/components/CopyToClipboardText';
export default {
name: 'ConfirmRelatedToRemoveDialog',
emits: ['close'],
components: {
AsyncButton,
Banner,

View File

@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
export default {
name: 'CloneVMModal',
emits: ['close'],
components: {
AsyncButton, Banner, Checkbox, Card, LabeledInput
},

View File

@ -8,6 +8,8 @@ import { HCI } from '../types';
export default {
name: 'HarvesterEnablePassthrough',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -8,6 +8,8 @@ import { escapeHtml } from '@shell/utils/string';
export default {
name: 'HarvesterEnableSriovDevice',
emits: ['close'],
components: {
LabeledInput,
AsyncButton,

View File

@ -8,6 +8,8 @@ import { escapeHtml } from '@shell/utils/string';
export default {
name: 'HarvesterEnableVGpuDevice',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -13,6 +13,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
export default {
name: 'HotplugModal',
emits: ['close'],
components: {
AsyncButton, Card, LabeledInput, LabeledSelect, Banner
},

View File

@ -9,6 +9,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
export default {
name: 'HarvesterBackupModal',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
export default {
name: 'HarvesterCloneTemplateModal',
emits: ['close'],
components: {
AsyncButton,
Banner,

View File

@ -10,6 +10,8 @@ import { exceptionToErrorsArray } from '@shell/utils/error';
export default {
name: 'HarvesterEjectCDROMModal',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -14,6 +14,8 @@ import { allHash } from '@shell/utils/promise';
export default {
name: 'HarvesterExportImageDialog',
emits: ['close'],
components: {
AsyncButton, Banner, Card, LabeledInput, LabeledSelect
},

View File

@ -9,6 +9,8 @@ import { BadgeState } from '@components/BadgeState';
import { ucFirst } from '@shell/utils/string';
export default {
emits: ['close'],
components: {
Card,
Checkbox,

View File

@ -12,6 +12,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
import { HCI } from '../types';
export default {
emits: ['close'],
components: {
AsyncButton, Banner, Card, LabeledSelect
},

View File

@ -14,6 +14,8 @@ import { HCI } from '../types';
export default {
name: 'HarvesterRestoreModal',
emits: ['close'],
components: {
AsyncButton,
Banner,

View File

@ -9,6 +9,8 @@ import AsyncButton from '@shell/components/AsyncButton';
export default {
name: 'HarvesterHotUnplugModal',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -11,6 +11,8 @@ import { BACKUP_TYPE } from '../config/types';
export default {
name: 'HarvesterVMSnapshotDialog',
emits: ['close'],
components: {
AsyncButton,
Card,

View File

@ -11,6 +11,8 @@ import AsyncButton from '@shell/components/AsyncButton';
import LabeledSelect from '@shell/components/form/LabeledSelect';
export default {
emits: ['close'],
components: {
AsyncButton,
Banner,

View File

@ -5,6 +5,8 @@ import { Card } from '@components/Card';
export default {
name: 'HarvesterHotUnplugModal',
emits: ['close'],
components: { Card },
props: {

View File

@ -5,6 +5,8 @@ import { Card } from '@components/Card';
import { Banner } from '@components/Banner';
import { exceptionToErrorsArray } from '@shell/utils/error';
export default {
emits: ['close'],
components: {
Card,
AsyncButton,

View File

@ -13,6 +13,9 @@ import { STORAGE_CLASS } from '@shell/config/types';
export default {
name: 'HarvesterRestoreSnapshotDialog',
emits: ['close'],
components: {
AsyncButton,
Banner,

View File

@ -7,6 +7,9 @@ import AsyncButton from '@shell/components/AsyncButton';
import { LabeledInput } from '@components/Form/LabeledInput';
export default {
name: 'HarvesterSnapshotDialog',
emits: ['close'],
components: {
AsyncButton, Banner, Card, LabeledInput
},

View File

@ -9,6 +9,9 @@ import { Checkbox } from '@components/Form/Checkbox';
export default {
name: 'HarvesterPvcCloneDialog',
emits: ['close'],
components: {
AsyncButton, Banner, Card, LabeledInput, Checkbox
},

View File

@ -12,6 +12,8 @@ import { HCI } from '@pkg/harvester/config/labels-annotations';
export default {
name: 'HarvesterEditCloudTemplate',
emits: ['update:value'],
components: {
Tab,
Tabbed,

View File

@ -16,6 +16,8 @@ const _NEW = '_NEW';
export default {
name: 'HarvesterSeeder',
emits: ['update:value'],
components: {
Checkbox,
LabeledInput,

View File

@ -34,6 +34,9 @@ export const LONGHORN_SYSTEM = 'longhorn-system';
export default {
name: 'HarvesterEditNode',
emits: ['update:value'],
components: {
Footer,
Tabbed,

View File

@ -12,6 +12,8 @@ import CreateEditView from '@shell/mixins/create-edit-view';
export default {
name: 'HarvesterEditKeypair',
emits: ['update:value'],
components: {
Tab,
Tabbed,

View File

@ -23,6 +23,8 @@ const AUDIT_ONLY = 'Audit Only';
const OUTPUT_TYPE = [LOGGING_EVENT, AUDIT_ONLY];
export default {
emits: ['update:value'],
components: {
Banner, CruResource, Labels, LabeledSelect, NameNsDescription, Tab, Tabbed, YamlEditor
},

View File

@ -15,6 +15,8 @@ import ActionMenu from '@shell/components/ActionMenu';
import { _CREATE, _EDIT, _VIEW, _CONFIG } from '@shell/config/query-params';
export default {
emits: ['update:value'],
components: {
ActionMenu,
CruResource,

View File

@ -16,6 +16,8 @@ const AUTO = 'auto';
const MANUAL = 'manual';
export default {
emits: ['update:value'],
components: {
Tab,
Tabbed,

View File

@ -23,6 +23,8 @@ import { ucFirst } from '@shell/utils/string';
export default {
name: 'CruSecret',
emits: ['update:value'],
components: {
LabeledInput,
LabeledSelect,

View File

@ -24,6 +24,8 @@ const LONGHORN_DRIVER = 'driver.longhorn.io';
export default {
name: 'HarvesterStorage',
emits: ['update:value'],
components: {
ArrayList,
CruResource,

View File

@ -25,6 +25,8 @@ const rawORqcow2 = 'raw_qcow2';
export default {
name: 'EditImage',
emits: ['update:value'],
components: {
Tab,
Tabbed,

View File

@ -29,6 +29,8 @@ import SSHKey from './kubevirt.io.virtualmachine/VirtualMachineSSHKey';
export default {
name: 'HarvesterEditVMTemplate',
emits: ['update:value'],
components: {
Tab,
SSHKey,

View File

@ -23,6 +23,8 @@ import { HCI, VOLUME_SNAPSHOT } from '../types';
export default {
name: 'HarvesterVolume',
emits: ['update:value'],
components: {
Tab,
UnitInput,

View File

@ -11,6 +11,9 @@ import { HCI } from '../types';
export default {
name: 'HarvesterSnapshot',
emits: ['update:value'],
components: {
LabeledInput,
Tab,

View File

@ -10,6 +10,8 @@ import ModalWithCard from '@shell/components/ModalWithCard';
const _NEW = '_NEW';
export default {
emits: ['update:user', 'update:newUser'],
components: {
LabeledInput,
LabeledSelect,

View File

@ -13,6 +13,8 @@ import { ACCESS_CREDENTIALS } from '../../../config/harvester-map';
const _NEW = '_NEW';
export default {
emits: ['update:value'],
components: {
Banner,
InfoBox

View File

@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
export default {
name: 'HarvesterEditVolume',
emits: ['update', 'update:newUser'],
components: { Password, AccessCredentialsUsers },
props: {

View File

@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
export default {
name: 'HarvesterEditVolume',
emits: ['update', 'update:newUser'],
components: { SSHKey, AccessCredentialsUsers },
props: {

View File

@ -13,6 +13,8 @@ const _NONE = '_NONE';
export default {
components: { YamlEditor, LabeledSelect },
emits: ['updateTemplateId', 'show', 'update'],
props: {
mode: {
type: String,

View File

@ -13,6 +13,8 @@ import DataTemplate from './DataTemplate';
const _NEW = '_NEW';
export default {
emits: ['updateUserData', 'updateNetworkData', 'updateDataTemplateId'],
components: {
DataTemplate, YamlEditor, LabeledInput, ModalWithCard
},

View File

@ -4,6 +4,9 @@ import InputOrDisplay from '@shell/components/InputOrDisplay';
export default {
name: 'HarvesterEditCpuMemory',
emits: ['updateCpuMemory'],
components: { UnitInput, InputOrDisplay },
props: {

View File

@ -29,6 +29,9 @@ const MODEL = [{
export default {
name: 'HarvesterEditNetwork',
emits: ['update'],
components: {
LabeledInput, LabeledSelect, InputOrDisplay
},

View File

@ -3,6 +3,9 @@ import UnitInput from '@shell/components/form/UnitInput';
export default {
name: 'HarvesterReserved',
emits: ['updateReserved'],
components: { UnitInput },
props: {

View File

@ -15,6 +15,8 @@ import { HCI } from '../../types';
const _NEW = '_NEW';
export default {
emits: ['update:sshKey'],
components: {
LabeledInput,
ModalWithCard,

View File

@ -19,6 +19,8 @@ import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../config/harvester';
import { HCI } from '../../../types';
export default {
emits: ['update:value'],
components: {
Banner, BadgeStateFormatter, Sortable, InfoBox, LabeledInput, UnitInput, LabeledSelect, ModalWithCard
},

View File

@ -6,6 +6,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
export default {
name: 'HarvesterEditContainer',
emits: ['update'],
components: {
LabeledInput, LabeledSelect, InputOrDisplay
},

View File

@ -13,6 +13,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
export default {
name: 'HarvesterEditExisting',
emits: ['update'],
components: {
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
},

View File

@ -12,6 +12,8 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
export default {
name: 'HarvesterEditVMImage',
emits: ['update'],
components: {
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
},

View File

@ -11,6 +11,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
export default {
name: 'HarvesterEditVolume',
emits: ['update'],
components: {
InputOrDisplay, Loading, LabeledInput, LabeledSelect, UnitInput,
},

View File

@ -45,6 +45,8 @@ import MessageLink from '@shell/components/MessageLink';
export default {
name: 'HarvesterEditVM',
emits: ['update:value'],
components: {
Tab,
Tabbed,

View File

@ -7,6 +7,8 @@ import { mapGetters } from 'vuex';
import PriorityRow from './PriorityRow';
export default {
emits: ['update:value'],
components: { PriorityRow },
props: {

View File

@ -6,6 +6,8 @@ import { mapGetters } from 'vuex';
import { HCI } from '@pkg/harvester/types';
export default {
emits: ['update:value', 'remove'],
components: { Select },
props: {

View File

@ -4,6 +4,8 @@ import { _EDIT, _VIEW } from '@shell/config/query-params';
import { removeAt } from '@shell/utils/array';
export default {
emits: ['update:value'],
props: {
value: {
type: Array,

View File

@ -9,6 +9,8 @@ import { _EDIT } from '@shell/config/query-params';
import Priority from './Priority';
export default {
emits: ['update:value'],
components: {
LabeledSelect,
LabeledInput,

View File

@ -13,6 +13,8 @@ import Selector from './Selector';
export default {
name: 'HarvesterIPPool',
emits: ['update:value'],
components: {
NameNsDescription,
ResourceTabs,

View File

@ -4,6 +4,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
import RadioGroup from '@components/Form/Radio/RadioGroup';
export default {
emits: ['enabled'],
components: {
LabeledInput,
LabeledSelect,

View File

@ -6,6 +6,8 @@ import { clone } from '@shell/utils/object';
import Select from '@shell/components/form/Select';
export default {
emits: ['update:value'],
components: { Select },
props: {
value: {

View File

@ -25,6 +25,8 @@ const PROJECT_SELECTOR = 'loadbalancer.harvesterhci.io/project';
export default {
name: 'HarvesterLoadBalancer',
emits: ['update:value'],
components: {
NameNsDescription,
ResourceTabs,

View File

@ -20,6 +20,8 @@ import { HARVESTER_NAME as HARVESTER } from '@shell/config/features';
import { Banner } from '@components/Banner';
export default {
emits: ['update:value'],
components: {
ContainerResourceLimit, CruResource, Labels, LabeledSelect, NameNsDescription, ProjectMembershipEditor, ResourceQuota, Tabbed, Tab, Banner
},

View File

@ -10,6 +10,8 @@ import CreateEditView from '@shell/mixins/create-edit-view';
export default {
name: 'EditClusterNetwork',
emits: ['update:value'],
components: {
CruResource,
NameNsDescription,

View File

@ -10,6 +10,8 @@ import { findBy } from '@shell/utils/array';
import { HCI } from '../../types';
export default {
emits: ['updateMatchingNICs', 'updateMatchingNodes'],
components: {
RadioGroup,
LabeledSelect,

View File

@ -25,6 +25,8 @@ import { HCI } from '../../types';
import NodeSelector from './NodeSelector';
export default {
emits: ['update:value'],
components: {
CruResource,
NameNsDescription,

View File

@ -3,6 +3,8 @@ import { BadgeState } from '@components/BadgeState';
import { HCI } from '../types';
export default {
emits: ['state-changed'],
components: { BadgeState },
props: {