@dovetail-v2/refine 0.2.0-alpha.1 → 0.2.1
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-97cade84.js → MonacoYamlDiffEditor-ddff69c1.js} +2 -2
- package/dist/{index-50a21e99.js → index-c44daab0.js} +798 -855
- package/dist/refine.js +247 -246
- package/dist/refine.umd.cjs +552 -609
- package/dist/style.css +143 -249
- package/lib/Dovetail.d.ts +4 -8
- package/lib/components/InternalBaseTable/index.d.ts +1 -0
- package/lib/components/ResourceLink/index.d.ts +1 -0
- package/lib/contexts/global-store.d.ts +3 -4
- 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/hooks/useGlobalStore.d.ts +1 -3
- package/lib/types/globalStore.d.ts +25 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/resource.d.ts +4 -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) {
|
|
@@ -11496,24 +11449,13 @@ function useOpenForm(options) {
|
|
|
11496
11449
|
function K8sDropdown(props) {
|
|
11497
11450
|
var _a;
|
|
11498
11451
|
const { record, size = "normal" } = props;
|
|
11499
|
-
const
|
|
11452
|
+
const globalStore = useGlobalStore();
|
|
11500
11453
|
const useResourceResult = useResource();
|
|
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
|
});
|
|
@@ -35859,7 +35798,7 @@ function PodShellModal(props) {
|
|
|
35859
35798
|
const { pod: pod2 } = props;
|
|
35860
35799
|
const { t: t2 } = useTranslation();
|
|
35861
35800
|
const popModal = usePopModal();
|
|
35862
|
-
const
|
|
35801
|
+
const globalStore = useGlobalStore();
|
|
35863
35802
|
const [socketStatus, setSocketStatus] = useState(SocketStatus.Opening);
|
|
35864
35803
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35865
35804
|
Modal,
|
|
@@ -36287,7 +36226,7 @@ function ListPage(props) {
|
|
|
36287
36226
|
style: config.hideNamespacesFilter ? {
|
|
36288
36227
|
paddingTop: 0
|
|
36289
36228
|
} : {},
|
|
36290
|
-
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
36229
|
+
children: [!config.hideNamespacesFilter ? config.customNamespaceFilter || /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
36291
36230
|
className: NamespaceFilterStyle
|
|
36292
36231
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
36293
36232
|
className: TableStyle,
|
|
@@ -36337,6 +36276,8 @@ function ResourceShow(props) {
|
|
|
36337
36276
|
}
|
|
36338
36277
|
);
|
|
36339
36278
|
}
|
|
36279
|
+
const button_1v659kh = "";
|
|
36280
|
+
const WarningButtonStyle = "wwyz7ti";
|
|
36340
36281
|
function FormModeSegmentControl({
|
|
36341
36282
|
formConfig,
|
|
36342
36283
|
mode,
|
|
@@ -38845,7 +38786,7 @@ const Separator = () => {
|
|
|
38845
38786
|
});
|
|
38846
38787
|
};
|
|
38847
38788
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38848
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38789
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ddff69c1.js"));
|
|
38849
38790
|
const YamlEditorComponent = forwardRef(
|
|
38850
38791
|
function YamlEditorComponent2(props, ref) {
|
|
38851
38792
|
const {
|
|
@@ -39180,8 +39121,9 @@ function generateYamlBySchema(defaultValue, schema) {
|
|
|
39180
39121
|
const content = yaml$2.dump(merged);
|
|
39181
39122
|
return content.replace(/(')(#.+?)(')/g, "$2").replace(/( +)(#)/g, "$2$1");
|
|
39182
39123
|
}
|
|
39183
|
-
const useGlobalStore = () => {
|
|
39184
|
-
|
|
39124
|
+
const useGlobalStore = (name2 = "default") => {
|
|
39125
|
+
const globalStores = useContext(GlobalStoreContext);
|
|
39126
|
+
return globalStores[name2];
|
|
39185
39127
|
};
|
|
39186
39128
|
const useYamlForm = ({
|
|
39187
39129
|
action: actionFromProps,
|
|
@@ -39225,7 +39167,7 @@ const useYamlForm = ({
|
|
|
39225
39167
|
const [rulesErrors, setRulesErrors] = useState([]);
|
|
39226
39168
|
const [errorResponseBody, setErrorResponseBody] = useState(null);
|
|
39227
39169
|
const useResourceResult = useResource();
|
|
39228
|
-
const
|
|
39170
|
+
const globalStore = useGlobalStore();
|
|
39229
39171
|
const {
|
|
39230
39172
|
schema,
|
|
39231
39173
|
loading: isLoadingSchema,
|
|
@@ -40292,13 +40234,16 @@ const DeleteButton = () => {
|
|
|
40292
40234
|
const { resource } = useResource();
|
|
40293
40235
|
const { id } = useParsed();
|
|
40294
40236
|
const { t: t2 } = useTranslation();
|
|
40295
|
-
const {
|
|
40296
|
-
|
|
40297
|
-
|
|
40298
|
-
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
|
|
40237
|
+
const { openDeleteConfirmModal } = useDeleteModal({ resourceName: (resource == null ? void 0 : resource.name) || "" });
|
|
40238
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
40239
|
+
Button,
|
|
40240
|
+
{
|
|
40241
|
+
type: "primary",
|
|
40242
|
+
danger: true,
|
|
40243
|
+
onClick: () => openDeleteConfirmModal(id || ""),
|
|
40244
|
+
children: t2("dovetail.delete")
|
|
40245
|
+
}
|
|
40246
|
+
) });
|
|
40302
40247
|
};
|
|
40303
40248
|
const index_1tehui8 = "";
|
|
40304
40249
|
const MenuStyle = "mdppgn0";
|
|
@@ -41223,11 +41168,8 @@ const Dovetail = (props) => {
|
|
|
41223
41168
|
schemaUrlPrefix,
|
|
41224
41169
|
Layout: Layout2,
|
|
41225
41170
|
history,
|
|
41226
|
-
|
|
41171
|
+
globalStoreMap,
|
|
41227
41172
|
accessControlProvider,
|
|
41228
|
-
routerProvider: customRouterProvider,
|
|
41229
|
-
dataProvider: customDataProvider,
|
|
41230
|
-
liveProvider: customLiveProvider,
|
|
41231
41173
|
antdGetPopupContainer
|
|
41232
41174
|
} = props;
|
|
41233
41175
|
const msg = useMessage();
|
|
@@ -41274,14 +41216,12 @@ const Dovetail = (props) => {
|
|
|
41274
41216
|
antd4Configs: {
|
|
41275
41217
|
getPopupContainer: antdGetPopupContainer || (() => document.body)
|
|
41276
41218
|
},
|
|
41277
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStoreContext.Provider, { value:
|
|
41219
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStoreContext.Provider, { value: globalStoreMap, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41278
41220
|
Refine,
|
|
41279
41221
|
{
|
|
41280
|
-
dataProvider:
|
|
41281
|
-
|
|
41282
|
-
|
|
41283
|
-
routerProvider: customRouterProvider || routerProvider,
|
|
41284
|
-
liveProvider: customLiveProvider || liveProvider(globalStore),
|
|
41222
|
+
dataProvider: dataProvider(globalStoreMap.default),
|
|
41223
|
+
liveProvider: liveProvider(globalStoreMap.default),
|
|
41224
|
+
routerProvider,
|
|
41285
41225
|
notificationProvider,
|
|
41286
41226
|
options: {
|
|
41287
41227
|
warnWhenUnsavedChanges: true,
|
|
@@ -41293,6 +41233,7 @@ const Dovetail = (props) => {
|
|
|
41293
41233
|
return {
|
|
41294
41234
|
name: c2.name,
|
|
41295
41235
|
meta: {
|
|
41236
|
+
dataProviderName: c2.dataProviderName,
|
|
41296
41237
|
resourceBasePath: c2.basePath,
|
|
41297
41238
|
kind: c2.kind,
|
|
41298
41239
|
parent: c2.parent,
|
|
@@ -41304,6 +41245,7 @@ const Dovetail = (props) => {
|
|
|
41304
41245
|
edit: `${urlPrefix}/${c2.name}/edit`
|
|
41305
41246
|
};
|
|
41306
41247
|
}),
|
|
41248
|
+
...props,
|
|
41307
41249
|
children: content
|
|
41308
41250
|
}
|
|
41309
41251
|
) })
|
|
@@ -41455,265 +41397,266 @@ const relationPlugin = new RelationPlugin();
|
|
|
41455
41397
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
41456
41398
|
const dovetailRefineI18n = i18n;
|
|
41457
41399
|
export {
|
|
41458
|
-
|
|
41400
|
+
useGlobalStore as $,
|
|
41459
41401
|
AgeColumnRenderer as A,
|
|
41460
|
-
|
|
41402
|
+
ProvisionerColumnRenderer as B,
|
|
41461
41403
|
CommonSorter as C,
|
|
41462
41404
|
DurationColumnRenderer as D,
|
|
41463
|
-
|
|
41464
|
-
|
|
41465
|
-
|
|
41466
|
-
|
|
41405
|
+
PVCapacityColumnRenderer as E,
|
|
41406
|
+
PVCStorageColumnRenderer as F,
|
|
41407
|
+
PVRefColumnRenderer as G,
|
|
41408
|
+
PVStorageClassColumnRenderer as H,
|
|
41467
41409
|
IngressRulesColumnRenderer as I,
|
|
41468
|
-
|
|
41469
|
-
|
|
41470
|
-
|
|
41471
|
-
|
|
41410
|
+
PVPhaseColumnRenderer as J,
|
|
41411
|
+
PVCRefColumnRenderer as K,
|
|
41412
|
+
PVCSIRefColumnRenderer as L,
|
|
41413
|
+
PVVolumeModeColumnRenderer as M,
|
|
41472
41414
|
NameColumnRenderer as N,
|
|
41473
|
-
|
|
41415
|
+
PVAccessModeColumnRenderer as O,
|
|
41474
41416
|
PlainTextNameColumnRenderer as P,
|
|
41475
|
-
|
|
41417
|
+
IsDefaultSCColumnRenderer as Q,
|
|
41476
41418
|
ReplicasColumnRenderer as R,
|
|
41477
41419
|
StateDisplayColumnRenderer as S,
|
|
41478
|
-
|
|
41479
|
-
|
|
41480
|
-
|
|
41420
|
+
SCReclaimPolicyColumnRenderer as T,
|
|
41421
|
+
SCAllowExpandColumnRenderer as U,
|
|
41422
|
+
ColumnKeys as V,
|
|
41481
41423
|
WorkloadImageColumnRenderer as W,
|
|
41482
|
-
|
|
41483
|
-
|
|
41484
|
-
|
|
41485
|
-
|
|
41424
|
+
addDefaultRenderToColumns as X,
|
|
41425
|
+
useEagleTable as Y,
|
|
41426
|
+
useDownloadYAML as Z,
|
|
41427
|
+
useEdit as _,
|
|
41486
41428
|
useApiGroupSchema as a,
|
|
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
|
-
|
|
41549
|
-
|
|
41550
|
-
|
|
41429
|
+
ServiceInnerClusterAccessField as a$,
|
|
41430
|
+
useOpenForm as a0,
|
|
41431
|
+
index as a1,
|
|
41432
|
+
WidgetErrorContent as a2,
|
|
41433
|
+
Breadcrumb as a3,
|
|
41434
|
+
NameInputWidget as a4,
|
|
41435
|
+
dnsSubDomainRules as a5,
|
|
41436
|
+
rfc1123LabelRules as a6,
|
|
41437
|
+
rfc1035LabelRules as a7,
|
|
41438
|
+
NamespaceSelectWidget as a8,
|
|
41439
|
+
namespaceRules as a9,
|
|
41440
|
+
KeyValue as aA,
|
|
41441
|
+
KeyValueAnnotation as aB,
|
|
41442
|
+
KeyValueSecret as aC,
|
|
41443
|
+
Separator as aD,
|
|
41444
|
+
YamlEditorComponent as aE,
|
|
41445
|
+
DeleteButton as aF,
|
|
41446
|
+
Layout as aG,
|
|
41447
|
+
AreaType as aH,
|
|
41448
|
+
ImageField as aI,
|
|
41449
|
+
ReplicaField as aJ,
|
|
41450
|
+
ConditionsField as aK,
|
|
41451
|
+
NodeTaintsField as aL,
|
|
41452
|
+
PodsField as aM,
|
|
41453
|
+
JobsField as aN,
|
|
41454
|
+
DataField as aO,
|
|
41455
|
+
SecretDataField as aP,
|
|
41456
|
+
StartTimeField as aQ,
|
|
41457
|
+
ServiceTypeField as aR,
|
|
41458
|
+
ClusterIpField as aS,
|
|
41459
|
+
SessionAffinityField as aT,
|
|
41460
|
+
ServicePodsField as aU,
|
|
41461
|
+
IngressRulesTableTabField as aV,
|
|
41462
|
+
EventsTableTabField as aW,
|
|
41463
|
+
NamespaceField as aX,
|
|
41464
|
+
AgeField as aY,
|
|
41465
|
+
LabelsField as aZ,
|
|
41466
|
+
AnnotationsField as a_,
|
|
41467
|
+
KeyValueListWidget as aa,
|
|
41468
|
+
MetadataForm as ab,
|
|
41469
|
+
PageShow as ac,
|
|
41470
|
+
Time as ad,
|
|
41471
|
+
ConditionsTable as ae,
|
|
41472
|
+
FormErrorAlert as af,
|
|
41473
|
+
PodContainersTable as ag,
|
|
41474
|
+
WorkloadDropdown as ah,
|
|
41475
|
+
ReplicasDropdown as ai,
|
|
41476
|
+
PodDropdown as aj,
|
|
41477
|
+
CreateButton as ak,
|
|
41478
|
+
ImageNames as al,
|
|
41479
|
+
ResourceList as am,
|
|
41480
|
+
ResourceShow as an,
|
|
41481
|
+
ResourceForm as ao,
|
|
41482
|
+
ResourceCRUD as ap,
|
|
41483
|
+
WorkloadPodsTable as aq,
|
|
41484
|
+
CronJobDropdown as ar,
|
|
41485
|
+
K8sDropdown as as,
|
|
41486
|
+
EditLabelDropdownMenuItem as at,
|
|
41487
|
+
EditAnnotationDropdownMenuItem as au,
|
|
41488
|
+
EditNodeTaintDropdownMenuItem as av,
|
|
41489
|
+
ResourceUsageBar as aw,
|
|
41490
|
+
WorkloadReplicasForm as ax,
|
|
41491
|
+
WorkloadReplicas as ay,
|
|
41492
|
+
CronjobJobsTable as az,
|
|
41551
41493
|
useSchema as b,
|
|
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
|
-
|
|
41614
|
-
|
|
41615
|
-
|
|
41494
|
+
Tags as b$,
|
|
41495
|
+
ServiceOutClusterAccessField as b0,
|
|
41496
|
+
PodSelectorField as b1,
|
|
41497
|
+
PortsTableField as b2,
|
|
41498
|
+
DurationField as b3,
|
|
41499
|
+
StorageClassProvisionerField as b4,
|
|
41500
|
+
StorageClassPvField as b5,
|
|
41501
|
+
PVCapacityField as b6,
|
|
41502
|
+
PVCStorageField as b7,
|
|
41503
|
+
PVRefField as b8,
|
|
41504
|
+
PVStorageClassField as b9,
|
|
41505
|
+
NetworkPolicyEgressRulesGroup as bA,
|
|
41506
|
+
StorageClassPvGroup as bB,
|
|
41507
|
+
ResourceTableGroup as bC,
|
|
41508
|
+
ShowGroupComponent as bD,
|
|
41509
|
+
ShowContent as bE,
|
|
41510
|
+
DeleteManyButton as bF,
|
|
41511
|
+
ListPage as bG,
|
|
41512
|
+
StateTag as bH,
|
|
41513
|
+
DrawerShow as bI,
|
|
41514
|
+
Menu as bJ,
|
|
41515
|
+
Table as bK,
|
|
41516
|
+
EditButton as bL,
|
|
41517
|
+
ReferenceLink as bM,
|
|
41518
|
+
ResourceLink as bN,
|
|
41519
|
+
NS_STORE_KEY as bO,
|
|
41520
|
+
ALL_NS as bP,
|
|
41521
|
+
useNamespacesFilter as bQ,
|
|
41522
|
+
NamespacesFilter as bR,
|
|
41523
|
+
FormModal as bS,
|
|
41524
|
+
renderCommonFormFiled as bT,
|
|
41525
|
+
RefineFormContent as bU,
|
|
41526
|
+
RefineFormPage as bV,
|
|
41527
|
+
SchemaStrategy as bW,
|
|
41528
|
+
YamlForm as bX,
|
|
41529
|
+
useRefineForm as bY,
|
|
41530
|
+
ServiceInClusterAccessComponent as bZ,
|
|
41531
|
+
ServiceOutClusterAccessComponent as b_,
|
|
41532
|
+
PVPhaseField as ba,
|
|
41533
|
+
PVVolumeModeField as bb,
|
|
41534
|
+
PVAccessModeField as bc,
|
|
41535
|
+
PVCPodsField as bd,
|
|
41536
|
+
PVCRefField as be,
|
|
41537
|
+
PVCSIRefField as bf,
|
|
41538
|
+
IsDefaultSCField as bg,
|
|
41539
|
+
SCReclaimPolicyField as bh,
|
|
41540
|
+
IsSCAllowVolumeExpansionField as bi,
|
|
41541
|
+
ResourceTableField as bj,
|
|
41542
|
+
EventsTab as bk,
|
|
41543
|
+
PodLogTab as bl,
|
|
41544
|
+
BasicGroup as bm,
|
|
41545
|
+
PodsGroup as bn,
|
|
41546
|
+
PodContainersGroup as bo,
|
|
41547
|
+
ServicePodsGroup as bp,
|
|
41548
|
+
PVCPodsGroup as bq,
|
|
41549
|
+
ConditionsGroup as br,
|
|
41550
|
+
NodeTaintsGroup as bs,
|
|
41551
|
+
SecretDataGroup as bt,
|
|
41552
|
+
JobsGroup as bu,
|
|
41553
|
+
IngressRulesGroup as bv,
|
|
41554
|
+
PodSelectorGroup as bw,
|
|
41555
|
+
PortsGroup as bx,
|
|
41556
|
+
DataGroup as by,
|
|
41557
|
+
NetworkPolicyIngressRulesGroup as bz,
|
|
41616
41558
|
useDeleteModal as c,
|
|
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
|
-
|
|
41679
|
-
|
|
41680
|
-
|
|
41559
|
+
ServiceTypeEnum as c$,
|
|
41560
|
+
TextTags as c0,
|
|
41561
|
+
PodLog as c1,
|
|
41562
|
+
NetworkPolicyRulesViewer as c2,
|
|
41563
|
+
PVVolumeModeDisplay as c3,
|
|
41564
|
+
Tabs as c4,
|
|
41565
|
+
ResourceSelect as c5,
|
|
41566
|
+
SocketStatus as c6,
|
|
41567
|
+
Shell as c7,
|
|
41568
|
+
PodShellModal as c8,
|
|
41569
|
+
PodShell as c9,
|
|
41570
|
+
NODE_INIT_VALUE as cA,
|
|
41571
|
+
STORAGE_CLASS_INIT_VALUE as cB,
|
|
41572
|
+
PV_INIT_VALUE as cC,
|
|
41573
|
+
PVC_INIT_VALUE as cD,
|
|
41574
|
+
ResourceState as cE,
|
|
41575
|
+
AccessControlAuth as cF,
|
|
41576
|
+
Dovetail as cG,
|
|
41577
|
+
RESOURCE_GROUP as cH,
|
|
41578
|
+
FormContainerType as cI,
|
|
41579
|
+
FormType as cJ,
|
|
41580
|
+
FormMode as cK,
|
|
41581
|
+
ComponentContext as cL,
|
|
41582
|
+
GlobalStoreContext as cM,
|
|
41583
|
+
ConfigsContext as cN,
|
|
41584
|
+
IngressModel as cO,
|
|
41585
|
+
NetworkPolicyModel as cP,
|
|
41586
|
+
JobModel as cQ,
|
|
41587
|
+
WorkloadModel as cR,
|
|
41588
|
+
WorkloadBaseModel as cS,
|
|
41589
|
+
PodModel as cT,
|
|
41590
|
+
PodMetricsModel as cU,
|
|
41591
|
+
ResourceModel as cV,
|
|
41592
|
+
CronJobModel as cW,
|
|
41593
|
+
EventModel as cX,
|
|
41594
|
+
DeploymentModel as cY,
|
|
41595
|
+
DaemonSetModel as cZ,
|
|
41596
|
+
StatefulSetModel as c_,
|
|
41597
|
+
ResourceTable as ca,
|
|
41598
|
+
ErrorWrapper as cb,
|
|
41599
|
+
ErrorContentType as cc,
|
|
41600
|
+
BASE_INIT_VALUE as cd,
|
|
41601
|
+
DEPLOYMENT_INIT_VALUE as ce,
|
|
41602
|
+
CRONJOB_INIT_VALUE as cf,
|
|
41603
|
+
DAEMONSET_INIT_VALUE as cg,
|
|
41604
|
+
JOB_INIT_VALUE as ch,
|
|
41605
|
+
STATEFULSET_INIT_VALUE as ci,
|
|
41606
|
+
POD_INIT_VALUE as cj,
|
|
41607
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as ck,
|
|
41608
|
+
SERVICE_NODE_PORT_INIT_VALUE as cl,
|
|
41609
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as cm,
|
|
41610
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as cn,
|
|
41611
|
+
SERVICE_HEADLESS_INIT_VALUE as co,
|
|
41612
|
+
INGRESS_INIT_VALUE as cp,
|
|
41613
|
+
NETWORK_POLICY_INIT_VALUE as cq,
|
|
41614
|
+
CONFIG_MAP_INIT_VALUE as cr,
|
|
41615
|
+
SERVER_INSTANCE_INIT_VALUE as cs,
|
|
41616
|
+
REDEPLOY_TIMESTAMP_KEY as ct,
|
|
41617
|
+
SECRET_OPAQUE_INIT_VALUE as cu,
|
|
41618
|
+
SECRET_IMAGE_REPO_INIT_VALUE as cv,
|
|
41619
|
+
SECRET_BASIC_AUTH_INIT_VALUE as cw,
|
|
41620
|
+
SECRET_SSH_AUTH_INIT_VALUE as cx,
|
|
41621
|
+
SECRET_TLS_INIT_VALUE as cy,
|
|
41622
|
+
SECRET_CUSTOM_INIT_VALUE as cz,
|
|
41681
41623
|
dovetailRefineI18n as d,
|
|
41682
|
-
|
|
41683
|
-
|
|
41684
|
-
|
|
41685
|
-
|
|
41686
|
-
|
|
41687
|
-
|
|
41688
|
-
|
|
41689
|
-
|
|
41690
|
-
|
|
41691
|
-
|
|
41692
|
-
|
|
41693
|
-
|
|
41694
|
-
|
|
41695
|
-
|
|
41696
|
-
|
|
41697
|
-
|
|
41698
|
-
|
|
41699
|
-
|
|
41700
|
-
|
|
41701
|
-
|
|
41624
|
+
ServiceModel as d0,
|
|
41625
|
+
NodeRole as d1,
|
|
41626
|
+
NodeModel as d2,
|
|
41627
|
+
StorageClassModel as d3,
|
|
41628
|
+
PersistentVolumeModel as d4,
|
|
41629
|
+
PersistentVolumeClaimModel as d5,
|
|
41630
|
+
ProviderPlugins as d6,
|
|
41631
|
+
ModelPlugin as d7,
|
|
41632
|
+
modelPlugin as d8,
|
|
41633
|
+
RelationPlugin as d9,
|
|
41634
|
+
relationPlugin as da,
|
|
41635
|
+
generateValueFromSchema as db,
|
|
41636
|
+
generateSchemaTypeValue as dc,
|
|
41637
|
+
resolveRef as dd,
|
|
41638
|
+
getApiVersion as de,
|
|
41639
|
+
pruneBeforeEdit as df,
|
|
41640
|
+
useDeleteModalOnly as e,
|
|
41641
|
+
useFailedModal as f,
|
|
41642
|
+
NameSpaceColumnRenderer as g,
|
|
41643
|
+
WorkloadRestartsColumnRenderer as h,
|
|
41644
|
+
NodeNameColumnRenderer as i,
|
|
41702
41645
|
jsxRuntimeExports as j,
|
|
41703
|
-
|
|
41704
|
-
|
|
41705
|
-
|
|
41706
|
-
|
|
41707
|
-
|
|
41708
|
-
|
|
41709
|
-
|
|
41646
|
+
RestartCountColumnRenderer as k,
|
|
41647
|
+
CompletionsCountColumnRenderer as l,
|
|
41648
|
+
ServiceTypeColumnRenderer as m,
|
|
41649
|
+
ServiceInClusterAccessTitle as n,
|
|
41650
|
+
ServiceInClusterAccessColumnRenderer as o,
|
|
41651
|
+
ServiceOutClusterAccessTitle as p,
|
|
41652
|
+
ServiceOutClusterAccessColumnRenderer as q,
|
|
41710
41653
|
routerProvider as r,
|
|
41711
|
-
|
|
41712
|
-
|
|
41654
|
+
PodWorkloadColumnRenderer as s,
|
|
41655
|
+
IngressDefaultBackendColumnRenderer as t,
|
|
41713
41656
|
useNamespaceRefineFilter as u,
|
|
41714
|
-
|
|
41715
|
-
|
|
41716
|
-
|
|
41717
|
-
|
|
41718
|
-
|
|
41657
|
+
IngressClassColumnRenderer as v,
|
|
41658
|
+
IngressTlsColumnRenderer as w,
|
|
41659
|
+
PodContainersNumColumnRenderer as x,
|
|
41660
|
+
DataKeysColumnRenderer as y,
|
|
41661
|
+
PortMappingColumnRenderer as z
|
|
41719
41662
|
};
|