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
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
27
|
<div>
|
|
28
|
-
<div class="row
|
|
29
|
-
<div class="col
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col">
|
|
30
30
|
<LabeledInput
|
|
31
31
|
v-model:value="value.name"
|
|
32
32
|
:required="true"
|
|
@@ -35,8 +35,8 @@ export default {
|
|
|
35
35
|
/>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="row
|
|
39
|
-
<div class="col
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col">
|
|
40
40
|
<LabeledInput
|
|
41
41
|
v-model:value="value.vsphereVolume.storagePolicyID"
|
|
42
42
|
:mode="mode"
|
|
@@ -44,7 +44,9 @@ export default {
|
|
|
44
44
|
:required="true"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
|
-
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<div class="col">
|
|
48
50
|
<LabeledInput
|
|
49
51
|
v-model:value.number="value.vsphereVolume.storagePolicyName"
|
|
50
52
|
:mode="mode"
|
|
@@ -53,7 +55,7 @@ export default {
|
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
55
57
|
<div class="row">
|
|
56
|
-
<div class="col
|
|
58
|
+
<div class="col">
|
|
57
59
|
<LabeledInput
|
|
58
60
|
v-model:value="value.vsphereVolume.volumePath"
|
|
59
61
|
:mode="mode"
|
|
@@ -61,7 +63,9 @@ export default {
|
|
|
61
63
|
:required="true"
|
|
62
64
|
/>
|
|
63
65
|
</div>
|
|
64
|
-
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row">
|
|
68
|
+
<div class="col">
|
|
65
69
|
<LabeledInput
|
|
66
70
|
v-model:value="value.vsphereVolume.fsType"
|
|
67
71
|
:mode="mode"
|
|
@@ -55,7 +55,13 @@ async function extendApp(vueApp) {
|
|
|
55
55
|
const next = (location) => appPartials.router.push(location);
|
|
56
56
|
// Resolve route
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
let path = getLocation(router.options.base, router.options.mode);
|
|
59
|
+
|
|
60
|
+
// 🔹 增加 rewrite,不改变原逻辑
|
|
61
|
+
if (path.includes('/cloud/')) {
|
|
62
|
+
path = path.replace(/cloud/g, 'harvester');
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
const route = router.resolve(path);
|
|
60
66
|
|
|
61
67
|
// Set context to app.context
|
|
@@ -37,15 +37,17 @@ export default {
|
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
39
|
<div>
|
|
40
|
-
<Banner
|
|
41
|
-
color="info"
|
|
42
|
-
:label="t('podSecurityAdmission.banner.modifications')"
|
|
43
|
-
/>
|
|
44
|
-
|
|
45
40
|
<ResourceTable
|
|
46
41
|
:loading="loading"
|
|
47
42
|
:schema="schema"
|
|
48
43
|
:rows="rows"
|
|
49
|
-
|
|
44
|
+
>
|
|
45
|
+
<template #banner>
|
|
46
|
+
<Banner
|
|
47
|
+
color="info"
|
|
48
|
+
:label="t('podSecurityAdmission.banner.modifications')"
|
|
49
|
+
/>
|
|
50
|
+
</template>
|
|
51
|
+
</ResourceTable>
|
|
50
52
|
</div>
|
|
51
53
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { MANAGEMENT } from '@shell/config/types';
|
|
3
|
-
import { ALLOWED_SETTINGS, PROVISIONING_SETTINGS } from '@shell/config/settings';
|
|
3
|
+
import { ALLOWED_SETTINGS_NEW, ALLOWED_SETTINGS, PROVISIONING_SETTINGS } from '@shell/config/settings';
|
|
4
4
|
import { Banner } from '@components/Banner';
|
|
5
5
|
import Loading from '@shell/components/Loading';
|
|
6
6
|
import { VIEW_IN_API } from '@shell/store/prefs';
|
|
@@ -26,8 +26,12 @@ export default {
|
|
|
26
26
|
const settings = [];
|
|
27
27
|
const provisioningSettings = [];
|
|
28
28
|
|
|
29
|
+
const topLevelPermissions = sessionStorage.getItem('TOPLEVELPERMISSIONS') || ''
|
|
30
|
+
|
|
31
|
+
const allowedSettings = topLevelPermissions && topLevelPermissions === 'superadmin' ? ALLOWED_SETTINGS : ALLOWED_SETTINGS_NEW
|
|
32
|
+
|
|
29
33
|
// Combine the allowed settings with the data from the API
|
|
30
|
-
for ( const id in
|
|
34
|
+
for ( const id in allowedSettings ) {
|
|
31
35
|
const setting = settingsMap[id];
|
|
32
36
|
|
|
33
37
|
if ( !setting ) {
|
|
@@ -69,7 +73,10 @@ export default {
|
|
|
69
73
|
},
|
|
70
74
|
|
|
71
75
|
data() {
|
|
72
|
-
|
|
76
|
+
|
|
77
|
+
const topLevelPermissions = sessionStorage.getItem('TOPLEVELPERMISSIONS') || ''
|
|
78
|
+
|
|
79
|
+
return { topLevelPermissions, settings: null, provisioningSettings: null };
|
|
73
80
|
},
|
|
74
81
|
computed: { ...mapGetters({ t: 'i18n/t' }) }
|
|
75
82
|
};
|
|
@@ -96,16 +103,18 @@ export default {
|
|
|
96
103
|
/>
|
|
97
104
|
</div>
|
|
98
105
|
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
<div v-if="topLevelPermissions && topLevelPermissions === 'superadmin'">
|
|
107
|
+
<h2>
|
|
108
|
+
{{ t('advancedSettings.provisioning.header') }}
|
|
109
|
+
</h2>
|
|
110
|
+
<div
|
|
111
|
+
v-for="(setting) in provisioningSettings"
|
|
112
|
+
:key="setting.id"
|
|
113
|
+
>
|
|
114
|
+
<Setting
|
|
115
|
+
:value="setting"
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
109
118
|
</div>
|
|
110
119
|
</div>
|
|
111
120
|
</template>
|
|
@@ -142,9 +142,10 @@ export default {
|
|
|
142
142
|
:to="{ name: 'c-cluster-auth-user.retention'}"
|
|
143
143
|
class="btn role-link btn-sm btn-user-retention"
|
|
144
144
|
data-testid="router-link-user-retention"
|
|
145
|
+
style="text-align: left;min-width: auto !important;width: auto;"
|
|
145
146
|
>
|
|
146
|
-
<i class="icon icon-gear" />
|
|
147
|
-
{{ t('user.retention.button.label') }}
|
|
147
|
+
<!-- <i class="icon icon-gear" />
|
|
148
|
+
{{ t('user.retention.button.label') }} -->
|
|
148
149
|
</router-link>
|
|
149
150
|
</template>
|
|
150
151
|
</Masthead>
|
|
@@ -171,8 +172,11 @@ export default {
|
|
|
171
172
|
|
|
172
173
|
<style lang="scss">
|
|
173
174
|
.btn-user-retention {
|
|
174
|
-
display:
|
|
175
|
+
display: block;
|
|
175
176
|
gap: 0.25rem;
|
|
176
177
|
padding: 0;
|
|
177
178
|
}
|
|
179
|
+
.btn-user-retention:hover {
|
|
180
|
+
color: #333 !important;
|
|
181
|
+
}
|
|
178
182
|
</style>
|
package/list/namespace.vue
CHANGED
|
@@ -42,6 +42,9 @@ export default {
|
|
|
42
42
|
headers() {
|
|
43
43
|
const headersFromSchema = this.$store.getters['type-map/headersFor'](this.schema);
|
|
44
44
|
|
|
45
|
+
[headersFromSchema[0], headersFromSchema[1]] = [headersFromSchema[1], headersFromSchema[0]];
|
|
46
|
+
headersFromSchema[0].width = '200px';
|
|
47
|
+
headersFromSchema[1].width = '100px';
|
|
45
48
|
// harvester is reusing this namespace.js to render ns page, we need to make sure harvester backend support quota schema to show this column.
|
|
46
49
|
if (this.hasHarvesterResourceQuotaSchema && Array.isArray(headersFromSchema) && headersFromSchema.length > 1) {
|
|
47
50
|
const columnIdx = headersFromSchema.length - 1;
|
|
@@ -307,19 +307,18 @@ export default {
|
|
|
307
307
|
<router-link
|
|
308
308
|
v-if="row.mgmt && row.mgmt.isReady && !row.hasError"
|
|
309
309
|
data-testid="cluster-manager-list-explore-management"
|
|
310
|
-
class="btn btn-sm role-secondary"
|
|
311
310
|
:to="{name: 'c-cluster', params: {cluster: row.mgmt.id}}"
|
|
312
311
|
>
|
|
313
|
-
|
|
312
|
+
<a href="javascript:;">
|
|
313
|
+
{{ t('cluster.explore') }}
|
|
314
|
+
</a>
|
|
314
315
|
</router-link>
|
|
315
|
-
<
|
|
316
|
-
v-else
|
|
316
|
+
<span
|
|
317
317
|
data-testid="cluster-manager-list-explore"
|
|
318
|
-
|
|
319
|
-
class="btn btn-sm role-secondary"
|
|
318
|
+
v-else
|
|
320
319
|
>
|
|
321
320
|
{{ t('cluster.explore') }}
|
|
322
|
-
</
|
|
321
|
+
</span>
|
|
323
322
|
</template>
|
|
324
323
|
</ResourceTable>
|
|
325
324
|
</div>
|
package/mixins/brand.js
CHANGED
|
@@ -175,7 +175,24 @@ export default {
|
|
|
175
175
|
const vars = createCssVars(color, this.theme, name);
|
|
176
176
|
|
|
177
177
|
for (const prop in vars) {
|
|
178
|
+
|
|
178
179
|
document.body.style.setProperty(prop, vars[prop]);
|
|
180
|
+
|
|
181
|
+
// 主色调hover值动态
|
|
182
|
+
if (prop === '--primary-hover-bg') {
|
|
183
|
+
// 如果是你要设置透明度的变量,比如 hover
|
|
184
|
+
let value = '#E8F4FF';
|
|
185
|
+
if (vars[prop]) {
|
|
186
|
+
const match = vars[prop].match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
187
|
+
if (match) {
|
|
188
|
+
const [_, r, g, b] = match;
|
|
189
|
+
value = `rgba(${r}, ${g}, ${b}, 0.15)`;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
document.body.style.setProperty('--nav-hover-color', vars[prop]);
|
|
194
|
+
document.body.style.setProperty('--nav-active', value);
|
|
195
|
+
}
|
|
179
196
|
}
|
|
180
197
|
},
|
|
181
198
|
|
|
@@ -170,6 +170,16 @@ export default {
|
|
|
170
170
|
} catch (err) {
|
|
171
171
|
// This exception handles errors from the `request` action when it receives a failed http request. The `err` object could be from the action's error handler (raw http response object containing `status`) or thrown later on given the response of the action (a massaged object containing `_status`). TBD why one 409 triggers the error handler and another does not.
|
|
172
172
|
const IS_ERR_409 = err.status === 409 || err._status === 409;
|
|
173
|
+
|
|
174
|
+
const IS_ERR_403 = err.status === 403 || err._status === 403;
|
|
175
|
+
|
|
176
|
+
if (err.message === '' && err.fieldName && err.code) {
|
|
177
|
+
err.message = err.code + ' ' + err.fieldName
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (IS_ERR_403) {
|
|
181
|
+
err.message = '权限不足'
|
|
182
|
+
}
|
|
173
183
|
|
|
174
184
|
// Conflict, the resource being edited has changed since starting editing
|
|
175
185
|
if (IS_ERR_409 && depth === 0 && this.isEdit) {
|
|
@@ -115,25 +115,26 @@ export default class ProvCluster extends SteveModel {
|
|
|
115
115
|
const actions = [
|
|
116
116
|
// Note: Actions are not supported in the Steve API, so we check
|
|
117
117
|
// available actions for RKE1 clusters, but not RKE2 clusters.
|
|
118
|
+
// {
|
|
119
|
+
// action: 'openShell',
|
|
120
|
+
// label: this.$rootGetters['i18n/t']('nav.shell'),
|
|
121
|
+
// icon: 'icon icon-terminal',
|
|
122
|
+
// enabled: !!this.mgmt?.links.shell && ready,
|
|
123
|
+
// }, {
|
|
124
|
+
// action: 'downloadKubeConfig',
|
|
125
|
+
// bulkAction: 'downloadKubeConfigBulk',
|
|
126
|
+
// label: this.$rootGetters['i18n/t']('nav.kubeconfig.download'),
|
|
127
|
+
// icon: 'icon icon-download',
|
|
128
|
+
// bulkable: true,
|
|
129
|
+
// enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
130
|
+
// }, {
|
|
131
|
+
// action: 'copyKubeConfig',
|
|
132
|
+
// label: this.t('cluster.copyConfig'),
|
|
133
|
+
// bulkable: false,
|
|
134
|
+
// enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
135
|
+
// icon: 'icon icon-copy',
|
|
136
|
+
// },
|
|
118
137
|
{
|
|
119
|
-
action: 'openShell',
|
|
120
|
-
label: this.$rootGetters['i18n/t']('nav.shell'),
|
|
121
|
-
icon: 'icon icon-terminal',
|
|
122
|
-
enabled: !!this.mgmt?.links.shell && ready,
|
|
123
|
-
}, {
|
|
124
|
-
action: 'downloadKubeConfig',
|
|
125
|
-
bulkAction: 'downloadKubeConfigBulk',
|
|
126
|
-
label: this.$rootGetters['i18n/t']('nav.kubeconfig.download'),
|
|
127
|
-
icon: 'icon icon-download',
|
|
128
|
-
bulkable: true,
|
|
129
|
-
enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
130
|
-
}, {
|
|
131
|
-
action: 'copyKubeConfig',
|
|
132
|
-
label: this.t('cluster.copyConfig'),
|
|
133
|
-
bulkable: false,
|
|
134
|
-
enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
135
|
-
icon: 'icon icon-copy',
|
|
136
|
-
}, {
|
|
137
138
|
action: 'snapshotAction',
|
|
138
139
|
label: this.$rootGetters['i18n/t']('nav.takeSnapshot'),
|
|
139
140
|
icon: 'icon icon-snapshot',
|
package/models/workload.js
CHANGED
|
@@ -199,8 +199,8 @@ export default class Workload extends WorkloadService {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
this.$dispatch('growl/error', {
|
|
202
|
-
title: '
|
|
203
|
-
message: '
|
|
202
|
+
title: '不可用',
|
|
203
|
+
message: '没有正在运行的 Pod 可用来执行 Shell。'
|
|
204
204
|
}, { root: true });
|
|
205
205
|
}
|
|
206
206
|
|
package/package.json
CHANGED
package/pages/account/index.vue
CHANGED
|
@@ -151,48 +151,40 @@ export default {
|
|
|
151
151
|
<template>
|
|
152
152
|
<Loading v-if="$fetchState.pending" />
|
|
153
153
|
<div v-else>
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<h2 v-t="'accountAndKeys.account.title'" />
|
|
162
|
-
<div class="account">
|
|
163
|
-
<Principal
|
|
164
|
-
:value="principal.id"
|
|
165
|
-
:use-muted="false"
|
|
166
|
-
:show-labels="true"
|
|
167
|
-
/>
|
|
168
|
-
<div>
|
|
169
|
-
<button
|
|
170
|
-
v-if="canChangePassword"
|
|
171
|
-
role="button"
|
|
172
|
-
:aria-label="t('accountAndKeys.account.change')"
|
|
173
|
-
type="button"
|
|
174
|
-
class="btn role-primary"
|
|
175
|
-
data-testid="account_change_password"
|
|
176
|
-
@click="showChangePasswordDialog"
|
|
177
|
-
>
|
|
178
|
-
{{ t("accountAndKeys.account.change") }}
|
|
179
|
-
</button>
|
|
154
|
+
<div style="display: flex;align-items: center;margin-bottom: 20px;">
|
|
155
|
+
<!-- <BackLink class="backLinkCls" :link="backLink" /> -->
|
|
156
|
+
<div style="font-size: 26px;">
|
|
157
|
+
<TabTitle breadcrumb="vendor-only">
|
|
158
|
+
{{ t('accountAndKeys.title') }}
|
|
159
|
+
</TabTitle>
|
|
180
160
|
</div>
|
|
181
161
|
</div>
|
|
182
162
|
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
<div>
|
|
186
|
-
<
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
163
|
+
<div class="account_card mb-20">
|
|
164
|
+
<h5 v-t="'accountAndKeys.account.title'" />
|
|
165
|
+
<div class="account">
|
|
166
|
+
<Principal
|
|
167
|
+
:userLogo="true"
|
|
168
|
+
:userLogoSize="79"
|
|
169
|
+
:value="principal.id"
|
|
170
|
+
:use-muted="false"
|
|
171
|
+
:show-labels="true"
|
|
172
|
+
/>
|
|
173
|
+
<div>
|
|
174
|
+
<button
|
|
175
|
+
v-if="canChangePassword"
|
|
176
|
+
role="button"
|
|
177
|
+
:aria-label="t('accountAndKeys.account.change')"
|
|
178
|
+
type="button"
|
|
179
|
+
class="btn role-primary"
|
|
180
|
+
data-testid="account_change_password"
|
|
181
|
+
@click="showChangePasswordDialog"
|
|
182
|
+
>
|
|
183
|
+
{{ t("accountAndKeys.account.change") }}
|
|
184
|
+
</button>
|
|
193
185
|
</div>
|
|
194
186
|
</div>
|
|
195
|
-
<button
|
|
187
|
+
<!-- <button
|
|
196
188
|
v-if="apiKeySchema"
|
|
197
189
|
role="button"
|
|
198
190
|
:aria-label="t('accountAndKeys.apiKeys.add.label')"
|
|
@@ -201,33 +193,71 @@ export default {
|
|
|
201
193
|
@click="addKey"
|
|
202
194
|
>
|
|
203
195
|
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
204
|
-
</button>
|
|
205
|
-
</div>
|
|
206
|
-
<div
|
|
207
|
-
v-if="apiKeySchema"
|
|
208
|
-
class="keys"
|
|
209
|
-
>
|
|
210
|
-
<ResourceTable
|
|
211
|
-
:schema="apiKeySchema"
|
|
212
|
-
:rows="apiKeys"
|
|
213
|
-
:headers="apiKeyheaders"
|
|
214
|
-
key-field="id"
|
|
215
|
-
data-testid="api_keys_list"
|
|
216
|
-
:search="true"
|
|
217
|
-
:row-actions="true"
|
|
218
|
-
:table-actions="true"
|
|
219
|
-
/>
|
|
196
|
+
</button> -->
|
|
220
197
|
</div>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
198
|
+
|
|
199
|
+
<div class="account_card mb-20">
|
|
200
|
+
<div class="keys-header">
|
|
201
|
+
<div>
|
|
202
|
+
<h5 v-t="'accountAndKeys.apiKeys.title'" />
|
|
203
|
+
<div class="api-url">
|
|
204
|
+
<span>{{ t("accountAndKeys.apiKeys.apiEndpoint") }}</span>
|
|
205
|
+
<CopyToClipboardText
|
|
206
|
+
:aria-label="t('accountAndKeys.apiKeys.copyApiEnpoint')"
|
|
207
|
+
:text="apiUrl"
|
|
208
|
+
/>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
<div
|
|
213
|
+
v-if="apiKeySchema"
|
|
214
|
+
class="keys"
|
|
215
|
+
>
|
|
216
|
+
<ResourceTable
|
|
217
|
+
:schema="apiKeySchema"
|
|
218
|
+
:rows="apiKeys"
|
|
219
|
+
:headers="apiKeyheaders"
|
|
220
|
+
key-field="id"
|
|
221
|
+
data-testid="api_keys_list"
|
|
222
|
+
:search="true"
|
|
223
|
+
:row-actions="true"
|
|
224
|
+
:table-actions="true"
|
|
225
|
+
>
|
|
226
|
+
<template #header-right>
|
|
227
|
+
<button
|
|
228
|
+
style="margin-right: 10px;"
|
|
229
|
+
v-if="apiKeySchema"
|
|
230
|
+
role="button"
|
|
231
|
+
:aria-label="t('accountAndKeys.apiKeys.add.label')"
|
|
232
|
+
class="btn role-primary add"
|
|
233
|
+
data-testid="account_create_api_keys"
|
|
234
|
+
@click="addKey"
|
|
235
|
+
>
|
|
236
|
+
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
237
|
+
</button>
|
|
238
|
+
</template>
|
|
239
|
+
</ResourceTable>
|
|
240
|
+
</div>
|
|
241
|
+
<div v-else>
|
|
242
|
+
<Banner
|
|
243
|
+
color="warning"
|
|
244
|
+
:label="t('accountAndKeys.apiKeys.notAllowed')"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
226
247
|
</div>
|
|
227
248
|
</div>
|
|
228
249
|
</template>
|
|
229
250
|
|
|
230
251
|
<style lang='scss' scoped>
|
|
252
|
+
.account_card {
|
|
253
|
+
border: 1px solid #d7d7d7;
|
|
254
|
+
padding: 20px;
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
}
|
|
257
|
+
:deep() .back-link {
|
|
258
|
+
font-size: 26px;
|
|
259
|
+
margin: 0 20px 0 0 !important;
|
|
260
|
+
}
|
|
231
261
|
hr {
|
|
232
262
|
margin: 20px 0;
|
|
233
263
|
}
|
|
@@ -237,6 +267,10 @@ export default {
|
|
|
237
267
|
justify-content: space-between
|
|
238
268
|
}
|
|
239
269
|
|
|
270
|
+
.principal .avatar {
|
|
271
|
+
width: 287px !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
240
274
|
.keys-header {
|
|
241
275
|
display: flex;
|
|
242
276
|
div {
|
|
@@ -254,6 +288,7 @@ export default {
|
|
|
254
288
|
|
|
255
289
|
.api-url {
|
|
256
290
|
display: flex;
|
|
291
|
+
margin: 20px 0;
|
|
257
292
|
|
|
258
293
|
> span {
|
|
259
294
|
margin-right: 6px;
|