dashboard-shell-shell 3.0.5-test.6 → 3.0.5-test.60

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.
Files changed (348) hide show
  1. package/assets/brand/csp/favicon.png +0 -0
  2. package/assets/brand/harvester/favicon.png +0 -0
  3. package/assets/brand/suse/favicon.png +0 -0
  4. package/assets/icons/demo.css +539 -0
  5. package/assets/icons/demo.css:Zone.Identifier +0 -0
  6. package/assets/icons/demo_index.html +1131 -0
  7. package/assets/icons/demo_index.html:Zone.Identifier +0 -0
  8. package/assets/icons/iconfont.css +219 -0
  9. package/assets/icons/iconfont.css:Zone.Identifier +0 -0
  10. package/assets/icons/iconfont.js +1 -0
  11. package/assets/icons/iconfont.js:Zone.Identifier +0 -0
  12. package/assets/icons/iconfont.json +324 -0
  13. package/assets/icons/iconfont.json:Zone.Identifier +0 -0
  14. package/assets/icons/iconfont.ttf +0 -0
  15. package/assets/icons/iconfont.ttf:Zone.Identifier +0 -0
  16. package/assets/icons/iconfont.woff +0 -0
  17. package/assets/icons/iconfont.woff2 +0 -0
  18. package/assets/icons/iconfont.woff2:Zone.Identifier +0 -0
  19. package/assets/icons/iconfont.woff:Zone.Identifier +0 -0
  20. package/assets/iconsNew/demo.css +539 -0
  21. package/assets/iconsNew/demo.css:Zone.Identifier +0 -0
  22. package/assets/iconsNew/demo_index.html +303 -0
  23. package/assets/iconsNew/demo_index.html:Zone.Identifier +0 -0
  24. package/assets/iconsNew/iconfont.css +43 -0
  25. package/assets/iconsNew/iconfont.css:Zone.Identifier +0 -0
  26. package/assets/iconsNew/iconfont.js +1 -0
  27. package/assets/iconsNew/iconfont.js:Zone.Identifier +0 -0
  28. package/assets/iconsNew/iconfont.json +44 -0
  29. package/assets/iconsNew/iconfont.json:Zone.Identifier +0 -0
  30. package/assets/iconsNew/iconfont.ttf +0 -0
  31. package/assets/iconsNew/iconfont.ttf:Zone.Identifier +0 -0
  32. package/assets/iconsNew/iconfont.woff +0 -0
  33. package/assets/iconsNew/iconfont.woff2 +0 -0
  34. package/assets/iconsNew/iconfont.woff2:Zone.Identifier +0 -0
  35. package/assets/iconsNew/iconfont.woff:Zone.Identifier +0 -0
  36. package/assets/images/API.svg +3 -0
  37. package/assets/images/action.svg +6 -0
  38. package/assets/images/login/password.svg +20 -0
  39. package/assets/images/login/user.svg +6 -0
  40. package/assets/images/login-bg.png +0 -0
  41. package/assets/images/login-left.png +0 -0
  42. package/assets/images/login-logo.svg +19 -0
  43. package/assets/images/logo.png +0 -0
  44. package/assets/images/pl/dark/logo.png +0 -0
  45. package/assets/images/pl/half-logo.svg +2 -23
  46. package/assets/images/pl/harvester.png +0 -0
  47. package/assets/images/pl/logo.png +0 -0
  48. package/assets/images/promp-yellow.svg +5 -0
  49. package/assets/images/user.png +0 -0
  50. package/assets/styles/all.scss +83 -0
  51. package/assets/styles/app.scss +5 -0
  52. package/assets/styles/base/_basic.scss +2 -2
  53. package/assets/styles/base/_helpers.scss +1 -1
  54. package/assets/styles/base/_mixins.scss +1 -1
  55. package/assets/styles/base/_typography.scss +2 -1
  56. package/assets/styles/base/_variables.scss +14 -7
  57. package/assets/styles/fonts/_icons.scss +3 -2
  58. package/assets/styles/global/_button.scss +44 -26
  59. package/assets/styles/global/_columns.scss +3 -1
  60. package/assets/styles/global/_form.scss +46 -13
  61. package/assets/styles/global/_labeled-input.scss +54 -26
  62. package/assets/styles/global/_layout.scss +8 -3
  63. package/assets/styles/global/_select.scss +25 -17
  64. package/assets/styles/global/_table.scss +7 -1
  65. package/assets/styles/global/_tooltip.scss +60 -8
  66. package/assets/styles/themes/_dark.scss +3 -0
  67. package/assets/styles/themes/_light.scss +69 -46
  68. package/assets/styles/vendor/vue-select.scss +24 -10
  69. package/assets/translations/en-us.yaml +92 -4
  70. package/assets/translations/zh-hans.yaml +656 -206
  71. package/components/ActionDropdown.vue +2 -1
  72. package/components/ActionMenu.vue +2 -2
  73. package/components/ActionMenuShell.vue +2 -0
  74. package/components/AppModal.vue +46 -5
  75. package/components/BrandImage.vue +1 -0
  76. package/components/ButtonDropdown.vue +28 -4
  77. package/components/ButtonMultiAction.vue +1 -0
  78. package/components/ClusterIconMenu.vue +2 -2
  79. package/components/CodeMirror.vue +26 -10
  80. package/components/ConsumptionGauge.vue +24 -5
  81. package/components/ContainerResourceLimit.vue +2 -2
  82. package/components/CopyToClipboard.vue +15 -0
  83. package/components/CruResource.vue +12 -10
  84. package/components/CruResourceFooter.vue +2 -2
  85. package/components/DashboardOptions.vue +29 -17
  86. package/components/DotState.vue +84 -0
  87. package/components/Drawer/Chrome.vue +2 -2
  88. package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +30 -27
  89. package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
  90. package/components/Drawer/ResourceDetailDrawer/index.vue +5 -4
  91. package/components/ExplorerMembers.vue +28 -4
  92. package/components/ExplorerProjectsNamespaces.vue +19 -5
  93. package/components/GlobalRoleBindings.vue +23 -4
  94. package/components/GrafanaDashboard.vue +4 -4
  95. package/components/GrowlManager.vue +3 -1
  96. package/components/HardwareResourceGauge.vue +39 -3
  97. package/components/IndentedPanel.vue +4 -10
  98. package/components/InfoBox.vue +3 -3
  99. package/components/InputOrDisplay.vue +28 -2
  100. package/components/LabelValue.vue +20 -1
  101. package/components/ModalWithCard.vue +12 -3
  102. package/components/PodSecurityAdmission.vue +2 -2
  103. package/components/PromptModal.vue +1 -1
  104. package/components/PromptRemove.vue +53 -12
  105. package/components/RelatedResources.vue +3 -0
  106. package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
  107. package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
  108. package/components/Resource/Detail/Metadata/index.vue +3 -1
  109. package/components/Resource/Detail/TitleBar/Title.vue +4 -3
  110. package/components/Resource/Detail/TitleBar/Top.vue +2 -0
  111. package/components/Resource/Detail/TitleBar/composables.ts +16 -1
  112. package/components/Resource/Detail/TitleBar/index.vue +125 -27
  113. package/components/ResourceDetail/Masthead/index.vue +1 -1
  114. package/components/ResourceDetail/Masthead/latest.vue +1 -1
  115. package/components/ResourceDetail/Masthead/legacy.vue +183 -39
  116. package/components/ResourceDetail/legacy.vue +47 -29
  117. package/components/ResourceList/Masthead.vue +222 -54
  118. package/components/ResourceList/ResourceLoadingIndicator.vue +5 -2
  119. package/components/ResourceTable.vue +40 -2
  120. package/components/SideNav.vue +74 -20
  121. package/components/SingleClusterInfo.vue +2 -1
  122. package/components/SortableTable/THead.vue +79 -4
  123. package/components/SortableTable/index.vue +1053 -464
  124. package/components/SortableTable/paging.js +26 -16
  125. package/components/SortableTable/selection.js +2 -2
  126. package/components/Tabbed/Tab.vue +3 -3
  127. package/components/Tabbed/index.vue +53 -30
  128. package/components/YamlEditor.vue +0 -1
  129. package/components/auth/Principal.vue +51 -19
  130. package/components/auth/RoleDetailEdit.vue +69 -14
  131. package/components/auth/SelectPrincipal.vue +1 -0
  132. package/components/breadcrumb/index.vue +119 -0
  133. package/components/form/ArrayList.vue +177 -152
  134. package/components/form/ArrayListGrouped.vue +13 -3
  135. package/components/form/ArrayListSelect.vue +1 -1
  136. package/components/form/BannerSettings.vue +64 -59
  137. package/components/form/ChangePassword.vue +5 -5
  138. package/components/form/ClusterAppearance.vue +4 -3
  139. package/components/form/ColorInput.vue +32 -8
  140. package/components/form/Command.vue +4 -5
  141. package/components/form/Conditions.vue +15 -1
  142. package/components/form/Footer.vue +12 -8
  143. package/components/form/HealthCheck.vue +0 -2
  144. package/components/form/HookOption.vue +87 -58
  145. package/components/form/InputWithSelect.vue +8 -4
  146. package/components/form/KeyValue.vue +66 -8
  147. package/components/form/LabeledSelect.vue +216 -242
  148. package/components/form/Labels.vue +4 -4
  149. package/components/form/MatchExpressions.vue +28 -11
  150. package/components/form/Members/ClusterMembershipEditor.vue +1 -1
  151. package/components/form/Members/ClusterPermissionsEditor.vue +61 -43
  152. package/components/form/Members/MembershipEditor.vue +4 -4
  153. package/components/form/Members/ProjectMembershipEditor.vue +1 -1
  154. package/components/form/NameNsDescription.vue +76 -21
  155. package/components/form/Networking.vue +6 -9
  156. package/components/form/NodeAffinity.vue +29 -28
  157. package/components/form/Password.vue +16 -7
  158. package/components/form/PodAffinity.vue +24 -25
  159. package/components/form/Probe.vue +15 -11
  160. package/components/form/ProjectMemberEditor.vue +66 -48
  161. package/components/form/ResourceQuota/Namespace.vue +4 -4
  162. package/components/form/ResourceQuota/NamespaceRow.vue +26 -23
  163. package/components/form/ResourceQuota/Project.vue +4 -4
  164. package/components/form/ResourceQuota/ProjectRow.vue +38 -35
  165. package/components/form/ResourceSelector.vue +1 -1
  166. package/components/form/SecretSelector.vue +24 -23
  167. package/components/form/Security.vue +1 -3
  168. package/components/form/Select.vue +12 -3
  169. package/components/form/ServiceNameSelect.vue +2 -5
  170. package/components/form/ServicePorts.vue +149 -75
  171. package/components/form/SimpleSecretSelector.vue +29 -9
  172. package/components/form/Taints.vue +2 -1
  173. package/components/form/Tolerations.vue +13 -9
  174. package/components/form/UnitInput.vue +8 -3
  175. package/components/form/ValueFromResource.vue +110 -96
  176. package/components/form/WorkloadPorts.vue +143 -123
  177. package/components/formatter/BadgeStateFormatter.vue +8 -5
  178. package/components/formatter/LiveDate.vue +3 -3
  179. package/components/formatter/WorkloadHealthScale.vue +4 -3
  180. package/components/nav/Favorite.vue +5 -1
  181. package/components/nav/Group.vue +139 -99
  182. package/components/nav/Header.vue +127 -150
  183. package/components/nav/HeaderPageActionMenu.vue +1 -0
  184. package/components/nav/NamespaceFilter.vue +34 -36
  185. package/components/nav/TopLevelMenu.vue +62 -25
  186. package/components/nav/Type.vue +73 -43
  187. package/composables/useClickOutside.ts +1 -1
  188. package/config/menuRouteMap.js +10 -0
  189. package/config/private-label.js +15 -11
  190. package/config/product/auth.js +17 -7
  191. package/config/product/explorer.js +32 -10
  192. package/config/product/manager.js +28 -17
  193. package/config/product/settings.js +19 -9
  194. package/config/product/uiplugins.js +13 -10
  195. package/config/router/navigation-guards/index.js +61 -3
  196. package/config/settings.ts +28 -0
  197. package/config/table-headers.js +3 -2
  198. package/detail/node.vue +28 -23
  199. package/dialog/AddCustomBadgeDialog.vue +17 -9
  200. package/dialog/ForceMachineRemoveDialog.vue +2 -2
  201. package/dialog/RollbackWorkloadDialog.vue +1 -1
  202. package/dialog/ScalePoolDownDialog.vue +2 -2
  203. package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
  204. package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
  205. package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
  206. package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
  207. package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
  208. package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
  209. package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
  210. package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
  211. package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
  212. package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
  213. package/edit/configmap.vue +4 -0
  214. package/edit/logging-flow/index.vue +1 -2
  215. package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
  216. package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -19
  217. package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +23 -23
  218. package/edit/logging.banzaicloud.io.output/providers/datadog.vue +19 -19
  219. package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +14 -14
  220. package/edit/logging.banzaicloud.io.output/providers/forward.vue +12 -12
  221. package/edit/logging.banzaicloud.io.output/providers/gcs.vue +23 -23
  222. package/edit/logging.banzaicloud.io.output/providers/gelf.vue +6 -6
  223. package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
  224. package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +8 -8
  225. package/edit/logging.banzaicloud.io.output/providers/logdna.vue +17 -17
  226. package/edit/logging.banzaicloud.io.output/providers/logz.vue +7 -7
  227. package/edit/logging.banzaicloud.io.output/providers/loki.vue +12 -12
  228. package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
  229. package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +14 -14
  230. package/edit/logging.banzaicloud.io.output/providers/redis.vue +6 -6
  231. package/edit/logging.banzaicloud.io.output/providers/s3.vue +23 -23
  232. package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +13 -13
  233. package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
  234. package/edit/logging.banzaicloud.io.output/providers/syslog.vue +54 -54
  235. package/edit/management.cattle.io.user.vue +17 -4
  236. package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
  237. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +31 -31
  238. package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
  239. package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
  240. package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
  241. package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
  242. package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
  243. package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
  244. package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
  245. package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
  246. package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
  247. package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
  248. package/edit/namespace.vue +1 -2
  249. package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
  250. package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
  251. package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
  252. package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
  253. package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
  254. package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
  255. package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
  256. package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
  257. package/edit/persistentvolume/index.vue +3 -1
  258. package/edit/persistentvolumeclaim.vue +2 -0
  259. package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
  260. package/edit/secret/index.vue +2 -2
  261. package/edit/service.vue +4 -1
  262. package/edit/storage.k8s.io.storageclass/index.vue +10 -8
  263. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
  264. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
  265. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
  266. package/edit/token.vue +31 -12
  267. package/edit/workload/Job.vue +31 -34
  268. package/edit/workload/Upgrading.vue +5 -5
  269. package/edit/workload/index.vue +22 -18
  270. package/edit/workload/storage/Mount.vue +1 -0
  271. package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
  272. package/edit/workload/storage/azureDisk.vue +14 -10
  273. package/edit/workload/storage/azureFile.vue +9 -7
  274. package/edit/workload/storage/csi/index.vue +6 -9
  275. package/edit/workload/storage/emptyDir.vue +7 -5
  276. package/edit/workload/storage/gcePersistentDisk.vue +9 -7
  277. package/edit/workload/storage/hostPath.vue +7 -5
  278. package/edit/workload/storage/nfs.vue +8 -6
  279. package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
  280. package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
  281. package/edit/workload/storage/secret.vue +9 -6
  282. package/edit/workload/storage/vsphereVolume.vue +11 -7
  283. package/initialize/app-extended.js +7 -1
  284. package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
  285. package/list/management.cattle.io.setting.vue +22 -13
  286. package/list/management.cattle.io.user.vue +7 -3
  287. package/list/namespace.vue +3 -0
  288. package/list/provisioning.cattle.io.cluster.vue +6 -7
  289. package/mixins/brand.js +17 -0
  290. package/mixins/create-edit-view/impl.js +10 -0
  291. package/models/provisioning.cattle.io.cluster.js +19 -18
  292. package/models/workload.js +2 -2
  293. package/package.json +1 -1
  294. package/pages/account/index.vue +93 -58
  295. package/pages/account/pri.vue +229 -0
  296. package/pages/auth/login.vue +220 -52
  297. package/pages/auth/setup.vue +175 -33
  298. package/pages/c/_cluster/_product/namespaces.vue +5 -5
  299. package/pages/c/_cluster/auth/roles/index.vue +83 -8
  300. package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
  301. package/pages/c/_cluster/explorer/index.vue +2 -1
  302. package/pages/c/_cluster/explorer/tools/index.vue +6 -6
  303. package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
  304. package/pages/c/_cluster/settings/banners.vue +174 -102
  305. package/pages/c/_cluster/settings/brand.vue +350 -302
  306. package/pages/c/_cluster/settings/performance.vue +61 -38
  307. package/pages/home.vue +119 -37
  308. package/pages/prefs.vue +27 -25
  309. package/pkg/tsconfig.json +9 -9
  310. package/pkg/vue.config.js +1 -1
  311. package/plugins/dashboard-store/actions.js +1 -1
  312. package/plugins/dashboard-store/resource-class.js +28 -27
  313. package/promptRemove/mixin/roleDeletionCheck.js +2 -2
  314. package/public/index.html +4 -4
  315. package/rancher-components/BadgeState/BadgeState.vue +38 -55
  316. package/rancher-components/Banner/Banner.vue +25 -9
  317. package/rancher-components/Card/Card.vue +7 -8
  318. package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
  319. package/rancher-components/Form/LabeledInput/LabeledInput.vue +42 -3
  320. package/rancher-components/Form/Radio/RadioButton.vue +35 -11
  321. package/rancher-components/Form/Radio/RadioGroup.vue +22 -6
  322. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
  323. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -0
  324. package/rancher-components/LabeledTooltip/LabeledTooltip.vue +41 -4
  325. package/rancher-components/RcDropdown/RcDropdown.vue +35 -7
  326. package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
  327. package/rancher-components/RcDropdown/RcDropdownMenu.vue +12 -6
  328. package/rancher-components/RcDropdown/types.ts +1 -0
  329. package/rancher-components/StringList/StringList.vue +1 -1
  330. package/scripts/build-pkg.sh +18 -23
  331. package/scripts/publish-shell.sh +1 -1
  332. package/static/favicon.ico +0 -0
  333. package/static/favicon.png +0 -0
  334. package/static/loading-indicator.html +3 -3
  335. package/store/i18n.js +6 -2
  336. package/store/modal.ts +3 -3
  337. package/store/prefs.js +11 -4
  338. package/store/type-map.js +30 -2
  339. package/types/shell/index.d.ts +86 -97
  340. package/utils/error.js +109 -8
  341. package/utils/errorTranslate.json +1740 -0
  342. package/utils/errorTranslateNew.json +39 -0
  343. package/utils/roleFiltering.js +33 -0
  344. package/utils/router.js +21 -0
  345. package/utils/select.js +26 -3
  346. package/utils/string.js +8 -5
  347. package/utils/title.ts +1 -1
  348. package/vue.config.js +1 -1
