dashboard-shell-shell 3.0.5-test.6 → 3.0.5-test.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/brand/csp/favicon.png +0 -0
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/icons/demo.css +539 -0
- package/assets/icons/demo.css:Zone.Identifier +0 -0
- package/assets/icons/demo_index.html +1131 -0
- package/assets/icons/demo_index.html:Zone.Identifier +0 -0
- package/assets/icons/iconfont.css +219 -0
- package/assets/icons/iconfont.css:Zone.Identifier +0 -0
- package/assets/icons/iconfont.js +1 -0
- package/assets/icons/iconfont.js:Zone.Identifier +0 -0
- package/assets/icons/iconfont.json +324 -0
- package/assets/icons/iconfont.json:Zone.Identifier +0 -0
- package/assets/icons/iconfont.ttf +0 -0
- package/assets/icons/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff +0 -0
- package/assets/icons/iconfont.woff2 +0 -0
- package/assets/icons/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff:Zone.Identifier +0 -0
- package/assets/iconsNew/demo.css +539 -0
- package/assets/iconsNew/demo.css:Zone.Identifier +0 -0
- package/assets/iconsNew/demo_index.html +303 -0
- package/assets/iconsNew/demo_index.html:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.css +43 -0
- package/assets/iconsNew/iconfont.css:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.js +1 -0
- package/assets/iconsNew/iconfont.js:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.json +44 -0
- package/assets/iconsNew/iconfont.json:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.ttf +0 -0
- package/assets/iconsNew/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff +0 -0
- package/assets/iconsNew/iconfont.woff2 +0 -0
- package/assets/iconsNew/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff:Zone.Identifier +0 -0
- package/assets/images/API.svg +3 -0
- package/assets/images/action.svg +6 -0
- package/assets/images/login/password.svg +20 -0
- package/assets/images/login/user.svg +6 -0
- package/assets/images/login-bg.png +0 -0
- package/assets/images/login-left.png +0 -0
- package/assets/images/login-logo.svg +44 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo.svg +47 -0
- package/assets/images/pl/dark/logo.png +0 -0
- package/assets/images/pl/half-logo.svg +2 -23
- package/assets/images/pl/harvester.png +0 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/images/promp-yellow.svg +5 -0
- package/assets/images/user.png +0 -0
- package/assets/styles/all.scss +83 -0
- package/assets/styles/app.scss +5 -0
- package/assets/styles/base/_basic.scss +2 -2
- package/assets/styles/base/_helpers.scss +1 -1
- package/assets/styles/base/_mixins.scss +1 -1
- package/assets/styles/base/_typography.scss +2 -1
- package/assets/styles/base/_variables.scss +14 -7
- package/assets/styles/fonts/_icons.scss +3 -2
- package/assets/styles/global/_button.scss +44 -26
- package/assets/styles/global/_columns.scss +3 -1
- package/assets/styles/global/_form.scss +46 -13
- package/assets/styles/global/_labeled-input.scss +54 -26
- package/assets/styles/global/_layout.scss +8 -3
- package/assets/styles/global/_select.scss +25 -17
- package/assets/styles/global/_table.scss +7 -1
- package/assets/styles/global/_tooltip.scss +60 -8
- package/assets/styles/themes/_dark.scss +3 -0
- package/assets/styles/themes/_light.scss +69 -46
- package/assets/styles/vendor/vue-select.scss +24 -10
- package/assets/translations/en-us.yaml +92 -4
- package/assets/translations/zh-hans.yaml +668 -206
- package/components/ActionDropdown.vue +2 -1
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +2 -0
- package/components/AppModal.vue +46 -5
- package/components/BrandImage.vue +1 -0
- package/components/ButtonDropdown.vue +28 -4
- package/components/ButtonMultiAction.vue +1 -0
- package/components/ClusterIconMenu.vue +2 -2
- package/components/CodeMirror.vue +26 -10
- package/components/ConsumptionGauge.vue +24 -5
- package/components/ContainerResourceLimit.vue +2 -2
- package/components/CopyToClipboard.vue +15 -0
- package/components/CruResource.vue +12 -10
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +29 -17
- package/components/DotState.vue +84 -0
- package/components/Drawer/Chrome.vue +2 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +30 -27
- package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
- package/components/Drawer/ResourceDetailDrawer/index.vue +5 -4
- package/components/ExplorerMembers.vue +28 -4
- package/components/ExplorerProjectsNamespaces.vue +19 -5
- package/components/GlobalRoleBindings.vue +23 -4
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +3 -1
- package/components/HardwareResourceGauge.vue +39 -3
- package/components/IndentedPanel.vue +4 -10
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +28 -2
- package/components/LabelValue.vue +20 -1
- package/components/ModalWithCard.vue +12 -3
- package/components/PodSecurityAdmission.vue +2 -2
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +53 -12
- package/components/RelatedResources.vue +3 -0
- package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
- package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
- package/components/Resource/Detail/Metadata/index.vue +3 -1
- package/components/Resource/Detail/TitleBar/Title.vue +4 -3
- package/components/Resource/Detail/TitleBar/Top.vue +2 -0
- package/components/Resource/Detail/TitleBar/composables.ts +16 -1
- package/components/Resource/Detail/TitleBar/index.vue +125 -27
- package/components/ResourceDetail/Masthead/index.vue +1 -1
- package/components/ResourceDetail/Masthead/latest.vue +1 -1
- package/components/ResourceDetail/Masthead/legacy.vue +183 -39
- package/components/ResourceDetail/legacy.vue +47 -29
- package/components/ResourceList/Masthead.vue +222 -54
- package/components/ResourceList/ResourceLoadingIndicator.vue +5 -2
- package/components/ResourceTable.vue +40 -2
- package/components/SideNav.vue +74 -20
- package/components/SingleClusterInfo.vue +2 -1
- package/components/SortableTable/THead.vue +79 -4
- package/components/SortableTable/index.vue +1053 -464
- package/components/SortableTable/paging.js +26 -16
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +53 -30
- package/components/YamlEditor.vue +0 -1
- package/components/auth/Principal.vue +51 -19
- package/components/auth/RoleDetailEdit.vue +69 -14
- package/components/auth/SelectPrincipal.vue +1 -0
- package/components/breadcrumb/index.vue +119 -0
- package/components/form/ArrayList.vue +177 -152
- package/components/form/ArrayListGrouped.vue +13 -3
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/BannerSettings.vue +64 -59
- package/components/form/ChangePassword.vue +5 -5
- package/components/form/ClusterAppearance.vue +4 -3
- package/components/form/ColorInput.vue +32 -8
- package/components/form/Command.vue +4 -5
- package/components/form/Conditions.vue +15 -1
- package/components/form/Footer.vue +12 -8
- package/components/form/HealthCheck.vue +0 -2
- package/components/form/HookOption.vue +87 -58
- package/components/form/InputWithSelect.vue +8 -4
- package/components/form/KeyValue.vue +66 -8
- package/components/form/LabeledSelect.vue +216 -242
- package/components/form/Labels.vue +4 -4
- package/components/form/MatchExpressions.vue +28 -11
- package/components/form/Members/ClusterMembershipEditor.vue +1 -1
- package/components/form/Members/ClusterPermissionsEditor.vue +61 -43
- package/components/form/Members/MembershipEditor.vue +4 -4
- package/components/form/Members/ProjectMembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +62 -22
- package/components/form/Networking.vue +6 -9
- package/components/form/NodeAffinity.vue +29 -28
- package/components/form/Password.vue +16 -7
- package/components/form/PodAffinity.vue +24 -25
- package/components/form/Probe.vue +15 -11
- package/components/form/ProjectMemberEditor.vue +66 -48
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +26 -23
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +38 -35
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/SecretSelector.vue +24 -23
- package/components/form/Security.vue +1 -3
- package/components/form/Select.vue +12 -3
- package/components/form/ServiceNameSelect.vue +2 -5
- package/components/form/ServicePorts.vue +149 -75
- package/components/form/SimpleSecretSelector.vue +29 -9
- package/components/form/Taints.vue +2 -1
- package/components/form/Tolerations.vue +13 -9
- package/components/form/UnitInput.vue +8 -3
- package/components/form/ValueFromResource.vue +110 -96
- package/components/form/WorkloadPorts.vue +143 -123
- package/components/formatter/BadgeStateFormatter.vue +8 -5
- package/components/formatter/LiveDate.vue +3 -3
- package/components/formatter/WorkloadHealthScale.vue +4 -3
- package/components/nav/Favorite.vue +5 -1
- package/components/nav/Group.vue +139 -99
- package/components/nav/Header.vue +138 -164
- package/components/nav/HeaderPageActionMenu.vue +1 -0
- package/components/nav/NamespaceFilter.vue +34 -36
- package/components/nav/TopLevelMenu.vue +62 -25
- package/components/nav/Type.vue +73 -43
- package/composables/useClickOutside.ts +1 -1
- package/config/menuRouteMap.js +10 -0
- package/config/private-label.js +14 -11
- package/config/product/auth.js +17 -7
- package/config/product/explorer.js +32 -10
- package/config/product/manager.js +28 -17
- package/config/product/settings.js +19 -9
- package/config/product/uiplugins.js +13 -10
- package/config/router/navigation-guards/index.js +61 -3
- package/config/settings.ts +28 -0
- package/config/table-headers.js +3 -2
- package/detail/node.vue +28 -23
- package/dialog/AddCustomBadgeDialog.vue +17 -9
- package/dialog/ForceMachineRemoveDialog.vue +2 -2
- package/dialog/RollbackWorkloadDialog.vue +1 -1
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/configmap.vue +4 -0
- package/edit/logging-flow/index.vue +1 -2
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +8 -8
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +17 -17
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +7 -7
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +13 -13
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +54 -54
- package/edit/management.cattle.io.user.vue +17 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +50 -26
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/dingding.vue +32 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/message.vue +52 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/snmp.vue +45 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/work.vue +31 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
- package/edit/namespace.vue +1 -2
- package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
- package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/persistentvolume/index.vue +3 -1
- package/edit/persistentvolumeclaim.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
- package/edit/secret/index.vue +2 -2
- package/edit/service.vue +4 -1
- package/edit/storage.k8s.io.storageclass/index.vue +10 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
- package/edit/token.vue +31 -12
- package/edit/workload/Job.vue +31 -34
- package/edit/workload/Upgrading.vue +5 -5
- package/edit/workload/index.vue +22 -18
- package/edit/workload/storage/Mount.vue +1 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
- package/edit/workload/storage/azureDisk.vue +14 -10
- package/edit/workload/storage/azureFile.vue +9 -7
- package/edit/workload/storage/csi/index.vue +6 -9
- package/edit/workload/storage/emptyDir.vue +7 -5
- package/edit/workload/storage/gcePersistentDisk.vue +9 -7
- package/edit/workload/storage/hostPath.vue +7 -5
- package/edit/workload/storage/nfs.vue +8 -6
- package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
- package/edit/workload/storage/secret.vue +9 -6
- package/edit/workload/storage/vsphereVolume.vue +11 -7
- package/initialize/app-extended.js +7 -1
- package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
- package/list/management.cattle.io.setting.vue +22 -13
- package/list/management.cattle.io.user.vue +7 -3
- package/list/namespace.vue +3 -0
- package/list/provisioning.cattle.io.cluster.vue +6 -7
- package/mixins/brand.js +17 -0
- package/mixins/create-edit-view/impl.js +10 -0
- package/models/provisioning.cattle.io.cluster.js +19 -18
- package/models/workload.js +2 -2
- package/package.json +1 -1
- package/pages/account/index.vue +93 -58
- package/pages/account/pri.vue +229 -0
- package/pages/auth/login.vue +216 -51
- package/pages/auth/setup.vue +175 -33
- package/pages/c/_cluster/_product/namespaces.vue +5 -5
- package/pages/c/_cluster/auth/roles/index.vue +83 -8
- package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
- package/pages/c/_cluster/explorer/index.vue +2 -1
- package/pages/c/_cluster/explorer/tools/index.vue +6 -6
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/settings/banners.vue +174 -102
- package/pages/c/_cluster/settings/brand.vue +350 -302
- package/pages/c/_cluster/settings/performance.vue +61 -38
- package/pages/home.vue +119 -37
- package/pages/prefs.vue +27 -25
- package/pkg/tsconfig.json +9 -9
- package/pkg/vue.config.js +1 -1
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/resource-class.js +28 -27
- package/promptRemove/mixin/roleDeletionCheck.js +2 -2
- package/public/index.html +4 -4
- package/rancher-components/BadgeState/BadgeState.vue +38 -55
- package/rancher-components/Banner/Banner.vue +25 -9
- package/rancher-components/Card/Card.vue +7 -8
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +42 -3
- package/rancher-components/Form/Radio/RadioButton.vue +35 -11
- package/rancher-components/Form/Radio/RadioGroup.vue +22 -6
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +41 -4
- package/rancher-components/RcDropdown/RcDropdown.vue +35 -7
- package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +12 -6
- package/rancher-components/RcDropdown/types.ts +1 -0
- package/rancher-components/StringList/StringList.vue +1 -1
- package/scripts/build-pkg.sh +18 -23
- package/scripts/publish-shell.sh +1 -1
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +3 -3
- package/store/i18n.js +6 -2
- package/store/modal.ts +3 -3
- package/store/prefs.js +11 -4
- package/store/type-map.js +30 -2
- package/types/shell/index.d.ts +86 -97
- package/utils/error.js +109 -8
- package/utils/errorTranslate.json +1740 -0
- package/utils/errorTranslateNew.json +39 -0
- package/utils/roleFiltering.js +33 -0
- package/utils/router.js +21 -0
- package/utils/select.js +26 -3
- package/utils/string.js +8 -5
- package/utils/title.ts +1 -1
- package/vue.config.js +1 -1
|
@@ -284,128 +284,141 @@ export default {
|
|
|
284
284
|
|
|
285
285
|
<template>
|
|
286
286
|
<div class="var-row">
|
|
287
|
-
<div class="
|
|
288
|
-
<
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
/>
|
|
299
|
-
</div>
|
|
300
|
-
|
|
301
|
-
<div
|
|
302
|
-
v-if="!hideVariableName"
|
|
303
|
-
class="name"
|
|
304
|
-
>
|
|
305
|
-
<LabeledInput
|
|
306
|
-
v-model:value="name"
|
|
307
|
-
:label="nameLabel"
|
|
308
|
-
:placeholder="t('workload.container.command.fromResource.name.placeholder')"
|
|
309
|
-
:mode="mode"
|
|
310
|
-
@update:value="updateRow"
|
|
311
|
-
/>
|
|
312
|
-
</div>
|
|
313
|
-
|
|
314
|
-
<div
|
|
315
|
-
v-if="type==='simple'"
|
|
316
|
-
class="single-value"
|
|
317
|
-
>
|
|
318
|
-
<LabeledInput
|
|
319
|
-
v-model:value="valStr"
|
|
320
|
-
:label="t('workload.container.command.fromResource.value.label')"
|
|
321
|
-
:placeholder="t('workload.container.command.fromResource.value.placeholder')"
|
|
322
|
-
:mode="mode"
|
|
323
|
-
@update:value="updateRow"
|
|
324
|
-
/>
|
|
287
|
+
<div class="row">
|
|
288
|
+
<div class="remove">
|
|
289
|
+
<button
|
|
290
|
+
v-if="!isView"
|
|
291
|
+
type="button"
|
|
292
|
+
class="btn role-link"
|
|
293
|
+
@click.stop="$emit('remove')"
|
|
294
|
+
>
|
|
295
|
+
{{ t('generic.remove') }}
|
|
296
|
+
</button>
|
|
297
|
+
</div>
|
|
325
298
|
</div>
|
|
326
299
|
|
|
327
|
-
<
|
|
328
|
-
<div
|
|
300
|
+
<div class="row">
|
|
301
|
+
<div class="type span-6 col">
|
|
329
302
|
<LabeledSelect
|
|
330
|
-
v-model:value="
|
|
331
|
-
:options="sourceOptions"
|
|
332
|
-
:multiple="false"
|
|
333
|
-
:get-option-label="opt=>get(opt, 'metadata.name') || opt"
|
|
334
|
-
:get-option-key="opt=>opt.id|| opt"
|
|
303
|
+
v-model:value="type"
|
|
335
304
|
:mode="mode"
|
|
336
|
-
:label="sourceLabel"
|
|
337
|
-
:loading="loading"
|
|
338
|
-
/>
|
|
339
|
-
</div>
|
|
340
|
-
<div v-if="type!=='secretRef' && type!== 'configMapRef'">
|
|
341
|
-
<LabeledSelect
|
|
342
|
-
v-model:value="key"
|
|
343
305
|
:multiple="false"
|
|
344
|
-
:options="
|
|
345
|
-
:mode="mode"
|
|
306
|
+
:options="options"
|
|
346
307
|
option-label="label"
|
|
347
|
-
:
|
|
348
|
-
:
|
|
308
|
+
:searchable="false"
|
|
309
|
+
:reduce="e=>e.value"
|
|
310
|
+
:label="t('workload.container.command.fromResource.type')"
|
|
349
311
|
@update:value="updateRow"
|
|
350
312
|
/>
|
|
351
313
|
</div>
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
314
|
+
|
|
315
|
+
<div
|
|
316
|
+
v-if="!hideVariableName"
|
|
317
|
+
class="name span-6 col"
|
|
318
|
+
>
|
|
356
319
|
<LabeledInput
|
|
357
|
-
v-model:value="
|
|
358
|
-
:label="
|
|
359
|
-
:placeholder="t('workload.container.command.fromResource.
|
|
320
|
+
v-model:value="name"
|
|
321
|
+
:label="nameLabel"
|
|
322
|
+
:placeholder="t('workload.container.command.fromResource.name.placeholder')"
|
|
360
323
|
:mode="mode"
|
|
361
324
|
@update:value="updateRow"
|
|
362
325
|
/>
|
|
363
326
|
</div>
|
|
364
|
-
|
|
365
|
-
<LabeledSelect
|
|
366
|
-
v-model:value="key"
|
|
367
|
-
:label="t('workload.container.command.fromResource.key.label')"
|
|
368
|
-
:multiple="false"
|
|
369
|
-
:options="resourceKeyOpts"
|
|
370
|
-
:mode="mode"
|
|
371
|
-
:searchable="false"
|
|
372
|
-
:placeholder="t('workload.container.command.fromResource.key.placeholder', null, true)"
|
|
373
|
-
@update:value="updateRow"
|
|
374
|
-
/>
|
|
375
|
-
</div>
|
|
376
|
-
</template>
|
|
327
|
+
</div>
|
|
377
328
|
|
|
378
|
-
<
|
|
379
|
-
<div
|
|
329
|
+
<div class="row">
|
|
330
|
+
<div
|
|
331
|
+
v-if="type==='simple'"
|
|
332
|
+
class="single-value span-6 col"
|
|
333
|
+
>
|
|
380
334
|
<LabeledInput
|
|
381
|
-
v-model:value="
|
|
382
|
-
:
|
|
383
|
-
:
|
|
335
|
+
v-model:value="valStr"
|
|
336
|
+
:label="t('workload.container.command.fromResource.value.label')"
|
|
337
|
+
:placeholder="t('workload.container.command.fromResource.value.placeholder')"
|
|
384
338
|
:mode="mode"
|
|
385
339
|
@update:value="updateRow"
|
|
386
340
|
/>
|
|
387
341
|
</div>
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
342
|
+
|
|
343
|
+
<template v-else-if="needsSource">
|
|
344
|
+
<div
|
|
345
|
+
:class="{'single-value': type === 'configMapRef' || type === 'secretRef'}"
|
|
346
|
+
class="span-6 col"
|
|
347
|
+
>
|
|
348
|
+
<LabeledSelect
|
|
349
|
+
v-model:value="referenced"
|
|
350
|
+
:options="sourceOptions"
|
|
351
|
+
:multiple="false"
|
|
352
|
+
:get-option-label="opt=>get(opt, 'metadata.name') || opt"
|
|
353
|
+
:get-option-key="opt=>opt.id|| opt"
|
|
354
|
+
:mode="mode"
|
|
355
|
+
:label="sourceLabel"
|
|
356
|
+
:loading="loading"
|
|
357
|
+
/>
|
|
358
|
+
</div>
|
|
359
|
+
<div
|
|
360
|
+
v-if="type!=='secretRef' && type!== 'configMapRef'"
|
|
361
|
+
class="span-6 col"
|
|
362
|
+
>
|
|
363
|
+
<LabeledSelect
|
|
364
|
+
v-model:value="key"
|
|
365
|
+
:multiple="false"
|
|
366
|
+
:options="keys"
|
|
367
|
+
:mode="mode"
|
|
368
|
+
option-label="label"
|
|
369
|
+
:label="t('workload.container.command.fromResource.key.label')"
|
|
370
|
+
:loading="loading"
|
|
371
|
+
@update:value="updateRow"
|
|
372
|
+
/>
|
|
373
|
+
</div>
|
|
374
|
+
</template>
|
|
375
|
+
|
|
376
|
+
<template v-else-if="type==='resourceFieldRef'">
|
|
377
|
+
<div class="span-6 col">
|
|
378
|
+
<LabeledInput
|
|
379
|
+
v-model:value="refName"
|
|
380
|
+
:label="t('workload.container.command.fromResource.containerName')"
|
|
381
|
+
:placeholder="t('workload.container.command.fromResource.source.placeholder')"
|
|
382
|
+
:mode="mode"
|
|
383
|
+
@update:value="updateRow"
|
|
384
|
+
/>
|
|
385
|
+
</div>
|
|
386
|
+
<div class="span-6 col">
|
|
387
|
+
<LabeledSelect
|
|
388
|
+
v-model:value="key"
|
|
389
|
+
:label="t('workload.container.command.fromResource.key.label')"
|
|
390
|
+
:multiple="false"
|
|
391
|
+
:options="resourceKeyOpts"
|
|
392
|
+
:mode="mode"
|
|
393
|
+
:searchable="false"
|
|
394
|
+
:placeholder="t('workload.container.command.fromResource.key.placeholder', null, true)"
|
|
395
|
+
@update:value="updateRow"
|
|
396
|
+
/>
|
|
397
|
+
</div>
|
|
398
|
+
</template>
|
|
399
|
+
|
|
400
|
+
<template v-else>
|
|
401
|
+
<div class="single-value span-6 col">
|
|
402
|
+
<LabeledInput
|
|
403
|
+
v-model:value="fieldPath"
|
|
404
|
+
:placeholder="t('workload.container.command.fromResource.key.placeholder', null, true)"
|
|
405
|
+
:label="t('workload.container.command.fromResource.key.label')"
|
|
406
|
+
:mode="mode"
|
|
407
|
+
@update:value="updateRow"
|
|
408
|
+
/>
|
|
409
|
+
</div>
|
|
410
|
+
</template>
|
|
398
411
|
</div>
|
|
399
412
|
</div>
|
|
400
413
|
</template>
|
|
401
414
|
|
|
402
415
|
<style lang='scss' scoped>
|
|
403
416
|
.var-row{
|
|
404
|
-
display: grid;
|
|
405
|
-
grid-template-columns: 1fr 1fr 1fr 1fr 100px;
|
|
406
|
-
grid-column-gap: 20px;
|
|
407
|
-
margin-bottom: 10px;
|
|
408
|
-
align-items: center;
|
|
417
|
+
// display: grid;
|
|
418
|
+
// grid-template-columns: 1fr 1fr 1fr 1fr 100px;
|
|
419
|
+
// grid-column-gap: 20px;
|
|
420
|
+
// margin-bottom: 10px;
|
|
421
|
+
// align-items: center;
|
|
409
422
|
|
|
410
423
|
.single-value {
|
|
411
424
|
grid-column: span 2;
|
|
@@ -413,6 +426,7 @@ export default {
|
|
|
413
426
|
|
|
414
427
|
.remove BUTTON {
|
|
415
428
|
padding: 0px;
|
|
429
|
+
min-width: auto;
|
|
416
430
|
}
|
|
417
431
|
}
|
|
418
432
|
|
|
@@ -280,145 +280,163 @@ export default {
|
|
|
280
280
|
'show-ipam': showIpam,
|
|
281
281
|
}"
|
|
282
282
|
>
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
v-model:value="row.name"
|
|
299
|
-
:mode="mode"
|
|
300
|
-
:label="t('workload.container.ports.name')"
|
|
301
|
-
@update:value="queueUpdate"
|
|
302
|
-
/>
|
|
303
|
-
</div>
|
|
283
|
+
|
|
284
|
+
<div class="row mt-20">
|
|
285
|
+
<div
|
|
286
|
+
v-if="!row._showHost && row._serviceType !== 'LoadBalancer' && row._serviceType !== 'NodePort'"
|
|
287
|
+
class="add-host col"
|
|
288
|
+
>
|
|
289
|
+
<button
|
|
290
|
+
:disabled="mode==='view'"
|
|
291
|
+
type="button"
|
|
292
|
+
class="btn btn-sm role-tertiary"
|
|
293
|
+
@click="row._showHost = true"
|
|
294
|
+
>
|
|
295
|
+
{{ t('workloadPorts.addHost') }}
|
|
296
|
+
</button>
|
|
297
|
+
</div>
|
|
304
298
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
</div>
|
|
299
|
+
<div
|
|
300
|
+
v-if="showRemove"
|
|
301
|
+
class="remove"
|
|
302
|
+
>
|
|
303
|
+
<button
|
|
304
|
+
type="button"
|
|
305
|
+
class="btn role-link"
|
|
306
|
+
@click="remove(idx)"
|
|
307
|
+
>
|
|
308
|
+
{{ t('workloadPorts.remove') }}
|
|
309
|
+
</button>
|
|
310
|
+
</div>
|
|
318
311
|
|
|
319
|
-
<div class="protocol col">
|
|
320
|
-
<LabeledSelect
|
|
321
|
-
v-model:value="row.protocol"
|
|
322
|
-
:mode="mode"
|
|
323
|
-
:options="workloadPortOptions"
|
|
324
|
-
:multiple="false"
|
|
325
|
-
:label="t('workload.container.ports.protocol')"
|
|
326
|
-
@update:value="queueUpdate"
|
|
327
|
-
/>
|
|
328
312
|
</div>
|
|
329
313
|
|
|
330
|
-
<div
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
314
|
+
<div class="row">
|
|
315
|
+
<div class="service-type col span-6">
|
|
316
|
+
<LabeledSelect
|
|
317
|
+
v-model:value="row._serviceType"
|
|
318
|
+
:mode="mode"
|
|
319
|
+
:label="t('workload.container.ports.createService')"
|
|
320
|
+
:options="serviceTypes"
|
|
321
|
+
:disabled="canNotAccessService"
|
|
322
|
+
:tooltip="serviceTypeTooltip"
|
|
323
|
+
@update:value="queueUpdate"
|
|
324
|
+
/>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<div class="portName col span-6">
|
|
328
|
+
<LabeledInput
|
|
329
|
+
ref="name"
|
|
330
|
+
v-model:value="row.name"
|
|
331
|
+
:mode="mode"
|
|
332
|
+
:label="t('workload.container.ports.name')"
|
|
333
|
+
@update:value="queueUpdate"
|
|
334
|
+
/>
|
|
335
|
+
</div>
|
|
345
336
|
</div>
|
|
346
337
|
|
|
347
|
-
<div
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
338
|
+
<div class="row">
|
|
339
|
+
<div class="port col span-6">
|
|
340
|
+
<LabeledInput
|
|
341
|
+
v-model:value.number="row.containerPort"
|
|
342
|
+
:mode="mode"
|
|
343
|
+
type="number"
|
|
344
|
+
min="1"
|
|
345
|
+
max="65535"
|
|
346
|
+
placeholder="e.g. 8080"
|
|
347
|
+
:label="t('workload.container.ports.containerPort')"
|
|
348
|
+
:required="row._serviceType === 'LoadBalancer' "
|
|
349
|
+
@update:value="queueUpdate"
|
|
350
|
+
/>
|
|
351
|
+
</div>
|
|
352
|
+
|
|
353
|
+
<div class="protocol col span-6">
|
|
354
|
+
<LabeledSelect
|
|
355
|
+
v-model:value="row.protocol"
|
|
356
|
+
:mode="mode"
|
|
357
|
+
:options="workloadPortOptions"
|
|
358
|
+
:multiple="false"
|
|
359
|
+
:label="t('workload.container.ports.protocol')"
|
|
360
|
+
@update:value="queueUpdate"
|
|
361
|
+
/>
|
|
362
|
+
</div>
|
|
359
363
|
</div>
|
|
360
364
|
|
|
361
|
-
<div
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
<button
|
|
366
|
-
:disabled="mode==='view'"
|
|
367
|
-
type="button"
|
|
368
|
-
class="btn btn-sm role-tertiary"
|
|
369
|
-
@click="row._showHost = true"
|
|
365
|
+
<div class="row">
|
|
366
|
+
<div
|
|
367
|
+
v-if="row._showHost"
|
|
368
|
+
class="targetPort col span-6"
|
|
370
369
|
>
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
<div v-if="row._serviceType === 'LoadBalancer' || row._serviceType === 'NodePort'">
|
|
376
|
-
<LabeledInput
|
|
377
|
-
ref="port"
|
|
378
|
-
v-model:value.number="row._listeningPort"
|
|
379
|
-
type="number"
|
|
380
|
-
:mode="mode"
|
|
381
|
-
:label="t('workload.container.ports.listeningPort')"
|
|
382
|
-
:required="row._serviceType === 'LoadBalancer' "
|
|
383
|
-
@update:value="queueUpdate"
|
|
384
|
-
/>
|
|
385
|
-
</div>
|
|
386
|
-
|
|
387
|
-
<div v-if="showIpam && row._serviceType === 'LoadBalancer' && row.protocol === 'TCP'">
|
|
388
|
-
<div v-if="idx === ipamIndex">
|
|
389
|
-
<LabeledSelect
|
|
390
|
-
v-model:value="row._ipam"
|
|
370
|
+
<LabeledInput
|
|
371
|
+
ref="port"
|
|
372
|
+
v-model:value.number="row.hostPort"
|
|
391
373
|
:mode="mode"
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
374
|
+
type="number"
|
|
375
|
+
min="1"
|
|
376
|
+
max="65535"
|
|
377
|
+
placeholder="e.g. 80"
|
|
378
|
+
:label="t('workload.container.ports.hostPort')"
|
|
395
379
|
@update:value="queueUpdate"
|
|
396
380
|
/>
|
|
397
381
|
</div>
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
382
|
+
|
|
383
|
+
<div
|
|
384
|
+
v-if="row._showHost"
|
|
385
|
+
class="hostip col span-6"
|
|
386
|
+
>
|
|
387
|
+
<LabeledInput
|
|
388
|
+
ref="port"
|
|
389
|
+
v-model:value="row.hostIP"
|
|
401
390
|
:mode="mode"
|
|
402
|
-
|
|
403
|
-
:label="t('
|
|
404
|
-
:disabled="true"
|
|
391
|
+
placeholder="e.g. 1.1.1.1"
|
|
392
|
+
:label="t('workload.container.ports.hostIP')"
|
|
405
393
|
@update:value="queueUpdate"
|
|
406
394
|
/>
|
|
407
395
|
</div>
|
|
408
396
|
</div>
|
|
409
397
|
|
|
410
|
-
<div
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
<button
|
|
415
|
-
type="button"
|
|
416
|
-
class="btn role-link"
|
|
417
|
-
@click="remove(idx)"
|
|
398
|
+
<div class="row">
|
|
399
|
+
<div
|
|
400
|
+
v-if="row._serviceType === 'LoadBalancer' || row._serviceType === 'NodePort'"
|
|
401
|
+
class="col"
|
|
418
402
|
>
|
|
419
|
-
|
|
420
|
-
|
|
403
|
+
<LabeledInput
|
|
404
|
+
ref="port"
|
|
405
|
+
v-model:value.number="row._listeningPort"
|
|
406
|
+
type="number"
|
|
407
|
+
:mode="mode"
|
|
408
|
+
:label="t('workload.container.ports.listeningPort')"
|
|
409
|
+
:required="row._serviceType === 'LoadBalancer' "
|
|
410
|
+
@update:value="queueUpdate"
|
|
411
|
+
/>
|
|
412
|
+
</div>
|
|
421
413
|
</div>
|
|
414
|
+
|
|
415
|
+
<div class="row">
|
|
416
|
+
<div v-if="showIpam && row._serviceType === 'LoadBalancer' && row.protocol === 'TCP'">
|
|
417
|
+
<div v-if="idx === ipamIndex">
|
|
418
|
+
<LabeledSelect
|
|
419
|
+
v-model:value="row._ipam"
|
|
420
|
+
:mode="mode"
|
|
421
|
+
:options="ipamOptions"
|
|
422
|
+
:label="t('servicesPage.harvester.ipam.label')"
|
|
423
|
+
:disabled="mode === 'edit'"
|
|
424
|
+
@update:value="queueUpdate"
|
|
425
|
+
/>
|
|
426
|
+
</div>
|
|
427
|
+
<div v-else>
|
|
428
|
+
<LabeledSelect
|
|
429
|
+
v-model:value="rows[ipamIndex]._ipam"
|
|
430
|
+
:mode="mode"
|
|
431
|
+
:options="ipamOptions"
|
|
432
|
+
:label="t('servicesPage.harvester.ipam.label')"
|
|
433
|
+
:disabled="true"
|
|
434
|
+
@update:value="queueUpdate"
|
|
435
|
+
/>
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
|
|
422
440
|
</div>
|
|
423
441
|
<div
|
|
424
442
|
v-if="showAdd"
|
|
@@ -447,11 +465,11 @@ $checkbox: 75;
|
|
|
447
465
|
}
|
|
448
466
|
}
|
|
449
467
|
.ports-headers, .ports-row{
|
|
450
|
-
display: grid;
|
|
451
|
-
grid-template-columns: 28% 28% 15% 10% 75px 0.5fr;
|
|
452
|
-
grid-column-gap: $column-gutter;
|
|
453
|
-
margin-bottom:
|
|
454
|
-
align-items: center;
|
|
468
|
+
// display: grid;
|
|
469
|
+
// grid-template-columns: 28% 28% 15% 10% 75px 0.5fr;
|
|
470
|
+
// grid-column-gap: $column-gutter;
|
|
471
|
+
// margin-bottom: 20px;
|
|
472
|
+
// align-items: center;
|
|
455
473
|
& .port{
|
|
456
474
|
display: flex;
|
|
457
475
|
justify-content: space-between;
|
|
@@ -475,6 +493,7 @@ $checkbox: 75;
|
|
|
475
493
|
}
|
|
476
494
|
|
|
477
495
|
.add-host {
|
|
496
|
+
margin-right: 20px;
|
|
478
497
|
justify-self: center;
|
|
479
498
|
}
|
|
480
499
|
|
|
@@ -492,6 +511,7 @@ $checkbox: 75;
|
|
|
492
511
|
|
|
493
512
|
.remove BUTTON {
|
|
494
513
|
padding: 0px;
|
|
514
|
+
min-width: auto;
|
|
495
515
|
}
|
|
496
516
|
|
|
497
517
|
.ports-row INPUT {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { BadgeState } from '@components/BadgeState';
|
|
3
|
+
import DotState from '@shell/components/DotState'
|
|
3
4
|
import { colorForState, stateDisplay } from '@shell/plugins/dashboard-store/resource-class';
|
|
4
5
|
export default {
|
|
5
|
-
components: { BadgeState },
|
|
6
|
+
components: { BadgeState, DotState },
|
|
6
7
|
props: {
|
|
7
8
|
value: {
|
|
8
9
|
type: String,
|
|
@@ -49,15 +50,17 @@ export default {
|
|
|
49
50
|
<template>
|
|
50
51
|
<div>
|
|
51
52
|
<div v-if="arbitrary">
|
|
52
|
-
<BadgeState
|
|
53
|
+
<!-- <BadgeState
|
|
53
54
|
v-if="value"
|
|
54
55
|
:color="stateBackground"
|
|
55
56
|
:label="stateDisplay"
|
|
56
|
-
/>
|
|
57
|
+
/> -->
|
|
58
|
+
<DotState v-if="value" :color="stateBackground" :label="stateDisplay" />
|
|
57
59
|
</div>
|
|
58
|
-
<BadgeState
|
|
60
|
+
<!-- <BadgeState
|
|
59
61
|
v-else
|
|
60
62
|
:value="row"
|
|
61
|
-
/>
|
|
63
|
+
/> -->
|
|
64
|
+
<DotState v-else :value="row" />
|
|
62
65
|
</div>
|
|
63
66
|
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import day from 'dayjs';
|
|
3
|
+
import 'dayjs/locale/zh-cn';
|
|
3
4
|
import { DATE_FORMAT, TIME_FORMAT } from '@shell/store/prefs';
|
|
4
5
|
import { escapeHtml } from '@shell/utils/string';
|
|
5
6
|
import { diffFrom } from '@shell/utils/time';
|
|
@@ -65,8 +66,7 @@ export default {
|
|
|
65
66
|
const dateFormat = escapeHtml( this.$store.getters['prefs/get'](DATE_FORMAT));
|
|
66
67
|
const timeFormat = escapeHtml( this.$store.getters['prefs/get'](TIME_FORMAT));
|
|
67
68
|
|
|
68
|
-
const out = day(this.value).format(
|
|
69
|
-
|
|
69
|
+
const out = day(this.value).locale('zh-cn').format('YYYY年M月D日 Ah:mm:ss');
|
|
70
70
|
return out;
|
|
71
71
|
},
|
|
72
72
|
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
126
126
|
let label = diff.label;
|
|
127
127
|
|
|
128
128
|
if ( diff.diff === 0 ) {
|
|
129
|
-
label = '
|
|
129
|
+
label = '刚刚';
|
|
130
130
|
} else {
|
|
131
131
|
label += ` ${ prefix }${ this.t(diff.unitsKey, { count: diff.label }) }`;
|
|
132
132
|
label = label.trim();
|
|
@@ -204,6 +204,7 @@ export default {
|
|
|
204
204
|
<div
|
|
205
205
|
:id="id"
|
|
206
206
|
class="hs-popover__content"
|
|
207
|
+
style="width: auto;padding-right: 10px;"
|
|
207
208
|
:class="{expanded, [id]:true}"
|
|
208
209
|
>
|
|
209
210
|
<div>
|
|
@@ -212,14 +213,14 @@ export default {
|
|
|
212
213
|
:key="i"
|
|
213
214
|
class="counts"
|
|
214
215
|
>
|
|
215
|
-
<span class="counts-label">{{ obj.label }}</span>
|
|
216
|
-
<span>{{ obj.value }}</span>
|
|
216
|
+
<span class="counts-label" style="white-space: normal;">{{ obj.label }}</span>
|
|
217
|
+
<span style="white-space: normal;">{{ obj.value }}</span>
|
|
217
218
|
</div>
|
|
218
219
|
<div
|
|
219
220
|
v-if="canScale"
|
|
220
221
|
class="text-center scale"
|
|
221
222
|
>
|
|
222
|
-
<span>{{ t('tableHeaders.scale') }} </span>
|
|
223
|
+
<span style="white-space: nowrap;margin-right: 5px;">{{ t('tableHeaders.scale') }} </span>
|
|
223
224
|
<PlusMinus
|
|
224
225
|
:value="row.spec.replicas"
|
|
225
226
|
:disabled="disabled"
|
|
@@ -44,9 +44,13 @@ export default {
|
|
|
44
44
|
|
|
45
45
|
<style lang="scss" scoped>
|
|
46
46
|
.favorite {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
47
49
|
position: relative;
|
|
48
50
|
cursor: pointer;
|
|
49
|
-
font-size:
|
|
51
|
+
font-size: 22px;
|
|
52
|
+
margin-top: 4px;
|
|
53
|
+
margin-left: 10px;
|
|
50
54
|
transform: ease-in-out-all 1s;
|
|
51
55
|
|
|
52
56
|
&.icon-star-open {
|