@rancher/shell 0.1.0
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/federal/dark/rancher-logo.svg +104 -0
- package/assets/brand/federal/metadata.json +3 -0
- package/assets/brand/federal/rancher-logo.svg +1 -0
- package/assets/brand/rgs/dark/rancher-logo.svg +1 -0
- package/assets/brand/rgs/metadata.json +3 -0
- package/assets/brand/rgs/rancher-logo.svg +1 -0
- package/assets/brand/suse/dark/rancher-logo.svg +148 -0
- package/assets/brand/suse/metadata.json +3 -0
- package/assets/brand/suse/rancher-logo.svg +130 -0
- package/assets/data/aws-regions.json +29 -0
- package/assets/data/ec2-instance-groups.json +85 -0
- package/assets/fonts/lato/lato-v17-latin-700.woff +0 -0
- package/assets/fonts/lato/lato-v17-latin-700.woff2 +0 -0
- package/assets/fonts/lato/lato-v17-latin-regular.woff +0 -0
- package/assets/fonts/lato/lato-v17-latin-regular.woff2 +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-300.woff +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-300.woff2 +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-500.woff +0 -0
- package/assets/fonts/poppins/poppins-v15-latin-500.woff2 +0 -0
- package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff +0 -0
- package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff2 +0 -0
- package/assets/images/field-valid.svg +16 -0
- package/assets/images/generic-catalog.svg +15 -0
- package/assets/images/generic-driver.svg +17 -0
- package/assets/images/pl/README.md +13 -0
- package/assets/images/pl/banner.svg +241 -0
- package/assets/images/pl/dark/banner.svg +242 -0
- package/assets/images/pl/dark/login-landscape.svg +291 -0
- package/assets/images/pl/dark/rancher-logo.svg +51 -0
- package/assets/images/pl/decoration-cloud-big-white.svg +1 -0
- package/assets/images/pl/decoration-ground.svg +1 -0
- package/assets/images/pl/error-desert-landscape.svg +217 -0
- package/assets/images/pl/half-logo.svg +23 -0
- package/assets/images/pl/harvester.png +0 -0
- package/assets/images/pl/login-landscape.svg +496 -0
- package/assets/images/pl/rancher-logo.svg +51 -0
- package/assets/images/pl/setup-step-one.svg +612 -0
- package/assets/images/pl/sunglasses.svg +20 -0
- package/assets/images/providers/aks-black.svg +28 -0
- package/assets/images/providers/aks.svg +31 -0
- package/assets/images/providers/aliyun-black.svg +14 -0
- package/assets/images/providers/aliyun.svg +17 -0
- package/assets/images/providers/aliyunecs-black.svg +13 -0
- package/assets/images/providers/aliyunecs.svg +21 -0
- package/assets/images/providers/amazonec2-black.svg +8 -0
- package/assets/images/providers/amazonec2.svg +19 -0
- package/assets/images/providers/amazoneks-black.svg +10 -0
- package/assets/images/providers/amazoneks.svg +14 -0
- package/assets/images/providers/aws.svg +38 -0
- package/assets/images/providers/azure-black.svg +29 -0
- package/assets/images/providers/azure.svg +32 -0
- package/assets/images/providers/azuread-black.svg +22 -0
- package/assets/images/providers/azuread.svg +25 -0
- package/assets/images/providers/azureaks-black.svg +28 -0
- package/assets/images/providers/azureaks.svg +31 -0
- package/assets/images/providers/baidu-black.svg +19 -0
- package/assets/images/providers/baidu.svg +25 -0
- package/assets/images/providers/cloudca-black.svg +45 -0
- package/assets/images/providers/cloudca.svg +49 -0
- package/assets/images/providers/cloudscale-black.svg +24 -0
- package/assets/images/providers/cloudscale.svg +28 -0
- package/assets/images/providers/custom.svg +85 -0
- package/assets/images/providers/digitalocean-black.svg +21 -0
- package/assets/images/providers/digitalocean.svg +24 -0
- package/assets/images/providers/equinix-black.svg +13 -0
- package/assets/images/providers/equinix.svg +13 -0
- package/assets/images/providers/exoscale.svg +1 -0
- package/assets/images/providers/gcp.svg +6 -0
- package/assets/images/providers/gke-black.svg +10 -0
- package/assets/images/providers/gke.svg +28 -0
- package/assets/images/providers/google.svg +29 -0
- package/assets/images/providers/googlegke-black.svg +10 -0
- package/assets/images/providers/googlegke.svg +28 -0
- package/assets/images/providers/harvester.svg +1 -0
- package/assets/images/providers/huaweicce-black.svg +109 -0
- package/assets/images/providers/huaweicce.svg +184 -0
- package/assets/images/providers/import.svg +99 -0
- package/assets/images/providers/k3s-black.svg +10 -0
- package/assets/images/providers/k3s.svg +15 -0
- package/assets/images/providers/kubernetes-black.svg +37 -0
- package/assets/images/providers/kubernetes.svg +99 -0
- package/assets/images/providers/linode.svg +54 -0
- package/assets/images/providers/linodelke-black.svg +40 -0
- package/assets/images/providers/linodelke.svg +54 -0
- package/assets/images/providers/local-cluster.svg +20 -0
- package/assets/images/providers/minikube-black.svg +25 -0
- package/assets/images/providers/minikube.svg +36 -0
- package/assets/images/providers/oci-black.svg +41 -0
- package/assets/images/providers/oci.svg +44 -0
- package/assets/images/providers/openstack-black.svg +16 -0
- package/assets/images/providers/openstack.svg +20 -0
- package/assets/images/providers/oracle.svg +66 -0
- package/assets/images/providers/oracleoke-black.svg +51 -0
- package/assets/images/providers/oracleoke.svg +55 -0
- package/assets/images/providers/otc-black.svg +15 -0
- package/assets/images/providers/otc.svg +33 -0
- package/assets/images/providers/otccce.svg +33 -0
- package/assets/images/providers/packet-black.svg +15 -0
- package/assets/images/providers/packet.svg +16 -0
- package/assets/images/providers/pinganyunecs-black.svg +26 -0
- package/assets/images/providers/pinganyunecs.svg +26 -0
- package/assets/images/providers/pnap-black.svg +43 -0
- package/assets/images/providers/pnap.svg +48 -0
- package/assets/images/providers/rackspace-black.svg +14 -0
- package/assets/images/providers/rackspace.svg +18 -0
- package/assets/images/providers/rke.svg +26 -0
- package/assets/images/providers/rke2.svg +26 -0
- package/assets/images/providers/softlayer.svg +27 -0
- package/assets/images/providers/tencenttke-black.svg +22 -0
- package/assets/images/providers/tencenttke.svg +39 -0
- package/assets/images/providers/vmwarevsphere-black.svg +60 -0
- package/assets/images/providers/vmwarevsphere.svg +51 -0
- package/assets/images/vendor/activedirectory.svg +20 -0
- package/assets/images/vendor/adfs.svg +19 -0
- package/assets/images/vendor/azuread.svg +18 -0
- package/assets/images/vendor/custom.svg +42 -0
- package/assets/images/vendor/email.svg +22 -0
- package/assets/images/vendor/freeipa.svg +26 -0
- package/assets/images/vendor/github.svg +13 -0
- package/assets/images/vendor/googleoauth.svg +9 -0
- package/assets/images/vendor/grafana.svg +48 -0
- package/assets/images/vendor/jaeger.svg +1 -0
- package/assets/images/vendor/keycloak.svg +30 -0
- package/assets/images/vendor/kiali.svg +23 -0
- package/assets/images/vendor/linux.svg +23 -0
- package/assets/images/vendor/longhorn.svg +25 -0
- package/assets/images/vendor/neuvector.svg +1 -0
- package/assets/images/vendor/okta.svg +31 -0
- package/assets/images/vendor/openldap.svg +34 -0
- package/assets/images/vendor/pagerduty.svg +26 -0
- package/assets/images/vendor/ping.svg +58 -0
- package/assets/images/vendor/prometheus.svg +14 -0
- package/assets/images/vendor/shibboleth.svg +481 -0
- package/assets/images/vendor/slack.svg +38 -0
- package/assets/images/vendor/webhook.svg +23 -0
- package/assets/images/vendor/windows.svg +13 -0
- package/assets/images/wechat-qr-code.jpg +0 -0
- package/assets/styles/app.scss +35 -0
- package/assets/styles/base/_basic.scss +112 -0
- package/assets/styles/base/_color.scss +11 -0
- package/assets/styles/base/_functions.scss +134 -0
- package/assets/styles/base/_helpers.scss +263 -0
- package/assets/styles/base/_mixins.scss +165 -0
- package/assets/styles/base/_typography.scss +69 -0
- package/assets/styles/base/_variables.scss +58 -0
- package/assets/styles/fonts/_dots.scss +18 -0
- package/assets/styles/fonts/_fontstack.scss +49 -0
- package/assets/styles/fonts/_icons.scss +101 -0
- package/assets/styles/fonts/_zerowidthspace.scss +8 -0
- package/assets/styles/global/_button.scss +182 -0
- package/assets/styles/global/_cards.scss +94 -0
- package/assets/styles/global/_columns.scss +122 -0
- package/assets/styles/global/_form.scss +145 -0
- package/assets/styles/global/_gauges.scss +55 -0
- package/assets/styles/global/_labeled-input.scss +130 -0
- package/assets/styles/global/_resource.scss +89 -0
- package/assets/styles/global/_select.scss +182 -0
- package/assets/styles/global/_table.scss +106 -0
- package/assets/styles/global/_tooltip.scss +197 -0
- package/assets/styles/themes/_dark.scss +204 -0
- package/assets/styles/themes/_light.scss +533 -0
- package/assets/styles/themes/_suse.scss +26 -0
- package/assets/styles/vendor/_code-mirror.scss +3 -0
- package/assets/styles/vendor/normalize.scss +349 -0
- package/assets/styles/vendor/vue-js-modal.scss +12 -0
- package/assets/styles/vendor/vue-select.scss +386 -0
- package/assets/translations/en-us.yaml +6802 -0
- package/assets/translations/zh-hans.yaml +7062 -0
- package/chart/example.vue +18 -0
- package/chart/istio.vue +209 -0
- package/chart/logging/index.vue +70 -0
- package/chart/monitoring/ClusterSelector.vue +213 -0
- package/chart/monitoring/StorageClassSelector.vue +45 -0
- package/chart/monitoring/alerting/index.vue +215 -0
- package/chart/monitoring/grafana/index.vue +319 -0
- package/chart/monitoring/index.vue +276 -0
- package/chart/monitoring/prometheus/index.vue +379 -0
- package/chart/monitoring/steps/uninstall-v1.vue +131 -0
- package/chart/rancher-alerting-drivers.vue +39 -0
- package/chart/rancher-backup/S3.vue +97 -0
- package/chart/rancher-backup/index.vue +218 -0
- package/chart/rancher-gatekeeper.vue +29 -0
- package/cloud-credential/aws.vue +98 -0
- package/cloud-credential/azure.vue +113 -0
- package/cloud-credential/digitalocean.vue +44 -0
- package/cloud-credential/gcp.vue +64 -0
- package/cloud-credential/generic.vue +84 -0
- package/cloud-credential/harvester.vue +149 -0
- package/cloud-credential/linode.vue +44 -0
- package/cloud-credential/s3.vue +152 -0
- package/cloud-credential/vmwarevsphere.vue +99 -0
- package/components/ActionDropdown.vue +249 -0
- package/components/ActionMenu.vue +312 -0
- package/components/AdvancedSection.vue +28 -0
- package/components/Alert.vue +51 -0
- package/components/AlertTable.vue +111 -0
- package/components/AssignTo.vue +162 -0
- package/components/AsyncButton.vue +249 -0
- package/components/BackLink.vue +27 -0
- package/components/BadgeState.vue +99 -0
- package/components/Banner.vue +148 -0
- package/components/BannerGraphic.vue +103 -0
- package/components/BrandImage.vue +85 -0
- package/components/ButtonDropdown.vue +305 -0
- package/components/ButtonGroup.vue +88 -0
- package/components/Card.vue +104 -0
- package/components/ChartHeading.vue +21 -0
- package/components/ChartReadme.vue +80 -0
- package/components/ClusterBadge.vue +34 -0
- package/components/ClusterProviderIcon.vue +95 -0
- package/components/CodeMirror.vue +126 -0
- package/components/Collapse.vue +55 -0
- package/components/CollapsibleCard.vue +113 -0
- package/components/CommunityLinks.vue +128 -0
- package/components/ConsumptionGauge.vue +133 -0
- package/components/ContainerResourceLimit.vue +216 -0
- package/components/CopyCode.vue +66 -0
- package/components/CopyToClipboard.vue +43 -0
- package/components/CopyToClipboardText.vue +39 -0
- package/components/CountBox.vue +104 -0
- package/components/CountGauge.vue +157 -0
- package/components/CruResource.vue +565 -0
- package/components/CruResourceFooter.vue +108 -0
- package/components/DashboardMetrics.vue +106 -0
- package/components/DashboardOptions.vue +136 -0
- package/components/DetailText.vue +192 -0
- package/components/DetailTop.vue +263 -0
- package/components/EmberPage.vue +609 -0
- package/components/EmberPageView.vue +36 -0
- package/components/EtcdInfoBanner.vue +57 -0
- package/components/EventsTable.vue +67 -0
- package/components/FileDiff.vue +174 -0
- package/components/FixedBanner.vue +228 -0
- package/components/Flag.vue +77 -0
- package/components/Glance.vue +70 -0
- package/components/GlobalRoleBindings.vue +376 -0
- package/components/GradientBox.vue +79 -0
- package/components/GrafanaDashboard.vue +269 -0
- package/components/GrowlManager.vue +160 -0
- package/components/HardwareResourceGauge.vue +154 -0
- package/components/HarvesterServiceAddOnConfig.vue +204 -0
- package/components/HarvesterUpgradeProgressBarList.vue +109 -0
- package/components/IconMessage.vue +87 -0
- package/components/Import.vue +206 -0
- package/components/IndentedPanel.vue +24 -0
- package/components/InfoBox.vue +78 -0
- package/components/InputOrDisplay.vue +67 -0
- package/components/KeyValueView.vue +256 -0
- package/components/LabelValue.vue +42 -0
- package/components/LandingPagePreference.vue +141 -0
- package/components/LazyImage.vue +55 -0
- package/components/Loading.vue +72 -0
- package/components/Markdown.vue +96 -0
- package/components/MessageLink.vue +64 -0
- package/components/ModalWithCard.vue +124 -0
- package/components/MoveModal.vue +135 -0
- package/components/NovncConsole.vue +93 -0
- package/components/NovncConsoleWrapper.vue +150 -0
- package/components/PercentageBar.vue +120 -0
- package/components/ProgressBarMulti.vue +156 -0
- package/components/PromptChangePassword.vue +106 -0
- package/components/PromptModal.vue +98 -0
- package/components/PromptRemove.vue +401 -0
- package/components/PromptRestore.vue +299 -0
- package/components/Questions/Array.vue +34 -0
- package/components/Questions/Boolean.vue +26 -0
- package/components/Questions/CloudCredential.vue +51 -0
- package/components/Questions/Enum.vue +29 -0
- package/components/Questions/Float.vue +31 -0
- package/components/Questions/Int.vue +31 -0
- package/components/Questions/Question.js +73 -0
- package/components/Questions/QuestionMap.vue +39 -0
- package/components/Questions/Reference.vue +128 -0
- package/components/Questions/String.vue +41 -0
- package/components/Questions/index.vue +489 -0
- package/components/Random.vue +92 -0
- package/components/RelatedResources.vue +181 -0
- package/components/RelatedWorkloadsTable.vue +44 -0
- package/components/ResourceCancelModal.vue +108 -0
- package/components/ResourceDetail/Masthead.vue +483 -0
- package/components/ResourceDetail/index.vue +386 -0
- package/components/ResourceList/Masthead.vue +176 -0
- package/components/ResourceList/index.vue +149 -0
- package/components/ResourceSummary.vue +163 -0
- package/components/ResourceTable.vue +401 -0
- package/components/ResourceYaml.vue +412 -0
- package/components/RoleBindings.vue +453 -0
- package/components/SelectIconGrid.vue +364 -0
- package/components/SimpleBox.vue +102 -0
- package/components/SingleClusterInfo.vue +171 -0
- package/components/SortableTable/THead.vue +221 -0
- package/components/SortableTable/actions.js +151 -0
- package/components/SortableTable/filtering.js +214 -0
- package/components/SortableTable/grouping.js +41 -0
- package/components/SortableTable/index.vue +1393 -0
- package/components/SortableTable/paging.js +118 -0
- package/components/SortableTable/selection.js +601 -0
- package/components/SortableTable/sorting.js +102 -0
- package/components/StatusTable.vue +55 -0
- package/components/Tabbed/Tab.vue +94 -0
- package/components/Tabbed/index.vue +419 -0
- package/components/TabbedLinks/index.vue +94 -0
- package/components/TableSparkLine.vue +105 -0
- package/components/Tag.vue +19 -0
- package/components/Tip.vue +40 -0
- package/components/TypeDescription.vue +55 -0
- package/components/VMConsoleBar.vue +87 -0
- package/components/Wizard.vue +559 -0
- package/components/YamlEditor.vue +266 -0
- package/components/__tests__/Banner.test.ts +13 -0
- package/components/__tests__/CopyCode.test.ts +21 -0
- package/components/__tests__/CruResource.test.ts +73 -0
- package/components/auth/AllowedPrincipals.vue +107 -0
- package/components/auth/AuthBanner.vue +71 -0
- package/components/auth/Principal.vue +169 -0
- package/components/auth/RoleDetailEdit.vue +724 -0
- package/components/auth/SelectPrincipal.vue +203 -0
- package/components/auth/login/github.vue +19 -0
- package/components/auth/login/ldap.vue +86 -0
- package/components/auth/login/oauth.vue +21 -0
- package/components/auth/login/oidc.vue +21 -0
- package/components/auth/login/saml.vue +23 -0
- package/components/dialog/AddClusterMemberDialog.vue +72 -0
- package/components/dialog/AddCustomBadgeDialog.vue +272 -0
- package/components/dialog/AddProjectMemberDialog.vue +109 -0
- package/components/dialog/AddonConfigConfirmationDialog.vue +76 -0
- package/components/dialog/DrainNode.vue +218 -0
- package/components/dialog/ForceMachineRemoveDialog.vue +106 -0
- package/components/dialog/GenericPrompt.vue +103 -0
- package/components/dialog/RollbackWorkloadDialog.vue +306 -0
- package/components/dialog/RotateCertificatesDialog.vue +196 -0
- package/components/dialog/RotateEncryptionKeyDialog.vue +158 -0
- package/components/dialog/SaveAsRKETemplateDialog.vue +122 -0
- package/components/dialog/ScaleMachineDownDialog.vue +127 -0
- package/components/dialog/harvester/AddHotplugModal.vue +159 -0
- package/components/dialog/harvester/BackupModal.vue +117 -0
- package/components/dialog/harvester/CloneTemplate.vue +125 -0
- package/components/dialog/harvester/EjectCDROMDialog.vue +157 -0
- package/components/dialog/harvester/ExportImageDialog.vue +152 -0
- package/components/dialog/harvester/MaintenanceDialog.vue +94 -0
- package/components/dialog/harvester/MigrationDialog.vue +154 -0
- package/components/dialog/harvester/RestoreDialog.vue +153 -0
- package/components/dialog/harvester/SupportBundle.vue +217 -0
- package/components/dialog/harvester/UnplugVolume.vue +108 -0
- package/components/fleet/FleetBundleResources.vue +86 -0
- package/components/fleet/FleetBundles.vue +127 -0
- package/components/fleet/FleetClusters.vue +103 -0
- package/components/fleet/FleetIntro.vue +60 -0
- package/components/fleet/FleetRepos.vue +150 -0
- package/components/fleet/FleetResources.vue +139 -0
- package/components/fleet/FleetStatus.vue +289 -0
- package/components/fleet/FleetSummary.vue +190 -0
- package/components/fleet/ResourcesSummary.vue +89 -0
- package/components/form/ArrayList.vue +354 -0
- package/components/form/ArrayListGrouped.vue +113 -0
- package/components/form/ArrayListSelect.vue +77 -0
- package/components/form/BannerSettings.vue +211 -0
- package/components/form/ChangePassword.vue +414 -0
- package/components/form/Checkbox.vue +292 -0
- package/components/form/ColorInput.vue +139 -0
- package/components/form/Command.vue +186 -0
- package/components/form/Conditions.vue +93 -0
- package/components/form/Container.vue +143 -0
- package/components/form/EnvVars.vue +146 -0
- package/components/form/FileImageSelector.vue +129 -0
- package/components/form/FileSelector.vue +151 -0
- package/components/form/Footer.vue +107 -0
- package/components/form/GithubPicker.vue +383 -0
- package/components/form/HealthCheck.vue +84 -0
- package/components/form/HookOption.vue +244 -0
- package/components/form/InputWithSelect.vue +310 -0
- package/components/form/KeyValue.vue +668 -0
- package/components/form/LabeledInput.vue +245 -0
- package/components/form/LabeledSelect.vue +476 -0
- package/components/form/LabeledTooltip.vue +116 -0
- package/components/form/Labels.vue +77 -0
- package/components/form/LifecycleHooks.vue +79 -0
- package/components/form/MatchExpressions.vue +278 -0
- package/components/form/Members/ClusterMembershipEditor.vue +63 -0
- package/components/form/Members/ClusterPermissionsEditor.vue +269 -0
- package/components/form/Members/MembershipEditor.vue +198 -0
- package/components/form/Members/ProjectMembershipEditor.vue +64 -0
- package/components/form/NameNsDescription.vue +391 -0
- package/components/form/Networking.vue +271 -0
- package/components/form/NodeAffinity.vue +158 -0
- package/components/form/NodeScheduling.vue +163 -0
- package/components/form/NotificationSettings.vue +71 -0
- package/components/form/Password.vue +137 -0
- package/components/form/PlusMinus.vue +80 -0
- package/components/form/PodAffinity.vue +288 -0
- package/components/form/PodSecurity.vue +152 -0
- package/components/form/Ports.vue +282 -0
- package/components/form/Probe.vue +313 -0
- package/components/form/ProjectMemberEditor.vue +290 -0
- package/components/form/RadioButton.vue +229 -0
- package/components/form/RadioGroup.vue +187 -0
- package/components/form/ResourceQuota/Namespace.vue +117 -0
- package/components/form/ResourceQuota/NamespaceRow.vue +171 -0
- package/components/form/ResourceQuota/Project.vue +90 -0
- package/components/form/ResourceQuota/ProjectRow.vue +78 -0
- package/components/form/ResourceQuota/shared.js +147 -0
- package/components/form/ResourceTabs/index.vue +174 -0
- package/components/form/RuleSelector.vue +170 -0
- package/components/form/Scheduling.vue +115 -0
- package/components/form/SecretSelector.vue +187 -0
- package/components/form/Security.vue +201 -0
- package/components/form/Select.vue +251 -0
- package/components/form/SelectOrCreateAuthSecret.vue +475 -0
- package/components/form/SerialConsole/index.vue +267 -0
- package/components/form/ServiceNameSelect.vue +158 -0
- package/components/form/ServicePorts.vue +281 -0
- package/components/form/ShellInput.vue +89 -0
- package/components/form/SimpleSecretSelector.vue +196 -0
- package/components/form/Taints.vue +83 -0
- package/components/form/TextAreaAutoGrow.vue +127 -0
- package/components/form/ToggleSwitch.vue +127 -0
- package/components/form/Tolerations.vue +220 -0
- package/components/form/UnitInput.vue +237 -0
- package/components/form/ValueFromResource.vue +373 -0
- package/components/form/WorkloadPorts.vue +476 -0
- package/components/form/__tests__/ArrayListGrouped.test.ts +39 -0
- package/components/form/__tests__/KeyValue.test.ts +18 -0
- package/components/form/__tests__/LabeledInput.test.ts +20 -0
- package/components/form/__tests__/UnitInput.test.ts +183 -0
- package/components/formatter/AppSummaryGraph.vue +136 -0
- package/components/formatter/AttachVMWithName.vue +46 -0
- package/components/formatter/BadgeStateFormatter.vue +60 -0
- package/components/formatter/Capitalize.vue +21 -0
- package/components/formatter/Checked.vue +20 -0
- package/components/formatter/CloudInitType.vue +27 -0
- package/components/formatter/ClusterLink.vue +92 -0
- package/components/formatter/CopyToClipboard.vue +18 -0
- package/components/formatter/Date.vue +74 -0
- package/components/formatter/Endpoints.vue +99 -0
- package/components/formatter/ExternalLink.vue +7 -0
- package/components/formatter/FleetSummaryGraph.vue +95 -0
- package/components/formatter/HarvesterBackupTargetValidation.vue +43 -0
- package/components/formatter/HarvesterCPUUsed.vue +122 -0
- package/components/formatter/HarvesterDiskState.vue +66 -0
- package/components/formatter/HarvesterHostName.vue +66 -0
- package/components/formatter/HarvesterIpAddress.vue +71 -0
- package/components/formatter/HarvesterMemoryUsed.vue +140 -0
- package/components/formatter/HarvesterMigrationState.vue +85 -0
- package/components/formatter/HarvesterNodeName.vue +49 -0
- package/components/formatter/HarvesterStorageUsed.vue +194 -0
- package/components/formatter/HarvesterVmState.vue +123 -0
- package/components/formatter/IconIsDefault.vue +34 -0
- package/components/formatter/IconText.vue +46 -0
- package/components/formatter/ImagePercentageBar.vue +86 -0
- package/components/formatter/IngressFullPath.vue +17 -0
- package/components/formatter/IngressTarget.vue +68 -0
- package/components/formatter/InternalExternalIP.vue +45 -0
- package/components/formatter/KeyValue.vue +74 -0
- package/components/formatter/Link.vue +149 -0
- package/components/formatter/LinkDetail.vue +46 -0
- package/components/formatter/LinkDetailImage.vue +31 -0
- package/components/formatter/LinkName.vue +50 -0
- package/components/formatter/List.vue +22 -0
- package/components/formatter/ListLink.vue +29 -0
- package/components/formatter/ListLinkDetail.vue +25 -0
- package/components/formatter/LiveDate.vue +139 -0
- package/components/formatter/LiveExpiryBadgeState.vue +66 -0
- package/components/formatter/LiveExpiryDate.vue +69 -0
- package/components/formatter/MachineSummaryGraph.vue +43 -0
- package/components/formatter/Number.vue +31 -0
- package/components/formatter/Percentage.vue +25 -0
- package/components/formatter/PercentageBar.vue +41 -0
- package/components/formatter/PodImages.vue +56 -0
- package/components/formatter/PodsUsage.vue +49 -0
- package/components/formatter/Port.vue +24 -0
- package/components/formatter/Principal.vue +19 -0
- package/components/formatter/PrincipalGroupBindings.vue +53 -0
- package/components/formatter/QualityText.vue +21 -0
- package/components/formatter/ReceiverIcons.vue +124 -0
- package/components/formatter/RunBookLink.vue +15 -0
- package/components/formatter/Scale.vue +108 -0
- package/components/formatter/ScanResult.vue +30 -0
- package/components/formatter/SecretData.vue +52 -0
- package/components/formatter/SecretType.vue +38 -0
- package/components/formatter/ServiceTargets.vue +109 -0
- package/components/formatter/ServiceType.vue +44 -0
- package/components/formatter/Shortened.vue +49 -0
- package/components/formatter/Si.vue +42 -0
- package/components/formatter/Translate.vue +32 -0
- package/components/formatter/VerticalScroll.vue +17 -0
- package/components/formatter/VirtualServiceGateways.vue +105 -0
- package/components/formatter/Weight.vue +132 -0
- package/components/formatter/WorkloadDetailEndpoints.vue +110 -0
- package/components/formatter/WorkloadHealthScale.vue +279 -0
- package/components/formatter/__tests__/PodsUsage.test.ts +38 -0
- package/components/graph/AspectPreserver.vue +68 -0
- package/components/graph/Bar.vue +70 -0
- package/components/graph/Circle.vue +135 -0
- package/components/graph/HalfCircle.vue +41 -0
- package/components/graph/LinePlot.vue +193 -0
- package/components/graph/ProgressArc.vue +88 -0
- package/components/nav/Favorite.vue +56 -0
- package/components/nav/GlobalLoading.vue +22 -0
- package/components/nav/Group.vue +371 -0
- package/components/nav/HarvesterUpgrade.vue +222 -0
- package/components/nav/Header.vue +875 -0
- package/components/nav/Jump.vue +106 -0
- package/components/nav/NamespaceFilter.vue +841 -0
- package/components/nav/TopLevelMenu.vue +710 -0
- package/components/nav/Type.vue +192 -0
- package/components/nav/WindowManager/ChartReadme.vue +45 -0
- package/components/nav/WindowManager/ContainerLogs.vue +670 -0
- package/components/nav/WindowManager/ContainerShell.vue +415 -0
- package/components/nav/WindowManager/KubectlShell.vue +42 -0
- package/components/nav/WindowManager/MachineSsh.vue +21 -0
- package/components/nav/WindowManager/Window.vue +97 -0
- package/components/nav/WindowManager/index.vue +310 -0
- package/components/nav/WorkspaceSwitcher.vue +147 -0
- package/config/cookies.js +4 -0
- package/config/features.js +3 -0
- package/config/footer.js +19 -0
- package/config/harvester-map.js +44 -0
- package/config/harvester-table-headers.js +27 -0
- package/config/labels-annotations.js +180 -0
- package/config/local-storage.js +6 -0
- package/config/nuxt-paths.js +7 -0
- package/config/page-actions.js +3 -0
- package/config/private-label.js +70 -0
- package/config/product/apps.js +115 -0
- package/config/product/auth.js +215 -0
- package/config/product/backup.js +61 -0
- package/config/product/cis.js +157 -0
- package/config/product/explorer.js +306 -0
- package/config/product/fleet.js +90 -0
- package/config/product/gatekeeper.js +119 -0
- package/config/product/harvester-manager.js +100 -0
- package/config/product/harvester.js +305 -0
- package/config/product/istio.js +79 -0
- package/config/product/legacy.js +201 -0
- package/config/product/logging.js +377 -0
- package/config/product/longhorn.js +49 -0
- package/config/product/manager.js +176 -0
- package/config/product/monitoring.js +286 -0
- package/config/product/multi-cluster-apps.js +73 -0
- package/config/product/navlinks.js +32 -0
- package/config/product/neuvector.js +30 -0
- package/config/product/settings.js +130 -0
- package/config/query-params.js +72 -0
- package/config/roles.ts +365 -0
- package/config/schema.js +32 -0
- package/config/secret.js +15 -0
- package/config/settings.js +194 -0
- package/config/system-namespaces.js +15 -0
- package/config/table-headers.js +908 -0
- package/config/types.js +292 -0
- package/content/docs/en-us/getting-started.md +249 -0
- package/content/docs/en-us/whats-new.md +108 -0
- package/content/docs/zh-hans/getting-started.md +248 -0
- package/content/docs/zh-hans/whats-new.md +56 -0
- package/core/plugin-routes.ts +138 -0
- package/core/plugin.ts +181 -0
- package/core/plugins-loader.js +31 -0
- package/core/plugins.js +293 -0
- package/core/types.ts +114 -0
- package/creators/app/.eslintignore +18 -0
- package/creators/app/.eslintrc.js +173 -0
- package/creators/app/.vscode/settings.json +23 -0
- package/creators/app/app.package.json +9 -0
- package/creators/app/babel.config.js +18 -0
- package/creators/app/init +95 -0
- package/creators/app/nuxt.config.js +6 -0
- package/creators/app/package.json +19 -0
- package/creators/app/tsconfig.json +37 -0
- package/creators/pkg/babel.config.js +1 -0
- package/creators/pkg/index.ts +14 -0
- package/creators/pkg/init +154 -0
- package/creators/pkg/nuxt.config.js +6 -0
- package/creators/pkg/package.json +19 -0
- package/creators/pkg/pkg.package.json +21 -0
- package/creators/pkg/tsconfig.json +49 -0
- package/creators/pkg/vue-shim.ts +4 -0
- package/creators/pkg/vue.config.js +1 -0
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +193 -0
- package/detail/catalog.cattle.io.app.vue +135 -0
- package/detail/catalog.cattle.io.clusterrepo.vue +25 -0
- package/detail/cis.cattle.io.clusterscan.vue +339 -0
- package/detail/configmap.vue +62 -0
- package/detail/constraints.gatekeeper.sh.constraint.vue +46 -0
- package/detail/fleet.cattle.io.bundle.vue +67 -0
- package/detail/fleet.cattle.io.cluster.vue +76 -0
- package/detail/fleet.cattle.io.clustergroup.vue +60 -0
- package/detail/fleet.cattle.io.gitrepo.vue +115 -0
- package/detail/harvesterhci.io.host/HarvesterHostBasic.vue +343 -0
- package/detail/harvesterhci.io.host/HarvesterHostDisk.vue +200 -0
- package/detail/harvesterhci.io.host/HarvesterHostNetwork.vue +89 -0
- package/detail/harvesterhci.io.host/VirtualMachineInstance.vue +134 -0
- package/detail/harvesterhci.io.host/index.vue +243 -0
- package/detail/harvesterhci.io.management.cluster.vue +97 -0
- package/detail/harvesterhci.io.virtualmachinebackup/index.vue +221 -0
- package/detail/harvesterhci.io.virtualmachineimage.vue +118 -0
- package/detail/helm.cattle.io.projecthelmchart.vue +229 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineBasics.vue +279 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineEvents.vue +75 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue +114 -0
- package/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineMigration.vue +79 -0
- package/detail/kubevirt.io.virtualmachine/index.vue +213 -0
- package/detail/management.cattle.io.fleetworkspace.vue +85 -0
- package/detail/management.cattle.io.globalrole.vue +8 -0
- package/detail/management.cattle.io.roletemplate.vue +8 -0
- package/detail/management.cattle.io.user.vue +288 -0
- package/detail/namespace.vue +270 -0
- package/detail/networking.k8s.io.ingress.vue +57 -0
- package/detail/node.vue +285 -0
- package/detail/pod.vue +235 -0
- package/detail/provisioning.cattle.io.cluster.vue +719 -0
- package/detail/rbac.authorization.k8s.io.clusterrole.vue +8 -0
- package/detail/rbac.authorization.k8s.io.role.vue +8 -0
- package/detail/secret.vue +226 -0
- package/detail/service.vue +199 -0
- package/detail/workload/index.vue +323 -0
- package/edit/auth/azuread.vue +278 -0
- package/edit/auth/github.vue +231 -0
- package/edit/auth/googleoauth.vue +200 -0
- package/edit/auth/ldap/config.vue +238 -0
- package/edit/auth/ldap/index.vue +136 -0
- package/edit/auth/oidc.vue +259 -0
- package/edit/auth/saml.vue +222 -0
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +51 -0
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +243 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +79 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +60 -0
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +216 -0
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +187 -0
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +61 -0
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +51 -0
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +60 -0
- package/edit/catalog.cattle.io.clusterrepo.vue +109 -0
- package/edit/cis.cattle.io.clusterscan.vue +301 -0
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +107 -0
- package/edit/cis.cattle.io.clusterscanprofile.vue +142 -0
- package/edit/cloudcredential.vue +279 -0
- package/edit/configmap.vue +125 -0
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +70 -0
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +76 -0
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +50 -0
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +331 -0
- package/edit/fleet.cattle.io.cluster.vue +93 -0
- package/edit/fleet.cattle.io.clustergroup.vue +161 -0
- package/edit/fleet.cattle.io.gitrepo.vue +515 -0
- package/edit/group.principal.vue +60 -0
- package/edit/harvesterhci.io.cloudtemplate.vue +123 -0
- package/edit/harvesterhci.io.host/HarvesterDisk.vue +263 -0
- package/edit/harvesterhci.io.host/index.vue +524 -0
- package/edit/harvesterhci.io.keypair.vue +112 -0
- package/edit/harvesterhci.io.managedchart/index.vue +25 -0
- package/edit/harvesterhci.io.managedchart/rancher-monitoring.vue +172 -0
- package/edit/harvesterhci.io.management.cluster.vue +136 -0
- package/edit/harvesterhci.io.networkattachmentdefinition.vue +210 -0
- package/edit/harvesterhci.io.setting/additional-ca.vue +36 -0
- package/edit/harvesterhci.io.setting/backup-target.vue +182 -0
- package/edit/harvesterhci.io.setting/http-proxy.vue +79 -0
- package/edit/harvesterhci.io.setting/index.vue +201 -0
- package/edit/harvesterhci.io.setting/overcommit-config.vue +91 -0
- package/edit/harvesterhci.io.setting/ssl-certificates.vue +117 -0
- package/edit/harvesterhci.io.setting/ssl-parameters.vue +161 -0
- package/edit/harvesterhci.io.setting/support-bundle-image.vue +134 -0
- package/edit/harvesterhci.io.setting/support-bundle-namespaces.vue +73 -0
- package/edit/harvesterhci.io.setting/vip-pools.vue +244 -0
- package/edit/harvesterhci.io.setting/vm-force-reset-policy.vue +81 -0
- package/edit/harvesterhci.io.virtualmachinebackup.vue +256 -0
- package/edit/harvesterhci.io.virtualmachineimage.vue +364 -0
- package/edit/harvesterhci.io.virtualmachinetemplateversion.vue +332 -0
- package/edit/harvesterhci.io.volume.vue +195 -0
- package/edit/helm.cattle.io.projecthelmchart.vue +147 -0
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +210 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/AccessCredentialsUsers.vue +190 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/index.vue +212 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/type/basicAuth.vue +94 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineAccessCredentials/type/sshkey.vue +85 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCloudConfig/DataTemplate.vue +152 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCloudConfig/index.vue +278 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineCpuMemory.vue +111 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineNetwork/base.vue +238 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineNetwork/index.vue +142 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue +256 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue +392 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/container.vue +86 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue +247 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/vmImage.vue +225 -0
- package/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/volume.vue +162 -0
- package/edit/kubevirt.io.virtualmachine/index.vue +633 -0
- package/edit/logging-flow/Match.vue +96 -0
- package/edit/logging-flow/index.vue +419 -0
- package/edit/logging.banzaicloud.io.clusterflow.vue +7 -0
- package/edit/logging.banzaicloud.io.clusteroutput.vue +12 -0
- package/edit/logging.banzaicloud.io.flow.vue +7 -0
- package/edit/logging.banzaicloud.io.output/index.vue +317 -0
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +72 -0
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +79 -0
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +92 -0
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +80 -0
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +206 -0
- package/edit/logging.banzaicloud.io.output/providers/file.vue +42 -0
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +147 -0
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +82 -0
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +129 -0
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +146 -0
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +71 -0
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +56 -0
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +102 -0
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +144 -0
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +71 -0
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +102 -0
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +154 -0
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +59 -0
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +189 -0
- package/edit/logging.banzaicloud.io.output/providers/utils.js +27 -0
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +68 -0
- package/edit/management.cattle.io.fleetworkspace.vue +92 -0
- package/edit/management.cattle.io.globalrole.vue +8 -0
- package/edit/management.cattle.io.project.vue +271 -0
- package/edit/management.cattle.io.projectroletemplatebinding.vue +95 -0
- package/edit/management.cattle.io.roletemplate.vue +8 -0
- package/edit/management.cattle.io.setting.vue +157 -0
- package/edit/management.cattle.io.user.vue +251 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +310 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +261 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +367 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +144 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +263 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +126 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +252 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +171 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +133 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +183 -0
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +497 -0
- package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +192 -0
- package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +106 -0
- package/edit/monitoring.coreos.com.prometheusrule/duration.js +41 -0
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +192 -0
- package/edit/monitoring.coreos.com.receiver/auth.vue +113 -0
- package/edit/monitoring.coreos.com.receiver/index.vue +282 -0
- package/edit/monitoring.coreos.com.receiver/tls.vue +55 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +78 -0
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +211 -0
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +79 -0
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +89 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.add.vue +65 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +24 -0
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +68 -0
- package/edit/monitoring.coreos.com.route.vue +179 -0
- package/edit/namespace.vue +213 -0
- package/edit/network.harvesterhci.io.clusternetwork/index.vue +19 -0
- package/edit/network.harvesterhci.io.clusternetwork/vlan.vue +134 -0
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +185 -0
- package/edit/networking.istio.io.destinationrule/index.vue +233 -0
- package/edit/networking.k8s.io.ingress/Certificate.vue +119 -0
- package/edit/networking.k8s.io.ingress/Certificates.vue +101 -0
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +117 -0
- package/edit/networking.k8s.io.ingress/Rule.vue +133 -0
- package/edit/networking.k8s.io.ingress/RulePath.vue +178 -0
- package/edit/networking.k8s.io.ingress/Rules.vue +133 -0
- package/edit/networking.k8s.io.ingress/index.vue +150 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +91 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +50 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +287 -0
- package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +93 -0
- package/edit/networking.k8s.io.networkpolicy/index.vue +267 -0
- package/edit/node.vue +69 -0
- package/edit/persistentvolume/index.vue +298 -0
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +74 -0
- package/edit/persistentvolume/plugins/azureDisk.vue +119 -0
- package/edit/persistentvolume/plugins/azureFile.vue +63 -0
- package/edit/persistentvolume/plugins/cephfs.vue +80 -0
- package/edit/persistentvolume/plugins/cinder.vue +69 -0
- package/edit/persistentvolume/plugins/csi.vue +107 -0
- package/edit/persistentvolume/plugins/fc.vue +82 -0
- package/edit/persistentvolume/plugins/flexVolume.vue +77 -0
- package/edit/persistentvolume/plugins/flocker.vue +35 -0
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +74 -0
- package/edit/persistentvolume/plugins/glusterfs.vue +60 -0
- package/edit/persistentvolume/plugins/hostPath.vue +72 -0
- package/edit/persistentvolume/plugins/iscsi.vue +125 -0
- package/edit/persistentvolume/plugins/local.vue +32 -0
- package/edit/persistentvolume/plugins/longhorn.vue +88 -0
- package/edit/persistentvolume/plugins/nfs.vue +60 -0
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +48 -0
- package/edit/persistentvolume/plugins/portworxVolume.vue +61 -0
- package/edit/persistentvolume/plugins/quobyte.vue +68 -0
- package/edit/persistentvolume/plugins/rbd.vue +88 -0
- package/edit/persistentvolume/plugins/scaleIO.vue +101 -0
- package/edit/persistentvolume/plugins/storageos.vue +73 -0
- package/edit/persistentvolume/plugins/vsphereVolume.vue +43 -0
- package/edit/persistentvolumeclaim.vue +271 -0
- package/edit/provisioning.cattle.io.cluster/ACE.vue +82 -0
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +37 -0
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +242 -0
- package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +129 -0
- package/edit/provisioning.cattle.io.cluster/Labels.vue +30 -0
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +239 -0
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +154 -0
- package/edit/provisioning.cattle.io.cluster/RegistryMirrors.vue +75 -0
- package/edit/provisioning.cattle.io.cluster/S3Config.vue +121 -0
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +288 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.tests.ts +42 -0
- package/edit/provisioning.cattle.io.cluster/import.vue +174 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +505 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +2095 -0
- package/edit/rbac.authorization.k8s.io.clusterrole.vue +8 -0
- package/edit/rbac.authorization.k8s.io.role.vue +8 -0
- package/edit/resources.cattle.io.backup.vue +252 -0
- package/edit/resources.cattle.io.restore.vue +264 -0
- package/edit/secret/basic.vue +54 -0
- package/edit/secret/generic.vue +63 -0
- package/edit/secret/index.vue +307 -0
- package/edit/secret/registry.vue +127 -0
- package/edit/secret/ssh.vue +74 -0
- package/edit/secret/tls.vue +86 -0
- package/edit/service.vue +487 -0
- package/edit/serviceaccount.vue +148 -0
- package/edit/storage.k8s.io.storageclass/index.vue +212 -0
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +20 -0
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +35 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +159 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +65 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +32 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +58 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +105 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +54 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/no-provisioner.vue +21 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +48 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +51 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +62 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +76 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +40 -0
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +67 -0
- package/edit/token.vue +275 -0
- package/edit/ui.cattle.io.navlink.vue +430 -0
- package/edit/workload/Job.vue +235 -0
- package/edit/workload/Upgrading.vue +294 -0
- package/edit/workload/VolumeClaimTemplate.vue +136 -0
- package/edit/workload/index.vue +1106 -0
- package/edit/workload/storage/Mount.vue +153 -0
- package/edit/workload/storage/__tests__/Mount.test.ts +98 -0
- package/edit/workload/storage/__tests__/Storage.test.ts +21 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +54 -0
- package/edit/workload/storage/azureDisk.vue +80 -0
- package/edit/workload/storage/azureFile.vue +52 -0
- package/edit/workload/storage/csi/driver.longhorn.io.vue +41 -0
- package/edit/workload/storage/csi/index.vue +65 -0
- package/edit/workload/storage/ephemeralVolume/index.vue +76 -0
- package/edit/workload/storage/gcePersistentDisk.vue +47 -0
- package/edit/workload/storage/hostPath.vue +100 -0
- package/edit/workload/storage/index.vue +360 -0
- package/edit/workload/storage/nfs.vue +78 -0
- package/edit/workload/storage/persistentVolumeClaim/index.vue +144 -0
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +224 -0
- package/edit/workload/storage/secret.vue +181 -0
- package/edit/workload/storage/vsphereVolume.vue +55 -0
- package/layouts/blank.vue +17 -0
- package/layouts/default.vue +827 -0
- package/layouts/error.vue +119 -0
- package/layouts/home.vue +84 -0
- package/layouts/plain.vue +89 -0
- package/layouts/unauthenticated.vue +26 -0
- package/list/catalog.cattle.io.app.vue +50 -0
- package/list/catalog.cattle.io.clusterrepo.vue +90 -0
- package/list/cis.cattle.io.clusterscan.vue +64 -0
- package/list/fleet.cattle.io.bundle.vue +108 -0
- package/list/fleet.cattle.io.cluster.vue +79 -0
- package/list/fleet.cattle.io.clustergroup.vue +71 -0
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +81 -0
- package/list/fleet.cattle.io.gitrepo.vue +57 -0
- package/list/group.principal.vue +143 -0
- package/list/harvesterhci.io.cloudtemplate.vue +78 -0
- package/list/harvesterhci.io.dashboard/HarvesterUpgrade.vue +210 -0
- package/list/harvesterhci.io.dashboard/index.vue +774 -0
- package/list/harvesterhci.io.host/index.vue +174 -0
- package/list/harvesterhci.io.management.cluster.vue +181 -0
- package/list/harvesterhci.io.networkattachmentdefinition.vue +167 -0
- package/list/harvesterhci.io.setting.vue +241 -0
- package/list/harvesterhci.io.virtualmachinebackup.vue +172 -0
- package/list/harvesterhci.io.virtualmachineimage.vue +47 -0
- package/list/harvesterhci.io.virtualmachinetemplateversion.vue +177 -0
- package/list/harvesterhci.io.volume.vue +122 -0
- package/list/helm.cattle.io.projecthelmchart.vue +124 -0
- package/list/kubevirt.io.virtualmachine.vue +191 -0
- package/list/logging.banzaicloud.io.clusterflow.vue +36 -0
- package/list/logging.banzaicloud.io.flow.vue +41 -0
- package/list/management.cattle.io.cluster.vue +31 -0
- package/list/management.cattle.io.feature.vue +306 -0
- package/list/management.cattle.io.setting.vue +166 -0
- package/list/management.cattle.io.user.vue +121 -0
- package/list/monitoring.coreos.com.alertmanagerconfig.vue +89 -0
- package/list/namespace.vue +44 -0
- package/list/node.vue +191 -0
- package/list/persistentvolume.vue +27 -0
- package/list/provisioning.cattle.io.cluster.vue +162 -0
- package/list/service.vue +43 -0
- package/list/ui.cattle.io.navlink.vue +49 -0
- package/list/workload.vue +130 -0
- package/machine-config/amazonec2.vue +664 -0
- package/machine-config/azure.vue +445 -0
- package/machine-config/digitalocean.vue +228 -0
- package/machine-config/generic.vue +101 -0
- package/machine-config/harvester.vue +528 -0
- package/machine-config/linode.vue +186 -0
- package/machine-config/vmwarevsphere.vue +1018 -0
- package/middleware/authenticated.js +387 -0
- package/middleware/i18n.js +10 -0
- package/mixins/auth-config.js +304 -0
- package/mixins/back-link.js +15 -0
- package/mixins/brand.js +122 -0
- package/mixins/chart.js +384 -0
- package/mixins/child-hook.js +82 -0
- package/mixins/closeable.js +47 -0
- package/mixins/compact-input.js +24 -0
- package/mixins/create-edit-view/impl.js +200 -0
- package/mixins/create-edit-view/index.js +46 -0
- package/mixins/harvester-vm/impl.js +267 -0
- package/mixins/harvester-vm/index.js +1313 -0
- package/mixins/labeled-form-element.js +137 -0
- package/mixins/login.js +31 -0
- package/mixins/metric-poller.js +19 -0
- package/mixins/page-actions.js +34 -0
- package/mixins/v1-workload-metrics.js +43 -0
- package/mixins/vue-select-overrides.js +98 -0
- package/models/app.js +25 -0
- package/models/apps.daemonset.js +4 -0
- package/models/apps.deployment.js +13 -0
- package/models/apps.replicaset.js +4 -0
- package/models/apps.statefulset.js +4 -0
- package/models/autoscaling.horizontalpodautoscaler.js +44 -0
- package/models/batch.cronjob.js +71 -0
- package/models/batch.job.js +4 -0
- package/models/catalog.cattle.io.app.js +315 -0
- package/models/catalog.cattle.io.clusterrepo.js +163 -0
- package/models/catalog.cattle.io.operation.js +43 -0
- package/models/catalog.cattle.io.repo.js +4 -0
- package/models/chart.js +50 -0
- package/models/chartinstallaction.js +17 -0
- package/models/chartupgradeaction.js +12 -0
- package/models/cis.cattle.io.clusterscan.js +157 -0
- package/models/cis.cattle.io.clusterscanbenchmark.js +18 -0
- package/models/cis.cattle.io.clusterscanprofile.js +14 -0
- package/models/cis.cattle.io.clusterscanreport.js +62 -0
- package/models/cloudcredential.js +172 -0
- package/models/cluster/node.js +411 -0
- package/models/cluster.x-k8s.io.machine.js +244 -0
- package/models/cluster.x-k8s.io.machinedeployment.js +196 -0
- package/models/cluster.x-k8s.io.machineset.js +23 -0
- package/models/clusterroletemplatebinding.js +27 -0
- package/models/configmap.js +20 -0
- package/models/constraints.gatekeeper.sh.constraint.js +75 -0
- package/models/etcdbackup.js +40 -0
- package/models/event.js +23 -0
- package/models/fleet.cattle.io.bundle.js +132 -0
- package/models/fleet.cattle.io.cluster.js +133 -0
- package/models/fleet.cattle.io.clustergroup.js +62 -0
- package/models/fleet.cattle.io.clusterregistrationtoken.js +14 -0
- package/models/fleet.cattle.io.gitrepo.js +315 -0
- package/models/group.principal.js +71 -0
- package/models/harvester/configmap.js +32 -0
- package/models/harvester/harvesterhci.io.blockdevice.js +55 -0
- package/models/harvester/harvesterhci.io.keypair.js +12 -0
- package/models/harvester/harvesterhci.io.setting.js +127 -0
- package/models/harvester/harvesterhci.io.supportbundle.js +35 -0
- package/models/harvester/harvesterhci.io.upgrade.js +226 -0
- package/models/harvester/harvesterhci.io.virtualmachinebackup.js +113 -0
- package/models/harvester/harvesterhci.io.virtualmachineimage.js +252 -0
- package/models/harvester/harvesterhci.io.virtualmachinerestore.js +43 -0
- package/models/harvester/harvesterhci.io.virtualmachinetemplate.js +69 -0
- package/models/harvester/harvesterhci.io.virtualmachinetemplateversion.js +218 -0
- package/models/harvester/k8s.cni.cncf.io.networkattachmentdefinition.js +32 -0
- package/models/harvester/kubevirt.io.virtualmachine.js +850 -0
- package/models/harvester/kubevirt.io.virtualmachineinstance.js +142 -0
- package/models/harvester/management.cattle.io.managedchart.js +191 -0
- package/models/harvester/management.cattle.io.setting.js +40 -0
- package/models/harvester/network.harvesterhci.io.clusternetwork.js +100 -0
- package/models/harvester/network.harvesterhci.io.nodenetwork.js +34 -0
- package/models/harvester/node.js +260 -0
- package/models/harvester/persistentvolumeclaim.js +166 -0
- package/models/harvester/pod.js +185 -0
- package/models/harvesterhci.io.management.cluster.js +33 -0
- package/models/helm.cattle.io.projecthelmchart.js +39 -0
- package/models/k8s.cni.cncf.io.networkattachmentdefinition.js +93 -0
- package/models/logging.banzaicloud.io.clusterflow.js +36 -0
- package/models/logging.banzaicloud.io.clusteroutput.js +4 -0
- package/models/logging.banzaicloud.io.flow.js +110 -0
- package/models/logging.banzaicloud.io.output.js +161 -0
- package/models/management.cattle.io.authconfig.js +69 -0
- package/models/management.cattle.io.cluster.js +427 -0
- package/models/management.cattle.io.clusterroletemplatebinding.js +130 -0
- package/models/management.cattle.io.feature.js +56 -0
- package/models/management.cattle.io.fleetworkspace.js +74 -0
- package/models/management.cattle.io.globalrole.js +127 -0
- package/models/management.cattle.io.globalrolebinding.js +59 -0
- package/models/management.cattle.io.kontainerdriver.js +68 -0
- package/models/management.cattle.io.node.js +139 -0
- package/models/management.cattle.io.nodepool.js +167 -0
- package/models/management.cattle.io.nodetemplate.js +139 -0
- package/models/management.cattle.io.project.js +135 -0
- package/models/management.cattle.io.projectroletemplatebinding.js +150 -0
- package/models/management.cattle.io.roletemplate.js +173 -0
- package/models/management.cattle.io.setting.js +42 -0
- package/models/management.cattle.io.user.js +201 -0
- package/models/metrics.k8s.io.nodemetrics.js +41 -0
- package/models/monitoring.coreos.com.alertmanagerconfig.js +125 -0
- package/models/monitoring.coreos.com.podmonitor.js +23 -0
- package/models/monitoring.coreos.com.prometheusrule.js +29 -0
- package/models/monitoring.coreos.com.receiver.js +195 -0
- package/models/monitoring.coreos.com.route.js +162 -0
- package/models/monitoring.coreos.com.servicemonitor.js +23 -0
- package/models/namespace.js +189 -0
- package/models/networking.istio.io.destinationrule.js +20 -0
- package/models/networking.k8s.io.ingress.js +196 -0
- package/models/persistentvolume.js +142 -0
- package/models/persistentvolumeclaim.js +18 -0
- package/models/pod.js +183 -0
- package/models/principal.js +42 -0
- package/models/projectroletemplatebinding.js +20 -0
- package/models/provisioning.cattle.io.cluster.js +617 -0
- package/models/rbac.authorization.k8s.io.clusterrole.js +17 -0
- package/models/rbac.authorization.k8s.io.role.js +52 -0
- package/models/replicationcontroller.js +4 -0
- package/models/resources.cattle.io.backup.js +29 -0
- package/models/resources.cattle.io.restore.js +33 -0
- package/models/rke-machine-config.cattle.io.harvesterconfig.js +19 -0
- package/models/rke-machine.cattle.io.amazonec2machinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.azuremachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.digitaloceanmachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.linodemachinetemplate.js +15 -0
- package/models/rke-machine.cattle.io.machinetemplate.js +22 -0
- package/models/rke-machine.cattle.io.vmwarevspheremachinetemplate.js +14 -0
- package/models/rke.cattle.io.etcdsnapshot.js +69 -0
- package/models/schema.js +17 -0
- package/models/secret.js +352 -0
- package/models/service.js +179 -0
- package/models/storage.k8s.io.storageclass.js +121 -0
- package/models/templates.gatekeeper.sh.constrainttemplate.js +23 -0
- package/models/token.js +19 -0
- package/models/ui.cattle.io.navlink.js +38 -0
- package/models/workload.js +853 -0
- package/nuxt.config.js +683 -0
- package/package.json +165 -0
- package/pages/about.vue +209 -0
- package/pages/account/create-key.vue +17 -0
- package/pages/account/index.vue +227 -0
- package/pages/auth/login.vue +426 -0
- package/pages/auth/logout.vue +18 -0
- package/pages/auth/setup.vue +430 -0
- package/pages/auth/verify.vue +134 -0
- package/pages/c/_cluster/_product/_resource/_id.vue +12 -0
- package/pages/c/_cluster/_product/_resource/_namespace/_id.vue +12 -0
- package/pages/c/_cluster/_product/_resource/create.vue +12 -0
- package/pages/c/_cluster/_product/_resource/index.vue +12 -0
- package/pages/c/_cluster/_product/index.vue +15 -0
- package/pages/c/_cluster/_product/members/index.vue +91 -0
- package/pages/c/_cluster/_product/namespaces.vue +75 -0
- package/pages/c/_cluster/_product/projectsnamespaces.vue +301 -0
- package/pages/c/_cluster/apps/charts/chart.vue +307 -0
- package/pages/c/_cluster/apps/charts/index.vue +595 -0
- package/pages/c/_cluster/apps/charts/install.vue +1638 -0
- package/pages/c/_cluster/apps/index.vue +17 -0
- package/pages/c/_cluster/auth/config/_id.vue +32 -0
- package/pages/c/_cluster/auth/config/index.vue +104 -0
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +133 -0
- package/pages/c/_cluster/auth/index.vue +19 -0
- package/pages/c/_cluster/auth/roles/_resource/_id.vue +12 -0
- package/pages/c/_cluster/auth/roles/_resource/create.vue +12 -0
- package/pages/c/_cluster/auth/roles/index.vue +193 -0
- package/pages/c/_cluster/backup/index.vue +11 -0
- package/pages/c/_cluster/cis/index.vue +11 -0
- package/pages/c/_cluster/ecm/index.vue +16 -0
- package/pages/c/_cluster/explorer/ConfigBadge.vue +55 -0
- package/pages/c/_cluster/explorer/EventsTable.vue +88 -0
- package/pages/c/_cluster/explorer/explorer-utils.js +17 -0
- package/pages/c/_cluster/explorer/index.vue +559 -0
- package/pages/c/_cluster/explorer/tools/index.vue +482 -0
- package/pages/c/_cluster/explorer/tools/pages/_page.vue +26 -0
- package/pages/c/_cluster/fleet/index.vue +474 -0
- package/pages/c/_cluster/gatekeeper/constraints/index.vue +90 -0
- package/pages/c/_cluster/gatekeeper/index.vue +67 -0
- package/pages/c/_cluster/harvester/airgapupgrade/index.vue +306 -0
- package/pages/c/_cluster/harvester/console/_uid/serial.vue +51 -0
- package/pages/c/_cluster/harvester/console/_uid/vnc.vue +46 -0
- package/pages/c/_cluster/harvester/index.vue +24 -0
- package/pages/c/_cluster/harvester/support/index.vue +154 -0
- package/pages/c/_cluster/harvesterManager/index.vue +24 -0
- package/pages/c/_cluster/index.vue +17 -0
- package/pages/c/_cluster/istio/index.vue +139 -0
- package/pages/c/_cluster/legacy/index.vue +22 -0
- package/pages/c/_cluster/legacy/pages/_page.vue +26 -0
- package/pages/c/_cluster/legacy/project/_page.vue +54 -0
- package/pages/c/_cluster/legacy/project/index.vue +29 -0
- package/pages/c/_cluster/legacy/project/pipelines.vue +74 -0
- package/pages/c/_cluster/logging/index.vue +87 -0
- package/pages/c/_cluster/longhorn/index.vue +68 -0
- package/pages/c/_cluster/manager/cloudCredential/_id.vue +16 -0
- package/pages/c/_cluster/manager/cloudCredential/create.vue +16 -0
- package/pages/c/_cluster/manager/cloudCredential/index.vue +89 -0
- package/pages/c/_cluster/manager/index.vue +22 -0
- package/pages/c/_cluster/manager/pages/_page.vue +23 -0
- package/pages/c/_cluster/mcapps/index.vue +21 -0
- package/pages/c/_cluster/mcapps/pages/_page.vue +22 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/index.vue +12 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +310 -0
- package/pages/c/_cluster/monitoring/alertmanagerconfig/index.vue +24 -0
- package/pages/c/_cluster/monitoring/index.vue +207 -0
- package/pages/c/_cluster/monitoring/monitor/_namespace/_id.vue +19 -0
- package/pages/c/_cluster/monitoring/monitor/create.vue +27 -0
- package/pages/c/_cluster/monitoring/monitor/index.vue +81 -0
- package/pages/c/_cluster/monitoring/route-receiver/_id.vue +27 -0
- package/pages/c/_cluster/monitoring/route-receiver/create.vue +19 -0
- package/pages/c/_cluster/monitoring/route-receiver/index.vue +114 -0
- package/pages/c/_cluster/navlinks/_group.vue +42 -0
- package/pages/c/_cluster/neuvector/index.vue +66 -0
- package/pages/c/_cluster/settings/banners.vue +279 -0
- package/pages/c/_cluster/settings/brand.vue +344 -0
- package/pages/c/_cluster/settings/index.vue +22 -0
- package/pages/c/index.vue +9 -0
- package/pages/clusters/index.vue +21 -0
- package/pages/docs/_doc.vue +320 -0
- package/pages/docs/toc.js +27 -0
- package/pages/fail-whale.vue +111 -0
- package/pages/home.vue +447 -0
- package/pages/index.vue +22 -0
- package/pages/plugins.vue +387 -0
- package/pages/prefs.vue +233 -0
- package/pages/rio/mesh.vue +505 -0
- package/pages/support/index.vue +284 -0
- package/pkg/auto-import.js +81 -0
- package/pkg/babel.config.js +8 -0
- package/pkg/dynamic-importer.lib.js +62 -0
- package/pkg/import.js +10 -0
- package/pkg/model-loader.lib.js +3 -0
- package/pkg/tsconfig.json +49 -0
- package/pkg/vue.config.js +120 -0
- package/plugins/axios.js +67 -0
- package/plugins/back-button.js +5 -0
- package/plugins/codemirror-loader.js +5 -0
- package/plugins/codemirror.js +169 -0
- package/plugins/dashboard-store/actions.js +443 -0
- package/plugins/dashboard-store/classify.js +35 -0
- package/plugins/dashboard-store/extensions.js +22 -0
- package/plugins/dashboard-store/getters.js +287 -0
- package/plugins/dashboard-store/index.js +158 -0
- package/plugins/dashboard-store/model-loader.js +73 -0
- package/plugins/dashboard-store/mutations.js +262 -0
- package/plugins/dashboard-store/normalize.js +48 -0
- package/plugins/dashboard-store/rehydrate-all.js +44 -0
- package/plugins/dashboard-store/resource-class.js +1813 -0
- package/plugins/directives.js +41 -0
- package/plugins/extend-router.js +60 -0
- package/plugins/global-formatters.js +10 -0
- package/plugins/i18n.js +101 -0
- package/plugins/int-number.js +19 -0
- package/plugins/js-yaml.js +4 -0
- package/plugins/lookup.js +50 -0
- package/plugins/nuxt-client-init.js +3 -0
- package/plugins/plugin.js +22 -0
- package/plugins/portal.js +4 -0
- package/plugins/replaceall.js +19 -0
- package/plugins/resize.js +5 -0
- package/plugins/shortkey.js +4 -0
- package/plugins/steve/actions.js +373 -0
- package/plugins/steve/getters.js +105 -0
- package/plugins/steve/hybrid-class.js +103 -0
- package/plugins/steve/index.js +70 -0
- package/plugins/steve/mutations.js +27 -0
- package/plugins/steve/norman-class.js +51 -0
- package/plugins/steve/performanceTesting.js +123 -0
- package/plugins/steve/steve-class.js +31 -0
- package/plugins/steve/subscribe.js +633 -0
- package/plugins/steve/urloptions.js +47 -0
- package/plugins/tooltip.js +4 -0
- package/plugins/transitions.js +4 -0
- package/plugins/trim-whitespace.js +37 -0
- package/plugins/v-select.js +4 -0
- package/plugins/vue-clipboard2.js +4 -0
- package/plugins/vue-js-modal.js +4 -0
- package/promptRemove/kubevirt.io.virtualmachine.vue +178 -0
- package/scripts/build-pkg.sh +51 -0
- package/scripts/pkgfile.js +23 -0
- package/scripts/publish-pkg.sh +18 -0
- package/scripts/publish-shell.sh +52 -0
- package/scripts/serve-pkgs +62 -0
- package/server/server-middleware.js +19 -0
- package/server/server.crt +22 -0
- package/server/server.csr +16 -0
- package/server/server.key +27 -0
- package/server/v3.ext +8 -0
- package/server/verdaccio-middleware.js +56 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +39 -0
- package/store/action-menu.js +229 -0
- package/store/auth.js +329 -0
- package/store/aws.js +209 -0
- package/store/catalog.js +661 -0
- package/store/digitalocean.js +198 -0
- package/store/features.js +66 -0
- package/store/github.js +252 -0
- package/store/growl.js +89 -0
- package/store/harvester-common.js +126 -0
- package/store/i18n.js +318 -0
- package/store/index.js +1073 -0
- package/store/linode.js +142 -0
- package/store/plugins.js +222 -0
- package/store/prefs.js +484 -0
- package/store/type-map.js +1839 -0
- package/store/uiplugins.ts +112 -0
- package/store/wm.js +84 -0
- package/types/index.d.ts +7 -0
- package/utils/__tests__/array.test.ts +502 -0
- package/utils/__tests__/object.test.ts +152 -0
- package/utils/__tests__/selector.test.ts +444 -0
- package/utils/alertmanagerconfig.js +162 -0
- package/utils/array.ts +179 -0
- package/utils/auth.js +81 -0
- package/utils/aws.js +0 -0
- package/utils/cluster.js +45 -0
- package/utils/color.js +92 -0
- package/utils/computed.js +45 -0
- package/utils/create-yaml.js +359 -0
- package/utils/crypto/LICENSE.txt +15 -0
- package/utils/crypto/browserHashUtils.js +33 -0
- package/utils/crypto/browserMd5.js +183 -0
- package/utils/crypto/browserSha1.js +149 -0
- package/utils/crypto/browserSha256.js +237 -0
- package/utils/crypto/index.js +181 -0
- package/utils/custom-validators.js +45 -0
- package/utils/download.js +35 -0
- package/utils/dynamic-importer.js +120 -0
- package/utils/ember-page.js +30 -0
- package/utils/error.js +80 -0
- package/utils/gatekeeper/util.js +35 -0
- package/utils/grafana.js +87 -0
- package/utils/group.js +70 -0
- package/utils/install-redirect.js +55 -0
- package/utils/monitoring.js +73 -0
- package/utils/namespace-filter.js +31 -0
- package/utils/object.js +338 -0
- package/utils/parse-externalid.js +139 -0
- package/utils/platform.js +64 -0
- package/utils/poller-sequential.js +53 -0
- package/utils/poller.js +39 -0
- package/utils/position.js +175 -0
- package/utils/promise.js +95 -0
- package/utils/queue.js +70 -0
- package/utils/router.js +27 -0
- package/utils/select.js +67 -0
- package/utils/selector.js +227 -0
- package/utils/socket.js +315 -0
- package/utils/sort.js +225 -0
- package/utils/stream.js +49 -0
- package/utils/string.js +286 -0
- package/utils/time.js +56 -0
- package/utils/type-helpers.ts +9 -0
- package/utils/units.js +184 -0
- package/utils/url.ts +171 -0
- package/utils/validators/cidr.js +5 -0
- package/utils/validators/cluster-name.js +12 -0
- package/utils/validators/container-images.js +24 -0
- package/utils/validators/cron-schedule.js +9 -0
- package/utils/validators/flow-output.js +15 -0
- package/utils/validators/index.js +243 -0
- package/utils/validators/kubernetes-name.js +39 -0
- package/utils/validators/logging-outputs.js +11 -0
- package/utils/validators/monitoring-route.js +13 -0
- package/utils/validators/pod-affinity.js +128 -0
- package/utils/validators/prometheusrule.js +76 -0
- package/utils/validators/role-template.js +19 -0
- package/utils/validators/service.js +136 -0
- package/utils/validators/setting.js +48 -0
- package/utils/validators/vm-datavolumes.js +38 -0
- package/utils/validators/vm-image.js +32 -0
- package/utils/validators/vm.js +214 -0
- package/utils/version.js +127 -0
- package/utils/window.js +46 -0
|
@@ -0,0 +1,1393 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import day from 'dayjs';
|
|
3
|
+
import { dasherize, ucFirst } from '@shell/utils/string';
|
|
4
|
+
import { get, clone } from '@shell/utils/object';
|
|
5
|
+
import { removeObject } from '@shell/utils/array';
|
|
6
|
+
import Checkbox from '@shell/components/form/Checkbox';
|
|
7
|
+
import ActionDropdown from '@shell/components/ActionDropdown';
|
|
8
|
+
import $ from 'jquery';
|
|
9
|
+
import throttle from 'lodash/throttle';
|
|
10
|
+
import debounce from 'lodash/debounce';
|
|
11
|
+
import THead from './THead';
|
|
12
|
+
import filtering from './filtering';
|
|
13
|
+
import selection from './selection';
|
|
14
|
+
import sorting from './sorting';
|
|
15
|
+
import paging from './paging';
|
|
16
|
+
import grouping from './grouping';
|
|
17
|
+
import actions from './actions';
|
|
18
|
+
|
|
19
|
+
// Its quicker to render if we directly supply the components for the formatters
|
|
20
|
+
// rather than just the name of a global component - so create a map of the formatter comoponents
|
|
21
|
+
const FORMATTERS = {};
|
|
22
|
+
|
|
23
|
+
const components = require.context('@shell/components/formatter', false, /[A-Z]\w+\.(vue)$/);
|
|
24
|
+
|
|
25
|
+
components.keys().forEach((fileName) => {
|
|
26
|
+
const componentConfig = components(fileName);
|
|
27
|
+
const componentName = fileName.split('/').pop().split('.')[0];
|
|
28
|
+
|
|
29
|
+
FORMATTERS[componentName] = componentConfig.default || componentConfig;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const COLUMN_BREAKPOINTS = {
|
|
33
|
+
/**
|
|
34
|
+
* Only show column if at tablet width or wider
|
|
35
|
+
*/
|
|
36
|
+
TABLET: 'tablet',
|
|
37
|
+
/**
|
|
38
|
+
* Only show column if at laptop width or wider
|
|
39
|
+
*/
|
|
40
|
+
LAPTOP: 'laptop',
|
|
41
|
+
/**
|
|
42
|
+
* Only show column if at desktop width or wider
|
|
43
|
+
*/
|
|
44
|
+
DESKTOP: 'desktop'
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// @TODO:
|
|
48
|
+
// Fixed header/scrolling
|
|
49
|
+
|
|
50
|
+
// Data Flow:
|
|
51
|
+
// rows prop
|
|
52
|
+
// -> arrangedRows (sorting.js)
|
|
53
|
+
// -> filteredRows (filtering.js)
|
|
54
|
+
// -> pagedRows (paging.js)
|
|
55
|
+
// -> groupedRows (grouping.js)
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
name: 'SortableTable',
|
|
59
|
+
components: {
|
|
60
|
+
THead, Checkbox, ActionDropdown
|
|
61
|
+
},
|
|
62
|
+
mixins: [filtering, sorting, paging, grouping, selection, actions],
|
|
63
|
+
|
|
64
|
+
props: {
|
|
65
|
+
headers: {
|
|
66
|
+
// {
|
|
67
|
+
// name: Name for the column (goes in query param) and for defaultSortBy
|
|
68
|
+
// label: Displayed column header
|
|
69
|
+
// sort: string|array[string] Field name(s) to sort by, default: [name, keyField]
|
|
70
|
+
// fields can be suffixed with ':desc' to flip the normal sort order
|
|
71
|
+
// search: string|array[string] Field name(s) to search in, default: [name]
|
|
72
|
+
// width: number
|
|
73
|
+
// }
|
|
74
|
+
type: Array,
|
|
75
|
+
required: true
|
|
76
|
+
},
|
|
77
|
+
rows: {
|
|
78
|
+
// The array of objects to show
|
|
79
|
+
type: Array,
|
|
80
|
+
required: true
|
|
81
|
+
},
|
|
82
|
+
keyField: {
|
|
83
|
+
// Field that is unique for each row.
|
|
84
|
+
type: String,
|
|
85
|
+
default: '_key',
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
loading: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
groupBy: {
|
|
94
|
+
// Field to group rows by, row[groupBy] must be something that can be a map key
|
|
95
|
+
type: String,
|
|
96
|
+
default: null
|
|
97
|
+
},
|
|
98
|
+
groupRef: {
|
|
99
|
+
// Object to provide as the reference for rendering the grouping row
|
|
100
|
+
type: String,
|
|
101
|
+
default: null,
|
|
102
|
+
},
|
|
103
|
+
groupSort: {
|
|
104
|
+
// Field to order groups by, defaults to groupBy
|
|
105
|
+
type: Array,
|
|
106
|
+
default: null
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
defaultSortBy: {
|
|
110
|
+
// Default field to sort by if none is specified
|
|
111
|
+
// uses name on headers
|
|
112
|
+
type: String,
|
|
113
|
+
default: null
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
tableActions: {
|
|
117
|
+
// Show bulk table actions
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: true
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
rowActions: {
|
|
123
|
+
// Show action dropdown on the end of each row
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: true
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
mangleActionResources: {
|
|
129
|
+
type: Function,
|
|
130
|
+
default: null,
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
rowActionsWidth: {
|
|
134
|
+
// How wide the action dropdown column should be
|
|
135
|
+
type: Number,
|
|
136
|
+
default: 40
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
search: {
|
|
140
|
+
// Show search input to filter rows
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: true
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
extraSearchFields: {
|
|
146
|
+
// Additional fields that aren't defined in the headers to search in on each row
|
|
147
|
+
type: Array,
|
|
148
|
+
default: null
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
subRows: {
|
|
152
|
+
// If there are sub-rows, your main row must have <tr class="main-row"> to identify it
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: false,
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
subExpandable: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false,
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
subExpandColumn: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: false,
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
subSearch: {
|
|
168
|
+
// A field containing an array of sub-items to also search in for each row
|
|
169
|
+
type: String,
|
|
170
|
+
default: null,
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
subFields: {
|
|
174
|
+
// Search this list of fields within the items in "subSearch" of each row
|
|
175
|
+
type: Array,
|
|
176
|
+
default: null,
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Show the divider between the thead and tbody.
|
|
181
|
+
*/
|
|
182
|
+
topDivider: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: true
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Show the dividers between rows
|
|
189
|
+
*/
|
|
190
|
+
bodyDividers: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
overflowX: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
default: false
|
|
198
|
+
},
|
|
199
|
+
overflowY: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: false
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* If pagination of the data is enabled or not
|
|
206
|
+
*/
|
|
207
|
+
paging: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: false,
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* What translation key to use for displaying the '1 - 10 of 100 Things' pagination info
|
|
214
|
+
*/
|
|
215
|
+
pagingLabel: {
|
|
216
|
+
type: String,
|
|
217
|
+
default: 'sortableTable.paging.generic'
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Additional params to pass to the pagingLabel translation
|
|
222
|
+
*/
|
|
223
|
+
pagingParams: {
|
|
224
|
+
type: Object,
|
|
225
|
+
default: null,
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Allows you to override the default preference of the number of
|
|
230
|
+
* items to display per page. This is used by ./paging.js if you're
|
|
231
|
+
* looking for a reference.
|
|
232
|
+
*/
|
|
233
|
+
rowsPerPage: {
|
|
234
|
+
type: Number,
|
|
235
|
+
default: null, // Default comes from the user preference
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Allows you to override the default translation text of no rows view
|
|
240
|
+
*/
|
|
241
|
+
noRowsKey: {
|
|
242
|
+
type: String,
|
|
243
|
+
default: 'sortableTable.noRows'
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Allows you to hide the no rows messaging.
|
|
248
|
+
*/
|
|
249
|
+
showNoRows: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
default: true
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Allows you to override the default translation text of no search data view
|
|
256
|
+
*/
|
|
257
|
+
noDataKey: {
|
|
258
|
+
type: String,
|
|
259
|
+
default: 'sortableTable.noData'
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Allows you to override showing the THEAD section.
|
|
264
|
+
*/
|
|
265
|
+
showHeaders: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
default: true
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
sortGenerationFn: {
|
|
271
|
+
type: Function,
|
|
272
|
+
default: null,
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Allows you to link to a custom detail page for data that
|
|
277
|
+
* doesn't have a class model. For example, a receiver configuration
|
|
278
|
+
* block within an AlertmanagerConfig resource.
|
|
279
|
+
*/
|
|
280
|
+
getCustomDetailLink: {
|
|
281
|
+
type: Function,
|
|
282
|
+
default: null
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
|
|
286
|
+
data() {
|
|
287
|
+
return {
|
|
288
|
+
expanded: {},
|
|
289
|
+
searchQuery: '',
|
|
290
|
+
eventualSearchQuery: '',
|
|
291
|
+
actionOfInterest: null,
|
|
292
|
+
loadingDelay: false,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
mounted() {
|
|
297
|
+
this._loadingDelayTimer = setTimeout(() => {
|
|
298
|
+
this.loadingDelay = true;
|
|
299
|
+
}, 200);
|
|
300
|
+
|
|
301
|
+
// Add scroll listener to the main element
|
|
302
|
+
const $main = $('main');
|
|
303
|
+
|
|
304
|
+
this._onScroll = this.onScroll.bind(this);
|
|
305
|
+
$main.on('scroll', this._onScroll);
|
|
306
|
+
|
|
307
|
+
this.updateLiveAndDelayed();
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
beforeDestroy() {
|
|
311
|
+
clearTimeout(this.loadingDelayTimer);
|
|
312
|
+
clearTimeout(this._scrollTimer);
|
|
313
|
+
clearTimeout(this._loadingDelayTimer);
|
|
314
|
+
clearTimeout(this._liveColumnsTimer);
|
|
315
|
+
clearTimeout(this._delayedColumnsTimer);
|
|
316
|
+
|
|
317
|
+
const $main = $('main');
|
|
318
|
+
|
|
319
|
+
$main.off('scroll', this._onScroll);
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
updated() {
|
|
323
|
+
this.updateLiveAndDelayed();
|
|
324
|
+
},
|
|
325
|
+
|
|
326
|
+
watch: {
|
|
327
|
+
eventualSearchQuery: debounce(function(q) {
|
|
328
|
+
this.searchQuery = q;
|
|
329
|
+
}, 100),
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
computed: {
|
|
333
|
+
fullColspan() {
|
|
334
|
+
let span = 0;
|
|
335
|
+
|
|
336
|
+
for ( let i = 0 ; i < this.columns.length ; i++ ) {
|
|
337
|
+
if (!this.columns[i].hide) {
|
|
338
|
+
span++;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if ( this.tableActions ) {
|
|
343
|
+
span++;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if ( this.subExpandColumn ) {
|
|
347
|
+
span++;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if ( this.rowActions ) {
|
|
351
|
+
span++;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return span;
|
|
355
|
+
},
|
|
356
|
+
|
|
357
|
+
noResults() {
|
|
358
|
+
return !!this.searchQuery && this.pagedRows.length === 0;
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
noRows() {
|
|
362
|
+
return !this.noResults && (this.rows || []).length === 0;
|
|
363
|
+
},
|
|
364
|
+
|
|
365
|
+
showHeaderRow() {
|
|
366
|
+
return this.search ||
|
|
367
|
+
this.tableActions ||
|
|
368
|
+
this.$slots['header-left']?.length ||
|
|
369
|
+
this.$slots['header-middle']?.length ||
|
|
370
|
+
this.$slots['header-right']?.length;
|
|
371
|
+
},
|
|
372
|
+
|
|
373
|
+
columns() {
|
|
374
|
+
// Filter out any columns that are too heavy to show for large page sizes
|
|
375
|
+
const out = this.headers.slice().filter(c => !c.maxPageSize || (c.maxPageSize && c.maxPageSize >= this.perPage));
|
|
376
|
+
|
|
377
|
+
if ( this.groupBy ) {
|
|
378
|
+
const entry = out.find(x => x.name === this.groupBy);
|
|
379
|
+
|
|
380
|
+
if ( entry ) {
|
|
381
|
+
removeObject(out, entry);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// If all columns have a width, try to remove it from a column that can be variable (name)
|
|
386
|
+
const missingWidth = out.find(x => !x.width);
|
|
387
|
+
|
|
388
|
+
if ( !missingWidth ) {
|
|
389
|
+
const variable = out.find(x => x.canBeVariable);
|
|
390
|
+
|
|
391
|
+
if ( variable ) {
|
|
392
|
+
const neu = clone(variable);
|
|
393
|
+
|
|
394
|
+
delete neu.width;
|
|
395
|
+
|
|
396
|
+
out.splice(out.indexOf(variable), 1, neu);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return out;
|
|
401
|
+
},
|
|
402
|
+
|
|
403
|
+
// For data-title properties on <td>s
|
|
404
|
+
dt() {
|
|
405
|
+
const out = {
|
|
406
|
+
check: `Select: `,
|
|
407
|
+
actions: `Actions: `,
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
this.columns.forEach((col) => {
|
|
411
|
+
out[col.name] = `${ (col.label || col.name) }:`;
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
return out;
|
|
415
|
+
},
|
|
416
|
+
|
|
417
|
+
classObject() {
|
|
418
|
+
return {
|
|
419
|
+
'top-divider': this.topDivider,
|
|
420
|
+
'body-dividers': this.bodyDividers,
|
|
421
|
+
'overflow-y': this.overflowY,
|
|
422
|
+
'overflow-x': this.overflowX,
|
|
423
|
+
};
|
|
424
|
+
},
|
|
425
|
+
|
|
426
|
+
// Do we have any live columns?
|
|
427
|
+
hasLiveColumns() {
|
|
428
|
+
const liveColumns = this.columns.find(c => c.formatter?.startsWith('Live') || c.liveUpdates);
|
|
429
|
+
|
|
430
|
+
return !!liveColumns;
|
|
431
|
+
},
|
|
432
|
+
|
|
433
|
+
hasDelayedColumns() {
|
|
434
|
+
const delaeydColumns = this.columns.find(c => c.delayLoading);
|
|
435
|
+
|
|
436
|
+
return !!delaeydColumns;
|
|
437
|
+
},
|
|
438
|
+
|
|
439
|
+
// Generate row and column data for easier rendering in the template
|
|
440
|
+
// ensures we only call methods like `valueFor` once
|
|
441
|
+
displayRows() {
|
|
442
|
+
const rows = [];
|
|
443
|
+
|
|
444
|
+
this.groupedRows.forEach((grp) => {
|
|
445
|
+
const group = {
|
|
446
|
+
grp,
|
|
447
|
+
key: grp.key,
|
|
448
|
+
ref: grp.ref,
|
|
449
|
+
rows: [],
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
rows.push(group);
|
|
453
|
+
|
|
454
|
+
grp.rows.forEach((row) => {
|
|
455
|
+
const rowData = {
|
|
456
|
+
row,
|
|
457
|
+
key: this.get(row, this.keyField),
|
|
458
|
+
showSubRow: this.showSubRow(row, this.keyField),
|
|
459
|
+
canRunBulkActionOfInterest: this.canRunBulkActionOfInterest(row),
|
|
460
|
+
columns: []
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
group.rows.push(rowData);
|
|
464
|
+
|
|
465
|
+
this.columns.forEach((c) => {
|
|
466
|
+
const value = this.valueFor(row, c);
|
|
467
|
+
let component;
|
|
468
|
+
let formatted = value;
|
|
469
|
+
let needRef = false;
|
|
470
|
+
|
|
471
|
+
if (Array.isArray(value)) {
|
|
472
|
+
formatted = value.join(', ');
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (c.formatter && FORMATTERS[c.formatter]) {
|
|
476
|
+
component = FORMATTERS[c.formatter];
|
|
477
|
+
needRef = true;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
rowData.columns.push({
|
|
481
|
+
col: c,
|
|
482
|
+
value,
|
|
483
|
+
formatted,
|
|
484
|
+
component,
|
|
485
|
+
needRef,
|
|
486
|
+
delayed: c.delayLoading,
|
|
487
|
+
live: c.formatter?.startsWith('Live') || c.liveUpdates,
|
|
488
|
+
label: this.labelFor(c),
|
|
489
|
+
dasherize: dasherize(c.formatter || ''),
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
return rows;
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
methods: {
|
|
500
|
+
|
|
501
|
+
get,
|
|
502
|
+
dasherize,
|
|
503
|
+
|
|
504
|
+
onScroll() {
|
|
505
|
+
if (this.hasLiveColumns || this.hasDelayedColumns) {
|
|
506
|
+
clearTimeout(this._liveColumnsTimer);
|
|
507
|
+
clearTimeout(this._scrollTimer);
|
|
508
|
+
clearTimeout(this._delayedColumnsTimer);
|
|
509
|
+
this._scrollTimer = setTimeout(() => {
|
|
510
|
+
this.updateLiveColumns();
|
|
511
|
+
this.updateDelayedColumns();
|
|
512
|
+
}, 300);
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
|
|
516
|
+
updateLiveAndDelayed() {
|
|
517
|
+
if (this.hasLiveColumns) {
|
|
518
|
+
this.updateLiveColumns();
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
if (this.hasDelayedColumns) {
|
|
522
|
+
this.updateDelayedColumns();
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
|
|
526
|
+
updateDelayedColumns() {
|
|
527
|
+
if (!this.$refs.column || this.pagedRows.length === 0) {
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const delayedColumns = this.$refs.column.filter(c => c.startDelayedLoading && !c.__delayedLoading);
|
|
532
|
+
// We add 100 pixels here - so we will render the delayed columns for a few extra rows below what is visible
|
|
533
|
+
// This way if you scroll slowly, you won't see the columns being loaded
|
|
534
|
+
const clientHeight = (window.innerHeight || document.documentElement.clientHeight) + 100;
|
|
535
|
+
|
|
536
|
+
let scheduled = 0;
|
|
537
|
+
|
|
538
|
+
for (let i = 0; i < delayedColumns.length; i++) {
|
|
539
|
+
const dc = delayedColumns[i];
|
|
540
|
+
const y = dc.$el.getBoundingClientRect().y;
|
|
541
|
+
|
|
542
|
+
if (y >= 0 && y <= clientHeight) {
|
|
543
|
+
dc.startDelayedLoading(true);
|
|
544
|
+
dc.__delayedLoading = true;
|
|
545
|
+
|
|
546
|
+
scheduled++;
|
|
547
|
+
|
|
548
|
+
// Only update 4 at a time
|
|
549
|
+
if (scheduled === 4) {
|
|
550
|
+
this._delayedColumnsTimer = setTimeout(this.updateDelayedColumns, 100);
|
|
551
|
+
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
|
|
558
|
+
updateLiveColumns() {
|
|
559
|
+
if (!this.$refs.column || !this.hasLiveColumns || this.pagedRows.length === 0) {
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
const clientHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
564
|
+
const liveColumns = this.$refs.column.filter(c => !!c.liveUpdate);
|
|
565
|
+
const now = day();
|
|
566
|
+
let next = Number.MAX_SAFE_INTEGER;
|
|
567
|
+
|
|
568
|
+
for (let i = 0; i < liveColumns.length; i++) {
|
|
569
|
+
const column = liveColumns[i];
|
|
570
|
+
const y = column.$el.getBoundingClientRect().y;
|
|
571
|
+
|
|
572
|
+
if (y >= 0 && y <= clientHeight) {
|
|
573
|
+
const diff = column.liveUpdate(now);
|
|
574
|
+
|
|
575
|
+
if (diff < next) {
|
|
576
|
+
next = diff;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (next < 1 ) {
|
|
582
|
+
next = 1;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// Schedule again
|
|
586
|
+
this._liveColumnsTimer = setTimeout(() => this.updateLiveColumns(), next * 1000);
|
|
587
|
+
},
|
|
588
|
+
|
|
589
|
+
labelFor(col) {
|
|
590
|
+
if ( col.labelKey ) {
|
|
591
|
+
return this.t(col.labelKey, undefined, true);
|
|
592
|
+
} else if ( col.label ) {
|
|
593
|
+
return col.label;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
return ucFirst(col.name);
|
|
597
|
+
},
|
|
598
|
+
|
|
599
|
+
valueFor(row, col) {
|
|
600
|
+
if (typeof col.value === 'function') {
|
|
601
|
+
return col.value(row);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// console.warn(`Performance: Table valueFor: ${ col.name } ${ col.value }`); // Use to debug table columns using expensive value getters
|
|
605
|
+
|
|
606
|
+
const expr = col.value || col.name;
|
|
607
|
+
const out = get(row, expr);
|
|
608
|
+
|
|
609
|
+
if ( out === null || out === undefined ) {
|
|
610
|
+
return '';
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
return out;
|
|
614
|
+
},
|
|
615
|
+
|
|
616
|
+
isExpanded(row) {
|
|
617
|
+
const key = row[this.keyField];
|
|
618
|
+
|
|
619
|
+
return !!this.expanded[key];
|
|
620
|
+
},
|
|
621
|
+
|
|
622
|
+
toggleExpand(row) {
|
|
623
|
+
const key = row[this.keyField];
|
|
624
|
+
const val = !this.expanded[key];
|
|
625
|
+
|
|
626
|
+
this.expanded[key] = val;
|
|
627
|
+
this.expanded = { ...this.expanded };
|
|
628
|
+
|
|
629
|
+
return val;
|
|
630
|
+
},
|
|
631
|
+
|
|
632
|
+
setBulkActionOfInterest(action) {
|
|
633
|
+
this.actionOfInterest = action;
|
|
634
|
+
},
|
|
635
|
+
|
|
636
|
+
// Can the action of interest be applied to the specified resource?
|
|
637
|
+
canRunBulkActionOfInterest(resource) {
|
|
638
|
+
if (!this.actionOfInterest) {
|
|
639
|
+
return false;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
const matchingResourceAction = resource.availableActions.find(a => a.action === this.actionOfInterest.action);
|
|
643
|
+
|
|
644
|
+
return matchingResourceAction?.enabled;
|
|
645
|
+
},
|
|
646
|
+
|
|
647
|
+
focusSearch() {
|
|
648
|
+
if ( this.$refs.searchQuery ) {
|
|
649
|
+
this.$refs.searchQuery.focus();
|
|
650
|
+
this.$refs.searchQuery.select();
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
|
|
654
|
+
nearestCheckbox() {
|
|
655
|
+
const $cur = $(document.activeElement).closest('tr.main-row').find('.checkbox-custom');
|
|
656
|
+
|
|
657
|
+
return $cur[0];
|
|
658
|
+
},
|
|
659
|
+
|
|
660
|
+
focusAdjacent(next = true) {
|
|
661
|
+
const all = $('.checkbox-custom', this.$el).toArray();
|
|
662
|
+
const cur = this.nearestCheckbox();
|
|
663
|
+
let idx = -1;
|
|
664
|
+
|
|
665
|
+
if ( cur ) {
|
|
666
|
+
idx = all.indexOf(cur) + (next ? 1 : -1 );
|
|
667
|
+
} else if ( next ) {
|
|
668
|
+
idx = 1;
|
|
669
|
+
} else {
|
|
670
|
+
idx = all.length - 1;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if ( idx < 1 ) { // Don't go up to the check all button
|
|
674
|
+
idx = 1;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
if ( idx >= all.length ) {
|
|
678
|
+
idx = all.length - 1;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
if ( all[idx] ) {
|
|
682
|
+
all[idx].focus();
|
|
683
|
+
|
|
684
|
+
return all[idx];
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
|
|
688
|
+
focusNext: throttle(function(event, more = false) {
|
|
689
|
+
const elem = this.focusAdjacent(true);
|
|
690
|
+
const row = $(elem).parents('tr');
|
|
691
|
+
|
|
692
|
+
this.keySelectRow(row, more);
|
|
693
|
+
}, 50),
|
|
694
|
+
|
|
695
|
+
focusPrevious: throttle(function(event, more = false) {
|
|
696
|
+
const elem = this.focusAdjacent(false);
|
|
697
|
+
const row = $(elem).parents('tr');
|
|
698
|
+
|
|
699
|
+
this.keySelectRow(row, more);
|
|
700
|
+
}, 50),
|
|
701
|
+
|
|
702
|
+
showSubRow(row, keyField) {
|
|
703
|
+
const hasInjectedSubRows = this.subRows && (!this.subExpandable || this.expanded[get(row, keyField)]);
|
|
704
|
+
const hasStateDescription = row.stateDescription;
|
|
705
|
+
|
|
706
|
+
return hasInjectedSubRows || hasStateDescription;
|
|
707
|
+
},
|
|
708
|
+
|
|
709
|
+
handleActionButtonClick(i, event) {
|
|
710
|
+
// Each row in the table gets its own ref with
|
|
711
|
+
// a number based on its index. If you are using
|
|
712
|
+
// an ActionMenu that doen't have a dependency on Vuex,
|
|
713
|
+
// these refs are useful because you can reuse the
|
|
714
|
+
// same ActionMenu component on a page with many different
|
|
715
|
+
// target elements in a list,
|
|
716
|
+
// so you can still avoid the performance problems that
|
|
717
|
+
// could result if the ActionMenu was in every row. The menu
|
|
718
|
+
// will open on whichever target element is clicked.
|
|
719
|
+
this.$emit('clickedActionButton', {
|
|
720
|
+
event,
|
|
721
|
+
targetElement: this.$refs[`actionButton${ i }`][0],
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
</script>
|
|
727
|
+
|
|
728
|
+
<template>
|
|
729
|
+
<div ref="container">
|
|
730
|
+
<div :class="{'titled': $slots.title && $slots.title.length}" class="sortable-table-header">
|
|
731
|
+
<slot name="title" />
|
|
732
|
+
<div v-if="showHeaderRow" class="fixed-header-actions" :class="{button: !!$slots['header-button']}">
|
|
733
|
+
<div :class="bulkActionsClass" class="bulk">
|
|
734
|
+
<slot name="header-left">
|
|
735
|
+
<template v-if="tableActions">
|
|
736
|
+
<button
|
|
737
|
+
v-for="act in availableActions"
|
|
738
|
+
:id="act.action"
|
|
739
|
+
:key="act.action"
|
|
740
|
+
v-tooltip="actionTooltip"
|
|
741
|
+
type="button"
|
|
742
|
+
class="btn role-primary"
|
|
743
|
+
:class="{[bulkActionClass]:true}"
|
|
744
|
+
:disabled="!act.enabled"
|
|
745
|
+
@click="applyTableAction(act, null, $event)"
|
|
746
|
+
@mouseover="setBulkActionOfInterest(act)"
|
|
747
|
+
@mouseleave="setBulkActionOfInterest(null)"
|
|
748
|
+
>
|
|
749
|
+
<i v-if="act.icon" :class="act.icon" />
|
|
750
|
+
<span v-html="act.label" />
|
|
751
|
+
</button>
|
|
752
|
+
<ActionDropdown :class="bulkActionsDropdownClass" class="bulk-actions-dropdown" :disable-button="!selectedRows.length" size="sm">
|
|
753
|
+
<template #button-content>
|
|
754
|
+
<button ref="actionDropDown" class="btn bg-primary mr-0" :disabled="!selectedRows.length">
|
|
755
|
+
<i class="icon icon-gear" />
|
|
756
|
+
<span>{{ t('harvester.tableHeaders.actions') }}</span>
|
|
757
|
+
<i class="ml-10 icon icon-chevron-down" />
|
|
758
|
+
</button>
|
|
759
|
+
</template>
|
|
760
|
+
<template #popover-content>
|
|
761
|
+
<ul class="list-unstyled menu">
|
|
762
|
+
<li
|
|
763
|
+
v-for="act in hiddenActions"
|
|
764
|
+
:key="act.action"
|
|
765
|
+
v-close-popover
|
|
766
|
+
v-tooltip="{
|
|
767
|
+
content: actionTooltip,
|
|
768
|
+
placement: 'right'
|
|
769
|
+
}"
|
|
770
|
+
:class="{ disabled: !act.enabled }"
|
|
771
|
+
@click="applyTableAction(act, null, $event)"
|
|
772
|
+
@mouseover="setBulkActionOfInterest(act)"
|
|
773
|
+
@mouseleave="setBulkActionOfInterest(null)"
|
|
774
|
+
>
|
|
775
|
+
<i v-if="act.icon" :class="act.icon" />
|
|
776
|
+
<span v-html="act.label" />
|
|
777
|
+
</li>
|
|
778
|
+
</ul>
|
|
779
|
+
</template>
|
|
780
|
+
</ActionDropdown>
|
|
781
|
+
<label v-if="selectedRowsText" :class="bulkActionAvailabilityClass" class="action-availability">
|
|
782
|
+
{{ selectedRowsText }}
|
|
783
|
+
</label>
|
|
784
|
+
</template>
|
|
785
|
+
</slot>
|
|
786
|
+
</div>
|
|
787
|
+
<div v-if="$slots['header-middle'] && $slots['header-middle'].length" class="middle">
|
|
788
|
+
<slot name="header-middle" />
|
|
789
|
+
</div>
|
|
790
|
+
|
|
791
|
+
<div v-if="search || ($slots['header-right'] && $slots['header-right'].length)" class="search row">
|
|
792
|
+
<slot name="header-right" />
|
|
793
|
+
<input
|
|
794
|
+
v-if="search"
|
|
795
|
+
ref="searchQuery"
|
|
796
|
+
v-model="eventualSearchQuery"
|
|
797
|
+
type="search"
|
|
798
|
+
class="input-sm search-box"
|
|
799
|
+
:placeholder="t('sortableTable.search')"
|
|
800
|
+
>
|
|
801
|
+
<slot name="header-button" />
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
</div>
|
|
805
|
+
<table class="sortable-table" :class="classObject" width="100%">
|
|
806
|
+
<THead
|
|
807
|
+
v-if="showHeaders"
|
|
808
|
+
:label-for="labelFor"
|
|
809
|
+
:columns="columns"
|
|
810
|
+
:table-actions="tableActions"
|
|
811
|
+
:row-actions="rowActions"
|
|
812
|
+
:sub-expand-column="subExpandColumn"
|
|
813
|
+
:row-actions-width="rowActionsWidth"
|
|
814
|
+
:how-much-selected="howMuchSelected"
|
|
815
|
+
:sort-by="sortBy"
|
|
816
|
+
:default-sort-by="_defaultSortBy"
|
|
817
|
+
:descending="descending"
|
|
818
|
+
:no-rows="noRows"
|
|
819
|
+
:loading="loading && !loadingDelay"
|
|
820
|
+
:no-results="noResults"
|
|
821
|
+
@on-toggle-all="onToggleAll"
|
|
822
|
+
@on-sort-change="changeSort"
|
|
823
|
+
/>
|
|
824
|
+
|
|
825
|
+
<!-- Don't display anything if we're loading and the delay has yet to pass -->
|
|
826
|
+
<div v-if="loading && !loadingDelay"></div>
|
|
827
|
+
|
|
828
|
+
<tbody v-else-if="loading">
|
|
829
|
+
<slot name="loading">
|
|
830
|
+
<tr>
|
|
831
|
+
<td :colspan="fullColspan">
|
|
832
|
+
<div class="data-loading">
|
|
833
|
+
<i class="icon-spin icon icon-spinner" />
|
|
834
|
+
<t k="generic.loading" :raw="true" />
|
|
835
|
+
</div>
|
|
836
|
+
</td>
|
|
837
|
+
</tr>
|
|
838
|
+
</slot>
|
|
839
|
+
</tbody>
|
|
840
|
+
<tbody v-else-if="noRows">
|
|
841
|
+
<slot name="no-rows">
|
|
842
|
+
<tr class="no-rows">
|
|
843
|
+
<td :colspan="fullColspan">
|
|
844
|
+
<t v-if="showNoRows" :k="noRowsKey" />
|
|
845
|
+
</td>
|
|
846
|
+
</tr>
|
|
847
|
+
</slot>
|
|
848
|
+
</tbody>
|
|
849
|
+
<tbody v-else-if="noResults">
|
|
850
|
+
<slot name="no-results">
|
|
851
|
+
<tr class="no-results">
|
|
852
|
+
<td :colspan="fullColspan" class="text-center">
|
|
853
|
+
<t :k="noDataKey" />
|
|
854
|
+
</td>
|
|
855
|
+
</tr>
|
|
856
|
+
</slot>
|
|
857
|
+
</tbody>
|
|
858
|
+
<tbody v-for="group in displayRows" v-else :key="group.key" :class="{ group: groupBy }">
|
|
859
|
+
<slot v-if="groupBy" name="group-row" :group="group" :fullColspan="fullColspan">
|
|
860
|
+
<tr class="group-row">
|
|
861
|
+
<td :colspan="fullColspan">
|
|
862
|
+
<slot name="group-by" :group="group.grp">
|
|
863
|
+
<div v-trim-whitespace class="group-tab">
|
|
864
|
+
{{ group.ref }}
|
|
865
|
+
</div>
|
|
866
|
+
</slot>
|
|
867
|
+
</td>
|
|
868
|
+
</tr>
|
|
869
|
+
</slot>
|
|
870
|
+
<template v-for="(row, i) in group.rows">
|
|
871
|
+
<slot name="main-row" :row="row.row">
|
|
872
|
+
<slot :name="'main-row:' + (row.row.mainRowKey || i)" :full-colspan="fullColspan">
|
|
873
|
+
<!-- The data-cant-run-bulk-action-of-interest attribute is being used instead of :class because
|
|
874
|
+
because our selection.js invokes toggleClass and :class clobbers what was added by toggleClass if
|
|
875
|
+
the value of :class changes. -->
|
|
876
|
+
<tr :key="row.key" class="main-row" :class="{ 'has-sub-row': row.showSubRow}" :data-node-id="row.key" :data-cant-run-bulk-action-of-interest="actionOfInterest && !row.canRunBulkActionOfInterest">
|
|
877
|
+
<td v-if="tableActions" class="row-check" align="middle">
|
|
878
|
+
{{ row.mainRowKey }}<Checkbox class="selection-checkbox" :data-node-id="row.key" :value="selectedRows.includes(row.row)" />
|
|
879
|
+
</td>
|
|
880
|
+
<td v-if="subExpandColumn" class="row-expand" align="middle">
|
|
881
|
+
<i
|
|
882
|
+
data-title="Toggle Expand"
|
|
883
|
+
:class="{
|
|
884
|
+
icon: true,
|
|
885
|
+
'icon-chevron-right': !expanded[row.row[keyField]],
|
|
886
|
+
'icon-chevron-down': !!expanded[row.row[keyField]]
|
|
887
|
+
}"
|
|
888
|
+
@click.stop="toggleExpand(row.row)"
|
|
889
|
+
/>
|
|
890
|
+
</td>
|
|
891
|
+
<template v-for="col in row.columns">
|
|
892
|
+
<slot
|
|
893
|
+
:name="'col:' + col.col.name"
|
|
894
|
+
:row="row.row"
|
|
895
|
+
:col="col.col"
|
|
896
|
+
:dt="dt"
|
|
897
|
+
:expanded="expanded"
|
|
898
|
+
:rowKey="row.key"
|
|
899
|
+
>
|
|
900
|
+
<td
|
|
901
|
+
:key="col.col.name"
|
|
902
|
+
:data-title="col.col.label"
|
|
903
|
+
:align="col.col.align || 'left'"
|
|
904
|
+
:class="{['col-'+col.dasherize]: !!col.col.formatter, [col.col.breakpoint]: !!col.col.breakpoint, ['skip-select']: col.col.skipSelect}"
|
|
905
|
+
:width="col.col.width"
|
|
906
|
+
>
|
|
907
|
+
<slot :name="'cell:' + col.col.name" :row="row.row" :col="col.col" :value="col.value">
|
|
908
|
+
<component
|
|
909
|
+
:is="col.component"
|
|
910
|
+
v-if="col.component && col.needRef"
|
|
911
|
+
ref="column"
|
|
912
|
+
:value="col.value"
|
|
913
|
+
:row="row.row"
|
|
914
|
+
:col="col.col"
|
|
915
|
+
v-bind="col.col.formatterOpts"
|
|
916
|
+
:row-key="row.key"
|
|
917
|
+
:get-custom-detail-link="getCustomDetailLink"
|
|
918
|
+
/>
|
|
919
|
+
<component
|
|
920
|
+
:is="col.component"
|
|
921
|
+
v-else-if="col.component"
|
|
922
|
+
:value="col.value"
|
|
923
|
+
:row="row.row"
|
|
924
|
+
:col="col.col"
|
|
925
|
+
v-bind="col.col.formatterOpts"
|
|
926
|
+
:row-key="row.key"
|
|
927
|
+
/>
|
|
928
|
+
<component
|
|
929
|
+
:is="col.col.formatter"
|
|
930
|
+
v-else-if="col.col.formatter"
|
|
931
|
+
:value="col.value"
|
|
932
|
+
:row="row.row"
|
|
933
|
+
:col="col.col"
|
|
934
|
+
v-bind="col.col.formatterOpts"
|
|
935
|
+
:row-key="row.key"
|
|
936
|
+
/>
|
|
937
|
+
<template v-else-if="col.value !== ''">
|
|
938
|
+
{{ col.formatted }}
|
|
939
|
+
</template>
|
|
940
|
+
<template v-else-if="col.col.dashIfEmpty">
|
|
941
|
+
<span class="text-muted">—</span>
|
|
942
|
+
</template>
|
|
943
|
+
</slot>
|
|
944
|
+
</td>
|
|
945
|
+
</slot>
|
|
946
|
+
</template>
|
|
947
|
+
<td v-if="rowActions" align="middle">
|
|
948
|
+
<slot name="row-actions" :row="row">
|
|
949
|
+
<button
|
|
950
|
+
:id="`actionButton+${i}+${(row.row && row.row.name) ? row.row.name : ''}`"
|
|
951
|
+
:ref="`actionButton${i}`"
|
|
952
|
+
aria-haspopup="true"
|
|
953
|
+
aria-expanded="false"
|
|
954
|
+
type="button"
|
|
955
|
+
class="btn btn-sm role-multi-action actions"
|
|
956
|
+
@click="handleActionButtonClick(i, $event)"
|
|
957
|
+
>
|
|
958
|
+
<i class="icon icon-actions" />
|
|
959
|
+
</button>
|
|
960
|
+
</slot>
|
|
961
|
+
</td>
|
|
962
|
+
</tr>
|
|
963
|
+
</slot>
|
|
964
|
+
</slot>
|
|
965
|
+
<slot
|
|
966
|
+
v-if="row.showSubRow"
|
|
967
|
+
name="sub-row"
|
|
968
|
+
:full-colspan="fullColspan"
|
|
969
|
+
:row="row.row"
|
|
970
|
+
:sub-matches="subMatches"
|
|
971
|
+
>
|
|
972
|
+
<tr
|
|
973
|
+
v-if="row.row.stateDescription"
|
|
974
|
+
:key="row.row[keyField] + '-description'"
|
|
975
|
+
class="state-description sub-row"
|
|
976
|
+
@mouseenter="onRowMouseEnter"
|
|
977
|
+
@mouseleave="onRowMouseLeave"
|
|
978
|
+
>
|
|
979
|
+
<td v-if="tableActions" class="row-check" align="middle">
|
|
980
|
+
</td>
|
|
981
|
+
<td :colspan="fullColspan - (tableActions ? 1: 0)" :class="{ 'text-error' : row.row.stateObj.error }">
|
|
982
|
+
{{ row.row.stateDescription }}
|
|
983
|
+
</td>
|
|
984
|
+
</tr>
|
|
985
|
+
</slot>
|
|
986
|
+
</template>
|
|
987
|
+
</tbody>
|
|
988
|
+
</table>
|
|
989
|
+
<div v-if="showPaging" class="paging">
|
|
990
|
+
<button
|
|
991
|
+
type="button"
|
|
992
|
+
class="btn btn-sm role-multi-action"
|
|
993
|
+
:disabled="page == 1"
|
|
994
|
+
@click="goToPage('first')"
|
|
995
|
+
>
|
|
996
|
+
<i class="icon icon-chevron-beginning" />
|
|
997
|
+
</button>
|
|
998
|
+
<button
|
|
999
|
+
type="button"
|
|
1000
|
+
class="btn btn-sm role-multi-action"
|
|
1001
|
+
:disabled="page == 1"
|
|
1002
|
+
@click="goToPage('prev')"
|
|
1003
|
+
>
|
|
1004
|
+
<i class="icon icon-chevron-left" />
|
|
1005
|
+
</button>
|
|
1006
|
+
<span>
|
|
1007
|
+
{{ pagingDisplay }}
|
|
1008
|
+
</span>
|
|
1009
|
+
<button
|
|
1010
|
+
type="button"
|
|
1011
|
+
class="btn btn-sm role-multi-action"
|
|
1012
|
+
:disabled="page == totalPages"
|
|
1013
|
+
@click="goToPage('next')"
|
|
1014
|
+
>
|
|
1015
|
+
<i class="icon icon-chevron-right" />
|
|
1016
|
+
</button>
|
|
1017
|
+
<button
|
|
1018
|
+
type="button"
|
|
1019
|
+
class="btn btn-sm role-multi-action"
|
|
1020
|
+
:disabled="page == totalPages"
|
|
1021
|
+
@click="goToPage('last')"
|
|
1022
|
+
>
|
|
1023
|
+
<i class="icon icon-chevron-end" />
|
|
1024
|
+
</button>
|
|
1025
|
+
</div>
|
|
1026
|
+
<button v-if="search" v-shortkey.once="['/']" class="hide" @shortkey="focusSearch()" />
|
|
1027
|
+
<template v-if="tableActions">
|
|
1028
|
+
<button v-shortkey="['j']" class="hide" @shortkey="focusNext($event)" />
|
|
1029
|
+
<button v-shortkey="['k']" class="hide" @shortkey="focusPrevious($event)" />
|
|
1030
|
+
<button v-shortkey="['shift','j']" class="hide" @shortkey="focusNext($event, true)" />
|
|
1031
|
+
<button v-shortkey="['shift','k']" class="hide" @shortkey="focusPrevious($event, true)" />
|
|
1032
|
+
<slot name="shortkeys" />
|
|
1033
|
+
</template>
|
|
1034
|
+
</div>
|
|
1035
|
+
</template>
|
|
1036
|
+
|
|
1037
|
+
<style lang="scss" scoped>
|
|
1038
|
+
// Remove colors from multi-action buttons in the table
|
|
1039
|
+
td {
|
|
1040
|
+
.actions.role-multi-action {
|
|
1041
|
+
background-color: transparent;
|
|
1042
|
+
border: none;
|
|
1043
|
+
font-size: 18px;
|
|
1044
|
+
&:hover, &:focus {
|
|
1045
|
+
background-color: var(--accent-btn);
|
|
1046
|
+
box-shadow: none;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
// Aligns with COLUMN_BREAKPOINTS
|
|
1051
|
+
@media only screen and (max-width: map-get($breakpoints, '--viewport-4')) {
|
|
1052
|
+
// HIDE column on sizes below 480px
|
|
1053
|
+
&.tablet, &.laptop, &.desktop {
|
|
1054
|
+
display: none;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
@media only screen and (max-width: map-get($breakpoints, '--viewport-9')) {
|
|
1058
|
+
// HIDE column on sizes below 992px
|
|
1059
|
+
&.laptop, &.desktop {
|
|
1060
|
+
display: none;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
@media only screen and (max-width: map-get($breakpoints, '--viewport-12')) {
|
|
1064
|
+
// HIDE column on sizes below 1281px
|
|
1065
|
+
&.desktop {
|
|
1066
|
+
display: none;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
// Loading indicator row
|
|
1072
|
+
tr td div.data-loading {
|
|
1073
|
+
align-items: center;
|
|
1074
|
+
display: flex;
|
|
1075
|
+
justify-content: center;
|
|
1076
|
+
padding: 20px 0;
|
|
1077
|
+
> i {
|
|
1078
|
+
font-size: 20px;
|
|
1079
|
+
height: 20px;
|
|
1080
|
+
margin-right: 5px;
|
|
1081
|
+
width: 20px;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.search-box {
|
|
1086
|
+
height: 40px;
|
|
1087
|
+
}
|
|
1088
|
+
</style>
|
|
1089
|
+
|
|
1090
|
+
<style lang="scss">
|
|
1091
|
+
//
|
|
1092
|
+
// Important: Almost all selectors in here need to be ">"-ed together so they
|
|
1093
|
+
// apply only to the current table, not one nested inside another table.
|
|
1094
|
+
//
|
|
1095
|
+
|
|
1096
|
+
$group-row-height: 40px;
|
|
1097
|
+
$group-separation: 40px;
|
|
1098
|
+
$divider-height: 1px;
|
|
1099
|
+
|
|
1100
|
+
$separator: 20;
|
|
1101
|
+
$remove: 100;
|
|
1102
|
+
$spacing: 10px;
|
|
1103
|
+
|
|
1104
|
+
.sortable-table {
|
|
1105
|
+
border-collapse: collapse;
|
|
1106
|
+
min-width: 400px;
|
|
1107
|
+
border-radius: 5px 5px 0 0;
|
|
1108
|
+
outline: 1px solid var(--border);
|
|
1109
|
+
overflow: hidden;
|
|
1110
|
+
background: var(--sortable-table-bg);
|
|
1111
|
+
border-radius: 4px;
|
|
1112
|
+
|
|
1113
|
+
&.overflow-x {
|
|
1114
|
+
overflow-x: visible;
|
|
1115
|
+
}
|
|
1116
|
+
&.overflow-y {
|
|
1117
|
+
overflow-y: visible;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
td {
|
|
1121
|
+
padding: 8px 5px;
|
|
1122
|
+
border: 0;
|
|
1123
|
+
|
|
1124
|
+
&:first-child {
|
|
1125
|
+
padding-left: 10px;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
&:last-child {
|
|
1129
|
+
padding-right: 10px;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
&.row-check {
|
|
1133
|
+
padding-top: 12px;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
tbody {
|
|
1138
|
+
tr {
|
|
1139
|
+
border-bottom: 1px solid var(--sortable-table-top-divider);
|
|
1140
|
+
background-color: var(--sortable-table-row-bg);
|
|
1141
|
+
|
|
1142
|
+
&.main-row.has-sub-row {
|
|
1143
|
+
border-bottom: 0;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
// if a main-row is hovered also hover it's sibling sub row. note - the reverse is handled in selection.js
|
|
1147
|
+
&.main-row:not(.row-selected):hover + .sub-row {
|
|
1148
|
+
background-color: var(--sortable-table-hover-bg);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
&:last-of-type {
|
|
1152
|
+
border-bottom: 0;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
&:hover, &.sub-row-hovered {
|
|
1156
|
+
background-color: var(--sortable-table-hover-bg);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
&.state-description > td {
|
|
1160
|
+
font-size: 13px;
|
|
1161
|
+
padding-top: 0;
|
|
1162
|
+
overflow-wrap: anywhere;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
tr.active-row {
|
|
1167
|
+
color: var(--sortable-table-header-bg);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
tr.row-selected {
|
|
1171
|
+
background: var(--sortable-table-selected-bg);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.no-rows {
|
|
1175
|
+
td {
|
|
1176
|
+
padding: 30px 0;
|
|
1177
|
+
text-align: center;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.no-rows, .no-results {
|
|
1182
|
+
&:hover {
|
|
1183
|
+
background-color: var(--body-bg);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
&.group {
|
|
1188
|
+
&:before {
|
|
1189
|
+
content: "";
|
|
1190
|
+
display: block;
|
|
1191
|
+
height: 20px;
|
|
1192
|
+
background-color: transparent;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
tr.group-row {
|
|
1197
|
+
background-color: initial;
|
|
1198
|
+
|
|
1199
|
+
&:first-child {
|
|
1200
|
+
border-bottom: 2px solid var(--sortable-table-row-bg);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
&:not(:first-child) {
|
|
1204
|
+
margin-top: 20px;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
td {
|
|
1208
|
+
padding: 0;
|
|
1209
|
+
|
|
1210
|
+
&:first-of-type {
|
|
1211
|
+
border-left: 1px solid var(--sortable-table-accent-bg);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.group-tab {
|
|
1216
|
+
@include clearfix;
|
|
1217
|
+
height: $group-row-height;
|
|
1218
|
+
line-height: $group-row-height;
|
|
1219
|
+
padding: 0 10px;
|
|
1220
|
+
border-radius: 4px 4px 0px 0px;
|
|
1221
|
+
background-color: var(--sortable-table-row-bg);
|
|
1222
|
+
position: relative;
|
|
1223
|
+
top: 1px;
|
|
1224
|
+
display: inline-block;
|
|
1225
|
+
z-index: z-index('tableGroup');
|
|
1226
|
+
min-width: $group-row-height * 1.8;
|
|
1227
|
+
|
|
1228
|
+
> SPAN {
|
|
1229
|
+
color: var(--sortable-table-group-label);
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.group-tab:after {
|
|
1234
|
+
height: $group-row-height;
|
|
1235
|
+
width: 70px;
|
|
1236
|
+
border-radius: 5px 5px 0px 0px;
|
|
1237
|
+
background-color: var(--sortable-table-row-bg);
|
|
1238
|
+
content: "";
|
|
1239
|
+
position: absolute;
|
|
1240
|
+
right: -15px;
|
|
1241
|
+
top: 0px;
|
|
1242
|
+
transform: skewX(40deg);
|
|
1243
|
+
z-index: -1;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.for-inputs{
|
|
1250
|
+
& TABLE.sortable-table {
|
|
1251
|
+
width: 100%;
|
|
1252
|
+
border-collapse: collapse;
|
|
1253
|
+
margin-bottom: $spacing;
|
|
1254
|
+
|
|
1255
|
+
>TBODY>TR>TD, >THEAD>TR>TH {
|
|
1256
|
+
padding-right: $spacing;
|
|
1257
|
+
padding-bottom: $spacing;
|
|
1258
|
+
|
|
1259
|
+
&:last-of-type {
|
|
1260
|
+
padding-right: 0;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
>TBODY>TR:first-of-type>TD {
|
|
1265
|
+
padding-top: $spacing;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
>TBODY>TR:last-of-type>TD {
|
|
1269
|
+
padding-bottom: 0;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
&.edit, &.create, &.clone {
|
|
1274
|
+
TABLE.sortable-table>THEAD>TR>TH {
|
|
1275
|
+
border-color: transparent;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.sortable-table-header {
|
|
1281
|
+
position: relative;
|
|
1282
|
+
z-index: z-index('fixedTableHeader');
|
|
1283
|
+
|
|
1284
|
+
&.titled {
|
|
1285
|
+
display: flex;
|
|
1286
|
+
align-items: center;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
.fixed-header-actions.button{
|
|
1290
|
+
grid-template-columns: [bulk] auto [middle] min-content [search] minmax(min-content, 350px);
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.fixed-header-actions {
|
|
1294
|
+
padding: 0 0 20px 0;
|
|
1295
|
+
width: 100%;
|
|
1296
|
+
z-index: z-index('fixedTableHeader');
|
|
1297
|
+
background: transparent;
|
|
1298
|
+
display: grid;
|
|
1299
|
+
grid-template-columns: [bulk] auto [middle] min-content [search] minmax(min-content, 200px);
|
|
1300
|
+
grid-column-gap: 10px;
|
|
1301
|
+
|
|
1302
|
+
.bulk {
|
|
1303
|
+
grid-area: bulk;
|
|
1304
|
+
margin-top: 1px;
|
|
1305
|
+
|
|
1306
|
+
$gap: 10px;
|
|
1307
|
+
|
|
1308
|
+
& > BUTTON {
|
|
1309
|
+
display: none; // Handled dynamically
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
& > BUTTON:not(:last-of-type) {
|
|
1313
|
+
margin-right: $gap;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.action-availability {
|
|
1317
|
+
display: none; // Handled dynamically
|
|
1318
|
+
margin-left: $gap;
|
|
1319
|
+
vertical-align: middle;
|
|
1320
|
+
margin-top: 2px;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.dropdown-button {
|
|
1324
|
+
$disabled-color: var(--disabled-text);
|
|
1325
|
+
$disabled-cursor: not-allowed;
|
|
1326
|
+
li.disabled {
|
|
1327
|
+
color: $disabled-color;
|
|
1328
|
+
cursor: $disabled-cursor;
|
|
1329
|
+
|
|
1330
|
+
&:hover {
|
|
1331
|
+
color: $disabled-color;
|
|
1332
|
+
background-color: unset;
|
|
1333
|
+
cursor: $disabled-cursor;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.middle {
|
|
1340
|
+
grid-area: middle;
|
|
1341
|
+
white-space: nowrap;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.search {
|
|
1345
|
+
grid-area: search;
|
|
1346
|
+
text-align: right;
|
|
1347
|
+
justify-content: flex-end;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.bulk-actions-dropdown {
|
|
1351
|
+
display: none; // Handled dynamically
|
|
1352
|
+
|
|
1353
|
+
.dropdown-button {
|
|
1354
|
+
background-color: var(--primary);
|
|
1355
|
+
|
|
1356
|
+
&:hover {
|
|
1357
|
+
background-color: var(--primary-hover-bg);
|
|
1358
|
+
color: var(--primary-hover-text);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
> *, .icon-chevron-down {
|
|
1362
|
+
color: var(--primary-text);
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
.button-divider {
|
|
1366
|
+
border-color: var(--primary-text);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
&.disabled {
|
|
1370
|
+
border-color: var(--disabled-bg);
|
|
1371
|
+
|
|
1372
|
+
.icon-chevron-down {
|
|
1373
|
+
color: var(--disabled-text) !important;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.button-divider {
|
|
1377
|
+
border-color: var(--disabled-text);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.paging {
|
|
1385
|
+
margin-top: 10px;
|
|
1386
|
+
text-align: center;
|
|
1387
|
+
|
|
1388
|
+
SPAN {
|
|
1389
|
+
display: inline-block;
|
|
1390
|
+
min-width: 200px;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
</style>
|