dashboard-shell-shell 3.0.5-test.3 → 3.0.5-test.5

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 (30) hide show
  1. package/assets/styles/global/_button.scss +7 -7
  2. package/assets/styles/global/_tooltip.scss +4 -4
  3. package/assets/styles/themes/_light.scss +3 -1
  4. package/assets/translations/zh-hans.yaml +76 -0
  5. package/components/ActionDropdown.vue +1 -1
  6. package/components/CopyToClipboard.vue +15 -0
  7. package/components/Drawer/Chrome.vue +2 -2
  8. package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +23 -23
  9. package/components/Drawer/ResourceDetailDrawer/index.vue +2 -2
  10. package/components/ExplorerMembers.vue +18 -3
  11. package/components/PodSecurityAdmission.vue +1 -1
  12. package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
  13. package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
  14. package/components/Resource/Detail/Metadata/index.vue +2 -1
  15. package/components/Resource/Detail/TitleBar/Title.vue +4 -3
  16. package/components/Resource/Detail/TitleBar/index.vue +103 -24
  17. package/components/ResourceDetail/Masthead/legacy.vue +235 -164
  18. package/components/ResourceDetail/legacy.vue +29 -13
  19. package/components/SortableTable/index.vue +1 -1
  20. package/components/Tabbed/index.vue +1 -1
  21. package/components/auth/Principal.vue +35 -11
  22. package/components/breadcrumb/index.vue +340 -0
  23. package/components/form/LabeledSelect.vue +3 -2
  24. package/components/form/Taints.vue +2 -1
  25. package/components/form/WorkloadPorts.vue +143 -123
  26. package/edit/workload/index.vue +3 -3
  27. package/package.json +1 -1
  28. package/rancher-components/BadgeState/BadgeState.vue +33 -52
  29. package/rancher-components/RcDropdown/RcDropdownMenu.vue +8 -7
  30. package/store/i18n.js +3 -0
