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
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
|
|
31
31
|
selectLabel: {
|
|
32
32
|
type: String,
|
|
33
|
-
default: '',
|
|
33
|
+
default: ' ',
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
selectValue: {
|
|
@@ -164,11 +164,12 @@ export default {
|
|
|
164
164
|
:v-bind="$attrs"
|
|
165
165
|
@update:value="change"
|
|
166
166
|
/>
|
|
167
|
+
<div style="width: 100%;height: 24px;"></div>
|
|
167
168
|
<LabeledInput
|
|
168
169
|
v-if="textLabel || textRules.length > 0"
|
|
169
170
|
ref="text"
|
|
170
171
|
v-model:value="string"
|
|
171
|
-
class="input-string
|
|
172
|
+
class="input-string span-8"
|
|
172
173
|
:label="textLabel"
|
|
173
174
|
:placeholder="placeholder"
|
|
174
175
|
:disabled="disabled || textDisabled"
|
|
@@ -204,7 +205,7 @@ export default {
|
|
|
204
205
|
|
|
205
206
|
&.select-after {
|
|
206
207
|
height: 100%;
|
|
207
|
-
flex-direction: row-reverse;
|
|
208
|
+
// flex-direction: row-reverse;
|
|
208
209
|
|
|
209
210
|
& .input-string {
|
|
210
211
|
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
@@ -217,6 +218,7 @@ export default {
|
|
|
217
218
|
|
|
218
219
|
&.labeled-select {
|
|
219
220
|
.selected {
|
|
221
|
+
background-color: var(--input-bg);
|
|
220
222
|
color: var(--input-text);
|
|
221
223
|
text-align: center;
|
|
222
224
|
margin-right: 1em;
|
|
@@ -291,7 +293,8 @@ export default {
|
|
|
291
293
|
|
|
292
294
|
&.labeled-select:not(.disabled):not(.view) :deep(),
|
|
293
295
|
&.unlabeled-select:not(.disabled):not(.view) :deep() {
|
|
294
|
-
border: solid 1px var(--input-border);
|
|
296
|
+
/* border: solid 1px var(--input-border); */
|
|
297
|
+
height: 32px;
|
|
295
298
|
}
|
|
296
299
|
|
|
297
300
|
&.labeled-select :deep(),
|
|
@@ -302,6 +305,7 @@ export default {
|
|
|
302
305
|
// position: relative;
|
|
303
306
|
|
|
304
307
|
.vs__selected {
|
|
308
|
+
background-color: var(--input-bg);
|
|
305
309
|
color: var(--input-text);
|
|
306
310
|
}
|
|
307
311
|
|
|
@@ -283,7 +283,7 @@ export default {
|
|
|
283
283
|
const gap = this.canRemove ? ' 50px' : '';
|
|
284
284
|
const size = 2 + this.extraColumns.length;
|
|
285
285
|
|
|
286
|
-
return `grid-template-columns: repeat(${ size },
|
|
286
|
+
return `grid-template-columns: repeat(${ size }, 400px)${ gap };`;
|
|
287
287
|
},
|
|
288
288
|
usedKeyOptions() {
|
|
289
289
|
return this.rows.map((row) => row[this.keyName]);
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
330
330
|
},
|
|
331
331
|
|
|
332
332
|
getRows(value) {
|
|
333
|
-
|
|
333
|
+
let rows = [];
|
|
334
334
|
|
|
335
335
|
if ( this.asMap ) {
|
|
336
336
|
const input = value || {};
|
|
@@ -390,6 +390,17 @@ export default {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
rows = rows.map((item) => {
|
|
394
|
+
if (item?.key?.includes('harvester')) {
|
|
395
|
+
item.key = item.key?.replace('harvester', 'cloud');
|
|
396
|
+
}
|
|
397
|
+
if (item?.value?.includes('harvester')) {
|
|
398
|
+
item.value = item.value?.replace('harvester', 'cloud');
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return item;
|
|
402
|
+
});
|
|
403
|
+
|
|
393
404
|
return rows;
|
|
394
405
|
},
|
|
395
406
|
|
|
@@ -400,9 +411,23 @@ export default {
|
|
|
400
411
|
[this.valueName]: value,
|
|
401
412
|
};
|
|
402
413
|
|
|
414
|
+
obj.key = obj.key?.replace('harvester', 'cloud');
|
|
415
|
+
obj.value = obj.value?.replace('harvester', 'cloud');
|
|
403
416
|
obj.binary = false;
|
|
404
417
|
obj.canEncode = this.handleBase64;
|
|
405
418
|
obj.supported = true;
|
|
419
|
+
|
|
420
|
+
// 上传镜像问题
|
|
421
|
+
const s = this.rows.filter(item => {
|
|
422
|
+
// 如果 item.key 或 obj.key 为空,直接保留
|
|
423
|
+
if (!item.key || !obj.key) {
|
|
424
|
+
return true;
|
|
425
|
+
}
|
|
426
|
+
// 两者都有值时才比较
|
|
427
|
+
return item.key !== obj.key;
|
|
428
|
+
});
|
|
429
|
+
this.rows = s;
|
|
430
|
+
|
|
406
431
|
this.rows.push(obj);
|
|
407
432
|
this.queueUpdate();
|
|
408
433
|
this.$nextTick(() => {
|
|
@@ -466,8 +491,11 @@ export default {
|
|
|
466
491
|
const valueName = this.valueName;
|
|
467
492
|
|
|
468
493
|
for ( const row of this.rows ) {
|
|
469
|
-
let value = (row[valueName] || '');
|
|
470
|
-
const key = (row[keyName] || '').trim();
|
|
494
|
+
// let value = (row[valueName] || '');
|
|
495
|
+
// const key = (row[keyName] || '').trim();
|
|
496
|
+
|
|
497
|
+
const key = (row[keyName]?.replace('cloud', 'harvester') || '').trim();
|
|
498
|
+
let value = (row[valueName]?.replace('cloud', 'harvester') || '').trim();
|
|
471
499
|
|
|
472
500
|
if (value && typeOf(value) === 'object') {
|
|
473
501
|
out[key] = JSON.parse(JSON.stringify(value));
|
|
@@ -588,6 +616,7 @@ export default {
|
|
|
588
616
|
</script>
|
|
589
617
|
<template>
|
|
590
618
|
<div class="key-value">
|
|
619
|
+
<!-- 标题部分:如果传了 title 或者插槽 title 才显示 -->
|
|
591
620
|
<div
|
|
592
621
|
v-if="title || $slots.title"
|
|
593
622
|
class="clearfix"
|
|
@@ -595,6 +624,7 @@ export default {
|
|
|
595
624
|
<slot name="title">
|
|
596
625
|
<h3>
|
|
597
626
|
{{ title }}
|
|
627
|
+
<!-- 标题右侧提示信息 -->
|
|
598
628
|
<i
|
|
599
629
|
v-if="titleProtip"
|
|
600
630
|
v-clean-tooltip="titleProtip"
|
|
@@ -603,6 +633,8 @@ export default {
|
|
|
603
633
|
</h3>
|
|
604
634
|
</slot>
|
|
605
635
|
</div>
|
|
636
|
+
|
|
637
|
+
<!-- 整个 Key-Value 表格容器 -->
|
|
606
638
|
<div
|
|
607
639
|
class="kv-container"
|
|
608
640
|
role="grid"
|
|
@@ -611,6 +643,8 @@ export default {
|
|
|
611
643
|
:aria-colcount="extraColumns.length + 2"
|
|
612
644
|
:style="containerStyle"
|
|
613
645
|
>
|
|
646
|
+
|
|
647
|
+
<!-- 表头:有数据或者处于 view 模式才显示 -->
|
|
614
648
|
<template v-if="rows.length || isView">
|
|
615
649
|
<div class="rowgroup">
|
|
616
650
|
<div class="row">
|
|
@@ -660,6 +694,8 @@ export default {
|
|
|
660
694
|
</div>
|
|
661
695
|
</div>
|
|
662
696
|
</template>
|
|
697
|
+
|
|
698
|
+
<!-- 如果是 view 模式但没有数据,显示占位符 -->
|
|
663
699
|
<template v-if="!rows.length && isView">
|
|
664
700
|
<div class="rowgroup">
|
|
665
701
|
<div class="row">
|
|
@@ -678,6 +714,8 @@ export default {
|
|
|
678
714
|
</div>
|
|
679
715
|
</div>
|
|
680
716
|
</template>
|
|
717
|
+
|
|
718
|
+
<!-- 遍历 rows 渲染每一行 -->
|
|
681
719
|
<template
|
|
682
720
|
v-for="(row,i) in rows"
|
|
683
721
|
v-else
|
|
@@ -786,7 +824,7 @@ export default {
|
|
|
786
824
|
:disabled="disabled"
|
|
787
825
|
:mode="mode"
|
|
788
826
|
:placeholder="_valuePlaceholder"
|
|
789
|
-
:min-height="
|
|
827
|
+
:min-height="32"
|
|
790
828
|
:spellcheck="false"
|
|
791
829
|
:aria-label="t('generic.ariaLabel.value', {index: i+1})"
|
|
792
830
|
@update:value="queueUpdate"
|
|
@@ -865,6 +903,8 @@ export default {
|
|
|
865
903
|
</div>
|
|
866
904
|
</template>
|
|
867
905
|
</div>
|
|
906
|
+
|
|
907
|
+
<!-- 底部新增/从文件导入 -->
|
|
868
908
|
<div
|
|
869
909
|
v-if="(addAllowed || readAllowed) && !isView"
|
|
870
910
|
class="footer mt-10"
|
|
@@ -873,6 +913,8 @@ export default {
|
|
|
873
913
|
name="add"
|
|
874
914
|
:add="add"
|
|
875
915
|
>
|
|
916
|
+
|
|
917
|
+
<!-- 添加按钮 -->
|
|
876
918
|
<button
|
|
877
919
|
v-if="addAllowed"
|
|
878
920
|
type="button"
|
|
@@ -889,6 +931,8 @@ export default {
|
|
|
889
931
|
:class="loading ? ['icon-lg', 'icon-spinner','icon-spin']: [addIcon]"
|
|
890
932
|
/> {{ _addLabel }}
|
|
891
933
|
</button>
|
|
934
|
+
|
|
935
|
+
<!-- 从文件读取 -->
|
|
892
936
|
<FileSelector
|
|
893
937
|
v-if="readAllowed"
|
|
894
938
|
:aria-label="t('generic.ariaLabel.readKeyValue')"
|
|
@@ -913,8 +957,8 @@ export default {
|
|
|
913
957
|
}
|
|
914
958
|
.kv-container {
|
|
915
959
|
display: grid;
|
|
916
|
-
align-items: center;
|
|
917
|
-
column-gap:
|
|
960
|
+
/* align-items: center; */
|
|
961
|
+
column-gap: 10px;
|
|
918
962
|
|
|
919
963
|
.key-value-label {
|
|
920
964
|
margin-bottom: 0;
|
|
@@ -939,6 +983,9 @@ export default {
|
|
|
939
983
|
}
|
|
940
984
|
&.value textarea {
|
|
941
985
|
padding: 10px 10px 10px 10px;
|
|
986
|
+
min-height:32px;
|
|
987
|
+
line-height: 12px;
|
|
988
|
+
border: solid var(--border-width) var(--input-border);
|
|
942
989
|
}
|
|
943
990
|
|
|
944
991
|
.text-monospace:not(.conceal) {
|
|
@@ -967,6 +1014,7 @@ export default {
|
|
|
967
1014
|
.remove {
|
|
968
1015
|
text-align: center;
|
|
969
1016
|
BUTTON {
|
|
1017
|
+
min-width: auto;
|
|
970
1018
|
padding: 0px;
|
|
971
1019
|
}
|
|
972
1020
|
}
|
|
@@ -977,8 +1025,14 @@ export default {
|
|
|
977
1025
|
}
|
|
978
1026
|
}
|
|
979
1027
|
input {
|
|
980
|
-
height:
|
|
1028
|
+
height: 32px;
|
|
981
1029
|
line-height: 1;
|
|
1030
|
+
border: solid var(--border-width) var(--input-border);
|
|
1031
|
+
padding: 4px 11px;
|
|
1032
|
+
&:hover{
|
|
1033
|
+
border: solid var(--border-width) var(--input-border);
|
|
1034
|
+
box-shadow: 0 4px 6px 0 var(--input-border-box-shadow);
|
|
1035
|
+
}
|
|
982
1036
|
}
|
|
983
1037
|
.footer {
|
|
984
1038
|
.protip {
|
|
@@ -1000,4 +1054,8 @@ export default {
|
|
|
1000
1054
|
border-collapse: separate;
|
|
1001
1055
|
z-index: 0; // Prevent label from cover other elements outside of the input
|
|
1002
1056
|
}
|
|
1057
|
+
|
|
1058
|
+
h3{
|
|
1059
|
+
font-size: 14px;
|
|
1060
|
+
}
|
|
1003
1061
|
</style>
|