dashboard-shell-shell 3.0.5-test.12 → 3.0.5-test.14
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/icons/iconfont.css +4 -1
- package/assets/images/pl/dark/logo.png +0 -0
- package/assets/styles/global/_select.scss +1 -1
- package/assets/styles/global/_tooltip.scss +5 -1
- package/assets/translations/zh-hans.yaml +5 -4
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +22 -19
- package/components/ExplorerMembers.vue +10 -1
- package/components/GlobalRoleBindings.vue +1 -58
- package/components/Resource/Detail/TitleBar/index.vue +26 -23
- package/components/ResourceDetail/Masthead/index.vue +1 -1
- package/components/ResourceDetail/Masthead/latest.vue +1 -1
- package/components/ResourceDetail/Masthead/legacy.vue +4 -4
- package/components/SortableTable/index.vue +2 -2
- package/components/Tabbed/index.vue +5 -1
- package/components/auth/Principal.vue +8 -3
- package/components/auth/RoleDetailEdit.vue +1 -1
- package/components/form/ArrayList.vue +163 -147
- package/components/form/Command.vue +4 -5
- package/components/form/Footer.vue +1 -0
- package/components/form/HealthCheck.vue +0 -2
- package/components/form/HookOption.vue +83 -58
- package/components/form/InputWithSelect.vue +8 -7
- package/components/form/KeyValue.vue +16 -2
- package/components/form/Labels.vue +1 -1
- package/components/form/MatchExpressions.vue +3 -4
- package/components/form/NameNsDescription.vue +1 -1
- package/components/form/Networking.vue +0 -1
- package/components/form/NodeAffinity.vue +29 -28
- package/components/form/PodAffinity.vue +19 -21
- package/components/form/Probe.vue +15 -11
- package/components/form/ResourceQuota/NamespaceRow.vue +1 -1
- package/components/form/ResourceQuota/Project.vue +1 -1
- package/components/form/ResourceQuota/ProjectRow.vue +1 -1
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/ServiceNameSelect.vue +1 -3
- package/components/form/ServicePorts.vue +149 -75
- package/components/form/Tolerations.vue +12 -9
- package/components/form/ValueFromResource.vue +110 -96
- package/components/nav/NamespaceFilter.vue +14 -19
- package/components/nav/TopLevelMenu.vue +98 -125
- package/config/router/navigation-guards/index.js +52 -3
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/networking.k8s.io.ingress/Certificate.vue +7 -5
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
- package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/secret/index.vue +2 -2
- package/edit/service.vue +4 -1
- package/edit/storage.k8s.io.storageclass/index.vue +10 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
- package/edit/workload/Job.vue +27 -29
- package/edit/workload/Upgrading.vue +3 -3
- package/edit/workload/index.vue +2 -2
- package/edit/workload/storage/Mount.vue +1 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
- package/edit/workload/storage/azureDisk.vue +14 -10
- package/edit/workload/storage/azureFile.vue +9 -7
- package/edit/workload/storage/csi/index.vue +6 -9
- package/edit/workload/storage/emptyDir.vue +7 -5
- package/edit/workload/storage/gcePersistentDisk.vue +9 -7
- package/edit/workload/storage/hostPath.vue +7 -5
- package/edit/workload/storage/nfs.vue +8 -6
- package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +18 -15
- package/edit/workload/storage/secret.vue +9 -6
- package/edit/workload/storage/vsphereVolume.vue +11 -7
- package/initialize/app-extended.js +7 -1
- package/package.json +1 -1
- package/pages/account/index.vue +90 -56
- package/pages/home.vue +3 -4
- package/rancher-components/Banner/Banner.vue +4 -1
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +31 -2
- package/store/i18n.js +1 -0
- package/utils/errorTranslate.json +82 -2
|
@@ -121,8 +121,8 @@ export default {
|
|
|
121
121
|
@removePvcForm="removePvcForm"
|
|
122
122
|
/>
|
|
123
123
|
</div>
|
|
124
|
-
<div class="row
|
|
125
|
-
<div class="col
|
|
124
|
+
<div class="row">
|
|
125
|
+
<div class="col mr-10">
|
|
126
126
|
<LabeledInput
|
|
127
127
|
v-model:value="value.name"
|
|
128
128
|
:required="true"
|
|
@@ -130,7 +130,16 @@ export default {
|
|
|
130
130
|
:label="t('workload.storage.volumeName')"
|
|
131
131
|
/>
|
|
132
132
|
</div>
|
|
133
|
-
<div class="col
|
|
133
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
134
|
+
<Checkbox
|
|
135
|
+
v-model:value="value.persistentVolumeClaim.readOnly"
|
|
136
|
+
:mode="mode"
|
|
137
|
+
:label="t('workload.storage.readOnly')"
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="row">
|
|
142
|
+
<div class="col">
|
|
134
143
|
<LabeledSelect
|
|
135
144
|
v-if="!createNew"
|
|
136
145
|
v-model:value="value.persistentVolumeClaim.claimName"
|
|
@@ -142,13 +151,6 @@ export default {
|
|
|
142
151
|
/>
|
|
143
152
|
</div>
|
|
144
153
|
</div>
|
|
145
|
-
<div class="row">
|
|
146
|
-
<Checkbox
|
|
147
|
-
v-model:value="value.persistentVolumeClaim.readOnly"
|
|
148
|
-
:mode="mode"
|
|
149
|
-
:label="t('workload.storage.readOnly')"
|
|
150
|
-
/>
|
|
151
|
-
</div>
|
|
152
154
|
</div>
|
|
153
155
|
</div>
|
|
154
156
|
</template>
|
|
@@ -156,8 +156,8 @@ export default {
|
|
|
156
156
|
|
|
157
157
|
<template>
|
|
158
158
|
<div>
|
|
159
|
-
<div class="row
|
|
160
|
-
<div class="col
|
|
159
|
+
<div class="row">
|
|
160
|
+
<div class="col">
|
|
161
161
|
<LabeledInput
|
|
162
162
|
v-model:value="value.metadata.name"
|
|
163
163
|
:mode="mode"
|
|
@@ -167,8 +167,9 @@ export default {
|
|
|
167
167
|
/>
|
|
168
168
|
</div>
|
|
169
169
|
</div>
|
|
170
|
-
<div class="row
|
|
171
|
-
<div
|
|
170
|
+
<div class="row">
|
|
171
|
+
<div style="width: 160px;"></div>
|
|
172
|
+
<div class="col">
|
|
172
173
|
<RadioGroup
|
|
173
174
|
v-model:value="isCreatePV"
|
|
174
175
|
name="isCreatePV"
|
|
@@ -177,7 +178,9 @@ export default {
|
|
|
177
178
|
:mode="mode"
|
|
178
179
|
/>
|
|
179
180
|
</div>
|
|
180
|
-
|
|
181
|
+
</div>
|
|
182
|
+
<div class="row">
|
|
183
|
+
<div class="col">
|
|
181
184
|
<LabeledSelect
|
|
182
185
|
v-if="isCreatePV"
|
|
183
186
|
v-model:value="spec.storageClassName"
|
|
@@ -200,16 +203,16 @@ export default {
|
|
|
200
203
|
</div>
|
|
201
204
|
</div>
|
|
202
205
|
|
|
203
|
-
<div class="row
|
|
204
|
-
<div class="col
|
|
205
|
-
<div class="access-modes">
|
|
206
|
-
<t
|
|
207
|
-
class="text-label"
|
|
208
|
-
k="persistentVolumeClaim.accessModes"
|
|
209
|
-
/>
|
|
210
|
-
<span class="text-error">*</span>
|
|
211
|
-
</div>
|
|
206
|
+
<div class="row">
|
|
207
|
+
<div class="col">
|
|
212
208
|
<div class="access-modes">
|
|
209
|
+
<div style="width: 160px;">
|
|
210
|
+
<t
|
|
211
|
+
class="text-label"
|
|
212
|
+
k="persistentVolumeClaim.accessModes"
|
|
213
|
+
/>
|
|
214
|
+
<span class="text-error">*</span>
|
|
215
|
+
</div>
|
|
213
216
|
<Checkbox
|
|
214
217
|
:mode="mode"
|
|
215
218
|
:value="value.spec.accessModes.includes('ReadWriteOnce')"
|
|
@@ -232,7 +235,7 @@ export default {
|
|
|
232
235
|
</div>
|
|
233
236
|
<div
|
|
234
237
|
v-if="isCreatePV"
|
|
235
|
-
class="col
|
|
238
|
+
class="col"
|
|
236
239
|
>
|
|
237
240
|
<UnitInput
|
|
238
241
|
v-model:value="spec.resources.requests.storage"
|
|
@@ -130,8 +130,8 @@ export default {
|
|
|
130
130
|
<template>
|
|
131
131
|
<div>
|
|
132
132
|
<div>
|
|
133
|
-
<div class="row
|
|
134
|
-
<div class="col
|
|
133
|
+
<div class="row">
|
|
134
|
+
<div class="col">
|
|
135
135
|
<LabeledInput
|
|
136
136
|
v-model:value="value.name"
|
|
137
137
|
:required="true"
|
|
@@ -139,8 +139,9 @@ export default {
|
|
|
139
139
|
:label="t('workload.storage.volumeName')"
|
|
140
140
|
/>
|
|
141
141
|
</div>
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
</div>
|
|
143
|
+
<div class="row">
|
|
144
|
+
<div class="col">
|
|
144
145
|
<LabeledInput
|
|
145
146
|
v-model:value="defaultMode"
|
|
146
147
|
:mode="mode"
|
|
@@ -149,7 +150,7 @@ export default {
|
|
|
149
150
|
</div>
|
|
150
151
|
</div>
|
|
151
152
|
<div class="row">
|
|
152
|
-
<div class="col
|
|
153
|
+
<div class="col">
|
|
153
154
|
<LabeledSelect
|
|
154
155
|
v-if="type==='secret'"
|
|
155
156
|
v-model:value="value[type].secretName"
|
|
@@ -169,7 +170,9 @@ export default {
|
|
|
169
170
|
:loading="loading"
|
|
170
171
|
/>
|
|
171
172
|
</div>
|
|
172
|
-
|
|
173
|
+
</div>
|
|
174
|
+
<div class="row">
|
|
175
|
+
<div class="col">
|
|
173
176
|
<RadioGroup
|
|
174
177
|
v-model:value="optional"
|
|
175
178
|
:mode="mode"
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
27
|
<div>
|
|
28
|
-
<div class="row
|
|
29
|
-
<div class="col
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col">
|
|
30
30
|
<LabeledInput
|
|
31
31
|
v-model:value="value.name"
|
|
32
32
|
:required="true"
|
|
@@ -35,8 +35,8 @@ export default {
|
|
|
35
35
|
/>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="row
|
|
39
|
-
<div class="col
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col">
|
|
40
40
|
<LabeledInput
|
|
41
41
|
v-model:value="value.vsphereVolume.storagePolicyID"
|
|
42
42
|
:mode="mode"
|
|
@@ -44,7 +44,9 @@ export default {
|
|
|
44
44
|
:required="true"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
|
-
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<div class="col">
|
|
48
50
|
<LabeledInput
|
|
49
51
|
v-model:value.number="value.vsphereVolume.storagePolicyName"
|
|
50
52
|
:mode="mode"
|
|
@@ -53,7 +55,7 @@ export default {
|
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
55
57
|
<div class="row">
|
|
56
|
-
<div class="col
|
|
58
|
+
<div class="col">
|
|
57
59
|
<LabeledInput
|
|
58
60
|
v-model:value="value.vsphereVolume.volumePath"
|
|
59
61
|
:mode="mode"
|
|
@@ -61,7 +63,9 @@ export default {
|
|
|
61
63
|
:required="true"
|
|
62
64
|
/>
|
|
63
65
|
</div>
|
|
64
|
-
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row">
|
|
68
|
+
<div class="col">
|
|
65
69
|
<LabeledInput
|
|
66
70
|
v-model:value="value.vsphereVolume.fsType"
|
|
67
71
|
:mode="mode"
|
|
@@ -55,7 +55,13 @@ async function extendApp(vueApp) {
|
|
|
55
55
|
const next = (location) => appPartials.router.push(location);
|
|
56
56
|
// Resolve route
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
let path = getLocation(router.options.base, router.options.mode);
|
|
59
|
+
|
|
60
|
+
// 🔹 增加 rewrite,不改变原逻辑
|
|
61
|
+
if (path.includes('/cloud/')) {
|
|
62
|
+
path = path.replace(/cloud/g, 'harvester');
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
const route = router.resolve(path);
|
|
60
66
|
|
|
61
67
|
// Set context to app.context
|
package/package.json
CHANGED
package/pages/account/index.vue
CHANGED
|
@@ -151,45 +151,36 @@ export default {
|
|
|
151
151
|
<template>
|
|
152
152
|
<Loading v-if="$fetchState.pending" />
|
|
153
153
|
<div v-else>
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<h2 v-t="'accountAndKeys.account.title'" />
|
|
162
|
-
<div class="account">
|
|
163
|
-
<Principal
|
|
164
|
-
:value="principal.id"
|
|
165
|
-
:use-muted="false"
|
|
166
|
-
:show-labels="true"
|
|
167
|
-
/>
|
|
168
|
-
<div>
|
|
169
|
-
<button
|
|
170
|
-
v-if="canChangePassword"
|
|
171
|
-
role="button"
|
|
172
|
-
:aria-label="t('accountAndKeys.account.change')"
|
|
173
|
-
type="button"
|
|
174
|
-
class="btn role-primary"
|
|
175
|
-
data-testid="account_change_password"
|
|
176
|
-
@click="showChangePasswordDialog"
|
|
177
|
-
>
|
|
178
|
-
{{ t("accountAndKeys.account.change") }}
|
|
179
|
-
</button>
|
|
154
|
+
<div style="display: flex;align-items: center;margin-bottom: 20px;">
|
|
155
|
+
<!-- <BackLink class="backLinkCls" :link="backLink" /> -->
|
|
156
|
+
<div style="font-size: 26px;">
|
|
157
|
+
<TabTitle breadcrumb="vendor-only">
|
|
158
|
+
{{ t('accountAndKeys.title') }}
|
|
159
|
+
</TabTitle>
|
|
180
160
|
</div>
|
|
181
161
|
</div>
|
|
182
162
|
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
<div>
|
|
186
|
-
<
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
163
|
+
<div class="account_card mb-20">
|
|
164
|
+
<h5 v-t="'accountAndKeys.account.title'" />
|
|
165
|
+
<div class="account">
|
|
166
|
+
<Principal
|
|
167
|
+
:userLogoSize="79"
|
|
168
|
+
:value="principal.id"
|
|
169
|
+
:use-muted="false"
|
|
170
|
+
:show-labels="true"
|
|
171
|
+
/>
|
|
172
|
+
<div>
|
|
173
|
+
<button
|
|
174
|
+
v-if="canChangePassword"
|
|
175
|
+
role="button"
|
|
176
|
+
:aria-label="t('accountAndKeys.account.change')"
|
|
177
|
+
type="button"
|
|
178
|
+
class="btn role-primary"
|
|
179
|
+
data-testid="account_change_password"
|
|
180
|
+
@click="showChangePasswordDialog"
|
|
181
|
+
>
|
|
182
|
+
{{ t("accountAndKeys.account.change") }}
|
|
183
|
+
</button>
|
|
193
184
|
</div>
|
|
194
185
|
</div>
|
|
195
186
|
<button
|
|
@@ -203,31 +194,69 @@ export default {
|
|
|
203
194
|
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
204
195
|
</button>
|
|
205
196
|
</div>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
class="keys"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
197
|
+
|
|
198
|
+
<div class="account_card mb-20">
|
|
199
|
+
<div class="keys-header">
|
|
200
|
+
<div>
|
|
201
|
+
<h5 v-t="'accountAndKeys.apiKeys.title'" />
|
|
202
|
+
<div class="api-url">
|
|
203
|
+
<span>{{ t("accountAndKeys.apiKeys.apiEndpoint") }}</span>
|
|
204
|
+
<CopyToClipboardText
|
|
205
|
+
:aria-label="t('accountAndKeys.apiKeys.copyApiEnpoint')"
|
|
206
|
+
:text="apiUrl"
|
|
207
|
+
/>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
<div
|
|
212
|
+
v-if="apiKeySchema"
|
|
213
|
+
class="keys"
|
|
214
|
+
>
|
|
215
|
+
<ResourceTable
|
|
216
|
+
:schema="apiKeySchema"
|
|
217
|
+
:rows="apiKeys"
|
|
218
|
+
:headers="apiKeyheaders"
|
|
219
|
+
key-field="id"
|
|
220
|
+
data-testid="api_keys_list"
|
|
221
|
+
:search="true"
|
|
222
|
+
:row-actions="true"
|
|
223
|
+
:table-actions="true"
|
|
224
|
+
>
|
|
225
|
+
<template #header-right>
|
|
226
|
+
<button
|
|
227
|
+
style="margin-right: 10px;"
|
|
228
|
+
v-if="apiKeySchema"
|
|
229
|
+
role="button"
|
|
230
|
+
:aria-label="t('accountAndKeys.apiKeys.add.label')"
|
|
231
|
+
class="btn role-primary add"
|
|
232
|
+
data-testid="account_create_api_keys"
|
|
233
|
+
@click="addKey"
|
|
234
|
+
>
|
|
235
|
+
{{ t('accountAndKeys.apiKeys.add.label') }}
|
|
236
|
+
</button>
|
|
237
|
+
</template>
|
|
238
|
+
</ResourceTable>
|
|
239
|
+
</div>
|
|
240
|
+
<div v-else>
|
|
241
|
+
<Banner
|
|
242
|
+
color="warning"
|
|
243
|
+
:label="t('accountAndKeys.apiKeys.notAllowed')"
|
|
244
|
+
/>
|
|
245
|
+
</div>
|
|
226
246
|
</div>
|
|
227
247
|
</div>
|
|
228
248
|
</template>
|
|
229
249
|
|
|
230
250
|
<style lang='scss' scoped>
|
|
251
|
+
.account_card {
|
|
252
|
+
border: 1px solid #d7d7d7;
|
|
253
|
+
padding: 20px;
|
|
254
|
+
box-sizing: border-box;
|
|
255
|
+
}
|
|
256
|
+
:deep() .back-link {
|
|
257
|
+
font-size: 26px;
|
|
258
|
+
margin: 0 20px 0 0 !important;
|
|
259
|
+
}
|
|
231
260
|
hr {
|
|
232
261
|
margin: 20px 0;
|
|
233
262
|
}
|
|
@@ -237,6 +266,10 @@ export default {
|
|
|
237
266
|
justify-content: space-between
|
|
238
267
|
}
|
|
239
268
|
|
|
269
|
+
.principal .avatar {
|
|
270
|
+
width: 287px !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
240
273
|
.keys-header {
|
|
241
274
|
display: flex;
|
|
242
275
|
div {
|
|
@@ -254,6 +287,7 @@ export default {
|
|
|
254
287
|
|
|
255
288
|
.api-url {
|
|
256
289
|
display: flex;
|
|
290
|
+
margin: 20px 0;
|
|
257
291
|
|
|
258
292
|
> span {
|
|
259
293
|
margin-right: 6px;
|
package/pages/home.vue
CHANGED
|
@@ -486,7 +486,6 @@ export default defineComponent({
|
|
|
486
486
|
|
|
487
487
|
<!-- 页签标题组件,不显示子页面标题和面包屑 -->
|
|
488
488
|
<TabTitle
|
|
489
|
-
v-if="topLevelPermissionsVis"
|
|
490
489
|
:show-child="false"
|
|
491
490
|
:breadcrumb="false"
|
|
492
491
|
>
|
|
@@ -496,14 +495,14 @@ export default defineComponent({
|
|
|
496
495
|
</TabTitle>
|
|
497
496
|
|
|
498
497
|
<!-- 首页欢迎横幅 -->
|
|
499
|
-
<BannerGraphic
|
|
498
|
+
<!-- <BannerGraphic
|
|
500
499
|
v-if="topLevelPermissionsVis"
|
|
501
500
|
:small="true"
|
|
502
501
|
:title="t('landing.welcomeToRancher', {vendor})"
|
|
503
502
|
:pref="HIDE_HOME_PAGE_CARDS"
|
|
504
503
|
pref-key="welcomeBanner"
|
|
505
504
|
data-testid="home-banner-graphic"
|
|
506
|
-
/>
|
|
505
|
+
/> -->
|
|
507
506
|
<IndentedPanel class="mt-20 mb-20">
|
|
508
507
|
|
|
509
508
|
<!-- 主面板布局 -->
|
|
@@ -548,7 +547,7 @@ export default defineComponent({
|
|
|
548
547
|
v-if="canCreateCluster || !!provClusterSchema"
|
|
549
548
|
#header-right
|
|
550
549
|
>
|
|
551
|
-
<div
|
|
550
|
+
<div class="table-heading">
|
|
552
551
|
<router-link
|
|
553
552
|
v-if="!!provClusterSchema"
|
|
554
553
|
:to="manageLocation"
|
|
@@ -164,6 +164,7 @@ $icon-size: 24px;
|
|
|
164
164
|
margin: 0px 0px 20px 0px;
|
|
165
165
|
position: relative;
|
|
166
166
|
width: 100%;
|
|
167
|
+
height: 32px;
|
|
167
168
|
color: var(--body-text);
|
|
168
169
|
|
|
169
170
|
&__icon {
|
|
@@ -201,13 +202,15 @@ $icon-size: 24px;
|
|
|
201
202
|
}
|
|
202
203
|
|
|
203
204
|
&__content {
|
|
204
|
-
padding:
|
|
205
|
+
padding: 0px 10px;
|
|
205
206
|
transition: all 0.2s ease;
|
|
206
207
|
line-height: 12px;
|
|
207
208
|
width: 100%;
|
|
208
209
|
border-left: solid $left-border-size transparent;
|
|
209
210
|
display: flex;
|
|
210
211
|
gap: 3px;
|
|
212
|
+
height: 32px;
|
|
213
|
+
align-items: center;
|
|
211
214
|
word-wrap:break-word;
|
|
212
215
|
word-break:break-all;
|
|
213
216
|
|
|
@@ -123,8 +123,8 @@ export default defineComponent({
|
|
|
123
123
|
&.null {
|
|
124
124
|
|
|
125
125
|
.status-icon {
|
|
126
|
-
top:
|
|
127
|
-
right:
|
|
126
|
+
top: 8px !important;
|
|
127
|
+
right: 25px !important;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -146,6 +146,35 @@ export default defineComponent({
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
.labeled-select{
|
|
150
|
+
.labeled-tooltip{
|
|
151
|
+
&.null {
|
|
152
|
+
.status-icon {
|
|
153
|
+
top: 10px !important;
|
|
154
|
+
right: 25px !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.error {
|
|
159
|
+
|
|
160
|
+
.status-icon {
|
|
161
|
+
top: 9px !important;
|
|
162
|
+
right: 20px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.labeled-input{
|
|
168
|
+
.labeled-tooltip{
|
|
169
|
+
&.null {
|
|
170
|
+
.status-icon {
|
|
171
|
+
top: 10px !important;
|
|
172
|
+
right: 10px !important;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
149
178
|
// Ensure code blocks inside tootips don't look awful
|
|
150
179
|
.v-popper__popper.v-popper--theme-tooltip {
|
|
151
180
|
.v-popper__inner {
|
package/store/i18n.js
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"translations": [
|
|
3
|
+
{
|
|
4
|
+
"pattern": "take virtual machine snapshot ([^\\s]+) successfully\\.",
|
|
5
|
+
"replacement": "虚拟机快照 '$1' 创建成功。",
|
|
6
|
+
"flags": "gi"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"pattern": "delete virtual machine snapshot ([^\\s]+) successfully\\.",
|
|
10
|
+
"replacement": "虚拟机快照 '$1' 删除成功。",
|
|
11
|
+
"flags": "gi"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"pattern": "restore virtual machine snapshot ([^\\s]+) successfully\\.",
|
|
15
|
+
"replacement": "虚拟机快照 '$1' 恢复成功。",
|
|
16
|
+
"flags": "gi"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"pattern": "update virtual machine snapshot ([^\\s]+) successfully\\.",
|
|
20
|
+
"replacement": "虚拟机快照 '$1' 更新成功。",
|
|
21
|
+
"flags": "gi"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"pattern": "failed to create subnet ([^\\s]+), conflict with existing subnet ([^\\s]+)",
|
|
25
|
+
"replacement": "创建子网 '$1' 失败,地址段与现有子网 '$2' 冲突",
|
|
26
|
+
"flags": "gi"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"pattern": "subnet\\.kubeovn\\.io \"([^\"]*)\" is invalid: metadata\\.name: invalid value: \"([^\"]*)\": metadata\\.name in body should match '\\^\\[\\^0-9\\]'",
|
|
30
|
+
"replacement": "子网名称 '$1' 无效:名称不能以数字开头",
|
|
31
|
+
"flags": "gi"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"pattern": "(\\S+) conflict with v4 loopback cidr (\\S+)",
|
|
35
|
+
"replacement": "地址段 $1 与 IPv4 回环地址段 $2 冲突",
|
|
36
|
+
"flags": "gi"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"pattern": "can't delete subnet when any ips in using",
|
|
40
|
+
"replacement": "子网中仍有 IP 地址正在使用,无法删除",
|
|
41
|
+
"flags": "gi"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"pattern": "subnet ([^\\s]+) is still using the nad ([^\\s]+) default",
|
|
45
|
+
"replacement": "子网 '$1' 正在使用虚拟网络 '$2',请先删除子网 '$1' ",
|
|
46
|
+
"flags": "gi"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"pattern": "can't delete vpc when any subnet in the vpc",
|
|
50
|
+
"replacement": "VPC 内仍存在子网,无法删除该 VPC",
|
|
51
|
+
"flags": "gi"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"pattern": "(\\S+) in allowsubnets is not a valid address",
|
|
55
|
+
"replacement": "允许互通子网地址 $1 无效",
|
|
56
|
+
"flags": "gi"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"pattern": "gateway (\\S+) is not in cidr (\\S+)",
|
|
60
|
+
"replacement": "网关地址 $1 不在 CIDR $2 范围内",
|
|
61
|
+
"flags": "gi"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"pattern": "subnet ([^\\s]+) is using the provider ([^\\s]+) already",
|
|
65
|
+
"replacement": "子网 '$1' 已使用虚拟网络 '$2'",
|
|
66
|
+
"flags": "gi"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"pattern": "invalid next hop ip",
|
|
70
|
+
"replacement": "无效的下一跳地址",
|
|
71
|
+
"flags": "gi"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"pattern": "number of sockets in cpu topology is greater than the maximum sockets allowed",
|
|
75
|
+
"replacement": "CPU 拓扑中的 socket 数量已超过最大允许值",
|
|
76
|
+
"flags": "gi"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"pattern": "not a default subnet join as provider is ([^\\s]+)",
|
|
80
|
+
"replacement": "非默认子网,当前以提供者 $1 加入",
|
|
81
|
+
"flags": "gi"
|
|
82
|
+
},
|
|
3
83
|
{
|
|
4
84
|
"pattern": "subnet ([^\\s]+) cidr ([^\\s]+) is invalid, due to invalid cidr address: ([^\\s]+)",
|
|
5
85
|
"replacement": "子网 '$1' 的 CIDR 地址 '$2' 无效:不是合法的 CIDR 格式",
|
|
@@ -832,11 +912,11 @@
|
|
|
832
912
|
},
|
|
833
913
|
{
|
|
834
914
|
"pattern": "virtualmachinebackup.harvesterhci.io",
|
|
835
|
-
"replacement": "
|
|
915
|
+
"replacement": "虚拟机备份恢复"
|
|
836
916
|
},
|
|
837
917
|
{
|
|
838
918
|
"pattern": "virtualmachinebackup.cloudhci.io",
|
|
839
|
-
"replacement": "
|
|
919
|
+
"replacement": "虚拟机备份恢复"
|
|
840
920
|
},
|
|
841
921
|
{
|
|
842
922
|
"pattern": "vlanconfigs.network.harvesterhci.io",
|