@dovetail-v2/refine 0.2.0 → 0.2.2-alpha.0
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-c33773fc.js → MonacoYamlDiffEditor-fe64524b.js} +2 -2
- package/dist/{index-0acc32c8.js → index-d00a6dbe.js} +833 -868
- package/dist/refine.js +247 -246
- package/dist/refine.umd.cjs +587 -622
- package/dist/style.css +143 -249
- package/lib/components/InternalBaseTable/index.d.ts +1 -0
- package/lib/components/ResourceLink/index.d.ts +1 -0
- package/lib/components/ShowContent/fields.d.ts +1 -0
- package/lib/components/YamlEditor/YamlEditorComponent.d.ts +3 -0
- package/lib/hooks/index.d.ts +1 -1
- package/lib/hooks/useDeleteModal/index.d.ts +2 -0
- package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +11 -9
- package/lib/hooks/useDeleteModal/useDeleteModalOnly.d.ts +12 -0
- package/lib/hooks/{useFailedModal.d.ts → useDeleteModal/useFailedModal.d.ts} +1 -3
- package/lib/types/resource.d.ts +2 -0
- package/package.json +5 -5
|
@@ -10,9 +10,9 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import {
|
|
14
|
-
import { first, get as get$3, cloneDeep, set as set$1, omit as omit$1, merge, debounce, last, setWith, clone, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
13
|
+
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
15
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
15
|
+
import { first, get as get$3, cloneDeep, set as set$1, omit as omit$1, merge, debounce, last, setWith, clone, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
16
16
|
import yaml$2 from "js-yaml";
|
|
17
17
|
import { paginateData, sortData, dataProvider, liveProvider } from "k8s-api-provider";
|
|
18
18
|
import * as monaco from "monaco-editor";
|
|
@@ -25,308 +25,301 @@ function getDefaultExportFromCjs(x) {
|
|
|
25
25
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
26
26
|
}
|
|
27
27
|
var dayjs_min = { exports: {} };
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
function
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (null === e3)
|
|
94
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
95
|
-
if (b.u(e3))
|
|
96
|
-
return /* @__PURE__ */ new Date();
|
|
97
|
-
if (e3 instanceof Date)
|
|
98
|
-
return new Date(e3);
|
|
99
|
-
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
100
|
-
var r3 = e3.match($);
|
|
101
|
-
if (r3) {
|
|
102
|
-
var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
103
|
-
return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
28
|
+
(function(module, exports) {
|
|
29
|
+
!function(t2, e2) {
|
|
30
|
+
module.exports = e2();
|
|
31
|
+
}(commonjsGlobal, function() {
|
|
32
|
+
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "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) {
|
|
33
|
+
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
34
|
+
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
35
|
+
} }, m = function(t3, e3, n3) {
|
|
36
|
+
var r3 = String(t3);
|
|
37
|
+
return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
|
|
38
|
+
}, v = { s: m, z: function(t3) {
|
|
39
|
+
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
|
|
40
|
+
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
41
|
+
}, m: function t3(e3, n3) {
|
|
42
|
+
if (e3.date() < n3.date())
|
|
43
|
+
return -t3(n3, e3);
|
|
44
|
+
var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c2), s3 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
|
|
45
|
+
return +(-(r3 + (n3 - i2) / (s3 ? i2 - u2 : u2 - i2)) || 0);
|
|
46
|
+
}, a: function(t3) {
|
|
47
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
48
|
+
}, p: function(t3) {
|
|
49
|
+
return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
50
|
+
}, u: function(t3) {
|
|
51
|
+
return void 0 === t3;
|
|
52
|
+
} }, g = "en", D = {};
|
|
53
|
+
D[g] = M;
|
|
54
|
+
var p = "$isDayjsObject", S = function(t3) {
|
|
55
|
+
return t3 instanceof _ || !(!t3 || !t3[p]);
|
|
56
|
+
}, w = function t3(e3, n3, r3) {
|
|
57
|
+
var i2;
|
|
58
|
+
if (!e3)
|
|
59
|
+
return g;
|
|
60
|
+
if ("string" == typeof e3) {
|
|
61
|
+
var s3 = e3.toLowerCase();
|
|
62
|
+
D[s3] && (i2 = s3), n3 && (D[s3] = n3, i2 = s3);
|
|
63
|
+
var u2 = e3.split("-");
|
|
64
|
+
if (!i2 && u2.length > 1)
|
|
65
|
+
return t3(u2[0]);
|
|
66
|
+
} else {
|
|
67
|
+
var a3 = e3.name;
|
|
68
|
+
D[a3] = e3, i2 = a3;
|
|
69
|
+
}
|
|
70
|
+
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
71
|
+
}, O = function(t3, e3) {
|
|
72
|
+
if (S(t3))
|
|
73
|
+
return t3.clone();
|
|
74
|
+
var n3 = "object" == typeof e3 ? e3 : {};
|
|
75
|
+
return n3.date = t3, n3.args = arguments, new _(n3);
|
|
76
|
+
}, b = v;
|
|
77
|
+
b.l = w, b.i = S, b.w = function(t3, e3) {
|
|
78
|
+
return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
|
79
|
+
};
|
|
80
|
+
var _ = function() {
|
|
81
|
+
function M2(t3) {
|
|
82
|
+
this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
|
|
83
|
+
}
|
|
84
|
+
var m2 = M2.prototype;
|
|
85
|
+
return m2.parse = function(t3) {
|
|
86
|
+
this.$d = function(t4) {
|
|
87
|
+
var e3 = t4.date, n3 = t4.utc;
|
|
88
|
+
if (null === e3)
|
|
89
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
90
|
+
if (b.u(e3))
|
|
91
|
+
return /* @__PURE__ */ new Date();
|
|
92
|
+
if (e3 instanceof Date)
|
|
106
93
|
return new Date(e3);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
return y2(7);
|
|
184
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
185
|
-
return b.w(m3, this);
|
|
186
|
-
}, m2.subtract = function(t3, e3) {
|
|
187
|
-
return this.add(-1 * t3, e3);
|
|
188
|
-
}, m2.format = function(t3) {
|
|
189
|
-
var e3 = this, n3 = this.$locale();
|
|
190
|
-
if (!this.isValid())
|
|
191
|
-
return n3.invalidDate || l;
|
|
192
|
-
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = 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, i3, s4) {
|
|
193
|
-
return t4 && (t4[n4] || t4(e3, r3)) || i3[n4].slice(0, s4);
|
|
194
|
-
}, d2 = function(t4) {
|
|
195
|
-
return b.s(s3 % 12 || 12, t4, "0");
|
|
196
|
-
}, $2 = f2 || function(t4, e4, n4) {
|
|
197
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
198
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
199
|
-
};
|
|
200
|
-
return r3.replace(y, function(t4, r4) {
|
|
201
|
-
return r4 || function(t5) {
|
|
202
|
-
switch (t5) {
|
|
203
|
-
case "YY":
|
|
204
|
-
return String(e3.$y).slice(-2);
|
|
205
|
-
case "YYYY":
|
|
206
|
-
return b.s(e3.$y, 4, "0");
|
|
207
|
-
case "M":
|
|
208
|
-
return a3 + 1;
|
|
209
|
-
case "MM":
|
|
210
|
-
return b.s(a3 + 1, 2, "0");
|
|
211
|
-
case "MMM":
|
|
212
|
-
return h2(n3.monthsShort, a3, c3, 3);
|
|
213
|
-
case "MMMM":
|
|
214
|
-
return h2(c3, a3);
|
|
215
|
-
case "D":
|
|
216
|
-
return e3.$D;
|
|
217
|
-
case "DD":
|
|
218
|
-
return b.s(e3.$D, 2, "0");
|
|
219
|
-
case "d":
|
|
220
|
-
return String(e3.$W);
|
|
221
|
-
case "dd":
|
|
222
|
-
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
223
|
-
case "ddd":
|
|
224
|
-
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
225
|
-
case "dddd":
|
|
226
|
-
return o2[e3.$W];
|
|
227
|
-
case "H":
|
|
228
|
-
return String(s3);
|
|
229
|
-
case "HH":
|
|
230
|
-
return b.s(s3, 2, "0");
|
|
231
|
-
case "h":
|
|
232
|
-
return d2(1);
|
|
233
|
-
case "hh":
|
|
234
|
-
return d2(2);
|
|
235
|
-
case "a":
|
|
236
|
-
return $2(s3, u2, true);
|
|
237
|
-
case "A":
|
|
238
|
-
return $2(s3, u2, false);
|
|
239
|
-
case "m":
|
|
240
|
-
return String(u2);
|
|
241
|
-
case "mm":
|
|
242
|
-
return b.s(u2, 2, "0");
|
|
243
|
-
case "s":
|
|
244
|
-
return String(e3.$s);
|
|
245
|
-
case "ss":
|
|
246
|
-
return b.s(e3.$s, 2, "0");
|
|
247
|
-
case "SSS":
|
|
248
|
-
return b.s(e3.$ms, 3, "0");
|
|
249
|
-
case "Z":
|
|
250
|
-
return i2;
|
|
251
|
-
}
|
|
252
|
-
return null;
|
|
253
|
-
}(t4) || i2.replace(":", "");
|
|
254
|
-
});
|
|
255
|
-
}, m2.utcOffset = function() {
|
|
256
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
257
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
258
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
259
|
-
return b.m(y2, m3);
|
|
260
|
-
};
|
|
261
|
-
switch (M3) {
|
|
262
|
-
case h:
|
|
263
|
-
$2 = D2() / 12;
|
|
264
|
-
break;
|
|
265
|
-
case c2:
|
|
266
|
-
$2 = D2();
|
|
267
|
-
break;
|
|
268
|
-
case f:
|
|
269
|
-
$2 = D2() / 3;
|
|
270
|
-
break;
|
|
271
|
-
case o:
|
|
272
|
-
$2 = (g2 - v2) / 6048e5;
|
|
273
|
-
break;
|
|
274
|
-
case a2:
|
|
275
|
-
$2 = (g2 - v2) / 864e5;
|
|
276
|
-
break;
|
|
277
|
-
case u:
|
|
278
|
-
$2 = g2 / n2;
|
|
279
|
-
break;
|
|
280
|
-
case s2:
|
|
281
|
-
$2 = g2 / e2;
|
|
282
|
-
break;
|
|
283
|
-
case i:
|
|
284
|
-
$2 = g2 / t2;
|
|
285
|
-
break;
|
|
286
|
-
default:
|
|
287
|
-
$2 = g2;
|
|
288
|
-
}
|
|
289
|
-
return l2 ? $2 : b.a($2);
|
|
290
|
-
}, m2.daysInMonth = function() {
|
|
291
|
-
return this.endOf(c2).$D;
|
|
292
|
-
}, m2.$locale = function() {
|
|
293
|
-
return D[this.$L];
|
|
294
|
-
}, m2.locale = function(t3, e3) {
|
|
295
|
-
if (!t3)
|
|
296
|
-
return this.$L;
|
|
297
|
-
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
298
|
-
return r3 && (n3.$L = r3), n3;
|
|
299
|
-
}, m2.clone = function() {
|
|
300
|
-
return b.w(this.$d, this);
|
|
301
|
-
}, m2.toDate = function() {
|
|
302
|
-
return new Date(this.valueOf());
|
|
303
|
-
}, m2.toJSON = function() {
|
|
304
|
-
return this.isValid() ? this.toISOString() : null;
|
|
305
|
-
}, m2.toISOString = function() {
|
|
306
|
-
return this.$d.toISOString();
|
|
307
|
-
}, m2.toString = function() {
|
|
308
|
-
return this.$d.toUTCString();
|
|
309
|
-
}, M2;
|
|
310
|
-
}(), k = _.prototype;
|
|
311
|
-
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
312
|
-
k[t3[1]] = function(e3) {
|
|
313
|
-
return this.$g(e3, t3[0], t3[1]);
|
|
94
|
+
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
95
|
+
var r3 = e3.match($);
|
|
96
|
+
if (r3) {
|
|
97
|
+
var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
98
|
+
return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return new Date(e3);
|
|
102
|
+
}(t3), this.init();
|
|
103
|
+
}, m2.init = function() {
|
|
104
|
+
var t3 = this.$d;
|
|
105
|
+
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();
|
|
106
|
+
}, m2.$utils = function() {
|
|
107
|
+
return b;
|
|
108
|
+
}, m2.isValid = function() {
|
|
109
|
+
return !(this.$d.toString() === l);
|
|
110
|
+
}, m2.isSame = function(t3, e3) {
|
|
111
|
+
var n3 = O(t3);
|
|
112
|
+
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
113
|
+
}, m2.isAfter = function(t3, e3) {
|
|
114
|
+
return O(t3) < this.startOf(e3);
|
|
115
|
+
}, m2.isBefore = function(t3, e3) {
|
|
116
|
+
return this.endOf(e3) < O(t3);
|
|
117
|
+
}, m2.$g = function(t3, e3, n3) {
|
|
118
|
+
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
119
|
+
}, m2.unix = function() {
|
|
120
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
121
|
+
}, m2.valueOf = function() {
|
|
122
|
+
return this.$d.getTime();
|
|
123
|
+
}, m2.startOf = function(t3, e3) {
|
|
124
|
+
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
125
|
+
var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
126
|
+
return r3 ? i2 : i2.endOf(a2);
|
|
127
|
+
}, $2 = function(t4, e4) {
|
|
128
|
+
return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
129
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
130
|
+
switch (f2) {
|
|
131
|
+
case h:
|
|
132
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
133
|
+
case c2:
|
|
134
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
135
|
+
case o:
|
|
136
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
137
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
138
|
+
case a2:
|
|
139
|
+
case d:
|
|
140
|
+
return $2(v2 + "Hours", 0);
|
|
141
|
+
case u:
|
|
142
|
+
return $2(v2 + "Minutes", 1);
|
|
143
|
+
case s2:
|
|
144
|
+
return $2(v2 + "Seconds", 2);
|
|
145
|
+
case i:
|
|
146
|
+
return $2(v2 + "Milliseconds", 3);
|
|
147
|
+
default:
|
|
148
|
+
return this.clone();
|
|
149
|
+
}
|
|
150
|
+
}, m2.endOf = function(t3) {
|
|
151
|
+
return this.startOf(t3, false);
|
|
152
|
+
}, m2.$set = function(t3, e3) {
|
|
153
|
+
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[i] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
|
|
154
|
+
if (o2 === c2 || o2 === h) {
|
|
155
|
+
var y2 = this.clone().set(d, 1);
|
|
156
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
157
|
+
} else
|
|
158
|
+
l2 && this.$d[l2]($2);
|
|
159
|
+
return this.init(), this;
|
|
160
|
+
}, m2.set = function(t3, e3) {
|
|
161
|
+
return this.clone().$set(t3, e3);
|
|
162
|
+
}, m2.get = function(t3) {
|
|
163
|
+
return this[b.p(t3)]();
|
|
164
|
+
}, m2.add = function(r3, f2) {
|
|
165
|
+
var d2, l2 = this;
|
|
166
|
+
r3 = Number(r3);
|
|
167
|
+
var $2 = b.p(f2), y2 = function(t3) {
|
|
168
|
+
var e3 = O(l2);
|
|
169
|
+
return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
|
|
314
170
|
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
171
|
+
if ($2 === c2)
|
|
172
|
+
return this.set(c2, this.$M + r3);
|
|
173
|
+
if ($2 === h)
|
|
174
|
+
return this.set(h, this.$y + r3);
|
|
175
|
+
if ($2 === a2)
|
|
176
|
+
return y2(1);
|
|
177
|
+
if ($2 === o)
|
|
178
|
+
return y2(7);
|
|
179
|
+
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
180
|
+
return b.w(m3, this);
|
|
181
|
+
}, m2.subtract = function(t3, e3) {
|
|
182
|
+
return this.add(-1 * t3, e3);
|
|
183
|
+
}, m2.format = function(t3) {
|
|
184
|
+
var e3 = this, n3 = this.$locale();
|
|
185
|
+
if (!this.isValid())
|
|
186
|
+
return n3.invalidDate || l;
|
|
187
|
+
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = 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, i3, s4) {
|
|
188
|
+
return t4 && (t4[n4] || t4(e3, r3)) || i3[n4].slice(0, s4);
|
|
189
|
+
}, d2 = function(t4) {
|
|
190
|
+
return b.s(s3 % 12 || 12, t4, "0");
|
|
191
|
+
}, $2 = f2 || function(t4, e4, n4) {
|
|
192
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
193
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
194
|
+
};
|
|
195
|
+
return r3.replace(y, function(t4, r4) {
|
|
196
|
+
return r4 || function(t5) {
|
|
197
|
+
switch (t5) {
|
|
198
|
+
case "YY":
|
|
199
|
+
return String(e3.$y).slice(-2);
|
|
200
|
+
case "YYYY":
|
|
201
|
+
return b.s(e3.$y, 4, "0");
|
|
202
|
+
case "M":
|
|
203
|
+
return a3 + 1;
|
|
204
|
+
case "MM":
|
|
205
|
+
return b.s(a3 + 1, 2, "0");
|
|
206
|
+
case "MMM":
|
|
207
|
+
return h2(n3.monthsShort, a3, c3, 3);
|
|
208
|
+
case "MMMM":
|
|
209
|
+
return h2(c3, a3);
|
|
210
|
+
case "D":
|
|
211
|
+
return e3.$D;
|
|
212
|
+
case "DD":
|
|
213
|
+
return b.s(e3.$D, 2, "0");
|
|
214
|
+
case "d":
|
|
215
|
+
return String(e3.$W);
|
|
216
|
+
case "dd":
|
|
217
|
+
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
218
|
+
case "ddd":
|
|
219
|
+
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
220
|
+
case "dddd":
|
|
221
|
+
return o2[e3.$W];
|
|
222
|
+
case "H":
|
|
223
|
+
return String(s3);
|
|
224
|
+
case "HH":
|
|
225
|
+
return b.s(s3, 2, "0");
|
|
226
|
+
case "h":
|
|
227
|
+
return d2(1);
|
|
228
|
+
case "hh":
|
|
229
|
+
return d2(2);
|
|
230
|
+
case "a":
|
|
231
|
+
return $2(s3, u2, true);
|
|
232
|
+
case "A":
|
|
233
|
+
return $2(s3, u2, false);
|
|
234
|
+
case "m":
|
|
235
|
+
return String(u2);
|
|
236
|
+
case "mm":
|
|
237
|
+
return b.s(u2, 2, "0");
|
|
238
|
+
case "s":
|
|
239
|
+
return String(e3.$s);
|
|
240
|
+
case "ss":
|
|
241
|
+
return b.s(e3.$s, 2, "0");
|
|
242
|
+
case "SSS":
|
|
243
|
+
return b.s(e3.$ms, 3, "0");
|
|
244
|
+
case "Z":
|
|
245
|
+
return i2;
|
|
246
|
+
}
|
|
247
|
+
return null;
|
|
248
|
+
}(t4) || i2.replace(":", "");
|
|
249
|
+
});
|
|
250
|
+
}, m2.utcOffset = function() {
|
|
251
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
252
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
253
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
254
|
+
return b.m(y2, m3);
|
|
255
|
+
};
|
|
256
|
+
switch (M3) {
|
|
257
|
+
case h:
|
|
258
|
+
$2 = D2() / 12;
|
|
259
|
+
break;
|
|
260
|
+
case c2:
|
|
261
|
+
$2 = D2();
|
|
262
|
+
break;
|
|
263
|
+
case f:
|
|
264
|
+
$2 = D2() / 3;
|
|
265
|
+
break;
|
|
266
|
+
case o:
|
|
267
|
+
$2 = (g2 - v2) / 6048e5;
|
|
268
|
+
break;
|
|
269
|
+
case a2:
|
|
270
|
+
$2 = (g2 - v2) / 864e5;
|
|
271
|
+
break;
|
|
272
|
+
case u:
|
|
273
|
+
$2 = g2 / n2;
|
|
274
|
+
break;
|
|
275
|
+
case s2:
|
|
276
|
+
$2 = g2 / e2;
|
|
277
|
+
break;
|
|
278
|
+
case i:
|
|
279
|
+
$2 = g2 / t2;
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
$2 = g2;
|
|
283
|
+
}
|
|
284
|
+
return l2 ? $2 : b.a($2);
|
|
285
|
+
}, m2.daysInMonth = function() {
|
|
286
|
+
return this.endOf(c2).$D;
|
|
287
|
+
}, m2.$locale = function() {
|
|
288
|
+
return D[this.$L];
|
|
289
|
+
}, m2.locale = function(t3, e3) {
|
|
290
|
+
if (!t3)
|
|
291
|
+
return this.$L;
|
|
292
|
+
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
293
|
+
return r3 && (n3.$L = r3), n3;
|
|
294
|
+
}, m2.clone = function() {
|
|
295
|
+
return b.w(this.$d, this);
|
|
296
|
+
}, m2.toDate = function() {
|
|
297
|
+
return new Date(this.valueOf());
|
|
298
|
+
}, m2.toJSON = function() {
|
|
299
|
+
return this.isValid() ? this.toISOString() : null;
|
|
300
|
+
}, m2.toISOString = function() {
|
|
301
|
+
return this.$d.toISOString();
|
|
302
|
+
}, m2.toString = function() {
|
|
303
|
+
return this.$d.toUTCString();
|
|
304
|
+
}, M2;
|
|
305
|
+
}(), k = _.prototype;
|
|
306
|
+
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
307
|
+
k[t3[1]] = function(e3) {
|
|
308
|
+
return this.$g(e3, t3[0], t3[1]);
|
|
309
|
+
};
|
|
310
|
+
}), O.extend = function(t3, e3) {
|
|
311
|
+
return t3.$i || (t3(e3, _, O), t3.$i = true), O;
|
|
312
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
|
|
313
|
+
return O(1e3 * t3);
|
|
314
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
315
|
+
});
|
|
316
|
+
})(dayjs_min);
|
|
317
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
325
318
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
326
319
|
var zh = { exports: {} };
|
|
327
320
|
(function(module, exports) {
|
|
328
321
|
!function(e2, _) {
|
|
329
|
-
module.exports = _(
|
|
322
|
+
module.exports = _(dayjs_minExports);
|
|
330
323
|
}(commonjsGlobal, function(e2) {
|
|
331
324
|
function _(e3) {
|
|
332
325
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
@@ -8499,35 +8492,54 @@ function useSchema(options) {
|
|
|
8499
8492
|
fetchSchema
|
|
8500
8493
|
};
|
|
8501
8494
|
}
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8495
|
+
const ConfigsContext = createContext({});
|
|
8496
|
+
function getCommonErrors(responseBody, i18n2) {
|
|
8497
|
+
var _a;
|
|
8498
|
+
if (!((responseBody == null ? void 0 : responseBody.message) || (responseBody == null ? void 0 : responseBody.code) || (responseBody == null ? void 0 : responseBody.reason) || (responseBody == null ? void 0 : responseBody.details) || (responseBody == null ? void 0 : responseBody.graphQLErrors))) {
|
|
8499
|
+
return [];
|
|
8500
|
+
}
|
|
8501
|
+
const causes = ((_a = responseBody.details) == null ? void 0 : _a.causes) || responseBody.graphQLErrors || [];
|
|
8502
|
+
if (causes.length) {
|
|
8503
|
+
return causes.map((cause) => {
|
|
8504
|
+
let params = {};
|
|
8505
|
+
let message2 = cause.message;
|
|
8506
|
+
try {
|
|
8507
|
+
const info = JSON.parse(cause.message);
|
|
8508
|
+
params = info.params;
|
|
8509
|
+
message2 = info.message;
|
|
8510
|
+
} catch {
|
|
8511
|
+
return i18n2.t(
|
|
8512
|
+
[
|
|
8513
|
+
`error.${cause.reason}`,
|
|
8514
|
+
`error.${cause.code}`,
|
|
8515
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
8516
|
+
],
|
|
8517
|
+
{
|
|
8518
|
+
...params,
|
|
8519
|
+
fallbackLng: ""
|
|
8520
|
+
}
|
|
8521
|
+
);
|
|
8514
8522
|
}
|
|
8523
|
+
return i18n2.t(
|
|
8524
|
+
[
|
|
8525
|
+
`error.${cause.reason}`,
|
|
8526
|
+
`error.${cause.code}`,
|
|
8527
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
8528
|
+
],
|
|
8529
|
+
{
|
|
8530
|
+
...params,
|
|
8531
|
+
fallbackLng: ""
|
|
8532
|
+
}
|
|
8533
|
+
);
|
|
8515
8534
|
});
|
|
8516
|
-
});
|
|
8517
|
-
const result = [];
|
|
8518
|
-
for (const keyHash in atomicClasses) {
|
|
8519
|
-
if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
|
|
8520
|
-
result.push(atomicClasses[keyHash]);
|
|
8521
|
-
}
|
|
8522
8535
|
}
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
}
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
const SmallModalStyle = "s1nc293e";
|
|
8536
|
+
return [
|
|
8537
|
+
i18n2.t(
|
|
8538
|
+
[`error.${responseBody.code}`, `error.${responseBody.reason}`, responseBody.message || ""],
|
|
8539
|
+
{ fallbackLng: "" }
|
|
8540
|
+
)
|
|
8541
|
+
];
|
|
8542
|
+
}
|
|
8531
8543
|
const tag_18tv6ql = "";
|
|
8532
8544
|
const StateTagStyle = "s82411";
|
|
8533
8545
|
const NameTagStyle = "n9ja9cs";
|
|
@@ -8540,170 +8552,155 @@ function isFirstLetterEnglish(str) {
|
|
|
8540
8552
|
function transformResourceKindInSentence(str, language) {
|
|
8541
8553
|
return isFirstLetterEnglish(str) ? ` ${language !== "zh-CN" ? str.toLocaleLowerCase() : str}` : str;
|
|
8542
8554
|
}
|
|
8543
|
-
const
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
const useDeleteModal = (resource, {
|
|
8547
|
-
deleteTip,
|
|
8555
|
+
const useDeleteModalOnly = ({
|
|
8556
|
+
resource,
|
|
8557
|
+
deleteDialogProps,
|
|
8548
8558
|
onError
|
|
8549
|
-
}
|
|
8559
|
+
}) => {
|
|
8550
8560
|
const configs = useContext(ConfigsContext);
|
|
8551
8561
|
const config = configs[resource];
|
|
8552
|
-
const {
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
const [deleting, setDeleting] = useState(false);
|
|
8556
|
-
const [visible, setVisible] = useState(false);
|
|
8562
|
+
const { mutateAsync } = useDelete();
|
|
8563
|
+
const pushModal = usePushModal();
|
|
8564
|
+
const popModal = usePopModal();
|
|
8557
8565
|
const navigation = useNavigation();
|
|
8558
|
-
const
|
|
8559
|
-
const {
|
|
8560
|
-
t: t2,
|
|
8561
|
-
i18n: i18n2
|
|
8562
|
-
} = useTranslation();
|
|
8566
|
+
const { t: t2, i18n: i18n2 } = useTranslation();
|
|
8563
8567
|
const displayName = config.displayName || config.kind;
|
|
8564
8568
|
const resourceDisplayName = transformResourceKindInSentence(displayName, i18n2.language);
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
target: id,
|
|
8583
|
-
kind: resourceDisplayName
|
|
8584
|
-
},
|
|
8585
|
-
shouldUnescape: true,
|
|
8586
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, {
|
|
8587
|
-
color: "gray",
|
|
8588
|
-
className: NameTagStyle
|
|
8589
|
-
})
|
|
8590
|
-
})
|
|
8591
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8592
|
-
className: cx_default(Typo.Label.l4_regular, TipStyle$1),
|
|
8593
|
-
children: deleteTip || t2("dovetail.delete_tip")
|
|
8594
|
-
})]
|
|
8595
|
-
}),
|
|
8596
|
-
async onOk() {
|
|
8597
|
-
try {
|
|
8598
|
-
setDeleting(true);
|
|
8599
|
-
await mutateAsync({
|
|
8600
|
-
resource,
|
|
8601
|
-
id,
|
|
8602
|
-
successNotification() {
|
|
8603
|
-
return {
|
|
8604
|
-
message: t2("dovetail.delete_success_toast", {
|
|
8605
|
-
name: id,
|
|
8606
|
-
kind: resourceDisplayName,
|
|
8607
|
-
interpolation: {
|
|
8608
|
-
escapeValue: false
|
|
8609
|
-
}
|
|
8610
|
-
}).trim(),
|
|
8611
|
-
type: "success"
|
|
8612
|
-
};
|
|
8613
|
-
},
|
|
8614
|
-
errorNotification(error) {
|
|
8615
|
-
onError == null ? void 0 : onError(error);
|
|
8616
|
-
return false;
|
|
8569
|
+
function openDeleteConfirmModal(id) {
|
|
8570
|
+
pushModal({
|
|
8571
|
+
component: DeleteDialog,
|
|
8572
|
+
props: {
|
|
8573
|
+
title: t2("dovetail.delete_resource", {
|
|
8574
|
+
resource: resourceDisplayName
|
|
8575
|
+
}),
|
|
8576
|
+
description: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8577
|
+
Trans,
|
|
8578
|
+
{
|
|
8579
|
+
i18nKey: "dovetail.confirm_delete_text",
|
|
8580
|
+
tOptions: {
|
|
8581
|
+
target: id,
|
|
8582
|
+
kind: resourceDisplayName
|
|
8583
|
+
},
|
|
8584
|
+
shouldUnescape: true,
|
|
8585
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, { color: "gray", className: NameTagStyle })
|
|
8617
8586
|
}
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8587
|
+
),
|
|
8588
|
+
secondaryDesc: t2("dovetail.delete_tip"),
|
|
8589
|
+
okText: t2("dovetail.delete"),
|
|
8590
|
+
onOk: async (popModal2) => {
|
|
8591
|
+
try {
|
|
8592
|
+
await mutateAsync({
|
|
8593
|
+
resource,
|
|
8594
|
+
id,
|
|
8595
|
+
successNotification() {
|
|
8596
|
+
return {
|
|
8597
|
+
message: t2("dovetail.delete_success_toast", {
|
|
8598
|
+
name: id,
|
|
8599
|
+
kind: resourceDisplayName,
|
|
8600
|
+
interpolation: {
|
|
8601
|
+
escapeValue: false
|
|
8602
|
+
}
|
|
8603
|
+
}).trim(),
|
|
8604
|
+
type: "success"
|
|
8605
|
+
};
|
|
8606
|
+
},
|
|
8607
|
+
errorNotification(error) {
|
|
8608
|
+
onError == null ? void 0 : onError(id, error);
|
|
8609
|
+
return false;
|
|
8610
|
+
}
|
|
8611
|
+
});
|
|
8612
|
+
navigation.list(resource);
|
|
8613
|
+
popModal2();
|
|
8614
|
+
} finally {
|
|
8615
|
+
}
|
|
8616
|
+
},
|
|
8617
|
+
...deleteDialogProps
|
|
8623
8618
|
}
|
|
8624
|
-
}
|
|
8625
|
-
onCancel() {
|
|
8626
|
-
setVisible(false);
|
|
8627
|
-
}
|
|
8628
|
-
};
|
|
8629
|
-
function openDeleteConfirmModal(id2) {
|
|
8630
|
-
setId(id2);
|
|
8631
|
-
setVisible(true);
|
|
8619
|
+
});
|
|
8632
8620
|
}
|
|
8633
|
-
return {
|
|
8634
|
-
modalProps,
|
|
8635
|
-
visible,
|
|
8636
|
-
setVisible,
|
|
8637
|
-
openDeleteConfirmModal
|
|
8638
|
-
};
|
|
8621
|
+
return { openDeleteConfirmModal, closeDeleteConfirmModal: popModal };
|
|
8639
8622
|
};
|
|
8640
|
-
const button_1v659kh = "";
|
|
8641
|
-
const WarningButtonStyle = "wwyz7ti";
|
|
8642
|
-
const CloseButtonStyle = "c1xsou5f";
|
|
8643
|
-
const useFailedModal_ny0yrd = "";
|
|
8644
|
-
const TextStyle = "t56wb76";
|
|
8645
|
-
const TipStyle = "tnei7dl";
|
|
8646
8623
|
const useFailedModal = (resource) => {
|
|
8647
8624
|
const configs = useContext(ConfigsContext);
|
|
8648
8625
|
const config = configs[resource];
|
|
8649
|
-
const
|
|
8650
|
-
const
|
|
8651
|
-
const
|
|
8652
|
-
const {
|
|
8653
|
-
t: t2,
|
|
8654
|
-
i18n: i18n2
|
|
8655
|
-
} = useTranslation();
|
|
8626
|
+
const { t: t2, i18n: i18n2 } = useTranslation();
|
|
8627
|
+
const pushModal = usePushModal();
|
|
8628
|
+
const popModal = usePopModal();
|
|
8656
8629
|
const displayName = config.displayName || config.kind;
|
|
8657
8630
|
const resourceDisplayName = transformResourceKindInSentence(displayName, i18n2.language);
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8631
|
+
function openFailedModal(id, errorMsgs) {
|
|
8632
|
+
pushModal({
|
|
8633
|
+
component: RejectDialog,
|
|
8634
|
+
props: {
|
|
8635
|
+
title: t2("dovetail.cant_delete_resource", {
|
|
8636
|
+
resource: resourceDisplayName
|
|
8637
|
+
}),
|
|
8638
|
+
description: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8639
|
+
Trans,
|
|
8640
|
+
{
|
|
8641
|
+
i18nKey: "dovetail.cant_delete_resource_with_name",
|
|
8642
|
+
tOptions: {
|
|
8643
|
+
name: id,
|
|
8644
|
+
resource: resourceDisplayName
|
|
8645
|
+
},
|
|
8646
|
+
shouldUnescape: true,
|
|
8647
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, { color: "gray", className: NameTagStyle })
|
|
8648
|
+
}
|
|
8649
|
+
),
|
|
8650
|
+
type: RejectDialogType.Single,
|
|
8651
|
+
content: errorMsgs,
|
|
8652
|
+
cancelText: t2("dovetail.close")
|
|
8653
|
+
}
|
|
8654
|
+
});
|
|
8655
|
+
}
|
|
8656
|
+
function closeFailedModal() {
|
|
8657
|
+
popModal();
|
|
8658
|
+
}
|
|
8659
|
+
return { openFailedModal, closeFailedModal };
|
|
8660
|
+
};
|
|
8661
|
+
const useDeleteModal = ({
|
|
8662
|
+
resourceName,
|
|
8663
|
+
deleteDialogProps
|
|
8664
|
+
}) => {
|
|
8665
|
+
const { i18n: i18n2 } = useTranslation();
|
|
8666
|
+
const configs = useContext(ConfigsContext);
|
|
8667
|
+
const config = configs[resourceName];
|
|
8668
|
+
const { openFailedModal } = useFailedModal(resourceName);
|
|
8669
|
+
const { openDeleteConfirmModal, closeDeleteConfirmModal } = useDeleteModalOnly({
|
|
8670
|
+
resource: resourceName,
|
|
8671
|
+
deleteDialogProps: { secondaryDesc: config.deleteTip, ...deleteDialogProps },
|
|
8672
|
+
onError: async (id, error) => {
|
|
8673
|
+
closeDeleteConfirmModal();
|
|
8674
|
+
openFailedModal(id, getCommonErrors(await (error == null ? void 0 : error.response.json()), i18n2));
|
|
8675
|
+
}
|
|
8676
|
+
});
|
|
8677
|
+
return { openDeleteConfirmModal, closeDeleteConfirmModal };
|
|
8678
|
+
};
|
|
8679
|
+
var cx = function cx2() {
|
|
8680
|
+
const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
|
|
8681
|
+
const atomicClasses = {};
|
|
8682
|
+
const nonAtomicClasses = [];
|
|
8683
|
+
presentClassNames.forEach((arg) => {
|
|
8684
|
+
const individualClassNames = arg ? arg.split(" ") : [];
|
|
8685
|
+
individualClassNames.forEach((className) => {
|
|
8686
|
+
if (className.startsWith("atm_")) {
|
|
8687
|
+
const [, keyHash] = className.split("_");
|
|
8688
|
+
atomicClasses[keyHash] = className;
|
|
8689
|
+
} else {
|
|
8690
|
+
nonAtomicClasses.push(className);
|
|
8691
|
+
}
|
|
8692
|
+
});
|
|
8693
|
+
});
|
|
8694
|
+
const result = [];
|
|
8695
|
+
for (const keyHash in atomicClasses) {
|
|
8696
|
+
if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
|
|
8697
|
+
result.push(atomicClasses[keyHash]);
|
|
8694
8698
|
}
|
|
8695
|
-
};
|
|
8696
|
-
function openFailedModal(id2, errorMsgs2) {
|
|
8697
|
-
setId(id2);
|
|
8698
|
-
setErrorMsgs(errorMsgs2);
|
|
8699
|
-
setVisible(true);
|
|
8700
8699
|
}
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
visible,
|
|
8704
|
-
openFailedModal
|
|
8705
|
-
};
|
|
8700
|
+
result.push(...nonAtomicClasses);
|
|
8701
|
+
return result.join(" ");
|
|
8706
8702
|
};
|
|
8703
|
+
var cx_default = cx;
|
|
8707
8704
|
const index_18b69qa = "";
|
|
8708
8705
|
const EMPTY_VALUES = [void 0, null, "", "-"];
|
|
8709
8706
|
const EmptyStyle = "e5223w8";
|
|
@@ -9453,53 +9450,6 @@ var AccessControlAuth = /* @__PURE__ */ ((AccessControlAuth2) => {
|
|
|
9453
9450
|
AccessControlAuth2["Create"] = "Create";
|
|
9454
9451
|
return AccessControlAuth2;
|
|
9455
9452
|
})(AccessControlAuth || {});
|
|
9456
|
-
function getCommonErrors(responseBody, i18n2) {
|
|
9457
|
-
var _a;
|
|
9458
|
-
if (!((responseBody == null ? void 0 : responseBody.message) || (responseBody == null ? void 0 : responseBody.code) || (responseBody == null ? void 0 : responseBody.reason) || (responseBody == null ? void 0 : responseBody.details) || (responseBody == null ? void 0 : responseBody.graphQLErrors))) {
|
|
9459
|
-
return [];
|
|
9460
|
-
}
|
|
9461
|
-
const causes = ((_a = responseBody.details) == null ? void 0 : _a.causes) || responseBody.graphQLErrors || [];
|
|
9462
|
-
if (causes.length) {
|
|
9463
|
-
return causes.map((cause) => {
|
|
9464
|
-
let params = {};
|
|
9465
|
-
let message2 = cause.message;
|
|
9466
|
-
try {
|
|
9467
|
-
const info = JSON.parse(cause.message);
|
|
9468
|
-
params = info.params;
|
|
9469
|
-
message2 = info.message;
|
|
9470
|
-
} catch {
|
|
9471
|
-
return i18n2.t(
|
|
9472
|
-
[
|
|
9473
|
-
`error.${cause.reason}`,
|
|
9474
|
-
`error.${cause.code}`,
|
|
9475
|
-
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
9476
|
-
],
|
|
9477
|
-
{
|
|
9478
|
-
...params,
|
|
9479
|
-
fallbackLng: ""
|
|
9480
|
-
}
|
|
9481
|
-
);
|
|
9482
|
-
}
|
|
9483
|
-
return i18n2.t(
|
|
9484
|
-
[
|
|
9485
|
-
`error.${cause.reason}`,
|
|
9486
|
-
`error.${cause.code}`,
|
|
9487
|
-
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
9488
|
-
],
|
|
9489
|
-
{
|
|
9490
|
-
...params,
|
|
9491
|
-
fallbackLng: ""
|
|
9492
|
-
}
|
|
9493
|
-
);
|
|
9494
|
-
});
|
|
9495
|
-
}
|
|
9496
|
-
return [
|
|
9497
|
-
i18n2.t(
|
|
9498
|
-
[`error.${responseBody.code}`, `error.${responseBody.reason}`, responseBody.message || ""],
|
|
9499
|
-
{ fallbackLng: "" }
|
|
9500
|
-
)
|
|
9501
|
-
];
|
|
9502
|
-
}
|
|
9503
9453
|
function useSubmitForm(options) {
|
|
9504
9454
|
const { formRef, onSubmitSuccess } = options;
|
|
9505
9455
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -9540,6 +9490,9 @@ function useSubmitForm(options) {
|
|
|
9540
9490
|
onSubmit
|
|
9541
9491
|
};
|
|
9542
9492
|
}
|
|
9493
|
+
const modal_1eijuvm = "";
|
|
9494
|
+
const FullscreenModalStyle = "fq4465w";
|
|
9495
|
+
const SmallModalStyle = "s1nc293e";
|
|
9543
9496
|
const index_10dq51k = "";
|
|
9544
9497
|
const EditButtonStyle = "esoz3jw";
|
|
9545
9498
|
function EditFieldModal(props) {
|
|
@@ -11501,19 +11454,8 @@ function K8sDropdown(props) {
|
|
|
11501
11454
|
const resource = useResourceResult.resource;
|
|
11502
11455
|
const configs = useContext(ConfigsContext);
|
|
11503
11456
|
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
11504
|
-
const { t: t2
|
|
11505
|
-
const {
|
|
11506
|
-
const { modalProps: deleteModalProps, visible: deleteModalVisible, openDeleteConfirmModal, setVisible: setDeleteModalVisible } = useDeleteModal(
|
|
11507
|
-
(resource == null ? void 0 : resource.name) || "",
|
|
11508
|
-
{
|
|
11509
|
-
deleteTip: config.deleteTip,
|
|
11510
|
-
onError: async (error) => {
|
|
11511
|
-
console.log(error);
|
|
11512
|
-
setDeleteModalVisible(false);
|
|
11513
|
-
openFailedModal(record.id, getCommonErrors(await error.response.json(), i18n2));
|
|
11514
|
-
}
|
|
11515
|
-
}
|
|
11516
|
-
);
|
|
11457
|
+
const { t: t2 } = useTranslation();
|
|
11458
|
+
const { openDeleteConfirmModal } = useDeleteModal({ resourceName: (resource == null ? void 0 : resource.name) || "" });
|
|
11517
11459
|
const download2 = useDownloadYAML();
|
|
11518
11460
|
const openForm = useOpenForm({ id: record.id });
|
|
11519
11461
|
const isInShowPage = useResourceResult.action === "show";
|
|
@@ -11526,62 +11468,58 @@ function K8sDropdown(props) {
|
|
|
11526
11468
|
action: AccessControlAuth.Delete
|
|
11527
11469
|
});
|
|
11528
11470
|
const formType = ((_a = config.formConfig) == null ? void 0 : _a.formType) || FormType.FORM;
|
|
11529
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
{
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
Menu$1.Item,
|
|
11537
|
-
{
|
|
11538
|
-
onClick: () => {
|
|
11539
|
-
var _a2;
|
|
11540
|
-
if (record.id) {
|
|
11541
|
-
download2({
|
|
11542
|
-
name: ((_a2 = record.metadata) == null ? void 0 : _a2.name) || record.kind || "",
|
|
11543
|
-
item: omit$1((globalStore == null ? void 0 : globalStore.restoreItem(record)) || record, "id")
|
|
11544
|
-
});
|
|
11545
|
-
}
|
|
11546
|
-
},
|
|
11547
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: Download16GradientBlueIcon, children: t2("dovetail.download_yaml") })
|
|
11548
|
-
}
|
|
11549
|
-
),
|
|
11550
|
-
props.children,
|
|
11551
|
-
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { style: { margin: 0 } }) : null,
|
|
11552
|
-
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11553
|
-
Menu$1.Item,
|
|
11554
|
-
{
|
|
11555
|
-
danger: true,
|
|
11556
|
-
onClick: () => {
|
|
11557
|
-
openDeleteConfirmModal(record.id);
|
|
11558
|
-
},
|
|
11559
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: TrashBinDelete16Icon, children: t2("dovetail.delete") })
|
|
11560
|
-
}
|
|
11561
|
-
) : null
|
|
11562
|
-
] }),
|
|
11563
|
-
trigger: ["click"],
|
|
11564
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11565
|
-
Button,
|
|
11471
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11472
|
+
Dropdown,
|
|
11473
|
+
{
|
|
11474
|
+
overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(Menu$1, { children: [
|
|
11475
|
+
isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false || config.hideEdit ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, { onClick: openForm, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16PrimaryIcon, children: formType === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
|
|
11476
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11477
|
+
Menu$1.Item,
|
|
11566
11478
|
{
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
iconWidth: 24,
|
|
11575
|
-
iconHeight: 24
|
|
11479
|
+
onClick: () => {
|
|
11480
|
+
var _a2;
|
|
11481
|
+
if (record.id) {
|
|
11482
|
+
download2({
|
|
11483
|
+
name: ((_a2 = record.metadata) == null ? void 0 : _a2.name) || record.kind || "",
|
|
11484
|
+
item: omit$1((globalStore == null ? void 0 : globalStore.restoreItem(record)) || record, "id")
|
|
11485
|
+
});
|
|
11576
11486
|
}
|
|
11577
|
-
|
|
11487
|
+
},
|
|
11488
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: Download16GradientBlueIcon, children: t2("dovetail.download_yaml") })
|
|
11578
11489
|
}
|
|
11579
|
-
)
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11490
|
+
),
|
|
11491
|
+
props.children,
|
|
11492
|
+
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { style: { margin: 0 } }) : null,
|
|
11493
|
+
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11494
|
+
Menu$1.Item,
|
|
11495
|
+
{
|
|
11496
|
+
danger: true,
|
|
11497
|
+
onClick: () => {
|
|
11498
|
+
openDeleteConfirmModal(record.id);
|
|
11499
|
+
},
|
|
11500
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: TrashBinDelete16Icon, children: t2("dovetail.delete") })
|
|
11501
|
+
}
|
|
11502
|
+
) : null
|
|
11503
|
+
] }),
|
|
11504
|
+
trigger: ["click"],
|
|
11505
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11506
|
+
Button,
|
|
11507
|
+
{
|
|
11508
|
+
type: "quiet",
|
|
11509
|
+
size: size === "large" ? "middle" : "small",
|
|
11510
|
+
prefixIcon: size === "large" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11511
|
+
Icon$1,
|
|
11512
|
+
{
|
|
11513
|
+
src: MoreEllipsis324BoldSecondaryIcon,
|
|
11514
|
+
hoverSrc: MoreEllipsis324BoldBlueIcon,
|
|
11515
|
+
iconWidth: 24,
|
|
11516
|
+
iconHeight: 24
|
|
11517
|
+
}
|
|
11518
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: MoreEllipsis316BoldBlueIcon })
|
|
11519
|
+
}
|
|
11520
|
+
)
|
|
11521
|
+
}
|
|
11522
|
+
) });
|
|
11585
11523
|
}
|
|
11586
11524
|
var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
|
|
11587
11525
|
ColumnKeys2["age"] = "age";
|
|
@@ -11974,7 +11912,8 @@ const ResourceLink = (props) => {
|
|
|
11974
11912
|
resourceKind: resourceName,
|
|
11975
11913
|
namespace: namespace2,
|
|
11976
11914
|
name: resourceId,
|
|
11977
|
-
uid
|
|
11915
|
+
uid,
|
|
11916
|
+
displayName
|
|
11978
11917
|
} = props;
|
|
11979
11918
|
const navigation = useNavigation();
|
|
11980
11919
|
const go = useGo();
|
|
@@ -11993,8 +11932,8 @@ const ResourceLink = (props) => {
|
|
|
11993
11932
|
return resourceId ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
11994
11933
|
className: LinkStyle,
|
|
11995
11934
|
onClick,
|
|
11996
|
-
title: resourceId,
|
|
11997
|
-
children: resourceId
|
|
11935
|
+
title: displayName || resourceId,
|
|
11936
|
+
children: displayName || resourceId
|
|
11998
11937
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
11999
11938
|
value: ""
|
|
12000
11939
|
});
|
|
@@ -12383,7 +12322,7 @@ const ShowContent = (props) => {
|
|
|
12383
12322
|
},
|
|
12384
12323
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12385
12324
|
className: cx_default(Typo.Display.d2_regular_title, NameStyle),
|
|
12386
|
-
children: (_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name
|
|
12325
|
+
children: showConfig.displayName || ((_c = record == null ? void 0 : record.metadata) == null ? void 0 : _c.name)
|
|
12387
12326
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
12388
12327
|
state: stateDisplay,
|
|
12389
12328
|
customResourceStateMap: showConfig.resourceStateMap
|
|
@@ -19573,15 +19512,19 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19573
19512
|
} = props;
|
|
19574
19513
|
const uri = id ? monaco.Uri.parse(`${id}.yaml`) : void 0;
|
|
19575
19514
|
useEffect(() => {
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19515
|
+
if (!window._MonacoSchemaMap) {
|
|
19516
|
+
window._MonacoSchemaMap = /* @__PURE__ */ new Map();
|
|
19517
|
+
}
|
|
19518
|
+
window._MonacoSchemaMap.set(id || "", {
|
|
19519
|
+
// Id of the first schema
|
|
19520
|
+
uri: String(uri),
|
|
19521
|
+
// Associate with our model
|
|
19522
|
+
fileMatch: [String(uri)],
|
|
19523
|
+
schema: {
|
|
19524
|
+
oneOf: schemas || [{ type: "object" }]
|
|
19583
19525
|
}
|
|
19584
|
-
|
|
19526
|
+
});
|
|
19527
|
+
const finalSchemas = [...window._MonacoSchemaMap.values()];
|
|
19585
19528
|
setDiagnosticsOptions({
|
|
19586
19529
|
enableSchemaRequest: false,
|
|
19587
19530
|
validate: true,
|
|
@@ -19602,13 +19545,15 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19602
19545
|
tabSize: 2,
|
|
19603
19546
|
lineNumbersMinChars: 7,
|
|
19604
19547
|
readOnly,
|
|
19605
|
-
autoIndent: {}.VITE_IS_TEST ? "none" : "advanced"
|
|
19548
|
+
autoIndent: {}.VITE_IS_TEST ? "none" : "advanced",
|
|
19549
|
+
theme: "vs"
|
|
19606
19550
|
});
|
|
19607
19551
|
instanceRef.current.editor = editor;
|
|
19608
19552
|
getInstance == null ? void 0 : getInstance(editor);
|
|
19609
19553
|
onEditorCreate == null ? void 0 : onEditorCreate(editor);
|
|
19610
19554
|
return () => {
|
|
19611
19555
|
instanceRef.current.editor = null;
|
|
19556
|
+
window._MonacoSchemaMap.delete(id || "");
|
|
19612
19557
|
model.dispose();
|
|
19613
19558
|
editor.dispose();
|
|
19614
19559
|
};
|
|
@@ -19625,7 +19570,7 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19625
19570
|
stop.dispose();
|
|
19626
19571
|
};
|
|
19627
19572
|
}
|
|
19628
|
-
}, [onChange
|
|
19573
|
+
}, [onChange]);
|
|
19629
19574
|
useEffect(() => {
|
|
19630
19575
|
const editor = instanceRef.current.editor;
|
|
19631
19576
|
if (editor) {
|
|
@@ -19659,7 +19604,7 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19659
19604
|
stop.dispose();
|
|
19660
19605
|
};
|
|
19661
19606
|
}
|
|
19662
|
-
}, [onValidate
|
|
19607
|
+
}, [onValidate]);
|
|
19663
19608
|
useEffect(() => {
|
|
19664
19609
|
const editor = instanceRef.current.editor;
|
|
19665
19610
|
if (editor) {
|
|
@@ -19672,7 +19617,7 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19672
19617
|
stop.dispose();
|
|
19673
19618
|
};
|
|
19674
19619
|
}
|
|
19675
|
-
}, [onBlur
|
|
19620
|
+
}, [onBlur]);
|
|
19676
19621
|
useEffect(() => {
|
|
19677
19622
|
const editor = instanceRef.current.editor;
|
|
19678
19623
|
const stops = [];
|
|
@@ -19699,7 +19644,7 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
19699
19644
|
return () => {
|
|
19700
19645
|
stops.forEach((stop) => stop.dispose());
|
|
19701
19646
|
};
|
|
19702
|
-
}, [
|
|
19647
|
+
}, [isScrollOnFocus]);
|
|
19703
19648
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19704
19649
|
"div",
|
|
19705
19650
|
{
|
|
@@ -36287,7 +36232,7 @@ function ListPage(props) {
|
|
|
36287
36232
|
style: config.hideNamespacesFilter ? {
|
|
36288
36233
|
paddingTop: 0
|
|
36289
36234
|
} : {},
|
|
36290
|
-
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
36235
|
+
children: [!config.hideNamespacesFilter ? config.customNamespaceFilter || /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
36291
36236
|
className: NamespaceFilterStyle
|
|
36292
36237
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
36293
36238
|
className: TableStyle,
|
|
@@ -36337,6 +36282,8 @@ function ResourceShow(props) {
|
|
|
36337
36282
|
}
|
|
36338
36283
|
);
|
|
36339
36284
|
}
|
|
36285
|
+
const button_1v659kh = "";
|
|
36286
|
+
const WarningButtonStyle = "wwyz7ti";
|
|
36340
36287
|
function FormModeSegmentControl({
|
|
36341
36288
|
formConfig,
|
|
36342
36289
|
mode,
|
|
@@ -38845,33 +38792,36 @@ const Separator = () => {
|
|
|
38845
38792
|
});
|
|
38846
38793
|
};
|
|
38847
38794
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38848
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38795
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-fe64524b.js"));
|
|
38849
38796
|
const YamlEditorComponent = forwardRef(
|
|
38850
38797
|
function YamlEditorComponent2(props, ref) {
|
|
38851
38798
|
const {
|
|
38852
38799
|
title,
|
|
38853
38800
|
collapsable = true,
|
|
38854
38801
|
isDefaultCollapsed,
|
|
38802
|
+
value: value2,
|
|
38855
38803
|
defaultValue = "",
|
|
38856
38804
|
height,
|
|
38857
38805
|
readOnly,
|
|
38858
38806
|
errorMsgs = [],
|
|
38859
38807
|
schemas,
|
|
38860
38808
|
eleRef,
|
|
38861
|
-
className
|
|
38809
|
+
className,
|
|
38810
|
+
debounceTime,
|
|
38811
|
+
isScrollOnFocus = true
|
|
38862
38812
|
} = props;
|
|
38863
38813
|
const { t: t2 } = useTranslation();
|
|
38864
38814
|
const [isCollapsed, setIsCollapsed] = useState(
|
|
38865
38815
|
collapsable ? isDefaultCollapsed : false
|
|
38866
38816
|
);
|
|
38867
38817
|
const [isDiff, setIsDiff] = useState(false);
|
|
38868
|
-
const [
|
|
38818
|
+
const [_value, _setValue] = useState(value2 || defaultValue);
|
|
38869
38819
|
const editorInstance = useRef();
|
|
38870
38820
|
const [copyTooltip, setCopyTooltip] = useState(t2("dovetail.copy"));
|
|
38871
38821
|
const [resetTooltip, setResetTooltip] = useState(t2("dovetail.reset_arguments"));
|
|
38872
38822
|
useImperativeHandle(ref, () => {
|
|
38873
38823
|
return {
|
|
38874
|
-
setValue,
|
|
38824
|
+
setValue: _setValue,
|
|
38875
38825
|
setEditorValue: (value22) => {
|
|
38876
38826
|
var _a, _b;
|
|
38877
38827
|
(_b = (_a = editorInstance.current) == null ? void 0 : _a.getModel()) == null ? void 0 : _b.setValue(value22);
|
|
@@ -38886,11 +38836,14 @@ const YamlEditorComponent = forwardRef(
|
|
|
38886
38836
|
const onChange = useCallback(
|
|
38887
38837
|
(newVal) => {
|
|
38888
38838
|
var _a;
|
|
38889
|
-
|
|
38839
|
+
_setValue(newVal);
|
|
38890
38840
|
(_a = props.onChange) == null ? void 0 : _a.call(props, newVal);
|
|
38891
38841
|
},
|
|
38892
38842
|
[props.onChange]
|
|
38893
38843
|
);
|
|
38844
|
+
const finalOnChange = useMemo(() => {
|
|
38845
|
+
return debounceTime ? debounce(onChange, debounceTime) : onChange;
|
|
38846
|
+
}, [onChange, debounceTime]);
|
|
38894
38847
|
const onValidate = useCallback(
|
|
38895
38848
|
(valid, schemaValid) => {
|
|
38896
38849
|
var _a;
|
|
@@ -38901,16 +38854,23 @@ const YamlEditorComponent = forwardRef(
|
|
|
38901
38854
|
const onEditorCreate = useCallback(
|
|
38902
38855
|
(editor) => {
|
|
38903
38856
|
var _a, _b, _c;
|
|
38904
|
-
if (editor.getValue() !==
|
|
38905
|
-
(_b = (_a = editorInstance.current) == null ? void 0 : _a.getModel()) == null ? void 0 : _b.setValue(
|
|
38857
|
+
if (editor.getValue() !== _value) {
|
|
38858
|
+
(_b = (_a = editorInstance.current) == null ? void 0 : _a.getModel()) == null ? void 0 : _b.setValue(_value);
|
|
38906
38859
|
}
|
|
38907
38860
|
(_c = props.onEditorCreate) == null ? void 0 : _c.call(props, editor);
|
|
38908
38861
|
},
|
|
38909
|
-
[
|
|
38862
|
+
[_value, props.onEditorCreate]
|
|
38910
38863
|
);
|
|
38911
38864
|
const getInstance = useCallback((ins) => {
|
|
38912
38865
|
editorInstance.current = ins;
|
|
38913
38866
|
}, []);
|
|
38867
|
+
useEffect(() => {
|
|
38868
|
+
var _a, _b;
|
|
38869
|
+
if (value2 !== void 0 && value2 !== _value) {
|
|
38870
|
+
_setValue(value2);
|
|
38871
|
+
(_b = (_a = editorInstance.current) == null ? void 0 : _a.getModel()) == null ? void 0 : _b.setValue(value2);
|
|
38872
|
+
}
|
|
38873
|
+
}, [value2]);
|
|
38914
38874
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
38915
38875
|
"div",
|
|
38916
38876
|
{
|
|
@@ -38964,7 +38924,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
38964
38924
|
iconHeight: 16,
|
|
38965
38925
|
onClick: () => {
|
|
38966
38926
|
if (!isCollapsed) {
|
|
38967
|
-
copyToClipboard(
|
|
38927
|
+
copyToClipboard(_value);
|
|
38968
38928
|
setCopyTooltip(t2("dovetail.copied"));
|
|
38969
38929
|
}
|
|
38970
38930
|
}
|
|
@@ -39057,27 +39017,28 @@ const YamlEditorComponent = forwardRef(
|
|
|
39057
39017
|
zIndex: 1
|
|
39058
39018
|
},
|
|
39059
39019
|
children: [
|
|
39060
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: PlainCodeStyle, children:
|
|
39020
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: PlainCodeStyle, children: _value }), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { display: isDiff ? "none" : "block" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39061
39021
|
MonacoYamlEditor,
|
|
39062
39022
|
{
|
|
39063
39023
|
id: props.id,
|
|
39064
39024
|
getInstance,
|
|
39065
|
-
defaultValue:
|
|
39025
|
+
defaultValue: _value,
|
|
39066
39026
|
height,
|
|
39067
|
-
onChange,
|
|
39027
|
+
onChange: finalOnChange,
|
|
39068
39028
|
onValidate,
|
|
39069
39029
|
onEditorCreate,
|
|
39070
39030
|
onBlur: props.onBlur,
|
|
39071
39031
|
schemas,
|
|
39072
|
-
readOnly
|
|
39032
|
+
readOnly,
|
|
39033
|
+
isScrollOnFocus
|
|
39073
39034
|
}
|
|
39074
39035
|
) }) }),
|
|
39075
|
-
isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: PlainCodeStyle, children:
|
|
39036
|
+
isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: PlainCodeStyle, children: _value }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39076
39037
|
MonacoYamlDiffEditor,
|
|
39077
39038
|
{
|
|
39078
39039
|
id: props.id,
|
|
39079
39040
|
origin: defaultValue,
|
|
39080
|
-
modified:
|
|
39041
|
+
modified: _value,
|
|
39081
39042
|
height
|
|
39082
39043
|
}
|
|
39083
39044
|
) }) : null
|
|
@@ -40293,13 +40254,16 @@ const DeleteButton = () => {
|
|
|
40293
40254
|
const { resource } = useResource();
|
|
40294
40255
|
const { id } = useParsed();
|
|
40295
40256
|
const { t: t2 } = useTranslation();
|
|
40296
|
-
const {
|
|
40297
|
-
|
|
40298
|
-
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
|
|
40302
|
-
|
|
40257
|
+
const { openDeleteConfirmModal } = useDeleteModal({ resourceName: (resource == null ? void 0 : resource.name) || "" });
|
|
40258
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
40259
|
+
Button,
|
|
40260
|
+
{
|
|
40261
|
+
type: "primary",
|
|
40262
|
+
danger: true,
|
|
40263
|
+
onClick: () => openDeleteConfirmModal(id || ""),
|
|
40264
|
+
children: t2("dovetail.delete")
|
|
40265
|
+
}
|
|
40266
|
+
) });
|
|
40303
40267
|
};
|
|
40304
40268
|
const index_1tehui8 = "";
|
|
40305
40269
|
const MenuStyle = "mdppgn0";
|
|
@@ -41453,265 +41417,266 @@ const relationPlugin = new RelationPlugin();
|
|
|
41453
41417
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
41454
41418
|
const dovetailRefineI18n = i18n;
|
|
41455
41419
|
export {
|
|
41456
|
-
|
|
41420
|
+
useGlobalStore as $,
|
|
41457
41421
|
AgeColumnRenderer as A,
|
|
41458
|
-
|
|
41422
|
+
ProvisionerColumnRenderer as B,
|
|
41459
41423
|
CommonSorter as C,
|
|
41460
41424
|
DurationColumnRenderer as D,
|
|
41461
|
-
|
|
41462
|
-
|
|
41463
|
-
|
|
41464
|
-
|
|
41425
|
+
PVCapacityColumnRenderer as E,
|
|
41426
|
+
PVCStorageColumnRenderer as F,
|
|
41427
|
+
PVRefColumnRenderer as G,
|
|
41428
|
+
PVStorageClassColumnRenderer as H,
|
|
41465
41429
|
IngressRulesColumnRenderer as I,
|
|
41466
|
-
|
|
41467
|
-
|
|
41468
|
-
|
|
41469
|
-
|
|
41430
|
+
PVPhaseColumnRenderer as J,
|
|
41431
|
+
PVCRefColumnRenderer as K,
|
|
41432
|
+
PVCSIRefColumnRenderer as L,
|
|
41433
|
+
PVVolumeModeColumnRenderer as M,
|
|
41470
41434
|
NameColumnRenderer as N,
|
|
41471
|
-
|
|
41435
|
+
PVAccessModeColumnRenderer as O,
|
|
41472
41436
|
PlainTextNameColumnRenderer as P,
|
|
41473
|
-
|
|
41437
|
+
IsDefaultSCColumnRenderer as Q,
|
|
41474
41438
|
ReplicasColumnRenderer as R,
|
|
41475
41439
|
StateDisplayColumnRenderer as S,
|
|
41476
|
-
|
|
41477
|
-
|
|
41478
|
-
|
|
41440
|
+
SCReclaimPolicyColumnRenderer as T,
|
|
41441
|
+
SCAllowExpandColumnRenderer as U,
|
|
41442
|
+
ColumnKeys as V,
|
|
41479
41443
|
WorkloadImageColumnRenderer as W,
|
|
41480
|
-
|
|
41481
|
-
|
|
41482
|
-
|
|
41483
|
-
|
|
41444
|
+
addDefaultRenderToColumns as X,
|
|
41445
|
+
useEagleTable as Y,
|
|
41446
|
+
useDownloadYAML as Z,
|
|
41447
|
+
useEdit as _,
|
|
41484
41448
|
useApiGroupSchema as a,
|
|
41485
|
-
|
|
41486
|
-
|
|
41487
|
-
|
|
41488
|
-
|
|
41489
|
-
|
|
41490
|
-
|
|
41491
|
-
|
|
41492
|
-
|
|
41493
|
-
|
|
41494
|
-
|
|
41495
|
-
|
|
41496
|
-
|
|
41497
|
-
|
|
41498
|
-
|
|
41499
|
-
|
|
41500
|
-
|
|
41501
|
-
|
|
41502
|
-
|
|
41503
|
-
|
|
41504
|
-
|
|
41505
|
-
|
|
41506
|
-
|
|
41507
|
-
|
|
41508
|
-
|
|
41509
|
-
|
|
41510
|
-
|
|
41511
|
-
|
|
41512
|
-
|
|
41513
|
-
|
|
41514
|
-
|
|
41515
|
-
|
|
41516
|
-
|
|
41517
|
-
|
|
41518
|
-
|
|
41519
|
-
|
|
41520
|
-
|
|
41521
|
-
|
|
41522
|
-
|
|
41523
|
-
|
|
41524
|
-
|
|
41525
|
-
|
|
41526
|
-
|
|
41527
|
-
|
|
41528
|
-
|
|
41529
|
-
|
|
41530
|
-
|
|
41531
|
-
|
|
41532
|
-
|
|
41533
|
-
|
|
41534
|
-
|
|
41535
|
-
|
|
41536
|
-
|
|
41537
|
-
|
|
41538
|
-
|
|
41539
|
-
|
|
41540
|
-
|
|
41541
|
-
|
|
41542
|
-
|
|
41543
|
-
|
|
41544
|
-
|
|
41545
|
-
|
|
41546
|
-
|
|
41547
|
-
|
|
41548
|
-
|
|
41449
|
+
ServiceInnerClusterAccessField as a$,
|
|
41450
|
+
useOpenForm as a0,
|
|
41451
|
+
index as a1,
|
|
41452
|
+
WidgetErrorContent as a2,
|
|
41453
|
+
Breadcrumb as a3,
|
|
41454
|
+
NameInputWidget as a4,
|
|
41455
|
+
dnsSubDomainRules as a5,
|
|
41456
|
+
rfc1123LabelRules as a6,
|
|
41457
|
+
rfc1035LabelRules as a7,
|
|
41458
|
+
NamespaceSelectWidget as a8,
|
|
41459
|
+
namespaceRules as a9,
|
|
41460
|
+
KeyValue as aA,
|
|
41461
|
+
KeyValueAnnotation as aB,
|
|
41462
|
+
KeyValueSecret as aC,
|
|
41463
|
+
Separator as aD,
|
|
41464
|
+
YamlEditorComponent as aE,
|
|
41465
|
+
DeleteButton as aF,
|
|
41466
|
+
Layout as aG,
|
|
41467
|
+
AreaType as aH,
|
|
41468
|
+
ImageField as aI,
|
|
41469
|
+
ReplicaField as aJ,
|
|
41470
|
+
ConditionsField as aK,
|
|
41471
|
+
NodeTaintsField as aL,
|
|
41472
|
+
PodsField as aM,
|
|
41473
|
+
JobsField as aN,
|
|
41474
|
+
DataField as aO,
|
|
41475
|
+
SecretDataField as aP,
|
|
41476
|
+
StartTimeField as aQ,
|
|
41477
|
+
ServiceTypeField as aR,
|
|
41478
|
+
ClusterIpField as aS,
|
|
41479
|
+
SessionAffinityField as aT,
|
|
41480
|
+
ServicePodsField as aU,
|
|
41481
|
+
IngressRulesTableTabField as aV,
|
|
41482
|
+
EventsTableTabField as aW,
|
|
41483
|
+
NamespaceField as aX,
|
|
41484
|
+
AgeField as aY,
|
|
41485
|
+
LabelsField as aZ,
|
|
41486
|
+
AnnotationsField as a_,
|
|
41487
|
+
KeyValueListWidget as aa,
|
|
41488
|
+
MetadataForm as ab,
|
|
41489
|
+
PageShow as ac,
|
|
41490
|
+
Time as ad,
|
|
41491
|
+
ConditionsTable as ae,
|
|
41492
|
+
FormErrorAlert as af,
|
|
41493
|
+
PodContainersTable as ag,
|
|
41494
|
+
WorkloadDropdown as ah,
|
|
41495
|
+
ReplicasDropdown as ai,
|
|
41496
|
+
PodDropdown as aj,
|
|
41497
|
+
CreateButton as ak,
|
|
41498
|
+
ImageNames as al,
|
|
41499
|
+
ResourceList as am,
|
|
41500
|
+
ResourceShow as an,
|
|
41501
|
+
ResourceForm as ao,
|
|
41502
|
+
ResourceCRUD as ap,
|
|
41503
|
+
WorkloadPodsTable as aq,
|
|
41504
|
+
CronJobDropdown as ar,
|
|
41505
|
+
K8sDropdown as as,
|
|
41506
|
+
EditLabelDropdownMenuItem as at,
|
|
41507
|
+
EditAnnotationDropdownMenuItem as au,
|
|
41508
|
+
EditNodeTaintDropdownMenuItem as av,
|
|
41509
|
+
ResourceUsageBar as aw,
|
|
41510
|
+
WorkloadReplicasForm as ax,
|
|
41511
|
+
WorkloadReplicas as ay,
|
|
41512
|
+
CronjobJobsTable as az,
|
|
41549
41513
|
useSchema as b,
|
|
41550
|
-
|
|
41551
|
-
|
|
41552
|
-
|
|
41553
|
-
|
|
41554
|
-
|
|
41555
|
-
|
|
41556
|
-
|
|
41557
|
-
|
|
41558
|
-
|
|
41559
|
-
|
|
41560
|
-
|
|
41561
|
-
|
|
41562
|
-
|
|
41563
|
-
|
|
41564
|
-
|
|
41565
|
-
|
|
41566
|
-
|
|
41567
|
-
|
|
41568
|
-
|
|
41569
|
-
|
|
41570
|
-
|
|
41571
|
-
|
|
41572
|
-
|
|
41573
|
-
|
|
41574
|
-
|
|
41575
|
-
|
|
41576
|
-
|
|
41577
|
-
|
|
41578
|
-
|
|
41579
|
-
|
|
41580
|
-
|
|
41581
|
-
|
|
41582
|
-
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
|
|
41586
|
-
|
|
41587
|
-
|
|
41588
|
-
|
|
41589
|
-
|
|
41590
|
-
|
|
41591
|
-
|
|
41592
|
-
|
|
41593
|
-
|
|
41594
|
-
|
|
41595
|
-
|
|
41596
|
-
|
|
41597
|
-
|
|
41598
|
-
|
|
41599
|
-
|
|
41600
|
-
|
|
41601
|
-
|
|
41602
|
-
|
|
41603
|
-
|
|
41604
|
-
|
|
41605
|
-
|
|
41606
|
-
|
|
41607
|
-
|
|
41608
|
-
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41612
|
-
|
|
41613
|
-
|
|
41514
|
+
Tags as b$,
|
|
41515
|
+
ServiceOutClusterAccessField as b0,
|
|
41516
|
+
PodSelectorField as b1,
|
|
41517
|
+
PortsTableField as b2,
|
|
41518
|
+
DurationField as b3,
|
|
41519
|
+
StorageClassProvisionerField as b4,
|
|
41520
|
+
StorageClassPvField as b5,
|
|
41521
|
+
PVCapacityField as b6,
|
|
41522
|
+
PVCStorageField as b7,
|
|
41523
|
+
PVRefField as b8,
|
|
41524
|
+
PVStorageClassField as b9,
|
|
41525
|
+
NetworkPolicyEgressRulesGroup as bA,
|
|
41526
|
+
StorageClassPvGroup as bB,
|
|
41527
|
+
ResourceTableGroup as bC,
|
|
41528
|
+
ShowGroupComponent as bD,
|
|
41529
|
+
ShowContent as bE,
|
|
41530
|
+
DeleteManyButton as bF,
|
|
41531
|
+
ListPage as bG,
|
|
41532
|
+
StateTag as bH,
|
|
41533
|
+
DrawerShow as bI,
|
|
41534
|
+
Menu as bJ,
|
|
41535
|
+
Table as bK,
|
|
41536
|
+
EditButton as bL,
|
|
41537
|
+
ReferenceLink as bM,
|
|
41538
|
+
ResourceLink as bN,
|
|
41539
|
+
NS_STORE_KEY as bO,
|
|
41540
|
+
ALL_NS as bP,
|
|
41541
|
+
useNamespacesFilter as bQ,
|
|
41542
|
+
NamespacesFilter as bR,
|
|
41543
|
+
FormModal as bS,
|
|
41544
|
+
renderCommonFormFiled as bT,
|
|
41545
|
+
RefineFormContent as bU,
|
|
41546
|
+
RefineFormPage as bV,
|
|
41547
|
+
SchemaStrategy as bW,
|
|
41548
|
+
YamlForm as bX,
|
|
41549
|
+
useRefineForm as bY,
|
|
41550
|
+
ServiceInClusterAccessComponent as bZ,
|
|
41551
|
+
ServiceOutClusterAccessComponent as b_,
|
|
41552
|
+
PVPhaseField as ba,
|
|
41553
|
+
PVVolumeModeField as bb,
|
|
41554
|
+
PVAccessModeField as bc,
|
|
41555
|
+
PVCPodsField as bd,
|
|
41556
|
+
PVCRefField as be,
|
|
41557
|
+
PVCSIRefField as bf,
|
|
41558
|
+
IsDefaultSCField as bg,
|
|
41559
|
+
SCReclaimPolicyField as bh,
|
|
41560
|
+
IsSCAllowVolumeExpansionField as bi,
|
|
41561
|
+
ResourceTableField as bj,
|
|
41562
|
+
EventsTab as bk,
|
|
41563
|
+
PodLogTab as bl,
|
|
41564
|
+
BasicGroup as bm,
|
|
41565
|
+
PodsGroup as bn,
|
|
41566
|
+
PodContainersGroup as bo,
|
|
41567
|
+
ServicePodsGroup as bp,
|
|
41568
|
+
PVCPodsGroup as bq,
|
|
41569
|
+
ConditionsGroup as br,
|
|
41570
|
+
NodeTaintsGroup as bs,
|
|
41571
|
+
SecretDataGroup as bt,
|
|
41572
|
+
JobsGroup as bu,
|
|
41573
|
+
IngressRulesGroup as bv,
|
|
41574
|
+
PodSelectorGroup as bw,
|
|
41575
|
+
PortsGroup as bx,
|
|
41576
|
+
DataGroup as by,
|
|
41577
|
+
NetworkPolicyIngressRulesGroup as bz,
|
|
41614
41578
|
useDeleteModal as c,
|
|
41615
|
-
|
|
41616
|
-
|
|
41617
|
-
|
|
41618
|
-
|
|
41619
|
-
|
|
41620
|
-
|
|
41621
|
-
|
|
41622
|
-
|
|
41623
|
-
|
|
41624
|
-
|
|
41625
|
-
|
|
41626
|
-
|
|
41627
|
-
|
|
41628
|
-
|
|
41629
|
-
|
|
41630
|
-
|
|
41631
|
-
|
|
41632
|
-
|
|
41633
|
-
|
|
41634
|
-
|
|
41635
|
-
|
|
41636
|
-
|
|
41637
|
-
|
|
41638
|
-
|
|
41639
|
-
|
|
41640
|
-
|
|
41641
|
-
|
|
41642
|
-
|
|
41643
|
-
|
|
41644
|
-
|
|
41645
|
-
|
|
41646
|
-
|
|
41647
|
-
|
|
41648
|
-
|
|
41649
|
-
|
|
41650
|
-
|
|
41651
|
-
|
|
41652
|
-
|
|
41653
|
-
|
|
41654
|
-
|
|
41655
|
-
|
|
41656
|
-
|
|
41657
|
-
|
|
41658
|
-
|
|
41659
|
-
|
|
41660
|
-
|
|
41661
|
-
|
|
41662
|
-
|
|
41663
|
-
|
|
41664
|
-
|
|
41665
|
-
|
|
41666
|
-
|
|
41667
|
-
|
|
41668
|
-
|
|
41669
|
-
|
|
41670
|
-
|
|
41671
|
-
|
|
41672
|
-
|
|
41673
|
-
|
|
41674
|
-
|
|
41675
|
-
|
|
41676
|
-
|
|
41677
|
-
|
|
41678
|
-
|
|
41579
|
+
ServiceTypeEnum as c$,
|
|
41580
|
+
TextTags as c0,
|
|
41581
|
+
PodLog as c1,
|
|
41582
|
+
NetworkPolicyRulesViewer as c2,
|
|
41583
|
+
PVVolumeModeDisplay as c3,
|
|
41584
|
+
Tabs as c4,
|
|
41585
|
+
ResourceSelect as c5,
|
|
41586
|
+
SocketStatus as c6,
|
|
41587
|
+
Shell as c7,
|
|
41588
|
+
PodShellModal as c8,
|
|
41589
|
+
PodShell as c9,
|
|
41590
|
+
NODE_INIT_VALUE as cA,
|
|
41591
|
+
STORAGE_CLASS_INIT_VALUE as cB,
|
|
41592
|
+
PV_INIT_VALUE as cC,
|
|
41593
|
+
PVC_INIT_VALUE as cD,
|
|
41594
|
+
ResourceState as cE,
|
|
41595
|
+
AccessControlAuth as cF,
|
|
41596
|
+
Dovetail as cG,
|
|
41597
|
+
RESOURCE_GROUP as cH,
|
|
41598
|
+
FormContainerType as cI,
|
|
41599
|
+
FormType as cJ,
|
|
41600
|
+
FormMode as cK,
|
|
41601
|
+
ComponentContext as cL,
|
|
41602
|
+
GlobalStoreContext as cM,
|
|
41603
|
+
ConfigsContext as cN,
|
|
41604
|
+
IngressModel as cO,
|
|
41605
|
+
NetworkPolicyModel as cP,
|
|
41606
|
+
JobModel as cQ,
|
|
41607
|
+
WorkloadModel as cR,
|
|
41608
|
+
WorkloadBaseModel as cS,
|
|
41609
|
+
PodModel as cT,
|
|
41610
|
+
PodMetricsModel as cU,
|
|
41611
|
+
ResourceModel as cV,
|
|
41612
|
+
CronJobModel as cW,
|
|
41613
|
+
EventModel as cX,
|
|
41614
|
+
DeploymentModel as cY,
|
|
41615
|
+
DaemonSetModel as cZ,
|
|
41616
|
+
StatefulSetModel as c_,
|
|
41617
|
+
ResourceTable as ca,
|
|
41618
|
+
ErrorWrapper as cb,
|
|
41619
|
+
ErrorContentType as cc,
|
|
41620
|
+
BASE_INIT_VALUE as cd,
|
|
41621
|
+
DEPLOYMENT_INIT_VALUE as ce,
|
|
41622
|
+
CRONJOB_INIT_VALUE as cf,
|
|
41623
|
+
DAEMONSET_INIT_VALUE as cg,
|
|
41624
|
+
JOB_INIT_VALUE as ch,
|
|
41625
|
+
STATEFULSET_INIT_VALUE as ci,
|
|
41626
|
+
POD_INIT_VALUE as cj,
|
|
41627
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as ck,
|
|
41628
|
+
SERVICE_NODE_PORT_INIT_VALUE as cl,
|
|
41629
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as cm,
|
|
41630
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as cn,
|
|
41631
|
+
SERVICE_HEADLESS_INIT_VALUE as co,
|
|
41632
|
+
INGRESS_INIT_VALUE as cp,
|
|
41633
|
+
NETWORK_POLICY_INIT_VALUE as cq,
|
|
41634
|
+
CONFIG_MAP_INIT_VALUE as cr,
|
|
41635
|
+
SERVER_INSTANCE_INIT_VALUE as cs,
|
|
41636
|
+
REDEPLOY_TIMESTAMP_KEY as ct,
|
|
41637
|
+
SECRET_OPAQUE_INIT_VALUE as cu,
|
|
41638
|
+
SECRET_IMAGE_REPO_INIT_VALUE as cv,
|
|
41639
|
+
SECRET_BASIC_AUTH_INIT_VALUE as cw,
|
|
41640
|
+
SECRET_SSH_AUTH_INIT_VALUE as cx,
|
|
41641
|
+
SECRET_TLS_INIT_VALUE as cy,
|
|
41642
|
+
SECRET_CUSTOM_INIT_VALUE as cz,
|
|
41679
41643
|
dovetailRefineI18n as d,
|
|
41680
|
-
|
|
41681
|
-
|
|
41682
|
-
|
|
41683
|
-
|
|
41684
|
-
|
|
41685
|
-
|
|
41686
|
-
|
|
41687
|
-
|
|
41688
|
-
|
|
41689
|
-
|
|
41690
|
-
|
|
41691
|
-
|
|
41692
|
-
|
|
41693
|
-
|
|
41694
|
-
|
|
41695
|
-
|
|
41696
|
-
|
|
41697
|
-
|
|
41698
|
-
|
|
41699
|
-
|
|
41644
|
+
ServiceModel as d0,
|
|
41645
|
+
NodeRole as d1,
|
|
41646
|
+
NodeModel as d2,
|
|
41647
|
+
StorageClassModel as d3,
|
|
41648
|
+
PersistentVolumeModel as d4,
|
|
41649
|
+
PersistentVolumeClaimModel as d5,
|
|
41650
|
+
ProviderPlugins as d6,
|
|
41651
|
+
ModelPlugin as d7,
|
|
41652
|
+
modelPlugin as d8,
|
|
41653
|
+
RelationPlugin as d9,
|
|
41654
|
+
relationPlugin as da,
|
|
41655
|
+
generateValueFromSchema as db,
|
|
41656
|
+
generateSchemaTypeValue as dc,
|
|
41657
|
+
resolveRef as dd,
|
|
41658
|
+
getApiVersion as de,
|
|
41659
|
+
pruneBeforeEdit as df,
|
|
41660
|
+
useDeleteModalOnly as e,
|
|
41661
|
+
useFailedModal as f,
|
|
41662
|
+
NameSpaceColumnRenderer as g,
|
|
41663
|
+
WorkloadRestartsColumnRenderer as h,
|
|
41664
|
+
NodeNameColumnRenderer as i,
|
|
41700
41665
|
jsxRuntimeExports as j,
|
|
41701
|
-
|
|
41702
|
-
|
|
41703
|
-
|
|
41704
|
-
|
|
41705
|
-
|
|
41706
|
-
|
|
41707
|
-
|
|
41666
|
+
RestartCountColumnRenderer as k,
|
|
41667
|
+
CompletionsCountColumnRenderer as l,
|
|
41668
|
+
ServiceTypeColumnRenderer as m,
|
|
41669
|
+
ServiceInClusterAccessTitle as n,
|
|
41670
|
+
ServiceInClusterAccessColumnRenderer as o,
|
|
41671
|
+
ServiceOutClusterAccessTitle as p,
|
|
41672
|
+
ServiceOutClusterAccessColumnRenderer as q,
|
|
41708
41673
|
routerProvider as r,
|
|
41709
|
-
|
|
41710
|
-
|
|
41674
|
+
PodWorkloadColumnRenderer as s,
|
|
41675
|
+
IngressDefaultBackendColumnRenderer as t,
|
|
41711
41676
|
useNamespaceRefineFilter as u,
|
|
41712
|
-
|
|
41713
|
-
|
|
41714
|
-
|
|
41715
|
-
|
|
41716
|
-
|
|
41677
|
+
IngressClassColumnRenderer as v,
|
|
41678
|
+
IngressTlsColumnRenderer as w,
|
|
41679
|
+
PodContainersNumColumnRenderer as x,
|
|
41680
|
+
DataKeysColumnRenderer as y,
|
|
41681
|
+
PortMappingColumnRenderer as z
|
|
41717
41682
|
};
|