@@ -143,30 +143,46 @@ export default {
143
143
  return [this.permissionGroup];
144
144
  },
145
145
  options() {
146
+
146
147
  const customRoles = this.customRoles.map((role) => ({
147
148
  label: role.nameDisplay,
148
149
  description: role.description || role.metadata?.annotations?.[DESCRIPTION] || this.t('members.clusterPermissions.noDescription'),
149
150
  value: role.id
150
151
  }));
151
152
 
152
- return [
153
- {
154
- label: this.t('members.clusterPermissions.owner.label'),
155
- description: this.t('members.clusterPermissions.owner.description'),
156
- value: 'owner'
157
- },
158
- {
159
- label: this.t('members.clusterPermissions.member.label'),
160
- description: this.t('members.clusterPermissions.member.description'),
161
- value: 'member'
162
- },
163
- ...customRoles,
164
- {
165
- label: this.t('members.clusterPermissions.custom.label'),
166
- description: this.t('members.clusterPermissions.custom.description'),
167
- value: 'custom'
168
- }
169
- ];
153
+ let optionList = [{
154
+ label: this.t('members.clusterPermissions.cluster-tenant.label'),
155
+ description: this.t('members.clusterPermissions.cluster-tenant.description'),
156
+ value: 'cluster-tenant'
157
+ }];
158
+
159
+ if (sessionStorage.getItem('TOPLEVELPERMISSIONS') === 'superadmin') {
160
+ optionList = [
161
+ {
162
+ label: this.t('members.clusterPermissions.cluster-tenant.label'),
163
+ description: this.t('members.clusterPermissions.cluster-tenant.description'),
164
+ value: 'cluster-tenant'
165
+ },
166
+ {
167
+ label: this.t('members.clusterPermissions.owner.label'),
168
+ description: this.t('members.clusterPermissions.owner.description'),
169
+ value: 'owner'
170
+ },
171
+ {
172
+ label: this.t('members.clusterPermissions.member.label'),
173
+ description: this.t('members.clusterPermissions.member.description'),
174
+ value: 'member'
175
+ },
176
+ ...customRoles,
177
+ {
178
+ label: this.t('members.clusterPermissions.custom.label'),
179
+ description: this.t('members.clusterPermissions.custom.description'),
180
+ value: 'custom'
181
+ }
182
+ ];
183
+ }
184
+
185
+ return optionList
170
186
  },
