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.
Files changed (353) 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 +44 -0
  43. package/assets/images/logo.png +0 -0
  44. package/assets/images/logo.svg +47 -0
  45. package/assets/images/pl/dark/logo.png +0 -0
  46. package/assets/images/pl/half-logo.svg +2 -23
  47. package/assets/images/pl/harvester.png +0 -0
  48. package/assets/images/pl/logo.png +0 -0
  49. package/assets/images/promp-yellow.svg +5 -0
  50. package/assets/images/user.png +0 -0
  51. package/assets/styles/all.scss +83 -0
  52. package/assets/styles/app.scss +5 -0
  53. package/assets/styles/base/_basic.scss +2 -2
  54. package/assets/styles/base/_helpers.scss +1 -1
  55. package/assets/styles/base/_mixins.scss +1 -1
  56. package/assets/styles/base/_typography.scss +2 -1
  57. package/assets/styles/base/_variables.scss +14 -7
  58. package/assets/styles/fonts/_icons.scss +3 -2
  59. package/assets/styles/global/_button.scss +44 -26
  60. package/assets/styles/global/_columns.scss +3 -1
  61. package/assets/styles/global/_form.scss +46 -13
  62. package/assets/styles/global/_labeled-input.scss +54 -26
  63. package/assets/styles/global/_layout.scss +8 -3
  64. package/assets/styles/global/_select.scss +25 -17
  65. package/assets/styles/global/_table.scss +7 -1
  66. package/assets/styles/global/_tooltip.scss +60 -8
  67. package/assets/styles/themes/_dark.scss +3 -0
  68. package/assets/styles/themes/_light.scss +69 -46
  69. package/assets/styles/vendor/vue-select.scss +24 -10
  70. package/assets/translations/en-us.yaml +92 -4
  71. package/assets/translations/zh-hans.yaml +668 -206
  72. package/components/ActionDropdown.vue +2 -1
  73. package/components/ActionMenu.vue +2 -2
  74. package/components/ActionMenuShell.vue +2 -0
  75. package/components/AppModal.vue +46 -5
  76. package/components/BrandImage.vue +1 -0
  77. package/components/ButtonDropdown.vue +28 -4
  78. package/components/ButtonMultiAction.vue +1 -0
  79. package/components/ClusterIconMenu.vue +2 -2
  80. package/components/CodeMirror.vue +26 -10
  81. package/components/ConsumptionGauge.vue +24 -5
  82. package/components/ContainerResourceLimit.vue +2 -2
  83. package/components/CopyToClipboard.vue +15 -0
  84. package/components/CruResource.vue +12 -10
  85. package/components/CruResourceFooter.vue +2 -2
  86. package/components/DashboardOptions.vue +29 -17
  87. package/components/DotState.vue +84 -0
  88. package/components/Drawer/Chrome.vue +2 -2
  89. package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +30 -27
  90. package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
  91. package/components/Drawer/ResourceDetailDrawer/index.vue +5 -4
  92. package/components/ExplorerMembers.vue +28 -4
  93. package/components/ExplorerProjectsNamespaces.vue +19 -5
  94. package/components/GlobalRoleBindings.vue +23 -4
  95. package/components/GrafanaDashboard.vue +4 -4
  96. package/components/GrowlManager.vue +3 -1
  97. package/components/HardwareResourceGauge.vue +39 -3
  98. package/components/IndentedPanel.vue +4 -10
  99. package/components/InfoBox.vue +3 -3
  100. package/components/InputOrDisplay.vue +28 -2
  101. package/components/LabelValue.vue +20 -1
  102. package/components/ModalWithCard.vue +12 -3
  103. package/components/PodSecurityAdmission.vue +2 -2
  104. package/components/PromptModal.vue +1 -1
  105. package/components/PromptRemove.vue +53 -12
  106. package/components/RelatedResources.vue +3 -0
  107. package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
  108. package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
  109. package/components/Resource/Detail/Metadata/index.vue +3 -1
  110. package/components/Resource/Detail/TitleBar/Title.vue +4 -3
  111. package/components/Resource/Detail/TitleBar/Top.vue +2 -0
  112. package/components/Resource/Detail/TitleBar/composables.ts +16 -1
  113. package/components/Resource/Detail/TitleBar/index.vue +125 -27
  114. package/components/ResourceDetail/Masthead/index.vue +1 -1
  115. package/components/ResourceDetail/Masthead/latest.vue +1 -1
  116. package/components/ResourceDetail/Masthead/legacy.vue +183 -39
  117. package/components/ResourceDetail/legacy.vue +47 -29
  118. package/components/ResourceList/Masthead.vue +222 -54
  119. package/components/ResourceList/ResourceLoadingIndicator.vue +5 -2
  120. package/components/ResourceTable.vue +40 -2
  121. package/components/SideNav.vue +74 -20
  122. package/components/SingleClusterInfo.vue +2 -1
  123. package/components/SortableTable/THead.vue +79 -4
  124. package/components/SortableTable/index.vue +1053 -464
  125. package/components/SortableTable/paging.js +26 -16
  126. package/components/SortableTable/selection.js +2 -2
  127. package/components/Tabbed/Tab.vue +3 -3
  128. package/components/Tabbed/index.vue +53 -30
  129. package/components/YamlEditor.vue +0 -1
  130. package/components/auth/Principal.vue +51 -19
  131. package/components/auth/RoleDetailEdit.vue +69 -14
  132. package/components/auth/SelectPrincipal.vue +1 -0
  133. package/components/breadcrumb/index.vue +119 -0
  134. package/components/form/ArrayList.vue +177 -152
  135. package/components/form/ArrayListGrouped.vue +13 -3
  136. package/components/form/ArrayListSelect.vue +1 -1
  137. package/components/form/BannerSettings.vue +64 -59
  138. package/components/form/ChangePassword.vue +5 -5
  139. package/components/form/ClusterAppearance.vue +4 -3
  140. package/components/form/ColorInput.vue +32 -8
  141. package/components/form/Command.vue +4 -5
  142. package/components/form/Conditions.vue +15 -1
  143. package/components/form/Footer.vue +12 -8
  144. package/components/form/HealthCheck.vue +0 -2
  145. package/components/form/HookOption.vue +87 -58
  146. package/components/form/InputWithSelect.vue +8 -4
  147. package/components/form/KeyValue.vue +66 -8
  148. package/components/form/LabeledSelect.vue +216 -242
  149. package/components/form/Labels.vue +4 -4
  150. package/components/form/MatchExpressions.vue +28 -11
  151. package/components/form/Members/ClusterMembershipEditor.vue +1 -1
  152. package/components/form/Members/ClusterPermissionsEditor.vue +61 -43
  153. package/components/form/Members/MembershipEditor.vue +4 -4
  154. package/components/form/Members/ProjectMembershipEditor.vue +1 -1
  155. package/components/form/NameNsDescription.vue +62 -22
  156. package/components/form/Networking.vue +6 -9
  157. package/components/form/NodeAffinity.vue +29 -28
  158. package/components/form/Password.vue +16 -7
  159. package/components/form/PodAffinity.vue +24 -25
  160. package/components/form/Probe.vue +15 -11
  161. package/components/form/ProjectMemberEditor.vue +66 -48
  162. package/components/form/ResourceQuota/Namespace.vue +4 -4
  163. package/components/form/ResourceQuota/NamespaceRow.vue +26 -23
  164. package/components/form/ResourceQuota/Project.vue +4 -4
  165. package/components/form/ResourceQuota/ProjectRow.vue +38 -35
  166. package/components/form/ResourceSelector.vue +1 -1
  167. package/components/form/SecretSelector.vue +24 -23
  168. package/components/form/Security.vue +1 -3
  169. package/components/form/Select.vue +12 -3
  170. package/components/form/ServiceNameSelect.vue +2 -5
  171. package/components/form/ServicePorts.vue +149 -75
  172. package/components/form/SimpleSecretSelector.vue +29 -9
  173. package/components/form/Taints.vue +2 -1
  174. package/components/form/Tolerations.vue +13 -9
  175. package/components/form/UnitInput.vue +8 -3
  176. package/components/form/ValueFromResource.vue +110 -96
  177. package/components/form/WorkloadPorts.vue +143 -123
  178. package/components/formatter/BadgeStateFormatter.vue +8 -5
  179. package/components/formatter/LiveDate.vue +3 -3
  180. package/components/formatter/WorkloadHealthScale.vue +4 -3
  181. package/components/nav/Favorite.vue +5 -1
  182. package/components/nav/Group.vue +139 -99
  183. package/components/nav/Header.vue +138 -164
  184. package/components/nav/HeaderPageActionMenu.vue +1 -0
  185. package/components/nav/NamespaceFilter.vue +34 -36
  186. package/components/nav/TopLevelMenu.vue +62 -25
  187. package/components/nav/Type.vue +73 -43
  188. package/composables/useClickOutside.ts +1 -1
  189. package/config/menuRouteMap.js +10 -0
  190. package/config/private-label.js +14 -11
  191. package/config/product/auth.js +17 -7
  192. package/config/product/explorer.js +32 -10
  193. package/config/product/manager.js +28 -17
  194. package/config/product/settings.js +19 -9
  195. package/config/product/uiplugins.js +13 -10
  196. package/config/router/navigation-guards/index.js +61 -3
  197. package/config/settings.ts +28 -0
  198. package/config/table-headers.js +3 -2
  199. package/detail/node.vue +28 -23
  200. package/dialog/AddCustomBadgeDialog.vue +17 -9
  201. package/dialog/ForceMachineRemoveDialog.vue +2 -2
  202. package/dialog/RollbackWorkloadDialog.vue +1 -1
  203. package/dialog/ScalePoolDownDialog.vue +2 -2
  204. package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
  205. package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
  206. package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
  207. package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
  208. package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
  209. package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
  210. package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
  211. package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
  212. package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
  213. package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
  214. package/edit/configmap.vue +4 -0
  215. package/edit/logging-flow/index.vue +1 -2
  216. package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
  217. package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -19
  218. package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +23 -23
  219. package/edit/logging.banzaicloud.io.output/providers/datadog.vue +19 -19
  220. package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +14 -14
  221. package/edit/logging.banzaicloud.io.output/providers/forward.vue +12 -12
  222. package/edit/logging.banzaicloud.io.output/providers/gcs.vue +23 -23
  223. package/edit/logging.banzaicloud.io.output/providers/gelf.vue +6 -6
  224. package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
  225. package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +8 -8
  226. package/edit/logging.banzaicloud.io.output/providers/logdna.vue +17 -17
  227. package/edit/logging.banzaicloud.io.output/providers/logz.vue +7 -7
  228. package/edit/logging.banzaicloud.io.output/providers/loki.vue +12 -12
  229. package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
  230. package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +14 -14
  231. package/edit/logging.banzaicloud.io.output/providers/redis.vue +6 -6
  232. package/edit/logging.banzaicloud.io.output/providers/s3.vue +23 -23
  233. package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +13 -13
  234. package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
  235. package/edit/logging.banzaicloud.io.output/providers/syslog.vue +54 -54
  236. package/edit/management.cattle.io.user.vue +17 -4
  237. package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
  238. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +50 -26
  239. package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
  240. package/edit/monitoring.coreos.com.alertmanagerconfig/types/dingding.vue +32 -0
  241. package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
  242. package/edit/monitoring.coreos.com.alertmanagerconfig/types/message.vue +52 -0
  243. package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
  244. package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
  245. package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
  246. package/edit/monitoring.coreos.com.alertmanagerconfig/types/snmp.vue +45 -0
  247. package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
  248. package/edit/monitoring.coreos.com.alertmanagerconfig/types/work.vue +31 -0
  249. package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
  250. package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
  251. package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
  252. package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
  253. package/edit/namespace.vue +1 -2
  254. package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
  255. package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
  256. package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
  257. package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
  258. package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
  259. package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
  260. package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
  261. package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
  262. package/edit/persistentvolume/index.vue +3 -1
  263. package/edit/persistentvolumeclaim.vue +2 -0
  264. package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
  265. package/edit/secret/index.vue +2 -2
  266. package/edit/service.vue +4 -1
  267. package/edit/storage.k8s.io.storageclass/index.vue +10 -8
  268. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
  269. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
  270. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
  271. package/edit/token.vue +31 -12
  272. package/edit/workload/Job.vue +31 -34
  273. package/edit/workload/Upgrading.vue +5 -5
  274. package/edit/workload/index.vue +22 -18
  275. package/edit/workload/storage/Mount.vue +1 -0
  276. package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
  277. package/edit/workload/storage/azureDisk.vue +14 -10
  278. package/edit/workload/storage/azureFile.vue +9 -7
  279. package/edit/workload/storage/csi/index.vue +6 -9
  280. package/edit/workload/storage/emptyDir.vue +7 -5
  281. package/edit/workload/storage/gcePersistentDisk.vue +9 -7
  282. package/edit/workload/storage/hostPath.vue +7 -5
  283. package/edit/workload/storage/nfs.vue +8 -6
  284. package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
  285. package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
  286. package/edit/workload/storage/secret.vue +9 -6
  287. package/edit/workload/storage/vsphereVolume.vue +11 -7
  288. package/initialize/app-extended.js +7 -1
  289. package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
  290. package/list/management.cattle.io.setting.vue +22 -13
  291. package/list/management.cattle.io.user.vue +7 -3
  292. package/list/namespace.vue +3 -0
  293. package/list/provisioning.cattle.io.cluster.vue +6 -7
  294. package/mixins/brand.js +17 -0
  295. package/mixins/create-edit-view/impl.js +10 -0
  296. package/models/provisioning.cattle.io.cluster.js +19 -18
  297. package/models/workload.js +2 -2
  298. package/package.json +1 -1
  299. package/pages/account/index.vue +93 -58
  300. package/pages/account/pri.vue +229 -0
  301. package/pages/auth/login.vue +216 -51
  302. package/pages/auth/setup.vue +175 -33
  303. package/pages/c/_cluster/_product/namespaces.vue +5 -5
  304. package/pages/c/_cluster/auth/roles/index.vue +83 -8
  305. package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
  306. package/pages/c/_cluster/explorer/index.vue +2 -1
  307. package/pages/c/_cluster/explorer/tools/index.vue +6 -6
  308. package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
  309. package/pages/c/_cluster/settings/banners.vue +174 -102
  310. package/pages/c/_cluster/settings/brand.vue +350 -302
  311. package/pages/c/_cluster/settings/performance.vue +61 -38
  312. package/pages/home.vue +119 -37
  313. package/pages/prefs.vue +27 -25
  314. package/pkg/tsconfig.json +9 -9
  315. package/pkg/vue.config.js +1 -1
  316. package/plugins/dashboard-store/actions.js +1 -1
  317. package/plugins/dashboard-store/resource-class.js +28 -27
  318. package/promptRemove/mixin/roleDeletionCheck.js +2 -2
  319. package/public/index.html +4 -4
  320. package/rancher-components/BadgeState/BadgeState.vue +38 -55
  321. package/rancher-components/Banner/Banner.vue +25 -9
  322. package/rancher-components/Card/Card.vue +7 -8
  323. package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
  324. package/rancher-components/Form/LabeledInput/LabeledInput.vue +42 -3
  325. package/rancher-components/Form/Radio/RadioButton.vue +35 -11
  326. package/rancher-components/Form/Radio/RadioGroup.vue +22 -6
  327. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
  328. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -0
  329. package/rancher-components/LabeledTooltip/LabeledTooltip.vue +41 -4
  330. package/rancher-components/RcDropdown/RcDropdown.vue +35 -7
  331. package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
  332. package/rancher-components/RcDropdown/RcDropdownMenu.vue +12 -6
  333. package/rancher-components/RcDropdown/types.ts +1 -0
  334. package/rancher-components/StringList/StringList.vue +1 -1
  335. package/scripts/build-pkg.sh +18 -23
  336. package/scripts/publish-shell.sh +1 -1
  337. package/static/favicon.ico +0 -0
  338. package/static/favicon.png +0 -0
  339. package/static/loading-indicator.html +3 -3
  340. package/store/i18n.js +6 -2
  341. package/store/modal.ts +3 -3
  342. package/store/prefs.js +11 -4
  343. package/store/type-map.js +30 -2
  344. package/types/shell/index.d.ts +86 -97
  345. package/utils/error.js +109 -8
  346. package/utils/errorTranslate.json +1740 -0
  347. package/utils/errorTranslateNew.json +39 -0
  348. package/utils/roleFiltering.js +33 -0
  349. package/utils/router.js +21 -0
  350. package/utils/select.js +26 -3
  351. package/utils/string.js +8 -5
  352. package/utils/title.ts +1 -1
  353. package/vue.config.js +1 -1