@@ -108,7 +108,7 @@ export default {
108
108
  >
109
109
  <div
110
110
  v-if="isCronJob"
111
- class="col span-3"
111
+ class="col span-6"
112
112
  >
113
113
  <LabeledInput
114
114
  v-model:value="spec.schedule"
@@ -122,7 +122,7 @@ export default {
122
122
  </div>
123
123
  <div
124
124
  v-if="isReplicable"
125
- class="col span-3"
125
+ class="col span-6"
126
126
  >
127
127
  <LabeledInput
128
128
  v-model:value.number="spec.replicas"
@@ -135,7 +135,7 @@ export default {
135
135
  </div>
136
136
  <div
137
137
  v-if="isStatefulSet"
138
- class="col span-3"
138
+ class="col span-6"
139
139
  >
140
140
  <LabeledSelect
141
141
  v-model:value="spec.serviceName"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashboard-shell-shell",
3
- "version": "3.0.5-test.3",
3
+ "version": "3.0.5-test.5",
4
4
  "description": "Rancher Dashboard Shell",
5
5
  "repository": "https://github.com/rancherlabs/dashboard",
6
6
  "license": "Apache-2.0",
@@ -63,60 +63,41 @@ export default defineComponent({
63
63
  </script>
64
64
 
65
65
  <template>
66
- <span :class="['badge-state', bg]">
67
- <i
68
- v-if="icon"
69
- class="icon"
70
- :class="{[icon]: true, 'mr-5': !!msg}"
71
- />{{ msg }}
72
- </span>
66
+ <div style="display: flex;flex-direction: row;align-items: center;font-size: 12px;">
67
+ <div :class="{ [bg]: true }"></div>
68
+ <span style="margin-left: 5px;">{{ msg }}</span>
69
+
70
+ </div>
73
71
  </template>
74
-
75
72
  <style lang="scss" scoped>
76
- .badge-state {
77
- align-items: center;
78
- display: inline-flex;
79
- padding: 2px 10px;
80
- border: 1px solid transparent;
81
- border-radius: 20px;
82
-
83
- &.bg-info {
84
- border-color: var(--info);
85
- }
86
-
87
- &.bg-error {
88
- border-color: var(--error);
89
- }
90
-
91
- &.bg-warning {
92
- border-color: var(--warning);
93
- }
94
-
95
- // Successful states are de-emphasized by using [text-]color instead of background-color
96
- &.bg-success {
97
- color: var(--success);
98
- background: transparent;
99
- border-color: var(--success);
100
- }
101
-
102
- // Added badge-disabled instead of bg-disabled since bg-disabled is used in other places with !important styling, an investigation is needed to make the naming consistent
103
- &.badge-disabled {
104
- color: var(--badge-state-disabled-text);
105
- background-color: var( --badge-state-disabled-bg);
106
- border: 1px solid var(--badge-state-disabled-border);
107
- }
73
+ .bg-error {
74
+ width: 10px; /* 圆点的宽度 */
75
+ height: 10px; /* 圆点的高度 */
76
+ background-color: #DD0C17; /* 圆点的颜色 */
77
+ border-radius: 50%; /* 设置为圆形 */
108
78
  }
109
- </style>
110
- <style lang="scss">
111
- // TODO: #6005
112
- // Investigate why this is here.. I don't think that styles for sortable table should belong here
113
- .sortable-table TD .badge-state {
114
- @include clip;
115
- display: inline-block;
116
- max-width: 100%;
117
- position: relative;
118
- max-width: 110px;
119
- font-size: .85em;
120
- vertical-align: middle;
79
+ .bg-darker {
80
+ width: 10px; /* 圆点的宽度 */
81
+ height: 10px; /* 圆点的高度 */
82
+ background-color: #DD0C17; /* 圆点的颜色 */
83
+ border-radius: 50%; /* 设置为圆形 */
84
+ }
85
+ .bg-success {
86
+ width: 10px; /* 圆点的宽度 */
87
+ height: 10px; /* 圆点的高度 */
88
+ background-color: #95F204 !important; /* 圆点的颜色 */
89
+ border-radius: 50%; /* 设置为圆形 */
90
+ }
91
+ .bg-warning {
92
+ width: 10px; /* 圆点的宽度 */
93
+ height: 10px; /* 圆点的高度 */
94
+ background-color: #DAC342; /* 圆点的颜色 */
95
+ border-radius: 50%; /* 设置为圆形 */
96
+ }
97
+ .bg-info {
98
+ width: 10px; /* 圆点的宽度 */
99
+ height: 10px; /* 圆点的高度 */
100
+ background-color: #1890FF; /* 圆点的颜色 */
101
+ border-radius: 50%; /* 设置为圆形 */
121
102
  }
122
103
  </style>
@@ -33,10 +33,10 @@ const hasOptions = (options: DropdownOption[]) => {
33
33
  :data-testid="dataTestid"
34
34
  :aria-label="buttonAriaLabel"
35
35
  >
36
- <div v-if="showIcon">
37
- <i class="icon icon-actions" />
38
- </div>
39
- <a v-else href="javascript:;">操作</a>
36
+ <div v-if="showIcon">
37
+ <i data-v-5db2c2c7="" class="icon icon-actions" alt="More actions icon"></i>
38
+ </div>
39
+ <a v-else href="javascript:;">操作</a>
40
40
  </rc-dropdown-trigger>
41
41
  <template #dropdownCollection>
42
42
  <template
@@ -58,15 +58,16 @@ const hasOptions = (options: DropdownOption[]) => {
58
58
  </template> -->
59
59
  {{ a.label }}
60
60
  </rc-dropdown-item>
61
- <rc-dropdown-separator
61
+ <!-- <rc-dropdown-separator
62
62
  v-else
63
- />
63
+ /> -->
64
64
  </template>
65
65
  <rc-dropdown-item
66
66
  v-if="!hasOptions(options)"
67
67
  disabled
68
68
  >
69
- 暂无可执行的操作。
69
+ <!-- No actions available -->
70
+ 暂无可执行的操作。
70
71
  </rc-dropdown-item>
71
72
  </template>
72
73
  </rc-dropdown>
package/store/i18n.js CHANGED
@@ -231,6 +231,9 @@ export const actions = {
231
231
  if ( !selected || !exists) {
232
232
  selected = 'zh-hans';
233
233
  }
234
+
235
+ // selected = 'none'
236
+ selected = 'zh-hans'
234
237
 
235
238
  return dispatch('switchTo', selected);
236
239
  },