@rancher/shell 0.2.2 → 0.2.4
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/assets/brand/csp/dark/rancher-logo.svg +148 -0
- package/assets/brand/csp/favicon.png +0 -0
- package/assets/brand/csp/metadata.json +3 -0
- package/assets/brand/csp/rancher-logo.svg +130 -0
- package/assets/styles/app.scss +2 -1
- package/assets/styles/global/_layout.scss +53 -0
- package/assets/styles/themes/_csp.scss +25 -0
- package/assets/styles/themes/_dark.scss +2 -1
- package/assets/styles/themes/_light.scss +2 -1
- package/assets/styles/vendor/vue-select.scss +0 -5
- package/assets/translations/en-us.yaml +45 -28
- package/chart/istio.vue +81 -22
- package/chart/logging/index.vue +20 -6
- package/chart/monitoring/alerting/index.vue +4 -1
- package/chart/monitoring/index.vue +41 -9
- package/chart/monitoring/prometheus/index.vue +33 -29
- package/chart/monitoring/steps/uninstall-v1.vue +8 -4
- package/chart/rancher-backup/S3.vue +43 -8
- package/chart/rancher-backup/index.vue +23 -5
- package/chart/rancher-gatekeeper.vue +10 -2
- package/cloud-credential/aws.vue +8 -2
- package/cloud-credential/digitalocean.vue +4 -1
- package/cloud-credential/gcp.vue +9 -2
- package/cloud-credential/generic.vue +6 -1
- package/cloud-credential/harvester.vue +4 -1
- package/cloud-credential/linode.vue +4 -1
- package/cloud-credential/s3.vue +4 -1
- package/components/.DS_Store +0 -0
- package/components/ActionDropdown.vue +4 -1
- package/components/ActionMenu.vue +17 -4
- package/components/AdvancedSection.vue +6 -1
- package/components/Alert.vue +5 -1
- package/components/AssignTo.vue +24 -6
- package/components/AsyncButton.vue +10 -0
- package/components/AwsComplianceBanner.vue +4 -1
- package/components/BackLink.vue +5 -1
- package/components/BannerGraphic.vue +16 -4
- package/components/BrandImage.vue +4 -1
- package/components/ButtonDropdown.vue +10 -3
- package/components/ButtonGroup.vue +17 -4
- package/components/Carousel.vue +26 -8
- package/components/ChartHeading.vue +5 -1
- package/components/ChartReadme.vue +17 -5
- package/components/ClusterBadge.vue +5 -1
- package/components/ClusterProviderIcon.vue +15 -3
- package/components/Collapse.vue +17 -5
- package/components/CollapsibleCard.vue +10 -4
- package/components/CommunityLinks.vue +32 -9
- package/components/CompoundStatusBadge.vue +4 -1
- package/components/ContainerResourceLimit.vue +12 -3
- package/components/CopyToClipboardText.vue +10 -2
- package/components/CountBox.vue +13 -3
- package/components/CountGauge.vue +28 -5
- package/components/CruResource.vue +88 -23
- package/components/CruResourceFooter.vue +1 -1
- package/components/DashboardMetrics.vue +12 -3
- package/components/DashboardOptions.vue +14 -3
- package/components/DetailText.vue +28 -6
- package/components/DetailTop.vue +57 -12
- package/components/Dialog.vue +17 -5
- package/components/EmberPage.vue +23 -5
- package/components/EmberPageView.vue +4 -1
- package/components/EtcdInfoBanner.vue +5 -1
- package/components/ExplorerMembers.vue +7 -9
- package/components/ExplorerProjectsNamespaces.vue +42 -10
- package/components/FileDiff.vue +5 -1
- package/components/FixedBanner.vue +27 -7
- package/components/Flag.vue +8 -2
- package/components/Glance.vue +11 -2
- package/components/GlobalRoleBindings.vue +24 -5
- package/components/GradientBox.vue +5 -1
- package/components/GrafanaDashboard.vue +19 -5
- package/components/GrowlManager.vue +27 -6
- package/components/HardwareResourceGauge.vue +8 -2
- package/components/HarvesterServiceAddOnConfig.vue +4 -1
- package/components/IconMessage.vue +8 -2
- package/components/Import.vue +37 -8
- package/components/IndentedPanel.vue +4 -1
- package/components/InfoBox.vue +8 -2
- package/components/KeyValueView.vue +29 -7
- package/components/LandingPagePreference.vue +13 -2
- package/components/LazyImage.vue +5 -1
- package/components/Loading.vue +13 -3
- package/components/LocaleSelector.vue +10 -2
- package/components/Markdown.vue +5 -1
- package/components/MessageLink.vue +19 -4
- package/components/ModalWithCard.vue +24 -8
- package/components/MoveModal.vue +35 -7
- package/components/PercentageBar.vue +9 -2
- package/components/ProgressBarMulti.vue +4 -1
- package/components/PromptChangePassword.vue +17 -4
- package/components/PromptModal.vue +7 -1
- package/components/PromptRemove.vue +31 -10
- package/components/PromptRestore.vue +35 -10
- package/components/Questions/Array.vue +4 -1
- package/components/Questions/Boolean.vue +4 -1
- package/components/Questions/Enum.vue +4 -1
- package/components/Questions/Float.vue +4 -1
- package/components/Questions/Int.vue +4 -1
- package/components/Questions/QuestionMap.vue +4 -1
- package/components/Questions/Reference.vue +8 -2
- package/components/Questions/String.vue +4 -1
- package/components/Questions/index.vue +10 -2
- package/components/Random.vue +11 -3
- package/components/RelatedResources.vue +8 -2
- package/components/RelatedWorkloadsTable.vue +5 -1
- package/components/ResourceCancelModal.vue +15 -3
- package/components/ResourceDetail/Masthead.vue +31 -7
- package/components/ResourceList/Masthead.vue +6 -4
- package/components/ResourceList/ResourceLoadingIndicator.vue +8 -2
- package/components/ResourceList/index.vue +11 -8
- package/components/ResourceSummary.vue +13 -3
- package/components/ResourceTable.vue +59 -11
- package/components/ResourceYaml.vue +8 -2
- package/components/RoleBindings.vue +20 -3
- package/components/SelectIconGrid.vue +29 -7
- package/components/SimpleBox.vue +14 -3
- package/components/SingleClusterInfo.vue +40 -9
- package/components/SortableTable/THead.vue +29 -8
- package/components/SortableTable/filtering.js +7 -0
- package/components/SortableTable/index.vue +204 -45
- package/components/Tabbed/Tab.vue +9 -2
- package/components/Tabbed/index.vue +32 -7
- package/components/TableSparkLine.vue +4 -1
- package/components/Tip.vue +4 -1
- package/components/Wizard.vue +105 -23
- package/components/YamlEditor.vue +5 -1
- package/components/__tests__/.DS_Store +0 -0
- package/components/auth/AllowedPrincipals.vue +21 -5
- package/components/auth/AuthBanner.vue +21 -5
- package/components/auth/AzureWarning.vue +5 -1
- package/components/auth/Principal.vue +37 -9
- package/components/auth/RoleDetailEdit.vue +34 -10
- package/components/auth/SelectPrincipal.vue +20 -3
- package/components/auth/login/github.vue +5 -1
- package/components/auth/login/ldap.vue +10 -2
- package/components/auth/login/oauth.vue +6 -1
- package/components/auth/login/oidc.vue +6 -1
- package/components/auth/login/saml.vue +6 -1
- package/components/fleet/FleetBundles.vue +9 -2
- package/components/fleet/FleetClusters.vue +29 -6
- package/components/fleet/FleetIntro.vue +5 -2
- package/components/fleet/FleetRepos.vue +23 -4
- package/components/fleet/FleetStatus.vue +16 -4
- package/components/fleet/FleetSummary.vue +10 -2
- package/components/fleet/ForceDirectedTreeChart/index.vue +5 -3
- package/components/fleet/ResourcesSummary.vue +5 -1
- package/components/form/ArrayList.vue +31 -8
- package/components/form/ArrayListGrouped.vue +9 -3
- package/components/form/ArrayListSelect.vue +6 -1
- package/components/form/BannerSettings.vue +8 -2
- package/components/form/ChangePassword.vue +50 -10
- package/components/form/ColorInput.vue +28 -5
- package/components/form/Command.vue +5 -2
- package/components/form/EnvVars.vue +4 -1
- package/components/form/Error.vue +10 -2
- package/components/form/FileImageSelector.vue +1 -1
- package/components/form/FileSelector.vue +8 -2
- package/components/form/Footer.vue +14 -4
- package/components/form/GithubPicker.vue +16 -9
- package/components/form/HookOption.vue +5 -1
- package/components/form/InputWithSelect.vue +1 -1
- package/components/form/KeyValue.vue +81 -19
- package/components/form/LabeledSelect.vue +55 -8
- package/components/form/Labels.vue +1 -1
- package/components/form/LifecycleHooks.vue +10 -2
- package/components/form/MatchExpressions.vue +11 -3
- package/components/form/Members/ClusterPermissionsEditor.vue +21 -4
- package/components/form/Members/MembershipEditor.vue +11 -2
- package/components/form/NameNsDescription.vue +16 -10
- package/components/form/Networking.vue +3 -3
- package/components/form/NodeAffinity.vue +4 -1
- package/components/form/NodeScheduling.vue +5 -1
- package/components/form/Password.vue +32 -7
- package/components/form/PlusMinus.vue +18 -3
- package/components/form/PodAffinity.vue +12 -5
- package/components/form/PodSecurity.vue +20 -4
- package/components/form/Ports.vue +37 -11
- package/components/form/Probe.vue +18 -4
- package/components/form/ProjectMemberEditor.vue +24 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +4 -1
- package/components/form/ResourceQuota/Project.vue +7 -1
- package/components/form/ResourceQuota/ProjectRow.vue +11 -2
- package/components/form/ResourceSelector.vue +145 -0
- package/components/form/ResourceTabs/index.vue +38 -7
- package/components/form/RuleSelector.vue +15 -4
- package/components/form/SecretSelector.vue +4 -1
- package/components/form/Security.vue +2 -2
- package/components/form/Select.vue +8 -3
- package/components/form/SelectOrCreateAuthSecret.vue +43 -9
- package/components/form/ServiceNameSelect.vue +2 -2
- package/components/form/ServicePorts.vue +58 -17
- package/components/form/Tolerations.vue +34 -7
- package/components/form/ValueFromResource.vue +10 -2
- package/components/form/WorkloadPorts.vue +36 -8
- package/components/form/__tests__/MatchExpressions.test.ts +1 -2
- package/components/formatter/AppSummaryGraph.vue +24 -6
- package/components/formatter/BadgeStateFormatter.vue +4 -1
- package/components/formatter/Checked.vue +4 -1
- package/components/formatter/ClusterLink.vue +4 -1
- package/components/formatter/Date.vue +1 -1
- package/components/formatter/DelayedValue.vue +4 -1
- package/components/formatter/Endpoints.vue +5 -1
- package/components/formatter/ExternalLink.vue +5 -1
- package/components/formatter/FleetSummaryGraph.vue +20 -5
- package/components/formatter/IconText.vue +4 -1
- package/components/formatter/ImagePercentageBar.vue +5 -1
- package/components/formatter/IngressFullPath.vue +6 -1
- package/components/formatter/IngressTarget.vue +22 -5
- package/components/formatter/InternalExternalIP.vue +12 -2
- package/components/formatter/KeyValue.vue +5 -1
- package/components/formatter/Link.vue +30 -6
- package/components/formatter/LinkDetail.vue +4 -1
- package/components/formatter/LinkDetailImage.vue +1 -1
- package/components/formatter/ListLink.vue +10 -2
- package/components/formatter/ListLinkDetail.vue +6 -1
- package/components/formatter/LiveDate.vue +13 -3
- package/components/formatter/LiveExpiryDate.vue +18 -4
- package/components/formatter/LivePodRestarts.vue +4 -1
- package/components/formatter/MachineSummaryGraph.vue +25 -6
- package/components/formatter/Number.vue +4 -1
- package/components/formatter/PodsUsage.vue +4 -1
- package/components/formatter/Principal.vue +5 -1
- package/components/formatter/PrincipalGroupBindings.vue +4 -1
- package/components/formatter/ReceiverIcons.vue +9 -3
- package/components/formatter/RunBookLink.vue +6 -1
- package/components/formatter/Scale.vue +45 -10
- package/components/formatter/ScanResult.vue +4 -1
- package/components/formatter/SecretData.vue +5 -2
- package/components/formatter/SecretType.vue +4 -1
- package/components/formatter/ServiceTargets.vue +16 -4
- package/components/formatter/Shortened.vue +8 -2
- package/components/formatter/VirtualServiceGateways.vue +8 -2
- package/components/formatter/Weight.vue +19 -4
- package/components/formatter/WorkloadDetailEndpoints.vue +5 -1
- package/components/formatter/WorkloadHealthScale.vue +42 -8
- package/components/graph/AspectPreserver.vue +14 -3
- package/components/graph/Bar.vue +14 -3
- package/components/graph/Circle.vue +36 -7
- package/components/graph/HalfCircle.vue +6 -1
- package/components/graph/LinePlot.vue +3 -6
- package/components/graph/ProgressArc.vue +8 -2
- package/components/nav/GlobalLoading.vue +4 -1
- package/components/nav/Group.vue +39 -9
- package/components/nav/Header.vue +154 -37
- package/components/nav/Jump.vue +6 -2
- package/components/nav/NamespaceFilter.vue +112 -24
- package/components/nav/TopLevelMenu.vue +108 -24
- package/components/nav/Type.vue +18 -4
- package/components/nav/WindowManager/ChartReadme.vue +4 -1
- package/components/nav/WindowManager/ContainerLogs.vue +92 -19
- package/components/nav/WindowManager/ContainerShell.vue +26 -6
- package/components/nav/WindowManager/Window.vue +8 -2
- package/components/nav/WindowManager/index.vue +17 -4
- package/config/labels-annotations.js +5 -42
- package/config/private-label.js +5 -2
- package/config/product/explorer.js +8 -2
- package/config/roles.ts +2 -1
- package/config/{settings.js → settings.ts} +33 -50
- package/config/types.js +2 -0
- package/content/docs/en-us/getting-started.md +3 -3
- package/content/docs/en-us/whats-new.md +9 -123
- package/core/plugins.js +11 -8
- package/creators/app/{files/.eslintignore → .eslintignore} +0 -0
- package/creators/app/{files/.eslintrc.js → .eslintrc.js} +0 -0
- package/creators/app/{files/.vscode → .vscode}/settings.json +0 -0
- package/creators/app/{files/babel.config.js → babel.config.js} +0 -0
- package/creators/app/init +17 -16
- package/creators/app/{files/nuxt.config.js → nuxt.config.js} +0 -0
- package/creators/app/package.json +1 -7
- package/creators/app/{files/tsconfig.json → tsconfig.json} +1 -2
- package/creators/pkg/{files/babel.config.js → babel.config.js} +0 -0
- package/creators/pkg/{files/index.ts → index.ts} +0 -0
- package/creators/pkg/init +1 -1
- package/creators/pkg/nuxt.config.js +6 -0
- package/creators/pkg/package-lock.json +37 -0
- package/creators/pkg/package.json +1 -1
- package/creators/pkg/{files/tsconfig.json → tsconfig.json} +12 -13
- package/creators/pkg/{files/vue.config.js → vue.config.js} +0 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +12 -3
- package/detail/catalog.cattle.io.app.vue +41 -8
- package/detail/catalog.cattle.io.clusterrepo.vue +4 -1
- package/detail/cis.cattle.io.clusterscan.vue +23 -5
- package/detail/configmap.vue +18 -4
- package/detail/constraints.gatekeeper.sh.constraint.vue +4 -1
- package/detail/fleet.cattle.io.cluster.vue +14 -3
- package/detail/fleet.cattle.io.clustergroup.vue +9 -2
- package/detail/fleet.cattle.io.gitrepo.vue +16 -3
- package/detail/harvesterhci.io.management.cluster.vue +5 -1
- package/detail/helm.cattle.io.projecthelmchart.vue +49 -13
- package/detail/management.cattle.io.fleetworkspace.vue +19 -4
- package/detail/management.cattle.io.roletemplate.vue +4 -1
- package/detail/management.cattle.io.user.vue +26 -5
- package/detail/namespace.vue +6 -4
- package/detail/networking.k8s.io.ingress.vue +16 -3
- package/detail/node.vue +83 -18
- package/detail/pod.vue +27 -5
- package/detail/provisioning.cattle.io.cluster.vue +195 -43
- package/detail/secret.vue +78 -19
- package/detail/service.vue +9 -2
- package/detail/workload/index.vue +81 -17
- package/dialog/AddClusterMemberDialog.vue +25 -6
- package/dialog/AddCustomBadgeDialog.vue +43 -10
- package/dialog/AddProjectMemberDialog.vue +27 -7
- package/dialog/AddonConfigConfirmationDialog.vue +17 -4
- package/dialog/DiagnosticTimingsDialog.vue +27 -6
- package/dialog/DrainNode.vue +46 -11
- package/dialog/ForceMachineRemoveDialog.vue +35 -8
- package/dialog/GenericPrompt.vue +28 -7
- package/dialog/RollbackWorkloadDialog.vue +45 -11
- package/dialog/RotateCertificatesDialog.vue +31 -6
- package/dialog/RotateEncryptionKeyDialog.vue +41 -10
- package/dialog/SaveAsRKETemplateDialog.vue +31 -7
- package/dialog/ScaleMachineDownDialog.vue +13 -3
- package/edit/__tests__/management.cattle.io.setting.test.ts +87 -0
- package/edit/auth/azuread.vue +20 -6
- package/edit/auth/github.vue +52 -11
- package/edit/auth/googleoauth.vue +81 -17
- package/edit/auth/ldap/config.vue +164 -31
- package/edit/auth/ldap/index.vue +29 -7
- package/edit/auth/oidc.vue +36 -8
- package/edit/auth/saml.vue +57 -12
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +9 -2
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +23 -6
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +8 -2
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +16 -4
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +13 -3
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +9 -2
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +6 -1
- package/edit/catalog.cattle.io.clusterrepo.vue +15 -3
- package/edit/cis.cattle.io.clusterscan.vue +53 -11
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +15 -3
- package/edit/cis.cattle.io.clusterscanprofile.vue +13 -3
- package/edit/configmap.vue +5 -1
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +40 -9
- package/edit/fleet.cattle.io.cluster.vue +6 -2
- package/edit/fleet.cattle.io.clustergroup.vue +12 -3
- package/edit/fleet.cattle.io.gitrepo.vue +25 -5
- package/edit/group.principal.vue +6 -1
- package/edit/harvesterhci.io.management.cluster.vue +22 -5
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +11 -2
- package/edit/logging-flow/Match.vue +2 -2
- package/edit/logging-flow/index.vue +67 -14
- package/edit/logging.banzaicloud.io.output/index.vue +37 -8
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +7 -2
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -4
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +24 -4
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +20 -5
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +21 -5
- package/edit/logging.banzaicloud.io.output/providers/file.vue +6 -1
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +8 -3
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +25 -5
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +46 -8
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +26 -6
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +7 -2
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +20 -4
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +8 -3
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +34 -8
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +25 -5
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +33 -7
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +57 -12
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +10 -2
- package/edit/management.cattle.io.fleetworkspace.vue +17 -4
- package/edit/management.cattle.io.project.vue +7 -1
- package/edit/management.cattle.io.roletemplate.vue +4 -1
- package/edit/management.cattle.io.setting.vue +71 -30
- package/edit/management.cattle.io.user.vue +4 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +24 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +24 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +29 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +12 -3
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +50 -9
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +31 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +29 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +8 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +36 -7
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +24 -6
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +16 -6
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +10 -2
- package/edit/monitoring.coreos.com.receiver/auth.vue +36 -7
- package/edit/monitoring.coreos.com.receiver/index.vue +53 -11
- package/edit/monitoring.coreos.com.receiver/tls.vue +22 -4
- package/edit/monitoring.coreos.com.receiver/types/email.vue +48 -8
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +32 -6
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +22 -4
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -1
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +5 -1
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +31 -6
- package/edit/monitoring.coreos.com.route.vue +71 -15
- package/edit/namespace.vue +35 -7
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +12 -3
- package/edit/networking.istio.io.destinationrule/index.vue +5 -3
- package/edit/networking.k8s.io.ingress/Certificate.vue +10 -2
- package/edit/networking.k8s.io.ingress/Certificates.vue +6 -1
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +16 -4
- package/edit/networking.k8s.io.ingress/Rule.vue +21 -5
- package/edit/networking.k8s.io.ingress/RulePath.vue +27 -6
- package/edit/networking.k8s.io.ingress/Rules.vue +7 -1
- package/edit/networking.k8s.io.ingress/index.vue +52 -9
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +20 -4
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +8 -2
- package/edit/networking.k8s.io.networkpolicy/index.vue +36 -8
- package/edit/node.vue +13 -3
- package/edit/persistentvolume/index.vue +48 -8
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +19 -3
- package/edit/persistentvolume/plugins/azureDisk.vue +20 -3
- package/edit/persistentvolume/plugins/azureFile.vue +18 -3
- package/edit/persistentvolume/plugins/cephfs.vue +35 -6
- package/edit/persistentvolume/plugins/cinder.vue +24 -4
- package/edit/persistentvolume/plugins/csi.vue +72 -12
- package/edit/persistentvolume/plugins/fc.vue +23 -4
- package/edit/persistentvolume/plugins/flexVolume.vue +30 -5
- package/edit/persistentvolume/plugins/flocker.vue +12 -2
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +19 -3
- package/edit/persistentvolume/plugins/glusterfs.vue +12 -2
- package/edit/persistentvolume/plugins/hostPath.vue +12 -2
- package/edit/persistentvolume/plugins/iscsi.vue +54 -9
- package/edit/persistentvolume/plugins/local.vue +6 -1
- package/edit/persistentvolume/plugins/longhorn.vue +13 -2
- package/edit/persistentvolume/plugins/nfs.vue +12 -2
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +12 -2
- package/edit/persistentvolume/plugins/portworxVolume.vue +12 -2
- package/edit/persistentvolume/plugins/quobyte.vue +24 -4
- package/edit/persistentvolume/plugins/rbd.vue +47 -8
- package/edit/persistentvolume/plugins/scaleIO.vue +54 -9
- package/edit/persistentvolume/plugins/storageos.vue +30 -5
- package/edit/persistentvolume/plugins/vsphereVolume.vue +24 -4
- package/edit/persistentvolumeclaim.vue +69 -15
- package/edit/policy.poddisruptionbudget.vue +149 -0
- package/edit/provisioning.cattle.io.cluster/ACE.vue +6 -1
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +61 -15
- package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +24 -4
- package/edit/provisioning.cattle.io.cluster/Labels.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +31 -8
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +16 -3
- package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +4 -1
- package/edit/provisioning.cattle.io.cluster/S3Config.vue +35 -6
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +21 -5
- package/edit/provisioning.cattle.io.cluster/import.vue +23 -5
- package/edit/provisioning.cattle.io.cluster/index.vue +9 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +203 -64
- package/edit/resources.cattle.io.backup.vue +42 -8
- package/edit/resources.cattle.io.restore.vue +53 -11
- package/edit/secret/basic.vue +12 -2
- package/edit/secret/index.vue +29 -7
- package/edit/secret/registry.vue +22 -4
- package/edit/secret/ssh.vue +10 -2
- package/edit/secret/tls.vue +10 -2
- package/edit/service.vue +12 -3
- package/edit/serviceaccount.vue +6 -3
- package/edit/storage.k8s.io.storageclass/index.vue +15 -3
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +6 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +6 -1
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +20 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +12 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +18 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +13 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +14 -2
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +54 -9
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +42 -7
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +48 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +66 -11
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +48 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +30 -5
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +36 -6
- package/edit/token.vue +48 -10
- package/edit/workload/Job.vue +20 -5
- package/edit/workload/Upgrading.vue +28 -7
- package/edit/workload/index.vue +244 -48
- package/edit/workload/storage/azureDisk.vue +5 -1
- package/edit/workload/storage/azureFile.vue +5 -1
- package/edit/workload/storage/csi/driver.longhorn.io.vue +6 -1
- package/edit/workload/storage/csi/index.vue +9 -2
- package/edit/workload/storage/ephemeralVolume/index.vue +38 -8
- package/edit/workload/storage/gcePersistentDisk.vue +10 -2
- package/edit/workload/storage/hostPath.vue +18 -3
- package/edit/workload/storage/persistentVolumeClaim/index.vue +4 -1
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +26 -5
- package/edit/workload/storage/vsphereVolume.vue +10 -2
- package/layouts/blank.vue +1 -1
- package/layouts/default.vue +60 -65
- package/layouts/error.vue +25 -5
- package/layouts/home.vue +17 -4
- package/layouts/plain.vue +13 -3
- package/layouts/unauthenticated.vue +1 -1
- package/list/catalog.cattle.io.app.vue +15 -2
- package/list/catalog.cattle.io.clusterrepo.vue +5 -0
- package/list/cis.cattle.io.clusterscan.vue +6 -0
- package/list/fleet.cattle.io.bundle.vue +14 -2
- package/list/fleet.cattle.io.cluster.vue +10 -1
- package/list/fleet.cattle.io.clustergroup.vue +14 -2
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +11 -3
- package/list/fleet.cattle.io.gitrepo.vue +6 -0
- package/list/group.principal.vue +11 -1
- package/list/harvesterhci.io.management.cluster.vue +25 -6
- package/list/helm.cattle.io.projecthelmchart.vue +23 -5
- package/list/logging.banzaicloud.io.clusterflow.vue +11 -1
- package/list/logging.banzaicloud.io.flow.vue +11 -1
- package/list/management.cattle.io.cluster.vue +12 -1
- package/list/management.cattle.io.feature.vue +71 -15
- package/list/management.cattle.io.setting.vue +44 -10
- package/list/management.cattle.io.user.vue +12 -1
- package/list/monitoring.coreos.com.alertmanagerconfig.vue +6 -0
- package/list/namespace.vue +8 -0
- package/list/node.vue +14 -2
- package/list/persistentvolume.vue +13 -1
- package/list/persistentvolumeclaim.vue +6 -0
- package/list/provisioning.cattle.io.cluster.vue +23 -4
- package/list/service.vue +6 -0
- package/list/ui.cattle.io.navlink.vue +20 -3
- package/list/workload.vue +15 -2
- package/machine-config/amazonec2.vue +12 -3
- package/machine-config/azure.vue +16 -7
- package/machine-config/digitalocean.vue +4 -1
- package/machine-config/generic.vue +4 -1
- package/machine-config/harvester.vue +23 -6
- package/machine-config/linode.vue +4 -1
- package/machine-config/vmwarevsphere.vue +91 -21
- package/mixins/__tests__/create-edit-view.test.ts +19 -0
- package/mixins/brand.js +12 -3
- package/mixins/form-validation.js +108 -33
- package/models/clusterroletemplatebinding.js +2 -5
- package/models/management.cattle.io.cluster.js +7 -1
- package/models/secret.js +9 -1
- package/models/workload.js +3 -3
- package/nuxt.config.js +28 -10
- package/package.json +2 -2
- package/pages/about.vue +41 -9
- package/pages/account/index.vue +20 -5
- package/pages/auth/login.vue +83 -22
- package/pages/auth/logout.vue +1 -1
- package/pages/auth/setup.vue +48 -12
- package/pages/auth/verify.vue +1 -1
- package/pages/c/_cluster/_product/members/index.vue +3 -1
- package/pages/c/_cluster/_product/namespaces.vue +4 -1
- package/pages/c/_cluster/apps/charts/chart.vue +124 -27
- package/pages/c/_cluster/apps/charts/index.vue +35 -8
- package/pages/c/_cluster/apps/charts/install.vue +200 -48
- package/pages/c/_cluster/auth/config/_id.vue +4 -1
- package/pages/c/_cluster/auth/config/index.vue +6 -2
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +10 -5
- package/pages/c/_cluster/auth/roles/index.vue +33 -7
- package/pages/c/_cluster/explorer/ConfigBadge.vue +4 -1
- package/pages/c/_cluster/explorer/index.vue +109 -24
- package/pages/c/_cluster/explorer/tools/index.vue +76 -17
- package/pages/c/_cluster/explorer/tools/pages/_page.vue +4 -1
- package/pages/c/_cluster/fleet/index.vue +9 -2
- package/pages/c/_cluster/gatekeeper/index.vue +4 -1
- package/pages/c/_cluster/istio/index.vue +20 -8
- package/pages/c/_cluster/legacy/pages/_page.vue +4 -1
- package/pages/c/_cluster/legacy/project/_page.vue +4 -1
- package/pages/c/_cluster/legacy/project/index.vue +4 -1
- package/pages/c/_cluster/legacy/project/pipelines.vue +27 -5
- package/pages/c/_cluster/logging/index.vue +4 -1
- package/pages/c/_cluster/longhorn/index.vue +16 -5
- package/pages/c/_cluster/manager/cloudCredential/index.vue +15 -3
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +14 -5
- package/pages/c/_cluster/monitoring/monitor/index.vue +24 -6
- package/pages/c/_cluster/monitoring/route-receiver/index.vue +25 -6
- package/pages/c/_cluster/neuvector/index.vue +16 -5
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +25 -7
- package/pages/c/_cluster/settings/banners.vue +10 -2
- package/pages/c/_cluster/settings/brand.vue +75 -17
- package/pages/c/_cluster/settings/links.vue +16 -4
- package/pages/c/_cluster/settings/performance.vue +22 -5
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +19 -4
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +14 -3
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +54 -12
- package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +18 -4
- package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +14 -3
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +9 -2
- package/pages/c/_cluster/uiplugins/index.vue +149 -34
- package/pages/diagnostic.vue +14 -5
- package/pages/docs/_doc.vue +22 -5
- package/pages/fail-whale.vue +26 -6
- package/pages/home.vue +54 -14
- package/pages/prefs.vue +65 -22
- package/pages/rio/mesh.vue +6 -2
- package/pages/support/index.vue +35 -7
- package/plugins/steve/subscribe.js +1 -1
- package/promptRemove/management.cattle.io.globalrole.vue +9 -3
- package/promptRemove/management.cattle.io.project.vue +14 -5
- package/promptRemove/management.cattle.io.roletemplate.vue +9 -3
- package/promptRemove/pod.vue +15 -3
- package/rancher-components/BadgeState/BadgeState.spec.ts +12 -0
- package/rancher-components/BadgeState/BadgeState.vue +107 -0
- package/rancher-components/BadgeState/index.ts +1 -0
- package/rancher-components/Banner/Banner.test.ts +13 -0
- package/rancher-components/Banner/Banner.vue +163 -0
- package/rancher-components/Banner/index.ts +1 -0
- package/rancher-components/Card/Card.vue +150 -0
- package/rancher-components/Card/index.ts +1 -0
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +77 -0
- package/rancher-components/Form/Checkbox/Checkbox.vue +395 -0
- package/rancher-components/Form/Checkbox/index.ts +1 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +29 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +343 -0
- package/rancher-components/Form/LabeledInput/index.ts +1 -0
- package/rancher-components/Form/Radio/RadioButton.vue +270 -0
- package/rancher-components/Form/Radio/RadioGroup.vue +235 -0
- package/rancher-components/Form/Radio/index.ts +2 -0
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +169 -0
- package/rancher-components/Form/TextArea/index.ts +1 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +107 -0
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +137 -0
- package/rancher-components/Form/ToggleSwitch/index.ts +1 -0
- package/rancher-components/Form/index.ts +5 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +137 -0
- package/rancher-components/LabeledTooltip/index.ts +1 -0
- package/rancher-components/StringList/StringList.test.ts +80 -0
- package/rancher-components/StringList/StringList.vue +593 -0
- package/rancher-components/StringList/index.ts +1 -0
- package/scripts/publish-shell.sh +6 -39
- package/scripts/test-plugins-build.sh +5 -9
- package/store/prefs.js +1 -1
- package/types/form.ts +1 -0
- package/types/generic.ts +2 -0
- package/types/t.ts +1 -0
- package/types/userPreferences.d.ts +14 -0
- package/utils/array.ts +21 -0
- package/utils/favicon.js +2 -0
- package/utils/settings.ts +50 -0
- package/utils/validators/formRules/__tests__/index.test.ts +22 -1
- package/utils/validators/formRules/index.ts +68 -43
- package/creators/update/init +0 -54
- package/creators/update/package.json +0 -20
- package/creators/update/upgrade +0 -56
- package/scripts/record-deps.js +0 -37
- package/scripts/typegen.sh +0 -84
- package/types/shell/index.d.ts +0 -3046
- package/types/vue-shim.d +0 -20
|
@@ -375,24 +375,43 @@ export default {
|
|
|
375
375
|
|
|
376
376
|
<template>
|
|
377
377
|
<div class="masthead">
|
|
378
|
-
<header>
|
|
378
|
+
<header class="header-layout">
|
|
379
379
|
<div class="title">
|
|
380
380
|
<div class="primaryheader">
|
|
381
381
|
<h1>
|
|
382
|
-
<nuxt-link
|
|
382
|
+
<nuxt-link
|
|
383
|
+
v-if="location"
|
|
384
|
+
:to="location"
|
|
385
|
+
>
|
|
383
386
|
{{ parent.displayName }}:
|
|
384
387
|
</nuxt-link>
|
|
385
388
|
<span v-else>{{ parent.displayName }}:</span>
|
|
386
389
|
<span v-if="value.detailPageHeaderActionOverride && value.detailPageHeaderActionOverride(realMode)">{{ value.detailPageHeaderActionOverride(realMode) }}</span>
|
|
387
|
-
<t
|
|
388
|
-
|
|
390
|
+
<t
|
|
391
|
+
v-else
|
|
392
|
+
:k="'resourceDetail.header.' + realMode"
|
|
393
|
+
:subtype="resourceSubtype"
|
|
394
|
+
:name="displayName"
|
|
395
|
+
:escapehtml="false"
|
|
396
|
+
/>
|
|
397
|
+
<BadgeState
|
|
398
|
+
v-if="!isCreate && parent.showState"
|
|
399
|
+
class="masthead-state"
|
|
400
|
+
:value="value"
|
|
401
|
+
/>
|
|
389
402
|
</h1>
|
|
390
403
|
</div>
|
|
391
|
-
<div
|
|
404
|
+
<div
|
|
405
|
+
v-if="!isCreate"
|
|
406
|
+
class="subheader"
|
|
407
|
+
>
|
|
392
408
|
<span v-if="isNamespace && project">{{ t("resourceDetail.masthead.project") }}: <nuxt-link :to="project.detailLocation">{{ project.nameDisplay }}</nuxt-link></span>
|
|
393
409
|
<span v-else-if="isWorkspace">{{ t("resourceDetail.masthead.workspace") }}: <nuxt-link :to="workspaceLocation">{{ namespace }}</nuxt-link></span>
|
|
394
410
|
<span v-else-if="namespace && !hasMultipleNamespaces">{{ t("resourceDetail.masthead.namespace") }}: <nuxt-link :to="namespaceLocation">{{ namespace }}</nuxt-link></span>
|
|
395
|
-
<span v-if="parent.showAge">{{ t("resourceDetail.masthead.age") }}: <LiveDate
|
|
411
|
+
<span v-if="parent.showAge">{{ t("resourceDetail.masthead.age") }}: <LiveDate
|
|
412
|
+
class="live-date"
|
|
413
|
+
:value="value.creationTimestamp"
|
|
414
|
+
/></span>
|
|
396
415
|
<span v-if="value.showPodRestarts">{{ t("resourceDetail.masthead.restartCount") }}:<span class="live-data"> {{ value.restartCount }}</span></span>
|
|
397
416
|
</div>
|
|
398
417
|
</div>
|
|
@@ -428,7 +447,12 @@ export default {
|
|
|
428
447
|
</slot>
|
|
429
448
|
</header>
|
|
430
449
|
|
|
431
|
-
<Banner
|
|
450
|
+
<Banner
|
|
451
|
+
v-if="banner && isView && !parent.hideBanner"
|
|
452
|
+
class="state-banner mb-10"
|
|
453
|
+
:color="banner.color"
|
|
454
|
+
:label="banner.message"
|
|
455
|
+
/>
|
|
432
456
|
<Banner
|
|
433
457
|
v-if="managedWarning.show"
|
|
434
458
|
color="warning"
|
|
@@ -163,13 +163,16 @@ export default {
|
|
|
163
163
|
</script>
|
|
164
164
|
|
|
165
165
|
<template>
|
|
166
|
-
<header>
|
|
166
|
+
<header class="header-layout">
|
|
167
167
|
<slot name="typeDescription">
|
|
168
168
|
<TypeDescription :resource="resource" />
|
|
169
169
|
</slot>
|
|
170
170
|
<div class="title">
|
|
171
171
|
<h1 class="m-0">
|
|
172
|
-
{{ _typeDisplay }} <Favorite
|
|
172
|
+
{{ _typeDisplay }} <Favorite
|
|
173
|
+
v-if="isExplorer"
|
|
174
|
+
:resource="favoriteResource || resource"
|
|
175
|
+
/>
|
|
173
176
|
</h1>
|
|
174
177
|
<ResourceLoadingIndicator
|
|
175
178
|
v-if="showIncrementalLoadingIndicator"
|
|
@@ -180,8 +183,7 @@ export default {
|
|
|
180
183
|
<div class="actions-container">
|
|
181
184
|
<slot name="actions">
|
|
182
185
|
<div class="actions">
|
|
183
|
-
<slot name="extraActions"
|
|
184
|
-
</slot>
|
|
186
|
+
<slot name="extraActions" />
|
|
185
187
|
|
|
186
188
|
<slot name="createButton">
|
|
187
189
|
<n-link
|
|
@@ -73,14 +73,20 @@ export default {
|
|
|
73
73
|
</script>
|
|
74
74
|
|
|
75
75
|
<template>
|
|
76
|
-
<div
|
|
76
|
+
<div
|
|
77
|
+
v-if="count && !haveAll"
|
|
78
|
+
class="ml-10 resource-loading-indicator"
|
|
79
|
+
>
|
|
77
80
|
<div class="inner">
|
|
78
81
|
<div class="resource-loader">
|
|
79
82
|
<div class="rl-bg">
|
|
80
83
|
<i class="icon icon-spinner icon-spin" /><span>{{ t( 'resourceLoadingIndicator.loading' ) }} <span v-if="!indeterminate">{{ count }} / {{ total }}</span></span>
|
|
81
84
|
</div>
|
|
82
85
|
</div>
|
|
83
|
-
<div
|
|
86
|
+
<div
|
|
87
|
+
class="resource-loader"
|
|
88
|
+
:style="{width}"
|
|
89
|
+
>
|
|
84
90
|
<div class="rl-fg">
|
|
85
91
|
<i class="icon icon-spinner icon-spin" /><span>{{ t( 'resourceLoadingIndicator.loading' ) }} <span v-if="!indeterminate">{{ count }} / {{ total }}</span></span>
|
|
86
92
|
</div>
|
|
@@ -89,17 +89,19 @@ export default {
|
|
|
89
89
|
inStore,
|
|
90
90
|
schema,
|
|
91
91
|
hasListComponent,
|
|
92
|
-
showMasthead:
|
|
92
|
+
showMasthead: showMasthead === undefined ? true : showMasthead,
|
|
93
93
|
resource,
|
|
94
94
|
// manual refresh
|
|
95
|
-
manualRefreshInit:
|
|
96
|
-
watch:
|
|
97
|
-
force:
|
|
95
|
+
manualRefreshInit: false,
|
|
96
|
+
watch: false,
|
|
97
|
+
force: false,
|
|
98
98
|
// Provided by fetch later
|
|
99
|
-
customTypeDisplay:
|
|
99
|
+
customTypeDisplay: null,
|
|
100
100
|
// incremental loading
|
|
101
|
-
loadResources:
|
|
102
|
-
loadIndeterminate:
|
|
101
|
+
loadResources: [resource],
|
|
102
|
+
loadIndeterminate: false,
|
|
103
|
+
// query param for simple filtering
|
|
104
|
+
useQueryParamsForSimpleFiltering: true
|
|
103
105
|
};
|
|
104
106
|
},
|
|
105
107
|
|
|
@@ -149,7 +151,7 @@ export default {
|
|
|
149
151
|
:load-indeterminate="loadIndeterminate"
|
|
150
152
|
>
|
|
151
153
|
<template slot="extraActions">
|
|
152
|
-
<slot name="extraActions"
|
|
154
|
+
<slot name="extraActions" />
|
|
153
155
|
</template>
|
|
154
156
|
</Masthead>
|
|
155
157
|
<div v-if="hasListComponent">
|
|
@@ -170,6 +172,7 @@ export default {
|
|
|
170
172
|
:has-advanced-filtering="hasAdvancedFiltering"
|
|
171
173
|
:adv-filter-hide-labels-as-cols="advFilterHideLabelsAsCols"
|
|
172
174
|
:adv-filter-prevent-filtering-labels="advFilterPreventFilteringLabels"
|
|
175
|
+
:use-query-params-for-simple-filtering="useQueryParamsForSimpleFiltering"
|
|
173
176
|
/>
|
|
174
177
|
</div>
|
|
175
178
|
</template>
|
|
@@ -112,16 +112,26 @@ export default {
|
|
|
112
112
|
|
|
113
113
|
<template>
|
|
114
114
|
<div>
|
|
115
|
-
<SimpleBox
|
|
115
|
+
<SimpleBox
|
|
116
|
+
class="container"
|
|
117
|
+
:class="{'has-link': !!location}"
|
|
118
|
+
@click="goToResource"
|
|
119
|
+
>
|
|
116
120
|
<h1>{{ resourceCounts.total }}</h1>
|
|
117
121
|
<h3>
|
|
118
122
|
{{ name }}
|
|
119
123
|
</h3>
|
|
120
124
|
<div class="warnings">
|
|
121
|
-
<div
|
|
125
|
+
<div
|
|
126
|
+
v-if="resourceCounts.warningCount"
|
|
127
|
+
class="warn-count mb-10 chip"
|
|
128
|
+
>
|
|
122
129
|
{{ resourceCounts.warningCount }}
|
|
123
130
|
</div>
|
|
124
|
-
<div
|
|
131
|
+
<div
|
|
132
|
+
v-if="resourceCounts.errorCount"
|
|
133
|
+
class="error-count chip"
|
|
134
|
+
>
|
|
125
135
|
{{ resourceCounts.errorCount }}
|
|
126
136
|
</div>
|
|
127
137
|
</div>
|
|
@@ -134,6 +134,13 @@ export default {
|
|
|
134
134
|
type: Boolean,
|
|
135
135
|
default: false
|
|
136
136
|
},
|
|
137
|
+
/**
|
|
138
|
+
* Allows for the usage of a query param to work for simple filtering (q)
|
|
139
|
+
*/
|
|
140
|
+
useQueryParamsForSimpleFiltering: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: false
|
|
143
|
+
}
|
|
137
144
|
},
|
|
138
145
|
|
|
139
146
|
data() {
|
|
@@ -398,34 +405,75 @@ export default {
|
|
|
398
405
|
:adv-filter-prevent-filtering-labels="advFilterPreventFilteringLabels"
|
|
399
406
|
key-field="_key"
|
|
400
407
|
:sort-generation-fn="safeSortGenerationFn"
|
|
408
|
+
:use-query-params-for-simple-filtering="useQueryParamsForSimpleFiltering"
|
|
401
409
|
@clickedActionButton="handleActionButtonClick"
|
|
402
410
|
@group-value-change="group = $event"
|
|
403
411
|
v-on="$listeners"
|
|
404
412
|
>
|
|
405
|
-
<template
|
|
413
|
+
<template
|
|
414
|
+
v-if="showGrouping"
|
|
415
|
+
#header-middle
|
|
416
|
+
>
|
|
406
417
|
<slot name="more-header-middle" />
|
|
407
|
-
<ButtonGroup
|
|
418
|
+
<ButtonGroup
|
|
419
|
+
v-model="group"
|
|
420
|
+
:options="groupOptions"
|
|
421
|
+
/>
|
|
408
422
|
</template>
|
|
409
423
|
|
|
410
|
-
<template
|
|
424
|
+
<template
|
|
425
|
+
v-if="showGrouping"
|
|
426
|
+
#header-right
|
|
427
|
+
>
|
|
411
428
|
<slot name="header-right" />
|
|
412
429
|
</template>
|
|
413
430
|
|
|
414
431
|
<template #group-by="{group: thisGroup}">
|
|
415
|
-
<div
|
|
432
|
+
<div
|
|
433
|
+
class="group-tab"
|
|
434
|
+
v-html="thisGroup.ref"
|
|
435
|
+
/>
|
|
416
436
|
</template>
|
|
417
437
|
|
|
418
438
|
<!-- Pass down templates provided by the caller -->
|
|
419
|
-
<template
|
|
420
|
-
|
|
439
|
+
<template
|
|
440
|
+
v-for="(_, slot) of $scopedSlots"
|
|
441
|
+
v-slot:[slot]="scope"
|
|
442
|
+
>
|
|
443
|
+
<slot
|
|
444
|
+
:name="slot"
|
|
445
|
+
v-bind="scope"
|
|
446
|
+
/>
|
|
421
447
|
</template>
|
|
422
448
|
|
|
423
449
|
<template #shortkeys>
|
|
424
|
-
<button
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
450
|
+
<button
|
|
451
|
+
v-shortkey.once="['enter']"
|
|
452
|
+
class="hide detail"
|
|
453
|
+
@shortkey="keyAction('detail')"
|
|
454
|
+
/>
|
|
455
|
+
<button
|
|
456
|
+
v-shortkey.once="['e']"
|
|
457
|
+
class="hide"
|
|
458
|
+
@shortkey="keyAction('edit')"
|
|
459
|
+
/>
|
|
460
|
+
<button
|
|
461
|
+
v-shortkey.once="['y']"
|
|
462
|
+
class="hide"
|
|
463
|
+
@shortkey="keyAction('yaml')"
|
|
464
|
+
/>
|
|
465
|
+
<button
|
|
466
|
+
v-if="_showBulkActions"
|
|
467
|
+
v-shortkey.once="['del']"
|
|
468
|
+
class="hide"
|
|
469
|
+
@shortkey="keyAction('remove')"
|
|
470
|
+
/>
|
|
471
|
+
<button
|
|
472
|
+
v-if="_showBulkActions"
|
|
473
|
+
v-shortkey.once="['backspace']"
|
|
474
|
+
class="hide"
|
|
475
|
+
@shortkey="keyAction('remove')"
|
|
476
|
+
/>
|
|
429
477
|
</template>
|
|
430
478
|
</SortableTable>
|
|
431
479
|
</template>
|
|
@@ -365,14 +365,20 @@ export default {
|
|
|
365
365
|
@save="save"
|
|
366
366
|
@done="done"
|
|
367
367
|
>
|
|
368
|
-
<template
|
|
368
|
+
<template
|
|
369
|
+
v-if="!isView"
|
|
370
|
+
#left
|
|
371
|
+
>
|
|
369
372
|
<FileSelector
|
|
370
373
|
class="btn role-secondary"
|
|
371
374
|
:label="t('generic.readFromFile')"
|
|
372
375
|
@selected="onFileSelected"
|
|
373
376
|
/>
|
|
374
377
|
</template>
|
|
375
|
-
<template
|
|
378
|
+
<template
|
|
379
|
+
v-if="!isView"
|
|
380
|
+
#middle
|
|
381
|
+
>
|
|
376
382
|
<button
|
|
377
383
|
v-if="showPreview"
|
|
378
384
|
type="button"
|
|
@@ -381,7 +381,12 @@ export default {
|
|
|
381
381
|
/>
|
|
382
382
|
</div>
|
|
383
383
|
<div v-else>
|
|
384
|
-
<div
|
|
384
|
+
<div
|
|
385
|
+
v-for="(row, idx) in unremovedRows"
|
|
386
|
+
:key="idx"
|
|
387
|
+
class="role-row"
|
|
388
|
+
:class="{[mode]: true}"
|
|
389
|
+
>
|
|
385
390
|
<div class="subject">
|
|
386
391
|
<LabeledSelect
|
|
387
392
|
v-model="row.subject"
|
|
@@ -403,11 +408,23 @@ export default {
|
|
|
403
408
|
/>
|
|
404
409
|
</div>
|
|
405
410
|
<div class="remove">
|
|
406
|
-
<button
|
|
411
|
+
<button
|
|
412
|
+
v-t="'generic.remove'"
|
|
413
|
+
:disabled="isView"
|
|
414
|
+
type="button"
|
|
415
|
+
class="btn role-link"
|
|
416
|
+
@click="remove(row)"
|
|
417
|
+
/>
|
|
407
418
|
</div>
|
|
408
419
|
</div>
|
|
409
420
|
<div>
|
|
410
|
-
<button
|
|
421
|
+
<button
|
|
422
|
+
v-t="'rbac.roleBinding.add'"
|
|
423
|
+
:disabled="isView"
|
|
424
|
+
type="button"
|
|
425
|
+
class="btn role-tertiary add"
|
|
426
|
+
@click="add()"
|
|
427
|
+
/>
|
|
411
428
|
</div>
|
|
412
429
|
</div>
|
|
413
430
|
</template>
|
|
@@ -94,7 +94,10 @@ export default {
|
|
|
94
94
|
</script>
|
|
95
95
|
|
|
96
96
|
<template>
|
|
97
|
-
<div
|
|
97
|
+
<div
|
|
98
|
+
v-if="rows.length"
|
|
99
|
+
class="grid"
|
|
100
|
+
>
|
|
98
101
|
<div
|
|
99
102
|
:is="asLink ? 'a' : 'div'"
|
|
100
103
|
v-for="(r, idx) in rows"
|
|
@@ -110,7 +113,10 @@ export default {
|
|
|
110
113
|
}"
|
|
111
114
|
@click="select(r, idx)"
|
|
112
115
|
>
|
|
113
|
-
<div
|
|
116
|
+
<div
|
|
117
|
+
class="side-label"
|
|
118
|
+
:class="{'indicator': true }"
|
|
119
|
+
/>
|
|
114
120
|
<div v-if="r.deploysOnWindows">
|
|
115
121
|
<label class="deploys-os-label">
|
|
116
122
|
{{ t('catalog.charts.deploysOnWindows') }}
|
|
@@ -121,23 +127,39 @@ export default {
|
|
|
121
127
|
{{ t('catalog.charts.windowsIncompatible') }}
|
|
122
128
|
</label>
|
|
123
129
|
</div>
|
|
124
|
-
<div
|
|
130
|
+
<div
|
|
131
|
+
v-if="get(r, sideLabelField)"
|
|
132
|
+
class="side-label"
|
|
133
|
+
:class="{'indicator': false }"
|
|
134
|
+
>
|
|
125
135
|
<label>{{ get(r, sideLabelField) }}</label>
|
|
126
136
|
</div>
|
|
127
137
|
|
|
128
138
|
<div class="logo">
|
|
129
|
-
<i
|
|
130
|
-
|
|
139
|
+
<i
|
|
140
|
+
v-if="r.iconClass"
|
|
141
|
+
:class="r.iconClass"
|
|
142
|
+
/>
|
|
143
|
+
<LazyImage
|
|
144
|
+
v-else
|
|
145
|
+
:src="get(r, iconField)"
|
|
146
|
+
/>
|
|
131
147
|
</div>
|
|
132
148
|
<h4 class="name">
|
|
133
149
|
{{ get(r, nameField) }}
|
|
134
150
|
</h4>
|
|
135
|
-
<div
|
|
151
|
+
<div
|
|
152
|
+
v-if="get(r, descriptionField)"
|
|
153
|
+
class="description"
|
|
154
|
+
>
|
|
136
155
|
{{ get(r, descriptionField) }}
|
|
137
156
|
</div>
|
|
138
157
|
</div>
|
|
139
158
|
</div>
|
|
140
|
-
<div
|
|
159
|
+
<div
|
|
160
|
+
v-else
|
|
161
|
+
class="m-50 text-center"
|
|
162
|
+
>
|
|
141
163
|
<h1 v-t="noDataKey" />
|
|
142
164
|
</div>
|
|
143
165
|
</template>
|
package/components/SimpleBox.vue
CHANGED
|
@@ -28,14 +28,25 @@ export default {
|
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<template>
|
|
31
|
-
<div
|
|
32
|
-
|
|
31
|
+
<div
|
|
32
|
+
v-if="shown"
|
|
33
|
+
class="simple-box"
|
|
34
|
+
v-on="$listeners"
|
|
35
|
+
>
|
|
36
|
+
<div
|
|
37
|
+
v-if="title || canClose || $slots.title"
|
|
38
|
+
class="top"
|
|
39
|
+
>
|
|
33
40
|
<slot name="title">
|
|
34
41
|
<h2 v-if="title">
|
|
35
42
|
{{ title }}
|
|
36
43
|
</h2>
|
|
37
44
|
</slot>
|
|
38
|
-
<div
|
|
45
|
+
<div
|
|
46
|
+
v-if="canClose || pref"
|
|
47
|
+
class="close-button"
|
|
48
|
+
@click="closeBox($event)"
|
|
49
|
+
>
|
|
39
50
|
<i class="icon icon-close" />
|
|
40
51
|
</div>
|
|
41
52
|
</div>
|
|
@@ -87,39 +87,70 @@ export default {
|
|
|
87
87
|
<template>
|
|
88
88
|
<div v-if="clusterDetail">
|
|
89
89
|
<div class="single-cluster-header">
|
|
90
|
-
<ClusterProviderIcon
|
|
90
|
+
<ClusterProviderIcon
|
|
91
|
+
:cluster="clusterDetail"
|
|
92
|
+
class="rancher-icon"
|
|
93
|
+
width="32"
|
|
94
|
+
/>
|
|
91
95
|
<h1>{{ t('glance.clusterInfo') }}</h1>
|
|
92
96
|
</div>
|
|
93
97
|
|
|
94
98
|
<div class="single-cluster-info">
|
|
95
99
|
<div class="cluster-counts">
|
|
96
100
|
<ResourceSummary :spoofed-counts="totalCountGaugeInput" />
|
|
97
|
-
<ResourceSummary
|
|
98
|
-
|
|
101
|
+
<ResourceSummary
|
|
102
|
+
v-if="canAccessNodes"
|
|
103
|
+
:cluster="clusterDetail.id"
|
|
104
|
+
resource="node"
|
|
105
|
+
/>
|
|
106
|
+
<ResourceSummary
|
|
107
|
+
v-if="canAccessNamespaces"
|
|
108
|
+
:cluster="clusterDetail.id"
|
|
109
|
+
resource="namespace"
|
|
110
|
+
/>
|
|
99
111
|
</div>
|
|
100
112
|
<div class="glance-item">
|
|
101
113
|
<label>{{ t('glance.provider') }}: </label>
|
|
102
114
|
<span>{{ t(`cluster.provider.${ clusterDetail.status.provider || 'other' }`) }}</span>
|
|
103
115
|
</div>
|
|
104
|
-
<div
|
|
116
|
+
<div
|
|
117
|
+
v-if="clusterDetail.kubernetesVersionRaw"
|
|
118
|
+
class="glance-item"
|
|
119
|
+
>
|
|
105
120
|
<label>{{ t('glance.version') }}: </label>
|
|
106
|
-
<span
|
|
121
|
+
<span
|
|
122
|
+
v-if="clusterDetail.kubernetesVersionExtension"
|
|
123
|
+
style="font-size: 0.5em"
|
|
124
|
+
>{{ clusterDetail.kubernetesVersionExtension }}</span>
|
|
107
125
|
<span>{{ clusterDetail.kubernetesVersionBase }}</span>
|
|
108
126
|
</div>
|
|
109
127
|
<div class="glance-item">
|
|
110
128
|
<label>{{ t('glance.created') }}: </label>
|
|
111
|
-
<span><LiveDate
|
|
129
|
+
<span><LiveDate
|
|
130
|
+
:value="clusterDetail.metadata.creationTimestamp"
|
|
131
|
+
:add-suffix="true"
|
|
132
|
+
:show-tooltip="true"
|
|
133
|
+
/></span>
|
|
112
134
|
</div>
|
|
113
135
|
<div class="section">
|
|
114
136
|
{{ t('generic.links') }}
|
|
115
137
|
</div>
|
|
116
138
|
<div class="glance-item">
|
|
117
|
-
<nuxt-link
|
|
139
|
+
<nuxt-link
|
|
140
|
+
:to="exploreLink"
|
|
141
|
+
class="cluster-link"
|
|
142
|
+
>
|
|
118
143
|
{{ t('nav.categories.explore') }}
|
|
119
144
|
</nuxt-link>
|
|
120
145
|
</div>
|
|
121
|
-
<div
|
|
122
|
-
|
|
146
|
+
<div
|
|
147
|
+
v-if="showClusterTools"
|
|
148
|
+
class="glance-item"
|
|
149
|
+
>
|
|
150
|
+
<nuxt-link
|
|
151
|
+
:to="clusterToolsLink"
|
|
152
|
+
class="cluster-link"
|
|
153
|
+
>
|
|
123
154
|
{{ t('nav.clusterTools') }}
|
|
124
155
|
</nuxt-link>
|
|
125
156
|
</div>
|
|
@@ -199,7 +199,11 @@ export default {
|
|
|
199
199
|
<template>
|
|
200
200
|
<thead>
|
|
201
201
|
<tr :class="{'loading': loading}">
|
|
202
|
-
<th
|
|
202
|
+
<th
|
|
203
|
+
v-if="tableActions"
|
|
204
|
+
:width="checkWidth"
|
|
205
|
+
align="middle"
|
|
206
|
+
>
|
|
203
207
|
<Checkbox
|
|
204
208
|
v-model="isAll"
|
|
205
209
|
class="check"
|
|
@@ -207,7 +211,10 @@ export default {
|
|
|
207
211
|
:disabled="noRows || noResults"
|
|
208
212
|
/>
|
|
209
213
|
</th>
|
|
210
|
-
<th
|
|
214
|
+
<th
|
|
215
|
+
v-if="subExpandColumn"
|
|
216
|
+
:width="expandWidth"
|
|
217
|
+
/>
|
|
211
218
|
<th
|
|
212
219
|
v-for="col in columns"
|
|
213
220
|
v-show="!hasAdvancedFiltering || (hasAdvancedFiltering && col.isColVisible)"
|
|
@@ -221,7 +228,10 @@ export default {
|
|
|
221
228
|
class="table-header-container"
|
|
222
229
|
:class="{ 'not-filterable': hasAdvancedFiltering && !col.isFilter }"
|
|
223
230
|
>
|
|
224
|
-
<span
|
|
231
|
+
<span
|
|
232
|
+
v-if="col.sort"
|
|
233
|
+
v-tooltip="col.tooltip"
|
|
234
|
+
>
|
|
225
235
|
<span v-html="labelFor(col)" />
|
|
226
236
|
<i
|
|
227
237
|
v-show="hasAdvancedFiltering && !col.isFilter"
|
|
@@ -230,11 +240,20 @@ export default {
|
|
|
230
240
|
/>
|
|
231
241
|
<span class="icon-stack">
|
|
232
242
|
<i class="icon icon-sort icon-stack-1x faded" />
|
|
233
|
-
<i
|
|
234
|
-
|
|
243
|
+
<i
|
|
244
|
+
v-if="isCurrent(col) && !descending"
|
|
245
|
+
class="icon icon-sort-down icon-stack-1x"
|
|
246
|
+
/>
|
|
247
|
+
<i
|
|
248
|
+
v-if="isCurrent(col) && descending"
|
|
249
|
+
class="icon icon-sort-up icon-stack-1x"
|
|
250
|
+
/>
|
|
235
251
|
</span>
|
|
236
252
|
</span>
|
|
237
|
-
<span
|
|
253
|
+
<span
|
|
254
|
+
v-else
|
|
255
|
+
v-tooltip="col.tooltip"
|
|
256
|
+
>{{ labelFor(col) }}</span>
|
|
238
257
|
</div>
|
|
239
258
|
</th>
|
|
240
259
|
<th
|
|
@@ -298,8 +317,10 @@ export default {
|
|
|
298
317
|
</div>
|
|
299
318
|
</div>
|
|
300
319
|
</th>
|
|
301
|
-
<th
|
|
302
|
-
|
|
320
|
+
<th
|
|
321
|
+
v-else-if="rowActions"
|
|
322
|
+
:width="rowActionsWidth"
|
|
323
|
+
/>
|
|
303
324
|
</tr>
|
|
304
325
|
</thead>
|
|
305
326
|
</template>
|
|
@@ -215,6 +215,13 @@ function matches(fields, token, item) {
|
|
|
215
215
|
continue;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
// some items might not even have metadata.labels or metadata.labels.something... ignore those items. Nothing to filter by
|
|
219
|
+
if (typeof field !== 'function' &&
|
|
220
|
+
field.includes(LABEL_IDENTIFIER) &&
|
|
221
|
+
(!item.metadata.labels || !item.metadata.labels[field.replace(LABEL_IDENTIFIER, '')])) {
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
|
|
218
225
|
let modifier;
|
|
219
226
|
let val;
|
|
220
227
|
|