171
187
  principal() {
172
188
  const principalId = this.principalId.replace(/\//g, '%2F');
@@ -232,11 +248,10 @@ export default {
232
248
  v-else
233
249
  class="cluster-permissions-editor"
234
250
  >
235
- <div class="row mt-10">
251
+ <div class="row mt-10 mb-20">
236
252
  <div class="col span-12">
237
253
  <SelectPrincipal
238
254
  v-focus
239
- class="mb-20"
240
255
  :mode="mode"
241
256
  :retain-selection="true"
242
257
  data-testid="cluster-member-select"
@@ -259,31 +274,34 @@ export default {
259
274
  </div>
260
275
  </template>
261
276
  <template v-slot:body>
262
- <RadioGroup
263
- v-model:value="permissionGroup"
264
- :options="options"
265
- name="permission-group"
266
- />
267
- <div
268
- v-if="permissionGroup === 'custom'"
269
- class="custom-permissions ml-20 mt-10"
270
- :class="{'two-column': useTwoColumnsForCustom}"
271
- >
277
+ <div style="max-height: 250px; overflow: auto;">
278
+ <RadioGroup
279
+ v-model:value="permissionGroup"
280
+ :options="options"
281
+ :flexDirection="'column'"
282
+ name="permission-group"
283
+ />
272
284
  <div
273
- v-for="(permission, i) in customPermissionsUpdate"
274
- :key="i"
285
+ v-if="permissionGroup === 'custom'"
286
+ class="custom-permissions ml-20 mt-10"
287
+ :class="{'two-column': useTwoColumnsForCustom}"
275
288
  >
276
- <Checkbox
277
- v-model:value="permission.value"
278
- :disabled="permission.locked"
279
- class="mb-5"
280
- :label="permission.label"
281
- />
282
- <i
283
- v-if="permission.locked"
284
- v-clean-tooltip="permission.tooltip"
285
- class="icon icon-lock icon-fw"
286
- />
289
+ <div
290
+ v-for="(permission, i) in customPermissionsUpdate"
291
+ :key="i"
292
+ >
293
+ <Checkbox
294
+ v-model:value="permission.value"
295
+ :disabled="permission.locked"
296
+ class="mb-5"
297
+ :label="permission.label"
298
+ />
299
+ <i
300
+ v-if="permission.locked"
301
+ v-clean-tooltip="permission.tooltip"
302
+ class="icon icon-lock icon-fw"
303
+ />
304
+ </div>
287
305
  </div>
288
306
  </div>
289
307
  </template>
@@ -170,7 +170,7 @@ export default {
170
170
  >
171
171
  <template #column-headers>
172
172
  <div class="box mb-0">
173
- <div class="column-headers row">
173
+ <div class="column-headers row" :style="{ width: isView ? '100%' : 'calc(100% - 100px)'}">
174
174
  <div class="col span-6">
175
175
  <label class="text-label">{{ t('membershipEditor.user') }}</label>
176
176
  </div>
@@ -181,7 +181,7 @@ export default {
181
181
  </div>
182
182
  </template>
183
183
  <template #columns="{row, i}">
184
- <div class="columns row">
184
+ <div style="width: 100%;" class="columns row">
185
185
  <div class="col span-6">
186
186
  <Principal
187
187
  :value="row.value.principalId"
@@ -191,7 +191,7 @@ export default {
191
191
  :data-testid="`role-item-${i}`"
192
192
  class="col span-6 role"
193
193
  >
194
- {{ row.value.roleDisplay }}
194
+ {{ $store.getters['i18n/withFallback'](`customConversion.${row.value.roleDisplay}`, row.value.roleDisplay) }}
195
195
  </div>
196
196
  </div>
197
197
  </template>
@@ -206,7 +206,7 @@ export default {
206
206
  </button>
207
207
  </template>
208
208
  <template #remove-button="{remove, i}">
209
- <span v-if="(isCreate && i === 0) || isView" />
209
+ <div style="width: 100px;" v-if="(isCreate && i === 0) || isView" />
210
210
  <button
211
211
  v-else
212
212
  type="button"
@@ -58,6 +58,6 @@ export default {
58
58
  :type="NORMAN.PROJECT_ROLE_TEMPLATE_BINDING"
59
59
  :mode="mode"
60
60
  parent-key="projectId"
61
- :parent-id="parentId"
61
+ :parent-id="parentId"
62
62
  />
63
63
  </template>
@@ -156,6 +156,10 @@ export default {
156
156
  type: Boolean,
157
157
  default: true,
158
158
  },
159
+ isDialog: {
160
+ type: Boolean,
161
+ default: false
162
+ },
159
163
  rules: {
160
164
  default: () => ({
161
165
  namespace: [],
@@ -172,6 +176,11 @@ export default {
172
176
  componentTestid: {
173
177
  type: String,
174
178
  default: 'name-ns-description'
179
+ },
180
+
181
+ extraNamespaceOptions: {
182
+ type: Array,
183
+ default: () => []
175
184
  }
176
185
  },
177
186
 
@@ -252,7 +261,7 @@ export default {
252
261
  const options = namespaces
253
262
  .map((namespace) => ({ nameDisplay: namespace, id: namespace }))
254
263
  .map(props.namespaceMapper || ((obj) => ({
255
- label: obj.nameDisplay,
264
+ label: obj.nameDisplay.replace('harvester', 'cloud'),
256
265
  value: obj.id,
257
266
  })));
258
267
 
@@ -265,6 +274,16 @@ export default {
265
274
  });
266
275
  }
267
276
 
277
+ if (props.extraNamespaceOptions && props.extraNamespaceOptions.length > 0) {
278
+ props.extraNamespaceOptions.map(item => {
279
+ const objs = {
280
+ label: item,
281
+ value: item,
282
+ }
283
+ sortedByLabel.push(objs);
284
+ })
285
+ }
286
+
268
287
  const createButton = {
269
288
  label: t('namespace.createNamespace'),
270
289
  value: '',
@@ -276,10 +295,10 @@ export default {
276
295
  kind: 'divider'
277
296
  };
278
297
 
279
- const createOverhead = canCreateNamespace.value || props.createNamespaceOverride ? [createButton, divider] : [];
298
+ // const createOverhead = canCreateNamespace.value || props.createNamespaceOverride ? [createButton, divider] : [];
280
299
 
281
300
  return [
282
- ...createOverhead,
301
+ // ...createOverhead,
283
302
  ...sortedByLabel
284
303
  ];
285
304
  });
@@ -356,10 +375,11 @@ export default {
356
375
 
357
376
  colSpan() {
358
377
  if (!this.horizontal) {
359
- return `span-8`;
378
+ return `span-6`;
360
379
  }
361
380
  // Name and namespace take up two columns.
362
- let cols = (this.nameNsHidden ? 0 : 2) + (this.descriptionHidden ? 0 : 1) + this.extraColumns.length;
381
+ // let cols = (this.nameNsHidden ? 0 : 2) + (this.descriptionHidden ? 0 : 1) + this.extraColumns.length;
382
+ let cols = 2;
363
383
 
364
384
  cols = Math.max(2, cols); // If there's only one column, make it render half-width as if there were two
365
385
  const span = 12 / cols; // If there's 5, 7, or more columns this will break; don't do that.
@@ -428,13 +448,18 @@ export default {
428
448
  </script>
429
449
 
430
450
  <template>
431
- <div class="row mb-20">
432
- <slot name="project-selector" />
451
+ <div class="row">
452
+
453
+ <!-- 命名空间创建输入框 -->
433
454
  <div
434
455
  v-if="namespaced && !nameNsHidden && createNamespace"
435
456
  :data-testid="componentTestid + '-namespace-create'"
436
- class="col span-3"
457
+ class="col span-6"
458
+ :class=" isDialog? 'namespace-item-row mb-20': 'col span-6'"
459
+ style="display: flex;"
437
460
  >
461
+
462
+ <!-- 输入命名空间名称 -->
438
463
  <LabeledInput
439
464
  ref="namespaceInput"
440
465
  v-model:value="namespace"
@@ -446,6 +471,8 @@ export default {
446
471
  :required="nameRequired"
447
472
  :rules="rules.namespace"
448
473
  />
474
+
475
+ <!-- 取消创建命名空间按钮 -->
449
476
  <button
450
477
  :aria-label="t('namespace.cancelCreateAriaLabel')"
451
478
  @click="cancelCreateNamespace"
@@ -456,10 +483,12 @@ export default {
456
483
  />
457
484
  </button>
458
485
  </div>
486
+
487
+ <!-- 命名空间选择下拉框 -->
459
488
  <div
460
489
  v-if="namespaced && !nameNsHidden && !createNamespace"
461
490
  :data-testid="componentTestid + '-namespace'"
462
- class="col span-3"
491
+ :class=" isDialog? 'namespace-item-row mb-20': 'col span-6'"
463
492
  >
464
493
  <LabeledSelect
465
494
  v-show="!createNamespace"
@@ -478,10 +507,11 @@ export default {
478
507
  />
479
508
  </div>
480
509
 
510
+ <!-- 名称输入框 -->
481
511
  <div
482
512
  v-if="!nameHidden && !nameNsHidden"
483
513
  :data-testid="componentTestid + '-name'"
484
- class="col span-3"
514
+ :class=" isDialog? 'namespace-item-row mb-20': 'col span-6'"
485
515
  >
486
516
  <LabeledInput
487
517
  ref="nameInput"
@@ -498,11 +528,29 @@ export default {
498
528
  />
499
529
  </div>
500
530
 
531
+ <!-- 自定义插槽,可插入额外内容 -->
501
532
  <slot name="customize" />
502
- <div
533
+
534
+ <!-- <div
503
535
  v-show="!descriptionHidden"
504
536
  :data-testid="componentTestid + '-description'"
505
537
  :class="['col', extraColumns.length > 0 ? 'span-3' : 'span-6']"
538
+ > -->
539
+
540
+ <!-- 额外的动态列 -->
541
+ <div
542
+ v-for="(slot, i) in extraColumns"
543
+ :key="i"
544
+ :class="{ col: true, [colSpan]: true }"
545
+ >
546
+ <slot :name="slot" />
547
+ </div>
548
+
549
+ <!-- 描述输入框 -->
550
+ <div
551
+ v-show="!descriptionHidden"
552
+ :data-testid="componentTestid + '-description'"
553
+ :class=" isDialog? 'namespace-item-row mb-20': 'col span-6'"
506
554
  >
507
555
  <LabeledInput
508
556
  key="description"
@@ -516,13 +564,15 @@ export default {
516
564
  />
517
565
  </div>
518
566
 
567
+ <!-- 底部插槽 -->
519
568
  <div
520
- v-for="(slot, i) in extraColumns"
521
- :key="i"
522
- :class="{ col: true, [colSpan]: true }"
569
+ v-if="$slots.bottom"
570
+ style="width: 100%;"
523
571
  >
524
- <slot :name="slot" />
572
+ <slot name="bottom" />
525
573
  </div>
574
+
575
+ <!-- 间隔占位符 -->
526
576
  <div
527
577
  v-if="showSpacer"
528
578
  class="spacer"
@@ -533,13 +583,8 @@ export default {
533
583
  <style lang="scss" scoped>
534
584
  button {
535
585
  all: unset;
536
- height: 0;
537
- position: relative;
538
- top: -35px;
539
- float: right;
540
- margin-right: 7px;
541
-
542
586
  cursor: pointer;
587
+ margin-left: 10px;
543
588
 
544
589
  .align-value {
545
590
  padding-top: 7px;
@@ -576,4 +621,14 @@ button {
576
621
  }
577
622
 
578
623
  }
624
+ .namespace-item-row{
625
+ width: 100%;
626
+ margin-bottom: 4px;
627
+ position:relative;
628
+ display: flex;
629
+ }
630
+ .namespace-item-row ::v-deep textarea{
631
+ width: 400px;
632
+ }
633
+
579
634
  </style>
@@ -160,7 +160,7 @@ export default {
160
160
  <div>
161
161
  <div>
162
162
  <h3>{{ t('workload.container.titles.networkSettings') }}</h3>
163
- <div class="row mb-20">
163
+ <div class="row">
164
164
  <div class="col span-6">
165
165
  <LabeledSelect
166
166
  v-model:value="networkMode"
@@ -205,12 +205,11 @@ export default {
205
205
  </div>
206
206
  </div>
207
207
  </div>
208
- <div class="spacer" />
209
208
 
210
- <div>
209
+ <div class="mt-20">
211
210
  <h3>{{ t('workload.networking.dns') }}</h3>
212
211
  <div class="row">
213
- <div class="col span-6">
212
+ <div class="span-6">
214
213
  <ArrayList
215
214
  key="dnsNameservers"
216
215
  v-model:value="nameservers"
@@ -222,7 +221,7 @@ export default {
222
221
  @update:value="update"
223
222
  />
224
223
  </div>
225
- <div class="col span-6">
224
+ <div class="span-6">
226
225
  <ArrayList
227
226
  key="dnsSearches"
228
227
  v-model:value="searches"
@@ -236,9 +235,8 @@ export default {
236
235
  </div>
237
236
  </div>
238
237
  </div>
239
- <div class="spacer" />
240
238
 
241
- <div class="mt-20">
239
+ <div>
242
240
  <div class="row">
243
241
  <KeyValue
244
242
  v-model:value="options"
@@ -254,9 +252,8 @@ export default {
254
252
  />
255
253
  </div>
256
254
  </div>
257
- <div class="spacer" />
258
255
 
259
- <div class="row mt-20">
256
+ <div class="row mt-40">
260
257
  <div class="col span-12">
261
258
  <KeyValue
262
259
  key="hostAliases"
@@ -210,33 +210,31 @@ export default {
210
210
  @remove="remove"
211
211
  >
212
212
  <template #default="props">
213
- <div class="row">
214
- <div class="col span-9">
215
- <LabeledSelect
216
- :options="affinityOptions"
217
- :value="priorityDisplay(props.row.value)"
218
- :label="t('workload.scheduling.affinity.priority')"
219
- :mode="mode"
220
- :data-testid="`node-affinity-priority-index${props.i}`"
221
- @update:value="(changePriority(props.row.value))"
222
- />
223
- </div>
224
- <div
225
- v-if="'weight' in props.row.value"
226
- class="col span-3"
227
- >
228
- <LabeledInput
229
- v-model:value.number="props.row.value.weight"
230
- :mode="mode"
231
- type="number"
232
- min="1"
233
- max="100"
234
- :label="t('workload.scheduling.affinity.weight.label')"
235
- :placeholder="t('workload.scheduling.affinity.weight.placeholder')"
236
- :data-testid="`node-affinity-weight-index${props.i}`"
237
- @update:value="update"
238
- />
239
- </div>
213
+ <div class="col">
214
+ <LabeledSelect
215
+ :options="affinityOptions"
216
+ :value="priorityDisplay(props.row.value)"
217
+ :label="t('workload.scheduling.affinity.priority')"
218
+ :mode="mode"
219
+ :data-testid="`node-affinity-priority-index${props.i}`"
220
+ @update:value="(changePriority(props.row.value))"
221
+ />
222
+ </div>
223
+ <div
224
+ v-if="'weight' in props.row.value"
225
+ class="col"
226
+ >
227
+ <LabeledInput
228
+ v-model:value.number="props.row.value.weight"
229
+ :mode="mode"
230
+ type="number"
231
+ min="1"
232
+ max="100"
233
+ :label="t('workload.scheduling.affinity.weight.label')"
234
+ :placeholder="t('workload.scheduling.affinity.weight.placeholder')"
235
+ :data-testid="`node-affinity-weight-index${props.i}`"
236
+ @update:value="update"
237
+ />
240
238
  </div>
241
239
  <MatchExpressions
242
240
  :value="matchingSelectorDisplay ? props.row.value : props.row.value.matchExpressions"
@@ -254,5 +252,8 @@ export default {
254
252
  </div>
255
253
  </template>
256
254
 
257
- <style>
255
+ <style lang="scss" scoped>
256
+ .weight_input{
257
+ margin-left: 10px;
258
+ }
258
259
  </style>
@@ -41,6 +41,10 @@ export default {
41
41
  mode: {
42
42
  type: String,
43
43
  default: _CREATE,
44
+ },
45
+ placeholder: {
46
+ type: String,
47
+ default: '',
44
48
  }
45
49
  },
46
50
  data() {
@@ -116,6 +120,7 @@ export default {
116
120
  :disabled="isRandom"
117
121
  :ignore-password-managers="ignorePasswordManagers"
118
122
  :mode="mode"
123
+ :placeholder="placeholder"
119
124
  @blur="$emit('blur', $event)"
120
125
  >
121
126
  <template #suffix>
@@ -148,12 +153,13 @@ export default {
148
153
  </LabeledInput>
149
154
  <div
150
155
  v-if="isRandom"
151
- class="mt-10 genPassword"
156
+ class="genPassword"
152
157
  >
153
158
  <a
154
159
  href="#"
155
160
  @click.prevent.stop="generatePassword"
156
- ><i class="icon icon-refresh" /> {{ t('changePassword.newGeneratedPassword') }}</a>
161
+ style="height: 32px;display: flex;align-items: center;"
162
+ ><i class="icon icon-refresh mr-5 pl-5" /> {{ t('changePassword.newGeneratedPassword') }}</a>
157
163
  </div>
158
164
  </div>
159
165
  </template>
@@ -161,20 +167,23 @@ export default {
161
167
  <style lang="scss" scoped>
162
168
  .password {
163
169
  display: flex;
164
- flex-direction: column;
170
+ /* flex-direction: column; */
165
171
 
166
172
  .labeled-input {
167
173
  .addon {
168
- display: flex;
174
+ position: absolute;
175
+ top: 6px;
176
+ right: 6px;
177
+ /* display: flex;
169
178
  align-items: center;
170
179
  justify-content: center;
171
180
  padding-left: 12px;
172
- min-width: 65px;
181
+ min-width: 65px; */
173
182
 
174
- .hide-show:focus-visible {
183
+ /* .hide-show:focus-visible {
175
184
  @include focus-outline;
176
185
  outline-offset: 4px;
177
- }
186
+ } */
178
187
  }
179
188
  }
180
189
  .genPassword {
@@ -364,36 +364,33 @@ export default {
364
364
  <div class="col span-12">
365
365
  <ArrayListGrouped
366
366
  v-model:value="allSelectorTerms"
367
- class="mt-20"
368
367
  :default-add-value="defaultAddValue"
369
368
  :mode="mode"
370
369
  :add-label="addLabel"
371
370
  @remove="remove"
372
371
  >
373
372
  <template #default="props">
374
- <div class="row mt-20 mb-20">
375
- <div class="col span-6">
376
- <LabeledSelect
377
- :mode="mode"
378
- :options="[t('workload.scheduling.affinity.affinityOption'),t('workload.scheduling.affinity.antiAffinityOption')]"
379
- :value="props.row.value._anti ?t('workload.scheduling.affinity.antiAffinityOption') :t('workload.scheduling.affinity.affinityOption') "
380
- :label="t('workload.scheduling.affinity.type')"
381
- :data-testid="`pod-affinity-type-index${props.i}`"
382
- @update:value="props.row.value._anti = !props.row.value._anti"
383
- />
384
- </div>
385
- <div class="col span-6">
386
- <LabeledSelect
387
- :mode="mode"
388
- :options="[t('workload.scheduling.affinity.preferred'),t('workload.scheduling.affinity.required')]"
389
- :value="priorityDisplay(props.row.value)"
390
- :label="t('workload.scheduling.affinity.priority')"
391
- :data-testid="`pod-affinity-priority-index${props.i}`"
392
- @update:value="changePriority(props.row.value, props.i)"
393
- />
394
- </div>
373
+ <div class="col">
374
+ <LabeledSelect
375
+ :mode="mode"
376
+ :options="[t('workload.scheduling.affinity.affinityOption'),t('workload.scheduling.affinity.antiAffinityOption')]"
377
+ :value="props.row.value._anti ?t('workload.scheduling.affinity.antiAffinityOption') :t('workload.scheduling.affinity.affinityOption') "
378
+ :label="t('workload.scheduling.affinity.type')"
379
+ :data-testid="`pod-affinity-type-index${props.i}`"
380
+ @update:value="props.row.value._anti = !props.row.value._anti"
381
+ />
395
382
  </div>
396
- <div class="row">
383
+ <div class="col">
384
+ <LabeledSelect
385
+ :mode="mode"
386
+ :options="[t('workload.scheduling.affinity.preferred'),t('workload.scheduling.affinity.required')]"
387
+ :value="priorityDisplay(props.row.value)"
388
+ :label="t('workload.scheduling.affinity.priority')"
389
+ :data-testid="`pod-affinity-priority-index${props.i}`"
390
+ @update:value="changePriority(props.row.value, props.i)"
391
+ />
392
+ </div>
393
+ <div class="row mb-20">
397
394
  <RadioGroup
398
395
  :options="namespaceSelectionOptions"
399
396
  :labels="namespaceSelectionLabels"
@@ -439,7 +436,7 @@ export default {
439
436
  @update:value="e=>updateLabelSelector(e, props)"
440
437
  />
441
438
  <div class="row mt-20">
442
- <div class="col span-9">
439
+ <div class="col">
443
440
  <LabeledSelect
444
441
  v-if="hasNodes"
445
442
  v-model:value="props.row.value.topologyKey"
@@ -467,9 +464,11 @@ export default {
467
464
  @update:value="update"
468
465
  />
469
466
  </div>
467
+ </div>
468
+ <div class="row">
470
469
  <div
471
470
  v-if="'weight' in props.row.value"
472
- class="col span-3"
471
+ class="col"
473
472
  >
474
473
  <LabeledInput
475
474
  v-model:value.number="props.row.value.weight"