@@ -212,6 +212,7 @@ export default {
212
212
  border: 1px solid var(--dropdown-border);
213
213
  padding: 0px;
214
214
  text-align: left;
215
+ border-radius: 2px;
215
216
 
216
217
  LI {
217
218
  padding: 10px;
@@ -222,7 +223,7 @@ export default {
222
223
 
223
224
  > .divider-inner {
224
225
  padding: 0;
225
- border-bottom: 1px solid var(--dropdown-divider);
226
+ border-bottom: 0px solid var(--dropdown-divider);
226
227
  width: 125%;
227
228
  margin: 0 auto;
228
229
  }
@@ -305,7 +305,7 @@ export default {
305
305
  color: var(--dropdown-text);
306
306
  background-color: var(--dropdown-bg);
307
307
  border: 1px solid var(--dropdown-border);
308
- border-radius: 5px;
308
+ border-radius: 3px;
309
309
  box-shadow: 0 5px 20px var(--shadow);
310
310
 
311
311
  LI {
@@ -326,7 +326,7 @@ export default {
326
326
 
327
327
  &.divider {
328
328
  padding: 0;
329
- border-bottom: 1px solid var(--dropdown-divider);
329
+ border-bottom: 0px solid var(--dropdown-divider);
330
330
  }
331
331
 
332
332
  &:not(.divider):hover {
@@ -18,6 +18,7 @@ type RcDropdownMenuComponentProps = {
18
18
  dataTestid?: string;
19
19
  resource: Object;
20
20
  customActions?: DropdownOption[];
21
+ showIcon: Boolean;
21
22
  }
22
23
 
23
24
  const props = defineProps <RcDropdownMenuComponentProps>();
@@ -101,5 +102,6 @@ const menuOptions = () => {
101
102
  :data-testid="dataTestid"
102
103
  @update:open="openChanged"
103
104
  @select="(e: MouseEvent, option: object) => execute(option, e)"
105
+ :showIcon="showIcon"
104
106
  />
105
107
  </template>
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  */
31
31
  width: {
32
32
  type: [Number, String],
33
- default: 600,
33
+ default: 610,
34
34
  validator(value) {
35
35
  if (typeof value === 'number') {
36
36
  return value > 0;
@@ -101,7 +101,7 @@ export default defineComponent({
101
101
  return `${ this.width }${ uom }`;
102
102
  }
103
103
 
104
- return '600px';
104
+ return '610px';
105
105
  },
106
106
  stylesPropToObj(): object {
107
107
  return this.styles.split(';')
@@ -164,6 +164,14 @@ export default defineComponent({
164
164
  this.$emit('close');
165
165
  }
166
166
  },
167
+ close(event: MouseEvent) {
168
+ if (
169
+ this.$refs.modalRef
170
+ ) {
171
+ this.$emit('close');
172
+ }
173
+ // this.$emit('close');
174
+ },
167
175
  handleEscapeKey(event: KeyboardEvent) {
168
176
  if (this.clickToClose && event.key === 'Escape') {
169
177
  this.$emit('close');
@@ -206,8 +214,20 @@ export default defineComponent({
206
214
  aria-modal="true"
207
215
  @click.stop
208
216
  >
217
+ <div
218
+ class="close-dailog-icon"
219
+ >
220
+ <button
221
+ class="btn btn-sm role-link hide-bar"
222
+ @click="close"
223
+ >
224
+ <i class="icon icon-x" />
225
+ </button>
226
+ </div>
227
+ <div>
209
228
  <slot><!--Empty content--></slot>
210
229
  </div>
230
+ </div>
211
231
  </div>
212
232
  </transition>
213
233
  </teleport>
@@ -220,18 +240,21 @@ export default defineComponent({
220
240
  left: 0;
221
241
  width: 100vw;
222
242
  height: 100vh;
223
- background-color: var(--overlay-bg);
243
+ /* background-color: var(--overlay-bg); */
244
+ background-color: var(--overlay-model-bg);
224
245
  display: flex;
225
246
  justify-content: center;
226
247
  align-items: center;
227
- z-index: z-index('modalOverlay');
248
+ /* z-index: z-index('modalOverlay'); */
249
+ z-index: 50;
228
250
 
229
251
  .modal-container {
230
252
  background-color: var(--modal-bg);
231
253
  border-radius: var(--border-radius);
232
254
  max-height: 95vh;
233
255
  overflow: auto;
234
- border: 2px solid var(--modal-border);
256
+ border: 0px;
257
+ position: relative;
235
258
  }
236
259
  }
237
260
 
@@ -244,4 +267,22 @@ export default defineComponent({
244
267
  .modal-fade-leave-to {
245
268
  opacity: 0;
246
269
  }
270
+ .hide-bar{
271
+ width: 32px;
272
+ min-width: 32px !important;
273
+ }
274
+ .close-dailog-icon{
275
+ position: absolute;
276
+ right: 13px;
277
+ top: 18px;
278
+ & > button{
279
+ color:var(--body-text) !important;
280
+ min-width: 32px !important;
281
+ width: 32px !important;
282
+ & > button:hover{
283
+ color:var(--body-text) !important;
284
+ }
285
+ }
286
+
287
+ }
247
288
  </style>
@@ -131,5 +131,6 @@ export default {
131
131
  <img
132
132
  v-bind="$attrs"
133
133
  :src="pathToBrandedImage"
134
+ style="height: 50px;"
134
135
  >
135
136
  </template>
@@ -196,7 +196,8 @@ export default {
196
196
  @update:modelValue="$emit('click-action', $event)"
197
197
  >
198
198
  <template #no-options>
199
- <slot name="no-options" />
199
+ 暂无数据
200
+ <!-- <slot name="no-options" /> -->
200
201
  </template>
201
202
 
202
203
  <template #selected-option="option">
@@ -247,16 +248,37 @@ export default {
247
248
  }
248
249
  }
249
250
  .button-dropdown {
250
- background: var(--accent-btn);
251
+ /* background: var(--accent-btn); */
252
+ background: var(--accent-btn-hover);
251
253
  border: solid 1px var(--link);
252
254
  color: var(--link);
253
255
  padding: 0;
254
256
 
257
+ &{
258
+ :deep() .vs__dropdown-toggle .vs__actions,
259
+ :deep() .vs__selected-options {
260
+ background: var(--accent-btn-hover);
261
+ }
262
+ :deep() .vs__selected-options .vs__selected button {
263
+ background-color: transparent;
264
+ color: var(--accent-btn-hover-text);
265
+ }
266
+ :deep() .vs__dropdown-toggle .vs__actions {
267
+ &:after {
268
+ color: var(--accent-btn-hover-text);
269
+ // padding-top: 10px;
270
+ display: flex;
271
+ align-items: center;
272
+ }
273
+ }
274
+ }
275
+
255
276
  &.vs--open :deep() {
256
277
  outline: none;
257
278
  box-shadow: none;
258
279
  }
259
280
 
281
+
260
282
  &:hover {
261
283
  :deep() .vs__dropdown-toggle .vs__actions,
262
284
  :deep() .vs__selected-options {
@@ -275,6 +297,7 @@ export default {
275
297
 
276
298
  :deep() > .vs__dropdown-toggle {
277
299
  width: 100%;
300
+ width: 100px;
278
301
  display: grid;
279
302
  grid-template-columns: 75% 25%;
280
303
  border: none;
@@ -283,7 +306,7 @@ export default {
283
306
  .vs__actions {
284
307
 
285
308
  &:after {
286
- color: var(--link);
309
+ color: var(--accent-btn-hover-text);
287
310
  line-height: 1;
288
311
  }
289
312
  }
@@ -297,7 +320,8 @@ export default {
297
320
  button {
298
321
  border: none;
299
322
  background: transparent;
300
- color: var(--link);
323
+ color: var(--accent-btn-hover-text);
324
+ min-width: 83px;
301
325
  }
302
326
  }
303
327
  .vs__search {
@@ -30,6 +30,7 @@ const buttonClass = computed(() => {
30
30
  class="icon icon-actions"
31
31
  :alt="t('sortableTable.tableActionsImgAlt')"
32
32
  />
33
+ <!-- <i style="font-style: normal;">操作</i> -->
33
34
  </button>
34
35
  </template>
35
36
 
@@ -159,7 +159,7 @@ export default {
159
159
  display: flex;
160
160
  align-items: center;
161
161
  justify-content: center;
162
- color: var(--default-active-text);
162
+ color: var(--primary);
163
163
  font-weight: bold;
164
164
  background: var(--nav-icon-badge-bg);
165
165
  border: 1px solid var(--border);
@@ -168,7 +168,7 @@ export default {
168
168
  text-transform: uppercase;
169
169
 
170
170
  .custom-color-decoration {
171
- height: 4px;
171
+ height: 0px;
172
172
  width: 100%;
173
173
  margin: 0 auto;
174
174
  position: absolute;
@@ -5,7 +5,7 @@ import { _EDIT, _VIEW } from '@shell/config/query-params';
5
5
  export default {
6
6
  name: 'CodeMirror',
7
7
 
8
- emits: ['onReady', 'onInput', 'onChanges', 'onFocus', 'validationChanged'],
8
+ emits: ['onReady', 'onInput', 'onChanges', 'onFocus'],
9
9
 
10
10
  props: {
11
11
  /**
@@ -140,9 +140,9 @@ export default {
140
140
  },
141
141
 
142
142
  watch: {
143
- hasLintErrors(neu) {
144
- this.$emit('validationChanged', !neu);
145
- },
143
+ // hasLintErrors(neu) {
144
+ // this.$emit('validationChanged', !neu);
145
+ // },
146
146
 
147
147
  isCodeMirrorContainerFocused: {
148
148
  handler(neu) {
@@ -209,7 +209,7 @@ export default {
209
209
  },
210
210
 
211
211
  onReady(codeMirrorRef) {
212
- this.$emit('validationChanged', true);
212
+ // this.$emit('validationChanged', true);
213
213
 
214
214
  this.$nextTick(() => {
215
215
  codeMirrorRef.refresh();
@@ -279,7 +279,7 @@ export default {
279
279
  id="code-mirror-el"
280
280
  ref="codeMirrorRef"
281
281
  :value="value"
282
- :options="combinedOptions"
282
+
283
283
  :disabled="isDisabled"
284
284
  :original-style="true"
285
285
  @ready="onReady"
@@ -288,6 +288,19 @@ export default {
288
288
  @focus="onFocus"
289
289
  @blur="onBlur"
290
290
  />
291
+ <!-- <Codemirror
292
+ id="code-mirror-el"
293
+ ref="codeMirrorRef"
294
+ :value="value"
295
+ :options="combinedOptions"
296
+ :disabled="isDisabled"
297
+ :original-style="true"
298
+ @ready="onReady"
299
+ @input="onInput"
300
+ @changes="onChanges"
301
+ @focus="onFocus"
302
+ @blur="onBlur"
303
+ /> -->
291
304
  <span
292
305
  v-show="isCodeMirrorFocused"
293
306
  class="escape-text"
@@ -310,12 +323,12 @@ export default {
310
323
  }
311
324
 
312
325
  &.as-text-area .codemirror-container{
313
- min-height: 40px;
326
+ min-height: 32px !important;
314
327
  position: relative;
315
328
  display: block;
316
329
  box-sizing: border-box;
317
330
  width: 100%;
318
- padding: 10px;
331
+ padding: 8px 10px 0 10px !important;
319
332
  background-color: var(--input-bg);
320
333
  border-radius: var(--border-radius);
321
334
  border: solid var(--border-width) var(--input-border);
@@ -356,6 +369,7 @@ export default {
356
369
  }
357
370
 
358
371
  .CodeMirror-lines {
372
+ background-color: var(--input-bg);
359
373
  color: var(--input-text);
360
374
  padding: 0;
361
375
 
@@ -404,7 +418,7 @@ export default {
404
418
 
405
419
  .code-mirror {
406
420
  position: relative;
407
- margin-bottom: 20px;
421
+ margin-bottom: 0 !important;
408
422
 
409
423
  .escape-text {
410
424
  font-size: 12px;
@@ -484,5 +498,7 @@ export default {
484
498
  }
485
499
  }
486
500
  }
487
-
501
+ .CodeMirror-scroll {
502
+ min-height: 350px;
503
+ }
488
504
  </style>
@@ -59,7 +59,11 @@ export default {
59
59
  usedAsResourceName: {
60
60
  type: Boolean,
61
61
  defaut: false
62
- }
62
+ },
63
+ reserveText: {
64
+ type: String,
65
+ defaut: '预留'
66
+ },
63
67
  },
64
68
  computed: {
65
69
  displayUnits() {
@@ -91,13 +95,13 @@ export default {
91
95
  </script>
92
96
 
93
97
  <template>
94
- <div class="consumption-gauge">
98
+ <!-- <div class="consumption-gauge">
95
99
  <h3 v-if="resourceName && !usedAsResourceName">
96
100
  {{ resourceName }}
97
101
  </h3>
98
- <div class="numbers">
102
+ <div class="numbers"> -->
99
103
  <!-- @slot Optional slot to use as the title rather than showing the resource name -->
100
- <slot
104
+ <!-- <slot
101
105
  name="title"
102
106
  :amountTemplateValues="amountTemplateValues"
103
107
  :formattedPercentage="formattedPercentage"
@@ -118,7 +122,22 @@ export default {
118
122
  :color-stops="colorStops"
119
123
  />
120
124
  </div>
121
- </div>
125
+ </div> -->
126
+ <div class="consumption-gauge">
127
+ <div
128
+ v-if="resourceName && !usedAsResourceName"
129
+ class="mb-20"
130
+ >
131
+ {{ resourceName }}
132
+ </div>
133
+ <slot
134
+ name="content"
135
+ :amountTemplateValues="amountTemplateValues"
136
+ :formattedPercentage="formattedPercentage"
137
+ >
138
+ <p>{{ formattedPercentage + '(共' + (amountTemplateValues.total || 0) + ' ' + (amountTemplateValues.unit || 'GiB') + ',' + (reserveText || '') + ' ' + (amountTemplateValues.used || 0) + ' ' + (amountTemplateValues.unit || 'GiB') + ')' }}</p>
139
+ </slot>
140
+ </div>
122
141
  </template>
123
142
 
124
143
  <style lang="scss">
@@ -177,7 +177,7 @@ export default {
177
177
  </div>
178
178
  </div>
179
179
 
180
- <div class="row mb-20">
180
+ <div class="row">
181
181
  <span class="col span-6">
182
182
  <UnitInput
183
183
  v-model:value="requestsCpu"
@@ -206,7 +206,7 @@ export default {
206
206
  </span>
207
207
  </div>
208
208
 
209
- <div class="row mb-20">
209
+ <div class="row">
210
210
  <span class="col span-6">
211
211
  <UnitInput
212
212
  v-model:value="limitsCpu"
@@ -42,3 +42,18 @@ export default {
42
42
  @click="clicked"
43
43
  />
44
44
  </template>
45
+
46
+ <style lang="scss"scoped>
47
+ button {
48
+ min-width: auto;
49
+ }
50
+
51
+ .bg-success{
52
+ background-color: var(--success-hover-text) !important;
53
+ color: #333 !important;
54
+ }
55
+ .bg-success:hover{
56
+ background-color: var(--success-hover-text) !important;
57
+ color: var(--primary) !important;
58
+ }
59
+ </style>
@@ -623,13 +623,14 @@ export default {
623
623
  />
624
624
  <span v-else>{{ subtype.label }}</span>
625
625
  </h5>
626
- <a
626
+ <!-- 禅道 3541 隐藏 更多信息 -->
627
+ <!-- <a
627
628
  v-if="subtype.docLink"
628
629
  :href="subtype.docLink"
629
630
  target="_blank"
630
631
  rel="noopener nofollow"
631
632
  class="flex-right"
632
- >{{ t('generic.moreInfo') }} <i class="icon icon-external-link" /></a>
633
+ >{{ t('generic.moreInfo') }} <i class="icon icon-external-link" /></a> -->
633
634
  </div>
634
635
  <hr
635
636
  v-if="subtype.description"
@@ -711,14 +712,14 @@ export default {
711
712
  </template>
712
713
  </template>
713
714
  <div class="controls-steps">
714
- <button
715
+ <!-- <button
715
716
  v-if="showYaml"
716
717
  type="button"
717
718
  class="btn role-secondary"
718
719
  @click="showPreviewYaml"
719
720
  >
720
721
  <t k="cruResource.previewYaml" />
721
- </button>
722
+ </button> -->
722
723
  <template
723
724
  v-if="showPrevious"
724
725
  name="back"
@@ -798,7 +799,7 @@ export default {
798
799
  #default
799
800
  >
800
801
  <div>
801
- <button
802
+ <!-- <button
802
803
  v-if="showYaml"
803
804
  :data-testid="componentTestid + '-yaml'"
804
805
  type="button"
@@ -806,7 +807,7 @@ export default {
806
807
  @click="showPreviewYaml"
807
808
  >
808
809
  <t k="cruResource.previewYaml" />
809
- </button>
810
+ </button> -->
810
811
  <AsyncButton
811
812
  v-if="!showSubtypeSelection"
812
813
  ref="save"
@@ -822,7 +823,7 @@ export default {
822
823
  </template>
823
824
  <!------ YAML ------>
824
825
  <!-- Hide this section until it's needed. This means we don't need to upfront create initialYaml -->
825
- <section
826
+ <!-- <section
826
827
  v-else-if="showYaml && !showAsForm"
827
828
  class="cru-resource-yaml-container resource-container cru__content"
828
829
  >
@@ -835,7 +836,7 @@ export default {
835
836
  :offer-preview="isEdit"
836
837
  :done-route="doneRoute"
837
838
  :done-override="resource.doneOverride"
838
- :show-errors="false"
839
+ :errors="errors"
839
840
  :apply-hooks="applyHooks"
840
841
  class="resource-container cru__content"
841
842
  @error="e=>$emit('error', e)"
@@ -896,7 +897,7 @@ export default {
896
897
  </slot>
897
898
  </template>
898
899
  </ResourceYaml>
899
- </section>
900
+ </section> -->
900
901
  </component>
901
902
  </section>
902
903
  </template>
@@ -910,7 +911,6 @@ export default {
910
911
  }
911
912
  }
912
913
  .create-resource-container {
913
-
914
914
  .resource-container {
915
915
  display: flex; // Ensures content grows in child CruResources
916
916
  flex-direction: column;
@@ -974,6 +974,7 @@ form.create-resource-container .cru {
974
974
  }
975
975
  }
976
976
  .cru {
977
+ height: 100%;
977
978
  display: flex;
978
979
  flex-direction: column;
979
980
  flex-grow: 1;
@@ -982,6 +983,7 @@ form.create-resource-container .cru {
982
983
  display: flex;
983
984
  flex-direction: column;
984
985
  flex-grow: 1;
986
+ height: 100%;
985
987
  }
986
988
 
987
989
  &__content {
@@ -115,12 +115,12 @@ export default {
115
115
  <style lang="scss">
116
116
  .cru-resource-footer {
117
117
  display: flex;
118
- justify-content: flex-end;
118
+ justify-content: flex-start;
119
119
  margin-top: 20px;
120
120
  z-index: z-index('cruFooter');
121
121
 
122
122
  .btn {
123
- margin-left: 20px;
123
+ margin-left: 10px;
124
124
  }
125
125
  }
126
126
 
@@ -102,26 +102,35 @@ export default {
102
102
 
103
103
  <template>
104
104
  <div class="graph-options">
105
- <div v-if="hasSummaryAndDetail">
106
- <ButtonGroup
107
- v-model:value="value.type"
108
- :options="detailSummaryOptions"
105
+ <div v-if="hasSummaryAndDetail" class="mr-10">
106
+ <ButtonGroup
107
+ v-model:value="value.type"
108
+ :options="detailSummaryOptions"
109
109
  />
110
110
  </div>
111
111
  <div v-else>
112
112
  <div />
113
113
  </div>
114
114
  <div class="range-refresh">
115
- <LabeledSelect
116
- v-model:value="value.range"
117
- :options="rangeOptions"
118
- :label="t('graphOptions.range')"
119
- />
120
- <LabeledSelect
121
- v-model:value="value.refreshRate"
122
- :options="refreshOptions"
123
- :label="t('graphOptions.refresh')"
115
+ <div class="mr-10">
116
+ <LabeledSelect
117
+ v-model:value="value.range"
118
+ :options="rangeOptions"
119
+ class="gafanana-select"
120
+ :selectWidth="'60px'"
121
+ :label="t('graphOptions.range')"
122
+ />
123
+ </div>
124
+ <div class="mr-10">
125
+ <LabeledSelect
126
+ v-model:value="value.refreshRate"
127
+ :options="refreshOptions"
128
+ class="gafanana-select"
129
+ :selectWidth="'60px'"
130
+ :label="t('graphOptions.refresh')"
124
131
  />
132
+ </div>
133
+
125
134
  </div>
126
135
  </div>
127
136
  </template>
@@ -131,17 +140,20 @@ export default {
131
140
  &, .range-refresh {
132
141
  display: flex;
133
142
  flex-direction: row;
134
- justify-content: flex-end;
143
+ /* justify-content: flex-end; */
135
144
  }
136
145
 
137
146
  & {
138
- justify-content: space-between;
147
+ /* justify-content: space-between; */
139
148
  align-items: center;
140
149
  }
141
150
 
142
- .labeled-select {
151
+ /* .labeled-select {
143
152
  width: 100px;
144
153
  margin-left: 10px;
145
- }
154
+ } */
155
+ }
156
+ .gafanana-select{
157
+ width: 300px;
146
158
  }
147
159
  </style>