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
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
<template>
|
|
126
126
|
<div>
|
|
127
127
|
<div v-if="rows.length">
|
|
128
|
-
<div
|
|
128
|
+
<!-- <div
|
|
129
129
|
class="ports-headers"
|
|
130
130
|
:class="{'show-protocol':showProtocol, 'show-node-port':showNodePort}"
|
|
131
131
|
>
|
|
@@ -169,77 +169,13 @@ export default {
|
|
|
169
169
|
v-if="showRemove"
|
|
170
170
|
class="remove"
|
|
171
171
|
/>
|
|
172
|
-
</div>
|
|
172
|
+
</div> -->
|
|
173
173
|
<div
|
|
174
174
|
v-for="(row, idx) in rows"
|
|
175
175
|
:key="idx"
|
|
176
176
|
class="ports-row"
|
|
177
177
|
:class="{'show-protocol':showProtocol, 'show-node-port':showNodePort}"
|
|
178
178
|
>
|
|
179
|
-
<div
|
|
180
|
-
v-if="padLeft"
|
|
181
|
-
class="left"
|
|
182
|
-
/>
|
|
183
|
-
<div class="port-name">
|
|
184
|
-
<span v-if="isView">{{ row.name }}</span>
|
|
185
|
-
<input
|
|
186
|
-
v-else
|
|
187
|
-
ref="port-name"
|
|
188
|
-
v-model.number="row.name"
|
|
189
|
-
type="text"
|
|
190
|
-
:placeholder="t('servicePorts.rules.name.placeholder')"
|
|
191
|
-
@input="queueUpdate"
|
|
192
|
-
>
|
|
193
|
-
</div>
|
|
194
|
-
<div class="port">
|
|
195
|
-
<span v-if="isView">{{ row.port }}</span>
|
|
196
|
-
<input
|
|
197
|
-
v-else
|
|
198
|
-
ref="port"
|
|
199
|
-
v-model.number="row.port"
|
|
200
|
-
type="number"
|
|
201
|
-
min="1"
|
|
202
|
-
max="65535"
|
|
203
|
-
:placeholder="t('servicePorts.rules.listening.placeholder')"
|
|
204
|
-
@input="queueUpdate"
|
|
205
|
-
>
|
|
206
|
-
</div>
|
|
207
|
-
<div
|
|
208
|
-
v-if="showProtocol"
|
|
209
|
-
class="port-protocol"
|
|
210
|
-
>
|
|
211
|
-
<span v-if="isView">{{ row.protocol }}</span>
|
|
212
|
-
<Select
|
|
213
|
-
v-else
|
|
214
|
-
v-model:value="row.protocol"
|
|
215
|
-
:options="protocolOptions"
|
|
216
|
-
@update:value="queueUpdate"
|
|
217
|
-
/>
|
|
218
|
-
</div>
|
|
219
|
-
<div class="target-port">
|
|
220
|
-
<span v-if="isView">{{ row.targetPort }}</span>
|
|
221
|
-
<input
|
|
222
|
-
v-else
|
|
223
|
-
v-model="row.targetPort"
|
|
224
|
-
:placeholder="t('servicePorts.rules.target.placeholder')"
|
|
225
|
-
@input="queueUpdate"
|
|
226
|
-
>
|
|
227
|
-
</div>
|
|
228
|
-
<div
|
|
229
|
-
v-if="showNodePort"
|
|
230
|
-
class="node-port"
|
|
231
|
-
>
|
|
232
|
-
<span v-if="isView">{{ row.nodePort }}</span>
|
|
233
|
-
<input
|
|
234
|
-
v-else
|
|
235
|
-
v-model.number="row.nodePort"
|
|
236
|
-
type="number"
|
|
237
|
-
min="1"
|
|
238
|
-
max="65535"
|
|
239
|
-
:placeholder="t('servicePorts.rules.node.placeholder')"
|
|
240
|
-
@input="queueUpdate"
|
|
241
|
-
>
|
|
242
|
-
</div>
|
|
243
179
|
<div
|
|
244
180
|
v-if="showRemove"
|
|
245
181
|
class="remove"
|
|
@@ -252,7 +188,106 @@ export default {
|
|
|
252
188
|
<t k="generic.remove" />
|
|
253
189
|
</button>
|
|
254
190
|
</div>
|
|
191
|
+
<div class="flex">
|
|
192
|
+
<span class="port-name">
|
|
193
|
+
<t k="servicePorts.rules.name.label" />
|
|
194
|
+
</span>
|
|
195
|
+
<div class="port-name">
|
|
196
|
+
<span v-if="isView">{{ row.name }}</span>
|
|
197
|
+
<input
|
|
198
|
+
v-else
|
|
199
|
+
ref="port-name"
|
|
200
|
+
v-model.number="row.name"
|
|
201
|
+
type="text"
|
|
202
|
+
:placeholder="t('servicePorts.rules.name.placeholder')"
|
|
203
|
+
@input="queueUpdate"
|
|
204
|
+
>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="flex">
|
|
208
|
+
<span class="port">
|
|
209
|
+
<t k="servicePorts.rules.listening.label" />
|
|
210
|
+
<i
|
|
211
|
+
v-clean-tooltip="t('servicesPage.listeningPorts')"
|
|
212
|
+
class="icon icon-info flex"
|
|
213
|
+
/>
|
|
214
|
+
<span class="text-error">*</span>
|
|
215
|
+
</span>
|
|
216
|
+
<div class="port">
|
|
217
|
+
<span v-if="isView">{{ row.port }}</span>
|
|
218
|
+
<input
|
|
219
|
+
v-else
|
|
220
|
+
ref="port"
|
|
221
|
+
v-model.number="row.port"
|
|
222
|
+
type="number"
|
|
223
|
+
min="1"
|
|
224
|
+
max="65535"
|
|
225
|
+
:placeholder="t('servicePorts.rules.listening.placeholder')"
|
|
226
|
+
@input="queueUpdate"
|
|
227
|
+
>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
<div class="flex" v-if="showProtocol">
|
|
231
|
+
<span
|
|
232
|
+
class="port-protocol"
|
|
233
|
+
>
|
|
234
|
+
<t k="servicePorts.rules.protocol.label" />
|
|
235
|
+
</span>
|
|
236
|
+
<div
|
|
237
|
+
class="port-protocol"
|
|
238
|
+
>
|
|
239
|
+
<span v-if="isView">{{ row.protocol }}</span>
|
|
240
|
+
<Select
|
|
241
|
+
v-else
|
|
242
|
+
v-model:value="row.protocol"
|
|
243
|
+
:options="protocolOptions"
|
|
244
|
+
@update:value="queueUpdate"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="flex">
|
|
249
|
+
<span class="target-port">
|
|
250
|
+
<t k="servicePorts.rules.target.label" />
|
|
251
|
+
<i
|
|
252
|
+
v-clean-tooltip="t('servicesPage.targetPorts')"
|
|
253
|
+
class="icon icon-info flex"
|
|
254
|
+
/>
|
|
255
|
+
<span class="text-error">*</span>
|
|
256
|
+
|
|
257
|
+
</span>
|
|
258
|
+
<div class="target-port">
|
|
259
|
+
<span v-if="isView">{{ row.targetPort }}</span>
|
|
260
|
+
<input
|
|
261
|
+
v-else
|
|
262
|
+
v-model="row.targetPort"
|
|
263
|
+
:placeholder="t('servicePorts.rules.target.placeholder')"
|
|
264
|
+
@input="queueUpdate"
|
|
265
|
+
>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="flex" v-if="showNodePort">
|
|
269
|
+
<span
|
|
270
|
+
class="node-port"
|
|
271
|
+
>
|
|
272
|
+
<t k="servicePorts.rules.node.label" />
|
|
273
|
+
</span>
|
|
274
|
+
<div
|
|
275
|
+
class="node-port"
|
|
276
|
+
>
|
|
277
|
+
<span v-if="isView">{{ row.nodePort }}</span>
|
|
278
|
+
<input
|
|
279
|
+
v-else
|
|
280
|
+
v-model.number="row.nodePort"
|
|
281
|
+
type="number"
|
|
282
|
+
min="1"
|
|
283
|
+
max="65535"
|
|
284
|
+
:placeholder="t('servicePorts.rules.node.placeholder')"
|
|
285
|
+
@input="queueUpdate"
|
|
286
|
+
>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
255
289
|
<Error
|
|
290
|
+
style="margin-bottom: 24px;"
|
|
256
291
|
:value="{...row, idx}"
|
|
257
292
|
:rules="rules"
|
|
258
293
|
/>
|
|
@@ -286,22 +321,60 @@ export default {
|
|
|
286
321
|
}
|
|
287
322
|
|
|
288
323
|
.ports-headers, .ports-row{
|
|
289
|
-
display: grid;
|
|
290
|
-
grid-column-gap: $column-gutter;
|
|
291
|
-
margin-bottom: 10px;
|
|
324
|
+
// display: grid;
|
|
325
|
+
// grid-column-gap: $column-gutter;
|
|
326
|
+
// margin-bottom: 10px;
|
|
327
|
+
// align-items: center;
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
|
|
331
|
+
// &.show-protocol{
|
|
332
|
+
// grid-template-columns: 23% 23% 10% 15% 15% 10%;
|
|
333
|
+
// &:not(.show-node-port){
|
|
334
|
+
// grid-template-columns: 31% 31% 10% 15% 10%;
|
|
335
|
+
// }
|
|
336
|
+
// }
|
|
337
|
+
// &.show-node-port:not(.show-protocol){
|
|
338
|
+
// grid-template-columns: 28% 28% 15% 15% 10%;
|
|
339
|
+
// }
|
|
340
|
+
}
|
|
341
|
+
.flex{
|
|
342
|
+
display: flex;
|
|
292
343
|
align-items: center;
|
|
344
|
+
margin-bottom: 24px;
|
|
345
|
+
>span:nth-child(1){
|
|
346
|
+
min-width: 160px;
|
|
347
|
+
height: 32px;
|
|
348
|
+
display: flex;
|
|
349
|
+
align-items: center;
|
|
350
|
+
}
|
|
293
351
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
352
|
+
.port-name:not(span){
|
|
353
|
+
width: 400px;
|
|
354
|
+
|
|
355
|
+
}
|
|
356
|
+
.port:not(span){
|
|
357
|
+
width: 400px;
|
|
358
|
+
INPUT{
|
|
359
|
+
height: 32px;
|
|
360
|
+
padding-left: 11px;
|
|
298
361
|
}
|
|
299
362
|
}
|
|
300
|
-
|
|
301
|
-
|
|
363
|
+
.target-port:not(span){
|
|
364
|
+
width: 400px;
|
|
365
|
+
}
|
|
366
|
+
.node-port:not(span){
|
|
367
|
+
width: 400px;
|
|
368
|
+
INPUT{
|
|
369
|
+
height: 32px;
|
|
370
|
+
padding-left: 11px;
|
|
371
|
+
}
|
|
302
372
|
}
|
|
303
373
|
}
|
|
304
374
|
|
|
375
|
+
.flex:nth-last-child{
|
|
376
|
+
margin-bottom: 0px;
|
|
377
|
+
}
|
|
305
378
|
.ports-headers {
|
|
306
379
|
color: var(--input-label);
|
|
307
380
|
}
|
|
@@ -312,6 +385,7 @@ export default {
|
|
|
312
385
|
|
|
313
386
|
.remove BUTTON {
|
|
314
387
|
padding: 0px;
|
|
388
|
+
min-width: auto;
|
|
315
389
|
}
|
|
316
390
|
|
|
317
391
|
.ports-row {
|
|
@@ -24,13 +24,14 @@ import { _EDIT, _VIEW } from '@shell/config/query-params';
|
|
|
24
24
|
import { TYPES } from '@shell/models/secret';
|
|
25
25
|
import { LABEL_SELECT_KINDS } from '@shell/types/components/labeledSelect';
|
|
26
26
|
import { PaginationParamFilter } from '@shell/types/store/pagination.types';
|
|
27
|
+
import LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';
|
|
27
28
|
|
|
28
29
|
const NONE = '__[[NONE]]__';
|
|
29
30
|
|
|
30
31
|
export default {
|
|
31
32
|
emits: ['updateSecretName', 'updateSecretKey'],
|
|
32
33
|
|
|
33
|
-
components: { LabeledSelect, ResourceLabeledSelect },
|
|
34
|
+
components: { LabeledSelect, ResourceLabeledSelect, LabeledInput },
|
|
34
35
|
|
|
35
36
|
props: {
|
|
36
37
|
test: { type: String, default: '' },
|
|
@@ -199,10 +200,18 @@ export default {
|
|
|
199
200
|
|
|
200
201
|
<template>
|
|
201
202
|
<div class="secret-selector show-key-selector">
|
|
202
|
-
<div class="input-container">
|
|
203
|
-
<
|
|
203
|
+
<div class="input-container row">
|
|
204
|
+
<div class="col span-6">
|
|
205
|
+
<LabeledInput
|
|
206
|
+
v-model:value="name"
|
|
207
|
+
:mode="mode"
|
|
208
|
+
:label="secretNameLabel"
|
|
209
|
+
@update:value="$emit('updateSecretName', $event)"
|
|
210
|
+
:placeholder="'请输入'+secretNameLabel"
|
|
211
|
+
/>
|
|
212
|
+
<!-- <ResourceLabeledSelect
|
|
204
213
|
v-model:value="name"
|
|
205
|
-
|
|
214
|
+
|
|
206
215
|
:disabled="!isView && disabled"
|
|
207
216
|
:loading="$fetchState.pending"
|
|
208
217
|
:label="secretNameLabel"
|
|
@@ -211,16 +220,27 @@ export default {
|
|
|
211
220
|
:paginated-resource-settings="paginateSecretsSetting"
|
|
212
221
|
:all-resources-settings="allSecretsSettings"
|
|
213
222
|
@selecting="updateSecretName"
|
|
214
|
-
/>
|
|
215
|
-
|
|
223
|
+
/> -->
|
|
224
|
+
</div>
|
|
225
|
+
<div class="col span-6">
|
|
226
|
+
<LabeledInput
|
|
227
|
+
v-model:value="key"
|
|
228
|
+
:disabled="isKeyDisabled"
|
|
229
|
+
:mode="mode"
|
|
230
|
+
:label="keyNameLabel"
|
|
231
|
+
@update:value="$emit('updateSecretKey', $event)"
|
|
232
|
+
/>
|
|
233
|
+
<!-- <LabeledSelect
|
|
216
234
|
v-model:value="key"
|
|
217
|
-
|
|
235
|
+
|
|
218
236
|
:disabled="isKeyDisabled"
|
|
219
237
|
:options="keys"
|
|
220
238
|
:label="keyNameLabel"
|
|
221
239
|
:mode="mode"
|
|
222
240
|
@selecting="updateSecretKey"
|
|
223
|
-
/>
|
|
241
|
+
/> -->
|
|
242
|
+
</div>
|
|
243
|
+
|
|
224
244
|
</div>
|
|
225
245
|
</div>
|
|
226
246
|
</template>
|
|
@@ -247,7 +267,7 @@ export default {
|
|
|
247
267
|
&.show-key-selector {
|
|
248
268
|
.input-container > * {
|
|
249
269
|
display: inline-block;
|
|
250
|
-
width: 50%;
|
|
270
|
+
/* width: 50%; */
|
|
251
271
|
|
|
252
272
|
&.labeled-select.focused {
|
|
253
273
|
z-index: 10;
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
:key="index"
|
|
203
203
|
class="rule"
|
|
204
204
|
>
|
|
205
|
-
<div
|
|
205
|
+
<div>
|
|
206
206
|
<LabeledInput
|
|
207
207
|
v-model:value="rule.key"
|
|
208
208
|
:mode="mode"
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
211
211
|
@update:value="update"
|
|
212
212
|
/>
|
|
213
213
|
</div>
|
|
214
|
-
<div
|
|
214
|
+
<div>
|
|
215
215
|
<Select
|
|
216
216
|
id="operator"
|
|
217
217
|
v-model:value="rule.operator"
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
222
222
|
/>
|
|
223
223
|
</div>
|
|
224
224
|
<template v-if="rule.operator==='Exists'">
|
|
225
|
-
<div
|
|
225
|
+
<div>
|
|
226
226
|
<LabeledInput
|
|
227
227
|
value="n/a"
|
|
228
228
|
:mode="mode"
|
|
@@ -232,7 +232,7 @@ export default {
|
|
|
232
232
|
</div>
|
|
233
233
|
</template>
|
|
234
234
|
<template v-else>
|
|
235
|
-
<div
|
|
235
|
+
<div>
|
|
236
236
|
<LabeledInput
|
|
237
237
|
v-model:value="rule.value"
|
|
238
238
|
:mode="mode"
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
242
242
|
/>
|
|
243
243
|
</div>
|
|
244
244
|
</template>
|
|
245
|
-
<div
|
|
245
|
+
<div>
|
|
246
246
|
<Select
|
|
247
247
|
v-model:value="rule.effect"
|
|
248
248
|
:options="effectOpts"
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
251
251
|
@update:value="e=>updateEffect(e, rule)"
|
|
252
252
|
/>
|
|
253
253
|
</div>
|
|
254
|
-
<div
|
|
254
|
+
<div>
|
|
255
255
|
<UnitInput
|
|
256
256
|
v-model:value="rule.tolerationSeconds"
|
|
257
257
|
:disabled="rule.effect !== 'NoExecute'"
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
@update:value="update"
|
|
263
263
|
/>
|
|
264
264
|
</div>
|
|
265
|
-
<div class="
|
|
265
|
+
<div class="remove">
|
|
266
266
|
<button
|
|
267
267
|
v-if="!isView"
|
|
268
268
|
type="button"
|
|
@@ -294,9 +294,13 @@ export default {
|
|
|
294
294
|
|
|
295
295
|
.rule, .toleration-headers{
|
|
296
296
|
display: grid;
|
|
297
|
-
grid-template-columns:
|
|
297
|
+
grid-template-columns: 13% 13% 13% 13% 13% 13%;
|
|
298
298
|
grid-gap: 10px;
|
|
299
299
|
align-items: center;
|
|
300
|
+
margin-bottom: 10px;
|
|
301
|
+
.unlabeled-select{
|
|
302
|
+
width: auto;
|
|
303
|
+
}
|
|
300
304
|
}
|
|
301
305
|
|
|
302
306
|
.rule {
|
|
@@ -308,10 +312,10 @@ export default {
|
|
|
308
312
|
|
|
309
313
|
.toleration-headers SPAN {
|
|
310
314
|
color: var(--input-label);
|
|
311
|
-
margin-bottom: 10px;
|
|
312
315
|
}
|
|
313
316
|
.remove BUTTON {
|
|
314
317
|
padding: 0px;
|
|
318
|
+
min-width: auto;
|
|
315
319
|
}
|
|
316
320
|
.height-adjust-input {
|
|
317
321
|
min-height: 42px;
|
|
@@ -258,11 +258,11 @@ export default {
|
|
|
258
258
|
@update:value="update"
|
|
259
259
|
@blur="update($event.target.value)"
|
|
260
260
|
>
|
|
261
|
-
<template #
|
|
261
|
+
<template #suffixNew>
|
|
262
262
|
<div
|
|
263
263
|
v-if="displayUnit"
|
|
264
264
|
:id="describedById"
|
|
265
|
-
class="
|
|
265
|
+
class="addonNew"
|
|
266
266
|
:class="{'with-tooltip': tooltip || tooltipKey}"
|
|
267
267
|
>
|
|
268
268
|
{{ displayUnit }}
|
|
@@ -272,7 +272,12 @@ export default {
|
|
|
272
272
|
</template>
|
|
273
273
|
|
|
274
274
|
<style lang="scss" scoped>
|
|
275
|
-
.
|
|
275
|
+
.addonNew.with-tooltip {
|
|
276
276
|
padding-right: 42px;
|
|
277
277
|
}
|
|
278
|
+
.addonNew {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
margin-left: 10px;
|
|
282
|
+
}
|
|
278
283
|
</style>
|