@dovetail-v2/refine 0.0.34 → 0.0.35-beta.2
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-799d6dfe.js → MonacoYamlDiffEditor-d8d76ced.js} +2 -2
- package/dist/{index-3113dd7a.js → index-a91f5f0f.js} +1067 -979
- package/dist/refine.js +134 -133
- package/dist/refine.umd.cjs +934 -846
- package/dist/style.css +8 -8
- package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
- package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
- package/lib/src/components/Table/index.d.ts +13 -7
- package/lib/src/components/index.d.ts +2 -1
- package/lib/src/constants/auth.d.ts +5 -0
- package/package.json +2 -2
package/dist/refine.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global2, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("
|
|
3
|
-
})(this, function(exports2, i18n, core, qs, React, reactRouterDom, eagle,
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("i18next"), require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("@cloudtower/icons-react"), require("lodash-es"), require("js-yaml"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("sunflower-antd"), require("antd"), require("k8s-api-provider")) : typeof define === "function" && define.amd ? define(["exports", "i18next", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "@cloudtower/icons-react", "lodash-es", "js-yaml", "monaco-editor", "monaco-yaml", "react-dom", "sunflower-antd", "antd", "k8s-api-provider"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.i18n, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.iconsReact, global2.lodashEs, global2.yaml, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.sunflowerAntd, global2.antd, global2.k8sApiProvider));
|
|
3
|
+
})(this, function(exports2, i18n, core, qs, React, reactRouterDom, eagle, iconsReact, lodashEs, yaml, monaco, monacoYaml, ReactDOM, sunflowerAntd, antd, k8sApiProvider) {
|
|
4
4
|
"use strict";var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
6
|
var __publicField = (obj, key, value) => {
|
|
@@ -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
|
+
} }, m2 = 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: m2, z: function(t3) {
|
|
45
|
+
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
46
|
+
return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(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 m3 = M2.prototype;
|
|
91
|
+
return m3.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, m4 = this.$d.getTime() + r3 * M3;
|
|
191
|
-
return b.w(m4, this);
|
|
192
|
-
}, m3.subtract = function(t3, e3) {
|
|
193
|
-
return this.add(-1 * t3, e3);
|
|
194
|
-
}, m3.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
|
-
}, m3.utcOffset = function() {
|
|
262
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
263
|
-
}, m3.diff = function(r3, d2, l2) {
|
|
264
|
-
var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
|
|
265
|
-
return b.m(y2, m4);
|
|
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
|
-
}, m3.daysInMonth = function() {
|
|
297
|
-
return this.endOf(c2).$D;
|
|
298
|
-
}, m3.$locale = function() {
|
|
299
|
-
return D[this.$L];
|
|
300
|
-
}, m3.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
|
-
}, m3.clone = function() {
|
|
306
|
-
return b.w(this.$d, this);
|
|
307
|
-
}, m3.toDate = function() {
|
|
308
|
-
return new Date(this.valueOf());
|
|
309
|
-
}, m3.toJSON = function() {
|
|
310
|
-
return this.isValid() ? this.toISOString() : null;
|
|
311
|
-
}, m3.toISOString = function() {
|
|
312
|
-
return this.$d.toISOString();
|
|
313
|
-
}, m3.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
|
+
}, m3.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
|
+
}, m3.$utils = function() {
|
|
113
|
+
return b;
|
|
114
|
+
}, m3.isValid = function() {
|
|
115
|
+
return !(this.$d.toString() === l);
|
|
116
|
+
}, m3.isSame = function(t3, e3) {
|
|
117
|
+
var n3 = O(t3);
|
|
118
|
+
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
119
|
+
}, m3.isAfter = function(t3, e3) {
|
|
120
|
+
return O(t3) < this.startOf(e3);
|
|
121
|
+
}, m3.isBefore = function(t3, e3) {
|
|
122
|
+
return this.endOf(e3) < O(t3);
|
|
123
|
+
}, m3.$g = function(t3, e3, n3) {
|
|
124
|
+
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
125
|
+
}, m3.unix = function() {
|
|
126
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
127
|
+
}, m3.valueOf = function() {
|
|
128
|
+
return this.$d.getTime();
|
|
129
|
+
}, m3.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, m4 = 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 ? m4 - D2 : m4 + (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
|
+
}, m3.endOf = function(t3) {
|
|
157
|
+
return this.startOf(t3, false);
|
|
158
|
+
}, m3.$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
|
+
}, m3.set = function(t3, e3) {
|
|
167
|
+
return this.clone().$set(t3, e3);
|
|
168
|
+
}, m3.get = function(t3) {
|
|
169
|
+
return this[b.p(t3)]();
|
|
170
|
+
}, m3.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, m4 = this.$d.getTime() + r3 * M3;
|
|
186
|
+
return b.w(m4, this);
|
|
187
|
+
}, m3.subtract = function(t3, e3) {
|
|
188
|
+
return this.add(-1 * t3, e3);
|
|
189
|
+
}, m3.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
|
+
}, m3.utcOffset = function() {
|
|
257
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
258
|
+
}, m3.diff = function(r3, d2, l2) {
|
|
259
|
+
var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
|
|
260
|
+
return b.m(y2, m4);
|
|
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
|
+
}, m3.daysInMonth = function() {
|
|
292
|
+
return this.endOf(c2).$D;
|
|
293
|
+
}, m3.$locale = function() {
|
|
294
|
+
return D[this.$L];
|
|
295
|
+
}, m3.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
|
+
}, m3.clone = function() {
|
|
301
|
+
return b.w(this.$d, this);
|
|
302
|
+
}, m3.toDate = function() {
|
|
303
|
+
return new Date(this.valueOf());
|
|
304
|
+
}, m3.toJSON = function() {
|
|
305
|
+
return this.isValid() ? this.toISOString() : null;
|
|
306
|
+
}, m3.toISOString = function() {
|
|
307
|
+
return this.$d.toISOString();
|
|
308
|
+
}, m3.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 };
|
|
@@ -1290,7 +1283,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1290
1283
|
const message = "信息";
|
|
1291
1284
|
const save = "保存";
|
|
1292
1285
|
const workload = "工作负载";
|
|
1293
|
-
const all_namespaces = "
|
|
1286
|
+
const all_namespaces = "全部名字空间";
|
|
1294
1287
|
const empty = "暂无数据";
|
|
1295
1288
|
const schedule = "调度时间表";
|
|
1296
1289
|
const lastScheduleTime = "上次调度时间";
|
|
@@ -8430,180 +8423,406 @@ var __publicField = (obj, key, value) => {
|
|
|
8430
8423
|
})
|
|
8431
8424
|
});
|
|
8432
8425
|
};
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
dataIndex: "key",
|
|
8446
|
-
title: t2("dovetail.key"),
|
|
8447
|
-
sortable: true
|
|
8448
|
-
},
|
|
8449
|
-
{
|
|
8450
|
-
key: "value",
|
|
8451
|
-
display: true,
|
|
8452
|
-
dataIndex: "value",
|
|
8453
|
-
title: t2("dovetail.value"),
|
|
8454
|
-
sortable: true
|
|
8455
|
-
}
|
|
8456
|
-
];
|
|
8457
|
-
if (datas.length === 0) {
|
|
8458
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8459
|
-
WidgetErrorContent$1,
|
|
8460
|
-
{
|
|
8461
|
-
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8462
|
-
style: { padding: "15px 0" }
|
|
8463
|
-
}
|
|
8464
|
-
);
|
|
8465
|
-
}
|
|
8466
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8467
|
-
kit.table,
|
|
8468
|
-
{
|
|
8469
|
-
loading: false,
|
|
8470
|
-
dataSource: datas,
|
|
8471
|
-
columns: addDefaultRenderToColumns(columns),
|
|
8472
|
-
rowKey: "type",
|
|
8473
|
-
empty: t2("dovetail.empty")
|
|
8474
|
-
}
|
|
8475
|
-
);
|
|
8476
|
-
};
|
|
8477
|
-
const PortsTable = ({ service }) => {
|
|
8478
|
-
const kit = eagle.useUIKit();
|
|
8479
|
-
const { t: t2 } = useTranslation();
|
|
8480
|
-
const columns = [
|
|
8481
|
-
{
|
|
8482
|
-
key: "name",
|
|
8483
|
-
display: true,
|
|
8484
|
-
dataIndex: "name",
|
|
8485
|
-
title: t2("dovetail.name"),
|
|
8486
|
-
sortable: true
|
|
8487
|
-
},
|
|
8488
|
-
{
|
|
8489
|
-
key: "servicePort",
|
|
8490
|
-
display: true,
|
|
8491
|
-
dataIndex: "port",
|
|
8492
|
-
title: t2("dovetail.service_port"),
|
|
8493
|
-
sortable: true
|
|
8494
|
-
},
|
|
8495
|
-
{
|
|
8496
|
-
key: "protocol",
|
|
8497
|
-
display: true,
|
|
8498
|
-
dataIndex: "protocol",
|
|
8499
|
-
title: t2("dovetail.protocol"),
|
|
8500
|
-
sortable: true
|
|
8501
|
-
},
|
|
8502
|
-
{
|
|
8503
|
-
key: "podPort",
|
|
8504
|
-
display: true,
|
|
8505
|
-
dataIndex: "targetPort",
|
|
8506
|
-
title: t2("dovetail.pod_port"),
|
|
8507
|
-
sortable: true
|
|
8508
|
-
},
|
|
8509
|
-
{
|
|
8510
|
-
key: "nodePort",
|
|
8511
|
-
display: true,
|
|
8512
|
-
dataIndex: "nodePort",
|
|
8513
|
-
title: t2("dovetail.node_port"),
|
|
8514
|
-
sortable: true
|
|
8515
|
-
}
|
|
8516
|
-
];
|
|
8517
|
-
const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
|
|
8518
|
-
...port2,
|
|
8519
|
-
id: port2.name || ""
|
|
8520
|
-
}));
|
|
8521
|
-
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8522
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
|
|
8426
|
+
function memoize$1(fn) {
|
|
8427
|
+
var cache = /* @__PURE__ */ Object.create(null);
|
|
8428
|
+
return function(arg) {
|
|
8429
|
+
if (cache[arg] === void 0)
|
|
8430
|
+
cache[arg] = fn(arg);
|
|
8431
|
+
return cache[arg];
|
|
8432
|
+
};
|
|
8433
|
+
}
|
|
8434
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
8435
|
+
var isPropValid = /* @__PURE__ */ memoize$1(
|
|
8436
|
+
function(prop) {
|
|
8437
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
8523
8438
|
}
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8439
|
+
/* Z+1 */
|
|
8440
|
+
);
|
|
8441
|
+
var isCapital = (ch) => ch.toUpperCase() === ch;
|
|
8442
|
+
var filterKey = (keys) => (key2) => keys.indexOf(key2) === -1;
|
|
8443
|
+
var omit = (obj, keys) => {
|
|
8444
|
+
const res = {};
|
|
8445
|
+
Object.keys(obj).filter(filterKey(keys)).forEach((key2) => {
|
|
8446
|
+
res[key2] = obj[key2];
|
|
8447
|
+
});
|
|
8448
|
+
return res;
|
|
8534
8449
|
};
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
Object.keys(_rawYaml).forEach((key2) => {
|
|
8544
|
-
Object.defineProperty(this, key2, {
|
|
8545
|
-
value: _rawYaml[key2]
|
|
8546
|
-
});
|
|
8450
|
+
function filterProps(asIs, props, omitKeys) {
|
|
8451
|
+
const filteredProps = omit(props, omitKeys);
|
|
8452
|
+
if (!asIs) {
|
|
8453
|
+
const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
|
|
8454
|
+
Object.keys(filteredProps).forEach((key2) => {
|
|
8455
|
+
if (!interopValidAttr.default(key2)) {
|
|
8456
|
+
delete filteredProps[key2];
|
|
8457
|
+
}
|
|
8547
8458
|
});
|
|
8548
8459
|
}
|
|
8549
|
-
|
|
8550
|
-
async init() {
|
|
8551
|
-
}
|
|
8552
|
-
get name() {
|
|
8553
|
-
var _a;
|
|
8554
|
-
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.name;
|
|
8555
|
-
}
|
|
8556
|
-
get namespace() {
|
|
8557
|
-
var _a;
|
|
8558
|
-
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.namespace;
|
|
8559
|
-
}
|
|
8560
|
-
get labels() {
|
|
8561
|
-
var _a;
|
|
8562
|
-
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.labels;
|
|
8563
|
-
}
|
|
8564
|
-
get annotations() {
|
|
8565
|
-
var _a;
|
|
8566
|
-
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.annotations;
|
|
8567
|
-
}
|
|
8568
|
-
restore() {
|
|
8569
|
-
return this._rawYaml;
|
|
8570
|
-
}
|
|
8460
|
+
return filteredProps;
|
|
8571
8461
|
}
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
const paths = (_a2 = rule2.http) == null ? void 0 : _a2.paths.map((p) => {
|
|
8582
|
-
var _a3, _b, _c, _d, _e, _f;
|
|
8583
|
-
return {
|
|
8584
|
-
resourceName: ((_a3 = p.backend.resource) == null ? void 0 : _a3.name) || "",
|
|
8585
|
-
serviceName: ((_b = p.backend.service) == null ? void 0 : _b.name) || "",
|
|
8586
|
-
fullPath: this.getFullPath(rule2, p.path),
|
|
8587
|
-
pathType: p.pathType,
|
|
8588
|
-
servicePort: ((_d = (_c = p.backend.service) == null ? void 0 : _c.port) == null ? void 0 : _d.number) || ((_f = (_e = p.backend.service) == null ? void 0 : _e.port) == null ? void 0 : _f.name),
|
|
8589
|
-
host: rule2.host
|
|
8590
|
-
};
|
|
8591
|
-
});
|
|
8592
|
-
return [...res, ...paths || []];
|
|
8593
|
-
}, [])) || [];
|
|
8462
|
+
var warnIfInvalid = (value2, componentName) => {
|
|
8463
|
+
if (process.env.NODE_ENV !== "production") {
|
|
8464
|
+
if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
|
|
8465
|
+
return;
|
|
8466
|
+
}
|
|
8467
|
+
const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
|
|
8468
|
+
console.warn(
|
|
8469
|
+
`An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
|
|
8470
|
+
);
|
|
8594
8471
|
}
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8472
|
+
};
|
|
8473
|
+
var idx = 0;
|
|
8474
|
+
function styled(tag) {
|
|
8475
|
+
var _a;
|
|
8476
|
+
let mockedClass = "";
|
|
8477
|
+
if (process.env.NODE_ENV === "test") {
|
|
8478
|
+
mockedClass += `mocked-styled-${idx++}`;
|
|
8479
|
+
if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
|
|
8480
|
+
mockedClass += ` ${tag.__linaria.className}`;
|
|
8598
8481
|
}
|
|
8599
|
-
const hostValue = rule2.host || "";
|
|
8600
|
-
const protocal = this._rawYaml.spec.tls ? "https://" : "http://";
|
|
8601
|
-
return `${protocal}${hostValue}${path2}`;
|
|
8602
8482
|
}
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8483
|
+
return (options) => {
|
|
8484
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
|
|
8485
|
+
if (Array.isArray(options)) {
|
|
8486
|
+
throw new Error(
|
|
8487
|
+
'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
|
|
8488
|
+
);
|
|
8489
|
+
}
|
|
8490
|
+
}
|
|
8491
|
+
const render = (props, ref) => {
|
|
8492
|
+
const { as: component = tag, class: className = mockedClass } = props;
|
|
8493
|
+
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
8494
|
+
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
8495
|
+
"as",
|
|
8496
|
+
"class"
|
|
8497
|
+
]);
|
|
8498
|
+
filteredProps.ref = ref;
|
|
8499
|
+
filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
|
|
8500
|
+
const { vars } = options;
|
|
8501
|
+
if (vars) {
|
|
8502
|
+
const style = {};
|
|
8503
|
+
for (const name2 in vars) {
|
|
8504
|
+
const variable = vars[name2];
|
|
8505
|
+
const result = variable[0];
|
|
8506
|
+
const unit = variable[1] || "";
|
|
8507
|
+
const value2 = typeof result === "function" ? result(props) : result;
|
|
8508
|
+
warnIfInvalid(value2, options.name);
|
|
8509
|
+
style[`--${name2}`] = `${value2}${unit}`;
|
|
8510
|
+
}
|
|
8511
|
+
const ownStyle = filteredProps.style || {};
|
|
8512
|
+
const keys = Object.keys(ownStyle);
|
|
8513
|
+
if (keys.length > 0) {
|
|
8514
|
+
keys.forEach((key2) => {
|
|
8515
|
+
style[key2] = ownStyle[key2];
|
|
8516
|
+
});
|
|
8517
|
+
}
|
|
8518
|
+
filteredProps.style = style;
|
|
8519
|
+
}
|
|
8520
|
+
if (tag.__linaria && tag !== component) {
|
|
8521
|
+
filteredProps.as = component;
|
|
8522
|
+
return React.createElement(tag, filteredProps);
|
|
8523
|
+
}
|
|
8524
|
+
return React.createElement(component, filteredProps);
|
|
8525
|
+
};
|
|
8526
|
+
const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
|
|
8527
|
+
const rest = omit(props, ["innerRef"]);
|
|
8528
|
+
return render(rest, props.innerRef);
|
|
8529
|
+
};
|
|
8530
|
+
Result.displayName = options.name;
|
|
8531
|
+
Result.__linaria = {
|
|
8532
|
+
className: options.class || mockedClass,
|
|
8533
|
+
extends: tag
|
|
8534
|
+
};
|
|
8535
|
+
return Result;
|
|
8536
|
+
};
|
|
8537
|
+
}
|
|
8538
|
+
var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
8539
|
+
get(o, prop) {
|
|
8540
|
+
return o(prop);
|
|
8541
|
+
}
|
|
8542
|
+
}) : styled;
|
|
8543
|
+
const TableWidgets_ny30pi = "";
|
|
8544
|
+
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8545
|
+
name: "AuxiliaryLine",
|
|
8546
|
+
class: "ax1qopv",
|
|
8547
|
+
propsAsIs: false
|
|
8548
|
+
});
|
|
8549
|
+
const index_dmbxj3 = "";
|
|
8550
|
+
const TableContainerStyle = "t1upn1sz";
|
|
8551
|
+
function Table(props) {
|
|
8552
|
+
const kit = eagle.useUIKit();
|
|
8553
|
+
const {
|
|
8554
|
+
t: t2
|
|
8555
|
+
} = useTranslation();
|
|
8556
|
+
const {
|
|
8557
|
+
loading,
|
|
8558
|
+
error,
|
|
8559
|
+
data: dataSource,
|
|
8560
|
+
rowKey,
|
|
8561
|
+
columns,
|
|
8562
|
+
scroll,
|
|
8563
|
+
currentPage,
|
|
8564
|
+
currentSize,
|
|
8565
|
+
RowMenu,
|
|
8566
|
+
refetch,
|
|
8567
|
+
onPageChange,
|
|
8568
|
+
onSizeChange,
|
|
8569
|
+
empty: empty2
|
|
8570
|
+
} = props;
|
|
8571
|
+
const auxiliaryLineRef = React.useRef(null);
|
|
8572
|
+
const wrapperRef = React.useRef(null);
|
|
8573
|
+
const pagination = React.useMemo(() => ({
|
|
8574
|
+
current: currentPage,
|
|
8575
|
+
pageSize: currentSize,
|
|
8576
|
+
onChange: onPageChange
|
|
8577
|
+
}), [currentPage, currentSize, onPageChange]);
|
|
8578
|
+
const finalColumns = React.useMemo(() => {
|
|
8579
|
+
if (RowMenu) {
|
|
8580
|
+
const actionColumn = {
|
|
8581
|
+
key: "_action_",
|
|
8582
|
+
display: true,
|
|
8583
|
+
dataIndex: [],
|
|
8584
|
+
title: "",
|
|
8585
|
+
render: (_, record) => {
|
|
8586
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(RowMenu, {
|
|
8587
|
+
record
|
|
8588
|
+
});
|
|
8589
|
+
}
|
|
8590
|
+
};
|
|
8591
|
+
return [...columns, actionColumn];
|
|
8592
|
+
}
|
|
8593
|
+
return columns;
|
|
8594
|
+
}, [columns, RowMenu]);
|
|
8595
|
+
if (loading) {
|
|
8596
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
|
|
8597
|
+
} else if (error) {
|
|
8598
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
8599
|
+
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
8600
|
+
refetch,
|
|
8601
|
+
style: {
|
|
8602
|
+
padding: "15px 0"
|
|
8603
|
+
}
|
|
8604
|
+
});
|
|
8605
|
+
} else if (dataSource.length === 0) {
|
|
8606
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
8607
|
+
errorText: empty2 || t2("dovetail.empty"),
|
|
8608
|
+
style: {
|
|
8609
|
+
padding: "15px 0"
|
|
8610
|
+
}
|
|
8611
|
+
});
|
|
8612
|
+
}
|
|
8613
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8614
|
+
ref: wrapperRef,
|
|
8615
|
+
className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
|
|
8616
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.table, {
|
|
8617
|
+
tableLayout: "fixed",
|
|
8618
|
+
columns: finalColumns,
|
|
8619
|
+
dataSource,
|
|
8620
|
+
pagination,
|
|
8621
|
+
error,
|
|
8622
|
+
loading,
|
|
8623
|
+
rowKey,
|
|
8624
|
+
wrapper: wrapperRef,
|
|
8625
|
+
scroll
|
|
8626
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
|
|
8627
|
+
ref: auxiliaryLineRef
|
|
8628
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
|
|
8629
|
+
current: currentPage,
|
|
8630
|
+
size: currentSize,
|
|
8631
|
+
count: dataSource.length,
|
|
8632
|
+
onChange: onPageChange,
|
|
8633
|
+
onSizeChange
|
|
8634
|
+
})]
|
|
8635
|
+
});
|
|
8636
|
+
}
|
|
8637
|
+
const ComponentContext = React.createContext({});
|
|
8638
|
+
const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
8639
|
+
const { t: t2 } = useTranslation();
|
|
8640
|
+
const component = React.useContext(ComponentContext);
|
|
8641
|
+
const Table$1 = component.Table || Table;
|
|
8642
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
8643
|
+
const datas = Object.keys(podSelectors).map((key2) => ({
|
|
8644
|
+
id: key2,
|
|
8645
|
+
key: key2,
|
|
8646
|
+
value: podSelectors[key2]
|
|
8647
|
+
}));
|
|
8648
|
+
const columns = [
|
|
8649
|
+
{
|
|
8650
|
+
key: "key",
|
|
8651
|
+
display: true,
|
|
8652
|
+
dataIndex: "key",
|
|
8653
|
+
title: t2("dovetail.key"),
|
|
8654
|
+
sortable: true
|
|
8655
|
+
},
|
|
8656
|
+
{
|
|
8657
|
+
key: "value",
|
|
8658
|
+
display: true,
|
|
8659
|
+
dataIndex: "value",
|
|
8660
|
+
title: t2("dovetail.value"),
|
|
8661
|
+
sortable: true
|
|
8662
|
+
}
|
|
8663
|
+
];
|
|
8664
|
+
if (datas.length === 0) {
|
|
8665
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8666
|
+
WidgetErrorContent$1,
|
|
8667
|
+
{
|
|
8668
|
+
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8669
|
+
style: { padding: "15px 0" }
|
|
8670
|
+
}
|
|
8671
|
+
);
|
|
8672
|
+
}
|
|
8673
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8674
|
+
Table$1,
|
|
8675
|
+
{
|
|
8676
|
+
tableKey: "podSelector",
|
|
8677
|
+
loading: false,
|
|
8678
|
+
data: datas,
|
|
8679
|
+
columns: addDefaultRenderToColumns(columns),
|
|
8680
|
+
rowKey: "key",
|
|
8681
|
+
empty: t2("dovetail.empty"),
|
|
8682
|
+
currentSize: 10,
|
|
8683
|
+
currentPage,
|
|
8684
|
+
onPageChange: setCurrentPage,
|
|
8685
|
+
showMenuColumn: false
|
|
8686
|
+
}
|
|
8687
|
+
);
|
|
8688
|
+
};
|
|
8689
|
+
const PortsTable = ({ service }) => {
|
|
8690
|
+
const { t: t2 } = useTranslation();
|
|
8691
|
+
const component = React.useContext(ComponentContext);
|
|
8692
|
+
const Table$1 = component.Table || Table;
|
|
8693
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
8694
|
+
const columns = [
|
|
8695
|
+
{
|
|
8696
|
+
key: "name",
|
|
8697
|
+
display: true,
|
|
8698
|
+
dataIndex: "name",
|
|
8699
|
+
title: t2("dovetail.name"),
|
|
8700
|
+
sortable: true
|
|
8701
|
+
},
|
|
8702
|
+
{
|
|
8703
|
+
key: "servicePort",
|
|
8704
|
+
display: true,
|
|
8705
|
+
dataIndex: "port",
|
|
8706
|
+
title: t2("dovetail.service_port"),
|
|
8707
|
+
sortable: true
|
|
8708
|
+
},
|
|
8709
|
+
{
|
|
8710
|
+
key: "protocol",
|
|
8711
|
+
display: true,
|
|
8712
|
+
dataIndex: "protocol",
|
|
8713
|
+
title: t2("dovetail.protocol"),
|
|
8714
|
+
sortable: true
|
|
8715
|
+
},
|
|
8716
|
+
{
|
|
8717
|
+
key: "podPort",
|
|
8718
|
+
display: true,
|
|
8719
|
+
dataIndex: "targetPort",
|
|
8720
|
+
title: t2("dovetail.pod_port"),
|
|
8721
|
+
sortable: true
|
|
8722
|
+
},
|
|
8723
|
+
{
|
|
8724
|
+
key: "nodePort",
|
|
8725
|
+
display: true,
|
|
8726
|
+
dataIndex: "nodePort",
|
|
8727
|
+
title: t2("dovetail.node_port"),
|
|
8728
|
+
sortable: true
|
|
8729
|
+
}
|
|
8730
|
+
];
|
|
8731
|
+
const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
|
|
8732
|
+
...port2,
|
|
8733
|
+
id: port2.name || ""
|
|
8734
|
+
}));
|
|
8735
|
+
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8736
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
|
|
8737
|
+
}
|
|
8738
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8739
|
+
Table$1,
|
|
8740
|
+
{
|
|
8741
|
+
tableKey: "ports",
|
|
8742
|
+
loading: false,
|
|
8743
|
+
data: ports,
|
|
8744
|
+
columns: addDefaultRenderToColumns(columns),
|
|
8745
|
+
rowKey: "name",
|
|
8746
|
+
empty: t2("dovetail.empty"),
|
|
8747
|
+
currentSize: 10,
|
|
8748
|
+
currentPage,
|
|
8749
|
+
onPageChange: setCurrentPage,
|
|
8750
|
+
showMenuColumn: false
|
|
8751
|
+
}
|
|
8752
|
+
);
|
|
8753
|
+
};
|
|
8754
|
+
class ResourceModel {
|
|
8755
|
+
constructor(_rawYaml, _globalStore) {
|
|
8756
|
+
__publicField(this, "id");
|
|
8757
|
+
__publicField(this, "apiVersion");
|
|
8758
|
+
__publicField(this, "kind");
|
|
8759
|
+
__publicField(this, "metadata");
|
|
8760
|
+
this._rawYaml = _rawYaml;
|
|
8761
|
+
this._globalStore = _globalStore;
|
|
8762
|
+
Object.keys(_rawYaml).forEach((key2) => {
|
|
8763
|
+
Object.defineProperty(this, key2, {
|
|
8764
|
+
value: _rawYaml[key2]
|
|
8765
|
+
});
|
|
8766
|
+
});
|
|
8767
|
+
}
|
|
8768
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8769
|
+
async init() {
|
|
8770
|
+
}
|
|
8771
|
+
get name() {
|
|
8772
|
+
var _a;
|
|
8773
|
+
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.name;
|
|
8774
|
+
}
|
|
8775
|
+
get namespace() {
|
|
8776
|
+
var _a;
|
|
8777
|
+
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.namespace;
|
|
8778
|
+
}
|
|
8779
|
+
get labels() {
|
|
8780
|
+
var _a;
|
|
8781
|
+
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.labels;
|
|
8782
|
+
}
|
|
8783
|
+
get annotations() {
|
|
8784
|
+
var _a;
|
|
8785
|
+
return (_a = this._rawYaml.metadata) == null ? void 0 : _a.annotations;
|
|
8786
|
+
}
|
|
8787
|
+
restore() {
|
|
8788
|
+
return this._rawYaml;
|
|
8789
|
+
}
|
|
8790
|
+
}
|
|
8791
|
+
class IngressModel extends ResourceModel {
|
|
8792
|
+
constructor(_rawYaml, _globalStore) {
|
|
8793
|
+
var _a;
|
|
8794
|
+
super(_rawYaml, _globalStore);
|
|
8795
|
+
__publicField(this, "flattenedRules");
|
|
8796
|
+
this._rawYaml = _rawYaml;
|
|
8797
|
+
this._globalStore = _globalStore;
|
|
8798
|
+
this.flattenedRules = ((_a = this._rawYaml.spec.rules) == null ? void 0 : _a.reduce((res, rule2) => {
|
|
8799
|
+
var _a2;
|
|
8800
|
+
const paths = (_a2 = rule2.http) == null ? void 0 : _a2.paths.map((p) => {
|
|
8801
|
+
var _a3, _b, _c, _d, _e, _f;
|
|
8802
|
+
return {
|
|
8803
|
+
resourceName: ((_a3 = p.backend.resource) == null ? void 0 : _a3.name) || "",
|
|
8804
|
+
serviceName: ((_b = p.backend.service) == null ? void 0 : _b.name) || "",
|
|
8805
|
+
fullPath: this.getFullPath(rule2, p.path),
|
|
8806
|
+
pathType: p.pathType,
|
|
8807
|
+
servicePort: ((_d = (_c = p.backend.service) == null ? void 0 : _c.port) == null ? void 0 : _d.number) || ((_f = (_e = p.backend.service) == null ? void 0 : _e.port) == null ? void 0 : _f.name),
|
|
8808
|
+
host: rule2.host
|
|
8809
|
+
};
|
|
8810
|
+
});
|
|
8811
|
+
return [...res, ...paths || []];
|
|
8812
|
+
}, [])) || [];
|
|
8813
|
+
}
|
|
8814
|
+
getFullPath(rule2, path2 = "") {
|
|
8815
|
+
if (!rule2.host) {
|
|
8816
|
+
return path2 || "";
|
|
8817
|
+
}
|
|
8818
|
+
const hostValue = rule2.host || "";
|
|
8819
|
+
const protocal = this._rawYaml.spec.tls ? "https://" : "http://";
|
|
8820
|
+
return `${protocal}${hostValue}${path2}`;
|
|
8821
|
+
}
|
|
8822
|
+
}
|
|
8823
|
+
class NetworkPolicyModel extends ResourceModel {
|
|
8824
|
+
constructor(_rawYaml, _globalStore) {
|
|
8825
|
+
super(_rawYaml, _globalStore);
|
|
8607
8826
|
this._rawYaml = _rawYaml;
|
|
8608
8827
|
this._globalStore = _globalStore;
|
|
8609
8828
|
}
|
|
@@ -9748,352 +9967,148 @@ var __publicField = (obj, key, value) => {
|
|
|
9748
9967
|
};
|
|
9749
9968
|
n2.toNow = function(r3) {
|
|
9750
9969
|
return this.to(d(this), r3);
|
|
9751
|
-
}, n2.fromNow = function(r3) {
|
|
9752
|
-
return this.from(d(this), r3);
|
|
9753
|
-
};
|
|
9754
|
-
};
|
|
9755
|
-
});
|
|
9756
|
-
})(relativeTime$1);
|
|
9757
|
-
var relativeTimeExports = relativeTime$1.exports;
|
|
9758
|
-
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
9759
|
-
const index_fmx695 = "";
|
|
9760
|
-
dayjs.extend(relativeTime, {
|
|
9761
|
-
thresholds: [{
|
|
9762
|
-
l: "s",
|
|
9763
|
-
r: 1
|
|
9764
|
-
}, {
|
|
9765
|
-
l: "m",
|
|
9766
|
-
r: 1
|
|
9767
|
-
}, {
|
|
9768
|
-
l: "mm",
|
|
9769
|
-
r: 59,
|
|
9770
|
-
d: "minute"
|
|
9771
|
-
}, {
|
|
9772
|
-
l: "h",
|
|
9773
|
-
r: 1
|
|
9774
|
-
}, {
|
|
9775
|
-
l: "hh",
|
|
9776
|
-
r: 23,
|
|
9777
|
-
d: "hour"
|
|
9778
|
-
}, {
|
|
9779
|
-
l: "d",
|
|
9780
|
-
r: 1
|
|
9781
|
-
}, {
|
|
9782
|
-
l: "dd",
|
|
9783
|
-
r: Infinity,
|
|
9784
|
-
d: "day"
|
|
9785
|
-
}]
|
|
9786
|
-
});
|
|
9787
|
-
const TimeStyle = "t19ustft";
|
|
9788
|
-
const Time = (props) => {
|
|
9789
|
-
const {
|
|
9790
|
-
className,
|
|
9791
|
-
date,
|
|
9792
|
-
dateTemplate = "YYYY-MM-DD",
|
|
9793
|
-
timeTemplate = "HH:mm"
|
|
9794
|
-
} = props;
|
|
9795
|
-
const {
|
|
9796
|
-
i18n: i18n2
|
|
9797
|
-
} = useTranslation();
|
|
9798
|
-
const [text, setText] = React.useState(dayjs(date).fromNow());
|
|
9799
|
-
React.useEffect(() => {
|
|
9800
|
-
const onChange = () => {
|
|
9801
|
-
setText(dayjs(date).fromNow());
|
|
9802
|
-
};
|
|
9803
|
-
i18n2.on("languageChanged", onChange);
|
|
9804
|
-
return () => i18n2.off("languageChanged", onChange);
|
|
9805
|
-
}, [date, i18n2]);
|
|
9806
|
-
if (!date)
|
|
9807
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
9808
|
-
children: "-"
|
|
9809
|
-
});
|
|
9810
|
-
const time = dayjs(date);
|
|
9811
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
9812
|
-
title: `${time.format(dateTemplate)} ${time.format(timeTemplate)}`,
|
|
9813
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
9814
|
-
className: cx_default(className, TimeStyle),
|
|
9815
|
-
children: text
|
|
9816
|
-
})
|
|
9817
|
-
});
|
|
9818
|
-
};
|
|
9819
|
-
const ConditionsTable = ({ conditions = [] }) => {
|
|
9820
|
-
const kit = eagle.useUIKit();
|
|
9821
|
-
const { t: t2 } = useTranslation();
|
|
9822
|
-
const conditionsWithId = addId(conditions, "type");
|
|
9823
|
-
const columns = [
|
|
9824
|
-
{
|
|
9825
|
-
key: "type",
|
|
9826
|
-
display: true,
|
|
9827
|
-
dataIndex: "type",
|
|
9828
|
-
title: t2("dovetail.type"),
|
|
9829
|
-
sortable: true
|
|
9830
|
-
},
|
|
9831
|
-
{
|
|
9832
|
-
key: "status",
|
|
9833
|
-
display: true,
|
|
9834
|
-
dataIndex: "status",
|
|
9835
|
-
title: t2("dovetail.state"),
|
|
9836
|
-
render(value2) {
|
|
9837
|
-
const colorMap = {
|
|
9838
|
-
"True": "green",
|
|
9839
|
-
"False": "red",
|
|
9840
|
-
"Unknown": "warning"
|
|
9841
|
-
};
|
|
9842
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.statusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
9843
|
-
},
|
|
9844
|
-
sortable: true
|
|
9845
|
-
},
|
|
9846
|
-
{
|
|
9847
|
-
key: "lastUpdateTime",
|
|
9848
|
-
display: true,
|
|
9849
|
-
dataIndex: "lastUpdateTime",
|
|
9850
|
-
title: t2("dovetail.updated_time"),
|
|
9851
|
-
sortable: true,
|
|
9852
|
-
render: (value2, record) => {
|
|
9853
|
-
const time = value2 || record.lastTransitionTime;
|
|
9854
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
9855
|
-
}
|
|
9856
|
-
},
|
|
9857
|
-
{
|
|
9858
|
-
key: "reason",
|
|
9859
|
-
display: true,
|
|
9860
|
-
dataIndex: "reason",
|
|
9861
|
-
title: t2("dovetail.reason"),
|
|
9862
|
-
sortable: true
|
|
9863
|
-
},
|
|
9864
|
-
{
|
|
9865
|
-
key: "message",
|
|
9866
|
-
display: true,
|
|
9867
|
-
dataIndex: "message",
|
|
9868
|
-
title: t2("dovetail.message"),
|
|
9869
|
-
sortable: true
|
|
9870
|
-
}
|
|
9871
|
-
];
|
|
9872
|
-
if (conditionsWithId.length === 0) {
|
|
9873
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }), style: { padding: "15px 0" } });
|
|
9874
|
-
}
|
|
9875
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9876
|
-
kit.table,
|
|
9877
|
-
{
|
|
9878
|
-
loading: false,
|
|
9879
|
-
dataSource: conditionsWithId,
|
|
9880
|
-
columns: addDefaultRenderToColumns(columns),
|
|
9881
|
-
rowKey: "type",
|
|
9882
|
-
empty: t2("dovetail.empty")
|
|
9883
|
-
}
|
|
9884
|
-
);
|
|
9885
|
-
};
|
|
9886
|
-
function memoize$1(fn) {
|
|
9887
|
-
var cache = /* @__PURE__ */ Object.create(null);
|
|
9888
|
-
return function(arg) {
|
|
9889
|
-
if (cache[arg] === void 0)
|
|
9890
|
-
cache[arg] = fn(arg);
|
|
9891
|
-
return cache[arg];
|
|
9892
|
-
};
|
|
9893
|
-
}
|
|
9894
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
9895
|
-
var isPropValid = /* @__PURE__ */ memoize$1(
|
|
9896
|
-
function(prop) {
|
|
9897
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
9898
|
-
}
|
|
9899
|
-
/* Z+1 */
|
|
9900
|
-
);
|
|
9901
|
-
var isCapital = (ch) => ch.toUpperCase() === ch;
|
|
9902
|
-
var filterKey = (keys) => (key2) => keys.indexOf(key2) === -1;
|
|
9903
|
-
var omit = (obj, keys) => {
|
|
9904
|
-
const res = {};
|
|
9905
|
-
Object.keys(obj).filter(filterKey(keys)).forEach((key2) => {
|
|
9906
|
-
res[key2] = obj[key2];
|
|
9907
|
-
});
|
|
9908
|
-
return res;
|
|
9909
|
-
};
|
|
9910
|
-
function filterProps(asIs, props, omitKeys) {
|
|
9911
|
-
const filteredProps = omit(props, omitKeys);
|
|
9912
|
-
if (!asIs) {
|
|
9913
|
-
const interopValidAttr = typeof isPropValid === "function" ? { default: isPropValid } : isPropValid;
|
|
9914
|
-
Object.keys(filteredProps).forEach((key2) => {
|
|
9915
|
-
if (!interopValidAttr.default(key2)) {
|
|
9916
|
-
delete filteredProps[key2];
|
|
9917
|
-
}
|
|
9918
|
-
});
|
|
9919
|
-
}
|
|
9920
|
-
return filteredProps;
|
|
9921
|
-
}
|
|
9922
|
-
var warnIfInvalid = (value2, componentName) => {
|
|
9923
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9924
|
-
if (typeof value2 === "string" || typeof value2 === "number" && isFinite(value2)) {
|
|
9925
|
-
return;
|
|
9926
|
-
}
|
|
9927
|
-
const stringified = typeof value2 === "object" ? JSON.stringify(value2) : String(value2);
|
|
9928
|
-
console.warn(
|
|
9929
|
-
`An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`
|
|
9930
|
-
);
|
|
9931
|
-
}
|
|
9932
|
-
};
|
|
9933
|
-
var idx = 0;
|
|
9934
|
-
function styled(tag) {
|
|
9935
|
-
var _a;
|
|
9936
|
-
let mockedClass = "";
|
|
9937
|
-
if (process.env.NODE_ENV === "test") {
|
|
9938
|
-
mockedClass += `mocked-styled-${idx++}`;
|
|
9939
|
-
if ((_a = tag == null ? void 0 : tag.__linaria) == null ? void 0 : _a.className) {
|
|
9940
|
-
mockedClass += ` ${tag.__linaria.className}`;
|
|
9941
|
-
}
|
|
9942
|
-
}
|
|
9943
|
-
return (options) => {
|
|
9944
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
|
|
9945
|
-
if (Array.isArray(options)) {
|
|
9946
|
-
throw new Error(
|
|
9947
|
-
'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
|
|
9948
|
-
);
|
|
9949
|
-
}
|
|
9950
|
-
}
|
|
9951
|
-
const render = (props, ref) => {
|
|
9952
|
-
const { as: component = tag, class: className = mockedClass } = props;
|
|
9953
|
-
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
9954
|
-
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
9955
|
-
"as",
|
|
9956
|
-
"class"
|
|
9957
|
-
]);
|
|
9958
|
-
filteredProps.ref = ref;
|
|
9959
|
-
filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
|
|
9960
|
-
const { vars } = options;
|
|
9961
|
-
if (vars) {
|
|
9962
|
-
const style = {};
|
|
9963
|
-
for (const name2 in vars) {
|
|
9964
|
-
const variable = vars[name2];
|
|
9965
|
-
const result = variable[0];
|
|
9966
|
-
const unit = variable[1] || "";
|
|
9967
|
-
const value2 = typeof result === "function" ? result(props) : result;
|
|
9968
|
-
warnIfInvalid(value2, options.name);
|
|
9969
|
-
style[`--${name2}`] = `${value2}${unit}`;
|
|
9970
|
-
}
|
|
9971
|
-
const ownStyle = filteredProps.style || {};
|
|
9972
|
-
const keys = Object.keys(ownStyle);
|
|
9973
|
-
if (keys.length > 0) {
|
|
9974
|
-
keys.forEach((key2) => {
|
|
9975
|
-
style[key2] = ownStyle[key2];
|
|
9976
|
-
});
|
|
9977
|
-
}
|
|
9978
|
-
filteredProps.style = style;
|
|
9979
|
-
}
|
|
9980
|
-
if (tag.__linaria && tag !== component) {
|
|
9981
|
-
filteredProps.as = component;
|
|
9982
|
-
return React.createElement(tag, filteredProps);
|
|
9983
|
-
}
|
|
9984
|
-
return React.createElement(component, filteredProps);
|
|
9985
|
-
};
|
|
9986
|
-
const Result = React.forwardRef ? React.forwardRef(render) : (props) => {
|
|
9987
|
-
const rest = omit(props, ["innerRef"]);
|
|
9988
|
-
return render(rest, props.innerRef);
|
|
9989
|
-
};
|
|
9990
|
-
Result.displayName = options.name;
|
|
9991
|
-
Result.__linaria = {
|
|
9992
|
-
className: options.class || mockedClass,
|
|
9993
|
-
extends: tag
|
|
9994
|
-
};
|
|
9995
|
-
return Result;
|
|
9996
|
-
};
|
|
9997
|
-
}
|
|
9998
|
-
var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
9999
|
-
get(o, prop) {
|
|
10000
|
-
return o(prop);
|
|
10001
|
-
}
|
|
10002
|
-
}) : styled;
|
|
10003
|
-
const TableWidgets_ny30pi = "";
|
|
10004
|
-
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
10005
|
-
name: "AuxiliaryLine",
|
|
10006
|
-
class: "ax1qopv",
|
|
10007
|
-
propsAsIs: false
|
|
9970
|
+
}, n2.fromNow = function(r3) {
|
|
9971
|
+
return this.from(d(this), r3);
|
|
9972
|
+
};
|
|
9973
|
+
};
|
|
9974
|
+
});
|
|
9975
|
+
})(relativeTime$1);
|
|
9976
|
+
var relativeTimeExports = relativeTime$1.exports;
|
|
9977
|
+
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
9978
|
+
const index_fmx695 = "";
|
|
9979
|
+
dayjs.extend(relativeTime, {
|
|
9980
|
+
thresholds: [{
|
|
9981
|
+
l: "s",
|
|
9982
|
+
r: 1
|
|
9983
|
+
}, {
|
|
9984
|
+
l: "m",
|
|
9985
|
+
r: 1
|
|
9986
|
+
}, {
|
|
9987
|
+
l: "mm",
|
|
9988
|
+
r: 59,
|
|
9989
|
+
d: "minute"
|
|
9990
|
+
}, {
|
|
9991
|
+
l: "h",
|
|
9992
|
+
r: 1
|
|
9993
|
+
}, {
|
|
9994
|
+
l: "hh",
|
|
9995
|
+
r: 23,
|
|
9996
|
+
d: "hour"
|
|
9997
|
+
}, {
|
|
9998
|
+
l: "d",
|
|
9999
|
+
r: 1
|
|
10000
|
+
}, {
|
|
10001
|
+
l: "dd",
|
|
10002
|
+
r: Infinity,
|
|
10003
|
+
d: "day"
|
|
10004
|
+
}]
|
|
10008
10005
|
});
|
|
10009
|
-
const
|
|
10010
|
-
const
|
|
10011
|
-
function Table(props) {
|
|
10012
|
-
const kit = eagle.useUIKit();
|
|
10013
|
-
const {
|
|
10014
|
-
t: t2
|
|
10015
|
-
} = useTranslation();
|
|
10006
|
+
const TimeStyle = "t19ustft";
|
|
10007
|
+
const Time = (props) => {
|
|
10016
10008
|
const {
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
columns,
|
|
10022
|
-
scroll,
|
|
10023
|
-
currentPage,
|
|
10024
|
-
currentSize,
|
|
10025
|
-
RowMenu,
|
|
10026
|
-
refetch,
|
|
10027
|
-
onPageChange,
|
|
10028
|
-
onSizeChange,
|
|
10029
|
-
empty: empty2
|
|
10009
|
+
className,
|
|
10010
|
+
date,
|
|
10011
|
+
dateTemplate = "YYYY-MM-DD",
|
|
10012
|
+
timeTemplate = "HH:mm"
|
|
10030
10013
|
} = props;
|
|
10031
|
-
const
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
onChange
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
render: (_, record) => {
|
|
10046
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(RowMenu, {
|
|
10047
|
-
record
|
|
10048
|
-
});
|
|
10049
|
-
}
|
|
10050
|
-
};
|
|
10051
|
-
return [...columns, actionColumn];
|
|
10052
|
-
}
|
|
10053
|
-
return columns;
|
|
10054
|
-
}, [columns, RowMenu]);
|
|
10055
|
-
if (loading) {
|
|
10056
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
|
|
10057
|
-
} else if (error) {
|
|
10058
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
10059
|
-
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
10060
|
-
refetch,
|
|
10061
|
-
style: {
|
|
10062
|
-
padding: "15px 0"
|
|
10063
|
-
}
|
|
10014
|
+
const {
|
|
10015
|
+
i18n: i18n2
|
|
10016
|
+
} = useTranslation();
|
|
10017
|
+
const [text, setText] = React.useState(dayjs(date).fromNow());
|
|
10018
|
+
React.useEffect(() => {
|
|
10019
|
+
const onChange = () => {
|
|
10020
|
+
setText(dayjs(date).fromNow());
|
|
10021
|
+
};
|
|
10022
|
+
i18n2.on("languageChanged", onChange);
|
|
10023
|
+
return () => i18n2.off("languageChanged", onChange);
|
|
10024
|
+
}, [date, i18n2]);
|
|
10025
|
+
if (!date)
|
|
10026
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
10027
|
+
children: "-"
|
|
10064
10028
|
});
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10029
|
+
const time = dayjs(date);
|
|
10030
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
10031
|
+
title: `${time.format(dateTemplate)} ${time.format(timeTemplate)}`,
|
|
10032
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10033
|
+
className: cx_default(className, TimeStyle),
|
|
10034
|
+
children: text
|
|
10035
|
+
})
|
|
10036
|
+
});
|
|
10037
|
+
};
|
|
10038
|
+
const ConditionsTable = ({ conditions = [] }) => {
|
|
10039
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
10040
|
+
const { t: t2 } = useTranslation();
|
|
10041
|
+
const component = React.useContext(ComponentContext);
|
|
10042
|
+
const Table$1 = component.Table || Table;
|
|
10043
|
+
const conditionsWithId = addId(conditions, "type");
|
|
10044
|
+
const columns = [
|
|
10045
|
+
{
|
|
10046
|
+
key: "type",
|
|
10047
|
+
display: true,
|
|
10048
|
+
dataIndex: "type",
|
|
10049
|
+
title: t2("dovetail.type"),
|
|
10050
|
+
sortable: true
|
|
10051
|
+
},
|
|
10052
|
+
{
|
|
10053
|
+
key: "status",
|
|
10054
|
+
display: true,
|
|
10055
|
+
dataIndex: "status",
|
|
10056
|
+
title: t2("dovetail.state"),
|
|
10057
|
+
render(value2) {
|
|
10058
|
+
const colorMap = {
|
|
10059
|
+
"True": "green",
|
|
10060
|
+
"False": "red",
|
|
10061
|
+
"Unknown": "warning"
|
|
10062
|
+
};
|
|
10063
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
10064
|
+
},
|
|
10065
|
+
sortable: true
|
|
10066
|
+
},
|
|
10067
|
+
{
|
|
10068
|
+
key: "lastUpdateTime",
|
|
10069
|
+
display: true,
|
|
10070
|
+
dataIndex: "lastUpdateTime",
|
|
10071
|
+
title: t2("dovetail.updated_time"),
|
|
10072
|
+
sortable: true,
|
|
10073
|
+
render: (value2, record) => {
|
|
10074
|
+
const time = value2 || record.lastTransitionTime;
|
|
10075
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
10070
10076
|
}
|
|
10071
|
-
}
|
|
10077
|
+
},
|
|
10078
|
+
{
|
|
10079
|
+
key: "reason",
|
|
10080
|
+
display: true,
|
|
10081
|
+
dataIndex: "reason",
|
|
10082
|
+
title: t2("dovetail.reason"),
|
|
10083
|
+
sortable: true
|
|
10084
|
+
},
|
|
10085
|
+
{
|
|
10086
|
+
key: "message",
|
|
10087
|
+
display: true,
|
|
10088
|
+
dataIndex: "message",
|
|
10089
|
+
title: t2("dovetail.message"),
|
|
10090
|
+
sortable: true
|
|
10091
|
+
}
|
|
10092
|
+
];
|
|
10093
|
+
if (conditionsWithId.length === 0) {
|
|
10094
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }), style: { padding: "15px 0" } });
|
|
10072
10095
|
}
|
|
10073
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
}
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
current: currentPage,
|
|
10090
|
-
size: currentSize,
|
|
10091
|
-
count: dataSource.length,
|
|
10092
|
-
onChange: onPageChange,
|
|
10093
|
-
onSizeChange
|
|
10094
|
-
})]
|
|
10095
|
-
});
|
|
10096
|
-
}
|
|
10096
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10097
|
+
Table$1,
|
|
10098
|
+
{
|
|
10099
|
+
tableKey: "condition",
|
|
10100
|
+
loading: false,
|
|
10101
|
+
data: conditionsWithId,
|
|
10102
|
+
columns: addDefaultRenderToColumns(columns),
|
|
10103
|
+
rowKey: "type",
|
|
10104
|
+
empty: t2("dovetail.empty"),
|
|
10105
|
+
currentSize: 10,
|
|
10106
|
+
currentPage,
|
|
10107
|
+
onPageChange: setCurrentPage,
|
|
10108
|
+
showMenuColumn: false
|
|
10109
|
+
}
|
|
10110
|
+
);
|
|
10111
|
+
};
|
|
10097
10112
|
function useEdit() {
|
|
10098
10113
|
const { resource } = core.useParsed();
|
|
10099
10114
|
const go = core.useGo();
|
|
@@ -10287,6 +10302,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10287
10302
|
const kit = eagle.useUIKit();
|
|
10288
10303
|
const [selectedKeys] = React.useState([]);
|
|
10289
10304
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
10305
|
+
const component = React.useContext(ComponentContext);
|
|
10306
|
+
const Table$1 = component.Table || Table;
|
|
10290
10307
|
const {
|
|
10291
10308
|
data: data2
|
|
10292
10309
|
} = core.useList({
|
|
@@ -10308,7 +10325,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10308
10325
|
children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
10309
10326
|
selectedKeys,
|
|
10310
10327
|
hideCreate: true
|
|
10311
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
|
|
10328
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
10312
10329
|
tableKey: "cronjobs",
|
|
10313
10330
|
loading: !dataSource,
|
|
10314
10331
|
data: dataSource || [],
|
|
@@ -10318,7 +10335,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10318
10335
|
currentPage,
|
|
10319
10336
|
onPageChange: (p) => setCurrentPage(p),
|
|
10320
10337
|
currentSize: 10,
|
|
10321
|
-
refetch: () => null
|
|
10338
|
+
refetch: () => null,
|
|
10339
|
+
showMenuColumn: false
|
|
10322
10340
|
})]
|
|
10323
10341
|
});
|
|
10324
10342
|
};
|
|
@@ -10407,6 +10425,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10407
10425
|
],
|
|
10408
10426
|
[i18n2]
|
|
10409
10427
|
);
|
|
10428
|
+
const component = React.useContext(ComponentContext);
|
|
10429
|
+
const Table$1 = component.Table || Table;
|
|
10410
10430
|
const dataSource = React.useMemo(() => {
|
|
10411
10431
|
return data2 == null ? void 0 : data2.data.filter((d) => {
|
|
10412
10432
|
const objectId = `${d.regarding.namespace}/${d.regarding.name}`;
|
|
@@ -10423,7 +10443,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10423
10443
|
);
|
|
10424
10444
|
}
|
|
10425
10445
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10426
|
-
Table,
|
|
10446
|
+
Table$1,
|
|
10427
10447
|
{
|
|
10428
10448
|
tableKey: "events",
|
|
10429
10449
|
loading: isLoading,
|
|
@@ -10434,7 +10454,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10434
10454
|
currentPage,
|
|
10435
10455
|
onPageChange: (p) => setCurrentPage(p),
|
|
10436
10456
|
currentSize: 10,
|
|
10437
|
-
refetch: () => null
|
|
10457
|
+
refetch: () => null,
|
|
10458
|
+
showMenuColumn: false
|
|
10438
10459
|
}
|
|
10439
10460
|
);
|
|
10440
10461
|
};
|
|
@@ -10471,11 +10492,13 @@ var __publicField = (obj, key, value) => {
|
|
|
10471
10492
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { onClick, children: resourceId });
|
|
10472
10493
|
};
|
|
10473
10494
|
const IngressRulesTable = ({ ingress }) => {
|
|
10474
|
-
const kit = eagle.useUIKit();
|
|
10475
10495
|
const { t: t2 } = useTranslation();
|
|
10476
10496
|
const rows = React.useMemo(() => {
|
|
10477
10497
|
return addId(ingress.flattenedRules || [], "fullPath");
|
|
10478
10498
|
}, [ingress.flattenedRules]);
|
|
10499
|
+
const component = React.useContext(ComponentContext);
|
|
10500
|
+
const Table$1 = component.Table || Table;
|
|
10501
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
10479
10502
|
const columns = [
|
|
10480
10503
|
{
|
|
10481
10504
|
key: "pathType",
|
|
@@ -10539,13 +10562,18 @@ var __publicField = (obj, key, value) => {
|
|
|
10539
10562
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" } });
|
|
10540
10563
|
}
|
|
10541
10564
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10542
|
-
|
|
10565
|
+
Table$1,
|
|
10543
10566
|
{
|
|
10567
|
+
tableKey: "ingressRules",
|
|
10544
10568
|
loading: false,
|
|
10545
|
-
|
|
10569
|
+
data: rows,
|
|
10546
10570
|
columns: addDefaultRenderToColumns(columns),
|
|
10547
|
-
rowKey: "
|
|
10548
|
-
empty: t2("dovetail.empty")
|
|
10571
|
+
rowKey: "pathType",
|
|
10572
|
+
empty: t2("dovetail.empty"),
|
|
10573
|
+
currentSize: 10,
|
|
10574
|
+
currentPage,
|
|
10575
|
+
onPageChange: setCurrentPage,
|
|
10576
|
+
showMenuColumn: false
|
|
10549
10577
|
}
|
|
10550
10578
|
);
|
|
10551
10579
|
};
|
|
@@ -10609,7 +10637,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10609
10637
|
children: Object.keys(data2).length
|
|
10610
10638
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
10611
10639
|
type: "link",
|
|
10612
|
-
className: ExpandButtonStyle,
|
|
10640
|
+
className: cx_default(ExpandButtonStyle, eagle.Typo.Label.l4_regular_title),
|
|
10613
10641
|
onClick: () => {
|
|
10614
10642
|
setIsExpand(!isExpand);
|
|
10615
10643
|
},
|
|
@@ -10724,8 +10752,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10724
10752
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
10725
10753
|
}) });
|
|
10726
10754
|
}
|
|
10727
|
-
const
|
|
10728
|
-
const ShowContent_tusz9j = "";
|
|
10755
|
+
const ShowContent_eym19u = "";
|
|
10729
10756
|
const ShowContentWrapperStyle = "s9agep2";
|
|
10730
10757
|
const BackButton = "bo89gfi";
|
|
10731
10758
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -10808,7 +10835,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10808
10835
|
children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
10809
10836
|
className: FieldWrapperStyle,
|
|
10810
10837
|
children: [field.title && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10811
|
-
className: eagle.Typo.Label.
|
|
10838
|
+
className: eagle.Typo.Label.l4_regular_title,
|
|
10812
10839
|
style: {
|
|
10813
10840
|
width: field.labelWidth || "165px",
|
|
10814
10841
|
marginRight: 8,
|
|
@@ -10821,6 +10848,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10821
10848
|
minWidth: 0
|
|
10822
10849
|
},
|
|
10823
10850
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10851
|
+
className: eagle.Typo.Label.l4_regular_title,
|
|
10824
10852
|
value: content,
|
|
10825
10853
|
useOverflow: false
|
|
10826
10854
|
})
|
|
@@ -10874,6 +10902,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10874
10902
|
marginRight: 8
|
|
10875
10903
|
},
|
|
10876
10904
|
onClick: openForm,
|
|
10905
|
+
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.EditPen16GradientBlueIcon, {}),
|
|
10877
10906
|
children: t2("dovetail.edit_yaml")
|
|
10878
10907
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
|
|
10879
10908
|
record,
|
|
@@ -10943,6 +10972,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10943
10972
|
const kit = eagle.useUIKit();
|
|
10944
10973
|
const [selectedKeys, setSelectedKeys] = React.useState([]);
|
|
10945
10974
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
10975
|
+
const component = React.useContext(ComponentContext);
|
|
10976
|
+
const Table$1 = component.Table || Table;
|
|
10946
10977
|
const {
|
|
10947
10978
|
data: data2
|
|
10948
10979
|
} = core.useList({
|
|
@@ -10983,7 +11014,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10983
11014
|
children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
10984
11015
|
selectedKeys,
|
|
10985
11016
|
hideCreate: true
|
|
10986
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table, {
|
|
11017
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
10987
11018
|
tableKey: "pods",
|
|
10988
11019
|
loading: !dataSource,
|
|
10989
11020
|
data: dataSource || [],
|
|
@@ -10994,7 +11025,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10994
11025
|
currentPage,
|
|
10995
11026
|
onPageChange: (p) => setCurrentPage(p),
|
|
10996
11027
|
currentSize: 10,
|
|
10997
|
-
refetch: () => null
|
|
11028
|
+
refetch: () => null,
|
|
11029
|
+
showMenuColumn: false
|
|
10998
11030
|
})]
|
|
10999
11031
|
});
|
|
11000
11032
|
};
|
|
@@ -11168,7 +11200,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11168
11200
|
children: i18n2.t("dovetail.edit")
|
|
11169
11201
|
});
|
|
11170
11202
|
}
|
|
11171
|
-
const
|
|
11203
|
+
const index_psn0hb = "";
|
|
11172
11204
|
const WorkloadReplicasWrapperStyle = "w8ychfk";
|
|
11173
11205
|
const DonutChartWrapperStyle = "d1o004do";
|
|
11174
11206
|
const DonutChartStyle = "dfo80qq";
|
|
@@ -11268,10 +11300,10 @@ var __publicField = (obj, key, value) => {
|
|
|
11268
11300
|
color: "rgba(33, 190, 106, 1)"
|
|
11269
11301
|
}];
|
|
11270
11302
|
const remain = replicas - readyReplicas;
|
|
11271
|
-
if (remain > 0) {
|
|
11303
|
+
if (remain > 0 || replicas === 0) {
|
|
11272
11304
|
data2.push({
|
|
11273
11305
|
name: "remain",
|
|
11274
|
-
value: remain,
|
|
11306
|
+
value: replicas === 0 ? 1 : remain,
|
|
11275
11307
|
color: "rgba(162, 240, 213, 1)"
|
|
11276
11308
|
});
|
|
11277
11309
|
}
|
|
@@ -11303,20 +11335,20 @@ var __publicField = (obj, key, value) => {
|
|
|
11303
11335
|
})
|
|
11304
11336
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11305
11337
|
className: ContentWrapperStyle,
|
|
11306
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("
|
|
11307
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
11338
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11339
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11308
11340
|
className: LabelStyle,
|
|
11309
11341
|
children: t2("dovetail.pod_ready_num")
|
|
11310
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
11342
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11311
11343
|
children: readyReplicas
|
|
11312
11344
|
})]
|
|
11313
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("
|
|
11314
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
11345
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11346
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11315
11347
|
className: LabelStyle,
|
|
11316
11348
|
children: t2("dovetail.pod_replicas_num")
|
|
11317
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
11349
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11318
11350
|
children: replicas
|
|
11319
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
11351
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11320
11352
|
children: editable && canScale && /* @__PURE__ */ jsxRuntimeExports.jsx(EditField, {
|
|
11321
11353
|
modalProps: {
|
|
11322
11354
|
formRef,
|
|
@@ -17551,8 +17583,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17551
17583
|
__proto__: null,
|
|
17552
17584
|
default: MonacoYamlEditor$1
|
|
17553
17585
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
17554
|
-
const
|
|
17555
|
-
const EditorStyle$1 = "
|
|
17586
|
+
const NetworkPolicyRulesViewer_13asgaq = "";
|
|
17587
|
+
const EditorStyle$1 = "e1cjl2b8";
|
|
17556
17588
|
const NetworkPolicyRulesViewer = ({
|
|
17557
17589
|
ingressOrEgress,
|
|
17558
17590
|
kind
|
|
@@ -17582,8 +17614,10 @@ var __publicField = (obj, key, value) => {
|
|
|
17582
17614
|
containerStatuses,
|
|
17583
17615
|
initContainerStatuses
|
|
17584
17616
|
}) => {
|
|
17585
|
-
const kit = eagle.useUIKit();
|
|
17586
17617
|
const { i18n: i18n2 } = useTranslation();
|
|
17618
|
+
const component = React.useContext(ComponentContext);
|
|
17619
|
+
const Table$1 = component.Table || Table;
|
|
17620
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
17587
17621
|
const columns = React.useMemo(
|
|
17588
17622
|
() => [
|
|
17589
17623
|
{
|
|
@@ -17649,13 +17683,18 @@ var __publicField = (obj, key, value) => {
|
|
|
17649
17683
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" } });
|
|
17650
17684
|
}
|
|
17651
17685
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17652
|
-
|
|
17686
|
+
Table$1,
|
|
17653
17687
|
{
|
|
17688
|
+
tableKey: "podContainers",
|
|
17654
17689
|
loading: false,
|
|
17655
|
-
dataSource,
|
|
17690
|
+
data: dataSource,
|
|
17656
17691
|
columns: addDefaultRenderToColumns(columns),
|
|
17657
17692
|
rowKey: "containerID",
|
|
17658
|
-
error: false
|
|
17693
|
+
error: false,
|
|
17694
|
+
currentSize: 10,
|
|
17695
|
+
currentPage,
|
|
17696
|
+
onPageChange: setCurrentPage,
|
|
17697
|
+
showMenuColumn: false
|
|
17659
17698
|
}
|
|
17660
17699
|
);
|
|
17661
17700
|
};
|
|
@@ -17923,6 +17962,44 @@ var __publicField = (obj, key, value) => {
|
|
|
17923
17962
|
children
|
|
17924
17963
|
] });
|
|
17925
17964
|
}
|
|
17965
|
+
function ReplicasDropdown(props) {
|
|
17966
|
+
const { record, size, children } = props;
|
|
17967
|
+
const kit = eagle.useUIKit();
|
|
17968
|
+
const { t: t2 } = useTranslation();
|
|
17969
|
+
const formRef = React.useRef(null);
|
|
17970
|
+
const { action } = core.useResource();
|
|
17971
|
+
const isInShowPage = action === "show";
|
|
17972
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(WorkloadDropdown, { record, size, children: [
|
|
17973
|
+
isInShowPage ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17974
|
+
kit.menu.Item,
|
|
17975
|
+
{
|
|
17976
|
+
onClick: () => {
|
|
17977
|
+
const modalProps = {
|
|
17978
|
+
formRef,
|
|
17979
|
+
title: t2("dovetail.edit_replicas"),
|
|
17980
|
+
renderContent() {
|
|
17981
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17982
|
+
WorkloadReplicasForm,
|
|
17983
|
+
{
|
|
17984
|
+
ref: formRef,
|
|
17985
|
+
defaultValue: record.replicas || 0,
|
|
17986
|
+
record,
|
|
17987
|
+
label: t2("dovetail.pod_replicas_num")
|
|
17988
|
+
}
|
|
17989
|
+
);
|
|
17990
|
+
}
|
|
17991
|
+
};
|
|
17992
|
+
eagle.pushModal({
|
|
17993
|
+
component: EditFieldModal,
|
|
17994
|
+
props: modalProps
|
|
17995
|
+
});
|
|
17996
|
+
},
|
|
17997
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: t2("dovetail.edit_replicas") })
|
|
17998
|
+
}
|
|
17999
|
+
),
|
|
18000
|
+
children
|
|
18001
|
+
] });
|
|
18002
|
+
}
|
|
17926
18003
|
globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
17927
18004
|
function adopt(value2) {
|
|
17928
18005
|
return value2 instanceof P ? value2 : new P(function(resolve) {
|
|
@@ -18175,7 +18252,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18175
18252
|
})]
|
|
18176
18253
|
});
|
|
18177
18254
|
};
|
|
18178
|
-
const
|
|
18255
|
+
const index_hp158y = "";
|
|
18179
18256
|
const ListPageStyle = "laykzsq";
|
|
18180
18257
|
const ListContentStyle = "l1ng0psc";
|
|
18181
18258
|
const TableStyle = "tj6zpn4";
|
|
@@ -18211,15 +18288,23 @@ var __publicField = (obj, key, value) => {
|
|
|
18211
18288
|
className: ListContentStyle,
|
|
18212
18289
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
18213
18290
|
className: NamespaceFilterStyle
|
|
18214
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18215
|
-
|
|
18216
|
-
|
|
18217
|
-
|
|
18218
|
-
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18291
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18292
|
+
className: TableStyle,
|
|
18293
|
+
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18294
|
+
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18295
|
+
kind: ` ${config.kind}`
|
|
18296
|
+
}),
|
|
18297
|
+
hiddenRetry: true
|
|
18298
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
18299
|
+
...tableProps,
|
|
18300
|
+
empty: tableProps.empty || t2("dovetail.no_resource", {
|
|
18301
|
+
kind: ` ${config.kind}`
|
|
18302
|
+
}),
|
|
18303
|
+
className: cx_default(tableProps.className),
|
|
18304
|
+
scroll: {
|
|
18305
|
+
y: "calc(100% - 48px)"
|
|
18306
|
+
}
|
|
18307
|
+
})
|
|
18223
18308
|
})]
|
|
18224
18309
|
})]
|
|
18225
18310
|
});
|
|
@@ -23447,6 +23532,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23447
23532
|
}),
|
|
23448
23533
|
sortable: true,
|
|
23449
23534
|
width: 120,
|
|
23535
|
+
align: "right",
|
|
23450
23536
|
sorter: CommonSorter(dataIndex)
|
|
23451
23537
|
};
|
|
23452
23538
|
};
|
|
@@ -23664,6 +23750,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23664
23750
|
}),
|
|
23665
23751
|
width: 120,
|
|
23666
23752
|
sortable: true,
|
|
23753
|
+
align: "right",
|
|
23667
23754
|
sorter: CommonSorter(["readyDisplay"])
|
|
23668
23755
|
};
|
|
23669
23756
|
};
|
|
@@ -24133,6 +24220,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24133
24220
|
exports2.RefineFormPage = RefineFormPage;
|
|
24134
24221
|
exports2.ReplicaField = ReplicaField;
|
|
24135
24222
|
exports2.ReplicasColumnRenderer = ReplicasColumnRenderer;
|
|
24223
|
+
exports2.ReplicasDropdown = ReplicasDropdown;
|
|
24136
24224
|
exports2.ResourceCRUD = ResourceCRUD;
|
|
24137
24225
|
exports2.ResourceForm = ResourceForm;
|
|
24138
24226
|
exports2.ResourceLink = ResourceLink;
|