@dovetail-v2/refine 0.1.18-alpha.5 → 0.1.18
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-9fec703f.js → MonacoYamlDiffEditor-583611b1.js} +1 -1
- package/dist/{index-51b14bbe.js → index-a4fdfc01.js} +22 -10
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +21 -9
- package/dist/style.css +0 -3
- package/lib/components/Table/index.d.ts +0 -1
- package/lib/i18n.d.ts +8 -0
- package/lib/locales/en-US/index.d.ts +8 -0
- package/package.json +1 -1
- package/lib/types/globalStore.d.ts +0 -18
|
@@ -1178,6 +1178,14 @@ const edit_label$1 = "Edit label";
|
|
|
1178
1178
|
const csi$1 = "CSI driver";
|
|
1179
1179
|
const confirm$2 = "Confirm";
|
|
1180
1180
|
const no_limitation_rule$1 = "No limitation";
|
|
1181
|
+
const font_size$1 = "Font size";
|
|
1182
|
+
const download_shell_content$1 = "Download console log";
|
|
1183
|
+
const clear_shell$1 = "Clear command line";
|
|
1184
|
+
const disconnected$1 = "Connection Error.";
|
|
1185
|
+
const connecting$1 = "Connecting...";
|
|
1186
|
+
const reconnect$1 = "Reconnect";
|
|
1187
|
+
const edit_form$1 = "Edit form";
|
|
1188
|
+
const exit_yaml_tip$1 = "If you go back to the form, any changes made to the YAML file will be lost.";
|
|
1181
1189
|
const dovetail$1 = {
|
|
1182
1190
|
copy: copy$2,
|
|
1183
1191
|
reset_arguments: reset_arguments$1,
|
|
@@ -1351,7 +1359,15 @@ const dovetail$1 = {
|
|
|
1351
1359
|
edit_label: edit_label$1,
|
|
1352
1360
|
csi: csi$1,
|
|
1353
1361
|
confirm: confirm$2,
|
|
1354
|
-
no_limitation_rule: no_limitation_rule$1
|
|
1362
|
+
no_limitation_rule: no_limitation_rule$1,
|
|
1363
|
+
font_size: font_size$1,
|
|
1364
|
+
download_shell_content: download_shell_content$1,
|
|
1365
|
+
clear_shell: clear_shell$1,
|
|
1366
|
+
disconnected: disconnected$1,
|
|
1367
|
+
connecting: connecting$1,
|
|
1368
|
+
reconnect: reconnect$1,
|
|
1369
|
+
edit_form: edit_form$1,
|
|
1370
|
+
exit_yaml_tip: exit_yaml_tip$1
|
|
1355
1371
|
};
|
|
1356
1372
|
const EN = {
|
|
1357
1373
|
dovetail: dovetail$1
|
|
@@ -8958,7 +8974,7 @@ const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
|
8958
8974
|
class: "a60f3dj",
|
|
8959
8975
|
propsAsIs: false
|
|
8960
8976
|
});
|
|
8961
|
-
const
|
|
8977
|
+
const index_17chkj7 = "";
|
|
8962
8978
|
const TableContainerStyle = "t47xc8k";
|
|
8963
8979
|
function Table$1(props) {
|
|
8964
8980
|
const {
|
|
@@ -8978,8 +8994,7 @@ function Table$1(props) {
|
|
|
8978
8994
|
refetch,
|
|
8979
8995
|
onPageChange,
|
|
8980
8996
|
onSizeChange,
|
|
8981
|
-
empty: empty2
|
|
8982
|
-
hideNamespacesFilter
|
|
8997
|
+
empty: empty2
|
|
8983
8998
|
} = props;
|
|
8984
8999
|
const auxiliaryLineRef = useRef(null);
|
|
8985
9000
|
const wrapperRef = useRef(null);
|
|
@@ -9021,7 +9036,6 @@ function Table$1(props) {
|
|
|
9021
9036
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
9022
9037
|
ref: wrapperRef,
|
|
9023
9038
|
className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
|
|
9024
|
-
"data-hide-ns-filter": hideNamespacesFilter,
|
|
9025
9039
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Table$2, {
|
|
9026
9040
|
tableLayout: "fixed",
|
|
9027
9041
|
columns: finalColumns,
|
|
@@ -12708,7 +12722,7 @@ function PVVolumeModeDisplay(props) {
|
|
|
12708
12722
|
const GlobalStoreContext = createContext({});
|
|
12709
12723
|
function Table(props) {
|
|
12710
12724
|
var _a;
|
|
12711
|
-
const { tableProps, displayName, errorContentProps
|
|
12725
|
+
const { tableProps, displayName, errorContentProps } = props;
|
|
12712
12726
|
const { Table: TableComponent } = useContext(ComponentContext);
|
|
12713
12727
|
const Table2 = TableComponent || Table$1;
|
|
12714
12728
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -12727,7 +12741,6 @@ function Table(props) {
|
|
|
12727
12741
|
{
|
|
12728
12742
|
...tableProps,
|
|
12729
12743
|
empty: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
12730
|
-
hideNamespacesFilter,
|
|
12731
12744
|
className: cx_default(tableProps.className)
|
|
12732
12745
|
}
|
|
12733
12746
|
);
|
|
@@ -36016,8 +36029,7 @@ function ListPage(props) {
|
|
|
36016
36029
|
y: "calc(100% - 48px)"
|
|
36017
36030
|
}
|
|
36018
36031
|
},
|
|
36019
|
-
displayName: (config == null ? void 0 : config.displayName) || config.kind
|
|
36020
|
-
hideNamespacesFilter: config.hideNamespacesFilter
|
|
36032
|
+
displayName: (config == null ? void 0 : config.displayName) || config.kind
|
|
36021
36033
|
})
|
|
36022
36034
|
})]
|
|
36023
36035
|
})]
|
|
@@ -38465,7 +38477,7 @@ const Separator = () => {
|
|
|
38465
38477
|
});
|
|
38466
38478
|
};
|
|
38467
38479
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38468
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38480
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-583611b1.js"));
|
|
38469
38481
|
const YamlEditorComponent = forwardRef(
|
|
38470
38482
|
function YamlEditorComponent2(props, ref) {
|
|
38471
38483
|
const {
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-
|
|
1
|
+
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-a4fdfc01.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -1184,6 +1184,14 @@ var __publicField = (obj, key, value) => {
|
|
|
1184
1184
|
const csi$1 = "CSI driver";
|
|
1185
1185
|
const confirm$2 = "Confirm";
|
|
1186
1186
|
const no_limitation_rule$1 = "No limitation";
|
|
1187
|
+
const font_size$1 = "Font size";
|
|
1188
|
+
const download_shell_content$1 = "Download console log";
|
|
1189
|
+
const clear_shell$1 = "Clear command line";
|
|
1190
|
+
const disconnected$1 = "Connection Error.";
|
|
1191
|
+
const connecting$1 = "Connecting...";
|
|
1192
|
+
const reconnect$1 = "Reconnect";
|
|
1193
|
+
const edit_form$1 = "Edit form";
|
|
1194
|
+
const exit_yaml_tip$1 = "If you go back to the form, any changes made to the YAML file will be lost.";
|
|
1187
1195
|
const dovetail$1 = {
|
|
1188
1196
|
copy: copy$2,
|
|
1189
1197
|
reset_arguments: reset_arguments$1,
|
|
@@ -1357,7 +1365,15 @@ var __publicField = (obj, key, value) => {
|
|
|
1357
1365
|
edit_label: edit_label$1,
|
|
1358
1366
|
csi: csi$1,
|
|
1359
1367
|
confirm: confirm$2,
|
|
1360
|
-
no_limitation_rule: no_limitation_rule$1
|
|
1368
|
+
no_limitation_rule: no_limitation_rule$1,
|
|
1369
|
+
font_size: font_size$1,
|
|
1370
|
+
download_shell_content: download_shell_content$1,
|
|
1371
|
+
clear_shell: clear_shell$1,
|
|
1372
|
+
disconnected: disconnected$1,
|
|
1373
|
+
connecting: connecting$1,
|
|
1374
|
+
reconnect: reconnect$1,
|
|
1375
|
+
edit_form: edit_form$1,
|
|
1376
|
+
exit_yaml_tip: exit_yaml_tip$1
|
|
1361
1377
|
};
|
|
1362
1378
|
const EN = {
|
|
1363
1379
|
dovetail: dovetail$1
|
|
@@ -8964,7 +8980,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8964
8980
|
class: "a60f3dj",
|
|
8965
8981
|
propsAsIs: false
|
|
8966
8982
|
});
|
|
8967
|
-
const
|
|
8983
|
+
const index_17chkj7 = "";
|
|
8968
8984
|
const TableContainerStyle = "t47xc8k";
|
|
8969
8985
|
function Table$1(props) {
|
|
8970
8986
|
const {
|
|
@@ -8984,8 +9000,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8984
9000
|
refetch,
|
|
8985
9001
|
onPageChange,
|
|
8986
9002
|
onSizeChange,
|
|
8987
|
-
empty: empty2
|
|
8988
|
-
hideNamespacesFilter
|
|
9003
|
+
empty: empty2
|
|
8989
9004
|
} = props;
|
|
8990
9005
|
const auxiliaryLineRef = React.useRef(null);
|
|
8991
9006
|
const wrapperRef = React.useRef(null);
|
|
@@ -9027,7 +9042,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9027
9042
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
9028
9043
|
ref: wrapperRef,
|
|
9029
9044
|
className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
|
|
9030
|
-
"data-hide-ns-filter": hideNamespacesFilter,
|
|
9031
9045
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Table, {
|
|
9032
9046
|
tableLayout: "fixed",
|
|
9033
9047
|
columns: finalColumns,
|
|
@@ -12714,7 +12728,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12714
12728
|
const GlobalStoreContext = React.createContext({});
|
|
12715
12729
|
function Table(props) {
|
|
12716
12730
|
var _a;
|
|
12717
|
-
const { tableProps, displayName, errorContentProps
|
|
12731
|
+
const { tableProps, displayName, errorContentProps } = props;
|
|
12718
12732
|
const { Table: TableComponent } = React.useContext(ComponentContext);
|
|
12719
12733
|
const Table2 = TableComponent || Table$1;
|
|
12720
12734
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -12733,7 +12747,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12733
12747
|
{
|
|
12734
12748
|
...tableProps,
|
|
12735
12749
|
empty: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
12736
|
-
hideNamespacesFilter,
|
|
12737
12750
|
className: cx_default(tableProps.className)
|
|
12738
12751
|
}
|
|
12739
12752
|
);
|
|
@@ -36022,8 +36035,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
36022
36035
|
y: "calc(100% - 48px)"
|
|
36023
36036
|
}
|
|
36024
36037
|
},
|
|
36025
|
-
displayName: (config == null ? void 0 : config.displayName) || config.kind
|
|
36026
|
-
hideNamespacesFilter: config.hideNamespacesFilter
|
|
36038
|
+
displayName: (config == null ? void 0 : config.displayName) || config.kind
|
|
36027
36039
|
})
|
|
36028
36040
|
})]
|
|
36029
36041
|
})]
|
package/dist/style.css
CHANGED
|
@@ -6,7 +6,6 @@ interface TableProps<Model extends ResourceModel> {
|
|
|
6
6
|
tableProps: InternalTableProps<Model>;
|
|
7
7
|
displayName: string;
|
|
8
8
|
errorContentProps?: WidgetErrorContentProps;
|
|
9
|
-
hideNamespacesFilter?: boolean;
|
|
10
9
|
}
|
|
11
10
|
export declare function Table<Model extends ResourceModel>(props: TableProps<Model>): JSX.Element;
|
|
12
11
|
export {};
|
package/lib/i18n.d.ts
CHANGED
|
@@ -176,6 +176,14 @@ export declare const resources: {
|
|
|
176
176
|
csi: string;
|
|
177
177
|
confirm: string;
|
|
178
178
|
no_limitation_rule: string;
|
|
179
|
+
font_size: string;
|
|
180
|
+
download_shell_content: string;
|
|
181
|
+
clear_shell: string;
|
|
182
|
+
disconnected: string;
|
|
183
|
+
connecting: string;
|
|
184
|
+
reconnect: string;
|
|
185
|
+
edit_form: string;
|
|
186
|
+
exit_yaml_tip: string;
|
|
179
187
|
};
|
|
180
188
|
};
|
|
181
189
|
'zh-CN': {
|
|
@@ -173,6 +173,14 @@ declare const _default: {
|
|
|
173
173
|
csi: string;
|
|
174
174
|
confirm: string;
|
|
175
175
|
no_limitation_rule: string;
|
|
176
|
+
font_size: string;
|
|
177
|
+
download_shell_content: string;
|
|
178
|
+
clear_shell: string;
|
|
179
|
+
disconnected: string;
|
|
180
|
+
connecting: string;
|
|
181
|
+
reconnect: string;
|
|
182
|
+
edit_form: string;
|
|
183
|
+
exit_yaml_tip: string;
|
|
176
184
|
};
|
|
177
185
|
};
|
|
178
186
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MetaQuery } from '@refinedev/core';
|
|
2
|
-
import { IProviderPlugin, WatchEvent, GlobalStoreInitParams, Unstructured, UnstructuredList, CancelQueriesParams } from 'k8s-api-provider';
|
|
3
|
-
export interface IGlobalStore {
|
|
4
|
-
plugins: IProviderPlugin[];
|
|
5
|
-
prefix?: string;
|
|
6
|
-
fieldManager?: string;
|
|
7
|
-
apiUrl: string;
|
|
8
|
-
kubeApiTimeout: number | false | undefined;
|
|
9
|
-
get<T = UnstructuredList>(resource: string, meta?: MetaQuery): Promise<T>;
|
|
10
|
-
subscribe(resource: string, onEvent: (data: WatchEvent) => void): () => void;
|
|
11
|
-
publish(resource: string, data: WatchEvent): void;
|
|
12
|
-
init(params: GlobalStoreInitParams): void;
|
|
13
|
-
loadPlugins(plugins?: IProviderPlugin[]): void;
|
|
14
|
-
restoreItem(item: Unstructured): Unstructured;
|
|
15
|
-
restoreData(list: UnstructuredList): UnstructuredList;
|
|
16
|
-
destroy(): void;
|
|
17
|
-
cancelQueries(params?: CancelQueriesParams): void;
|
|
18
|
-
}
|