@dovetail-v2/refine 0.1.9 → 0.1.10
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/dist/{MonacoYamlDiffEditor-0f76e977.js → MonacoYamlDiffEditor-effbc940.js} +1 -1
- package/dist/{index-aacb414b.js → index-a2e0edc2.js} +1435 -1163
- package/dist/refine.js +207 -203
- package/dist/refine.umd.cjs +1229 -957
- package/dist/style.css +44 -44
- package/lib/components/CreateButton/index.d.ts +5 -1
- package/lib/components/DropdownMenuItems/EditNodeTaintDropdownMenuItem.d.ts +12 -0
- package/lib/components/{CronJobDropdown → Dropdowns/CronJobDropdown}/index.d.ts +1 -1
- package/lib/components/{K8sDropdown → Dropdowns/K8sDropdown}/index.d.ts +1 -1
- package/lib/components/{PodDropdown → Dropdowns/PodDropdown}/index.d.ts +1 -1
- package/lib/components/{ReplicasDropdown → Dropdowns/ReplicasDropdown}/index.d.ts +1 -1
- package/lib/components/{WorkloadDropdown → Dropdowns/WorkloadDropdown}/index.d.ts +1 -1
- package/lib/components/EditField/index.d.ts +1 -1
- package/lib/components/EditMetadataForm/EditNodeTaintForm.d.ts +12 -0
- package/lib/components/InternalBaseTable/index.d.ts +43 -0
- package/lib/components/ListPage/index.d.ts +2 -2
- package/lib/components/NodeTaintsTable/NodeTaintsTable.d.ts +7 -0
- package/lib/components/NodeTaintsTable/index.d.ts +1 -0
- package/lib/components/PVCDistributeStorage/index.d.ts +1 -1
- package/lib/components/ResourceFiledDisplays.d.ts +2 -3
- package/lib/components/ResourceLink/index.d.ts +2 -2
- package/lib/components/ShowContent/fields.d.ts +2 -0
- package/lib/components/ShowContent/groups.d.ts +4 -2
- package/lib/components/StateTag/StateTag.d.ts +3 -3
- package/lib/components/Table/index.d.ts +11 -43
- package/lib/components/{Table/TableToolBar.d.ts → TableToolbar/index.d.ts} +1 -0
- package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +2 -0
- package/lib/components/index.d.ts +6 -5
- package/lib/constants/state.d.ts +8 -3
- package/lib/contexts/component.d.ts +1 -1
- package/lib/hooks/useEagleTable/columns.d.ts +2 -1
- package/lib/hooks/useEagleTable/useEagleTable.d.ts +3 -4
- package/lib/hooks/useSubmitForm.d.ts +1 -1
- package/lib/hooks/useTableData.d.ts +1 -1
- package/lib/i18n.d.ts +29 -18
- package/lib/locales/zh-CN/index.d.ts +29 -18
- package/lib/models/cronjob-model.d.ts +2 -2
- package/lib/models/daemonset-model.d.ts +2 -2
- package/lib/models/deployment-model.d.ts +2 -2
- package/lib/models/job-model.d.ts +2 -2
- package/lib/models/node-model.d.ts +2 -2
- package/lib/models/persistent-volume-claim.d.ts +2 -0
- package/lib/models/persistent-volume.d.ts +3 -0
- package/lib/models/statefulset-model.d.ts +2 -2
- package/lib/styles/tag.d.ts +1 -0
- package/lib/types/resource.d.ts +3 -3
- package/package.json +1 -1
- /package/lib/components/{Table → InternalBaseTable}/TableWidgets.d.ts +0 -0
package/dist/refine.umd.cjs
CHANGED
|
@@ -31,308 +31,301 @@ var __publicField = (obj, key, value) => {
|
|
|
31
31
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
32
32
|
}
|
|
33
33
|
var dayjs_min = { exports: {} };
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (null === e3)
|
|
100
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
101
|
-
if (b.u(e3))
|
|
102
|
-
return /* @__PURE__ */ new Date();
|
|
103
|
-
if (e3 instanceof Date)
|
|
104
|
-
return new Date(e3);
|
|
105
|
-
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
106
|
-
var r3 = e3.match($);
|
|
107
|
-
if (r3) {
|
|
108
|
-
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
109
|
-
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
34
|
+
(function(module2, exports3) {
|
|
35
|
+
!function(t2, e2) {
|
|
36
|
+
module2.exports = e2();
|
|
37
|
+
}(commonjsGlobal, function() {
|
|
38
|
+
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
|
39
|
+
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
40
|
+
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
41
|
+
} }, m = function(t3, e3, n3) {
|
|
42
|
+
var r3 = String(t3);
|
|
43
|
+
return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
|
|
44
|
+
}, v = { s: m, z: function(t3) {
|
|
45
|
+
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
46
|
+
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
|
|
47
|
+
}, m: function t3(e3, n3) {
|
|
48
|
+
if (e3.date() < n3.date())
|
|
49
|
+
return -t3(n3, e3);
|
|
50
|
+
var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
|
|
51
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
|
|
52
|
+
}, a: function(t3) {
|
|
53
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
54
|
+
}, p: function(t3) {
|
|
55
|
+
return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
56
|
+
}, u: function(t3) {
|
|
57
|
+
return void 0 === t3;
|
|
58
|
+
} }, g = "en", D = {};
|
|
59
|
+
D[g] = M;
|
|
60
|
+
var p = "$isDayjsObject", S = function(t3) {
|
|
61
|
+
return t3 instanceof _ || !(!t3 || !t3[p]);
|
|
62
|
+
}, w = function t3(e3, n3, r3) {
|
|
63
|
+
var i3;
|
|
64
|
+
if (!e3)
|
|
65
|
+
return g;
|
|
66
|
+
if ("string" == typeof e3) {
|
|
67
|
+
var s3 = e3.toLowerCase();
|
|
68
|
+
D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
|
|
69
|
+
var u2 = e3.split("-");
|
|
70
|
+
if (!i3 && u2.length > 1)
|
|
71
|
+
return t3(u2[0]);
|
|
72
|
+
} else {
|
|
73
|
+
var a3 = e3.name;
|
|
74
|
+
D[a3] = e3, i3 = a3;
|
|
75
|
+
}
|
|
76
|
+
return !r3 && i3 && (g = i3), i3 || !r3 && g;
|
|
77
|
+
}, O = function(t3, e3) {
|
|
78
|
+
if (S(t3))
|
|
79
|
+
return t3.clone();
|
|
80
|
+
var n3 = "object" == typeof e3 ? e3 : {};
|
|
81
|
+
return n3.date = t3, n3.args = arguments, new _(n3);
|
|
82
|
+
}, b = v;
|
|
83
|
+
b.l = w, b.i = S, b.w = function(t3, e3) {
|
|
84
|
+
return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
|
85
|
+
};
|
|
86
|
+
var _ = function() {
|
|
87
|
+
function M2(t3) {
|
|
88
|
+
this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
|
|
89
|
+
}
|
|
90
|
+
var m2 = M2.prototype;
|
|
91
|
+
return m2.parse = function(t3) {
|
|
92
|
+
this.$d = function(t4) {
|
|
93
|
+
var e3 = t4.date, n3 = t4.utc;
|
|
94
|
+
if (null === e3)
|
|
95
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
96
|
+
if (b.u(e3))
|
|
97
|
+
return /* @__PURE__ */ new Date();
|
|
98
|
+
if (e3 instanceof Date)
|
|
112
99
|
return new Date(e3);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return y2(7);
|
|
190
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
191
|
-
return b.w(m3, this);
|
|
192
|
-
}, m2.subtract = function(t3, e3) {
|
|
193
|
-
return this.add(-1 * t3, e3);
|
|
194
|
-
}, m2.format = function(t3) {
|
|
195
|
-
var e3 = this, n3 = this.$locale();
|
|
196
|
-
if (!this.isValid())
|
|
197
|
-
return n3.invalidDate || l;
|
|
198
|
-
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
|
|
199
|
-
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
200
|
-
}, d2 = function(t4) {
|
|
201
|
-
return b.s(s3 % 12 || 12, t4, "0");
|
|
202
|
-
}, $2 = f2 || function(t4, e4, n4) {
|
|
203
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
204
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
205
|
-
};
|
|
206
|
-
return r3.replace(y, function(t4, r4) {
|
|
207
|
-
return r4 || function(t5) {
|
|
208
|
-
switch (t5) {
|
|
209
|
-
case "YY":
|
|
210
|
-
return String(e3.$y).slice(-2);
|
|
211
|
-
case "YYYY":
|
|
212
|
-
return b.s(e3.$y, 4, "0");
|
|
213
|
-
case "M":
|
|
214
|
-
return a3 + 1;
|
|
215
|
-
case "MM":
|
|
216
|
-
return b.s(a3 + 1, 2, "0");
|
|
217
|
-
case "MMM":
|
|
218
|
-
return h2(n3.monthsShort, a3, c3, 3);
|
|
219
|
-
case "MMMM":
|
|
220
|
-
return h2(c3, a3);
|
|
221
|
-
case "D":
|
|
222
|
-
return e3.$D;
|
|
223
|
-
case "DD":
|
|
224
|
-
return b.s(e3.$D, 2, "0");
|
|
225
|
-
case "d":
|
|
226
|
-
return String(e3.$W);
|
|
227
|
-
case "dd":
|
|
228
|
-
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
229
|
-
case "ddd":
|
|
230
|
-
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
231
|
-
case "dddd":
|
|
232
|
-
return o2[e3.$W];
|
|
233
|
-
case "H":
|
|
234
|
-
return String(s3);
|
|
235
|
-
case "HH":
|
|
236
|
-
return b.s(s3, 2, "0");
|
|
237
|
-
case "h":
|
|
238
|
-
return d2(1);
|
|
239
|
-
case "hh":
|
|
240
|
-
return d2(2);
|
|
241
|
-
case "a":
|
|
242
|
-
return $2(s3, u2, true);
|
|
243
|
-
case "A":
|
|
244
|
-
return $2(s3, u2, false);
|
|
245
|
-
case "m":
|
|
246
|
-
return String(u2);
|
|
247
|
-
case "mm":
|
|
248
|
-
return b.s(u2, 2, "0");
|
|
249
|
-
case "s":
|
|
250
|
-
return String(e3.$s);
|
|
251
|
-
case "ss":
|
|
252
|
-
return b.s(e3.$s, 2, "0");
|
|
253
|
-
case "SSS":
|
|
254
|
-
return b.s(e3.$ms, 3, "0");
|
|
255
|
-
case "Z":
|
|
256
|
-
return i3;
|
|
257
|
-
}
|
|
258
|
-
return null;
|
|
259
|
-
}(t4) || i3.replace(":", "");
|
|
260
|
-
});
|
|
261
|
-
}, m2.utcOffset = function() {
|
|
262
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
263
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
264
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
265
|
-
return b.m(y2, m3);
|
|
266
|
-
};
|
|
267
|
-
switch (M3) {
|
|
268
|
-
case h:
|
|
269
|
-
$2 = D2() / 12;
|
|
270
|
-
break;
|
|
271
|
-
case c2:
|
|
272
|
-
$2 = D2();
|
|
273
|
-
break;
|
|
274
|
-
case f:
|
|
275
|
-
$2 = D2() / 3;
|
|
276
|
-
break;
|
|
277
|
-
case o:
|
|
278
|
-
$2 = (g2 - v2) / 6048e5;
|
|
279
|
-
break;
|
|
280
|
-
case a2:
|
|
281
|
-
$2 = (g2 - v2) / 864e5;
|
|
282
|
-
break;
|
|
283
|
-
case u:
|
|
284
|
-
$2 = g2 / n2;
|
|
285
|
-
break;
|
|
286
|
-
case s2:
|
|
287
|
-
$2 = g2 / e2;
|
|
288
|
-
break;
|
|
289
|
-
case i2:
|
|
290
|
-
$2 = g2 / t2;
|
|
291
|
-
break;
|
|
292
|
-
default:
|
|
293
|
-
$2 = g2;
|
|
294
|
-
}
|
|
295
|
-
return l2 ? $2 : b.a($2);
|
|
296
|
-
}, m2.daysInMonth = function() {
|
|
297
|
-
return this.endOf(c2).$D;
|
|
298
|
-
}, m2.$locale = function() {
|
|
299
|
-
return D[this.$L];
|
|
300
|
-
}, m2.locale = function(t3, e3) {
|
|
301
|
-
if (!t3)
|
|
302
|
-
return this.$L;
|
|
303
|
-
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
304
|
-
return r3 && (n3.$L = r3), n3;
|
|
305
|
-
}, m2.clone = function() {
|
|
306
|
-
return b.w(this.$d, this);
|
|
307
|
-
}, m2.toDate = function() {
|
|
308
|
-
return new Date(this.valueOf());
|
|
309
|
-
}, m2.toJSON = function() {
|
|
310
|
-
return this.isValid() ? this.toISOString() : null;
|
|
311
|
-
}, m2.toISOString = function() {
|
|
312
|
-
return this.$d.toISOString();
|
|
313
|
-
}, m2.toString = function() {
|
|
314
|
-
return this.$d.toUTCString();
|
|
315
|
-
}, M2;
|
|
316
|
-
}(), k = _.prototype;
|
|
317
|
-
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
318
|
-
k[t3[1]] = function(e3) {
|
|
319
|
-
return this.$g(e3, t3[0], t3[1]);
|
|
100
|
+
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
101
|
+
var r3 = e3.match($);
|
|
102
|
+
if (r3) {
|
|
103
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
104
|
+
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return new Date(e3);
|
|
108
|
+
}(t3), this.init();
|
|
109
|
+
}, m2.init = function() {
|
|
110
|
+
var t3 = this.$d;
|
|
111
|
+
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
|
112
|
+
}, m2.$utils = function() {
|
|
113
|
+
return b;
|
|
114
|
+
}, m2.isValid = function() {
|
|
115
|
+
return !(this.$d.toString() === l);
|
|
116
|
+
}, m2.isSame = function(t3, e3) {
|
|
117
|
+
var n3 = O(t3);
|
|
118
|
+
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
119
|
+
}, m2.isAfter = function(t3, e3) {
|
|
120
|
+
return O(t3) < this.startOf(e3);
|
|
121
|
+
}, m2.isBefore = function(t3, e3) {
|
|
122
|
+
return this.endOf(e3) < O(t3);
|
|
123
|
+
}, m2.$g = function(t3, e3, n3) {
|
|
124
|
+
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
125
|
+
}, m2.unix = function() {
|
|
126
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
127
|
+
}, m2.valueOf = function() {
|
|
128
|
+
return this.$d.getTime();
|
|
129
|
+
}, m2.startOf = function(t3, e3) {
|
|
130
|
+
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
131
|
+
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
132
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
133
|
+
}, $2 = function(t4, e4) {
|
|
134
|
+
return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
135
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
136
|
+
switch (f2) {
|
|
137
|
+
case h:
|
|
138
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
139
|
+
case c2:
|
|
140
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
141
|
+
case o:
|
|
142
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
143
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
144
|
+
case a2:
|
|
145
|
+
case d:
|
|
146
|
+
return $2(v2 + "Hours", 0);
|
|
147
|
+
case u:
|
|
148
|
+
return $2(v2 + "Minutes", 1);
|
|
149
|
+
case s2:
|
|
150
|
+
return $2(v2 + "Seconds", 2);
|
|
151
|
+
case i2:
|
|
152
|
+
return $2(v2 + "Milliseconds", 3);
|
|
153
|
+
default:
|
|
154
|
+
return this.clone();
|
|
155
|
+
}
|
|
156
|
+
}, m2.endOf = function(t3) {
|
|
157
|
+
return this.startOf(t3, false);
|
|
158
|
+
}, m2.$set = function(t3, e3) {
|
|
159
|
+
var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
|
|
160
|
+
if (o2 === c2 || o2 === h) {
|
|
161
|
+
var y2 = this.clone().set(d, 1);
|
|
162
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
163
|
+
} else
|
|
164
|
+
l2 && this.$d[l2]($2);
|
|
165
|
+
return this.init(), this;
|
|
166
|
+
}, m2.set = function(t3, e3) {
|
|
167
|
+
return this.clone().$set(t3, e3);
|
|
168
|
+
}, m2.get = function(t3) {
|
|
169
|
+
return this[b.p(t3)]();
|
|
170
|
+
}, m2.add = function(r3, f2) {
|
|
171
|
+
var d2, l2 = this;
|
|
172
|
+
r3 = Number(r3);
|
|
173
|
+
var $2 = b.p(f2), y2 = function(t3) {
|
|
174
|
+
var e3 = O(l2);
|
|
175
|
+
return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
|
|
320
176
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
177
|
+
if ($2 === c2)
|
|
178
|
+
return this.set(c2, this.$M + r3);
|
|
179
|
+
if ($2 === h)
|
|
180
|
+
return this.set(h, this.$y + r3);
|
|
181
|
+
if ($2 === a2)
|
|
182
|
+
return y2(1);
|
|
183
|
+
if ($2 === o)
|
|
184
|
+
return y2(7);
|
|
185
|
+
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
186
|
+
return b.w(m3, this);
|
|
187
|
+
}, m2.subtract = function(t3, e3) {
|
|
188
|
+
return this.add(-1 * t3, e3);
|
|
189
|
+
}, m2.format = function(t3) {
|
|
190
|
+
var e3 = this, n3 = this.$locale();
|
|
191
|
+
if (!this.isValid())
|
|
192
|
+
return n3.invalidDate || l;
|
|
193
|
+
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
|
|
194
|
+
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
195
|
+
}, d2 = function(t4) {
|
|
196
|
+
return b.s(s3 % 12 || 12, t4, "0");
|
|
197
|
+
}, $2 = f2 || function(t4, e4, n4) {
|
|
198
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
199
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
200
|
+
};
|
|
201
|
+
return r3.replace(y, function(t4, r4) {
|
|
202
|
+
return r4 || function(t5) {
|
|
203
|
+
switch (t5) {
|
|
204
|
+
case "YY":
|
|
205
|
+
return String(e3.$y).slice(-2);
|
|
206
|
+
case "YYYY":
|
|
207
|
+
return b.s(e3.$y, 4, "0");
|
|
208
|
+
case "M":
|
|
209
|
+
return a3 + 1;
|
|
210
|
+
case "MM":
|
|
211
|
+
return b.s(a3 + 1, 2, "0");
|
|
212
|
+
case "MMM":
|
|
213
|
+
return h2(n3.monthsShort, a3, c3, 3);
|
|
214
|
+
case "MMMM":
|
|
215
|
+
return h2(c3, a3);
|
|
216
|
+
case "D":
|
|
217
|
+
return e3.$D;
|
|
218
|
+
case "DD":
|
|
219
|
+
return b.s(e3.$D, 2, "0");
|
|
220
|
+
case "d":
|
|
221
|
+
return String(e3.$W);
|
|
222
|
+
case "dd":
|
|
223
|
+
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
224
|
+
case "ddd":
|
|
225
|
+
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
226
|
+
case "dddd":
|
|
227
|
+
return o2[e3.$W];
|
|
228
|
+
case "H":
|
|
229
|
+
return String(s3);
|
|
230
|
+
case "HH":
|
|
231
|
+
return b.s(s3, 2, "0");
|
|
232
|
+
case "h":
|
|
233
|
+
return d2(1);
|
|
234
|
+
case "hh":
|
|
235
|
+
return d2(2);
|
|
236
|
+
case "a":
|
|
237
|
+
return $2(s3, u2, true);
|
|
238
|
+
case "A":
|
|
239
|
+
return $2(s3, u2, false);
|
|
240
|
+
case "m":
|
|
241
|
+
return String(u2);
|
|
242
|
+
case "mm":
|
|
243
|
+
return b.s(u2, 2, "0");
|
|
244
|
+
case "s":
|
|
245
|
+
return String(e3.$s);
|
|
246
|
+
case "ss":
|
|
247
|
+
return b.s(e3.$s, 2, "0");
|
|
248
|
+
case "SSS":
|
|
249
|
+
return b.s(e3.$ms, 3, "0");
|
|
250
|
+
case "Z":
|
|
251
|
+
return i3;
|
|
252
|
+
}
|
|
253
|
+
return null;
|
|
254
|
+
}(t4) || i3.replace(":", "");
|
|
255
|
+
});
|
|
256
|
+
}, m2.utcOffset = function() {
|
|
257
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
258
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
259
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
260
|
+
return b.m(y2, m3);
|
|
261
|
+
};
|
|
262
|
+
switch (M3) {
|
|
263
|
+
case h:
|
|
264
|
+
$2 = D2() / 12;
|
|
265
|
+
break;
|
|
266
|
+
case c2:
|
|
267
|
+
$2 = D2();
|
|
268
|
+
break;
|
|
269
|
+
case f:
|
|
270
|
+
$2 = D2() / 3;
|
|
271
|
+
break;
|
|
272
|
+
case o:
|
|
273
|
+
$2 = (g2 - v2) / 6048e5;
|
|
274
|
+
break;
|
|
275
|
+
case a2:
|
|
276
|
+
$2 = (g2 - v2) / 864e5;
|
|
277
|
+
break;
|
|
278
|
+
case u:
|
|
279
|
+
$2 = g2 / n2;
|
|
280
|
+
break;
|
|
281
|
+
case s2:
|
|
282
|
+
$2 = g2 / e2;
|
|
283
|
+
break;
|
|
284
|
+
case i2:
|
|
285
|
+
$2 = g2 / t2;
|
|
286
|
+
break;
|
|
287
|
+
default:
|
|
288
|
+
$2 = g2;
|
|
289
|
+
}
|
|
290
|
+
return l2 ? $2 : b.a($2);
|
|
291
|
+
}, m2.daysInMonth = function() {
|
|
292
|
+
return this.endOf(c2).$D;
|
|
293
|
+
}, m2.$locale = function() {
|
|
294
|
+
return D[this.$L];
|
|
295
|
+
}, m2.locale = function(t3, e3) {
|
|
296
|
+
if (!t3)
|
|
297
|
+
return this.$L;
|
|
298
|
+
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
299
|
+
return r3 && (n3.$L = r3), n3;
|
|
300
|
+
}, m2.clone = function() {
|
|
301
|
+
return b.w(this.$d, this);
|
|
302
|
+
}, m2.toDate = function() {
|
|
303
|
+
return new Date(this.valueOf());
|
|
304
|
+
}, m2.toJSON = function() {
|
|
305
|
+
return this.isValid() ? this.toISOString() : null;
|
|
306
|
+
}, m2.toISOString = function() {
|
|
307
|
+
return this.$d.toISOString();
|
|
308
|
+
}, m2.toString = function() {
|
|
309
|
+
return this.$d.toUTCString();
|
|
310
|
+
}, M2;
|
|
311
|
+
}(), k = _.prototype;
|
|
312
|
+
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
313
|
+
k[t3[1]] = function(e3) {
|
|
314
|
+
return this.$g(e3, t3[0], t3[1]);
|
|
315
|
+
};
|
|
316
|
+
}), O.extend = function(t3, e3) {
|
|
317
|
+
return t3.$i || (t3(e3, _, O), t3.$i = true), O;
|
|
318
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
|
|
319
|
+
return O(1e3 * t3);
|
|
320
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
321
|
+
});
|
|
322
|
+
})(dayjs_min);
|
|
323
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
331
324
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
332
325
|
var zh = { exports: {} };
|
|
333
326
|
(function(module2, exports3) {
|
|
334
327
|
!function(e2, _) {
|
|
335
|
-
module2.exports = _(
|
|
328
|
+
module2.exports = _(dayjs_minExports);
|
|
336
329
|
}(commonjsGlobal, function(e2) {
|
|
337
330
|
function _(e3) {
|
|
338
331
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
@@ -1027,8 +1020,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1027
1020
|
const fetch_schema_fail$1 = "获取 schema 失败。";
|
|
1028
1021
|
const obtain_data_error$1 = "Having trouble getting data.";
|
|
1029
1022
|
const retry$1 = "Retry";
|
|
1030
|
-
const create_resource$1 = "Create
|
|
1031
|
-
const edit_resource$1 = "Edit
|
|
1023
|
+
const create_resource$1 = "Create{{resource}}";
|
|
1024
|
+
const edit_resource$1 = "Edit{{resource}}";
|
|
1032
1025
|
const state$1 = "Status";
|
|
1033
1026
|
const name$1 = "Name";
|
|
1034
1027
|
const pod$1 = "Pod";
|
|
@@ -1062,18 +1055,18 @@ var __publicField = (obj, key, value) => {
|
|
|
1062
1055
|
const resume$1 = "Resume";
|
|
1063
1056
|
const sessionAffinity$1 = "Session Affinity";
|
|
1064
1057
|
const log$1 = "Log";
|
|
1065
|
-
const ready
|
|
1066
|
-
const updating
|
|
1067
|
-
const completed
|
|
1068
|
-
const failed
|
|
1069
|
-
const suspended
|
|
1070
|
-
const running
|
|
1071
|
-
const terminating
|
|
1072
|
-
const terminated
|
|
1073
|
-
const succeeded
|
|
1074
|
-
const unknown
|
|
1075
|
-
const pending
|
|
1076
|
-
const waiting
|
|
1058
|
+
const ready = "Ready";
|
|
1059
|
+
const updating = "Updating";
|
|
1060
|
+
const completed = "Completed";
|
|
1061
|
+
const failed = "Failed";
|
|
1062
|
+
const suspended = "Suspended";
|
|
1063
|
+
const running = "Running";
|
|
1064
|
+
const terminating = "Terminating";
|
|
1065
|
+
const terminated = "Terminated";
|
|
1066
|
+
const succeeded = "Succeeded";
|
|
1067
|
+
const unknown = "Unknown";
|
|
1068
|
+
const pending = "Pending";
|
|
1069
|
+
const waiting = "Waiting";
|
|
1077
1070
|
const expand$1 = "Expand";
|
|
1078
1071
|
const fold$1 = "Collapse";
|
|
1079
1072
|
const rule$1 = "Rule";
|
|
@@ -1164,7 +1157,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1164
1157
|
const path_type$1 = "Path type";
|
|
1165
1158
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1166
1159
|
const not_support$1 = "Not supported";
|
|
1167
|
-
const stopped
|
|
1160
|
+
const stopped = "Stopped";
|
|
1168
1161
|
const any_node_ip$1 = "Any node IP";
|
|
1169
1162
|
const storage_class$1 = "Storage class";
|
|
1170
1163
|
const persistent_volume$1 = "Persistent volume";
|
|
@@ -1174,11 +1167,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1174
1167
|
const volume_mode$1 = "Volume mode";
|
|
1175
1168
|
const access_mode$1 = "Access mode";
|
|
1176
1169
|
const block$1 = "Block";
|
|
1177
|
-
const pv_phase_available
|
|
1178
|
-
const pv_phase_bound
|
|
1179
|
-
const pv_phase_released
|
|
1180
|
-
const pv_phase_failed
|
|
1181
|
-
const pv_phase_pending
|
|
1170
|
+
const pv_phase_available = "Available";
|
|
1171
|
+
const pv_phase_bound = "Bound";
|
|
1172
|
+
const pv_phase_released = "Released";
|
|
1173
|
+
const pv_phase_failed = "Failed";
|
|
1174
|
+
const pv_phase_pending = "Pending";
|
|
1182
1175
|
const exec_pod = "Execute shell";
|
|
1183
1176
|
const search$1 = "Search";
|
|
1184
1177
|
const edit_label$1 = "Edit label";
|
|
@@ -1232,18 +1225,18 @@ var __publicField = (obj, key, value) => {
|
|
|
1232
1225
|
resume: resume$1,
|
|
1233
1226
|
sessionAffinity: sessionAffinity$1,
|
|
1234
1227
|
log: log$1,
|
|
1235
|
-
ready
|
|
1236
|
-
updating
|
|
1237
|
-
completed
|
|
1238
|
-
failed
|
|
1239
|
-
suspended
|
|
1240
|
-
running
|
|
1241
|
-
terminating
|
|
1242
|
-
terminated
|
|
1243
|
-
succeeded
|
|
1244
|
-
unknown
|
|
1245
|
-
pending
|
|
1246
|
-
waiting
|
|
1228
|
+
ready,
|
|
1229
|
+
updating,
|
|
1230
|
+
completed,
|
|
1231
|
+
failed,
|
|
1232
|
+
suspended,
|
|
1233
|
+
running,
|
|
1234
|
+
terminating,
|
|
1235
|
+
terminated,
|
|
1236
|
+
succeeded,
|
|
1237
|
+
unknown,
|
|
1238
|
+
pending,
|
|
1239
|
+
waiting,
|
|
1247
1240
|
expand: expand$1,
|
|
1248
1241
|
fold: fold$1,
|
|
1249
1242
|
rule: rule$1,
|
|
@@ -1336,7 +1329,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1336
1329
|
path_type: path_type$1,
|
|
1337
1330
|
only_support_one_yaml: only_support_one_yaml$1,
|
|
1338
1331
|
not_support: not_support$1,
|
|
1339
|
-
stopped
|
|
1332
|
+
stopped,
|
|
1340
1333
|
any_node_ip: any_node_ip$1,
|
|
1341
1334
|
storage_class: storage_class$1,
|
|
1342
1335
|
persistent_volume: persistent_volume$1,
|
|
@@ -1346,11 +1339,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1346
1339
|
volume_mode: volume_mode$1,
|
|
1347
1340
|
access_mode: access_mode$1,
|
|
1348
1341
|
block: block$1,
|
|
1349
|
-
pv_phase_available
|
|
1350
|
-
pv_phase_bound
|
|
1351
|
-
pv_phase_released
|
|
1352
|
-
pv_phase_failed
|
|
1353
|
-
pv_phase_pending
|
|
1342
|
+
pv_phase_available,
|
|
1343
|
+
pv_phase_bound,
|
|
1344
|
+
pv_phase_released,
|
|
1345
|
+
pv_phase_failed,
|
|
1346
|
+
pv_phase_pending,
|
|
1354
1347
|
exec_pod,
|
|
1355
1348
|
search: search$1,
|
|
1356
1349
|
edit_label: edit_label$1
|
|
@@ -1414,20 +1407,20 @@ var __publicField = (obj, key, value) => {
|
|
|
1414
1407
|
const fetch_schema_fail = "获取 schema 失败。";
|
|
1415
1408
|
const obtain_data_error = "获取数据时遇到问题。";
|
|
1416
1409
|
const retry = "重试";
|
|
1417
|
-
const
|
|
1418
|
-
const
|
|
1419
|
-
const
|
|
1420
|
-
const
|
|
1421
|
-
const
|
|
1422
|
-
const
|
|
1423
|
-
const
|
|
1424
|
-
const
|
|
1425
|
-
const
|
|
1426
|
-
const
|
|
1427
|
-
const
|
|
1428
|
-
const
|
|
1429
|
-
const create_resource = "创建
|
|
1430
|
-
const edit_resource = "编辑
|
|
1410
|
+
const ready_state = "已就绪";
|
|
1411
|
+
const updating_state = "更新中";
|
|
1412
|
+
const completed_state = "已完成";
|
|
1413
|
+
const abnormal_state = "异常";
|
|
1414
|
+
const suspended_state = "已挂起";
|
|
1415
|
+
const running_state = "运行中";
|
|
1416
|
+
const terminating_state = "终止中";
|
|
1417
|
+
const succeeded_state = "已成功终止";
|
|
1418
|
+
const terminated_state = "已终止";
|
|
1419
|
+
const unknown_state = "未知";
|
|
1420
|
+
const pending_state = "待处理";
|
|
1421
|
+
const waiting_state = "等待中";
|
|
1422
|
+
const create_resource = "创建{{resource}}";
|
|
1423
|
+
const edit_resource = "编辑{{resource}}";
|
|
1431
1424
|
const sec = "秒";
|
|
1432
1425
|
const min = "分";
|
|
1433
1426
|
const hr = "小时";
|
|
@@ -1462,6 +1455,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1462
1455
|
const protocol = "协议";
|
|
1463
1456
|
const key = "键";
|
|
1464
1457
|
const value = "值";
|
|
1458
|
+
const effect = "效果";
|
|
1465
1459
|
const show_data_value = "显示数值";
|
|
1466
1460
|
const hide_data_value = "隐藏数值";
|
|
1467
1461
|
const path_type = "路径类型";
|
|
@@ -1510,7 +1504,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1510
1504
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1511
1505
|
const support = "支持";
|
|
1512
1506
|
const not_support = "不支持";
|
|
1513
|
-
const
|
|
1507
|
+
const stopped_state = "已停止";
|
|
1514
1508
|
const any_node_ip = "任意节点 IP";
|
|
1515
1509
|
const storage_class = "存储类";
|
|
1516
1510
|
const persistent_volume = "持久卷";
|
|
@@ -1521,11 +1515,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1521
1515
|
const volume_mode = "卷模式";
|
|
1522
1516
|
const access_mode = "访问模式";
|
|
1523
1517
|
const block = "块";
|
|
1524
|
-
const
|
|
1525
|
-
const
|
|
1526
|
-
const
|
|
1527
|
-
const
|
|
1528
|
-
const
|
|
1518
|
+
const available_state = "可用";
|
|
1519
|
+
const bound_state = "已绑定";
|
|
1520
|
+
const released_state = "已释放";
|
|
1521
|
+
const failed_state = "失败";
|
|
1522
|
+
const lost_state = "卷不可用";
|
|
1529
1523
|
const font_size = "字体大小";
|
|
1530
1524
|
const download_shell_content = "下载控制台日志";
|
|
1531
1525
|
const clear_shell = "清空命令行";
|
|
@@ -1551,6 +1545,16 @@ var __publicField = (obj, key, value) => {
|
|
|
1551
1545
|
const edit_distribute_storage = "编辑分配量";
|
|
1552
1546
|
const edit_distribute_storage_success_toast = "编辑分配量成功";
|
|
1553
1547
|
const edit_distribute_storage_failed_toast = "编辑分配量失败";
|
|
1548
|
+
const edit_node_taint = "编辑节点污点";
|
|
1549
|
+
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
1550
|
+
const node_taint_NoSchedule = "仅阻止调度";
|
|
1551
|
+
const node_taint_PreferNoSchedule = "尽可能阻止调度";
|
|
1552
|
+
const node_taint_NoExecute = "阻止调度并驱逐 Pod";
|
|
1553
|
+
const taint = "污点";
|
|
1554
|
+
const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保留对 YAML 文件做出的所有更改。";
|
|
1555
|
+
const pvc_storage_required = "请填写分配量。";
|
|
1556
|
+
const pvc_storage_min = "请输入正整数。";
|
|
1557
|
+
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1554
1558
|
const dovetail = {
|
|
1555
1559
|
copy: copy$1,
|
|
1556
1560
|
reset_arguments,
|
|
@@ -1609,18 +1613,18 @@ var __publicField = (obj, key, value) => {
|
|
|
1609
1613
|
fetch_schema_fail,
|
|
1610
1614
|
obtain_data_error,
|
|
1611
1615
|
retry,
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1616
|
+
ready_state,
|
|
1617
|
+
updating_state,
|
|
1618
|
+
completed_state,
|
|
1619
|
+
abnormal_state,
|
|
1620
|
+
suspended_state,
|
|
1621
|
+
running_state,
|
|
1622
|
+
terminating_state,
|
|
1623
|
+
succeeded_state,
|
|
1624
|
+
terminated_state,
|
|
1625
|
+
unknown_state,
|
|
1626
|
+
pending_state,
|
|
1627
|
+
waiting_state,
|
|
1624
1628
|
create_resource,
|
|
1625
1629
|
edit_resource,
|
|
1626
1630
|
sec,
|
|
@@ -1657,6 +1661,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1657
1661
|
protocol,
|
|
1658
1662
|
key,
|
|
1659
1663
|
value,
|
|
1664
|
+
effect,
|
|
1660
1665
|
show_data_value,
|
|
1661
1666
|
hide_data_value,
|
|
1662
1667
|
path_type,
|
|
@@ -1707,7 +1712,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1707
1712
|
only_support_one_yaml,
|
|
1708
1713
|
support,
|
|
1709
1714
|
not_support,
|
|
1710
|
-
|
|
1715
|
+
stopped_state,
|
|
1711
1716
|
any_node_ip,
|
|
1712
1717
|
storage_class,
|
|
1713
1718
|
persistent_volume,
|
|
@@ -1718,11 +1723,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1718
1723
|
volume_mode,
|
|
1719
1724
|
access_mode,
|
|
1720
1725
|
block,
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
+
available_state,
|
|
1727
|
+
bound_state,
|
|
1728
|
+
released_state,
|
|
1729
|
+
failed_state,
|
|
1730
|
+
lost_state,
|
|
1726
1731
|
font_size,
|
|
1727
1732
|
download_shell_content,
|
|
1728
1733
|
clear_shell,
|
|
@@ -1747,7 +1752,17 @@ var __publicField = (obj, key, value) => {
|
|
|
1747
1752
|
allow_expand,
|
|
1748
1753
|
edit_distribute_storage,
|
|
1749
1754
|
edit_distribute_storage_success_toast,
|
|
1750
|
-
edit_distribute_storage_failed_toast
|
|
1755
|
+
edit_distribute_storage_failed_toast,
|
|
1756
|
+
edit_node_taint,
|
|
1757
|
+
edit_node_taint_success_toast,
|
|
1758
|
+
node_taint_NoSchedule,
|
|
1759
|
+
node_taint_PreferNoSchedule,
|
|
1760
|
+
node_taint_NoExecute,
|
|
1761
|
+
taint,
|
|
1762
|
+
change_form_mode_alert,
|
|
1763
|
+
pvc_storage_required,
|
|
1764
|
+
pvc_storage_min,
|
|
1765
|
+
pvc_storage_reduce_limit
|
|
1751
1766
|
};
|
|
1752
1767
|
const ZH = {
|
|
1753
1768
|
dovetail
|
|
@@ -8850,15 +8865,15 @@ var __publicField = (obj, key, value) => {
|
|
|
8850
8865
|
})
|
|
8851
8866
|
});
|
|
8852
8867
|
};
|
|
8853
|
-
const
|
|
8868
|
+
const TableWidgets_zbqkvj = "";
|
|
8854
8869
|
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8855
8870
|
name: "AuxiliaryLine",
|
|
8856
|
-
class: "
|
|
8871
|
+
class: "a60f3dj",
|
|
8857
8872
|
propsAsIs: false
|
|
8858
8873
|
});
|
|
8859
|
-
const
|
|
8860
|
-
const TableContainerStyle = "
|
|
8861
|
-
function Table(props) {
|
|
8874
|
+
const index_17chkj7 = "";
|
|
8875
|
+
const TableContainerStyle = "t47xc8k";
|
|
8876
|
+
function Table$1(props) {
|
|
8862
8877
|
const {
|
|
8863
8878
|
t: t2
|
|
8864
8879
|
} = useTranslation();
|
|
@@ -8975,7 +8990,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8975
8990
|
const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
8976
8991
|
const { t: t2 } = useTranslation();
|
|
8977
8992
|
const component = React.useContext(ComponentContext);
|
|
8978
|
-
const
|
|
8993
|
+
const Table2 = component.Table || Table$1;
|
|
8979
8994
|
const currentSize = 10;
|
|
8980
8995
|
const datas = Object.keys(podSelectors).map((key2) => ({
|
|
8981
8996
|
id: key2,
|
|
@@ -9020,7 +9035,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9020
9035
|
);
|
|
9021
9036
|
}
|
|
9022
9037
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9023
|
-
|
|
9038
|
+
Table2,
|
|
9024
9039
|
{
|
|
9025
9040
|
tableKey: "podSelector",
|
|
9026
9041
|
loading: false,
|
|
@@ -9040,7 +9055,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9040
9055
|
const PortsTable = ({ service }) => {
|
|
9041
9056
|
const { t: t2 } = useTranslation();
|
|
9042
9057
|
const component = React.useContext(ComponentContext);
|
|
9043
|
-
const
|
|
9058
|
+
const Table2 = component.Table || Table$1;
|
|
9044
9059
|
const currentSize = 10;
|
|
9045
9060
|
const columns = [
|
|
9046
9061
|
{
|
|
@@ -9108,7 +9123,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9108
9123
|
);
|
|
9109
9124
|
}
|
|
9110
9125
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9111
|
-
|
|
9126
|
+
Table2,
|
|
9112
9127
|
{
|
|
9113
9128
|
tableKey: "ports",
|
|
9114
9129
|
loading: false,
|
|
@@ -9125,6 +9140,409 @@ var __publicField = (obj, key, value) => {
|
|
|
9125
9140
|
}
|
|
9126
9141
|
);
|
|
9127
9142
|
};
|
|
9143
|
+
function FormErrorAlert(props) {
|
|
9144
|
+
const { title, errorMsgs, style, className, isEdit } = props;
|
|
9145
|
+
const { i18n: i18n2 } = useTranslation();
|
|
9146
|
+
return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9147
|
+
eagle.Alert,
|
|
9148
|
+
{
|
|
9149
|
+
message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
9150
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title || i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
|
|
9151
|
+
errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
9152
|
+
index2 + 1 + ". ",
|
|
9153
|
+
" ",
|
|
9154
|
+
errorMsg
|
|
9155
|
+
] }, errorMsg)) }) : lodashEs.first(errorMsgs)
|
|
9156
|
+
] }),
|
|
9157
|
+
type: "error",
|
|
9158
|
+
style,
|
|
9159
|
+
className
|
|
9160
|
+
}
|
|
9161
|
+
) : null;
|
|
9162
|
+
}
|
|
9163
|
+
var AccessControlAuth = /* @__PURE__ */ ((AccessControlAuth2) => {
|
|
9164
|
+
AccessControlAuth2["Edit"] = "Edit";
|
|
9165
|
+
AccessControlAuth2["Delete"] = "Delete";
|
|
9166
|
+
AccessControlAuth2["Create"] = "Create";
|
|
9167
|
+
return AccessControlAuth2;
|
|
9168
|
+
})(AccessControlAuth || {});
|
|
9169
|
+
function getCommonErrors(responseBody, i18n2) {
|
|
9170
|
+
var _a;
|
|
9171
|
+
if (!((responseBody == null ? void 0 : responseBody.message) || (responseBody == null ? void 0 : responseBody.code) || (responseBody == null ? void 0 : responseBody.reason) || (responseBody == null ? void 0 : responseBody.details) || (responseBody == null ? void 0 : responseBody.graphQLErrors))) {
|
|
9172
|
+
return [];
|
|
9173
|
+
}
|
|
9174
|
+
const causes = ((_a = responseBody.details) == null ? void 0 : _a.causes) || responseBody.graphQLErrors || [];
|
|
9175
|
+
if (causes.length) {
|
|
9176
|
+
return causes.map((cause) => {
|
|
9177
|
+
let params = {};
|
|
9178
|
+
let message2 = cause.message;
|
|
9179
|
+
try {
|
|
9180
|
+
const info = JSON.parse(cause.message);
|
|
9181
|
+
params = info.params;
|
|
9182
|
+
message2 = info.message;
|
|
9183
|
+
} catch {
|
|
9184
|
+
return i18n2.t(
|
|
9185
|
+
[
|
|
9186
|
+
`error.${cause.reason}`,
|
|
9187
|
+
`error.${cause.code}`,
|
|
9188
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
9189
|
+
],
|
|
9190
|
+
{
|
|
9191
|
+
...params,
|
|
9192
|
+
fallbackLng: ""
|
|
9193
|
+
}
|
|
9194
|
+
);
|
|
9195
|
+
}
|
|
9196
|
+
return i18n2.t(
|
|
9197
|
+
[
|
|
9198
|
+
`error.${cause.reason}`,
|
|
9199
|
+
`error.${cause.code}`,
|
|
9200
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
9201
|
+
],
|
|
9202
|
+
{
|
|
9203
|
+
...params,
|
|
9204
|
+
fallbackLng: ""
|
|
9205
|
+
}
|
|
9206
|
+
);
|
|
9207
|
+
});
|
|
9208
|
+
}
|
|
9209
|
+
return [
|
|
9210
|
+
i18n2.t(
|
|
9211
|
+
[`error.${responseBody.code}`, `error.${responseBody.reason}`, responseBody.message || ""],
|
|
9212
|
+
{ fallbackLng: "" }
|
|
9213
|
+
)
|
|
9214
|
+
];
|
|
9215
|
+
}
|
|
9216
|
+
function useSubmitForm(options) {
|
|
9217
|
+
const { formRef, onSubmitSuccess } = options;
|
|
9218
|
+
const { i18n: i18n2 } = useTranslation();
|
|
9219
|
+
const [submitting, setSubmitting] = React.useState(false);
|
|
9220
|
+
const [errorMsgs, setErrorMsgs] = React.useState([]);
|
|
9221
|
+
const reset = React.useCallback(() => {
|
|
9222
|
+
setSubmitting(false);
|
|
9223
|
+
setErrorMsgs([]);
|
|
9224
|
+
}, []);
|
|
9225
|
+
const onSubmit = React.useCallback(async () => {
|
|
9226
|
+
var _a;
|
|
9227
|
+
try {
|
|
9228
|
+
setSubmitting(true);
|
|
9229
|
+
const isFalsy = await ((_a = formRef.current) == null ? void 0 : _a.submit()) === false;
|
|
9230
|
+
if (isFalsy) {
|
|
9231
|
+
return;
|
|
9232
|
+
}
|
|
9233
|
+
onSubmitSuccess == null ? void 0 : onSubmitSuccess();
|
|
9234
|
+
reset();
|
|
9235
|
+
} catch (error) {
|
|
9236
|
+
if (error instanceof Object) {
|
|
9237
|
+
if ("response" in error && error.response instanceof Response) {
|
|
9238
|
+
const response = error.response;
|
|
9239
|
+
const body = await response.json();
|
|
9240
|
+
setErrorMsgs(getCommonErrors(body, i18n2));
|
|
9241
|
+
} else if ("message" in error && typeof error.message === "string") {
|
|
9242
|
+
setErrorMsgs([error.message]);
|
|
9243
|
+
}
|
|
9244
|
+
}
|
|
9245
|
+
} finally {
|
|
9246
|
+
setSubmitting(false);
|
|
9247
|
+
}
|
|
9248
|
+
}, [formRef, i18n2, reset, onSubmitSuccess]);
|
|
9249
|
+
return {
|
|
9250
|
+
submitting,
|
|
9251
|
+
errorMsgs,
|
|
9252
|
+
reset,
|
|
9253
|
+
onSubmit
|
|
9254
|
+
};
|
|
9255
|
+
}
|
|
9256
|
+
const index_10dq51k = "";
|
|
9257
|
+
const EditButtonStyle = "esoz3jw";
|
|
9258
|
+
function EditFieldModal(props) {
|
|
9259
|
+
const {
|
|
9260
|
+
title,
|
|
9261
|
+
formRef: form2,
|
|
9262
|
+
renderContent,
|
|
9263
|
+
fullscreen
|
|
9264
|
+
} = props;
|
|
9265
|
+
const {
|
|
9266
|
+
i18n: i18n2
|
|
9267
|
+
} = useTranslation();
|
|
9268
|
+
const popModal = eagle.usePopModal();
|
|
9269
|
+
const {
|
|
9270
|
+
submitting,
|
|
9271
|
+
errorMsgs,
|
|
9272
|
+
reset,
|
|
9273
|
+
onSubmit
|
|
9274
|
+
} = useSubmitForm({
|
|
9275
|
+
formRef: form2,
|
|
9276
|
+
onSubmitSuccess: () => {
|
|
9277
|
+
popModal();
|
|
9278
|
+
}
|
|
9279
|
+
});
|
|
9280
|
+
const close = React.useCallback(() => {
|
|
9281
|
+
popModal();
|
|
9282
|
+
reset();
|
|
9283
|
+
}, [reset]);
|
|
9284
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
|
|
9285
|
+
className: fullscreen ? FullscreenModalStyle : SmallModalStyle,
|
|
9286
|
+
title: title || i18n2.t("dovetail.edit"),
|
|
9287
|
+
confirmLoading: submitting,
|
|
9288
|
+
onOk: onSubmit,
|
|
9289
|
+
onCancel: close,
|
|
9290
|
+
okText: i18n2.t("dovetail.save"),
|
|
9291
|
+
normal: true,
|
|
9292
|
+
destroyOnClose: true,
|
|
9293
|
+
fullscreen,
|
|
9294
|
+
children: [renderContent(), /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
9295
|
+
style: {
|
|
9296
|
+
marginTop: 16
|
|
9297
|
+
},
|
|
9298
|
+
errorMsgs,
|
|
9299
|
+
isEdit: true
|
|
9300
|
+
})]
|
|
9301
|
+
});
|
|
9302
|
+
}
|
|
9303
|
+
function EditField(props) {
|
|
9304
|
+
const {
|
|
9305
|
+
modalProps
|
|
9306
|
+
} = props;
|
|
9307
|
+
const {
|
|
9308
|
+
i18n: i18n2
|
|
9309
|
+
} = useTranslation();
|
|
9310
|
+
const {
|
|
9311
|
+
resource
|
|
9312
|
+
} = core.useResource();
|
|
9313
|
+
const pushModal = eagle.usePushModal();
|
|
9314
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
|
|
9315
|
+
resource: resource == null ? void 0 : resource.name,
|
|
9316
|
+
action: AccessControlAuth.Edit,
|
|
9317
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
9318
|
+
className: cx_default(EditButtonStyle, eagle.Typo.Label.l4_regular_title),
|
|
9319
|
+
type: "link",
|
|
9320
|
+
onClick: () => {
|
|
9321
|
+
pushModal({
|
|
9322
|
+
component: EditFieldModal,
|
|
9323
|
+
props: modalProps
|
|
9324
|
+
});
|
|
9325
|
+
},
|
|
9326
|
+
children: i18n2.t("dovetail.edit")
|
|
9327
|
+
})
|
|
9328
|
+
});
|
|
9329
|
+
}
|
|
9330
|
+
var StorageUnit = /* @__PURE__ */ ((StorageUnit2) => {
|
|
9331
|
+
StorageUnit2["Pi"] = "Pi";
|
|
9332
|
+
StorageUnit2["PiB"] = "PiB";
|
|
9333
|
+
StorageUnit2["Ti"] = "Ti";
|
|
9334
|
+
StorageUnit2["TiB"] = "TiB";
|
|
9335
|
+
StorageUnit2["Gi"] = "Gi";
|
|
9336
|
+
StorageUnit2["GiB"] = "GiB";
|
|
9337
|
+
StorageUnit2["Mi"] = "Mi";
|
|
9338
|
+
StorageUnit2["MiB"] = "MiB";
|
|
9339
|
+
StorageUnit2["Ki"] = "Ki";
|
|
9340
|
+
StorageUnit2["KiB"] = "KiB";
|
|
9341
|
+
return StorageUnit2;
|
|
9342
|
+
})(StorageUnit || {});
|
|
9343
|
+
const UNIT_FACTORS = {
|
|
9344
|
+
Pi: 1024 ** 5,
|
|
9345
|
+
PiB: 1024 ** 5,
|
|
9346
|
+
Ti: 1024 ** 4,
|
|
9347
|
+
TiB: 1024 ** 4,
|
|
9348
|
+
Gi: 1024 ** 3,
|
|
9349
|
+
GiB: 1024 ** 3,
|
|
9350
|
+
Mi: 1024 ** 2,
|
|
9351
|
+
MiB: 1024 ** 2,
|
|
9352
|
+
Ki: 1024,
|
|
9353
|
+
KiB: 1024,
|
|
9354
|
+
B: 1
|
|
9355
|
+
};
|
|
9356
|
+
function transformStorageUnit(value2, toUnit = "Gi") {
|
|
9357
|
+
const num = parseFloat(value2);
|
|
9358
|
+
const unit = Object.values(StorageUnit).find((u) => value2.includes(u)) || "Ki";
|
|
9359
|
+
return num / UNIT_FACTORS[unit] * UNIT_FACTORS[toUnit];
|
|
9360
|
+
}
|
|
9361
|
+
const UNITS = ["", "K", "M", "G", "T", "P"];
|
|
9362
|
+
const FRACTIONAL = ["", "m", "u", "n", "p", "f"];
|
|
9363
|
+
function formatSi(inValue, options) {
|
|
9364
|
+
const {
|
|
9365
|
+
increment = 1e3,
|
|
9366
|
+
suffix = null,
|
|
9367
|
+
firstSuffix = null,
|
|
9368
|
+
startingExponent = 0,
|
|
9369
|
+
minExponent = 0,
|
|
9370
|
+
maxPrecision = 2,
|
|
9371
|
+
atLeastOne = true
|
|
9372
|
+
} = options || {};
|
|
9373
|
+
let val = inValue;
|
|
9374
|
+
let exp = startingExponent;
|
|
9375
|
+
while (val >= increment && exp + 1 < UNITS.length || exp < minExponent) {
|
|
9376
|
+
val = val / increment;
|
|
9377
|
+
exp++;
|
|
9378
|
+
}
|
|
9379
|
+
let out = 0;
|
|
9380
|
+
if (val < 10 && maxPrecision >= 2) {
|
|
9381
|
+
out = Math.round(val * 100) / 100;
|
|
9382
|
+
} else if (val < 100 && maxPrecision >= 1) {
|
|
9383
|
+
out = Math.round(val * 10) / 10;
|
|
9384
|
+
} else {
|
|
9385
|
+
out = Math.round(val);
|
|
9386
|
+
}
|
|
9387
|
+
if (atLeastOne && out === 0) {
|
|
9388
|
+
out = 1;
|
|
9389
|
+
}
|
|
9390
|
+
let outStr = String(out);
|
|
9391
|
+
if (exp === 0 && firstSuffix !== null) {
|
|
9392
|
+
outStr += `${firstSuffix}`;
|
|
9393
|
+
} else {
|
|
9394
|
+
outStr += `${UNITS[exp]}${suffix}` || "";
|
|
9395
|
+
}
|
|
9396
|
+
return outStr;
|
|
9397
|
+
}
|
|
9398
|
+
function parseSi(inValue, increment = null, allowFractional = true) {
|
|
9399
|
+
if (!inValue || typeof inValue !== "string" || !inValue.length) {
|
|
9400
|
+
return NaN;
|
|
9401
|
+
}
|
|
9402
|
+
inValue = inValue.replace(/,/g, "");
|
|
9403
|
+
let [, valStr, unit, incStr] = inValue.match(/^([0-9.-]+)\s*([^0-9.-]?)([^0-9.-]?)/) || [];
|
|
9404
|
+
const val = parseFloat(valStr);
|
|
9405
|
+
if (!unit) {
|
|
9406
|
+
return val;
|
|
9407
|
+
}
|
|
9408
|
+
if (unit.charCodeAt(0) === 181) {
|
|
9409
|
+
unit = "u";
|
|
9410
|
+
}
|
|
9411
|
+
const divide = FRACTIONAL.includes(unit);
|
|
9412
|
+
const multiply = UNITS.includes(unit.toUpperCase());
|
|
9413
|
+
if (increment === null) {
|
|
9414
|
+
if ((multiply || divide) && incStr === "i") {
|
|
9415
|
+
increment = 1024;
|
|
9416
|
+
} else {
|
|
9417
|
+
increment = 1e3;
|
|
9418
|
+
}
|
|
9419
|
+
}
|
|
9420
|
+
if (divide && allowFractional) {
|
|
9421
|
+
const exp = FRACTIONAL.indexOf(unit);
|
|
9422
|
+
return val / Math.pow(increment, exp);
|
|
9423
|
+
}
|
|
9424
|
+
if (multiply) {
|
|
9425
|
+
const exp = UNITS.indexOf(unit.toUpperCase());
|
|
9426
|
+
return val * Math.pow(increment, exp);
|
|
9427
|
+
}
|
|
9428
|
+
return val;
|
|
9429
|
+
}
|
|
9430
|
+
const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(props, ref) {
|
|
9431
|
+
const { defaultValue, pvc: pvc2 } = props;
|
|
9432
|
+
const { resource } = core.useResource();
|
|
9433
|
+
const { mutateAsync } = core.useUpdate();
|
|
9434
|
+
const { t: t2 } = useTranslation();
|
|
9435
|
+
const [distributeStorage, setDistributeStorage] = React.useState(defaultValue);
|
|
9436
|
+
const [validateResult, setValidateResult] = React.useState({
|
|
9437
|
+
distributeStorage: ""
|
|
9438
|
+
});
|
|
9439
|
+
const validators = React.useMemo(() => {
|
|
9440
|
+
return {
|
|
9441
|
+
distributeStorage(value2) {
|
|
9442
|
+
if (lodashEs.isNil(value2)) {
|
|
9443
|
+
return t2("dovetail.pvc_storage_required");
|
|
9444
|
+
} else if (value2 < 1) {
|
|
9445
|
+
return t2("dovetail.pvc_storage_min");
|
|
9446
|
+
} else if (value2 < defaultValue) {
|
|
9447
|
+
return t2("dovetail.pvc_storage_reduce_limit");
|
|
9448
|
+
}
|
|
9449
|
+
return "";
|
|
9450
|
+
}
|
|
9451
|
+
};
|
|
9452
|
+
}, [t2, defaultValue]);
|
|
9453
|
+
const submit = React.useCallback(() => {
|
|
9454
|
+
const isInvalid = !!validators.distributeStorage(distributeStorage);
|
|
9455
|
+
if (isInvalid) {
|
|
9456
|
+
return false;
|
|
9457
|
+
}
|
|
9458
|
+
const v = pvc2.updateDistributeStorage(distributeStorage);
|
|
9459
|
+
const id = pvc2.id;
|
|
9460
|
+
pruneBeforeEdit(v);
|
|
9461
|
+
return mutateAsync({
|
|
9462
|
+
id,
|
|
9463
|
+
resource: (resource == null ? void 0 : resource.name) || "",
|
|
9464
|
+
values: v,
|
|
9465
|
+
successNotification() {
|
|
9466
|
+
return {
|
|
9467
|
+
message: t2("dovetail.edit_distribute_storage_success_toast", {
|
|
9468
|
+
kind: pvc2.kind,
|
|
9469
|
+
name: pvc2.id,
|
|
9470
|
+
interpolation: {
|
|
9471
|
+
escapeValue: false
|
|
9472
|
+
}
|
|
9473
|
+
}),
|
|
9474
|
+
type: "success"
|
|
9475
|
+
};
|
|
9476
|
+
},
|
|
9477
|
+
errorNotification: false
|
|
9478
|
+
});
|
|
9479
|
+
}, [pvc2, distributeStorage, resource == null ? void 0 : resource.name, validators, mutateAsync, t2]);
|
|
9480
|
+
React.useImperativeHandle(ref, () => ({
|
|
9481
|
+
submit
|
|
9482
|
+
}), [submit]);
|
|
9483
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9484
|
+
eagle.Form.Item,
|
|
9485
|
+
{
|
|
9486
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: t2("dovetail.distributed") }),
|
|
9487
|
+
colon: false,
|
|
9488
|
+
help: validateResult.distributeStorage,
|
|
9489
|
+
validateStatus: validateResult.distributeStorage ? "error" : "",
|
|
9490
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9491
|
+
eagle.Fields.Integer,
|
|
9492
|
+
{
|
|
9493
|
+
style: { width: "142px" },
|
|
9494
|
+
input: {
|
|
9495
|
+
name: "distributeStorage",
|
|
9496
|
+
value: distributeStorage,
|
|
9497
|
+
onChange: (value2) => {
|
|
9498
|
+
const v = Number(value2);
|
|
9499
|
+
setDistributeStorage(v);
|
|
9500
|
+
setValidateResult({
|
|
9501
|
+
distributeStorage: validators.distributeStorage(v)
|
|
9502
|
+
});
|
|
9503
|
+
},
|
|
9504
|
+
onBlur: () => {
|
|
9505
|
+
},
|
|
9506
|
+
onFocus: () => {
|
|
9507
|
+
}
|
|
9508
|
+
},
|
|
9509
|
+
min: 1,
|
|
9510
|
+
meta: {},
|
|
9511
|
+
suffix: "GiB",
|
|
9512
|
+
controls: true
|
|
9513
|
+
}
|
|
9514
|
+
)
|
|
9515
|
+
}
|
|
9516
|
+
);
|
|
9517
|
+
});
|
|
9518
|
+
function PVCDistributeStorage({ pvc: pvc2, editable }) {
|
|
9519
|
+
var _a, _b;
|
|
9520
|
+
const { t: t2 } = useTranslation();
|
|
9521
|
+
const formRef = React.useRef(null);
|
|
9522
|
+
const value2 = (_b = (_a = pvc2.spec.resources) == null ? void 0 : _a.requests) == null ? void 0 : _b.storage;
|
|
9523
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
9524
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 }),
|
|
9525
|
+
editable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9526
|
+
EditField,
|
|
9527
|
+
{
|
|
9528
|
+
modalProps: {
|
|
9529
|
+
formRef,
|
|
9530
|
+
title: t2("dovetail.edit_replicas"),
|
|
9531
|
+
renderContent() {
|
|
9532
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9533
|
+
DistributeStorageForm,
|
|
9534
|
+
{
|
|
9535
|
+
ref: formRef,
|
|
9536
|
+
defaultValue: value2 ? transformStorageUnit(value2, StorageUnit.Gi) : 0,
|
|
9537
|
+
pvc: pvc2
|
|
9538
|
+
}
|
|
9539
|
+
);
|
|
9540
|
+
}
|
|
9541
|
+
}
|
|
9542
|
+
}
|
|
9543
|
+
)
|
|
9544
|
+
] });
|
|
9545
|
+
}
|
|
9128
9546
|
class ResourceModel {
|
|
9129
9547
|
constructor(_rawYaml, _globalStore) {
|
|
9130
9548
|
__publicField(this, "id");
|
|
@@ -9806,28 +10224,27 @@ var __publicField = (obj, key, value) => {
|
|
|
9806
10224
|
"storageClassName": "example"
|
|
9807
10225
|
}
|
|
9808
10226
|
};
|
|
9809
|
-
var
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
})(AccessControlAuth || {});
|
|
10227
|
+
var ResourceState = /* @__PURE__ */ ((ResourceState2) => {
|
|
10228
|
+
ResourceState2["TERMINATED"] = "terminated";
|
|
10229
|
+
ResourceState2["UPDATING"] = "updating";
|
|
10230
|
+
ResourceState2["READY"] = "ready";
|
|
10231
|
+
ResourceState2["COMPLETED"] = "completed";
|
|
10232
|
+
ResourceState2["ABNORMAL"] = "abnormal";
|
|
10233
|
+
ResourceState2["FAILED"] = "failed";
|
|
10234
|
+
ResourceState2["SUSPENDED"] = "suspended";
|
|
10235
|
+
ResourceState2["RUNNING"] = "running";
|
|
10236
|
+
ResourceState2["SUCCEEDED"] = "succeeded";
|
|
10237
|
+
ResourceState2["UNKNOWN"] = "unknown";
|
|
10238
|
+
ResourceState2["TERMINATING"] = "terminating";
|
|
10239
|
+
ResourceState2["PENDING"] = "pending";
|
|
10240
|
+
ResourceState2["WAITING"] = "waiting";
|
|
10241
|
+
ResourceState2["STOPPED"] = "stopped";
|
|
10242
|
+
ResourceState2["AVAILABLE"] = "available";
|
|
10243
|
+
ResourceState2["BOUND"] = "bound";
|
|
10244
|
+
ResourceState2["RELEASED"] = "released";
|
|
10245
|
+
ResourceState2["LOST"] = "lost";
|
|
10246
|
+
return ResourceState2;
|
|
10247
|
+
})(ResourceState || {});
|
|
9831
10248
|
function matchSelector(pod2, selector, namespace2 = "default") {
|
|
9832
10249
|
var _a, _b, _c;
|
|
9833
10250
|
let match = true;
|
|
@@ -9913,18 +10330,18 @@ var __publicField = (obj, key, value) => {
|
|
|
9913
10330
|
get stateDisplay() {
|
|
9914
10331
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
9915
10332
|
if (!((_a = this.spec) == null ? void 0 : _a.completions) && !((_b = this.status) == null ? void 0 : _b.succeeded)) {
|
|
9916
|
-
return
|
|
10333
|
+
return ResourceState.RUNNING;
|
|
9917
10334
|
}
|
|
9918
10335
|
if (((_c = this.spec) == null ? void 0 : _c.completions) === ((_d = this.status) == null ? void 0 : _d.succeeded) || ((_f = (_e = this.status) == null ? void 0 : _e.conditions) == null ? void 0 : _f.some((c2) => c2.type === "Complete" && c2.status === "True"))) {
|
|
9919
|
-
return
|
|
10336
|
+
return ResourceState.COMPLETED;
|
|
9920
10337
|
}
|
|
9921
10338
|
if ((_h = (_g = this.status) == null ? void 0 : _g.conditions) == null ? void 0 : _h.some((c2) => c2.type === "Failed" && c2.status === "True")) {
|
|
9922
|
-
return
|
|
10339
|
+
return ResourceState.ABNORMAL;
|
|
9923
10340
|
}
|
|
9924
10341
|
if ((_j = (_i = this.status) == null ? void 0 : _i.conditions) == null ? void 0 : _j.some((c2) => c2.type === "Suspended" && c2.status === "True")) {
|
|
9925
|
-
return
|
|
10342
|
+
return ResourceState.SUSPENDED;
|
|
9926
10343
|
}
|
|
9927
|
-
return
|
|
10344
|
+
return ResourceState.RUNNING;
|
|
9928
10345
|
}
|
|
9929
10346
|
}
|
|
9930
10347
|
class WorkloadModel extends WorkloadBaseModel {
|
|
@@ -9976,75 +10393,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9976
10393
|
return newOne;
|
|
9977
10394
|
}
|
|
9978
10395
|
}
|
|
9979
|
-
const UNITS = ["", "K", "M", "G", "T", "P"];
|
|
9980
|
-
const FRACTIONAL = ["", "m", "u", "n", "p", "f"];
|
|
9981
|
-
function formatSi(inValue, options) {
|
|
9982
|
-
const {
|
|
9983
|
-
increment = 1e3,
|
|
9984
|
-
suffix = null,
|
|
9985
|
-
firstSuffix = null,
|
|
9986
|
-
startingExponent = 0,
|
|
9987
|
-
minExponent = 0,
|
|
9988
|
-
maxPrecision = 2,
|
|
9989
|
-
atLeastOne = true
|
|
9990
|
-
} = options || {};
|
|
9991
|
-
let val = inValue;
|
|
9992
|
-
let exp = startingExponent;
|
|
9993
|
-
while (val >= increment && exp + 1 < UNITS.length || exp < minExponent) {
|
|
9994
|
-
val = val / increment;
|
|
9995
|
-
exp++;
|
|
9996
|
-
}
|
|
9997
|
-
let out = 0;
|
|
9998
|
-
if (val < 10 && maxPrecision >= 2) {
|
|
9999
|
-
out = Math.round(val * 100) / 100;
|
|
10000
|
-
} else if (val < 100 && maxPrecision >= 1) {
|
|
10001
|
-
out = Math.round(val * 10) / 10;
|
|
10002
|
-
} else {
|
|
10003
|
-
out = Math.round(val);
|
|
10004
|
-
}
|
|
10005
|
-
if (atLeastOne && out === 0) {
|
|
10006
|
-
out = 1;
|
|
10007
|
-
}
|
|
10008
|
-
let outStr = String(out);
|
|
10009
|
-
if (exp === 0 && firstSuffix !== null) {
|
|
10010
|
-
outStr += `${firstSuffix}`;
|
|
10011
|
-
} else {
|
|
10012
|
-
outStr += `${UNITS[exp]}${suffix}` || "";
|
|
10013
|
-
}
|
|
10014
|
-
return outStr;
|
|
10015
|
-
}
|
|
10016
|
-
function parseSi(inValue, increment = null, allowFractional = true) {
|
|
10017
|
-
if (!inValue || typeof inValue !== "string" || !inValue.length) {
|
|
10018
|
-
return NaN;
|
|
10019
|
-
}
|
|
10020
|
-
inValue = inValue.replace(/,/g, "");
|
|
10021
|
-
let [, valStr, unit, incStr] = inValue.match(/^([0-9.-]+)\s*([^0-9.-]?)([^0-9.-]?)/) || [];
|
|
10022
|
-
const val = parseFloat(valStr);
|
|
10023
|
-
if (!unit) {
|
|
10024
|
-
return val;
|
|
10025
|
-
}
|
|
10026
|
-
if (unit.charCodeAt(0) === 181) {
|
|
10027
|
-
unit = "u";
|
|
10028
|
-
}
|
|
10029
|
-
const divide = FRACTIONAL.includes(unit);
|
|
10030
|
-
const multiply = UNITS.includes(unit.toUpperCase());
|
|
10031
|
-
if (increment === null) {
|
|
10032
|
-
if ((multiply || divide) && incStr === "i") {
|
|
10033
|
-
increment = 1024;
|
|
10034
|
-
} else {
|
|
10035
|
-
increment = 1e3;
|
|
10036
|
-
}
|
|
10037
|
-
}
|
|
10038
|
-
if (divide && allowFractional) {
|
|
10039
|
-
const exp = FRACTIONAL.indexOf(unit);
|
|
10040
|
-
return val / Math.pow(increment, exp);
|
|
10041
|
-
}
|
|
10042
|
-
if (multiply) {
|
|
10043
|
-
const exp = UNITS.indexOf(unit.toUpperCase());
|
|
10044
|
-
return val * Math.pow(increment, exp);
|
|
10045
|
-
}
|
|
10046
|
-
return val;
|
|
10047
|
-
}
|
|
10048
10396
|
class PodModel extends WorkloadBaseModel {
|
|
10049
10397
|
constructor(_rawYaml, _globalStore) {
|
|
10050
10398
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
@@ -10122,9 +10470,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10122
10470
|
get stateDisplay() {
|
|
10123
10471
|
var _a, _b;
|
|
10124
10472
|
if (this.metadata.deletionTimestamp) {
|
|
10125
|
-
return
|
|
10473
|
+
return ResourceState.TERMINATING;
|
|
10126
10474
|
}
|
|
10127
|
-
return ((_b = (_a = this.status) == null ? void 0 : _a.phase) == null ? void 0 : _b.toLowerCase()) ||
|
|
10475
|
+
return ((_b = (_a = this.status) == null ? void 0 : _a.phase) == null ? void 0 : _b.toLowerCase()) || ResourceState.UNKNOWN;
|
|
10128
10476
|
}
|
|
10129
10477
|
}
|
|
10130
10478
|
class PodMetricsModel extends ResourceModel {
|
|
@@ -10164,9 +10512,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10164
10512
|
get stateDisplay() {
|
|
10165
10513
|
var _a;
|
|
10166
10514
|
if ((_a = this.spec) == null ? void 0 : _a.suspend) {
|
|
10167
|
-
return
|
|
10515
|
+
return ResourceState.SUSPENDED;
|
|
10168
10516
|
}
|
|
10169
|
-
return
|
|
10517
|
+
return ResourceState.RUNNING;
|
|
10170
10518
|
}
|
|
10171
10519
|
suspend() {
|
|
10172
10520
|
const newOne = lodashExports.cloneDeep(this._rawYaml);
|
|
@@ -10198,11 +10546,11 @@ var __publicField = (obj, key, value) => {
|
|
|
10198
10546
|
get stateDisplay() {
|
|
10199
10547
|
var _a, _b, _c;
|
|
10200
10548
|
if (((_a = this.spec) == null ? void 0 : _a.replicas) === 0) {
|
|
10201
|
-
return
|
|
10549
|
+
return ResourceState.STOPPED;
|
|
10202
10550
|
} else if (((_b = this.spec) == null ? void 0 : _b.replicas) !== ((_c = this.status) == null ? void 0 : _c.readyReplicas)) {
|
|
10203
|
-
return
|
|
10551
|
+
return ResourceState.UPDATING;
|
|
10204
10552
|
}
|
|
10205
|
-
return
|
|
10553
|
+
return ResourceState.READY;
|
|
10206
10554
|
}
|
|
10207
10555
|
}
|
|
10208
10556
|
class DaemonSetModel extends WorkloadModel {
|
|
@@ -10213,9 +10561,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10213
10561
|
get stateDisplay() {
|
|
10214
10562
|
var _a, _b;
|
|
10215
10563
|
if (((_a = this.status) == null ? void 0 : _a.desiredNumberScheduled) !== ((_b = this.status) == null ? void 0 : _b.numberReady)) {
|
|
10216
|
-
return
|
|
10564
|
+
return ResourceState.UPDATING;
|
|
10217
10565
|
}
|
|
10218
|
-
return
|
|
10566
|
+
return ResourceState.READY;
|
|
10219
10567
|
}
|
|
10220
10568
|
get replicas() {
|
|
10221
10569
|
return this.status && "desiredNumberScheduled" in this.status ? this.status.desiredNumberScheduled : 0;
|
|
@@ -10232,11 +10580,11 @@ var __publicField = (obj, key, value) => {
|
|
|
10232
10580
|
get stateDisplay() {
|
|
10233
10581
|
var _a, _b, _c;
|
|
10234
10582
|
if (((_a = this.spec) == null ? void 0 : _a.replicas) === 0) {
|
|
10235
|
-
return
|
|
10583
|
+
return ResourceState.STOPPED;
|
|
10236
10584
|
} else if (((_b = this.spec) == null ? void 0 : _b.replicas) !== ((_c = this.status) == null ? void 0 : _c.readyReplicas)) {
|
|
10237
|
-
return
|
|
10585
|
+
return ResourceState.UPDATING;
|
|
10238
10586
|
}
|
|
10239
|
-
return
|
|
10587
|
+
return ResourceState.READY;
|
|
10240
10588
|
}
|
|
10241
10589
|
}
|
|
10242
10590
|
var ServiceTypeEnum = /* @__PURE__ */ ((ServiceTypeEnum2) => {
|
|
@@ -10285,7 +10633,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10285
10633
|
NodeRole2["Worker"] = "Worker";
|
|
10286
10634
|
return NodeRole2;
|
|
10287
10635
|
})(NodeRole || {});
|
|
10288
|
-
class NodeModel extends
|
|
10636
|
+
class NodeModel extends ResourceModel {
|
|
10289
10637
|
constructor(_rawYaml, _globalStore) {
|
|
10290
10638
|
super(_rawYaml, _globalStore);
|
|
10291
10639
|
this._rawYaml = _rawYaml;
|
|
@@ -10343,6 +10691,22 @@ var __publicField = (obj, key, value) => {
|
|
|
10343
10691
|
get phase() {
|
|
10344
10692
|
return this._rawYaml.status.phase;
|
|
10345
10693
|
}
|
|
10694
|
+
get stateDisplay() {
|
|
10695
|
+
switch (this.phase) {
|
|
10696
|
+
case "Pending":
|
|
10697
|
+
return ResourceState.PENDING;
|
|
10698
|
+
case "Bound":
|
|
10699
|
+
return ResourceState.BOUND;
|
|
10700
|
+
case "Failed":
|
|
10701
|
+
return ResourceState.FAILED;
|
|
10702
|
+
case "Available":
|
|
10703
|
+
return ResourceState.AVAILABLE;
|
|
10704
|
+
case "Released":
|
|
10705
|
+
return ResourceState.RELEASED;
|
|
10706
|
+
default:
|
|
10707
|
+
return ResourceState.UNKNOWN;
|
|
10708
|
+
}
|
|
10709
|
+
}
|
|
10346
10710
|
get csi() {
|
|
10347
10711
|
var _a;
|
|
10348
10712
|
return (_a = this._rawYaml.spec.csi) == null ? void 0 : _a.driver;
|
|
@@ -10351,6 +10715,10 @@ var __publicField = (obj, key, value) => {
|
|
|
10351
10715
|
var _a;
|
|
10352
10716
|
return (_a = this._rawYaml.spec.claimRef) == null ? void 0 : _a.name;
|
|
10353
10717
|
}
|
|
10718
|
+
get pvcNamespace() {
|
|
10719
|
+
var _a;
|
|
10720
|
+
return (_a = this._rawYaml.spec.claimRef) == null ? void 0 : _a.namespace;
|
|
10721
|
+
}
|
|
10354
10722
|
}
|
|
10355
10723
|
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10356
10724
|
constructor(_rawYaml, _globalStore) {
|
|
@@ -10363,6 +10731,18 @@ var __publicField = (obj, key, value) => {
|
|
|
10363
10731
|
get pv() {
|
|
10364
10732
|
return this._rawYaml.spec.volumeName;
|
|
10365
10733
|
}
|
|
10734
|
+
get stateDisplay() {
|
|
10735
|
+
switch (this.phase) {
|
|
10736
|
+
case "Pending":
|
|
10737
|
+
return ResourceState.PENDING;
|
|
10738
|
+
case "Bound":
|
|
10739
|
+
return ResourceState.BOUND;
|
|
10740
|
+
case "Lost":
|
|
10741
|
+
return ResourceState.LOST;
|
|
10742
|
+
case "Failed":
|
|
10743
|
+
return ResourceState.FAILED;
|
|
10744
|
+
}
|
|
10745
|
+
}
|
|
10366
10746
|
updateDistributeStorage(distributeStorage) {
|
|
10367
10747
|
const yaml2 = lodashEs.cloneDeep(this._globalStore.restoreItem(this));
|
|
10368
10748
|
return lodashEs.set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
@@ -10474,38 +10854,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10474
10854
|
children: tags
|
|
10475
10855
|
});
|
|
10476
10856
|
};
|
|
10477
|
-
const
|
|
10478
|
-
const StateTagStyle = "
|
|
10479
|
-
const StateTag = ({
|
|
10480
|
-
state: state2 = WorkloadState.UPDATING,
|
|
10481
|
-
hideBackground,
|
|
10482
|
-
className
|
|
10483
|
-
}) => {
|
|
10484
|
-
const {
|
|
10485
|
-
t: t2
|
|
10486
|
-
} = useTranslation();
|
|
10487
|
-
const statusMap = {
|
|
10488
|
-
updating: "loading",
|
|
10489
|
-
ready: "green",
|
|
10490
|
-
completed: "gray",
|
|
10491
|
-
failed: "red",
|
|
10492
|
-
suspended: "warning",
|
|
10493
|
-
running: "green",
|
|
10494
|
-
succeeded: "blue",
|
|
10495
|
-
unknown: "gray",
|
|
10496
|
-
terminating: "loading",
|
|
10497
|
-
pending: "warning",
|
|
10498
|
-
waiting: "warning",
|
|
10499
|
-
terminated: "red",
|
|
10500
|
-
stopped: "gray"
|
|
10501
|
-
};
|
|
10502
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, {
|
|
10503
|
-
className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
|
|
10504
|
-
color: statusMap[state2] !== "loading" ? statusMap[state2] : void 0,
|
|
10505
|
-
loading: statusMap[state2] === "loading",
|
|
10506
|
-
children: t2(`dovetail.${state2 || "updating"}`)
|
|
10507
|
-
});
|
|
10508
|
-
};
|
|
10857
|
+
const tag_how7no = "";
|
|
10858
|
+
const StateTagStyle = "s82411";
|
|
10509
10859
|
function addId(arr, idKey) {
|
|
10510
10860
|
return arr.map((e2) => {
|
|
10511
10861
|
return {
|
|
@@ -10623,7 +10973,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10623
10973
|
const ConditionsTable = ({ conditions = [] }) => {
|
|
10624
10974
|
const { t: t2 } = useTranslation();
|
|
10625
10975
|
const component = React.useContext(ComponentContext);
|
|
10626
|
-
const
|
|
10976
|
+
const Table2 = component.Table || Table$1;
|
|
10627
10977
|
const conditionsWithId = addId(conditions, "type");
|
|
10628
10978
|
const columns = [
|
|
10629
10979
|
{
|
|
@@ -10699,7 +11049,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10699
11049
|
);
|
|
10700
11050
|
}
|
|
10701
11051
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10702
|
-
|
|
11052
|
+
Table2,
|
|
10703
11053
|
{
|
|
10704
11054
|
tableKey: "condition",
|
|
10705
11055
|
loading: false,
|
|
@@ -10816,184 +11166,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10816
11166
|
}
|
|
10817
11167
|
};
|
|
10818
11168
|
}
|
|
10819
|
-
function FormErrorAlert(props) {
|
|
10820
|
-
const { title, errorMsgs, style, className, isEdit } = props;
|
|
10821
|
-
const { i18n: i18n2 } = useTranslation();
|
|
10822
|
-
return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10823
|
-
eagle.Alert,
|
|
10824
|
-
{
|
|
10825
|
-
message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
10826
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title || i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
|
|
10827
|
-
errorMsgs.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
10828
|
-
index2 + 1 + ". ",
|
|
10829
|
-
" ",
|
|
10830
|
-
errorMsg
|
|
10831
|
-
] }, errorMsg)) }) : lodashEs.first(errorMsgs)
|
|
10832
|
-
] }),
|
|
10833
|
-
type: "error",
|
|
10834
|
-
style,
|
|
10835
|
-
className
|
|
10836
|
-
}
|
|
10837
|
-
) : null;
|
|
10838
|
-
}
|
|
10839
|
-
function getCommonErrors(responseBody, i18n2) {
|
|
10840
|
-
var _a;
|
|
10841
|
-
if (!((responseBody == null ? void 0 : responseBody.message) || (responseBody == null ? void 0 : responseBody.code) || (responseBody == null ? void 0 : responseBody.reason) || (responseBody == null ? void 0 : responseBody.details) || (responseBody == null ? void 0 : responseBody.graphQLErrors))) {
|
|
10842
|
-
return [];
|
|
10843
|
-
}
|
|
10844
|
-
const causes = ((_a = responseBody.details) == null ? void 0 : _a.causes) || responseBody.graphQLErrors || [];
|
|
10845
|
-
if (causes.length) {
|
|
10846
|
-
return causes.map((cause) => {
|
|
10847
|
-
let params = {};
|
|
10848
|
-
let message2 = cause.message;
|
|
10849
|
-
try {
|
|
10850
|
-
const info = JSON.parse(cause.message);
|
|
10851
|
-
params = info.params;
|
|
10852
|
-
message2 = info.message;
|
|
10853
|
-
} catch {
|
|
10854
|
-
return i18n2.t(
|
|
10855
|
-
[
|
|
10856
|
-
`error.${cause.reason}`,
|
|
10857
|
-
`error.${cause.code}`,
|
|
10858
|
-
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
10859
|
-
],
|
|
10860
|
-
{
|
|
10861
|
-
...params,
|
|
10862
|
-
fallbackLng: ""
|
|
10863
|
-
}
|
|
10864
|
-
);
|
|
10865
|
-
}
|
|
10866
|
-
return i18n2.t(
|
|
10867
|
-
[
|
|
10868
|
-
`error.${cause.reason}`,
|
|
10869
|
-
`error.${cause.code}`,
|
|
10870
|
-
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
10871
|
-
],
|
|
10872
|
-
{
|
|
10873
|
-
...params,
|
|
10874
|
-
fallbackLng: ""
|
|
10875
|
-
}
|
|
10876
|
-
);
|
|
10877
|
-
});
|
|
10878
|
-
}
|
|
10879
|
-
return [
|
|
10880
|
-
i18n2.t(
|
|
10881
|
-
[`error.${responseBody.code}`, `error.${responseBody.reason}`, responseBody.message || ""],
|
|
10882
|
-
{ fallbackLng: "" }
|
|
10883
|
-
)
|
|
10884
|
-
];
|
|
10885
|
-
}
|
|
10886
|
-
function useSubmitForm(options) {
|
|
10887
|
-
const { formRef, onSubmitSuccess } = options;
|
|
10888
|
-
const { i18n: i18n2 } = useTranslation();
|
|
10889
|
-
const [submitting, setSubmitting] = React.useState(false);
|
|
10890
|
-
const [errorMsgs, setErrorMsgs] = React.useState([]);
|
|
10891
|
-
const reset = React.useCallback(() => {
|
|
10892
|
-
setSubmitting(false);
|
|
10893
|
-
setErrorMsgs([]);
|
|
10894
|
-
}, []);
|
|
10895
|
-
const onSubmit = React.useCallback(async () => {
|
|
10896
|
-
var _a;
|
|
10897
|
-
try {
|
|
10898
|
-
setSubmitting(true);
|
|
10899
|
-
await ((_a = formRef.current) == null ? void 0 : _a.submit());
|
|
10900
|
-
onSubmitSuccess == null ? void 0 : onSubmitSuccess();
|
|
10901
|
-
reset();
|
|
10902
|
-
} catch (error) {
|
|
10903
|
-
if (error instanceof Object) {
|
|
10904
|
-
if ("response" in error && error.response instanceof Response) {
|
|
10905
|
-
const response = error.response;
|
|
10906
|
-
const body = await response.json();
|
|
10907
|
-
setErrorMsgs(getCommonErrors(body, i18n2));
|
|
10908
|
-
} else if ("message" in error && typeof error.message === "string") {
|
|
10909
|
-
setErrorMsgs([error.message]);
|
|
10910
|
-
}
|
|
10911
|
-
}
|
|
10912
|
-
} finally {
|
|
10913
|
-
setSubmitting(false);
|
|
10914
|
-
}
|
|
10915
|
-
}, [formRef, i18n2, reset, onSubmitSuccess]);
|
|
10916
|
-
return {
|
|
10917
|
-
submitting,
|
|
10918
|
-
errorMsgs,
|
|
10919
|
-
reset,
|
|
10920
|
-
onSubmit
|
|
10921
|
-
};
|
|
10922
|
-
}
|
|
10923
|
-
const index_130sdg8 = "";
|
|
10924
|
-
const EditButtonStyle = "esoz3jw";
|
|
10925
|
-
function EditFieldModal(props) {
|
|
10926
|
-
const {
|
|
10927
|
-
title,
|
|
10928
|
-
formRef: form2,
|
|
10929
|
-
renderContent,
|
|
10930
|
-
fullscreen
|
|
10931
|
-
} = props;
|
|
10932
|
-
const {
|
|
10933
|
-
i18n: i18n2
|
|
10934
|
-
} = useTranslation();
|
|
10935
|
-
const popModal = eagle.usePopModal();
|
|
10936
|
-
const {
|
|
10937
|
-
submitting,
|
|
10938
|
-
errorMsgs,
|
|
10939
|
-
reset,
|
|
10940
|
-
onSubmit
|
|
10941
|
-
} = useSubmitForm({
|
|
10942
|
-
formRef: form2,
|
|
10943
|
-
onSubmitSuccess: () => {
|
|
10944
|
-
popModal();
|
|
10945
|
-
}
|
|
10946
|
-
});
|
|
10947
|
-
const close = React.useCallback(() => {
|
|
10948
|
-
popModal();
|
|
10949
|
-
reset();
|
|
10950
|
-
}, [reset]);
|
|
10951
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
|
|
10952
|
-
className: fullscreen ? FullscreenModalStyle : SmallModalStyle,
|
|
10953
|
-
title: title || i18n2.t("dovetail.edit"),
|
|
10954
|
-
confirmLoading: submitting,
|
|
10955
|
-
onOk: onSubmit,
|
|
10956
|
-
onCancel: close,
|
|
10957
|
-
okText: i18n2.t("dovetail.save"),
|
|
10958
|
-
normal: true,
|
|
10959
|
-
destroyOnClose: true,
|
|
10960
|
-
fullscreen,
|
|
10961
|
-
children: [renderContent(), /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
10962
|
-
style: {
|
|
10963
|
-
marginTop: 16
|
|
10964
|
-
},
|
|
10965
|
-
errorMsgs,
|
|
10966
|
-
isEdit: true
|
|
10967
|
-
})]
|
|
10968
|
-
});
|
|
10969
|
-
}
|
|
10970
|
-
function EditField(props) {
|
|
10971
|
-
const {
|
|
10972
|
-
modalProps
|
|
10973
|
-
} = props;
|
|
10974
|
-
const {
|
|
10975
|
-
i18n: i18n2
|
|
10976
|
-
} = useTranslation();
|
|
10977
|
-
const {
|
|
10978
|
-
resource
|
|
10979
|
-
} = core.useResource();
|
|
10980
|
-
const pushModal = eagle.usePushModal();
|
|
10981
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
|
|
10982
|
-
resource: resource == null ? void 0 : resource.name,
|
|
10983
|
-
action: AccessControlAuth.Edit,
|
|
10984
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
10985
|
-
className: EditButtonStyle,
|
|
10986
|
-
type: "link",
|
|
10987
|
-
onClick: () => {
|
|
10988
|
-
pushModal({
|
|
10989
|
-
component: EditFieldModal,
|
|
10990
|
-
props: modalProps
|
|
10991
|
-
});
|
|
10992
|
-
},
|
|
10993
|
-
children: i18n2.t("dovetail.edit")
|
|
10994
|
-
})
|
|
10995
|
-
});
|
|
10996
|
-
}
|
|
10997
11169
|
const EditLabelForm = React.forwardRef(
|
|
10998
11170
|
function EditLabelForm2(props, ref) {
|
|
10999
11171
|
var _a;
|
|
@@ -11054,12 +11226,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11054
11226
|
columns: [
|
|
11055
11227
|
{
|
|
11056
11228
|
key: "key",
|
|
11057
|
-
title: "
|
|
11229
|
+
title: t2("dovetail.key"),
|
|
11058
11230
|
type: "input"
|
|
11059
11231
|
},
|
|
11060
11232
|
{
|
|
11061
11233
|
key: "value",
|
|
11062
|
-
title: "
|
|
11234
|
+
title: t2("dovetail.value"),
|
|
11063
11235
|
type: "input"
|
|
11064
11236
|
}
|
|
11065
11237
|
],
|
|
@@ -11126,7 +11298,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11126
11298
|
value2.forEach(({ key: key2, value: value22 }) => {
|
|
11127
11299
|
newAnnotations[key2] = value22;
|
|
11128
11300
|
});
|
|
11129
|
-
const newYaml = resourceModel.
|
|
11301
|
+
const newYaml = resourceModel.updateAnnotation(newAnnotations);
|
|
11130
11302
|
pruneBeforeEdit(newYaml);
|
|
11131
11303
|
return mutateAsync({
|
|
11132
11304
|
id: resourceModel.id,
|
|
@@ -11167,12 +11339,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11167
11339
|
columns: [
|
|
11168
11340
|
{
|
|
11169
11341
|
key: "key",
|
|
11170
|
-
title: "
|
|
11342
|
+
title: t2("dovetail.key"),
|
|
11171
11343
|
type: "input"
|
|
11172
11344
|
},
|
|
11173
11345
|
{
|
|
11174
11346
|
key: "value",
|
|
11175
|
-
title: "
|
|
11347
|
+
title: t2("dovetail.value"),
|
|
11176
11348
|
type: "input"
|
|
11177
11349
|
}
|
|
11178
11350
|
],
|
|
@@ -11325,22 +11497,23 @@ var __publicField = (obj, key, value) => {
|
|
|
11325
11497
|
}));
|
|
11326
11498
|
}
|
|
11327
11499
|
const useEagleTable = (params) => {
|
|
11328
|
-
var _a, _b;
|
|
11329
|
-
const { columns, tableProps, formatter, Dropdown = K8sDropdown
|
|
11500
|
+
var _a, _b, _c;
|
|
11501
|
+
const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
|
|
11330
11502
|
const [selectedKeys, setSelectedKeys] = React.useState([]);
|
|
11331
11503
|
const [currentPage, setCurrentPage] = React.useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
|
|
11332
11504
|
const { resource } = core.useResource();
|
|
11333
11505
|
const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
|
|
11334
11506
|
const useTableParams = React.useMemo(() => {
|
|
11507
|
+
var _a2;
|
|
11335
11508
|
const mergedParams = lodashEs.merge(params.useTableParams, {
|
|
11336
11509
|
pagination: {
|
|
11337
11510
|
pageSize: currentSize,
|
|
11338
11511
|
mode: "server"
|
|
11339
11512
|
},
|
|
11340
|
-
resource:
|
|
11513
|
+
resource: ((_a2 = params.useTableParams) == null ? void 0 : _a2.resource) || (resource == null ? void 0 : resource.name)
|
|
11341
11514
|
});
|
|
11342
11515
|
return mergedParams;
|
|
11343
|
-
}, [params.useTableParams, currentSize,
|
|
11516
|
+
}, [params.useTableParams, currentSize, resource]);
|
|
11344
11517
|
const finalColumns = React.useMemo(
|
|
11345
11518
|
() => addDefaultRenderToColumns(columns),
|
|
11346
11519
|
[columns]
|
|
@@ -11370,7 +11543,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11370
11543
|
const total = ((_b = table.tableQueryResult.data) == null ? void 0 : _b.total) || 0;
|
|
11371
11544
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
11372
11545
|
const finalProps = {
|
|
11373
|
-
tableKey:
|
|
11546
|
+
tableKey: ((_c = params.useTableParams) == null ? void 0 : _c.resource) || (resource == null ? void 0 : resource.name) || "table",
|
|
11374
11547
|
loading: table.tableQueryResult.isLoading,
|
|
11375
11548
|
data: finalDataSource || [],
|
|
11376
11549
|
columns: finalColumns,
|
|
@@ -11395,18 +11568,19 @@ var __publicField = (obj, key, value) => {
|
|
|
11395
11568
|
}, []);
|
|
11396
11569
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
11397
11570
|
};
|
|
11398
|
-
function CreateButton() {
|
|
11571
|
+
function CreateButton(props) {
|
|
11399
11572
|
var _a;
|
|
11400
11573
|
const { t: t2 } = useTranslation();
|
|
11401
11574
|
const openForm = useOpenForm();
|
|
11402
11575
|
const { resource } = core.useResource();
|
|
11576
|
+
const label2 = props.label || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind);
|
|
11403
11577
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11404
11578
|
eagle.Button,
|
|
11405
11579
|
{
|
|
11406
11580
|
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.PlusAddCreateNew16BoldOntintIcon, {}),
|
|
11407
11581
|
type: "primary",
|
|
11408
11582
|
onClick: openForm,
|
|
11409
|
-
children: t2("dovetail.create_resource", { resource: (
|
|
11583
|
+
children: t2("dovetail.create_resource", { resource: /^[a-zA-Z]/.test(label2) ? ` ${label2}` : label2 })
|
|
11410
11584
|
}
|
|
11411
11585
|
);
|
|
11412
11586
|
}
|
|
@@ -11453,12 +11627,13 @@ var __publicField = (obj, key, value) => {
|
|
|
11453
11627
|
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Modal, { ...modalProps }) : null
|
|
11454
11628
|
] });
|
|
11455
11629
|
};
|
|
11456
|
-
const
|
|
11457
|
-
const ToolbarWrapperStyle = "
|
|
11458
|
-
const ToolbarStyle$3 = "
|
|
11459
|
-
const TitleStyle$2 = "
|
|
11460
|
-
const DescriptionStyle = "
|
|
11630
|
+
const index_1wo1wv1 = "";
|
|
11631
|
+
const ToolbarWrapperStyle = "t1908hhn";
|
|
11632
|
+
const ToolbarStyle$3 = "t1ym1gqo";
|
|
11633
|
+
const TitleStyle$2 = "t38ugwl";
|
|
11634
|
+
const DescriptionStyle = "d13nfex0";
|
|
11461
11635
|
const TableToolBar = ({
|
|
11636
|
+
title,
|
|
11462
11637
|
description,
|
|
11463
11638
|
selectedKeys,
|
|
11464
11639
|
hideCreate
|
|
@@ -11473,14 +11648,16 @@ var __publicField = (obj, key, value) => {
|
|
|
11473
11648
|
className: ToolbarStyle$3,
|
|
11474
11649
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
11475
11650
|
className: cx_default(eagle.Typo.Display.d2_regular_title, TitleStyle$2),
|
|
11476
|
-
children: (_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind
|
|
11651
|
+
children: title || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind)
|
|
11477
11652
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
11478
11653
|
children: [selectedKeys.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteManyButton, {
|
|
11479
11654
|
ids: selectedKeys
|
|
11480
11655
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
|
|
11481
11656
|
resource: resource == null ? void 0 : resource.name,
|
|
11482
11657
|
action: AccessControlAuth.Create,
|
|
11483
|
-
children: !hideCreate ? /* @__PURE__ */ jsxRuntimeExports.jsx(CreateButton, {
|
|
11658
|
+
children: !hideCreate ? /* @__PURE__ */ jsxRuntimeExports.jsx(CreateButton, {
|
|
11659
|
+
label: title
|
|
11660
|
+
}) : null
|
|
11484
11661
|
})]
|
|
11485
11662
|
})]
|
|
11486
11663
|
}), description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
@@ -11511,7 +11688,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11511
11688
|
} = useTranslation();
|
|
11512
11689
|
const [selectedKeys] = React.useState([]);
|
|
11513
11690
|
const component = React.useContext(ComponentContext);
|
|
11514
|
-
const
|
|
11691
|
+
const Table2 = component.Table || Table$1;
|
|
11515
11692
|
const columns = React.useMemo(() => [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
|
|
11516
11693
|
...WorkloadImageColumnRenderer(i18n2),
|
|
11517
11694
|
width: 238
|
|
@@ -11552,7 +11729,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11552
11729
|
children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
11553
11730
|
selectedKeys,
|
|
11554
11731
|
hideCreate: true
|
|
11555
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11732
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table2, {
|
|
11556
11733
|
...tableProps,
|
|
11557
11734
|
tableKey: "cronjobs",
|
|
11558
11735
|
showMenuColumn: false
|
|
@@ -11626,7 +11803,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11626
11803
|
}), [columns, uid]);
|
|
11627
11804
|
const { tableProps } = useEagleTable(params);
|
|
11628
11805
|
const component = React.useContext(ComponentContext);
|
|
11629
|
-
const
|
|
11806
|
+
const Table2 = component.Table || Table$1;
|
|
11630
11807
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
11631
11808
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11632
11809
|
WidgetErrorContent,
|
|
@@ -11636,7 +11813,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11636
11813
|
);
|
|
11637
11814
|
}
|
|
11638
11815
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11639
|
-
|
|
11816
|
+
Table2,
|
|
11640
11817
|
{
|
|
11641
11818
|
...tableProps,
|
|
11642
11819
|
tableKey: "events",
|
|
@@ -11679,9 +11856,9 @@ var __publicField = (obj, key, value) => {
|
|
|
11679
11856
|
const LinkStyle = "l1vnw9x0";
|
|
11680
11857
|
const ResourceLink = (props) => {
|
|
11681
11858
|
const {
|
|
11682
|
-
resourceName,
|
|
11859
|
+
resourceKind: resourceName,
|
|
11683
11860
|
namespace: namespace2,
|
|
11684
|
-
resourceId
|
|
11861
|
+
name: resourceId
|
|
11685
11862
|
} = props;
|
|
11686
11863
|
const navigation = core.useNavigation();
|
|
11687
11864
|
const go = core.useGo();
|
|
@@ -11708,7 +11885,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11708
11885
|
return addId(ingress.flattenedRules || [], "fullPath");
|
|
11709
11886
|
}, [ingress.flattenedRules]);
|
|
11710
11887
|
const component = React.useContext(ComponentContext);
|
|
11711
|
-
const
|
|
11888
|
+
const Table2 = component.Table || Table$1;
|
|
11712
11889
|
const currentSize = 10;
|
|
11713
11890
|
const columns = [
|
|
11714
11891
|
{
|
|
@@ -11741,9 +11918,9 @@ var __publicField = (obj, key, value) => {
|
|
|
11741
11918
|
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11742
11919
|
ResourceLink,
|
|
11743
11920
|
{
|
|
11744
|
-
|
|
11921
|
+
resourceKind: "services",
|
|
11745
11922
|
namespace: ingress.metadata.namespace || "default",
|
|
11746
|
-
|
|
11923
|
+
name: serviceName
|
|
11747
11924
|
}
|
|
11748
11925
|
) : record.resourceName;
|
|
11749
11926
|
}
|
|
@@ -11768,9 +11945,9 @@ var __publicField = (obj, key, value) => {
|
|
|
11768
11945
|
return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11769
11946
|
ResourceLink,
|
|
11770
11947
|
{
|
|
11771
|
-
|
|
11948
|
+
resourceKind: "secrets",
|
|
11772
11949
|
namespace: ingress.metadata.namespace || "default",
|
|
11773
|
-
|
|
11950
|
+
name: secretName
|
|
11774
11951
|
}
|
|
11775
11952
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
11776
11953
|
},
|
|
@@ -11797,7 +11974,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11797
11974
|
);
|
|
11798
11975
|
}
|
|
11799
11976
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11800
|
-
|
|
11977
|
+
Table2,
|
|
11801
11978
|
{
|
|
11802
11979
|
tableKey: "ingressRules",
|
|
11803
11980
|
loading: false,
|
|
@@ -11814,7 +11991,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11814
11991
|
}
|
|
11815
11992
|
);
|
|
11816
11993
|
};
|
|
11817
|
-
const
|
|
11994
|
+
const KeyValue_1cqk7i8 = "";
|
|
11818
11995
|
const ContentBlockStyle = "c8jy7dc";
|
|
11819
11996
|
const KeyStyle = "k2sddxl";
|
|
11820
11997
|
const ValueStyle$2 = "v16vicsr";
|
|
@@ -11894,6 +12071,40 @@ var __publicField = (obj, key, value) => {
|
|
|
11894
12071
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
11895
12072
|
}) });
|
|
11896
12073
|
}
|
|
12074
|
+
const StateTag = (props) => {
|
|
12075
|
+
const { state: state2 = ResourceState.UPDATING, hideBackground, className, resourceKind } = props;
|
|
12076
|
+
const { t: t2 } = useTranslation();
|
|
12077
|
+
const defaultStateMap = {
|
|
12078
|
+
[ResourceState.UPDATING]: "loading",
|
|
12079
|
+
[ResourceState.READY]: "green",
|
|
12080
|
+
[ResourceState.COMPLETED]: "gray",
|
|
12081
|
+
[ResourceState.FAILED]: "red",
|
|
12082
|
+
[ResourceState.SUSPENDED]: "warning",
|
|
12083
|
+
[ResourceState.RUNNING]: "green",
|
|
12084
|
+
[ResourceState.SUCCEEDED]: "blue",
|
|
12085
|
+
[ResourceState.UNKNOWN]: "gray",
|
|
12086
|
+
[ResourceState.TERMINATING]: "loading",
|
|
12087
|
+
[ResourceState.PENDING]: "warning",
|
|
12088
|
+
[ResourceState.WAITING]: "warning",
|
|
12089
|
+
[ResourceState.TERMINATED]: "red",
|
|
12090
|
+
[ResourceState.STOPPED]: "gray",
|
|
12091
|
+
[ResourceState.AVAILABLE]: "blue",
|
|
12092
|
+
[ResourceState.BOUND]: "green",
|
|
12093
|
+
[ResourceState.RELEASED]: "gray",
|
|
12094
|
+
[ResourceState.LOST]: "red"
|
|
12095
|
+
};
|
|
12096
|
+
const resourceStateMap = {};
|
|
12097
|
+
const finalStateMap = resourceStateMap[resourceKind || ""] || defaultStateMap;
|
|
12098
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12099
|
+
eagle.StatusCapsule,
|
|
12100
|
+
{
|
|
12101
|
+
className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
|
|
12102
|
+
color: finalStateMap[state2] !== "loading" ? finalStateMap[state2] : void 0,
|
|
12103
|
+
loading: finalStateMap[state2] === "loading",
|
|
12104
|
+
children: t2(`dovetail.${state2 || "updating"}_state`)
|
|
12105
|
+
}
|
|
12106
|
+
);
|
|
12107
|
+
};
|
|
11897
12108
|
const ShowContent_11g4jr2 = "";
|
|
11898
12109
|
const ShowContentWrapperStyle = "s9agep2";
|
|
11899
12110
|
const BackButton = "bo89gfi";
|
|
@@ -11926,7 +12137,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11926
12137
|
});
|
|
11927
12138
|
}
|
|
11928
12139
|
const ShowContent = (props) => {
|
|
11929
|
-
var _a, _b, _c, _d;
|
|
12140
|
+
var _a, _b, _c, _d, _e;
|
|
11930
12141
|
const {
|
|
11931
12142
|
showConfig,
|
|
11932
12143
|
formatter,
|
|
@@ -11955,6 +12166,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11955
12166
|
id
|
|
11956
12167
|
});
|
|
11957
12168
|
const Component = React.useContext(ComponentContext);
|
|
12169
|
+
const configs = React.useContext(ConfigsContext);
|
|
12170
|
+
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
11958
12171
|
const Tabs$1 = Component.Tabs || Tabs;
|
|
11959
12172
|
if (!(data2 == null ? void 0 : data2.data)) {
|
|
11960
12173
|
return null;
|
|
@@ -12026,7 +12239,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12026
12239
|
},
|
|
12027
12240
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12028
12241
|
className: "button-text",
|
|
12029
|
-
children: (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind
|
|
12242
|
+
children: (config == null ? void 0 : config.displayName) || ((_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind)
|
|
12030
12243
|
})
|
|
12031
12244
|
})
|
|
12032
12245
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
@@ -12039,10 +12252,11 @@ var __publicField = (obj, key, value) => {
|
|
|
12039
12252
|
className: cx_default(eagle.Typo.Display.d2_regular_title, NameStyle),
|
|
12040
12253
|
children: (_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name
|
|
12041
12254
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
12042
|
-
state: stateDisplay
|
|
12255
|
+
state: stateDisplay,
|
|
12256
|
+
resourceKind: (_d = resource == null ? void 0 : resource.meta) == null ? void 0 : _d.kind
|
|
12043
12257
|
}) : void 0]
|
|
12044
12258
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
12045
|
-
children: [(
|
|
12259
|
+
children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
|
|
12046
12260
|
resource: resource == null ? void 0 : resource.name,
|
|
12047
12261
|
action: AccessControlAuth.Edit,
|
|
12048
12262
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
@@ -12139,18 +12353,84 @@ var __publicField = (obj, key, value) => {
|
|
|
12139
12353
|
})
|
|
12140
12354
|
});
|
|
12141
12355
|
}
|
|
12142
|
-
|
|
12143
|
-
const {
|
|
12144
|
-
const
|
|
12145
|
-
const
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12356
|
+
const NodeTaintsTable = ({ taints = [] }) => {
|
|
12357
|
+
const { t: t2 } = useTranslation();
|
|
12358
|
+
const component = React.useContext(ComponentContext);
|
|
12359
|
+
const Table2 = component.Table || Table$1;
|
|
12360
|
+
const taintsWithId = addId(taints, "key");
|
|
12361
|
+
const columns = [
|
|
12362
|
+
{
|
|
12363
|
+
key: "key",
|
|
12364
|
+
display: true,
|
|
12365
|
+
dataIndex: "key",
|
|
12366
|
+
title: t2("dovetail.key"),
|
|
12367
|
+
width: 120,
|
|
12368
|
+
sortable: true
|
|
12369
|
+
},
|
|
12370
|
+
{
|
|
12371
|
+
key: "value",
|
|
12372
|
+
display: true,
|
|
12373
|
+
dataIndex: "value",
|
|
12374
|
+
title: t2("dovetail.value"),
|
|
12375
|
+
width: 120,
|
|
12376
|
+
sortable: true
|
|
12377
|
+
},
|
|
12378
|
+
{
|
|
12379
|
+
key: "effect",
|
|
12380
|
+
display: true,
|
|
12381
|
+
dataIndex: "effect",
|
|
12382
|
+
title: t2("dovetail.effect"),
|
|
12383
|
+
width: 120,
|
|
12384
|
+
sortable: true,
|
|
12385
|
+
render: (value2) => {
|
|
12386
|
+
return t2(`dovetail.node_taint_${value2}`);
|
|
12387
|
+
}
|
|
12388
|
+
}
|
|
12389
|
+
];
|
|
12390
|
+
const {
|
|
12391
|
+
data: finalData,
|
|
12392
|
+
currentPage,
|
|
12393
|
+
onPageChange,
|
|
12394
|
+
onSorterChange
|
|
12395
|
+
} = useTableData({
|
|
12396
|
+
data: taintsWithId,
|
|
12397
|
+
columns,
|
|
12398
|
+
defaultSorters: [
|
|
12399
|
+
{
|
|
12400
|
+
field: "lastUpdateTime",
|
|
12401
|
+
order: "desc"
|
|
12402
|
+
}
|
|
12403
|
+
]
|
|
12404
|
+
});
|
|
12405
|
+
const currentSize = 10;
|
|
12406
|
+
if (taintsWithId.length === 0) {
|
|
12407
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12408
|
+
WidgetErrorContent,
|
|
12409
|
+
{
|
|
12410
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.taint") }),
|
|
12411
|
+
style: { padding: "15px 0" },
|
|
12412
|
+
type: ErrorContentType.Card
|
|
12413
|
+
}
|
|
12414
|
+
);
|
|
12415
|
+
}
|
|
12416
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12417
|
+
Table2,
|
|
12418
|
+
{
|
|
12419
|
+
tableKey: "condition",
|
|
12420
|
+
loading: false,
|
|
12421
|
+
data: finalData,
|
|
12422
|
+
total: taintsWithId.length,
|
|
12423
|
+
columns: addDefaultRenderToColumns(columns),
|
|
12424
|
+
rowKey: "key",
|
|
12425
|
+
empty: t2("dovetail.empty"),
|
|
12426
|
+
defaultSize: currentSize,
|
|
12427
|
+
currentPage,
|
|
12428
|
+
onPageChange,
|
|
12429
|
+
onSorterChange,
|
|
12430
|
+
showMenuColumn: false
|
|
12431
|
+
}
|
|
12432
|
+
);
|
|
12433
|
+
};
|
|
12154
12434
|
function PVVolumeModeDisplay(props) {
|
|
12155
12435
|
const { value: value2 } = props;
|
|
12156
12436
|
const i18n2 = useTranslation();
|
|
@@ -12160,18 +12440,42 @@ var __publicField = (obj, key, value) => {
|
|
|
12160
12440
|
};
|
|
12161
12441
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
12162
12442
|
}
|
|
12163
|
-
|
|
12443
|
+
const GlobalStoreContext = React.createContext({});
|
|
12444
|
+
function Table(props) {
|
|
12164
12445
|
var _a;
|
|
12446
|
+
const { tableProps, displayName, errorContentProps } = props;
|
|
12447
|
+
const { Table: TableComponent } = React.useContext(ComponentContext);
|
|
12448
|
+
const Table2 = TableComponent || Table$1;
|
|
12449
|
+
const { i18n: i18n2 } = useTranslation();
|
|
12450
|
+
const resourceType = /^[a-zA-Z]/.test(displayName) ? ` ${displayName}` : displayName;
|
|
12451
|
+
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12452
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12453
|
+
WidgetErrorContent,
|
|
12454
|
+
{
|
|
12455
|
+
errorText: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
12456
|
+
...errorContentProps
|
|
12457
|
+
}
|
|
12458
|
+
);
|
|
12459
|
+
}
|
|
12460
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12461
|
+
Table2,
|
|
12462
|
+
{
|
|
12463
|
+
...tableProps,
|
|
12464
|
+
empty: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
12465
|
+
className: cx_default(tableProps.className)
|
|
12466
|
+
}
|
|
12467
|
+
);
|
|
12468
|
+
}
|
|
12469
|
+
function ResourceTable(props) {
|
|
12165
12470
|
const { resource, useTableParams } = props;
|
|
12166
12471
|
const configs = React.useContext(ConfigsContext);
|
|
12167
12472
|
const config = configs[resource];
|
|
12168
12473
|
const { formatter, columns, Dropdown, noShow } = config;
|
|
12169
12474
|
const { i18n: i18n2 } = useTranslation();
|
|
12170
|
-
const { Table: TableComponent } = React.useContext(ComponentContext);
|
|
12171
|
-
const Table$1 = TableComponent || Table;
|
|
12172
12475
|
const nameRenderer = noShow ? PlainTextNameColumnRenderer(i18n2) : NameColumnRenderer(i18n2);
|
|
12173
12476
|
const { tableProps } = useEagleTable({
|
|
12174
12477
|
useTableParams: {
|
|
12478
|
+
resource,
|
|
12175
12479
|
...useTableParams
|
|
12176
12480
|
},
|
|
12177
12481
|
columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
|
|
@@ -12179,28 +12483,20 @@ var __publicField = (obj, key, value) => {
|
|
|
12179
12483
|
defaultSize: 10,
|
|
12180
12484
|
...config.tableProps
|
|
12181
12485
|
},
|
|
12182
|
-
resource,
|
|
12183
12486
|
formatter,
|
|
12184
12487
|
Dropdown
|
|
12185
12488
|
});
|
|
12186
12489
|
React.useEffect(() => {
|
|
12187
12490
|
tableProps.onPageChange(1);
|
|
12188
12491
|
}, []);
|
|
12189
|
-
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12190
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12191
|
-
WidgetErrorContent,
|
|
12192
|
-
{
|
|
12193
|
-
errorText: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: ` ${config.kind}` }),
|
|
12194
|
-
type: ErrorContentType.Card
|
|
12195
|
-
}
|
|
12196
|
-
);
|
|
12197
|
-
}
|
|
12198
12492
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12199
|
-
Table
|
|
12493
|
+
Table,
|
|
12200
12494
|
{
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12495
|
+
tableProps,
|
|
12496
|
+
displayName: config.displayName || config.kind,
|
|
12497
|
+
errorContentProps: {
|
|
12498
|
+
type: ErrorContentType.Card
|
|
12499
|
+
}
|
|
12204
12500
|
}
|
|
12205
12501
|
);
|
|
12206
12502
|
}
|
|
@@ -12208,7 +12504,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12208
12504
|
const WorkloadPodsTable = ({
|
|
12209
12505
|
namespace: namespace2,
|
|
12210
12506
|
selector,
|
|
12211
|
-
hideToolbar
|
|
12507
|
+
hideToolbar,
|
|
12508
|
+
filter
|
|
12212
12509
|
}) => {
|
|
12213
12510
|
var _a;
|
|
12214
12511
|
const {
|
|
@@ -12216,7 +12513,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12216
12513
|
} = useTranslation();
|
|
12217
12514
|
const [selectedKeys, setSelectedKeys] = React.useState([]);
|
|
12218
12515
|
const component = React.useContext(ComponentContext);
|
|
12219
|
-
const
|
|
12516
|
+
const Table2 = component.Table || Table$1;
|
|
12220
12517
|
const currentSize = 10;
|
|
12221
12518
|
const columns = [NameColumnRenderer(i18n2, "pods"), StateDisplayColumnRenderer(i18n2), {
|
|
12222
12519
|
key: "ip",
|
|
@@ -12241,7 +12538,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12241
12538
|
field: "",
|
|
12242
12539
|
value: "",
|
|
12243
12540
|
fn(item) {
|
|
12244
|
-
return matchSelector(item, selector, namespace2);
|
|
12541
|
+
return filter ? filter(item) : matchSelector(item, selector, namespace2);
|
|
12245
12542
|
}
|
|
12246
12543
|
}]
|
|
12247
12544
|
}
|
|
@@ -12264,7 +12561,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12264
12561
|
children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
12265
12562
|
selectedKeys,
|
|
12266
12563
|
hideCreate: true
|
|
12267
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12564
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table2, {
|
|
12268
12565
|
...tableProps,
|
|
12269
12566
|
tableKey: "pods",
|
|
12270
12567
|
onSelect: (keys) => setSelectedKeys(keys),
|
|
@@ -12442,126 +12739,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12442
12739
|
})]
|
|
12443
12740
|
});
|
|
12444
12741
|
}
|
|
12445
|
-
var StorageUnit = /* @__PURE__ */ ((StorageUnit2) => {
|
|
12446
|
-
StorageUnit2["Pi"] = "Pi";
|
|
12447
|
-
StorageUnit2["PiB"] = "PiB";
|
|
12448
|
-
StorageUnit2["Ti"] = "Ti";
|
|
12449
|
-
StorageUnit2["TiB"] = "TiB";
|
|
12450
|
-
StorageUnit2["Gi"] = "Gi";
|
|
12451
|
-
StorageUnit2["GiB"] = "GiB";
|
|
12452
|
-
StorageUnit2["Mi"] = "Mi";
|
|
12453
|
-
StorageUnit2["MiB"] = "MiB";
|
|
12454
|
-
StorageUnit2["Ki"] = "Ki";
|
|
12455
|
-
StorageUnit2["KiB"] = "KiB";
|
|
12456
|
-
return StorageUnit2;
|
|
12457
|
-
})(StorageUnit || {});
|
|
12458
|
-
const UNIT_FACTORS = {
|
|
12459
|
-
Pi: 1024 ** 5,
|
|
12460
|
-
PiB: 1024 ** 5,
|
|
12461
|
-
Ti: 1024 ** 4,
|
|
12462
|
-
TiB: 1024 ** 4,
|
|
12463
|
-
Gi: 1024 ** 3,
|
|
12464
|
-
GiB: 1024 ** 3,
|
|
12465
|
-
Mi: 1024 ** 2,
|
|
12466
|
-
MiB: 1024 ** 2,
|
|
12467
|
-
Ki: 1024,
|
|
12468
|
-
KiB: 1024,
|
|
12469
|
-
B: 1
|
|
12470
|
-
};
|
|
12471
|
-
function transformStorageUnit(value2, toUnit = "Gi") {
|
|
12472
|
-
const num = parseFloat(value2);
|
|
12473
|
-
const unit = Object.values(StorageUnit).find((u) => value2.includes(u)) || "Ki";
|
|
12474
|
-
return num / UNIT_FACTORS[unit] * UNIT_FACTORS[toUnit];
|
|
12475
|
-
}
|
|
12476
|
-
const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(props, ref) {
|
|
12477
|
-
const { defaultValue, pvc: pvc2 } = props;
|
|
12478
|
-
const { resource } = core.useResource();
|
|
12479
|
-
const { mutateAsync } = core.useUpdate();
|
|
12480
|
-
const { t: t2 } = useTranslation();
|
|
12481
|
-
const [distributeStorage, setDistributeStorage] = React.useState(defaultValue);
|
|
12482
|
-
const submit = React.useCallback(() => {
|
|
12483
|
-
const v = pvc2.updateDistributeStorage(distributeStorage);
|
|
12484
|
-
const id = pvc2.id;
|
|
12485
|
-
pruneBeforeEdit(v);
|
|
12486
|
-
return mutateAsync({
|
|
12487
|
-
id,
|
|
12488
|
-
resource: (resource == null ? void 0 : resource.name) || "",
|
|
12489
|
-
values: v,
|
|
12490
|
-
successNotification() {
|
|
12491
|
-
return {
|
|
12492
|
-
message: t2("dovetail.edit_distribute_storage_success_toast", {
|
|
12493
|
-
kind: pvc2.kind,
|
|
12494
|
-
name: pvc2.id,
|
|
12495
|
-
interpolation: {
|
|
12496
|
-
escapeValue: false
|
|
12497
|
-
}
|
|
12498
|
-
}),
|
|
12499
|
-
type: "success"
|
|
12500
|
-
};
|
|
12501
|
-
},
|
|
12502
|
-
errorNotification: false
|
|
12503
|
-
});
|
|
12504
|
-
}, [pvc2, distributeStorage, resource == null ? void 0 : resource.name, mutateAsync, t2]);
|
|
12505
|
-
React.useImperativeHandle(ref, () => ({
|
|
12506
|
-
submit
|
|
12507
|
-
}), [submit]);
|
|
12508
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12509
|
-
eagle.Form.Item,
|
|
12510
|
-
{
|
|
12511
|
-
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: t2("dovetail.distributed") }),
|
|
12512
|
-
colon: false,
|
|
12513
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12514
|
-
eagle.Fields.Integer,
|
|
12515
|
-
{
|
|
12516
|
-
style: { width: "142px" },
|
|
12517
|
-
input: {
|
|
12518
|
-
name: "distributeStorage",
|
|
12519
|
-
value: distributeStorage,
|
|
12520
|
-
onChange: (value2) => {
|
|
12521
|
-
setDistributeStorage(Number(value2));
|
|
12522
|
-
},
|
|
12523
|
-
onBlur: () => {
|
|
12524
|
-
},
|
|
12525
|
-
onFocus: () => {
|
|
12526
|
-
}
|
|
12527
|
-
},
|
|
12528
|
-
min: 0,
|
|
12529
|
-
meta: {},
|
|
12530
|
-
suffix: "GiB",
|
|
12531
|
-
controls: true
|
|
12532
|
-
}
|
|
12533
|
-
)
|
|
12534
|
-
}
|
|
12535
|
-
);
|
|
12536
|
-
});
|
|
12537
|
-
function PVCDistributeStorage({ pvc: pvc2, editable }) {
|
|
12538
|
-
var _a, _b;
|
|
12539
|
-
const { t: t2 } = useTranslation();
|
|
12540
|
-
const formRef = React.useRef(null);
|
|
12541
|
-
const value2 = (_b = (_a = pvc2.spec.resources) == null ? void 0 : _a.requests) == null ? void 0 : _b.storage;
|
|
12542
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
12543
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 }),
|
|
12544
|
-
editable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12545
|
-
EditField,
|
|
12546
|
-
{
|
|
12547
|
-
modalProps: {
|
|
12548
|
-
formRef,
|
|
12549
|
-
title: t2("dovetail.edit_replicas"),
|
|
12550
|
-
renderContent() {
|
|
12551
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12552
|
-
DistributeStorageForm,
|
|
12553
|
-
{
|
|
12554
|
-
ref: formRef,
|
|
12555
|
-
defaultValue: value2 ? transformStorageUnit(value2, StorageUnit.Gi) : 0,
|
|
12556
|
-
pvc: pvc2
|
|
12557
|
-
}
|
|
12558
|
-
);
|
|
12559
|
-
}
|
|
12560
|
-
}
|
|
12561
|
-
}
|
|
12562
|
-
)
|
|
12563
|
-
] });
|
|
12564
|
-
}
|
|
12565
12742
|
var AreaType = /* @__PURE__ */ ((AreaType2) => {
|
|
12566
12743
|
AreaType2["Inline"] = "Inline";
|
|
12567
12744
|
AreaType2["Grid"] = "Grid";
|
|
@@ -12595,6 +12772,15 @@ var __publicField = (obj, key, value) => {
|
|
|
12595
12772
|
}
|
|
12596
12773
|
};
|
|
12597
12774
|
};
|
|
12775
|
+
const NodeTaintsField = () => {
|
|
12776
|
+
return {
|
|
12777
|
+
key: "NodeTaints",
|
|
12778
|
+
path: ["spec", "taints"],
|
|
12779
|
+
renderContent: (value2) => {
|
|
12780
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(NodeTaintsTable, { taints: value2 });
|
|
12781
|
+
}
|
|
12782
|
+
};
|
|
12783
|
+
};
|
|
12598
12784
|
const PodsField = () => {
|
|
12599
12785
|
return {
|
|
12600
12786
|
key: "pods",
|
|
@@ -12824,13 +13010,15 @@ var __publicField = (obj, key, value) => {
|
|
|
12824
13010
|
resource: "persistentvolumes",
|
|
12825
13011
|
useTableParams: {
|
|
12826
13012
|
filters: {
|
|
12827
|
-
permanent: [
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
13013
|
+
permanent: [
|
|
13014
|
+
{
|
|
13015
|
+
field: "",
|
|
13016
|
+
value: "",
|
|
13017
|
+
fn(pv2) {
|
|
13018
|
+
return sc.filterPV(pv2, sc.metadata.name);
|
|
13019
|
+
}
|
|
12832
13020
|
}
|
|
12833
|
-
|
|
13021
|
+
]
|
|
12834
13022
|
}
|
|
12835
13023
|
}
|
|
12836
13024
|
}
|
|
@@ -12871,17 +13059,24 @@ var __publicField = (obj, key, value) => {
|
|
|
12871
13059
|
path: ["spec", "storageClassName"],
|
|
12872
13060
|
title: i18n2.t("dovetail.storage_class"),
|
|
12873
13061
|
renderContent(value2) {
|
|
12874
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13062
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13063
|
+
ResourceLink,
|
|
13064
|
+
{
|
|
13065
|
+
resourceKind: "storageclasses",
|
|
13066
|
+
namespace: "",
|
|
13067
|
+
name: value2
|
|
13068
|
+
}
|
|
13069
|
+
);
|
|
12875
13070
|
}
|
|
12876
13071
|
};
|
|
12877
13072
|
};
|
|
12878
13073
|
const PVPhaseField = (i18n2) => {
|
|
12879
13074
|
return {
|
|
12880
13075
|
key: "phase",
|
|
12881
|
-
path: ["
|
|
13076
|
+
path: ["stateDisplay"],
|
|
12882
13077
|
title: i18n2.t("dovetail.state"),
|
|
12883
13078
|
renderContent(value2) {
|
|
12884
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13079
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, { state: value2, resourceKind: "PersistentVolume", hideBackground: true });
|
|
12885
13080
|
}
|
|
12886
13081
|
};
|
|
12887
13082
|
};
|
|
@@ -12899,14 +13094,49 @@ var __publicField = (obj, key, value) => {
|
|
|
12899
13094
|
return {
|
|
12900
13095
|
key: "accessMode",
|
|
12901
13096
|
path: ["spec", "accessModes"],
|
|
12902
|
-
title: i18n2.t("dovetail.access_mode")
|
|
13097
|
+
title: i18n2.t("dovetail.access_mode"),
|
|
13098
|
+
renderContent(value2) {
|
|
13099
|
+
return value2.join(", ");
|
|
13100
|
+
}
|
|
13101
|
+
};
|
|
13102
|
+
};
|
|
13103
|
+
const PVCPodsField = () => {
|
|
13104
|
+
return {
|
|
13105
|
+
key: "pods",
|
|
13106
|
+
path: [],
|
|
13107
|
+
renderContent: (_, record) => {
|
|
13108
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13109
|
+
WorkloadPodsTable,
|
|
13110
|
+
{
|
|
13111
|
+
filter: (item) => {
|
|
13112
|
+
var _a, _b;
|
|
13113
|
+
return !!((_b = (_a = item.spec) == null ? void 0 : _a.volumes) == null ? void 0 : _b.some((v) => {
|
|
13114
|
+
var _a2;
|
|
13115
|
+
return ((_a2 = v.persistentVolumeClaim) == null ? void 0 : _a2.claimName) === record.metadata.name;
|
|
13116
|
+
}));
|
|
13117
|
+
},
|
|
13118
|
+
namespace: record.metadata.namespace,
|
|
13119
|
+
hideToolbar: true
|
|
13120
|
+
}
|
|
13121
|
+
);
|
|
13122
|
+
}
|
|
12903
13123
|
};
|
|
12904
13124
|
};
|
|
12905
13125
|
const PVCRefField = (i18n2) => {
|
|
12906
13126
|
return {
|
|
12907
13127
|
key: "pvc",
|
|
12908
13128
|
path: ["pvc"],
|
|
12909
|
-
title: i18n2.t("dovetail.pvc")
|
|
13129
|
+
title: i18n2.t("dovetail.pvc"),
|
|
13130
|
+
renderContent(value2, pvc2) {
|
|
13131
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13132
|
+
ResourceLink,
|
|
13133
|
+
{
|
|
13134
|
+
resourceKind: "persistentvolumeclaims",
|
|
13135
|
+
namespace: pvc2.pvcNamespace || "default",
|
|
13136
|
+
name: value2
|
|
13137
|
+
}
|
|
13138
|
+
);
|
|
13139
|
+
}
|
|
12910
13140
|
};
|
|
12911
13141
|
};
|
|
12912
13142
|
const PVCSIRefField = (i18n2) => {
|
|
@@ -12955,13 +13185,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12955
13185
|
key: resource,
|
|
12956
13186
|
path: [],
|
|
12957
13187
|
renderContent() {
|
|
12958
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12959
|
-
ResourceTable,
|
|
12960
|
-
{
|
|
12961
|
-
resource,
|
|
12962
|
-
useTableParams
|
|
12963
|
-
}
|
|
12964
|
-
);
|
|
13188
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceTable, { resource, useTableParams });
|
|
12965
13189
|
}
|
|
12966
13190
|
};
|
|
12967
13191
|
};
|
|
@@ -19000,7 +19224,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19000
19224
|
}) => {
|
|
19001
19225
|
const { i18n: i18n2 } = useTranslation();
|
|
19002
19226
|
const component = React.useContext(ComponentContext);
|
|
19003
|
-
const
|
|
19227
|
+
const Table2 = component.Table || Table$1;
|
|
19004
19228
|
const currentSize = 10;
|
|
19005
19229
|
const columns = React.useMemo(
|
|
19006
19230
|
() => [
|
|
@@ -19095,7 +19319,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19095
19319
|
);
|
|
19096
19320
|
}
|
|
19097
19321
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19098
|
-
|
|
19322
|
+
Table2,
|
|
19099
19323
|
{
|
|
19100
19324
|
tableKey: "podContainers",
|
|
19101
19325
|
loading: false,
|
|
@@ -19116,18 +19340,17 @@ var __publicField = (obj, key, value) => {
|
|
|
19116
19340
|
upAreas = [],
|
|
19117
19341
|
downAreas = [],
|
|
19118
19342
|
basicFields = []
|
|
19119
|
-
} = {}) => ({
|
|
19343
|
+
} = {}, isShowNamespace = true) => ({
|
|
19120
19344
|
title: i18n2.t("dovetail.basic_info"),
|
|
19121
19345
|
areas: [
|
|
19122
19346
|
...upAreas,
|
|
19123
19347
|
{
|
|
19124
|
-
fields: [
|
|
19125
|
-
NamespaceField(i18n2),
|
|
19348
|
+
fields: (isShowNamespace ? [NamespaceField(i18n2)] : []).concat([
|
|
19126
19349
|
...basicFields,
|
|
19127
19350
|
LabelsField(i18n2),
|
|
19128
19351
|
AnnotationsField(i18n2),
|
|
19129
19352
|
AgeField(i18n2)
|
|
19130
|
-
]
|
|
19353
|
+
])
|
|
19131
19354
|
},
|
|
19132
19355
|
...downAreas
|
|
19133
19356
|
]
|
|
@@ -19171,6 +19394,14 @@ var __publicField = (obj, key, value) => {
|
|
|
19171
19394
|
}
|
|
19172
19395
|
]
|
|
19173
19396
|
});
|
|
19397
|
+
const PVCPodsGroup = () => ({
|
|
19398
|
+
title: "Pod",
|
|
19399
|
+
areas: [
|
|
19400
|
+
{
|
|
19401
|
+
fields: [PVCPodsField()]
|
|
19402
|
+
}
|
|
19403
|
+
]
|
|
19404
|
+
});
|
|
19174
19405
|
const ConditionsGroup = (i18n2) => ({
|
|
19175
19406
|
title: i18n2.t("dovetail.condition"),
|
|
19176
19407
|
areas: [
|
|
@@ -19179,6 +19410,14 @@ var __publicField = (obj, key, value) => {
|
|
|
19179
19410
|
}
|
|
19180
19411
|
]
|
|
19181
19412
|
});
|
|
19413
|
+
const NodeTaintsGroup = (i18n2) => ({
|
|
19414
|
+
title: i18n2.t("dovetail.taint"),
|
|
19415
|
+
areas: [
|
|
19416
|
+
{
|
|
19417
|
+
fields: [NodeTaintsField()]
|
|
19418
|
+
}
|
|
19419
|
+
]
|
|
19420
|
+
});
|
|
19182
19421
|
const SecretDataGroup = () => ({
|
|
19183
19422
|
areas: [
|
|
19184
19423
|
{
|
|
@@ -33016,7 +33255,6 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
33016
33255
|
})]
|
|
33017
33256
|
});
|
|
33018
33257
|
});
|
|
33019
|
-
const GlobalStoreContext = React.createContext({});
|
|
33020
33258
|
var buffer = {};
|
|
33021
33259
|
var base64Js = {};
|
|
33022
33260
|
base64Js.byteLength = byteLength;
|
|
@@ -35473,13 +35711,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
35473
35711
|
tableProps,
|
|
35474
35712
|
contentClassName
|
|
35475
35713
|
} = props;
|
|
35476
|
-
|
|
35477
|
-
Table: TableComponent
|
|
35478
|
-
} = React.useContext(ComponentContext);
|
|
35479
|
-
const {
|
|
35480
|
-
t: t2
|
|
35481
|
-
} = useTranslation();
|
|
35482
|
-
const Table$1 = TableComponent || Table;
|
|
35714
|
+
useTranslation();
|
|
35483
35715
|
const {
|
|
35484
35716
|
resource
|
|
35485
35717
|
} = core.useResource();
|
|
@@ -35490,6 +35722,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
35490
35722
|
children: [!config.hideListToolBar ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
35491
35723
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
35492
35724
|
selectedKeys,
|
|
35725
|
+
title: config == null ? void 0 : config.displayName,
|
|
35493
35726
|
description: config == null ? void 0 : config.description
|
|
35494
35727
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
|
|
35495
35728
|
style: {
|
|
@@ -35501,23 +35734,21 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
35501
35734
|
})]
|
|
35502
35735
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
35503
35736
|
className: cx_default(ListContentStyle, contentClassName),
|
|
35737
|
+
style: config.hideNamespacesFilter ? {
|
|
35738
|
+
paddingTop: 0
|
|
35739
|
+
} : {},
|
|
35504
35740
|
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
35505
35741
|
className: NamespaceFilterStyle
|
|
35506
35742
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
35507
35743
|
className: TableStyle,
|
|
35508
|
-
children:
|
|
35509
|
-
|
|
35510
|
-
|
|
35511
|
-
|
|
35512
|
-
|
|
35513
|
-
|
|
35514
|
-
|
|
35515
|
-
|
|
35516
|
-
}),
|
|
35517
|
-
className: cx_default(tableProps.className),
|
|
35518
|
-
scroll: {
|
|
35519
|
-
y: "calc(100% - 48px)"
|
|
35520
|
-
}
|
|
35744
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
|
|
35745
|
+
tableProps: {
|
|
35746
|
+
...tableProps,
|
|
35747
|
+
scroll: {
|
|
35748
|
+
y: "calc(100% - 48px)"
|
|
35749
|
+
}
|
|
35750
|
+
},
|
|
35751
|
+
displayName: (config == null ? void 0 : config.displayName) || config.kind
|
|
35521
35752
|
})
|
|
35522
35753
|
})]
|
|
35523
35754
|
})]
|
|
@@ -38829,10 +39060,11 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
38829
39060
|
if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formTitle) === "function") {
|
|
38830
39061
|
return (_d2 = config.formConfig) == null ? void 0 : _d2.formTitle(action);
|
|
38831
39062
|
}
|
|
39063
|
+
const label2 = config.displayName || (config == null ? void 0 : config.kind);
|
|
38832
39064
|
return i18n2.t(id ? "dovetail.edit_resource" : "dovetail.create_resource", {
|
|
38833
|
-
resource:
|
|
39065
|
+
resource: /^[a-zA-Z]/.test(label2) ? ` ${label2}` : label2
|
|
38834
39066
|
});
|
|
38835
|
-
}, [action, config.formConfig, config == null ? void 0 : config.kind, i18n2, id]);
|
|
39067
|
+
}, [action, config.formConfig, config.displayName, config == null ? void 0 : config.kind, i18n2, id]);
|
|
38836
39068
|
const desc = React.useMemo(() => {
|
|
38837
39069
|
var _a2, _b2, _c2, _d2;
|
|
38838
39070
|
if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formDesc) === "string")
|
|
@@ -38883,6 +39115,12 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
38883
39115
|
children: [desc ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
38884
39116
|
className: FormDescStyle,
|
|
38885
39117
|
children: desc
|
|
39118
|
+
}) : void 0, !isYamlForm && mode === "form" ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Alert, {
|
|
39119
|
+
type: "warning",
|
|
39120
|
+
message: i18n2.t("dovetail.change_form_mode_alert"),
|
|
39121
|
+
style: {
|
|
39122
|
+
marginBottom: "16px"
|
|
39123
|
+
}
|
|
38886
39124
|
}) : void 0, formEle]
|
|
38887
39125
|
});
|
|
38888
39126
|
}
|
|
@@ -39195,8 +39433,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39195
39433
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39196
39434
|
ResourceLink,
|
|
39197
39435
|
{
|
|
39198
|
-
|
|
39199
|
-
|
|
39436
|
+
name: ownerReference.name,
|
|
39437
|
+
resourceKind: resource.name || "",
|
|
39200
39438
|
namespace: namespace2
|
|
39201
39439
|
}
|
|
39202
39440
|
);
|
|
@@ -39250,9 +39488,9 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39250
39488
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39251
39489
|
ResourceLink,
|
|
39252
39490
|
{
|
|
39253
|
-
|
|
39491
|
+
resourceKind: "services",
|
|
39254
39492
|
namespace: ingress.metadata.namespace || "default",
|
|
39255
|
-
|
|
39493
|
+
name: r2.serviceName
|
|
39256
39494
|
}
|
|
39257
39495
|
),
|
|
39258
39496
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
@@ -39843,7 +40081,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39843
40081
|
display: true,
|
|
39844
40082
|
dataIndex: ["pv"],
|
|
39845
40083
|
title: i18n2.t("dovetail.pv"),
|
|
39846
|
-
width:
|
|
40084
|
+
width: 160,
|
|
39847
40085
|
sortable: true
|
|
39848
40086
|
};
|
|
39849
40087
|
};
|
|
@@ -39853,13 +40091,13 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39853
40091
|
display: true,
|
|
39854
40092
|
dataIndex: ["spec", "storageClassName"],
|
|
39855
40093
|
title: i18n2.t("dovetail.storage_class"),
|
|
39856
|
-
width:
|
|
40094
|
+
width: 160,
|
|
39857
40095
|
sortable: true,
|
|
39858
40096
|
render(value2) {
|
|
39859
40097
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
39860
|
-
|
|
40098
|
+
resourceKind: "storageclasses",
|
|
39861
40099
|
namespace: "",
|
|
39862
|
-
|
|
40100
|
+
name: value2
|
|
39863
40101
|
});
|
|
39864
40102
|
}
|
|
39865
40103
|
};
|
|
@@ -39868,13 +40106,15 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39868
40106
|
return {
|
|
39869
40107
|
key: "phase",
|
|
39870
40108
|
display: true,
|
|
39871
|
-
dataIndex: ["
|
|
40109
|
+
dataIndex: ["stateDisplay"],
|
|
39872
40110
|
title: i18n2.t("dovetail.state"),
|
|
39873
40111
|
width: 120,
|
|
39874
40112
|
sortable: true,
|
|
39875
40113
|
render(value2) {
|
|
39876
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39877
|
-
|
|
40114
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
40115
|
+
state: value2,
|
|
40116
|
+
resourceKind: "PersistentVolume",
|
|
40117
|
+
hideBackground: true
|
|
39878
40118
|
});
|
|
39879
40119
|
}
|
|
39880
40120
|
};
|
|
@@ -39885,8 +40125,15 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39885
40125
|
display: true,
|
|
39886
40126
|
dataIndex: ["pvc"],
|
|
39887
40127
|
title: i18n2.t("dovetail.pvc"),
|
|
39888
|
-
width:
|
|
39889
|
-
sortable: true
|
|
40128
|
+
width: 160,
|
|
40129
|
+
sortable: true,
|
|
40130
|
+
render(value2, pv2) {
|
|
40131
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
40132
|
+
resourceKind: "persistentvolumeclaims",
|
|
40133
|
+
namespace: pv2.pvcNamespace || "default",
|
|
40134
|
+
name: value2
|
|
40135
|
+
});
|
|
40136
|
+
}
|
|
39890
40137
|
};
|
|
39891
40138
|
};
|
|
39892
40139
|
const PVCSIRefColumnRenderer = (i18n2) => {
|
|
@@ -39895,7 +40142,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39895
40142
|
display: true,
|
|
39896
40143
|
dataIndex: ["csi"],
|
|
39897
40144
|
title: i18n2.t("dovetail.csi"),
|
|
39898
|
-
width:
|
|
40145
|
+
width: 160,
|
|
39899
40146
|
sortable: true
|
|
39900
40147
|
};
|
|
39901
40148
|
};
|
|
@@ -39921,7 +40168,15 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39921
40168
|
dataIndex: ["spec", "accessModes"],
|
|
39922
40169
|
title: i18n2.t("dovetail.access_mode"),
|
|
39923
40170
|
width: 120,
|
|
39924
|
-
sortable: true
|
|
40171
|
+
sortable: true,
|
|
40172
|
+
render(value2) {
|
|
40173
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
40174
|
+
style: {
|
|
40175
|
+
whiteSpace: "pre-wrap"
|
|
40176
|
+
},
|
|
40177
|
+
children: value2.join("\n")
|
|
40178
|
+
});
|
|
40179
|
+
}
|
|
39925
40180
|
};
|
|
39926
40181
|
};
|
|
39927
40182
|
const IsDefaultSCColumnRenderer = (i18n2) => {
|
|
@@ -39954,6 +40209,19 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39954
40209
|
}
|
|
39955
40210
|
};
|
|
39956
40211
|
};
|
|
40212
|
+
const SCAllowExpandColumnRenderer = (i18n2) => {
|
|
40213
|
+
return {
|
|
40214
|
+
key: "allowVolumeExpansion",
|
|
40215
|
+
display: true,
|
|
40216
|
+
dataIndex: ["allowVolumeExpansion"],
|
|
40217
|
+
title: i18n2.t("dovetail.allow_expand"),
|
|
40218
|
+
width: 120,
|
|
40219
|
+
sortable: true,
|
|
40220
|
+
render(val) {
|
|
40221
|
+
return val ? i18n2.t("dovetail.support") : i18n2.t("dovetail.not_support");
|
|
40222
|
+
}
|
|
40223
|
+
};
|
|
40224
|
+
};
|
|
39957
40225
|
const styles = "";
|
|
39958
40226
|
const Dovetail = (props) => {
|
|
39959
40227
|
const {
|
|
@@ -40322,9 +40590,13 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40322
40590
|
exports2.NodeModel = NodeModel;
|
|
40323
40591
|
exports2.NodeNameColumnRenderer = NodeNameColumnRenderer;
|
|
40324
40592
|
exports2.NodeRole = NodeRole;
|
|
40593
|
+
exports2.NodeTaintsField = NodeTaintsField;
|
|
40594
|
+
exports2.NodeTaintsGroup = NodeTaintsGroup;
|
|
40325
40595
|
exports2.POD_INIT_VALUE = POD_INIT_VALUE;
|
|
40326
40596
|
exports2.PVAccessModeColumnRenderer = PVAccessModeColumnRenderer;
|
|
40327
40597
|
exports2.PVAccessModeField = PVAccessModeField;
|
|
40598
|
+
exports2.PVCPodsField = PVCPodsField;
|
|
40599
|
+
exports2.PVCPodsGroup = PVCPodsGroup;
|
|
40328
40600
|
exports2.PVCRefColumnRenderer = PVCRefColumnRenderer;
|
|
40329
40601
|
exports2.PVCRefField = PVCRefField;
|
|
40330
40602
|
exports2.PVCSIRefColumnRenderer = PVCSIRefColumnRenderer;
|
|
@@ -40335,7 +40607,6 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40335
40607
|
exports2.PVCapacityColumnRenderer = PVCapacityColumnRenderer;
|
|
40336
40608
|
exports2.PVCapacityField = PVCapacityField;
|
|
40337
40609
|
exports2.PVPhaseColumnRenderer = PVPhaseColumnRenderer;
|
|
40338
|
-
exports2.PVPhaseDisplay = PVPhaseDisplay;
|
|
40339
40610
|
exports2.PVPhaseField = PVPhaseField;
|
|
40340
40611
|
exports2.PVRefColumnRenderer = PVRefColumnRenderer;
|
|
40341
40612
|
exports2.PVRefField = PVRefField;
|
|
@@ -40385,11 +40656,13 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40385
40656
|
exports2.ResourceModel = ResourceModel;
|
|
40386
40657
|
exports2.ResourceSelect = ResourceSelect;
|
|
40387
40658
|
exports2.ResourceShow = ResourceShow;
|
|
40659
|
+
exports2.ResourceState = ResourceState;
|
|
40388
40660
|
exports2.ResourceTable = ResourceTable;
|
|
40389
40661
|
exports2.ResourceTableField = ResourceTableField;
|
|
40390
40662
|
exports2.ResourceTableGroup = ResourceTableGroup;
|
|
40391
40663
|
exports2.ResourceUsageBar = ResourceUsageBar;
|
|
40392
40664
|
exports2.RestartCountColumnRenderer = RestartCountColumnRenderer;
|
|
40665
|
+
exports2.SCAllowExpandColumnRenderer = SCAllowExpandColumnRenderer;
|
|
40393
40666
|
exports2.SCReclaimPolicyColumnRenderer = SCReclaimPolicyColumnRenderer;
|
|
40394
40667
|
exports2.SCReclaimPolicyField = SCReclaimPolicyField;
|
|
40395
40668
|
exports2.SECRET_BASIC_AUTH_INIT_VALUE = SECRET_BASIC_AUTH_INIT_VALUE;
|
|
@@ -40432,12 +40705,12 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40432
40705
|
exports2.StartTimeField = StartTimeField;
|
|
40433
40706
|
exports2.StateDisplayColumnRenderer = StateDisplayColumnRenderer;
|
|
40434
40707
|
exports2.StateTag = StateTag;
|
|
40435
|
-
exports2.StateTagStyle = StateTagStyle;
|
|
40436
40708
|
exports2.StatefulSetModel = StatefulSetModel;
|
|
40437
40709
|
exports2.StorageClassModel = StorageClassModel;
|
|
40438
40710
|
exports2.StorageClassProvisionerField = StorageClassProvisionerField;
|
|
40439
40711
|
exports2.StorageClassPvField = StorageClassPvField;
|
|
40440
40712
|
exports2.StorageClassPvGroup = StorageClassPvGroup;
|
|
40713
|
+
exports2.Table = Table;
|
|
40441
40714
|
exports2.Tabs = Tabs;
|
|
40442
40715
|
exports2.Tags = Tags;
|
|
40443
40716
|
exports2.TextTags = TextTags;
|
|
@@ -40451,7 +40724,6 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40451
40724
|
exports2.WorkloadReplicas = WorkloadReplicas;
|
|
40452
40725
|
exports2.WorkloadReplicasForm = WorkloadReplicasForm;
|
|
40453
40726
|
exports2.WorkloadRestartsColumnRenderer = WorkloadRestartsColumnRenderer;
|
|
40454
|
-
exports2.WorkloadState = WorkloadState;
|
|
40455
40727
|
exports2.YamlEditorComponent = YamlEditorComponent;
|
|
40456
40728
|
exports2.YamlForm = YamlForm;
|
|
40457
40729
|
exports2.addDefaultRenderToColumns = addDefaultRenderToColumns;
|