mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Updated all the components to use emits to remove the warnings from the console.
This commit is contained in:
@@ -12,6 +12,8 @@ import { HCI } from '@pkg/harvester/config/labels-annotations';
|
||||
export default {
|
||||
name: 'HarvesterEditCloudTemplate',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
@@ -16,6 +16,8 @@ const _NEW = '_NEW';
|
||||
export default {
|
||||
name: 'HarvesterSeeder',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Checkbox,
|
||||
LabeledInput,
|
||||
|
||||
@@ -34,6 +34,9 @@ export const LONGHORN_SYSTEM = 'longhorn-system';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditNode',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Footer,
|
||||
Tabbed,
|
||||
|
||||
@@ -12,6 +12,8 @@ import CreateEditView from '@shell/mixins/create-edit-view';
|
||||
export default {
|
||||
name: 'HarvesterEditKeypair',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -16,6 +16,8 @@ const AUTO = 'auto';
|
||||
const MANUAL = 'manual';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
@@ -23,6 +23,8 @@ import { ucFirst } from '@shell/utils/string';
|
||||
export default {
|
||||
name: 'CruSecret',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
LabeledSelect,
|
||||
|
||||
@@ -24,6 +24,8 @@ const LONGHORN_DRIVER = 'driver.longhorn.io';
|
||||
export default {
|
||||
name: 'HarvesterStorage',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
ArrayList,
|
||||
CruResource,
|
||||
|
||||
@@ -25,6 +25,8 @@ const rawORqcow2 = 'raw_qcow2';
|
||||
export default {
|
||||
name: 'EditImage',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
@@ -29,6 +29,8 @@ import SSHKey from './kubevirt.io.virtualmachine/VirtualMachineSSHKey';
|
||||
export default {
|
||||
name: 'HarvesterEditVMTemplate',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
SSHKey,
|
||||
|
||||
@@ -23,6 +23,8 @@ import { HCI, VOLUME_SNAPSHOT } from '../types';
|
||||
export default {
|
||||
name: 'HarvesterVolume',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
UnitInput,
|
||||
|
||||
@@ -11,6 +11,9 @@ import { HCI } from '../types';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterSnapshot',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
Tab,
|
||||
|
||||
+2
@@ -10,6 +10,8 @@ import ModalWithCard from '@shell/components/ModalWithCard';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:user', 'update:newUser'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
LabeledSelect,
|
||||
|
||||
+2
@@ -13,6 +13,8 @@ import { ACCESS_CREDENTIALS } from '../../../config/harvester-map';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Banner,
|
||||
InfoBox
|
||||
|
||||
+3
@@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update', 'update:newUser'],
|
||||
|
||||
components: { Password, AccessCredentialsUsers },
|
||||
|
||||
props: {
|
||||
|
||||
+3
@@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update', 'update:newUser'],
|
||||
|
||||
components: { SSHKey, AccessCredentialsUsers },
|
||||
|
||||
props: {
|
||||
|
||||
+2
@@ -13,6 +13,8 @@ const _NONE = '_NONE';
|
||||
export default {
|
||||
components: { YamlEditor, LabeledSelect },
|
||||
|
||||
emits: ['updateTemplateId', 'show', 'update'],
|
||||
|
||||
props: {
|
||||
mode: {
|
||||
type: String,
|
||||
|
||||
@@ -13,6 +13,8 @@ import DataTemplate from './DataTemplate';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['updateUserData', 'updateNetworkData', 'updateDataTemplateId'],
|
||||
|
||||
components: {
|
||||
DataTemplate, YamlEditor, LabeledInput, ModalWithCard
|
||||
},
|
||||
|
||||
@@ -4,6 +4,9 @@ import InputOrDisplay from '@shell/components/InputOrDisplay';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditCpuMemory',
|
||||
|
||||
emits: ['updateCpuMemory'],
|
||||
|
||||
components: { UnitInput, InputOrDisplay },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -29,6 +29,9 @@ const MODEL = [{
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditNetwork',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -3,6 +3,9 @@ import UnitInput from '@shell/components/form/UnitInput';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterReserved',
|
||||
|
||||
emits: ['updateReserved'],
|
||||
|
||||
components: { UnitInput },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -15,6 +15,8 @@ import { HCI } from '../../types';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:sshKey'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
ModalWithCard,
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
@@ -6,6 +6,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditContainer',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -13,6 +13,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditExisting',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -12,6 +12,8 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
export default {
|
||||
name: 'HarvesterEditVMImage',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -11,6 +11,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
InputOrDisplay, Loading, LabeledInput, LabeledSelect, UnitInput,
|
||||
},
|
||||
|
||||
@@ -45,6 +45,8 @@ import MessageLink from '@shell/components/MessageLink';
|
||||
export default {
|
||||
name: 'HarvesterEditVM',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
@@ -7,6 +7,8 @@ import { mapGetters } from 'vuex';
|
||||
import PriorityRow from './PriorityRow';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: { PriorityRow },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -6,6 +6,8 @@ import { mapGetters } from 'vuex';
|
||||
import { HCI } from '@pkg/harvester/types';
|
||||
|
||||
export default {
|
||||
emits: ['update:value', 'remove'],
|
||||
|
||||
components: { Select },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -9,6 +9,8 @@ import { _EDIT } from '@shell/config/query-params';
|
||||
import Priority from './Priority';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
LabeledSelect,
|
||||
LabeledInput,
|
||||
|
||||
@@ -13,6 +13,8 @@ import Selector from './Selector';
|
||||
export default {
|
||||
name: 'HarvesterIPPool',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
NameNsDescription,
|
||||
ResourceTabs,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -25,6 +25,8 @@ const PROJECT_SELECTOR = 'loadbalancer.harvesterhci.io/project';
|
||||
export default {
|
||||
name: 'HarvesterLoadBalancer',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
NameNsDescription,
|
||||
ResourceTabs,
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
@@ -10,6 +10,8 @@ import CreateEditView from '@shell/mixins/create-edit-view';
|
||||
export default {
|
||||
name: 'EditClusterNetwork',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
CruResource,
|
||||
NameNsDescription,
|
||||
|
||||
@@ -10,6 +10,8 @@ import { findBy } from '@shell/utils/array';
|
||||
import { HCI } from '../../types';
|
||||
|
||||
export default {
|
||||
emits: ['updateMatchingNICs', 'updateMatchingNodes'],
|
||||
|
||||
components: {
|
||||
RadioGroup,
|
||||
LabeledSelect,
|
||||
|
||||
@@ -25,6 +25,8 @@ import { HCI } from '../../types';
|
||||
import NodeSelector from './NodeSelector';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
CruResource,
|
||||
NameNsDescription,
|
||||
|
||||
Reference in New Issue
Block a user