dashboard-shell-shell 1.0.122 → 1.0.1000000082
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/icons/iconfont.css +19 -3
- package/assets/icons/iconfont.js +1 -1
- package/assets/icons/iconfont.json +28 -0
- package/assets/icons/iconfont.ttf +0 -0
- package/assets/icons/iconfont.woff +0 -0
- package/assets/icons/iconfont.woff2 +0 -0
- package/assets/images/pl/half-logo.svg +2 -23
- package/assets/styles/base/_functions.scss +0 -0
- package/assets/styles/base/_mixins.scss +0 -0
- package/assets/styles/base/_variables.scss +1 -1
- package/assets/styles/global/_labeled-input.scss +0 -1
- package/assets/styles/global/_layout.scss +1 -1
- package/assets/styles/global/_select.scss +4 -2
- package/assets/styles/global/_table.scss +5 -0
- package/assets/styles/vendor/vue-select.scss +2 -1
- package/assets/translations/en-us.yaml +1 -1
- package/assets/translations/zh-hans.yaml +25 -15
- package/chart/monitoring/index.vue +3 -1
- package/chart/monitoring/prometheus/index.vue +13 -10
- package/cloud-credential/aws.vue +2 -0
- package/components/ActionDropdown.vue +1 -1
- package/components/ActionDropdownShell.vue +71 -0
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +3 -0
- package/components/AppModal.vue +84 -8
- package/components/AssignTo.vue +25 -11
- package/components/AsyncButton.vue +24 -7
- package/components/BannerGraphic.vue +1 -0
- package/components/ButtonDropdown.vue +26 -4
- package/components/ButtonGroup.vue +4 -0
- package/components/ButtonMultiAction.vue +1 -0
- package/components/CodeMirror.vue +19 -6
- package/components/CommunityLinks.vue +3 -3
- package/components/ConsumptionGauge.vue +24 -5
- package/components/CopyToClipboardText.vue +2 -1
- package/components/CruResource.vue +13 -7
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +29 -17
- package/components/DetailText.vue +5 -0
- package/components/DisableAuthProviderModal.vue +1 -0
- package/components/DotState.vue +84 -0
- package/components/ExplorerMembers.vue +1 -1
- package/components/ExplorerProjectsNamespaces.vue +88 -16
- package/components/FixedBanner.vue +19 -12
- package/components/GlobalRoleBindings.vue +5 -1
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +4 -1
- package/components/HardwareResourceGauge.vue +39 -3
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +28 -2
- package/components/LabelValue.vue +20 -1
- package/components/LandingPagePreference.vue +5 -3
- package/components/LocaleSelector.vue +39 -93
- package/components/ModalManager.vue +55 -0
- package/components/ModalWithCard.vue +13 -3
- package/components/MoveModal.vue +1 -0
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/PromptChangePassword.vue +1 -1
- package/components/PromptModal.vue +16 -3
- package/components/PromptRemove.vue +29 -9
- package/components/PromptRestore.vue +1 -0
- package/components/ResourceCancelModal.vue +1 -0
- package/components/ResourceDetail/Masthead.vue +52 -17
- package/components/ResourceDetail/__tests__/Masthead.test.ts +5 -1
- package/components/ResourceDetail/index.vue +54 -16
- package/components/ResourceList/Masthead.vue +26 -4
- package/components/ResourceList/index.vue +4 -3
- package/components/ResourceTable.vue +1 -0
- package/components/SideNav.vue +20 -15
- package/components/SlideInPanelManager.vue +126 -0
- package/components/SortableTable/THead.vue +10 -4
- package/components/SortableTable/actions.js +1 -1
- package/components/SortableTable/index.vue +542 -553
- package/components/SortableTable/selection.js +2 -13
- package/components/StatusBadge.vue +77 -0
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +47 -29
- package/components/Wizard.vue +2 -2
- package/components/YamlEditor.vue +1 -1
- package/components/__tests__/AsyncButton.test.ts +2 -2
- package/components/__tests__/FixedBanner.test.ts +3 -3
- package/components/__tests__/ModalManager.spec.ts +176 -0
- package/components/__tests__/SlideInPanelManager.spec.ts +166 -0
- package/components/auth/Principal.vue +10 -3
- package/components/auth/RoleDetailEdit.vue +1 -1
- package/components/auth/__tests__/RoleDetailEdit.test.ts +3 -2
- package/components/form/ArrayList.vue +123 -85
- package/components/form/ArrayListGrouped.vue +10 -2
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/Command.vue +6 -15
- package/components/form/EnvVars.vue +16 -8
- package/components/form/Footer.vue +10 -7
- package/components/form/HealthCheck.vue +3 -3
- package/components/form/HookOption.vue +11 -16
- package/components/form/InputWithSelect.vue +6 -5
- package/components/form/KeyValue.vue +39 -10
- package/components/form/LabeledSelect.vue +73 -77
- package/components/form/Labels.vue +6 -3
- package/components/form/LifecycleHooks.vue +3 -3
- package/components/form/MatchExpressions.vue +42 -17
- package/components/form/NameNsDescription.vue +163 -116
- package/components/form/Networking.vue +20 -12
- package/components/form/NodeAffinity.vue +31 -23
- package/components/form/NodeScheduling.vue +13 -3
- package/components/form/Password.vue +11 -5
- package/components/form/PodAffinity.vue +47 -48
- package/components/form/Probe.vue +68 -66
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +5 -7
- package/components/form/ResourceQuota/Project.vue +9 -5
- package/components/form/ResourceQuota/ProjectRow.vue +4 -6
- package/components/form/ResourceSelector.vue +7 -9
- package/components/form/SSHKnownHosts/KnownHostsEditDialog.vue +6 -3
- package/components/form/SSHKnownHosts/__tests__/KnownHostsEditDialog.test.ts +12 -1
- package/components/form/SSHKnownHosts/index.vue +16 -2
- package/components/form/Security.vue +54 -56
- package/components/form/Select.vue +44 -7
- package/components/form/ShellInput.vue +5 -1
- package/components/form/SimpleSecretSelector.vue +29 -9
- package/components/form/Tolerations.vue +5 -1
- package/components/form/UnitInput.vue +10 -5
- package/components/form/ValueFromResource.vue +134 -121
- package/components/form/WorkloadPorts.vue +18 -18
- package/components/form/__tests__/ArrayList.test.ts +5 -2
- package/components/form/__tests__/MatchExpressions.test.ts +12 -12
- package/components/form/__tests__/NameNsDescription.test.ts +115 -14
- package/components/form/__tests__/Probe.test.ts +12 -8
- package/components/form/__tests__/SSHKnownHosts.test.ts +11 -0
- package/components/form/__tests__/Select.test.ts +37 -0
- package/components/form/__tests__/UnitInput.test.ts +4 -5
- package/components/formatter/BadgeStateFormatter.vue +8 -5
- package/components/formatter/InternalExternalIP.vue +2 -0
- package/components/formatter/LiveDate.vue +3 -3
- package/components/formatter/SecretData.vue +20 -7
- package/components/nav/Favorite.vue +5 -1
- package/components/nav/Group.vue +18 -4
- package/components/nav/Header.vue +39 -13
- package/components/nav/Jump.vue +7 -0
- package/components/nav/NamespaceFilter.vue +21 -11
- package/components/nav/Pinned.vue +1 -1
- package/components/nav/TopLevelMenu.vue +5 -17
- package/components/nav/Type.vue +30 -33
- package/components/nav/__tests__/TopLevelMenu.test.ts +0 -40
- package/components/rancherResourceDetail/Masthead.vue +769 -0
- package/components/rancherResourceDetail/__tests__/Masthead.test.ts +65 -0
- package/components/rancherResourceDetail/index.vue +591 -0
- package/components/rancherResourceList/Masthead-btn.vue +225 -0
- package/components/rancherResourceList/Masthead.vue +375 -0
- package/components/rancherResourceList/ResourceLoadingIndicator.vue +140 -0
- package/components/rancherResourceList/index.vue +307 -0
- package/components/rancherResourceList/resource-list.config.js +7 -0
- package/components/rancherResourceTable.vue +783 -0
- package/components/rancherSortableTable/THead.vue +561 -0
- package/components/rancherSortableTable/actions.js +153 -0
- package/components/rancherSortableTable/advanced-filtering.js +272 -0
- package/components/rancherSortableTable/debug.js +117 -0
- package/components/rancherSortableTable/filtering.js +290 -0
- package/components/rancherSortableTable/grouping.js +48 -0
- package/components/rancherSortableTable/index.vue +2712 -0
- package/components/rancherSortableTable/paging.js +155 -0
- package/components/rancherSortableTable/selection.js +629 -0
- package/components/rancherSortableTable/sortable-config.ts +4 -0
- package/components/rancherSortableTable/sorting.js +129 -0
- package/components/templates/blank.vue +4 -1
- package/components/templates/default.vue +8 -0
- package/components/templates/home.vue +10 -1
- package/components/templates/plain.vue +10 -1
- package/composables/focusTrap.ts +11 -3
- package/composables/useRuntimeFlag.ts +29 -0
- package/config/private-label.js +15 -10
- package/config/router/routes.js +21 -13
- package/config/store.js +4 -0
- package/config/table-headers.js +3 -2
- package/config/uiplugins.js +5 -1
- package/core/plugin-routes.ts +5 -115
- package/core/plugins.js +1 -1
- package/core/types.ts +23 -2
- package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +84 -23
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +13 -3
- package/detail/provisioning.cattle.io.cluster.vue +72 -6
- package/dialog/AddCustomBadgeDialog.vue +1 -0
- package/dialog/DeactivateDriverDialog.vue +5 -4
- package/dialog/ForceMachineRemoveDialog.vue +6 -3
- package/dialog/GitRepoForceUpdateDialog.vue +1 -1
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +16 -3
- package/edit/auth/__tests__/oidc.test.ts +162 -88
- package/edit/auth/azuread.vue +2 -1
- package/edit/auth/github.vue +1 -1
- package/edit/auth/googleoauth.vue +5 -1
- package/edit/auth/ldap/__tests__/config.test.ts +0 -14
- package/edit/auth/ldap/config.vue +0 -24
- package/edit/auth/ldap/index.vue +1 -1
- package/edit/auth/oidc.vue +39 -6
- package/edit/auth/saml.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +5 -2
- package/edit/cloudcredential.vue +24 -9
- package/edit/fleet.cattle.io.clustergroup.vue +5 -3
- package/edit/fleet.cattle.io.gitrepo.vue +2 -0
- package/edit/logging-flow/Match.vue +1 -1
- package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +40 -9
- package/edit/management.cattle.io.user.vue +28 -3
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +31 -31
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.receiver/auth.vue +29 -29
- package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
- package/edit/namespace.vue +1 -2
- package/edit/networking.k8s.io.ingress/IngressClass.vue +7 -3
- package/edit/networking.k8s.io.ingress/RulePath.vue +1 -1
- package/edit/networking.k8s.io.ingress/__tests__/IngressClass.test.ts +58 -0
- package/edit/persistentvolume/__tests__/persistentvolume.test.ts +14 -2
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +26 -9
- package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +8 -10
- package/edit/provisioning.cattle.io.cluster/rke2.vue +31 -40
- package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +5 -2
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +6 -1
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +33 -2
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +3 -3
- package/edit/service.vue +0 -3
- package/edit/token.vue +32 -11
- package/edit/workload/Job.vue +6 -6
- package/edit/workload/__tests__/Job.test.ts +0 -1
- package/edit/workload/index.vue +1 -0
- package/edit/workload/mixins/workload.js +3 -3
- package/initialize/install-plugins.js +2 -1
- package/list/harvesterhci.io.management.cluster.vue +4 -1
- package/list/management.cattle.io.feature.vue +1 -0
- package/list/namespace.vue +3 -1
- package/list/provisioning.cattle.io.cluster.vue +20 -12
- package/list/workload.vue +7 -6
- package/machine-config/__tests__/vmwarevsphere.test.ts +48 -3
- package/machine-config/azure.vue +16 -4
- package/machine-config/vmwarevsphere.vue +16 -0
- package/mixins/resource-fetch.js +2 -1
- package/models/__tests__/logging.banzaicloud.io.flow.test.ts +88 -0
- package/models/__tests__/namespace.test.ts +25 -1
- package/models/cloudcredential.js +5 -0
- package/models/kontainerdriver.js +6 -3
- package/models/logging.banzaicloud.io.flow.js +2 -1
- package/models/management.cattle.io.node.js +3 -3
- package/models/management.cattle.io.setting.js +2 -1
- package/models/namespace.js +4 -5
- package/models/nodedriver.js +6 -3
- package/models/storage.k8s.io.storageclass.js +2 -2
- package/models/workload.js +4 -1
- package/package.json +1 -1
- package/pages/about.vue +16 -8
- package/pages/account/index.vue +80 -24
- package/pages/account/pri.vue +229 -0
- package/pages/auth/login.vue +195 -44
- package/pages/auth/logout.vue +4 -1
- package/pages/auth/setup.vue +144 -19
- package/pages/auth/verify.vue +13 -8
- package/pages/auth copy/login.vue +595 -0
- package/pages/auth copy/logout.vue +47 -0
- package/pages/auth copy/setup.vue +523 -0
- package/pages/auth copy/verify.vue +203 -0
- package/pages/c/_cluster/_product/namespaces.vue +5 -5
- package/pages/c/_cluster/apps/charts/chart.vue +1 -1
- package/pages/c/_cluster/apps/charts/install.vue +26 -26
- package/pages/c/_cluster/auth/config/index.vue +10 -12
- package/pages/c/_cluster/explorer/EventsTable.vue +38 -33
- package/pages/c/_cluster/explorer/index.vue +17 -15
- package/pages/c/_cluster/istio/index.vue +2 -2
- package/pages/c/_cluster/longhorn/index.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +1 -1
- package/pages/c/_cluster/monitoring/monitor/_namespace/_id.vue +4 -2
- package/pages/c/_cluster/monitoring/monitor/create.vue +4 -2
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/monitoring/route-receiver/_id.vue +4 -2
- package/pages/c/_cluster/monitoring/route-receiver/create.vue +5 -2
- package/pages/c/_cluster/neuvector/index.vue +1 -1
- package/pages/c/_cluster/settings/brand.vue +3 -3
- package/pages/c/_cluster/uiplugins/CatalogList/index.vue +8 -10
- package/pages/diagnostic.vue +59 -11
- package/pages/fail-whale.vue +14 -8
- package/pages/home.vue +24 -18
- package/pages/prefs.vue +9 -7
- package/pages/support/index.vue +4 -1
- package/pkg/tsconfig.json +9 -9
- package/pkg/vue.config.js +1 -1
- package/plugins/dashboard-store/normalize.js +3 -1
- package/plugins/dashboard-store/resource-class.js +31 -29
- package/plugins/internal-api/index.ts +37 -0
- package/plugins/internal-api/shared/base-api.ts +13 -0
- package/plugins/internal-api/shell/shell.api.ts +108 -0
- package/promptRemove/management.cattle.io.fleetworkspace.vue +1 -1
- package/promptRemove/management.cattle.io.globalrole.vue +1 -1
- package/promptRemove/management.cattle.io.project.vue +2 -2
- package/promptRemove/management.cattle.io.roletemplate.vue +1 -1
- package/promptRemove/pod.vue +1 -1
- package/public/index.html +2 -1
- package/rancher-components/BadgeState/BadgeState.vue +5 -1
- package/rancher-components/Banner/Banner.vue +8 -2
- package/rancher-components/Card/Card.vue +3 -6
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +5 -2
- package/rancher-components/Form/Radio/RadioButton.vue +3 -3
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +1 -5
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +9 -4
- package/rancher-components/RcDropdown/RcDropdownItem.vue +1 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +7 -3
- package/rancher-components/RcDropdown/types.ts +1 -0
- package/scripts/clean +0 -0
- package/scripts/extension/bundle +20 -0
- package/scripts/extension/helm/charts/ui-plugin-server/templates/_helpers.tpl +2 -2
- package/scripts/extension/helm/charts/ui-plugin-server/templates/cr.yaml +2 -1
- package/scripts/extension/helm/charts/ui-plugin-server/values.yaml +2 -0
- package/scripts/extension/helm/scripts/package +0 -0
- package/scripts/extension/helm/scripts/patch +0 -0
- package/scripts/extension/helm/scripts/version +0 -0
- package/scripts/extension/helmpatch +44 -31
- package/scripts/extension/parse-tag-name +0 -0
- package/scripts/extension/publish +12 -12
- package/scripts/publish-shell.sh +18 -23
- package/scripts/serve-pkgs +0 -0
- package/scripts/sync-shell-deps +0 -0
- package/scripts/test-plugins-build.sh +4 -6
- package/scripts/typegen.sh +28 -46
- package/server/har-file.js +25 -3
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +2 -2
- package/store/aws.js +9 -2
- package/store/features.js +2 -1
- package/store/i18n.js +3 -3
- package/store/modal.ts +71 -0
- package/store/slideInPanel.ts +47 -0
- package/store/type-map.js +9 -1
- package/types/cloud-shell/index.d.ts +11020 -0
- package/types/global-vue.d.ts +5 -0
- package/types/internal-api/shell/growl.d.ts +25 -0
- package/types/internal-api/shell/modal.d.ts +77 -0
- package/types/internal-api/shell/slideIn.d.ts +15 -0
- package/types/shell/index.d.ts +118 -128
- package/types/vue-shim.d.ts +4 -1
- package/utils/__tests__/object.test.ts +38 -4
- package/utils/__tests__/string.test.ts +2 -2
- package/utils/auth.js +1 -0
- package/utils/banners.js +0 -45
- package/utils/cluster.js +35 -0
- package/utils/color.js +9 -8
- package/utils/error.js +61 -3
- package/utils/errorTranslate.json +450 -30
- package/utils/object.js +46 -6
- package/utils/router.js +22 -1
- package/utils/select.js +26 -3
- package/utils/string.js +9 -8
- package/utils/title.ts +1 -1
- package/utils/validators/machine-pool.ts +20 -0
- package/vue.config.js +7 -2
- package/components/formatter/ExtensionCache.vue +0 -74
- package/components/formatter/Port.vue +0 -24
- package/components/formatter/SecretType.vue +0 -41
- package/types/resources/fleet.d.ts +0 -57
- package/types/resources/pod-security-admission.ts +0 -36
- package/types/resources/settings.d.ts +0 -93
- package/types/resources/userPreferences.d.ts +0 -13
- package/types/vue-shim.d +0 -20
package/types/shell/index.d.ts
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
// Auto-generated type definitions for shell
|
|
2
2
|
// Do not modify this file as changes will get overwritten
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default Vue;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// This is required to keep typescript from complaining. It is required for
|
|
9
|
-
// our i18n plugin. For more info see:
|
|
10
|
-
// https://v2.vuejs.org/v2/guide/typescript.html?redirect=true#Augmenting-Types-for-Use-with-Plugins
|
|
11
|
-
declare module 'vue/types/vue' {
|
|
12
|
-
// eslint-disable-next-line no-unused-vars
|
|
13
|
-
interface Vue {
|
|
14
|
-
/**
|
|
15
|
-
* Lookup a given string with the given arguments
|
|
16
|
-
* @param raw if set, do not do HTML escaping.
|
|
17
|
-
*/
|
|
18
|
-
t: (key: string, args?: Record<string, any>, raw?: boolean) => string,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare module 'js-yaml';
|
|
3
|
+
/// <reference types="@rancher/shell/types/vue-shim" />
|
|
4
|
+
/// <reference types="@rancher/shell/types/global-vue" />
|
|
23
5
|
|
|
24
6
|
// @shell/config/labels-annotations
|
|
25
7
|
|
|
@@ -305,6 +287,8 @@ export namespace NAME {
|
|
|
305
287
|
export { sort_3 as sort };
|
|
306
288
|
let formatter_3: string;
|
|
307
289
|
export { formatter_3 as formatter };
|
|
290
|
+
let width_2: number;
|
|
291
|
+
export { width_2 as width };
|
|
308
292
|
let canBeVariable_1: boolean;
|
|
309
293
|
export { canBeVariable_1 as canBeVariable };
|
|
310
294
|
}
|
|
@@ -329,8 +313,8 @@ export namespace SIMPLE_NAME {
|
|
|
329
313
|
export { value_5 as value };
|
|
330
314
|
let sort_5: string[];
|
|
331
315
|
export { sort_5 as sort };
|
|
332
|
-
let
|
|
333
|
-
export {
|
|
316
|
+
let width_3: number;
|
|
317
|
+
export { width_3 as width };
|
|
334
318
|
let canBeVariable_2: boolean;
|
|
335
319
|
export { canBeVariable_2 as canBeVariable };
|
|
336
320
|
}
|
|
@@ -535,8 +519,8 @@ export namespace CPU {
|
|
|
535
519
|
export { value_21 as value };
|
|
536
520
|
let formatter_11: string;
|
|
537
521
|
export { formatter_11 as formatter };
|
|
538
|
-
let
|
|
539
|
-
export {
|
|
522
|
+
let width_4: number;
|
|
523
|
+
export { width_4 as width };
|
|
540
524
|
}
|
|
541
525
|
export namespace RAM {
|
|
542
526
|
let name_23: string;
|
|
@@ -551,8 +535,8 @@ export namespace RAM {
|
|
|
551
535
|
export { value_22 as value };
|
|
552
536
|
let formatter_12: string;
|
|
553
537
|
export { formatter_12 as formatter };
|
|
554
|
-
let
|
|
555
|
-
export {
|
|
538
|
+
let width_5: number;
|
|
539
|
+
export { width_5 as width };
|
|
556
540
|
}
|
|
557
541
|
export namespace PRINCIPAL {
|
|
558
542
|
let name_24: string;
|
|
@@ -579,8 +563,8 @@ export namespace PODS {
|
|
|
579
563
|
export { value_24 as value };
|
|
580
564
|
let formatter_14: string;
|
|
581
565
|
export { formatter_14 as formatter };
|
|
582
|
-
let
|
|
583
|
-
export {
|
|
566
|
+
let width_6: number;
|
|
567
|
+
export { width_6 as width };
|
|
584
568
|
}
|
|
585
569
|
export namespace AGE {
|
|
586
570
|
let name_26: string;
|
|
@@ -597,8 +581,8 @@ export namespace AGE {
|
|
|
597
581
|
export { search_4 as search };
|
|
598
582
|
let formatter_15: string;
|
|
599
583
|
export { formatter_15 as formatter };
|
|
600
|
-
let
|
|
601
|
-
export {
|
|
584
|
+
let width_7: number;
|
|
585
|
+
export { width_7 as width };
|
|
602
586
|
let align_1: string;
|
|
603
587
|
export { align_1 as align };
|
|
604
588
|
}
|
|
@@ -631,8 +615,8 @@ export namespace DESCRIPTION {
|
|
|
631
615
|
export { align_2 as align };
|
|
632
616
|
let sort_28: string[];
|
|
633
617
|
export { sort_28 as sort };
|
|
634
|
-
let
|
|
635
|
-
export {
|
|
618
|
+
let width_8: number;
|
|
619
|
+
export { width_8 as width };
|
|
636
620
|
}
|
|
637
621
|
export namespace NS_SNAPSHOT_QUOTA {
|
|
638
622
|
let name_29: string;
|
|
@@ -722,8 +706,8 @@ export namespace SCALE {
|
|
|
722
706
|
export { sort_33 as sort };
|
|
723
707
|
let formatter_22: string;
|
|
724
708
|
export { formatter_22 as formatter };
|
|
725
|
-
let
|
|
726
|
-
export {
|
|
709
|
+
let width_9: number;
|
|
710
|
+
export { width_9 as width };
|
|
727
711
|
let align_4: string;
|
|
728
712
|
export { align_4 as align };
|
|
729
713
|
}
|
|
@@ -744,8 +728,8 @@ export namespace SUCCESS {
|
|
|
744
728
|
export { labelKey_36 as labelKey };
|
|
745
729
|
let value_35: string;
|
|
746
730
|
export { value_35 as value };
|
|
747
|
-
let
|
|
748
|
-
export {
|
|
731
|
+
let width_10: number;
|
|
732
|
+
export { width_10 as width };
|
|
749
733
|
let align_5: string;
|
|
750
734
|
export { align_5 as align };
|
|
751
735
|
}
|
|
@@ -756,8 +740,8 @@ export namespace REQ_RATE {
|
|
|
756
740
|
export { labelKey_37 as labelKey };
|
|
757
741
|
let value_36: string;
|
|
758
742
|
export { value_36 as value };
|
|
759
|
-
let
|
|
760
|
-
export {
|
|
743
|
+
let width_11: number;
|
|
744
|
+
export { width_11 as width };
|
|
761
745
|
let align_6: string;
|
|
762
746
|
export { align_6 as align };
|
|
763
747
|
}
|
|
@@ -768,8 +752,8 @@ export namespace P95 {
|
|
|
768
752
|
export { labelKey_38 as labelKey };
|
|
769
753
|
let value_37: string;
|
|
770
754
|
export { value_37 as value };
|
|
771
|
-
let
|
|
772
|
-
export {
|
|
755
|
+
let width_12: number;
|
|
756
|
+
export { width_12 as width };
|
|
773
757
|
let align_7: string;
|
|
774
758
|
export { align_7 as align };
|
|
775
759
|
}
|
|
@@ -800,8 +784,8 @@ export namespace TARGET_KIND {
|
|
|
800
784
|
export { labelKey_41 as labelKey };
|
|
801
785
|
let value_40: string;
|
|
802
786
|
export { value_40 as value };
|
|
803
|
-
let
|
|
804
|
-
export {
|
|
787
|
+
let width_13: number;
|
|
788
|
+
export { width_13 as width };
|
|
805
789
|
}
|
|
806
790
|
export namespace TARGET {
|
|
807
791
|
let name_42: string;
|
|
@@ -930,8 +914,8 @@ export namespace SIMPLE_TYPE {
|
|
|
930
914
|
export { value_50 as value };
|
|
931
915
|
let sort_44: string[];
|
|
932
916
|
export { sort_44 as sort };
|
|
933
|
-
let
|
|
934
|
-
export {
|
|
917
|
+
let width_14: number;
|
|
918
|
+
export { width_14 as width };
|
|
935
919
|
}
|
|
936
920
|
export namespace IMAGE_SIZE {
|
|
937
921
|
let name_52: string;
|
|
@@ -956,8 +940,8 @@ export namespace TYPE {
|
|
|
956
940
|
export { getValue_11 as getValue };
|
|
957
941
|
let sort_46: string[];
|
|
958
942
|
export { sort_46 as sort };
|
|
959
|
-
let
|
|
960
|
-
export {
|
|
943
|
+
let width_15: number;
|
|
944
|
+
export { width_15 as width };
|
|
961
945
|
}
|
|
962
946
|
export namespace SUB_TYPE {
|
|
963
947
|
let name_54: string;
|
|
@@ -968,8 +952,8 @@ export namespace SUB_TYPE {
|
|
|
968
952
|
export { value_53 as value };
|
|
969
953
|
let sort_47: string[];
|
|
970
954
|
export { sort_47 as sort };
|
|
971
|
-
let
|
|
972
|
-
export {
|
|
955
|
+
let width_16: number;
|
|
956
|
+
export { width_16 as width };
|
|
973
957
|
}
|
|
974
958
|
export namespace EVENT_TYPE {
|
|
975
959
|
let name_55: string;
|
|
@@ -990,8 +974,8 @@ export namespace STATUS {
|
|
|
990
974
|
export { value_55 as value };
|
|
991
975
|
let sort_49: string[];
|
|
992
976
|
export { sort_49 as sort };
|
|
993
|
-
let
|
|
994
|
-
export {
|
|
977
|
+
let width_17: number;
|
|
978
|
+
export { width_17 as width };
|
|
995
979
|
}
|
|
996
980
|
export namespace LAST_SEEN_TIME {
|
|
997
981
|
let name_57: string;
|
|
@@ -1018,8 +1002,8 @@ export namespace LAST_HEARTBEAT_TIME {
|
|
|
1018
1002
|
export { sort_51 as sort };
|
|
1019
1003
|
let formatter_29: string;
|
|
1020
1004
|
export { formatter_29 as formatter };
|
|
1021
|
-
let
|
|
1022
|
-
export {
|
|
1005
|
+
let width_18: number;
|
|
1006
|
+
export { width_18 as width };
|
|
1023
1007
|
}
|
|
1024
1008
|
export namespace REASON {
|
|
1025
1009
|
let name_59: string;
|
|
@@ -1188,8 +1172,8 @@ export namespace INGRESS_DEFAULT_BACKEND {
|
|
|
1188
1172
|
export { sort_66 as sort };
|
|
1189
1173
|
let formatter_35: string;
|
|
1190
1174
|
export { formatter_35 as formatter };
|
|
1191
|
-
let
|
|
1192
|
-
export {
|
|
1175
|
+
let width_19: number;
|
|
1176
|
+
export { width_19 as width };
|
|
1193
1177
|
let align_10: string;
|
|
1194
1178
|
export { align_10 as align };
|
|
1195
1179
|
}
|
|
@@ -1272,8 +1256,8 @@ export namespace RESOURCES {
|
|
|
1272
1256
|
export { value_79 as value };
|
|
1273
1257
|
let sort_73: string;
|
|
1274
1258
|
export { sort_73 as sort };
|
|
1275
|
-
let
|
|
1276
|
-
export {
|
|
1259
|
+
let width_20: number;
|
|
1260
|
+
export { width_20 as width };
|
|
1277
1261
|
}
|
|
1278
1262
|
export namespace URL {
|
|
1279
1263
|
let name_81: string;
|
|
@@ -1342,8 +1326,8 @@ export namespace WORKLOAD_HEALTH_SCALE {
|
|
|
1342
1326
|
export { formatter_42 as formatter };
|
|
1343
1327
|
export function getValue_13(): any;
|
|
1344
1328
|
export { getValue_13 as getValue };
|
|
1345
|
-
let
|
|
1346
|
-
export {
|
|
1329
|
+
let width_21: number;
|
|
1330
|
+
export { width_21 as width };
|
|
1347
1331
|
export let skipSelect: boolean;
|
|
1348
1332
|
let delayLoading_1: boolean;
|
|
1349
1333
|
export { delayLoading_1 as delayLoading };
|
|
@@ -1367,8 +1351,8 @@ export namespace FLEET_SUMMARY {
|
|
|
1367
1351
|
export { formatter_43 as formatter };
|
|
1368
1352
|
let align_11: string;
|
|
1369
1353
|
export { align_11 as align };
|
|
1370
|
-
let
|
|
1371
|
-
export {
|
|
1354
|
+
let width_22: number;
|
|
1355
|
+
export { width_22 as width };
|
|
1372
1356
|
}
|
|
1373
1357
|
export namespace FLEET_REPO_CLUSTER_SUMMARY {
|
|
1374
1358
|
let name_87: string;
|
|
@@ -1385,8 +1369,8 @@ export namespace FLEET_REPO_CLUSTER_SUMMARY {
|
|
|
1385
1369
|
export { formatter_44 as formatter };
|
|
1386
1370
|
let align_12: string;
|
|
1387
1371
|
export { align_12 as align };
|
|
1388
|
-
let
|
|
1389
|
-
export {
|
|
1372
|
+
let width_23: number;
|
|
1373
|
+
export { width_23 as width };
|
|
1390
1374
|
}
|
|
1391
1375
|
export namespace FLEET_REPO_PER_CLUSTER_STATE {
|
|
1392
1376
|
let name_88: string;
|
|
@@ -1397,8 +1381,8 @@ export namespace FLEET_REPO_PER_CLUSTER_STATE {
|
|
|
1397
1381
|
export { tooltip_1 as tooltip };
|
|
1398
1382
|
let sort_79: string[];
|
|
1399
1383
|
export { sort_79 as sort };
|
|
1400
|
-
let
|
|
1401
|
-
export {
|
|
1384
|
+
let width_24: number;
|
|
1385
|
+
export { width_24 as width };
|
|
1402
1386
|
let _default_2: string;
|
|
1403
1387
|
export { _default_2 as default };
|
|
1404
1388
|
let formatter_45: string;
|
|
@@ -1423,8 +1407,8 @@ export namespace APP_SUMMARY {
|
|
|
1423
1407
|
export { formatter_46 as formatter };
|
|
1424
1408
|
let align_13: string;
|
|
1425
1409
|
export { align_13 as align };
|
|
1426
|
-
let
|
|
1427
|
-
export {
|
|
1410
|
+
let width_25: number;
|
|
1411
|
+
export { width_25 as width };
|
|
1428
1412
|
}
|
|
1429
1413
|
export namespace CONSTRAINT_VIOLATION_CONSTRAINT_LINK {
|
|
1430
1414
|
let name_90: string;
|
|
@@ -1581,8 +1565,8 @@ export namespace GROUP_NAME {
|
|
|
1581
1565
|
export { search_12 as search };
|
|
1582
1566
|
let formatter_53: string;
|
|
1583
1567
|
export { formatter_53 as formatter };
|
|
1584
|
-
let
|
|
1585
|
-
export {
|
|
1568
|
+
let width_26: number;
|
|
1569
|
+
export { width_26 as width };
|
|
1586
1570
|
}
|
|
1587
1571
|
export namespace GROUP_ROLE_NAME {
|
|
1588
1572
|
let name_100: string;
|
|
@@ -1649,8 +1633,8 @@ export namespace ACCESS_KEY {
|
|
|
1649
1633
|
export { align_14 as align };
|
|
1650
1634
|
let sort_95: string[];
|
|
1651
1635
|
export { sort_95 as sort };
|
|
1652
|
-
let
|
|
1653
|
-
export {
|
|
1636
|
+
let width_27: number;
|
|
1637
|
+
export { width_27 as width };
|
|
1654
1638
|
}
|
|
1655
1639
|
export namespace SCOPE {
|
|
1656
1640
|
let name_106: string;
|
|
@@ -1665,8 +1649,8 @@ export namespace SCOPE {
|
|
|
1665
1649
|
export { align_15 as align };
|
|
1666
1650
|
let sort_96: string[];
|
|
1667
1651
|
export { sort_96 as sort };
|
|
1668
|
-
let
|
|
1669
|
-
export {
|
|
1652
|
+
let width_28: number;
|
|
1653
|
+
export { width_28 as width };
|
|
1670
1654
|
}
|
|
1671
1655
|
export namespace SCOPE_NORMAN {
|
|
1672
1656
|
let value_105: string;
|
|
@@ -1685,8 +1669,8 @@ export namespace EXPIRES {
|
|
|
1685
1669
|
export { align_16 as align };
|
|
1686
1670
|
let sort_98: string[];
|
|
1687
1671
|
export { sort_98 as sort };
|
|
1688
|
-
let
|
|
1689
|
-
export {
|
|
1672
|
+
let width_29: number;
|
|
1673
|
+
export { width_29 as width };
|
|
1690
1674
|
let formatter_56: string;
|
|
1691
1675
|
export { formatter_56 as formatter };
|
|
1692
1676
|
}
|
|
@@ -1701,8 +1685,8 @@ export namespace LAST_USED {
|
|
|
1701
1685
|
export { align_17 as align };
|
|
1702
1686
|
let sort_99: string[];
|
|
1703
1687
|
export { sort_99 as sort };
|
|
1704
|
-
let
|
|
1705
|
-
export {
|
|
1688
|
+
let width_30: number;
|
|
1689
|
+
export { width_30 as width };
|
|
1706
1690
|
let formatter_57: string;
|
|
1707
1691
|
export { formatter_57 as formatter };
|
|
1708
1692
|
export namespace formatterOpts_14 {
|
|
@@ -1721,8 +1705,8 @@ export namespace RESTART {
|
|
|
1721
1705
|
export { sort_100 as sort };
|
|
1722
1706
|
let formatter_58: string;
|
|
1723
1707
|
export { formatter_58 as formatter };
|
|
1724
|
-
let
|
|
1725
|
-
export {
|
|
1708
|
+
let width_31: number;
|
|
1709
|
+
export { width_31 as width };
|
|
1726
1710
|
let align_18: string;
|
|
1727
1711
|
export { align_18 as align };
|
|
1728
1712
|
}
|
|
@@ -1761,8 +1745,8 @@ export namespace STATE_NORMAN {
|
|
|
1761
1745
|
export { sort_102 as sort };
|
|
1762
1746
|
let value_111: string;
|
|
1763
1747
|
export { value_111 as value };
|
|
1764
|
-
let
|
|
1765
|
-
export {
|
|
1748
|
+
let width_32: number;
|
|
1749
|
+
export { width_32 as width };
|
|
1766
1750
|
let _default_3: string;
|
|
1767
1751
|
export { _default_3 as default };
|
|
1768
1752
|
let formatter_60: string;
|
|
@@ -1834,8 +1818,8 @@ export namespace FLEET_BUNDLE_TYPE {
|
|
|
1834
1818
|
export { value_116 as value };
|
|
1835
1819
|
let sort_107: string[];
|
|
1836
1820
|
export { sort_107 as sort };
|
|
1837
|
-
let
|
|
1838
|
-
export {
|
|
1821
|
+
let width_33: number;
|
|
1822
|
+
export { width_33 as width };
|
|
1839
1823
|
}
|
|
1840
1824
|
export namespace FLEET_REPO_CLUSTERS_READY {
|
|
1841
1825
|
let name_118: string;
|
|
@@ -2475,7 +2459,7 @@ export default class Namespace {
|
|
|
2475
2459
|
get isObscure(): any;
|
|
2476
2460
|
get projectId(): any;
|
|
2477
2461
|
get project(): any;
|
|
2478
|
-
get
|
|
2462
|
+
get groupById(): any;
|
|
2479
2463
|
get projectNameSort(): any;
|
|
2480
2464
|
get istioInstalled(): boolean;
|
|
2481
2465
|
get injectionEnabled(): boolean;
|
|
@@ -2880,37 +2864,24 @@ export default class Resource {
|
|
|
2880
2864
|
divider: boolean;
|
|
2881
2865
|
action?: undefined;
|
|
2882
2866
|
label?: undefined;
|
|
2883
|
-
icon?: undefined;
|
|
2884
2867
|
enabled?: undefined;
|
|
2868
|
+
altAction?: undefined;
|
|
2885
2869
|
bulkable?: undefined;
|
|
2886
2870
|
bulkAction?: undefined;
|
|
2887
2871
|
weight?: undefined;
|
|
2888
|
-
altAction?: undefined;
|
|
2889
2872
|
} | {
|
|
2890
2873
|
action: string;
|
|
2891
2874
|
label: any;
|
|
2892
|
-
icon: string;
|
|
2893
2875
|
enabled: any;
|
|
2894
2876
|
divider?: undefined;
|
|
2877
|
+
altAction?: undefined;
|
|
2895
2878
|
bulkable?: undefined;
|
|
2896
2879
|
bulkAction?: undefined;
|
|
2897
2880
|
weight?: undefined;
|
|
2898
|
-
altAction?: undefined;
|
|
2899
|
-
} | {
|
|
2900
|
-
action: string;
|
|
2901
|
-
label: any;
|
|
2902
|
-
icon: string;
|
|
2903
|
-
bulkable: boolean;
|
|
2904
|
-
bulkAction: string;
|
|
2905
|
-
enabled: boolean;
|
|
2906
|
-
weight: number;
|
|
2907
|
-
divider?: undefined;
|
|
2908
|
-
altAction?: undefined;
|
|
2909
2881
|
} | {
|
|
2910
2882
|
action: string;
|
|
2911
2883
|
altAction: string;
|
|
2912
2884
|
label: any;
|
|
2913
|
-
icon: string;
|
|
2914
2885
|
bulkable: boolean;
|
|
2915
2886
|
enabled: any;
|
|
2916
2887
|
bulkAction: string;
|
|
@@ -2921,37 +2892,24 @@ export default class Resource {
|
|
|
2921
2892
|
divider: boolean;
|
|
2922
2893
|
action?: undefined;
|
|
2923
2894
|
label?: undefined;
|
|
2924
|
-
icon?: undefined;
|
|
2925
2895
|
enabled?: undefined;
|
|
2896
|
+
altAction?: undefined;
|
|
2926
2897
|
bulkable?: undefined;
|
|
2927
2898
|
bulkAction?: undefined;
|
|
2928
2899
|
weight?: undefined;
|
|
2929
|
-
altAction?: undefined;
|
|
2930
2900
|
} | {
|
|
2931
2901
|
action: string;
|
|
2932
2902
|
label: any;
|
|
2933
|
-
icon: string;
|
|
2934
2903
|
enabled: any;
|
|
2935
2904
|
divider?: undefined;
|
|
2905
|
+
altAction?: undefined;
|
|
2936
2906
|
bulkable?: undefined;
|
|
2937
2907
|
bulkAction?: undefined;
|
|
2938
2908
|
weight?: undefined;
|
|
2939
|
-
altAction?: undefined;
|
|
2940
|
-
} | {
|
|
2941
|
-
action: string;
|
|
2942
|
-
label: any;
|
|
2943
|
-
icon: string;
|
|
2944
|
-
bulkable: boolean;
|
|
2945
|
-
bulkAction: string;
|
|
2946
|
-
enabled: boolean;
|
|
2947
|
-
weight: number;
|
|
2948
|
-
divider?: undefined;
|
|
2949
|
-
altAction?: undefined;
|
|
2950
2909
|
} | {
|
|
2951
2910
|
action: string;
|
|
2952
2911
|
altAction: string;
|
|
2953
2912
|
label: any;
|
|
2954
|
-
icon: string;
|
|
2955
2913
|
bulkable: boolean;
|
|
2956
2914
|
enabled: any;
|
|
2957
2915
|
bulkAction: string;
|
|
@@ -3446,13 +3404,6 @@ export function getIndividualBanners(store: any): {};
|
|
|
3446
3404
|
* Overlay settings from the individual banner settings onto the single banner setting
|
|
3447
3405
|
*/
|
|
3448
3406
|
export function overlayIndividualBanners(parsedBanner: any, banners: any): void;
|
|
3449
|
-
/**
|
|
3450
|
-
* Get banner font sizes - used to add margins when header and footer banners are present
|
|
3451
|
-
**/
|
|
3452
|
-
export function getGlobalBannerFontSizes(store: any): {
|
|
3453
|
-
headerFont: string;
|
|
3454
|
-
footerFont: string;
|
|
3455
|
-
};
|
|
3456
3407
|
}
|
|
3457
3408
|
|
|
3458
3409
|
// @shell/utils/clipboard
|
|
@@ -3505,6 +3456,13 @@ export function abbreviateClusterName(input: string): string;
|
|
|
3505
3456
|
export function labelForAddon(store: any, name: any, configuration?: boolean): any;
|
|
3506
3457
|
export function filterOutDeprecatedPatchVersions(allVersions: any, currentVersion: any): any;
|
|
3507
3458
|
export function getAllOptionsAfterCurrentVersion(store: any, versions: any, currentVersion: any, defaultVersion: any): any;
|
|
3459
|
+
export function initSchedulingCustomization(value: any, features: any, store: any, mode: any): Promise<{
|
|
3460
|
+
clusterAgentDefaultPC: any;
|
|
3461
|
+
clusterAgentDefaultPDB: any;
|
|
3462
|
+
schedulingCustomizationFeatureEnabled: any;
|
|
3463
|
+
schedulingCustomizationOriginallyEnabled: boolean;
|
|
3464
|
+
errors: any[];
|
|
3465
|
+
}>;
|
|
3508
3466
|
}
|
|
3509
3467
|
|
|
3510
3468
|
// @shell/utils/color
|
|
@@ -3839,7 +3797,8 @@ export const EMBER_FRAME: "ember-iframe";
|
|
|
3839
3797
|
|
|
3840
3798
|
declare module '@shell/utils/error' {
|
|
3841
3799
|
export function stringify(err: any): any;
|
|
3842
|
-
export function exceptionToErrorsArray(err: any): any;
|
|
3800
|
+
export function exceptionToErrorsArray(err: any): any[];
|
|
3801
|
+
export function translateError(error: any): any;
|
|
3843
3802
|
export class ClusterNotFoundError extends Error {
|
|
3844
3803
|
static NAME: string;
|
|
3845
3804
|
constructor(message: any);
|
|
@@ -3987,7 +3946,8 @@ export function dropKeys(obj: any, keys: any): void;
|
|
|
3987
3946
|
*/
|
|
3988
3947
|
export function deepToRaw(obj: any, cache?: any): any;
|
|
3989
3948
|
/**
|
|
3990
|
-
* Helper function to alter Lodash merge function default behaviour on merging
|
|
3949
|
+
* Helper function to alter Lodash merge function default behaviour on merging
|
|
3950
|
+
* arrays and objects.
|
|
3991
3951
|
*
|
|
3992
3952
|
* In rke2.vue, the syncMachineConfigWithLatest function updates machine pool configuration by
|
|
3993
3953
|
* merging the latest configuration received from the backend with the current configuration updated by the user.
|
|
@@ -3999,13 +3959,39 @@ export function deepToRaw(obj: any, cache?: any): any;
|
|
|
3999
3959
|
* merge(lastSavedConfigFromBE, currentConfigByUser); // returns { a: ["test"] }; but we expect { a: [] };
|
|
4000
3960
|
*
|
|
4001
3961
|
* More info: https://github.com/lodash/lodash/issues/1313
|
|
4002
|
-
|
|
3962
|
+
|
|
4003
3963
|
* This helper function addresses the issue by always replacing the old array with the new array during the merge process.
|
|
4004
3964
|
*
|
|
4005
|
-
* This helper is used for another case in rke2.vue to handle merging addon chart default values with the user's current values.
|
|
3965
|
+
* This helper is also used for another case in rke2.vue to handle merging addon chart default values with the user's current values.
|
|
4006
3966
|
* It fixed https://github.com/rancher/dashboard/issues/12418
|
|
3967
|
+
*
|
|
3968
|
+
* If `mutateOriginal` is true, the merge is done directly into `obj1` (mutating it).
|
|
3969
|
+
* This is useful in cases like:
|
|
3970
|
+
* machinePool.config = mergeWithReplace(clonedLatestConfig, clonedCurrentConfig, { mutateOriginal: true })
|
|
3971
|
+
* where merging into a new empty object may lead to incomplete structure.
|
|
3972
|
+
*
|
|
3973
|
+
* Use `mutateOriginal` when you want to preserve obj1’s original shape, references,
|
|
3974
|
+
* or when assigning the result directly to an existing object.
|
|
3975
|
+
*
|
|
3976
|
+
* @param {Object} [obj1={}] - The first object to merge
|
|
3977
|
+
* @param {Object} [obj2={}] - The second object to merge
|
|
3978
|
+
* @param {Object} [options={}] - Options for customizing merge behavior
|
|
3979
|
+
* @param {boolean} [options.mutateOriginal=false] - true: mutates obj1
|
|
3980
|
+
* directly. false: returns a new object
|
|
3981
|
+
* @param {boolean} [options.replaceArray=true] - true: replaces arrays in obj1
|
|
3982
|
+
* with arrays in obj2 when both properties are arrays
|
|
3983
|
+
* false: default lodash merge behavior - recursively merges
|
|
3984
|
+
* array members
|
|
3985
|
+
* @param {boolean} [options.replaceObjectProps=false] - true: merges objects in
|
|
3986
|
+
* obj1 with objects in obj2, overwriting duplicate props
|
|
3987
|
+
* false: default lodash merge behavior - recursively merges
|
|
3988
|
+
* object props
|
|
4007
3989
|
*/
|
|
4008
|
-
export function
|
|
3990
|
+
export function mergeWithReplace(obj1?: any, obj2?: any, { mutateOriginal, replaceArray, replaceObjectProps, }?: {
|
|
3991
|
+
mutateOriginal?: boolean;
|
|
3992
|
+
replaceArray?: boolean;
|
|
3993
|
+
replaceObjectProps?: boolean;
|
|
3994
|
+
}): any;
|
|
4009
3995
|
export { isEqualBasic as isEqual };
|
|
4010
3996
|
export function toDictionary(array: any, callback: any): any;
|
|
4011
3997
|
/**
|
|
@@ -4175,6 +4161,10 @@ export function setPromiseResult(promise: any, obj: any, key: any, label: any):
|
|
|
4175
4161
|
// @shell/utils/router
|
|
4176
4162
|
|
|
4177
4163
|
declare module '@shell/utils/router' {
|
|
4164
|
+
export function harvesterhci2cloud(str: any): any;
|
|
4165
|
+
export function cloud2harvesterhci(str: any): any;
|
|
4166
|
+
export function harvester2cloud(str: any): any;
|
|
4167
|
+
export function cloud2harvester(str: any): any;
|
|
4178
4168
|
export function queryParamsFor(current: any, qp: any, defaults?: {}): any;
|
|
4179
4169
|
export function getClusterFromRoute(to: any): any;
|
|
4180
4170
|
export function getProductFromRoute(to: any): any;
|
|
@@ -4190,7 +4180,7 @@ export function routeRequiresInstallRedirect(to: any): boolean;
|
|
|
4190
4180
|
|
|
4191
4181
|
declare module '@shell/utils/select' {
|
|
4192
4182
|
export function onClickOption(option: any, e: any): void;
|
|
4193
|
-
export function calculatePosition(dropdownList: any, component: any, width: any, placement: any): void;
|
|
4183
|
+
export function calculatePosition(dropdownList: any, component: any, width: any, placement: any, type: any, isLabel: any, leftWidth: any): void;
|
|
4194
4184
|
}
|
|
4195
4185
|
|
|
4196
4186
|
// @shell/utils/selector
|
|
@@ -4371,7 +4361,7 @@ export function random32(count: any): number | number[];
|
|
|
4371
4361
|
export function randomStr(length?: number, chars?: string): any;
|
|
4372
4362
|
export function formatPercent(value: any, maxPrecision?: number): string;
|
|
4373
4363
|
export function pluralize(str: any): any;
|
|
4374
|
-
export function resourceNames(names: any, t: any,
|
|
4364
|
+
export function resourceNames(names: any, plusMore: any, t: any, endString: any): any;
|
|
4375
4365
|
export function indent(lines: any, count?: number, token?: string, afterRegex?: any): any;
|
|
4376
4366
|
export function decamelize(str: any): any;
|
|
4377
4367
|
export function dasherize(str: any): any;
|
|
@@ -4379,7 +4369,7 @@ export function asciiLike(str: any): boolean;
|
|
|
4379
4369
|
export function coerceStringTypeToScalarType(val: any, type: any): any;
|
|
4380
4370
|
export function matchesSomeRegex(stringRaw: any, regexes?: any[]): boolean;
|
|
4381
4371
|
export function ensureRegex(strOrRegex: any, exact?: boolean): any;
|
|
4382
|
-
export function nlToBr(value: any):
|
|
4372
|
+
export function nlToBr(value: any): any;
|
|
4383
4373
|
export function splitObjectPath(path: any): any;
|
|
4384
4374
|
export function joinObjectPath(ary: any): string;
|
|
4385
4375
|
export function shortenedImage(image: any): any;
|
package/types/vue-shim.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
import type ShellApi from '@shell/plugins/internal-api/shell/shell.api';
|
|
3
|
+
|
|
2
4
|
export {};
|
|
3
5
|
|
|
4
6
|
declare module 'vue' {
|
|
@@ -15,6 +17,7 @@ declare module 'vue' {
|
|
|
15
17
|
getters: Record<string, any>,
|
|
16
18
|
dispatch: (action: string, payload?: any) => Promise<any>,
|
|
17
19
|
commit: (mutation: string, payload?: any) => void,
|
|
18
|
-
}
|
|
20
|
+
},
|
|
21
|
+
$shell: ShellApi,
|
|
19
22
|
}
|
|
20
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, isReactive } from 'vue';
|
|
2
2
|
import {
|
|
3
|
-
clone, get, getter, isEmpty, toDictionary, remove, diff, definedKeys, deepToRaw,
|
|
3
|
+
clone, get, getter, isEmpty, toDictionary, remove, diff, definedKeys, deepToRaw, mergeWithReplace
|
|
4
4
|
} from '@shell/utils/object';
|
|
5
5
|
|
|
6
6
|
describe('fx: get', () => {
|
|
@@ -379,7 +379,7 @@ describe('fx: deepToRaw', () => {
|
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
describe('fx:
|
|
382
|
+
describe('fx: mergeWithReplace', () => {
|
|
383
383
|
const testCases: Array<[object?, object?, object?]> = [
|
|
384
384
|
// Some array test cases, an array from the first object should be replaced with the array from the second object
|
|
385
385
|
[{ a: ['one'] }, { a: [] }, { a: [] }],
|
|
@@ -401,8 +401,42 @@ describe('fx: mergeWithReplaceArrays', () => {
|
|
|
401
401
|
[undefined, {}, {}],
|
|
402
402
|
];
|
|
403
403
|
|
|
404
|
-
it.each(testCases)('should merge properly', (obj1, obj2, expected) => {
|
|
405
|
-
const result =
|
|
404
|
+
it.each(testCases)('should merge arrays properly', (obj1, obj2, expected) => {
|
|
405
|
+
const result = mergeWithReplace(obj1, obj2);
|
|
406
|
+
|
|
407
|
+
expect(result).toStrictEqual(expected);
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
it.each([
|
|
411
|
+
[
|
|
412
|
+
{ a: { b: false, c: false } }, { a: { b: true, c: null } }, { a: { b: true, c: null } }
|
|
413
|
+
],
|
|
414
|
+
[
|
|
415
|
+
{
|
|
416
|
+
a: [{
|
|
417
|
+
b: 'test', c: 'test', value: true
|
|
418
|
+
}]
|
|
419
|
+
}, {
|
|
420
|
+
a: [{
|
|
421
|
+
b: 'test', c: 'test', operator: 'exists'
|
|
422
|
+
}]
|
|
423
|
+
}, {
|
|
424
|
+
a: [{
|
|
425
|
+
b: 'test', c: 'test', operator: 'exists'
|
|
426
|
+
}]
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
{
|
|
431
|
+
a: { enabled: false }, b: { enabled: false }, c: { enabled: false }
|
|
432
|
+
},
|
|
433
|
+
{ c: { enabled: true, stripUnderscores: true } },
|
|
434
|
+
{
|
|
435
|
+
a: { enabled: false }, b: { enabled: false }, c: { enabled: true, stripUnderscores: true }
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
])('should overwrite duplicate object properties when merging objects', (left, right, expected) => {
|
|
439
|
+
const result = mergeWithReplace(left, right, { replaceObjectProps: true });
|
|
406
440
|
|
|
407
441
|
expect(result).toStrictEqual(expected);
|
|
408
442
|
});
|
|
@@ -81,9 +81,9 @@ describe('fx: resourceNames', () => {
|
|
|
81
81
|
it.each(args)(`having: %p`, (
|
|
82
82
|
names,
|
|
83
83
|
expectation,
|
|
84
|
-
options,
|
|
84
|
+
options: any,
|
|
85
85
|
) => {
|
|
86
|
-
const result = resourceNames(names, t, options);
|
|
86
|
+
const result = resourceNames(names, options.plusMore, t, options.endString);
|
|
87
87
|
|
|
88
88
|
expect(result).toStrictEqual(expectation);
|
|
89
89
|
});
|
package/utils/auth.js
CHANGED
|
@@ -242,6 +242,7 @@ export function setProduct(store, to) {
|
|
|
242
242
|
*/
|
|
243
243
|
export function validateResource(store, to) {
|
|
244
244
|
const product = store.getters['currentProduct'];
|
|
245
|
+
|
|
245
246
|
const resource = getResourceFromRoute(to);
|
|
246
247
|
|
|
247
248
|
// In order to check a resource is valid we need these
|