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.
- package/assets/styles/global/_button.scss +7 -7
- package/assets/styles/global/_tooltip.scss +4 -4
- package/assets/styles/themes/_light.scss +3 -1
- package/assets/translations/zh-hans.yaml +76 -0
- package/components/ActionDropdown.vue +1 -1
- package/components/CopyToClipboard.vue +15 -0
- package/components/Drawer/Chrome.vue +2 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +23 -23
- package/components/Drawer/ResourceDetailDrawer/index.vue +2 -2
- package/components/ExplorerMembers.vue +18 -3
- package/components/PodSecurityAdmission.vue +1 -1
- 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 +2 -1
- package/components/Resource/Detail/TitleBar/Title.vue +4 -3
- package/components/Resource/Detail/TitleBar/index.vue +103 -24
- package/components/ResourceDetail/Masthead/legacy.vue +235 -164
- package/components/ResourceDetail/legacy.vue +29 -13
- package/components/SortableTable/index.vue +1 -1
- package/components/Tabbed/index.vue +1 -1
- package/components/auth/Principal.vue +35 -11
- package/components/breadcrumb/index.vue +340 -0
- package/components/form/LabeledSelect.vue +3 -2
- package/components/form/Taints.vue +2 -1
- package/components/form/WorkloadPorts.vue +143 -123
- package/edit/workload/index.vue +3 -3
- package/package.json +1 -1
- package/rancher-components/BadgeState/BadgeState.vue +33 -52
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +8 -7
- package/store/i18n.js +3 -0
package/edit/workload/index.vue
CHANGED
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
>
|
|
109
109
|
<div
|
|
110
110
|
v-if="isCronJob"
|
|
111
|
-
class="col span-
|
|
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-
|
|
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-
|
|
138
|
+
class="col span-6"
|
|
139
139
|
>
|
|
140
140
|
<LabeledSelect
|
|
141
141
|
v-model:value="spec.serviceName"
|
package/package.json
CHANGED
|
@@ -63,60 +63,41 @@ export default defineComponent({
|
|
|
63
63
|
</script>
|
|
64
64
|
|
|
65
65
|
<template>
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
border:
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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>
|