@rancher/shell 0.2.3 → 0.2.5
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/Form/TextArea/TextAreaAutoGrow.vue +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 +5 -38
- 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
|
@@ -140,20 +140,29 @@ export default {
|
|
|
140
140
|
|
|
141
141
|
<template>
|
|
142
142
|
<section>
|
|
143
|
-
<header class="row">
|
|
143
|
+
<header class="header-layout row">
|
|
144
144
|
<div class="col span-12">
|
|
145
145
|
<h1>
|
|
146
146
|
<t k="monitoring.overview.title" />
|
|
147
147
|
</h1>
|
|
148
148
|
<div>
|
|
149
|
-
<t
|
|
149
|
+
<t
|
|
150
|
+
k="monitoring.overview.subtitle"
|
|
151
|
+
:raw="true"
|
|
152
|
+
/>
|
|
150
153
|
</div>
|
|
151
154
|
</div>
|
|
152
155
|
</header>
|
|
153
156
|
<div>
|
|
154
|
-
<Banner
|
|
157
|
+
<Banner
|
|
158
|
+
v-if="v1Installed"
|
|
159
|
+
color="warning"
|
|
160
|
+
>
|
|
155
161
|
<template #default>
|
|
156
|
-
<t
|
|
162
|
+
<t
|
|
163
|
+
k="monitoring.v1Warning"
|
|
164
|
+
:raw="true"
|
|
165
|
+
/>
|
|
157
166
|
</template>
|
|
158
167
|
</Banner>
|
|
159
168
|
<div class="create-resource-container">
|
|
@@ -184,7 +193,7 @@ export default {
|
|
|
184
193
|
<i class="icon icon-external-link" />
|
|
185
194
|
</div>
|
|
186
195
|
</div>
|
|
187
|
-
<hr
|
|
196
|
+
<hr>
|
|
188
197
|
<div class="description">
|
|
189
198
|
<span>
|
|
190
199
|
<t :k="fel.description" />
|
|
@@ -53,19 +53,37 @@ export default {
|
|
|
53
53
|
<div class="row header mb-40">
|
|
54
54
|
<h1> {{ t('monitoring.monitors') }}</h1>
|
|
55
55
|
<div>
|
|
56
|
-
<button
|
|
56
|
+
<button
|
|
57
|
+
class="btn btn-lg role-primary float right"
|
|
58
|
+
@click="$router.push(createRoute)"
|
|
59
|
+
>
|
|
57
60
|
{{ t('resourceList.head.createFromYaml') }}
|
|
58
61
|
</button>
|
|
59
62
|
</div>
|
|
60
63
|
</div>
|
|
61
|
-
<Tabbed
|
|
62
|
-
|
|
64
|
+
<Tabbed
|
|
65
|
+
ref="tabs"
|
|
66
|
+
:default-tab="initTab"
|
|
67
|
+
>
|
|
68
|
+
<Tab
|
|
69
|
+
:name="podMonitorSchema.id"
|
|
70
|
+
:label="$store.getters['type-map/labelFor'](podMonitorSchema, 2)"
|
|
71
|
+
>
|
|
63
72
|
<TypeDescription :resource="podMonitorSchema.id" />
|
|
64
|
-
<ResourceTable
|
|
73
|
+
<ResourceTable
|
|
74
|
+
:schema="podMonitorSchema"
|
|
75
|
+
:rows="podMonitors"
|
|
76
|
+
/>
|
|
65
77
|
</Tab>
|
|
66
|
-
<Tab
|
|
78
|
+
<Tab
|
|
79
|
+
:name="serviceMonitorSchema.id"
|
|
80
|
+
:label="$store.getters['type-map/labelFor'](serviceMonitorSchema, 2)"
|
|
81
|
+
>
|
|
67
82
|
<TypeDescription :resource="serviceMonitorSchema.id" />
|
|
68
|
-
<ResourceTable
|
|
83
|
+
<ResourceTable
|
|
84
|
+
:schema="serviceMonitorSchema"
|
|
85
|
+
:rows="serviceMonitors"
|
|
86
|
+
/>
|
|
69
87
|
</Tab>
|
|
70
88
|
</Tabbed>
|
|
71
89
|
</div>
|
|
@@ -76,7 +76,10 @@ export default {
|
|
|
76
76
|
<div class="row header mb-10">
|
|
77
77
|
<h1> {{ t('monitoring.routesAndReceivers') }}</h1>
|
|
78
78
|
<div>
|
|
79
|
-
<button
|
|
79
|
+
<button
|
|
80
|
+
class="btn btn-lg role-primary float right"
|
|
81
|
+
@click="$router.push(createRoute)"
|
|
82
|
+
>
|
|
80
83
|
{{ t('resourceList.head.create') }}
|
|
81
84
|
</button>
|
|
82
85
|
</div>
|
|
@@ -87,18 +90,34 @@ export default {
|
|
|
87
90
|
:label="t('monitoring.alertmanagerConfig.deprecationWarning')"
|
|
88
91
|
/>
|
|
89
92
|
</div>
|
|
90
|
-
<Tabbed
|
|
91
|
-
|
|
93
|
+
<Tabbed
|
|
94
|
+
ref="tabs"
|
|
95
|
+
:default-tab="initTab"
|
|
96
|
+
>
|
|
97
|
+
<Tab
|
|
98
|
+
:name="routeSchema.id"
|
|
99
|
+
:label="$store.getters['type-map/labelFor'](routeSchema, 2)"
|
|
100
|
+
>
|
|
92
101
|
<div v-if="secretTo">
|
|
93
102
|
We don't support the current route format stored in alertmanager.yaml. Click
|
|
94
103
|
<nuxt-link :to="secretTo">
|
|
95
104
|
here
|
|
96
105
|
</nuxt-link> to update manually.
|
|
97
106
|
</div>
|
|
98
|
-
<ResourceTable
|
|
107
|
+
<ResourceTable
|
|
108
|
+
v-else
|
|
109
|
+
:schema="routeSchema"
|
|
110
|
+
:rows="routes"
|
|
111
|
+
/>
|
|
99
112
|
</Tab>
|
|
100
|
-
<Tab
|
|
101
|
-
|
|
113
|
+
<Tab
|
|
114
|
+
:name="receiverSchema.id"
|
|
115
|
+
:label="$store.getters['type-map/labelFor'](receiverSchema, 2)"
|
|
116
|
+
>
|
|
117
|
+
<ResourceTable
|
|
118
|
+
:schema="receiverSchema"
|
|
119
|
+
:rows="receivers"
|
|
120
|
+
/>
|
|
102
121
|
</Tab>
|
|
103
122
|
</Tabbed>
|
|
104
123
|
</div>
|
|
@@ -37,26 +37,37 @@ export default {
|
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
39
|
<section>
|
|
40
|
-
<header class="row">
|
|
40
|
+
<header class="header-layout row">
|
|
41
41
|
<div class="col span-12">
|
|
42
42
|
<h1>
|
|
43
43
|
<t k="neuvector.overview.title" />
|
|
44
44
|
</h1>
|
|
45
45
|
<div>
|
|
46
|
-
<t
|
|
46
|
+
<t
|
|
47
|
+
k="neuvector.overview.subtitle"
|
|
48
|
+
:raw="true"
|
|
49
|
+
/>
|
|
47
50
|
</div>
|
|
48
51
|
</div>
|
|
49
52
|
</header>
|
|
50
53
|
<div class="links">
|
|
51
|
-
<div
|
|
52
|
-
|
|
54
|
+
<div
|
|
55
|
+
v-for="fel in externalLinks"
|
|
56
|
+
:key="fel.label"
|
|
57
|
+
class="link-container"
|
|
58
|
+
>
|
|
59
|
+
<a
|
|
60
|
+
:href="fel.link"
|
|
61
|
+
target="_blank"
|
|
62
|
+
rel="noopener noreferrer"
|
|
63
|
+
>
|
|
53
64
|
<div class="link-logo">
|
|
54
65
|
<LazyImage :src="fel.iconSrc" />
|
|
55
66
|
</div>
|
|
56
67
|
<div class="link-content">
|
|
57
68
|
<t :k="fel.label" />
|
|
58
69
|
<i class="icon icon-external-link pull-right" />
|
|
59
|
-
<hr
|
|
70
|
+
<hr>
|
|
60
71
|
<div class="description"><t :k="fel.description" /></div>
|
|
61
72
|
</div>
|
|
62
73
|
</a>
|
|
@@ -54,22 +54,40 @@ export default {
|
|
|
54
54
|
<label class="text-label">
|
|
55
55
|
{{ t('customLinks.settings.valueLabel') }}
|
|
56
56
|
</label>
|
|
57
|
-
<label class="text-label"
|
|
58
|
-
</label>
|
|
57
|
+
<label class="text-label" />
|
|
59
58
|
|
|
60
59
|
<template v-for="(row,i) in value">
|
|
61
|
-
<div
|
|
60
|
+
<div
|
|
61
|
+
:key="i+'key'"
|
|
62
|
+
class="kv-item key"
|
|
63
|
+
:class="{'link-hidden': !row.enabled}"
|
|
64
|
+
>
|
|
62
65
|
<span>{{ row.label }}</span>
|
|
63
66
|
</div>
|
|
64
67
|
|
|
65
|
-
<div
|
|
68
|
+
<div
|
|
69
|
+
:key="i+'value'"
|
|
70
|
+
class="kv-item value"
|
|
71
|
+
:class="{'link-hidden': !row.enabled}"
|
|
72
|
+
>
|
|
66
73
|
<span>{{ row.value }}</span>
|
|
67
74
|
</div>
|
|
68
75
|
|
|
69
|
-
<div
|
|
70
|
-
|
|
76
|
+
<div
|
|
77
|
+
v-if="!row.readonly && !isView"
|
|
78
|
+
:key="i+'show'"
|
|
79
|
+
>
|
|
80
|
+
<Checkbox
|
|
81
|
+
v-if="!isView"
|
|
82
|
+
v-model="row.enabled"
|
|
83
|
+
label-key="customLinks.settings.showLabel"
|
|
84
|
+
@input="showhide(row, i, $event)"
|
|
85
|
+
/>
|
|
71
86
|
</div>
|
|
72
|
-
<div
|
|
87
|
+
<div
|
|
88
|
+
v-else
|
|
89
|
+
:key="i+'show'"
|
|
90
|
+
/>
|
|
73
91
|
</template>
|
|
74
92
|
</div>
|
|
75
93
|
</div>
|
|
@@ -258,10 +258,18 @@ export default {
|
|
|
258
258
|
/>
|
|
259
259
|
</div>
|
|
260
260
|
<template v-for="err in errors">
|
|
261
|
-
<Banner
|
|
261
|
+
<Banner
|
|
262
|
+
:key="err"
|
|
263
|
+
color="error"
|
|
264
|
+
:label="err"
|
|
265
|
+
/>
|
|
262
266
|
</template>
|
|
263
267
|
<div v-if="mode === 'edit'">
|
|
264
|
-
<AsyncButton
|
|
268
|
+
<AsyncButton
|
|
269
|
+
class="pull-right mt-20"
|
|
270
|
+
mode="apply"
|
|
271
|
+
@click="save"
|
|
272
|
+
/>
|
|
265
273
|
</div>
|
|
266
274
|
</div>
|
|
267
275
|
</template>
|
|
@@ -12,7 +12,8 @@ import { Banner } from '@components/Banner';
|
|
|
12
12
|
import { allHash } from '@shell/utils/promise';
|
|
13
13
|
import { MANAGEMENT } from '@shell/config/types';
|
|
14
14
|
import { getVendor, setVendor } from '@shell/config/private-label';
|
|
15
|
-
import {
|
|
15
|
+
import { fetchOrCreateSetting } from '@shell/utils/settings';
|
|
16
|
+
import { SETTING } from '@shell/config/settings';
|
|
16
17
|
import { _EDIT, _VIEW } from '@shell/config/query-params';
|
|
17
18
|
import { setFavIcon } from '@shell/utils/favicon';
|
|
18
19
|
|
|
@@ -192,7 +193,12 @@ export default {
|
|
|
192
193
|
<div>
|
|
193
194
|
<div class="row mb-20">
|
|
194
195
|
<div class="col span-6">
|
|
195
|
-
<LabeledInput
|
|
196
|
+
<LabeledInput
|
|
197
|
+
v-model="uiPLSetting.value"
|
|
198
|
+
:label="t('branding.uiPL.label')"
|
|
199
|
+
:mode="mode"
|
|
200
|
+
:maxlength="100"
|
|
201
|
+
/>
|
|
196
202
|
</div>
|
|
197
203
|
</div>
|
|
198
204
|
<h3 class="mt-20 mb-5 pb-5">
|
|
@@ -203,10 +209,17 @@ export default {
|
|
|
203
209
|
</label>
|
|
204
210
|
|
|
205
211
|
<div class="row mt-10 mb-20">
|
|
206
|
-
<Checkbox
|
|
212
|
+
<Checkbox
|
|
213
|
+
v-model="customizeLogo"
|
|
214
|
+
:label="t('branding.logos.useCustom')"
|
|
215
|
+
:mode="mode"
|
|
216
|
+
/>
|
|
207
217
|
</div>
|
|
208
218
|
|
|
209
|
-
<div
|
|
219
|
+
<div
|
|
220
|
+
v-if="customizeLogo"
|
|
221
|
+
class="row mb-20"
|
|
222
|
+
>
|
|
210
223
|
<div class="col logo-container span-6">
|
|
211
224
|
<div class="mb-10">
|
|
212
225
|
<FileSelector
|
|
@@ -219,9 +232,15 @@ export default {
|
|
|
219
232
|
@selected="updateLogo($event, 'uiLogoLight')"
|
|
220
233
|
/>
|
|
221
234
|
</div>
|
|
222
|
-
<SimpleBox
|
|
235
|
+
<SimpleBox
|
|
236
|
+
v-if="uiLogoLight || uiLogoDark"
|
|
237
|
+
class="theme-light mb-10"
|
|
238
|
+
>
|
|
223
239
|
<label class="text-muted">{{ t('branding.logos.lightPreview') }}</label>
|
|
224
|
-
<img
|
|
240
|
+
<img
|
|
241
|
+
class="logo-preview"
|
|
242
|
+
:src="uiLogoLight ? uiLogoLight : uiLogoDark"
|
|
243
|
+
>
|
|
225
244
|
</SimpleBox>
|
|
226
245
|
</div>
|
|
227
246
|
<div class="col logo-container span-6">
|
|
@@ -236,9 +255,15 @@ export default {
|
|
|
236
255
|
@selected="updateLogo($event, 'uiLogoDark')"
|
|
237
256
|
/>
|
|
238
257
|
</div>
|
|
239
|
-
<SimpleBox
|
|
258
|
+
<SimpleBox
|
|
259
|
+
v-if="uiLogoDark || uiLogoLight"
|
|
260
|
+
class="theme-dark mb-10"
|
|
261
|
+
>
|
|
240
262
|
<label class="text-muted">{{ t('branding.logos.darkPreview') }}</label>
|
|
241
|
-
<img
|
|
263
|
+
<img
|
|
264
|
+
class="logo-preview"
|
|
265
|
+
:src="uiLogoDark ? uiLogoDark : uiLogoLight"
|
|
266
|
+
>
|
|
242
267
|
</SimpleBox>
|
|
243
268
|
</div>
|
|
244
269
|
</div>
|
|
@@ -251,10 +276,17 @@ export default {
|
|
|
251
276
|
</label>
|
|
252
277
|
|
|
253
278
|
<div class="row mt-10 mb-20">
|
|
254
|
-
<Checkbox
|
|
279
|
+
<Checkbox
|
|
280
|
+
v-model="customizeFavicon"
|
|
281
|
+
:label="t('branding.favicon.useCustom')"
|
|
282
|
+
:mode="mode"
|
|
283
|
+
/>
|
|
255
284
|
</div>
|
|
256
285
|
|
|
257
|
-
<div
|
|
286
|
+
<div
|
|
287
|
+
v-if="customizeFavicon"
|
|
288
|
+
class="row mb-20"
|
|
289
|
+
>
|
|
258
290
|
<div class="col logo-container span-12">
|
|
259
291
|
<div class="mb-10">
|
|
260
292
|
<FileSelector
|
|
@@ -269,7 +301,10 @@ export default {
|
|
|
269
301
|
</div>
|
|
270
302
|
<SimpleBox v-if="uiFavicon">
|
|
271
303
|
<label class="text-muted">{{ t('branding.favicon.preview') }}</label>
|
|
272
|
-
<img
|
|
304
|
+
<img
|
|
305
|
+
class="logo-preview"
|
|
306
|
+
:src="uiFavicon"
|
|
307
|
+
>
|
|
273
308
|
</SimpleBox>
|
|
274
309
|
</div>
|
|
275
310
|
</div>
|
|
@@ -281,10 +316,20 @@ export default {
|
|
|
281
316
|
{{ t('branding.color.tip', {}, true) }}
|
|
282
317
|
</label>
|
|
283
318
|
<div class="row mt-20">
|
|
284
|
-
<Checkbox
|
|
319
|
+
<Checkbox
|
|
320
|
+
v-model="customizeColor"
|
|
321
|
+
:label="t('branding.color.useCustom')"
|
|
322
|
+
:mode="mode"
|
|
323
|
+
/>
|
|
285
324
|
</div>
|
|
286
|
-
<div
|
|
287
|
-
|
|
325
|
+
<div
|
|
326
|
+
v-if="customizeColor"
|
|
327
|
+
class="row mt-20 mb-20"
|
|
328
|
+
>
|
|
329
|
+
<ColorInput
|
|
330
|
+
v-model="uiColor"
|
|
331
|
+
component-testid="primary"
|
|
332
|
+
/>
|
|
288
333
|
</div>
|
|
289
334
|
|
|
290
335
|
<h3 class="mt-40 mb-5 pb-0">
|
|
@@ -300,10 +345,14 @@ export default {
|
|
|
300
345
|
:mode="mode"
|
|
301
346
|
/>
|
|
302
347
|
</div>
|
|
303
|
-
<div
|
|
348
|
+
<div
|
|
349
|
+
v-if="customizeLinkColor"
|
|
350
|
+
class="row mt-20 mb-20"
|
|
351
|
+
>
|
|
304
352
|
<ColorInput
|
|
305
353
|
v-model="uiLinkColor"
|
|
306
354
|
class="col"
|
|
355
|
+
component-testid="link"
|
|
307
356
|
/>
|
|
308
357
|
<span class="col link-example">
|
|
309
358
|
<a>
|
|
@@ -313,10 +362,19 @@ export default {
|
|
|
313
362
|
</div>
|
|
314
363
|
</div>
|
|
315
364
|
<template v-for="err in errors">
|
|
316
|
-
<Banner
|
|
365
|
+
<Banner
|
|
366
|
+
:key="err"
|
|
367
|
+
color="error"
|
|
368
|
+
:label="err"
|
|
369
|
+
/>
|
|
317
370
|
</template>
|
|
318
371
|
<div v-if="mode === 'edit'">
|
|
319
|
-
<AsyncButton
|
|
372
|
+
<AsyncButton
|
|
373
|
+
component-testid="branding-apply"
|
|
374
|
+
class="pull-right mt-20"
|
|
375
|
+
mode="apply"
|
|
376
|
+
@click="save"
|
|
377
|
+
/>
|
|
320
378
|
</div>
|
|
321
379
|
</div>
|
|
322
380
|
</template>
|
|
@@ -3,13 +3,14 @@ import Loading from '@shell/components/Loading';
|
|
|
3
3
|
import AsyncButton from '@shell/components/AsyncButton';
|
|
4
4
|
import Banner from '@components/Banner/Banner.vue';
|
|
5
5
|
import { MANAGEMENT } from '@shell/config/types';
|
|
6
|
+
import { fetchOrCreateSetting } from '@shell/utils/settings';
|
|
7
|
+
import { SETTING } from '@shell/config/settings';
|
|
6
8
|
import { _EDIT, _VIEW } from '@shell/config/query-params';
|
|
7
9
|
import KeyValue from '@shell/components/form/KeyValue';
|
|
8
10
|
import { mapGetters } from 'vuex';
|
|
9
11
|
import { isRancherPrime } from '@shell/config/version';
|
|
10
12
|
import DefaultLinksEditor from './DefaultLinksEditor';
|
|
11
13
|
import { CUSTOM_LINKS_VERSION, fetchLinks } from '@shell/config/home-links';
|
|
12
|
-
import { SETTING, fetchOrCreateSetting } from '@shell/config/settings';
|
|
13
14
|
|
|
14
15
|
export default {
|
|
15
16
|
layout: 'authenticated',
|
|
@@ -116,10 +117,21 @@ export default {
|
|
|
116
117
|
/>
|
|
117
118
|
</div>
|
|
118
119
|
<template v-for="err in errors">
|
|
119
|
-
<Banner
|
|
120
|
+
<Banner
|
|
121
|
+
:key="err"
|
|
122
|
+
color="error"
|
|
123
|
+
:label="err"
|
|
124
|
+
/>
|
|
120
125
|
</template>
|
|
121
|
-
<div
|
|
122
|
-
|
|
126
|
+
<div
|
|
127
|
+
v-if="mode === 'edit'"
|
|
128
|
+
class="mt-20"
|
|
129
|
+
>
|
|
130
|
+
<AsyncButton
|
|
131
|
+
class="pull-right"
|
|
132
|
+
mode="apply"
|
|
133
|
+
@click="save"
|
|
134
|
+
/>
|
|
123
135
|
</div>
|
|
124
136
|
</div>
|
|
125
137
|
</template>
|
|
@@ -131,7 +131,10 @@ export default {
|
|
|
131
131
|
<div class="mt-40">
|
|
132
132
|
<h2 v-t="'performance.manualRefresh.label'" />
|
|
133
133
|
<p>{{ t('performance.manualRefresh.description') }}</p>
|
|
134
|
-
<Banner
|
|
134
|
+
<Banner
|
|
135
|
+
color="error"
|
|
136
|
+
label-key="performance.manualRefresh.banner"
|
|
137
|
+
/>
|
|
135
138
|
<Checkbox
|
|
136
139
|
v-model="value.manualRefresh.enabled"
|
|
137
140
|
:mode="mode"
|
|
@@ -158,7 +161,10 @@ export default {
|
|
|
158
161
|
<div class="mt-40">
|
|
159
162
|
<h2 v-t="'performance.gc.label'" />
|
|
160
163
|
<p>{{ t('performance.gc.description') }}</p>
|
|
161
|
-
<Banner
|
|
164
|
+
<Banner
|
|
165
|
+
color="error"
|
|
166
|
+
label-key="performance.gc.banner"
|
|
167
|
+
/>
|
|
162
168
|
<Checkbox
|
|
163
169
|
v-model="value.garbageCollection.enabled"
|
|
164
170
|
:mode="mode"
|
|
@@ -213,7 +219,10 @@ export default {
|
|
|
213
219
|
min="30"
|
|
214
220
|
class="input"
|
|
215
221
|
/>
|
|
216
|
-
<p
|
|
222
|
+
<p
|
|
223
|
+
class="mt-20"
|
|
224
|
+
:class="{ 'text-muted': !value.garbageCollection.enabled }"
|
|
225
|
+
>
|
|
217
226
|
{{ t('performance.gc.howRun.count.description') }}
|
|
218
227
|
</p>
|
|
219
228
|
<LabeledInput
|
|
@@ -231,10 +240,18 @@ export default {
|
|
|
231
240
|
</div>
|
|
232
241
|
</div>
|
|
233
242
|
<template v-for="err in errors">
|
|
234
|
-
<Banner
|
|
243
|
+
<Banner
|
|
244
|
+
:key="err"
|
|
245
|
+
color="error"
|
|
246
|
+
:label="err"
|
|
247
|
+
/>
|
|
235
248
|
</template>
|
|
236
249
|
<div v-if="mode === 'edit'">
|
|
237
|
-
<AsyncButton
|
|
250
|
+
<AsyncButton
|
|
251
|
+
class="pull-right mt-20"
|
|
252
|
+
mode="apply"
|
|
253
|
+
@click="save"
|
|
254
|
+
/>
|
|
238
255
|
</div>
|
|
239
256
|
</div>
|
|
240
257
|
</template>
|
|
@@ -156,18 +156,33 @@ export default {
|
|
|
156
156
|
</p>
|
|
157
157
|
<div class="custom mt-10">
|
|
158
158
|
<div class="fields">
|
|
159
|
-
<LabeledInput
|
|
159
|
+
<LabeledInput
|
|
160
|
+
v-model="location"
|
|
161
|
+
v-focus
|
|
162
|
+
label-key="plugins.developer.fields.url"
|
|
163
|
+
@input="updateLocation"
|
|
164
|
+
/>
|
|
160
165
|
</div>
|
|
161
166
|
</div>
|
|
162
167
|
<div class="custom mt-10">
|
|
163
168
|
<div class="fields">
|
|
164
|
-
<LabeledInput
|
|
169
|
+
<LabeledInput
|
|
170
|
+
v-model="name"
|
|
171
|
+
label-key="plugins.developer.fields.name"
|
|
172
|
+
@input="updateName"
|
|
173
|
+
/>
|
|
165
174
|
</div>
|
|
166
175
|
<div class="fields mt-10">
|
|
167
|
-
<Checkbox
|
|
176
|
+
<Checkbox
|
|
177
|
+
v-model="persist"
|
|
178
|
+
label-key="plugins.developer.fields.persist"
|
|
179
|
+
/>
|
|
168
180
|
</div>
|
|
169
181
|
<div class="dialog-buttons mt-20">
|
|
170
|
-
<button
|
|
182
|
+
<button
|
|
183
|
+
class="btn role-secondary"
|
|
184
|
+
@click="closeDialog()"
|
|
185
|
+
>
|
|
171
186
|
{{ t('generic.cancel') }}
|
|
172
187
|
</button>
|
|
173
188
|
<AsyncButton
|
|
@@ -220,7 +220,10 @@ export default {
|
|
|
220
220
|
height="auto"
|
|
221
221
|
:scrollable="true"
|
|
222
222
|
>
|
|
223
|
-
<div
|
|
223
|
+
<div
|
|
224
|
+
v-if="plugin"
|
|
225
|
+
class="plugin-install-dialog"
|
|
226
|
+
>
|
|
224
227
|
<h4 class="mt-10">
|
|
225
228
|
{{ t(`plugins.${ mode }.title`, { name: plugin.label }) }}
|
|
226
229
|
</h4>
|
|
@@ -229,7 +232,11 @@ export default {
|
|
|
229
232
|
<p>
|
|
230
233
|
{{ t(`plugins.${ mode }.prompt`) }}
|
|
231
234
|
</p>
|
|
232
|
-
<Banner
|
|
235
|
+
<Banner
|
|
236
|
+
v-if="!plugin.certified"
|
|
237
|
+
color="warning"
|
|
238
|
+
:label="t('plugins.install.warnNotCertified')"
|
|
239
|
+
/>
|
|
233
240
|
<LabeledSelect
|
|
234
241
|
v-if="showVersionSelector"
|
|
235
242
|
v-model="version"
|
|
@@ -242,7 +249,11 @@ export default {
|
|
|
242
249
|
</div>
|
|
243
250
|
</div>
|
|
244
251
|
<div class="dialog-buttons">
|
|
245
|
-
<button
|
|
252
|
+
<button
|
|
253
|
+
:disabled="busy"
|
|
254
|
+
class="btn role-secondary"
|
|
255
|
+
@click="closeDialog(false)"
|
|
256
|
+
>
|
|
246
257
|
{{ t('generic.cancel') }}
|
|
247
258
|
</button>
|
|
248
259
|
<AsyncButton
|