@dovetail-v2/refine 0.0.37 → 0.0.38
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-1aeca078.js → MonacoYamlDiffEditor-5aa83c05.js} +1 -1
- package/dist/{index-1003469d.js → index-93ddd906.js} +465 -398
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +462 -395
- package/dist/style.css +21 -20
- package/lib/src/components/ErrorContent/index.d.ts +6 -0
- package/package.json +3 -3
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
|
+
} }, 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 };
|
|
@@ -1267,7 +1260,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1267
1260
|
const cancel = "取消";
|
|
1268
1261
|
const create = "创建";
|
|
1269
1262
|
const delete_resource = "删除 {{resource}}";
|
|
1270
|
-
const confirm_delete_text = "确认删除 {{kind}} {{target}} 吗?";
|
|
1263
|
+
const confirm_delete_text = "确认删除 {{kind}} <0>{{target}}</0> 吗?";
|
|
1271
1264
|
const delete_tip = "该操作无法被撤回。";
|
|
1272
1265
|
const edit = "编辑";
|
|
1273
1266
|
const namespace = "名字空间";
|
|
@@ -8040,10 +8033,11 @@ var __publicField = (obj, key, value) => {
|
|
|
8040
8033
|
};
|
|
8041
8034
|
var cx_default = cx;
|
|
8042
8035
|
const ConfigsContext = React.createContext({});
|
|
8043
|
-
const
|
|
8036
|
+
const useDeleteModal_1kqb6q3 = "";
|
|
8044
8037
|
const TextStyle = "t1vq0ett";
|
|
8045
8038
|
const TipStyle = "t139onst";
|
|
8046
|
-
const
|
|
8039
|
+
const NameStyle$1 = "n18lzor8";
|
|
8040
|
+
const ModalStyle = "mvvgkkc";
|
|
8047
8041
|
const useDeleteModal = (resource) => {
|
|
8048
8042
|
const configs = React.useContext(ConfigsContext);
|
|
8049
8043
|
const config = configs[resource];
|
|
@@ -8071,12 +8065,17 @@ var __publicField = (obj, key, value) => {
|
|
|
8071
8065
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
8072
8066
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8073
8067
|
className: cx_default(eagle.Typo.Label.l2_regular, TextStyle),
|
|
8074
|
-
children:
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
}
|
|
8068
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
|
|
8069
|
+
i18nKey: "dovetail.confirm_delete_text",
|
|
8070
|
+
tOptions: {
|
|
8071
|
+
target: id,
|
|
8072
|
+
kind: config.kind
|
|
8073
|
+
},
|
|
8074
|
+
shouldUnescape: true,
|
|
8075
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tag, {
|
|
8076
|
+
color: "gray",
|
|
8077
|
+
className: NameStyle$1
|
|
8078
|
+
})
|
|
8080
8079
|
})
|
|
8081
8080
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8082
8081
|
className: cx_default(eagle.Typo.Label.l4_regular, TipStyle),
|
|
@@ -8523,32 +8522,54 @@ var __publicField = (obj, key, value) => {
|
|
|
8523
8522
|
return o(prop);
|
|
8524
8523
|
}
|
|
8525
8524
|
}) : styled;
|
|
8526
|
-
const
|
|
8527
|
-
const ErrorWrapper
|
|
8525
|
+
const index_1rdsv5g = "";
|
|
8526
|
+
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
8528
8527
|
name: "ErrorWrapper",
|
|
8529
8528
|
class: "egn3dbn",
|
|
8530
8529
|
propsAsIs: false
|
|
8531
8530
|
});
|
|
8532
|
-
const ErrorContent
|
|
8531
|
+
const ErrorContent = /* @__PURE__ */ styled_default("div")({
|
|
8533
8532
|
name: "ErrorContent",
|
|
8534
8533
|
class: "e136jgy8",
|
|
8535
8534
|
propsAsIs: false
|
|
8536
8535
|
});
|
|
8537
|
-
|
|
8536
|
+
var ErrorContentType = /* @__PURE__ */ ((ErrorContentType2) => {
|
|
8537
|
+
ErrorContentType2["List"] = "list";
|
|
8538
|
+
ErrorContentType2["Card"] = "card";
|
|
8539
|
+
ErrorContentType2["Widget"] = "widget";
|
|
8540
|
+
return ErrorContentType2;
|
|
8541
|
+
})(ErrorContentType || {});
|
|
8542
|
+
const WidgetErrorContent = (props) => {
|
|
8538
8543
|
const {
|
|
8539
8544
|
refetch,
|
|
8540
|
-
errorText
|
|
8545
|
+
errorText,
|
|
8546
|
+
type: type2 = "list"
|
|
8547
|
+
/* List */
|
|
8541
8548
|
} = props;
|
|
8542
8549
|
const kit = React.useContext(eagle.kitContext);
|
|
8543
8550
|
const {
|
|
8544
8551
|
t: t2
|
|
8545
8552
|
} = useTranslation();
|
|
8546
|
-
|
|
8553
|
+
const fontMap = {
|
|
8554
|
+
[
|
|
8555
|
+
"widget"
|
|
8556
|
+
/* Widget */
|
|
8557
|
+
]: eagle.Typo.Label.l1_regular_title,
|
|
8558
|
+
[
|
|
8559
|
+
"card"
|
|
8560
|
+
/* Card */
|
|
8561
|
+
]: eagle.Typo.Label.l1_bold,
|
|
8562
|
+
[
|
|
8563
|
+
"list"
|
|
8564
|
+
/* List */
|
|
8565
|
+
]: eagle.Typo.Display.d2_bold_title
|
|
8566
|
+
};
|
|
8567
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
8547
8568
|
className: props.className,
|
|
8548
8569
|
style: props.style,
|
|
8549
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent
|
|
8570
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
|
|
8550
8571
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8551
|
-
className: cx_default(
|
|
8572
|
+
className: cx_default(fontMap[type2], "title", type2),
|
|
8552
8573
|
children: errorText || t2("dovetail.obtain_data_error")
|
|
8553
8574
|
}), !refetch ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8554
8575
|
size: "small",
|
|
@@ -8562,36 +8583,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8562
8583
|
})
|
|
8563
8584
|
});
|
|
8564
8585
|
};
|
|
8565
|
-
const ErrorContent_1t51xnx = "";
|
|
8566
|
-
const ErrorWrapper = "eckm4od";
|
|
8567
|
-
const ErrorContent = "e1hl982n";
|
|
8568
|
-
const WidgetErrorContent = (props) => {
|
|
8569
|
-
const {
|
|
8570
|
-
refetch
|
|
8571
|
-
} = props;
|
|
8572
|
-
const kit = React.useContext(eagle.kitContext);
|
|
8573
|
-
const {
|
|
8574
|
-
t: t2
|
|
8575
|
-
} = useTranslation();
|
|
8576
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8577
|
-
className: ErrorWrapper,
|
|
8578
|
-
style: props.style,
|
|
8579
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8580
|
-
className: ErrorContent,
|
|
8581
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8582
|
-
className: cx_default(eagle.Typo.Label.l1_regular_title, "title"),
|
|
8583
|
-
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8584
|
-
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8585
|
-
type: "ordinary",
|
|
8586
|
-
onClick: (e2) => {
|
|
8587
|
-
e2.stopPropagation();
|
|
8588
|
-
refetch == null ? void 0 : refetch();
|
|
8589
|
-
},
|
|
8590
|
-
children: t2("dovetail.retry")
|
|
8591
|
-
}) : null]
|
|
8592
|
-
})
|
|
8593
|
-
});
|
|
8594
|
-
};
|
|
8595
8586
|
const TableWidgets_ny30pi = "";
|
|
8596
8587
|
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8597
8588
|
name: "AuxiliaryLine",
|
|
@@ -8715,10 +8706,11 @@ var __publicField = (obj, key, value) => {
|
|
|
8715
8706
|
];
|
|
8716
8707
|
if (datas.length === 0) {
|
|
8717
8708
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8718
|
-
WidgetErrorContent
|
|
8709
|
+
WidgetErrorContent,
|
|
8719
8710
|
{
|
|
8720
8711
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8721
|
-
style: { padding: "15px 0" }
|
|
8712
|
+
style: { padding: "15px 0" },
|
|
8713
|
+
type: ErrorContentType.Card
|
|
8722
8714
|
}
|
|
8723
8715
|
);
|
|
8724
8716
|
}
|
|
@@ -8785,7 +8777,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8785
8777
|
id: port2.name || ""
|
|
8786
8778
|
}));
|
|
8787
8779
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8788
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8780
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8781
|
+
WidgetErrorContent,
|
|
8782
|
+
{
|
|
8783
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }),
|
|
8784
|
+
style: { padding: "15px 0" },
|
|
8785
|
+
type: ErrorContentType.Card
|
|
8786
|
+
}
|
|
8787
|
+
);
|
|
8789
8788
|
}
|
|
8790
8789
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8791
8790
|
Table$1,
|
|
@@ -9938,7 +9937,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9938
9937
|
children: content || "-"
|
|
9939
9938
|
});
|
|
9940
9939
|
};
|
|
9941
|
-
const
|
|
9940
|
+
const index_1wlqq0y = "";
|
|
9942
9941
|
const TagWrapper = "t13a6vox";
|
|
9943
9942
|
const TagStyle = "t12ikbmp";
|
|
9944
9943
|
const Tags = (props) => {
|
|
@@ -10050,7 +10049,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10050
10049
|
})(relativeTime$1);
|
|
10051
10050
|
var relativeTimeExports = relativeTime$1.exports;
|
|
10052
10051
|
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
10053
|
-
const
|
|
10052
|
+
const index_1779z85 = "";
|
|
10054
10053
|
dayjs.extend(relativeTime, {
|
|
10055
10054
|
thresholds: [{
|
|
10056
10055
|
l: "s",
|
|
@@ -10166,7 +10165,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10166
10165
|
}
|
|
10167
10166
|
];
|
|
10168
10167
|
if (conditionsWithId.length === 0) {
|
|
10169
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10168
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10169
|
+
WidgetErrorContent,
|
|
10170
|
+
{
|
|
10171
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }),
|
|
10172
|
+
style: { padding: "15px 0" },
|
|
10173
|
+
type: ErrorContentType.Card
|
|
10174
|
+
}
|
|
10175
|
+
);
|
|
10170
10176
|
}
|
|
10171
10177
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10172
10178
|
Table$1,
|
|
@@ -10384,7 +10390,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10384
10390
|
const component = React.useContext(ComponentContext);
|
|
10385
10391
|
const Table$1 = component.Table || Table;
|
|
10386
10392
|
const {
|
|
10387
|
-
data: data2
|
|
10393
|
+
data: data2,
|
|
10394
|
+
isLoading
|
|
10388
10395
|
} = core.useList({
|
|
10389
10396
|
resource: "jobs",
|
|
10390
10397
|
meta: {
|
|
@@ -10398,6 +10405,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10398
10405
|
});
|
|
10399
10406
|
}, [data2 == null ? void 0 : data2.data, owner]);
|
|
10400
10407
|
const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
10408
|
+
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10409
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10410
|
+
errorText: i18n2.t("dovetail.no_resource", {
|
|
10411
|
+
kind: " Job"
|
|
10412
|
+
}),
|
|
10413
|
+
type: ErrorContentType.Card
|
|
10414
|
+
});
|
|
10415
|
+
}
|
|
10401
10416
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
10402
10417
|
direction: "vertical",
|
|
10403
10418
|
className: WrapperStyle$5,
|
|
@@ -10406,7 +10421,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10406
10421
|
hideCreate: true
|
|
10407
10422
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
10408
10423
|
tableKey: "cronjobs",
|
|
10409
|
-
loading:
|
|
10424
|
+
loading: isLoading,
|
|
10410
10425
|
data: dataSource || [],
|
|
10411
10426
|
columns,
|
|
10412
10427
|
rowKey: "id",
|
|
@@ -10474,7 +10489,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10474
10489
|
}, [data2 == null ? void 0 : data2.data, parsed]);
|
|
10475
10490
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10476
10491
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10477
|
-
WidgetErrorContent
|
|
10492
|
+
WidgetErrorContent,
|
|
10478
10493
|
{
|
|
10479
10494
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") })
|
|
10480
10495
|
}
|
|
@@ -10597,7 +10612,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10597
10612
|
}
|
|
10598
10613
|
];
|
|
10599
10614
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
10600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10615
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10616
|
+
WidgetErrorContent,
|
|
10617
|
+
{
|
|
10618
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }),
|
|
10619
|
+
style: { padding: "15px 0" },
|
|
10620
|
+
type: ErrorContentType.Card
|
|
10621
|
+
}
|
|
10622
|
+
);
|
|
10601
10623
|
}
|
|
10602
10624
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10603
10625
|
Table$1,
|
|
@@ -10615,7 +10637,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10615
10637
|
}
|
|
10616
10638
|
);
|
|
10617
10639
|
};
|
|
10618
|
-
const
|
|
10640
|
+
const KeyValue_1ebh6uj = "";
|
|
10619
10641
|
const ContentBlockStyle = "c8jy7dc";
|
|
10620
10642
|
const KeyStyle = "k2sddxl";
|
|
10621
10643
|
const ValueStyle$2 = "v16vicsr";
|
|
@@ -10639,8 +10661,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10639
10661
|
})]
|
|
10640
10662
|
}, key2));
|
|
10641
10663
|
if (!result.length) {
|
|
10642
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
10643
|
-
errorText: empty2 || t2("dovetail.empty")
|
|
10664
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10665
|
+
errorText: empty2 || t2("dovetail.empty"),
|
|
10666
|
+
type: ErrorContentType.Card
|
|
10644
10667
|
});
|
|
10645
10668
|
}
|
|
10646
10669
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
@@ -10798,7 +10821,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10798
10821
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
10799
10822
|
}) });
|
|
10800
10823
|
}
|
|
10801
|
-
const
|
|
10824
|
+
const ShowContent_fjwscu = "";
|
|
10802
10825
|
const ShowContentWrapperStyle = "s9agep2";
|
|
10803
10826
|
const BackButton = "bo89gfi";
|
|
10804
10827
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -10979,7 +11002,11 @@ var __publicField = (obj, key, value) => {
|
|
|
10979
11002
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
|
|
10980
11003
|
gutter: [24, 8],
|
|
10981
11004
|
children: renderFields(area.fields, area.type, !!group.title)
|
|
10982
|
-
}, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
|
|
11005
|
+
}, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
|
|
11006
|
+
style: {
|
|
11007
|
+
margin: "8px 0 12px 0"
|
|
11008
|
+
}
|
|
11009
|
+
}) : null]
|
|
10983
11010
|
}))
|
|
10984
11011
|
}, group.title);
|
|
10985
11012
|
})
|
|
@@ -10997,20 +11024,37 @@ var __publicField = (obj, key, value) => {
|
|
|
10997
11024
|
}), tabs]
|
|
10998
11025
|
});
|
|
10999
11026
|
};
|
|
11027
|
+
const KeyValueSecret_1nzeh2v = "";
|
|
11028
|
+
const ButtonStyle = "b11tbgf7";
|
|
11000
11029
|
function KeyValueSecret(props) {
|
|
11001
|
-
const {
|
|
11002
|
-
|
|
11030
|
+
const {
|
|
11031
|
+
data: data2 = {}
|
|
11032
|
+
} = props;
|
|
11033
|
+
const {
|
|
11034
|
+
i18n: i18n2
|
|
11035
|
+
} = useTranslation();
|
|
11003
11036
|
const [hideSecret, setHideSecret] = React.useState(true);
|
|
11004
|
-
const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11005
|
-
|
|
11006
|
-
{
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11037
|
+
const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
11038
|
+
type: "quiet",
|
|
11039
|
+
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, {
|
|
11040
|
+
src: hideSecret ? iconsReact.ViewEye16GradientGrayIcon : iconsReact.EntityFilterIgnoreGradient16GrayIcon
|
|
11041
|
+
}),
|
|
11042
|
+
onClick: () => setHideSecret((v) => !v),
|
|
11043
|
+
className: ButtonStyle,
|
|
11044
|
+
size: "small",
|
|
11045
|
+
children: hideSecret ? i18n2.t("dovetail.show_data_value") : i18n2.t("dovetail.hide_data_value")
|
|
11046
|
+
});
|
|
11047
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShowGroupComponent, {
|
|
11048
|
+
title: i18n2.t("dovetail.data"),
|
|
11049
|
+
operationEle: toggleButton,
|
|
11050
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValue, {
|
|
11051
|
+
data: data2,
|
|
11052
|
+
hideSecret,
|
|
11053
|
+
empty: i18n2.t("dovetail.no_resource", {
|
|
11054
|
+
kind: i18n2.t("dovetail.data")
|
|
11055
|
+
})
|
|
11056
|
+
})
|
|
11057
|
+
});
|
|
11014
11058
|
}
|
|
11015
11059
|
const WorkloadPodsTable_1giuese = "";
|
|
11016
11060
|
const WorkloadPodsTable = ({
|
|
@@ -11050,13 +11094,14 @@ var __publicField = (obj, key, value) => {
|
|
|
11050
11094
|
sortable: true
|
|
11051
11095
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
11052
11096
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
11053
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
11097
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
11054
11098
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
11055
11099
|
kind: ` ${i18n2.t("dovetail.pod")}`
|
|
11056
11100
|
}),
|
|
11057
11101
|
style: {
|
|
11058
11102
|
padding: "15px 0"
|
|
11059
|
-
}
|
|
11103
|
+
},
|
|
11104
|
+
type: ErrorContentType.Card
|
|
11060
11105
|
});
|
|
11061
11106
|
}
|
|
11062
11107
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
@@ -17433,7 +17478,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17433
17478
|
})]
|
|
17434
17479
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
17435
17480
|
className: ContentStyle$1,
|
|
17436
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
17481
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17437
17482
|
style: {
|
|
17438
17483
|
height: "100%"
|
|
17439
17484
|
},
|
|
@@ -17659,13 +17704,14 @@ var __publicField = (obj, key, value) => {
|
|
|
17659
17704
|
t: t2
|
|
17660
17705
|
} = useTranslation();
|
|
17661
17706
|
if (!ingressOrEgress) {
|
|
17662
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
17707
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17663
17708
|
errorText: t2("dovetail.no_resource", {
|
|
17664
17709
|
kind: kind || t2("dovetail.rule")
|
|
17665
17710
|
}),
|
|
17666
17711
|
style: {
|
|
17667
17712
|
padding: "15px 0"
|
|
17668
|
-
}
|
|
17713
|
+
},
|
|
17714
|
+
type: ErrorContentType.Card
|
|
17669
17715
|
});
|
|
17670
17716
|
}
|
|
17671
17717
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
|
|
@@ -17746,7 +17792,14 @@ var __publicField = (obj, key, value) => {
|
|
|
17746
17792
|
[containerStatuses, initContainerStatuses]
|
|
17747
17793
|
);
|
|
17748
17794
|
if (dataSource.length === 0) {
|
|
17749
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17795
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17796
|
+
WidgetErrorContent,
|
|
17797
|
+
{
|
|
17798
|
+
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }),
|
|
17799
|
+
style: { padding: "15px 0" },
|
|
17800
|
+
type: ErrorContentType.Card
|
|
17801
|
+
}
|
|
17802
|
+
);
|
|
17750
17803
|
}
|
|
17751
17804
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17752
17805
|
Table$1,
|
|
@@ -18203,16 +18256,17 @@ var __publicField = (obj, key, value) => {
|
|
|
18203
18256
|
return void 0;
|
|
18204
18257
|
}
|
|
18205
18258
|
}
|
|
18206
|
-
const
|
|
18259
|
+
const index_1uuzt53 = "";
|
|
18207
18260
|
const SelectStyle = "sj0ggy";
|
|
18208
|
-
const
|
|
18209
|
-
const
|
|
18210
|
-
const
|
|
18211
|
-
const
|
|
18212
|
-
const
|
|
18213
|
-
const
|
|
18214
|
-
const
|
|
18215
|
-
const
|
|
18261
|
+
const DropdownStyle = "d1eo8uqs";
|
|
18262
|
+
const SearchInputStyle = "s64gojc";
|
|
18263
|
+
const SelectContentStyle = "s16fqgtu";
|
|
18264
|
+
const TokenStyle = "tgaujbg";
|
|
18265
|
+
const CountTokenStyle = "c1vbd54v";
|
|
18266
|
+
const SelectOptionGroupStyle = "sxzmtrx";
|
|
18267
|
+
const LabelWrapperStyle = "lqrghwd";
|
|
18268
|
+
const AllNamespaceOptionStyle = "api7z1z";
|
|
18269
|
+
const OptionStyle = "o38b23x";
|
|
18216
18270
|
const NS_STORE_KEY = "namespace-filter";
|
|
18217
18271
|
const ALL_NS = "_all";
|
|
18218
18272
|
const useNamespacesFilter = () => {
|
|
@@ -18247,9 +18301,10 @@ var __publicField = (obj, key, value) => {
|
|
|
18247
18301
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
|
|
18248
18302
|
loading: isLoading,
|
|
18249
18303
|
style: {
|
|
18250
|
-
width:
|
|
18304
|
+
width: 278
|
|
18251
18305
|
},
|
|
18252
18306
|
className: cx_default(SelectStyle, className),
|
|
18307
|
+
dropdownClassName: DropdownStyle,
|
|
18253
18308
|
searchValue: search,
|
|
18254
18309
|
virtual: false,
|
|
18255
18310
|
input: {
|
|
@@ -18283,12 +18338,13 @@ var __publicField = (obj, key, value) => {
|
|
|
18283
18338
|
const isAll = value22 === ALL_NS;
|
|
18284
18339
|
return isAll ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
18285
18340
|
style: {
|
|
18286
|
-
marginLeft:
|
|
18341
|
+
marginLeft: 8
|
|
18287
18342
|
},
|
|
18288
18343
|
children: label2
|
|
18289
18344
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
|
|
18290
18345
|
className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
|
|
18291
18346
|
closable,
|
|
18347
|
+
size: "medium",
|
|
18292
18348
|
onClose,
|
|
18293
18349
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
|
|
18294
18350
|
content: isCountToken ? label2.replace(/[\s\.]/g, "") : label2
|
|
@@ -18358,7 +18414,9 @@ var __publicField = (obj, key, value) => {
|
|
|
18358
18414
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
|
|
18359
18415
|
style: {
|
|
18360
18416
|
margin: 0,
|
|
18361
|
-
minHeight: 1
|
|
18417
|
+
minHeight: 1,
|
|
18418
|
+
marginRight: 24,
|
|
18419
|
+
width: "calc(100% - 24px)"
|
|
18362
18420
|
}
|
|
18363
18421
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
18364
18422
|
className: ListContentStyle,
|
|
@@ -18366,7 +18424,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18366
18424
|
className: NamespaceFilterStyle
|
|
18367
18425
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18368
18426
|
className: TableStyle,
|
|
18369
|
-
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
18427
|
+
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18370
18428
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18371
18429
|
kind: ` ${config.kind}`
|
|
18372
18430
|
})
|
|
@@ -21658,6 +21716,11 @@ var __publicField = (obj, key, value) => {
|
|
|
21658
21716
|
meta: {}
|
|
21659
21717
|
});
|
|
21660
21718
|
}
|
|
21719
|
+
if (action === "edit" && c2.key === "name") {
|
|
21720
|
+
ele = /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
21721
|
+
children: value2
|
|
21722
|
+
});
|
|
21723
|
+
}
|
|
21661
21724
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
|
|
21662
21725
|
label: c2.label,
|
|
21663
21726
|
labelCol: {
|
|
@@ -22220,7 +22283,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22220
22283
|
message: i18n2.t(
|
|
22221
22284
|
id ? "dovetail.edit_resource_success" : "dovetail.create_success_toast",
|
|
22222
22285
|
{
|
|
22223
|
-
|
|
22286
|
+
kind: formValue.kind,
|
|
22224
22287
|
name: formValue.metadata.name,
|
|
22225
22288
|
interpolation: { escapeValue: false }
|
|
22226
22289
|
}
|
|
@@ -22920,7 +22983,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22920
22983
|
isEdit: action === "edit"
|
|
22921
22984
|
})
|
|
22922
22985
|
})]
|
|
22923
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
22986
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
22924
22987
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
22925
22988
|
refetch: fetchSchema
|
|
22926
22989
|
});
|
|
@@ -22978,7 +23041,8 @@ var __publicField = (obj, key, value) => {
|
|
|
22978
23041
|
refineProps: {
|
|
22979
23042
|
onMutationSuccess: () => {
|
|
22980
23043
|
eagle.popModal();
|
|
22981
|
-
}
|
|
23044
|
+
},
|
|
23045
|
+
redirect: false
|
|
22982
23046
|
}
|
|
22983
23047
|
});
|
|
22984
23048
|
const isYamlForm = !((_a = config.formConfig) == null ? void 0 : _a.fields);
|
|
@@ -23365,7 +23429,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23365
23429
|
const divider = " > ";
|
|
23366
23430
|
let pre = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: r2.fullPath });
|
|
23367
23431
|
if (r2.fullPath.includes("http") && !r2.fullPath.includes("*")) {
|
|
23368
|
-
pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, children: r2.fullPath });
|
|
23432
|
+
pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, target: "_blank", children: r2.fullPath });
|
|
23369
23433
|
}
|
|
23370
23434
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23371
23435
|
kit.overflowTooltip,
|
|
@@ -23669,7 +23733,8 @@ var __publicField = (obj, key, value) => {
|
|
|
23669
23733
|
children: i18n2.t("dovetail.in_cluster_ip_desc")
|
|
23670
23734
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
|
|
23671
23735
|
style: {
|
|
23672
|
-
margin: "6px 0"
|
|
23736
|
+
margin: "6px 0",
|
|
23737
|
+
background: "rgba(107, 128, 167, 0.60)"
|
|
23673
23738
|
}
|
|
23674
23739
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23675
23740
|
children: i18n2.t("dovetail.in_cluster_external_name_desc")
|
|
@@ -23716,7 +23781,9 @@ var __publicField = (obj, key, value) => {
|
|
|
23716
23781
|
i18nKey: "dovetail.out_cluster_lb_desc"
|
|
23717
23782
|
})
|
|
23718
23783
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23719
|
-
children:
|
|
23784
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
|
|
23785
|
+
i18nKey: "dovetail.out_external_name_desc"
|
|
23786
|
+
})
|
|
23720
23787
|
})]
|
|
23721
23788
|
}),
|
|
23722
23789
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|