@dovetail-v2/refine 0.0.40 → 0.0.41
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-a2597bad.js → MonacoYamlDiffEditor-90b9132b.js} +1 -1
- package/dist/{index-d6242911.js → index-f702bf6d.js} +223 -192
- package/dist/refine.js +145 -144
- package/dist/refine.umd.cjs +79 -48
- package/dist/style.css +4 -5
- package/lib/src/components/Table/index.d.ts +1 -0
- package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +1 -0
- package/lib/src/types/resource.d.ts +4 -0
- package/package.json +1 -1
|
@@ -8027,7 +8027,7 @@ var cx = function cx2() {
|
|
|
8027
8027
|
};
|
|
8028
8028
|
var cx_default = cx;
|
|
8029
8029
|
const ConfigsContext = createContext({});
|
|
8030
|
-
const
|
|
8030
|
+
const useDeleteModal_v7eb93 = "";
|
|
8031
8031
|
const TextStyle = "t1vq0ett";
|
|
8032
8032
|
const TipStyle = "t139onst";
|
|
8033
8033
|
const NameStyle$1 = "n18lzor8";
|
|
@@ -8680,6 +8680,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8680
8680
|
const component = useContext(ComponentContext);
|
|
8681
8681
|
const Table$1 = component.Table || Table;
|
|
8682
8682
|
const [currentPage, setCurrentPage] = useState(1);
|
|
8683
|
+
const currentSize = 10;
|
|
8683
8684
|
const datas = Object.keys(podSelectors).map((key2) => ({
|
|
8684
8685
|
id: key2,
|
|
8685
8686
|
key: key2,
|
|
@@ -8716,11 +8717,12 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8716
8717
|
{
|
|
8717
8718
|
tableKey: "podSelector",
|
|
8718
8719
|
loading: false,
|
|
8719
|
-
data: datas,
|
|
8720
|
+
data: datas.slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
8721
|
+
total: datas.length,
|
|
8720
8722
|
columns: addDefaultRenderToColumns(columns),
|
|
8721
8723
|
rowKey: "key",
|
|
8722
8724
|
empty: t2("dovetail.empty"),
|
|
8723
|
-
currentSize
|
|
8725
|
+
currentSize,
|
|
8724
8726
|
currentPage,
|
|
8725
8727
|
onPageChange: setCurrentPage,
|
|
8726
8728
|
showMenuColumn: false
|
|
@@ -8732,6 +8734,7 @@ const PortsTable = ({ service }) => {
|
|
|
8732
8734
|
const component = useContext(ComponentContext);
|
|
8733
8735
|
const Table$1 = component.Table || Table;
|
|
8734
8736
|
const [currentPage, setCurrentPage] = useState(1);
|
|
8737
|
+
const currentSize = 10;
|
|
8735
8738
|
const columns = [
|
|
8736
8739
|
{
|
|
8737
8740
|
key: "name",
|
|
@@ -8788,11 +8791,12 @@ const PortsTable = ({ service }) => {
|
|
|
8788
8791
|
{
|
|
8789
8792
|
tableKey: "ports",
|
|
8790
8793
|
loading: false,
|
|
8791
|
-
data: ports,
|
|
8794
|
+
data: ports.slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
8795
|
+
total: ports.length,
|
|
8792
8796
|
columns: addDefaultRenderToColumns(columns),
|
|
8793
8797
|
rowKey: "name",
|
|
8794
8798
|
empty: t2("dovetail.empty"),
|
|
8795
|
-
currentSize
|
|
8799
|
+
currentSize,
|
|
8796
8800
|
currentPage,
|
|
8797
8801
|
onPageChange: setCurrentPage,
|
|
8798
8802
|
showMenuColumn: false
|
|
@@ -10111,6 +10115,7 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10111
10115
|
const { t: t2 } = useTranslation();
|
|
10112
10116
|
const component = useContext(ComponentContext);
|
|
10113
10117
|
const Table$1 = component.Table || Table;
|
|
10118
|
+
const currentSize = 10;
|
|
10114
10119
|
const conditionsWithId = addId(conditions, "type");
|
|
10115
10120
|
const columns = [
|
|
10116
10121
|
{
|
|
@@ -10176,11 +10181,12 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10176
10181
|
{
|
|
10177
10182
|
tableKey: "condition",
|
|
10178
10183
|
loading: false,
|
|
10179
|
-
data: conditionsWithId,
|
|
10184
|
+
data: conditionsWithId.slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
10185
|
+
total: conditionsWithId.length,
|
|
10180
10186
|
columns: addDefaultRenderToColumns(columns),
|
|
10181
10187
|
rowKey: "type",
|
|
10182
10188
|
empty: t2("dovetail.empty"),
|
|
10183
|
-
currentSize
|
|
10189
|
+
currentSize,
|
|
10184
10190
|
currentPage,
|
|
10185
10191
|
onPageChange: setCurrentPage,
|
|
10186
10192
|
showMenuColumn: false
|
|
@@ -10386,6 +10392,7 @@ const CronjobJobsTable = ({
|
|
|
10386
10392
|
const [currentPage, setCurrentPage] = useState(1);
|
|
10387
10393
|
const component = useContext(ComponentContext);
|
|
10388
10394
|
const Table$1 = component.Table || Table;
|
|
10395
|
+
const currentSize = 10;
|
|
10389
10396
|
const {
|
|
10390
10397
|
data: data2,
|
|
10391
10398
|
isLoading
|
|
@@ -10422,13 +10429,14 @@ const CronjobJobsTable = ({
|
|
|
10422
10429
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
10423
10430
|
tableKey: "cronjobs",
|
|
10424
10431
|
loading: isLoading,
|
|
10425
|
-
data: dataSource || [],
|
|
10432
|
+
data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
10433
|
+
total: (dataSource == null ? void 0 : dataSource.length) || 0,
|
|
10426
10434
|
columns,
|
|
10427
10435
|
rowKey: "id",
|
|
10428
10436
|
error: false,
|
|
10429
10437
|
currentPage,
|
|
10430
10438
|
onPageChange: (p) => setCurrentPage(p),
|
|
10431
|
-
currentSize
|
|
10439
|
+
currentSize,
|
|
10432
10440
|
refetch: () => null,
|
|
10433
10441
|
showMenuColumn: false
|
|
10434
10442
|
})]
|
|
@@ -10437,6 +10445,7 @@ const CronjobJobsTable = ({
|
|
|
10437
10445
|
const EventsTable = ({}) => {
|
|
10438
10446
|
const { i18n: i18n2 } = useTranslation();
|
|
10439
10447
|
const [currentPage, setCurrentPage] = useState(1);
|
|
10448
|
+
const currentSize = 10;
|
|
10440
10449
|
const { data: data2, isLoading } = useList({
|
|
10441
10450
|
resource: "events",
|
|
10442
10451
|
meta: { resourceBasePath: "/apis/events.k8s.io/v1", kind: "Event" },
|
|
@@ -10503,13 +10512,14 @@ const EventsTable = ({}) => {
|
|
|
10503
10512
|
{
|
|
10504
10513
|
tableKey: "events",
|
|
10505
10514
|
loading: isLoading,
|
|
10506
|
-
data: dataSource || [],
|
|
10515
|
+
data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
10516
|
+
total: (dataSource == null ? void 0 : dataSource.length) || 0,
|
|
10507
10517
|
columns: addDefaultRenderToColumns(columns),
|
|
10508
10518
|
rowKey: "id",
|
|
10509
10519
|
error: false,
|
|
10510
10520
|
currentPage,
|
|
10511
10521
|
onPageChange: (p) => setCurrentPage(p),
|
|
10512
|
-
currentSize
|
|
10522
|
+
currentSize,
|
|
10513
10523
|
refetch: () => null,
|
|
10514
10524
|
showMenuColumn: false
|
|
10515
10525
|
}
|
|
@@ -10555,6 +10565,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10555
10565
|
const component = useContext(ComponentContext);
|
|
10556
10566
|
const Table$1 = component.Table || Table;
|
|
10557
10567
|
const [currentPage, setCurrentPage] = useState(1);
|
|
10568
|
+
const currentSize = 10;
|
|
10558
10569
|
const columns = [
|
|
10559
10570
|
{
|
|
10560
10571
|
key: "pathType",
|
|
@@ -10629,18 +10640,19 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10629
10640
|
{
|
|
10630
10641
|
tableKey: "ingressRules",
|
|
10631
10642
|
loading: false,
|
|
10632
|
-
data: rows,
|
|
10643
|
+
data: rows.slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
10644
|
+
total: rows.length,
|
|
10633
10645
|
columns: addDefaultRenderToColumns(columns),
|
|
10634
10646
|
rowKey: "pathType",
|
|
10635
10647
|
empty: t2("dovetail.empty"),
|
|
10636
|
-
currentSize
|
|
10648
|
+
currentSize,
|
|
10637
10649
|
currentPage,
|
|
10638
10650
|
onPageChange: setCurrentPage,
|
|
10639
10651
|
showMenuColumn: false
|
|
10640
10652
|
}
|
|
10641
10653
|
);
|
|
10642
10654
|
};
|
|
10643
|
-
const
|
|
10655
|
+
const KeyValue_1v1utgj = "";
|
|
10644
10656
|
const ContentBlockStyle = "c8jy7dc";
|
|
10645
10657
|
const KeyStyle = "k2sddxl";
|
|
10646
10658
|
const ValueStyle$2 = "v16vicsr";
|
|
@@ -11072,6 +11084,7 @@ const WorkloadPodsTable = ({
|
|
|
11072
11084
|
const [currentPage, setCurrentPage] = useState(1);
|
|
11073
11085
|
const component = useContext(ComponentContext);
|
|
11074
11086
|
const Table$1 = component.Table || Table;
|
|
11087
|
+
const currentSize = 10;
|
|
11075
11088
|
const {
|
|
11076
11089
|
data: data2
|
|
11077
11090
|
} = useList({
|
|
@@ -11116,14 +11129,15 @@ const WorkloadPodsTable = ({
|
|
|
11116
11129
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
11117
11130
|
tableKey: "pods",
|
|
11118
11131
|
loading: !dataSource,
|
|
11119
|
-
data: dataSource || [],
|
|
11132
|
+
data: (dataSource || []).slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
11133
|
+
total: (dataSource == null ? void 0 : dataSource.length) || 0,
|
|
11120
11134
|
columns: addDefaultRenderToColumns(columns),
|
|
11121
11135
|
onSelect: (keys) => setSelectedKeys(keys),
|
|
11122
11136
|
rowKey: "id",
|
|
11123
11137
|
error: false,
|
|
11124
11138
|
currentPage,
|
|
11125
11139
|
onPageChange: (p) => setCurrentPage(p),
|
|
11126
|
-
currentSize
|
|
11140
|
+
currentSize,
|
|
11127
11141
|
refetch: () => null,
|
|
11128
11142
|
showMenuColumn: false
|
|
11129
11143
|
})]
|
|
@@ -11234,9 +11248,8 @@ function useSubmitForm(options) {
|
|
|
11234
11248
|
onSubmit
|
|
11235
11249
|
};
|
|
11236
11250
|
}
|
|
11237
|
-
const
|
|
11238
|
-
const
|
|
11239
|
-
const EditButtonStyle = "e1m0bgls";
|
|
11251
|
+
const index_7c3887 = "";
|
|
11252
|
+
const EditButtonStyle = "esoz3jw";
|
|
11240
11253
|
function EditFieldModal(props) {
|
|
11241
11254
|
const {
|
|
11242
11255
|
title,
|
|
@@ -11263,7 +11276,7 @@ function EditFieldModal(props) {
|
|
|
11263
11276
|
reset();
|
|
11264
11277
|
}, [reset]);
|
|
11265
11278
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.modal, {
|
|
11266
|
-
className:
|
|
11279
|
+
className: ModalStyle,
|
|
11267
11280
|
title: title || i18n2.t("dovetail.edit"),
|
|
11268
11281
|
confirmLoading: submitting,
|
|
11269
11282
|
onOk: onSubmit,
|
|
@@ -17305,7 +17318,7 @@ const LogViewerBase = memo((_a) => {
|
|
|
17305
17318
|
const LogViewer = React__default.forwardRef((props, ref) => React__default.createElement(LogViewerBase, Object.assign({ innerRef: ref }, props)));
|
|
17306
17319
|
LogViewer.displayName = "LogViewer";
|
|
17307
17320
|
const baseNoReset = "";
|
|
17308
|
-
const
|
|
17321
|
+
const index_jv52b6 = "";
|
|
17309
17322
|
const WrapperStyle$3 = "wve7dfm";
|
|
17310
17323
|
const ToolbarStyle = "t9oeh3c";
|
|
17311
17324
|
const ToolbarAreaStyle = "t1u2zqn6";
|
|
@@ -17397,7 +17410,6 @@ const PodLog = ({
|
|
|
17397
17410
|
}
|
|
17398
17411
|
const total = buffer + chunk.slice(0, lastIndex);
|
|
17399
17412
|
buffer = chunk.slice(lastIndex + 1);
|
|
17400
|
-
console.log(total);
|
|
17401
17413
|
const formattedLogs = total.split("\n").filter(Boolean).map((line) => {
|
|
17402
17414
|
const [timestamps, ...content] = line.split(" ");
|
|
17403
17415
|
const t22 = new Date(timestamps).toLocaleString();
|
|
@@ -17722,7 +17734,8 @@ const NetworkPolicyRulesViewer = ({
|
|
|
17722
17734
|
defaultValue: yaml.dump(ingressOrEgress),
|
|
17723
17735
|
height: "300px",
|
|
17724
17736
|
className: EditorStyle$1,
|
|
17725
|
-
readOnly: true
|
|
17737
|
+
readOnly: true,
|
|
17738
|
+
isScrollOnFocus: true
|
|
17726
17739
|
});
|
|
17727
17740
|
};
|
|
17728
17741
|
const PodContainersTable = ({
|
|
@@ -17733,6 +17746,7 @@ const PodContainersTable = ({
|
|
|
17733
17746
|
const component = useContext(ComponentContext);
|
|
17734
17747
|
const Table$1 = component.Table || Table;
|
|
17735
17748
|
const [currentPage, setCurrentPage] = useState(1);
|
|
17749
|
+
const currentSize = 10;
|
|
17736
17750
|
const columns = useMemo(
|
|
17737
17751
|
() => [
|
|
17738
17752
|
{
|
|
@@ -17809,11 +17823,12 @@ const PodContainersTable = ({
|
|
|
17809
17823
|
{
|
|
17810
17824
|
tableKey: "podContainers",
|
|
17811
17825
|
loading: false,
|
|
17812
|
-
data: dataSource,
|
|
17826
|
+
data: dataSource.slice((currentPage - 1) * currentSize, currentPage * currentSize),
|
|
17827
|
+
total: dataSource.length,
|
|
17813
17828
|
columns: addDefaultRenderToColumns(columns),
|
|
17814
17829
|
rowKey: "containerID",
|
|
17815
17830
|
error: false,
|
|
17816
|
-
currentSize
|
|
17831
|
+
currentSize,
|
|
17817
17832
|
currentPage,
|
|
17818
17833
|
onPageChange: setCurrentPage,
|
|
17819
17834
|
showMenuColumn: false
|
|
@@ -18259,6 +18274,7 @@ function parseJSON(value2) {
|
|
|
18259
18274
|
return void 0;
|
|
18260
18275
|
}
|
|
18261
18276
|
}
|
|
18277
|
+
const GlobalStoreContext = createContext({});
|
|
18262
18278
|
const index_1uuzt53 = "";
|
|
18263
18279
|
const SelectStyle = "sj0ggy";
|
|
18264
18280
|
const DropdownStyle = "d1eo8uqs";
|
|
@@ -18274,6 +18290,15 @@ const NS_STORE_KEY = "namespace-filter";
|
|
|
18274
18290
|
const ALL_NS = "_all";
|
|
18275
18291
|
const useNamespacesFilter = () => {
|
|
18276
18292
|
const [value2] = useLocalStorage(NS_STORE_KEY, [ALL_NS]);
|
|
18293
|
+
const {
|
|
18294
|
+
resource
|
|
18295
|
+
} = useResource();
|
|
18296
|
+
const configs = useContext(ConfigsContext);
|
|
18297
|
+
if ((resource == null ? void 0 : resource.name) && configs[resource == null ? void 0 : resource.name].hideNamespacesFilter) {
|
|
18298
|
+
return {
|
|
18299
|
+
value: []
|
|
18300
|
+
};
|
|
18301
|
+
}
|
|
18277
18302
|
return {
|
|
18278
18303
|
value: value2
|
|
18279
18304
|
};
|
|
@@ -18411,21 +18436,23 @@ function ListPage(props) {
|
|
|
18411
18436
|
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
18412
18437
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
18413
18438
|
className: ListPageStyle,
|
|
18414
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18439
|
+
children: [!config.hideListToolBar ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
18440
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
18441
|
+
selectedKeys,
|
|
18442
|
+
description: config == null ? void 0 : config.description
|
|
18443
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
18444
|
+
style: {
|
|
18445
|
+
margin: 0,
|
|
18446
|
+
minHeight: 1,
|
|
18447
|
+
marginRight: 24,
|
|
18448
|
+
width: "calc(100% - 24px)"
|
|
18449
|
+
}
|
|
18450
|
+
})]
|
|
18451
|
+
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
18425
18452
|
className: ListContentStyle,
|
|
18426
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
18453
|
+
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
18427
18454
|
className: NamespaceFilterStyle
|
|
18428
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18455
|
+
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18429
18456
|
className: TableStyle,
|
|
18430
18457
|
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18431
18458
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
@@ -22321,7 +22348,7 @@ const Separator = () => {
|
|
|
22321
22348
|
});
|
|
22322
22349
|
};
|
|
22323
22350
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22324
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22351
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-90b9132b.js"));
|
|
22325
22352
|
const YamlEditorComponent = forwardRef(
|
|
22326
22353
|
function YamlEditorComponent2(props, ref) {
|
|
22327
22354
|
const {
|
|
@@ -22657,7 +22684,6 @@ function generateYamlBySchema(defaultValue, schema) {
|
|
|
22657
22684
|
const content = yaml.dump(merged);
|
|
22658
22685
|
return content.replace(/(')(#.+?)(')/g, "$2").replace(/( +)(#)/g, "$2$1");
|
|
22659
22686
|
}
|
|
22660
|
-
const GlobalStoreContext = createContext({});
|
|
22661
22687
|
const useGlobalStore = () => {
|
|
22662
22688
|
return useContext(GlobalStoreContext);
|
|
22663
22689
|
};
|
|
@@ -22999,7 +23025,7 @@ const FullscreenModalStyle = "f1nltbcu";
|
|
|
22999
23025
|
const FormDescStyle = "f1qgcca6";
|
|
23000
23026
|
const ErrorStyle = "e1tl3wq2";
|
|
23001
23027
|
function FormModal(props) {
|
|
23002
|
-
var _a, _b, _c, _d;
|
|
23028
|
+
var _a, _b, _c, _d, _e;
|
|
23003
23029
|
const {
|
|
23004
23030
|
resource: resourceFromProps,
|
|
23005
23031
|
id,
|
|
@@ -23046,10 +23072,11 @@ function FormModal(props) {
|
|
|
23046
23072
|
onMutationSuccess: () => {
|
|
23047
23073
|
popModal();
|
|
23048
23074
|
},
|
|
23049
|
-
redirect: false
|
|
23075
|
+
redirect: false,
|
|
23076
|
+
...(_a = config.formConfig) == null ? void 0 : _a.refineCoreProps
|
|
23050
23077
|
}
|
|
23051
23078
|
});
|
|
23052
|
-
const isYamlForm = !((
|
|
23079
|
+
const isYamlForm = !((_b = config.formConfig) == null ? void 0 : _b.fields);
|
|
23053
23080
|
const formEle = (() => {
|
|
23054
23081
|
if (renderForm) {
|
|
23055
23082
|
return renderForm(yamlFormProps);
|
|
@@ -23081,7 +23108,7 @@ function FormModal(props) {
|
|
|
23081
23108
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
|
|
23082
23109
|
className: FullscreenModalStyle,
|
|
23083
23110
|
width: "calc(100vw - 16px)",
|
|
23084
|
-
title: ((
|
|
23111
|
+
title: ((_c = config.formConfig) == null ? void 0 : _c.formTitle) || title,
|
|
23085
23112
|
error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
23086
23113
|
className: ErrorStyle,
|
|
23087
23114
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
|
|
@@ -23093,9 +23120,9 @@ function FormModal(props) {
|
|
|
23093
23120
|
onCancel,
|
|
23094
23121
|
destroyOnClose: true,
|
|
23095
23122
|
fullscreen: true,
|
|
23096
|
-
children: [((
|
|
23123
|
+
children: [((_d = config.formConfig) == null ? void 0 : _d.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23097
23124
|
className: FormDescStyle,
|
|
23098
|
-
children: (
|
|
23125
|
+
children: (_e = config.formConfig) == null ? void 0 : _e.formDesc
|
|
23099
23126
|
}) : void 0, formEle]
|
|
23100
23127
|
});
|
|
23101
23128
|
}
|
|
@@ -24009,7 +24036,7 @@ function addDefaultRenderToColumns(columns) {
|
|
|
24009
24036
|
}));
|
|
24010
24037
|
}
|
|
24011
24038
|
const useEagleTable = (params) => {
|
|
24012
|
-
var _a;
|
|
24039
|
+
var _a, _b, _c;
|
|
24013
24040
|
const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
|
|
24014
24041
|
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
24015
24042
|
const [currentPage, setCurrentPage] = useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
|
|
@@ -24046,7 +24073,9 @@ const useEagleTable = (params) => {
|
|
|
24046
24073
|
},
|
|
24047
24074
|
[setCurrentPage]
|
|
24048
24075
|
);
|
|
24049
|
-
const
|
|
24076
|
+
const currentSize = (tableProps == null ? void 0 : tableProps.currentSize) || 5;
|
|
24077
|
+
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
|
|
24078
|
+
const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
|
|
24050
24079
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
24051
24080
|
const finalProps = {
|
|
24052
24081
|
tableKey: (resource == null ? void 0 : resource.name) || "table",
|
|
@@ -24057,11 +24086,12 @@ const useEagleTable = (params) => {
|
|
|
24057
24086
|
error: false,
|
|
24058
24087
|
rowKey: "id",
|
|
24059
24088
|
currentPage,
|
|
24060
|
-
currentSize
|
|
24089
|
+
currentSize,
|
|
24061
24090
|
onPageChange,
|
|
24062
24091
|
onSelect: (keys) => {
|
|
24063
24092
|
setSelectedKeys(keys);
|
|
24064
24093
|
},
|
|
24094
|
+
total,
|
|
24065
24095
|
RowMenu: Dropdown
|
|
24066
24096
|
};
|
|
24067
24097
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
@@ -24276,7 +24306,7 @@ const relationPlugin = new RelationPlugin();
|
|
|
24276
24306
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
24277
24307
|
const dovetailRefineI18n = i18n;
|
|
24278
24308
|
export {
|
|
24279
|
-
|
|
24309
|
+
ReplicasDropdown as $,
|
|
24280
24310
|
AgeColumnRenderer as A,
|
|
24281
24311
|
useEdit as B,
|
|
24282
24312
|
CommonSorter as C,
|
|
@@ -24289,156 +24319,157 @@ export {
|
|
|
24289
24319
|
dnsSubDomainRules as J,
|
|
24290
24320
|
rfc1123LabelRules as K,
|
|
24291
24321
|
rfc1035LabelRules as L,
|
|
24292
|
-
|
|
24322
|
+
ModalStyle as M,
|
|
24293
24323
|
NameColumnRenderer as N,
|
|
24294
|
-
|
|
24324
|
+
NamespaceSelectWidget as O,
|
|
24295
24325
|
PlainTextNameColumnRenderer as P,
|
|
24296
|
-
|
|
24326
|
+
namespaceRules as Q,
|
|
24297
24327
|
ReplicasColumnRenderer as R,
|
|
24298
24328
|
StateDisplayColumnRenderer as S,
|
|
24299
|
-
|
|
24300
|
-
|
|
24301
|
-
|
|
24329
|
+
KeyValueListWidget as T,
|
|
24330
|
+
MetadataForm as U,
|
|
24331
|
+
PageShow as V,
|
|
24302
24332
|
WorkloadImageColumnRenderer as W,
|
|
24303
|
-
|
|
24304
|
-
|
|
24305
|
-
|
|
24306
|
-
|
|
24333
|
+
Time as X,
|
|
24334
|
+
ConditionsTable as Y,
|
|
24335
|
+
PodContainersTable as Z,
|
|
24336
|
+
WorkloadDropdown as _,
|
|
24307
24337
|
useDeleteModal as a,
|
|
24308
|
-
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
|
|
24347
|
-
|
|
24348
|
-
|
|
24349
|
-
|
|
24350
|
-
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
|
|
24354
|
-
|
|
24355
|
-
|
|
24356
|
-
|
|
24357
|
-
|
|
24358
|
-
|
|
24359
|
-
|
|
24360
|
-
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24338
|
+
StateTag as a$,
|
|
24339
|
+
CreateButton as a0,
|
|
24340
|
+
ImageNames as a1,
|
|
24341
|
+
ResourceList as a2,
|
|
24342
|
+
ResourceShow as a3,
|
|
24343
|
+
ResourceForm as a4,
|
|
24344
|
+
ResourceCRUD as a5,
|
|
24345
|
+
WorkloadPodsTable as a6,
|
|
24346
|
+
CronJobDropdown as a7,
|
|
24347
|
+
ResourceUsageBar as a8,
|
|
24348
|
+
WorkloadReplicasForm as a9,
|
|
24349
|
+
LabelsField as aA,
|
|
24350
|
+
AnnotationsField as aB,
|
|
24351
|
+
ServiceInnerClusterAccessField as aC,
|
|
24352
|
+
ServiceOutClusterAccessField as aD,
|
|
24353
|
+
PodSelectorField as aE,
|
|
24354
|
+
PortsTableField as aF,
|
|
24355
|
+
DurationField as aG,
|
|
24356
|
+
EventsTab as aH,
|
|
24357
|
+
PodLogTab as aI,
|
|
24358
|
+
BasicGroup as aJ,
|
|
24359
|
+
PodsGroup as aK,
|
|
24360
|
+
PodContainersGroup as aL,
|
|
24361
|
+
ServicePodsGroup as aM,
|
|
24362
|
+
ConditionsGroup as aN,
|
|
24363
|
+
SecretDataGroup as aO,
|
|
24364
|
+
JobsGroup as aP,
|
|
24365
|
+
IngressRulesGroup as aQ,
|
|
24366
|
+
PodSelectorGroup as aR,
|
|
24367
|
+
PortsGroup as aS,
|
|
24368
|
+
DataGroup as aT,
|
|
24369
|
+
NetworkPolicyIngressRulesGroup as aU,
|
|
24370
|
+
NetworkPolicyEgressRulesGroup as aV,
|
|
24371
|
+
ShowGroupComponent as aW,
|
|
24372
|
+
ShowContent as aX,
|
|
24373
|
+
DeleteManyButton as aY,
|
|
24374
|
+
ListPage as aZ,
|
|
24375
|
+
StateTagStyle as a_,
|
|
24376
|
+
WorkloadReplicas as aa,
|
|
24377
|
+
CronjobJobsTable as ab,
|
|
24378
|
+
KeyValue as ac,
|
|
24379
|
+
KeyValueAnnotation as ad,
|
|
24380
|
+
KeyValueSecret as ae,
|
|
24381
|
+
Separator as af,
|
|
24382
|
+
YamlEditorComponent as ag,
|
|
24383
|
+
DeleteButton as ah,
|
|
24384
|
+
Layout as ai,
|
|
24385
|
+
AreaType as aj,
|
|
24386
|
+
ImageField as ak,
|
|
24387
|
+
ReplicaField as al,
|
|
24388
|
+
ConditionsField as am,
|
|
24389
|
+
PodsField as an,
|
|
24390
|
+
JobsField as ao,
|
|
24391
|
+
DataField as ap,
|
|
24392
|
+
SecretDataField as aq,
|
|
24393
|
+
StartTimeField as ar,
|
|
24394
|
+
ServiceTypeField as as,
|
|
24395
|
+
ClusterIpField as at,
|
|
24396
|
+
SessionAffinityField as au,
|
|
24397
|
+
ServicePodsField as av,
|
|
24398
|
+
IngressRulesTableTabField as aw,
|
|
24399
|
+
EventsTableTabField as ax,
|
|
24400
|
+
NamespaceField as ay,
|
|
24401
|
+
AgeField as az,
|
|
24372
24402
|
NameSpaceColumnRenderer as b,
|
|
24373
|
-
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
|
|
24397
|
-
|
|
24398
|
-
|
|
24399
|
-
|
|
24400
|
-
|
|
24401
|
-
|
|
24402
|
-
|
|
24403
|
-
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
|
|
24422
|
-
|
|
24423
|
-
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24403
|
+
DeploymentModel as b$,
|
|
24404
|
+
DrawerShow as b0,
|
|
24405
|
+
Menu as b1,
|
|
24406
|
+
EditButton as b2,
|
|
24407
|
+
ReferenceLink as b3,
|
|
24408
|
+
ResourceLink as b4,
|
|
24409
|
+
NS_STORE_KEY as b5,
|
|
24410
|
+
ALL_NS as b6,
|
|
24411
|
+
useNamespacesFilter as b7,
|
|
24412
|
+
NamespacesFilter as b8,
|
|
24413
|
+
FormModal as b9,
|
|
24414
|
+
CONFIG_MAP_INIT_VALUE as bA,
|
|
24415
|
+
SERVER_INSTANCE_INIT_VALUE as bB,
|
|
24416
|
+
TIMESTAMP_LABEL as bC,
|
|
24417
|
+
SECRET_OPAQUE_INIT_VALUE as bD,
|
|
24418
|
+
SECRET_IMAGE_REPO_INIT_VALUE as bE,
|
|
24419
|
+
SECRET_BASIC_AUTH_INIT_VALUE as bF,
|
|
24420
|
+
SECRET_SSH_AUTH_INIT_VALUE as bG,
|
|
24421
|
+
SECRET_TLS_INIT_VALUE as bH,
|
|
24422
|
+
SECRET_CUSTOM_INIT_VALUE as bI,
|
|
24423
|
+
WorkloadState as bJ,
|
|
24424
|
+
AccessControlAuth as bK,
|
|
24425
|
+
Dovetail as bL,
|
|
24426
|
+
RESOURCE_GROUP as bM,
|
|
24427
|
+
FormType as bN,
|
|
24428
|
+
ComponentContext as bO,
|
|
24429
|
+
GlobalStoreContext as bP,
|
|
24430
|
+
ConfigsContext as bQ,
|
|
24431
|
+
IngressModel as bR,
|
|
24432
|
+
NetworkPolicyModel as bS,
|
|
24433
|
+
JobModel as bT,
|
|
24434
|
+
WorkloadModel as bU,
|
|
24435
|
+
WorkloadBaseModel as bV,
|
|
24436
|
+
PodModel as bW,
|
|
24437
|
+
PodMetricsModel as bX,
|
|
24438
|
+
ResourceModel as bY,
|
|
24439
|
+
CronJobModel as bZ,
|
|
24440
|
+
EventModel as b_,
|
|
24441
|
+
RefineFormContent as ba,
|
|
24442
|
+
RefineFormPage as bb,
|
|
24443
|
+
SchemaStrategy as bc,
|
|
24444
|
+
YamlForm as bd,
|
|
24445
|
+
useRefineForm as be,
|
|
24446
|
+
ServiceInClusterAccessComponent as bf,
|
|
24447
|
+
ServiceOutClusterAccessComponent as bg,
|
|
24448
|
+
Tags as bh,
|
|
24449
|
+
TextTags as bi,
|
|
24450
|
+
PodLog as bj,
|
|
24451
|
+
NetworkPolicyRulesViewer as bk,
|
|
24452
|
+
Tabs as bl,
|
|
24453
|
+
BASE_INIT_VALUE as bm,
|
|
24454
|
+
DEPLOYMENT_INIT_VALUE as bn,
|
|
24455
|
+
CRONJOB_INIT_VALUE as bo,
|
|
24456
|
+
DAEMONSET_INIT_VALUE as bp,
|
|
24457
|
+
JOB_INIT_VALUE as bq,
|
|
24458
|
+
STATEFULSET_INIT_VALUE as br,
|
|
24459
|
+
POD_INIT_VALUE as bs,
|
|
24460
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bt,
|
|
24461
|
+
SERVICE_NODE_PORT_INIT_VALUE as bu,
|
|
24462
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bv,
|
|
24463
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bw,
|
|
24464
|
+
SERVICE_HEADLESS_INIT_VALUE as bx,
|
|
24465
|
+
INGRESS_INIT_VALUE as by,
|
|
24466
|
+
NETWORK_POLICY_INIT_VALUE as bz,
|
|
24437
24467
|
WorkloadRestartsColumnRenderer as c,
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24468
|
+
DaemonSetModel as c0,
|
|
24469
|
+
StatefulSetModel as c1,
|
|
24470
|
+
ServiceTypeEnum as c2,
|
|
24471
|
+
ServiceModel as c3,
|
|
24472
|
+
ProviderPlugins as c4,
|
|
24442
24473
|
dovetailRefineI18n as d,
|
|
24443
24474
|
NodeNameColumnRenderer as e,
|
|
24444
24475
|
RestartCountColumnRenderer as f,
|