@dovetail-v2/refine 0.0.2 → 0.0.4
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.a7832cec.js → MonacoYamlDiffEditor.0954476c.js} +2 -1
- package/dist/{index.bd5d18c4.js → index.ea039602.js} +929 -280
- package/dist/refine.js +2 -1
- package/dist/refine.umd.cjs +929 -280
- package/lib/src/Dovetail.d.ts +1 -0
- package/lib/src/main.d.ts +1 -1
- package/package.json +1 -1
package/dist/refine.umd.cjs
CHANGED
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
(function(global2, factory) {
|
|
8
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("js-yaml"), require("lodash-es"), require("sunflower-antd"), require("@cloudtower/icons-react"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("ky"), require("mitt")) : typeof define === "function" && define.amd ? define(["exports", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "js-yaml", "lodash-es", "sunflower-antd", "@cloudtower/icons-react", "monaco-editor", "monaco-yaml", "react-dom", "ky", "mitt"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.yaml, global2.lodashEs, global2.sunflowerAntd, global2.iconsReact, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.require$$0, global2.require$$2));
|
|
9
|
-
})(this, function(exports2, core, qs, React, reactRouterDom, eagle, yaml, lodashEs, sunflowerAntd, iconsReact, monaco, monacoYaml, ReactDOM, require$$0, require$$2) {
|
|
8
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("js-yaml"), require("lodash-es"), require("sunflower-antd"), require("@cloudtower/icons-react"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("ky"), require("mitt"), require("i18next")) : typeof define === "function" && define.amd ? define(["exports", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "js-yaml", "lodash-es", "sunflower-antd", "@cloudtower/icons-react", "monaco-editor", "monaco-yaml", "react-dom", "ky", "mitt", "i18next"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.yaml, global2.lodashEs, global2.sunflowerAntd, global2.iconsReact, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.require$$0, global2.require$$2, global2.i18n));
|
|
9
|
+
})(this, function(exports2, core, qs, React, reactRouterDom, eagle, yaml, lodashEs, sunflowerAntd, iconsReact, monaco, monacoYaml, ReactDOM, require$$0, require$$2, i18n) {
|
|
10
10
|
"use strict";
|
|
11
11
|
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
12
12
|
function _interopNamespace(e) {
|
|
@@ -33,6 +33,7 @@ var __publicField = (obj, key, value) => {
|
|
|
33
33
|
const ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
|
|
34
34
|
const require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
|
|
35
35
|
const require$$2__default = /* @__PURE__ */ _interopDefaultLegacy(require$$2);
|
|
36
|
+
const i18n__default = /* @__PURE__ */ _interopDefaultLegacy(i18n);
|
|
36
37
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
37
38
|
var jsxRuntime = { exports: {} };
|
|
38
39
|
var reactJsxRuntime_production_min = {};
|
|
@@ -157,9 +158,9 @@ var __publicField = (obj, key, value) => {
|
|
|
157
158
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
158
159
|
var stack = "";
|
|
159
160
|
if (currentlyValidatingElement) {
|
|
160
|
-
var
|
|
161
|
+
var name2 = getComponentName(currentlyValidatingElement.type);
|
|
161
162
|
var owner = currentlyValidatingElement._owner;
|
|
162
|
-
stack += describeComponentFrame(
|
|
163
|
+
stack += describeComponentFrame(name2, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
|
163
164
|
}
|
|
164
165
|
stack += ReactDebugCurrentFrame.getStackAddendum();
|
|
165
166
|
if (stack !== "") {
|
|
@@ -174,22 +175,22 @@ var __publicField = (obj, key, value) => {
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
var enableScopeAPI = false;
|
|
177
|
-
function isValidElementType(
|
|
178
|
-
if (typeof
|
|
178
|
+
function isValidElementType(type2) {
|
|
179
|
+
if (typeof type2 === "string" || typeof type2 === "function") {
|
|
179
180
|
return true;
|
|
180
181
|
}
|
|
181
|
-
if (
|
|
182
|
+
if (type2 === exports3.Fragment || type2 === REACT_PROFILER_TYPE || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
182
183
|
return true;
|
|
183
184
|
}
|
|
184
|
-
if (typeof
|
|
185
|
-
if (
|
|
185
|
+
if (typeof type2 === "object" && type2 !== null) {
|
|
186
|
+
if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
186
187
|
return true;
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
return false;
|
|
190
191
|
}
|
|
191
192
|
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
192
|
-
function describeComponentFrame(
|
|
193
|
+
function describeComponentFrame(name2, source, ownerName) {
|
|
193
194
|
var sourceInfo = "";
|
|
194
195
|
if (source) {
|
|
195
196
|
var path = source.fileName;
|
|
@@ -210,7 +211,7 @@ var __publicField = (obj, key, value) => {
|
|
|
210
211
|
} else if (ownerName) {
|
|
211
212
|
sourceInfo = " (created by " + ownerName + ")";
|
|
212
213
|
}
|
|
213
|
-
return "\n in " + (
|
|
214
|
+
return "\n in " + (name2 || "Unknown") + sourceInfo;
|
|
214
215
|
}
|
|
215
216
|
var Resolved = 1;
|
|
216
217
|
function refineResolvedLazyComponent(lazyComponent) {
|
|
@@ -220,22 +221,22 @@ var __publicField = (obj, key, value) => {
|
|
|
220
221
|
var functionName = innerType.displayName || innerType.name || "";
|
|
221
222
|
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
222
223
|
}
|
|
223
|
-
function getComponentName(
|
|
224
|
-
if (
|
|
224
|
+
function getComponentName(type2) {
|
|
225
|
+
if (type2 == null) {
|
|
225
226
|
return null;
|
|
226
227
|
}
|
|
227
228
|
{
|
|
228
|
-
if (typeof
|
|
229
|
+
if (typeof type2.tag === "number") {
|
|
229
230
|
error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
|
-
if (typeof
|
|
233
|
-
return
|
|
233
|
+
if (typeof type2 === "function") {
|
|
234
|
+
return type2.displayName || type2.name || null;
|
|
234
235
|
}
|
|
235
|
-
if (typeof
|
|
236
|
-
return
|
|
236
|
+
if (typeof type2 === "string") {
|
|
237
|
+
return type2;
|
|
237
238
|
}
|
|
238
|
-
switch (
|
|
239
|
+
switch (type2) {
|
|
239
240
|
case exports3.Fragment:
|
|
240
241
|
return "Fragment";
|
|
241
242
|
case REACT_PORTAL_TYPE:
|
|
@@ -249,20 +250,20 @@ var __publicField = (obj, key, value) => {
|
|
|
249
250
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
250
251
|
return "SuspenseList";
|
|
251
252
|
}
|
|
252
|
-
if (typeof
|
|
253
|
-
switch (
|
|
253
|
+
if (typeof type2 === "object") {
|
|
254
|
+
switch (type2.$$typeof) {
|
|
254
255
|
case REACT_CONTEXT_TYPE:
|
|
255
256
|
return "Context.Consumer";
|
|
256
257
|
case REACT_PROVIDER_TYPE:
|
|
257
258
|
return "Context.Provider";
|
|
258
259
|
case REACT_FORWARD_REF_TYPE:
|
|
259
|
-
return getWrappedName(
|
|
260
|
+
return getWrappedName(type2, type2.render, "ForwardRef");
|
|
260
261
|
case REACT_MEMO_TYPE:
|
|
261
|
-
return getComponentName(
|
|
262
|
+
return getComponentName(type2.type);
|
|
262
263
|
case REACT_BLOCK_TYPE:
|
|
263
|
-
return getComponentName(
|
|
264
|
+
return getComponentName(type2.render);
|
|
264
265
|
case REACT_LAZY_TYPE: {
|
|
265
|
-
var thenable =
|
|
266
|
+
var thenable = type2;
|
|
266
267
|
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
267
268
|
if (resolvedThenable) {
|
|
268
269
|
return getComponentName(resolvedThenable);
|
|
@@ -389,10 +390,10 @@ var __publicField = (obj, key, value) => {
|
|
|
389
390
|
});
|
|
390
391
|
}
|
|
391
392
|
}
|
|
392
|
-
var ReactElement = function(
|
|
393
|
+
var ReactElement = function(type2, key, ref, self2, source, owner, props) {
|
|
393
394
|
var element = {
|
|
394
395
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
395
|
-
type,
|
|
396
|
+
type: type2,
|
|
396
397
|
key,
|
|
397
398
|
ref,
|
|
398
399
|
props,
|
|
@@ -425,7 +426,7 @@ var __publicField = (obj, key, value) => {
|
|
|
425
426
|
}
|
|
426
427
|
return element;
|
|
427
428
|
};
|
|
428
|
-
function jsxDEV(
|
|
429
|
+
function jsxDEV(type2, config, maybeKey, source, self2) {
|
|
429
430
|
{
|
|
430
431
|
var propName;
|
|
431
432
|
var props = {};
|
|
@@ -446,8 +447,8 @@ var __publicField = (obj, key, value) => {
|
|
|
446
447
|
props[propName] = config[propName];
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
|
-
if (
|
|
450
|
-
var defaultProps =
|
|
450
|
+
if (type2 && type2.defaultProps) {
|
|
451
|
+
var defaultProps = type2.defaultProps;
|
|
451
452
|
for (propName in defaultProps) {
|
|
452
453
|
if (props[propName] === void 0) {
|
|
453
454
|
props[propName] = defaultProps[propName];
|
|
@@ -455,7 +456,7 @@ var __publicField = (obj, key, value) => {
|
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
458
|
if (key || ref) {
|
|
458
|
-
var displayName = typeof
|
|
459
|
+
var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2;
|
|
459
460
|
if (key) {
|
|
460
461
|
defineKeyPropWarningGetter(props, displayName);
|
|
461
462
|
}
|
|
@@ -463,7 +464,7 @@ var __publicField = (obj, key, value) => {
|
|
|
463
464
|
defineRefPropWarningGetter(props, displayName);
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
|
-
return ReactElement(
|
|
467
|
+
return ReactElement(type2, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
467
468
|
}
|
|
468
469
|
}
|
|
469
470
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
@@ -483,9 +484,9 @@ var __publicField = (obj, key, value) => {
|
|
|
483
484
|
function getDeclarationErrorAddendum() {
|
|
484
485
|
{
|
|
485
486
|
if (ReactCurrentOwner$1.current) {
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
488
|
-
return "\n\nCheck the render method of `" +
|
|
487
|
+
var name2 = getComponentName(ReactCurrentOwner$1.current.type);
|
|
488
|
+
if (name2) {
|
|
489
|
+
return "\n\nCheck the render method of `" + name2 + "`.";
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
return "";
|
|
@@ -568,27 +569,27 @@ var __publicField = (obj, key, value) => {
|
|
|
568
569
|
}
|
|
569
570
|
function validatePropTypes(element) {
|
|
570
571
|
{
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
572
|
+
var type2 = element.type;
|
|
573
|
+
if (type2 === null || type2 === void 0 || typeof type2 === "string") {
|
|
573
574
|
return;
|
|
574
575
|
}
|
|
575
576
|
var propTypes;
|
|
576
|
-
if (typeof
|
|
577
|
-
propTypes =
|
|
578
|
-
} else if (typeof
|
|
579
|
-
propTypes =
|
|
577
|
+
if (typeof type2 === "function") {
|
|
578
|
+
propTypes = type2.propTypes;
|
|
579
|
+
} else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_MEMO_TYPE)) {
|
|
580
|
+
propTypes = type2.propTypes;
|
|
580
581
|
} else {
|
|
581
582
|
return;
|
|
582
583
|
}
|
|
583
584
|
if (propTypes) {
|
|
584
|
-
var
|
|
585
|
-
checkPropTypes(propTypes, element.props, "prop",
|
|
586
|
-
} else if (
|
|
585
|
+
var name2 = getComponentName(type2);
|
|
586
|
+
checkPropTypes(propTypes, element.props, "prop", name2, element);
|
|
587
|
+
} else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
587
588
|
propTypesMisspellWarningShown = true;
|
|
588
|
-
var _name = getComponentName(
|
|
589
|
+
var _name = getComponentName(type2);
|
|
589
590
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
590
591
|
}
|
|
591
|
-
if (typeof
|
|
592
|
+
if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) {
|
|
592
593
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
593
594
|
}
|
|
594
595
|
}
|
|
@@ -612,12 +613,12 @@ var __publicField = (obj, key, value) => {
|
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
|
-
function jsxWithValidation(
|
|
616
|
+
function jsxWithValidation(type2, props, key, isStaticChildren, source, self2) {
|
|
616
617
|
{
|
|
617
|
-
var validType = isValidElementType(
|
|
618
|
+
var validType = isValidElementType(type2);
|
|
618
619
|
if (!validType) {
|
|
619
620
|
var info = "";
|
|
620
|
-
if (
|
|
621
|
+
if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) {
|
|
621
622
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
622
623
|
}
|
|
623
624
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
@@ -627,19 +628,19 @@ var __publicField = (obj, key, value) => {
|
|
|
627
628
|
info += getDeclarationErrorAddendum();
|
|
628
629
|
}
|
|
629
630
|
var typeString;
|
|
630
|
-
if (
|
|
631
|
+
if (type2 === null) {
|
|
631
632
|
typeString = "null";
|
|
632
|
-
} else if (Array.isArray(
|
|
633
|
+
} else if (Array.isArray(type2)) {
|
|
633
634
|
typeString = "array";
|
|
634
|
-
} else if (
|
|
635
|
-
typeString = "<" + (getComponentName(
|
|
635
|
+
} else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) {
|
|
636
|
+
typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />";
|
|
636
637
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
637
638
|
} else {
|
|
638
|
-
typeString = typeof
|
|
639
|
+
typeString = typeof type2;
|
|
639
640
|
}
|
|
640
641
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
641
642
|
}
|
|
642
|
-
var element = jsxDEV(
|
|
643
|
+
var element = jsxDEV(type2, props, key, source, self2);
|
|
643
644
|
if (element == null) {
|
|
644
645
|
return element;
|
|
645
646
|
}
|
|
@@ -649,7 +650,7 @@ var __publicField = (obj, key, value) => {
|
|
|
649
650
|
if (isStaticChildren) {
|
|
650
651
|
if (Array.isArray(children)) {
|
|
651
652
|
for (var i = 0; i < children.length; i++) {
|
|
652
|
-
validateChildKeys(children[i],
|
|
653
|
+
validateChildKeys(children[i], type2);
|
|
653
654
|
}
|
|
654
655
|
if (Object.freeze) {
|
|
655
656
|
Object.freeze(children);
|
|
@@ -658,11 +659,11 @@ var __publicField = (obj, key, value) => {
|
|
|
658
659
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
659
660
|
}
|
|
660
661
|
} else {
|
|
661
|
-
validateChildKeys(children,
|
|
662
|
+
validateChildKeys(children, type2);
|
|
662
663
|
}
|
|
663
664
|
}
|
|
664
665
|
}
|
|
665
|
-
if (
|
|
666
|
+
if (type2 === exports3.Fragment) {
|
|
666
667
|
validateFragmentProps(element);
|
|
667
668
|
} else {
|
|
668
669
|
validatePropTypes(element);
|
|
@@ -670,14 +671,14 @@ var __publicField = (obj, key, value) => {
|
|
|
670
671
|
return element;
|
|
671
672
|
}
|
|
672
673
|
}
|
|
673
|
-
function jsxWithValidationStatic(
|
|
674
|
+
function jsxWithValidationStatic(type2, props, key) {
|
|
674
675
|
{
|
|
675
|
-
return jsxWithValidation(
|
|
676
|
+
return jsxWithValidation(type2, props, key, true);
|
|
676
677
|
}
|
|
677
678
|
}
|
|
678
|
-
function jsxWithValidationDynamic(
|
|
679
|
+
function jsxWithValidationDynamic(type2, props, key) {
|
|
679
680
|
{
|
|
680
|
-
return jsxWithValidation(
|
|
681
|
+
return jsxWithValidation(type2, props, key, false);
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
684
|
var jsx = jsxWithValidationDynamic;
|
|
@@ -716,9 +717,9 @@ var __publicField = (obj, key, value) => {
|
|
|
716
717
|
const routerProvider = {
|
|
717
718
|
go: () => {
|
|
718
719
|
const { search: existingSearch, hash: existingHash } = reactRouterDom.useLocation();
|
|
719
|
-
const
|
|
720
|
+
const history2 = reactRouterDom.useHistory();
|
|
720
721
|
const fn = React.useCallback(
|
|
721
|
-
({ to, type, query, hash, options: { keepQuery, keepHash } = {} }) => {
|
|
722
|
+
({ to, type: type2, query, hash, options: { keepQuery, keepHash } = {} }) => {
|
|
722
723
|
const urlQuery = {
|
|
723
724
|
...keepQuery && existingSearch && qs.parse(existingSearch, { ignoreQueryPrefix: true }),
|
|
724
725
|
...query
|
|
@@ -734,30 +735,30 @@ var __publicField = (obj, key, value) => {
|
|
|
734
735
|
const hasUrlHash = urlHash.length > 1;
|
|
735
736
|
const urlTo = to || "";
|
|
736
737
|
const fullPath = `${urlTo}${hasUrlQuery ? qs.stringify(urlQuery, stringifyConfig) : ""}${hasUrlHash ? urlHash : ""}`;
|
|
737
|
-
if (
|
|
738
|
+
if (type2 === "path") {
|
|
738
739
|
return fullPath;
|
|
739
740
|
}
|
|
740
|
-
return
|
|
741
|
+
return history2[type2 || "push"](fullPath);
|
|
741
742
|
},
|
|
742
|
-
[existingHash, existingSearch,
|
|
743
|
+
[existingHash, existingSearch, history2]
|
|
743
744
|
);
|
|
744
745
|
return fn;
|
|
745
746
|
},
|
|
746
747
|
back: () => {
|
|
747
|
-
const
|
|
748
|
+
const history2 = reactRouterDom.useHistory();
|
|
748
749
|
const fn = React.useCallback(() => {
|
|
749
|
-
|
|
750
|
-
}, [
|
|
750
|
+
history2.go(-1);
|
|
751
|
+
}, [history2]);
|
|
751
752
|
return fn;
|
|
752
753
|
},
|
|
753
754
|
parse: () => {
|
|
754
755
|
var _a;
|
|
755
756
|
let params = reactRouterDom.useParams();
|
|
756
757
|
const { pathname, search } = reactRouterDom.useLocation();
|
|
757
|
-
const { resources } = React.useContext(core.ResourceContext);
|
|
758
|
+
const { resources: resources2 } = React.useContext(core.ResourceContext);
|
|
758
759
|
const { resource, action, matchedRoute } = React__default.default.useMemo(() => {
|
|
759
|
-
return core.matchResourceFromRoute(pathname,
|
|
760
|
-
}, [
|
|
760
|
+
return core.matchResourceFromRoute(pathname, resources2);
|
|
761
|
+
}, [resources2, pathname]);
|
|
761
762
|
if (Object.entries(params).length === 0 && matchedRoute) {
|
|
762
763
|
params = ((_a = reactRouterDom.matchPath(matchedRoute, pathname)) == null ? void 0 : _a.params) || {};
|
|
763
764
|
}
|
|
@@ -787,6 +788,20 @@ var __publicField = (obj, key, value) => {
|
|
|
787
788
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Link, { ...props, ref });
|
|
788
789
|
})
|
|
789
790
|
};
|
|
791
|
+
function _extends() {
|
|
792
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
793
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
794
|
+
var source = arguments[i];
|
|
795
|
+
for (var key in source) {
|
|
796
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
797
|
+
target[key] = source[key];
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
return target;
|
|
802
|
+
};
|
|
803
|
+
return _extends.apply(this, arguments);
|
|
804
|
+
}
|
|
790
805
|
function warn() {
|
|
791
806
|
if (console && console.warn) {
|
|
792
807
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -808,63 +823,63 @@ var __publicField = (obj, key, value) => {
|
|
|
808
823
|
alreadyWarned[args[0]] = new Date();
|
|
809
824
|
warn(...args);
|
|
810
825
|
}
|
|
811
|
-
const loadedClb = (
|
|
812
|
-
if (
|
|
826
|
+
const loadedClb = (i18n2, cb) => () => {
|
|
827
|
+
if (i18n2.isInitialized) {
|
|
813
828
|
cb();
|
|
814
829
|
} else {
|
|
815
830
|
const initialized = () => {
|
|
816
831
|
setTimeout(() => {
|
|
817
|
-
|
|
832
|
+
i18n2.off("initialized", initialized);
|
|
818
833
|
}, 0);
|
|
819
834
|
cb();
|
|
820
835
|
};
|
|
821
|
-
|
|
836
|
+
i18n2.on("initialized", initialized);
|
|
822
837
|
}
|
|
823
838
|
};
|
|
824
|
-
function loadNamespaces(
|
|
825
|
-
|
|
839
|
+
function loadNamespaces(i18n2, ns, cb) {
|
|
840
|
+
i18n2.loadNamespaces(ns, loadedClb(i18n2, cb));
|
|
826
841
|
}
|
|
827
|
-
function loadLanguages(
|
|
842
|
+
function loadLanguages(i18n2, lng, ns, cb) {
|
|
828
843
|
if (typeof ns === "string")
|
|
829
844
|
ns = [ns];
|
|
830
845
|
ns.forEach((n) => {
|
|
831
|
-
if (
|
|
832
|
-
|
|
846
|
+
if (i18n2.options.ns.indexOf(n) < 0)
|
|
847
|
+
i18n2.options.ns.push(n);
|
|
833
848
|
});
|
|
834
|
-
|
|
849
|
+
i18n2.loadLanguages(lng, loadedClb(i18n2, cb));
|
|
835
850
|
}
|
|
836
|
-
function oldI18nextHasLoadedNamespace(ns,
|
|
851
|
+
function oldI18nextHasLoadedNamespace(ns, i18n2) {
|
|
837
852
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
838
|
-
const lng =
|
|
839
|
-
const fallbackLng =
|
|
840
|
-
const lastLng =
|
|
853
|
+
const lng = i18n2.languages[0];
|
|
854
|
+
const fallbackLng = i18n2.options ? i18n2.options.fallbackLng : false;
|
|
855
|
+
const lastLng = i18n2.languages[i18n2.languages.length - 1];
|
|
841
856
|
if (lng.toLowerCase() === "cimode")
|
|
842
857
|
return true;
|
|
843
858
|
const loadNotPending = (l, n) => {
|
|
844
|
-
const loadState =
|
|
859
|
+
const loadState = i18n2.services.backendConnector.state[`${l}|${n}`];
|
|
845
860
|
return loadState === -1 || loadState === 2;
|
|
846
861
|
};
|
|
847
|
-
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 &&
|
|
862
|
+
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n2.services.backendConnector.backend && i18n2.isLanguageChangingTo && !loadNotPending(i18n2.isLanguageChangingTo, ns))
|
|
848
863
|
return false;
|
|
849
|
-
if (
|
|
864
|
+
if (i18n2.hasResourceBundle(lng, ns))
|
|
850
865
|
return true;
|
|
851
|
-
if (!
|
|
866
|
+
if (!i18n2.services.backendConnector.backend || i18n2.options.resources && !i18n2.options.partialBundledLanguages)
|
|
852
867
|
return true;
|
|
853
868
|
if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns)))
|
|
854
869
|
return true;
|
|
855
870
|
return false;
|
|
856
871
|
}
|
|
857
|
-
function hasLoadedNamespace(ns,
|
|
872
|
+
function hasLoadedNamespace(ns, i18n2) {
|
|
858
873
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
859
|
-
if (!
|
|
860
|
-
warnOnce("i18n.languages were undefined or empty",
|
|
874
|
+
if (!i18n2.languages || !i18n2.languages.length) {
|
|
875
|
+
warnOnce("i18n.languages were undefined or empty", i18n2.languages);
|
|
861
876
|
return true;
|
|
862
877
|
}
|
|
863
|
-
const isNewerI18next =
|
|
878
|
+
const isNewerI18next = i18n2.options.ignoreJSONStructure !== void 0;
|
|
864
879
|
if (!isNewerI18next) {
|
|
865
|
-
return oldI18nextHasLoadedNamespace(ns,
|
|
880
|
+
return oldI18nextHasLoadedNamespace(ns, i18n2, options);
|
|
866
881
|
}
|
|
867
|
-
return
|
|
882
|
+
return i18n2.hasLoadedNamespace(ns, {
|
|
868
883
|
lng: options.lng,
|
|
869
884
|
precheck: (i18nInstance2, loadNotPending) => {
|
|
870
885
|
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns))
|
|
@@ -907,13 +922,30 @@ var __publicField = (obj, key, value) => {
|
|
|
907
922
|
useSuspense: true,
|
|
908
923
|
unescape
|
|
909
924
|
};
|
|
925
|
+
function setDefaults() {
|
|
926
|
+
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
927
|
+
defaultOptions = {
|
|
928
|
+
...defaultOptions,
|
|
929
|
+
...options
|
|
930
|
+
};
|
|
931
|
+
}
|
|
910
932
|
function getDefaults() {
|
|
911
933
|
return defaultOptions;
|
|
912
934
|
}
|
|
913
935
|
let i18nInstance;
|
|
936
|
+
function setI18n(instance) {
|
|
937
|
+
i18nInstance = instance;
|
|
938
|
+
}
|
|
914
939
|
function getI18n() {
|
|
915
940
|
return i18nInstance;
|
|
916
941
|
}
|
|
942
|
+
const initReactI18next = {
|
|
943
|
+
type: "3rdParty",
|
|
944
|
+
init(instance) {
|
|
945
|
+
setDefaults(instance.options.react);
|
|
946
|
+
setI18n(instance);
|
|
947
|
+
}
|
|
948
|
+
};
|
|
917
949
|
const I18nContext = React.createContext();
|
|
918
950
|
class ReportNamespaces {
|
|
919
951
|
constructor() {
|
|
@@ -945,10 +977,10 @@ var __publicField = (obj, key, value) => {
|
|
|
945
977
|
i18n: i18nFromContext,
|
|
946
978
|
defaultNS: defaultNSFromContext
|
|
947
979
|
} = React.useContext(I18nContext) || {};
|
|
948
|
-
const
|
|
949
|
-
if (
|
|
950
|
-
|
|
951
|
-
if (!
|
|
980
|
+
const i18n2 = i18nFromProps || i18nFromContext || getI18n();
|
|
981
|
+
if (i18n2 && !i18n2.reportNamespaces)
|
|
982
|
+
i18n2.reportNamespaces = new ReportNamespaces();
|
|
983
|
+
if (!i18n2) {
|
|
952
984
|
warnOnce("You will need to pass in an i18next instance by using initReactI18next");
|
|
953
985
|
const notReadyT = (k2, optsOrDefaultValue) => {
|
|
954
986
|
if (typeof optsOrDefaultValue === "string")
|
|
@@ -963,24 +995,24 @@ var __publicField = (obj, key, value) => {
|
|
|
963
995
|
retNotReady.ready = false;
|
|
964
996
|
return retNotReady;
|
|
965
997
|
}
|
|
966
|
-
if (
|
|
998
|
+
if (i18n2.options.react && i18n2.options.react.wait !== void 0)
|
|
967
999
|
warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
968
1000
|
const i18nOptions = {
|
|
969
1001
|
...getDefaults(),
|
|
970
|
-
...
|
|
1002
|
+
...i18n2.options.react,
|
|
971
1003
|
...props
|
|
972
1004
|
};
|
|
973
1005
|
const {
|
|
974
1006
|
useSuspense,
|
|
975
1007
|
keyPrefix
|
|
976
1008
|
} = i18nOptions;
|
|
977
|
-
let namespaces = ns || defaultNSFromContext ||
|
|
1009
|
+
let namespaces = ns || defaultNSFromContext || i18n2.options && i18n2.options.defaultNS;
|
|
978
1010
|
namespaces = typeof namespaces === "string" ? [namespaces] : namespaces || ["translation"];
|
|
979
|
-
if (
|
|
980
|
-
|
|
981
|
-
const
|
|
1011
|
+
if (i18n2.reportNamespaces.addUsedNamespaces)
|
|
1012
|
+
i18n2.reportNamespaces.addUsedNamespaces(namespaces);
|
|
1013
|
+
const ready2 = (i18n2.isInitialized || i18n2.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace(n, i18n2, i18nOptions));
|
|
982
1014
|
function getT() {
|
|
983
|
-
return
|
|
1015
|
+
return i18n2.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
984
1016
|
}
|
|
985
1017
|
const [t, setT] = React.useState(getT);
|
|
986
1018
|
let joinedNS = namespaces.join();
|
|
@@ -994,58 +1026,58 @@ var __publicField = (obj, key, value) => {
|
|
|
994
1026
|
bindI18nStore
|
|
995
1027
|
} = i18nOptions;
|
|
996
1028
|
isMounted.current = true;
|
|
997
|
-
if (!
|
|
1029
|
+
if (!ready2 && !useSuspense) {
|
|
998
1030
|
if (props.lng) {
|
|
999
|
-
loadLanguages(
|
|
1031
|
+
loadLanguages(i18n2, props.lng, namespaces, () => {
|
|
1000
1032
|
if (isMounted.current)
|
|
1001
1033
|
setT(getT);
|
|
1002
1034
|
});
|
|
1003
1035
|
} else {
|
|
1004
|
-
loadNamespaces(
|
|
1036
|
+
loadNamespaces(i18n2, namespaces, () => {
|
|
1005
1037
|
if (isMounted.current)
|
|
1006
1038
|
setT(getT);
|
|
1007
1039
|
});
|
|
1008
1040
|
}
|
|
1009
1041
|
}
|
|
1010
|
-
if (
|
|
1042
|
+
if (ready2 && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
1011
1043
|
setT(getT);
|
|
1012
1044
|
}
|
|
1013
1045
|
function boundReset() {
|
|
1014
1046
|
if (isMounted.current)
|
|
1015
1047
|
setT(getT);
|
|
1016
1048
|
}
|
|
1017
|
-
if (bindI18n &&
|
|
1018
|
-
|
|
1019
|
-
if (bindI18nStore &&
|
|
1020
|
-
|
|
1049
|
+
if (bindI18n && i18n2)
|
|
1050
|
+
i18n2.on(bindI18n, boundReset);
|
|
1051
|
+
if (bindI18nStore && i18n2)
|
|
1052
|
+
i18n2.store.on(bindI18nStore, boundReset);
|
|
1021
1053
|
return () => {
|
|
1022
1054
|
isMounted.current = false;
|
|
1023
|
-
if (bindI18n &&
|
|
1024
|
-
bindI18n.split(" ").forEach((e) =>
|
|
1025
|
-
if (bindI18nStore &&
|
|
1026
|
-
bindI18nStore.split(" ").forEach((e) =>
|
|
1055
|
+
if (bindI18n && i18n2)
|
|
1056
|
+
bindI18n.split(" ").forEach((e) => i18n2.off(e, boundReset));
|
|
1057
|
+
if (bindI18nStore && i18n2)
|
|
1058
|
+
bindI18nStore.split(" ").forEach((e) => i18n2.store.off(e, boundReset));
|
|
1027
1059
|
};
|
|
1028
|
-
}, [
|
|
1060
|
+
}, [i18n2, joinedNS]);
|
|
1029
1061
|
const isInitial = React.useRef(true);
|
|
1030
1062
|
React.useEffect(() => {
|
|
1031
1063
|
if (isMounted.current && !isInitial.current) {
|
|
1032
1064
|
setT(getT);
|
|
1033
1065
|
}
|
|
1034
1066
|
isInitial.current = false;
|
|
1035
|
-
}, [
|
|
1036
|
-
const ret = [t,
|
|
1067
|
+
}, [i18n2, keyPrefix]);
|
|
1068
|
+
const ret = [t, i18n2, ready2];
|
|
1037
1069
|
ret.t = t;
|
|
1038
|
-
ret.i18n =
|
|
1039
|
-
ret.ready =
|
|
1040
|
-
if (
|
|
1070
|
+
ret.i18n = i18n2;
|
|
1071
|
+
ret.ready = ready2;
|
|
1072
|
+
if (ready2)
|
|
1041
1073
|
return ret;
|
|
1042
|
-
if (!
|
|
1074
|
+
if (!ready2 && !useSuspense)
|
|
1043
1075
|
return ret;
|
|
1044
1076
|
throw new Promise((resolve) => {
|
|
1045
1077
|
if (props.lng) {
|
|
1046
|
-
loadLanguages(
|
|
1078
|
+
loadLanguages(i18n2, props.lng, namespaces, () => resolve());
|
|
1047
1079
|
} else {
|
|
1048
|
-
loadNamespaces(
|
|
1080
|
+
loadNamespaces(i18n2, namespaces, () => resolve());
|
|
1049
1081
|
}
|
|
1050
1082
|
});
|
|
1051
1083
|
}
|
|
@@ -1667,9 +1699,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1667
1699
|
return reHasUnicodeWord.test(string);
|
|
1668
1700
|
}
|
|
1669
1701
|
function iteratorToArray(iterator) {
|
|
1670
|
-
var
|
|
1671
|
-
while (!(
|
|
1672
|
-
result.push(
|
|
1702
|
+
var data2, result = [];
|
|
1703
|
+
while (!(data2 = iterator.next()).done) {
|
|
1704
|
+
result.push(data2.value);
|
|
1673
1705
|
}
|
|
1674
1706
|
return result;
|
|
1675
1707
|
}
|
|
@@ -1878,11 +1910,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1878
1910
|
index += dir;
|
|
1879
1911
|
var iterIndex = -1, value = array[index];
|
|
1880
1912
|
while (++iterIndex < iterLength) {
|
|
1881
|
-
var
|
|
1882
|
-
if (
|
|
1913
|
+
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type2 = data2.type, computed = iteratee2(value);
|
|
1914
|
+
if (type2 == LAZY_MAP_FLAG) {
|
|
1883
1915
|
value = computed;
|
|
1884
1916
|
} else if (!computed) {
|
|
1885
|
-
if (
|
|
1917
|
+
if (type2 == LAZY_FILTER_FLAG) {
|
|
1886
1918
|
continue outer;
|
|
1887
1919
|
} else {
|
|
1888
1920
|
break outer;
|
|
@@ -1913,21 +1945,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1913
1945
|
return result2;
|
|
1914
1946
|
}
|
|
1915
1947
|
function hashGet(key) {
|
|
1916
|
-
var
|
|
1948
|
+
var data2 = this.__data__;
|
|
1917
1949
|
if (nativeCreate) {
|
|
1918
|
-
var result2 =
|
|
1950
|
+
var result2 = data2[key];
|
|
1919
1951
|
return result2 === HASH_UNDEFINED ? undefined$1 : result2;
|
|
1920
1952
|
}
|
|
1921
|
-
return hasOwnProperty.call(
|
|
1953
|
+
return hasOwnProperty.call(data2, key) ? data2[key] : undefined$1;
|
|
1922
1954
|
}
|
|
1923
1955
|
function hashHas(key) {
|
|
1924
|
-
var
|
|
1925
|
-
return nativeCreate ?
|
|
1956
|
+
var data2 = this.__data__;
|
|
1957
|
+
return nativeCreate ? data2[key] !== undefined$1 : hasOwnProperty.call(data2, key);
|
|
1926
1958
|
}
|
|
1927
1959
|
function hashSet(key, value) {
|
|
1928
|
-
var
|
|
1960
|
+
var data2 = this.__data__;
|
|
1929
1961
|
this.size += this.has(key) ? 0 : 1;
|
|
1930
|
-
|
|
1962
|
+
data2[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
|
|
1931
1963
|
return this;
|
|
1932
1964
|
}
|
|
1933
1965
|
Hash.prototype.clear = hashClear;
|
|
@@ -1948,33 +1980,33 @@ var __publicField = (obj, key, value) => {
|
|
|
1948
1980
|
this.size = 0;
|
|
1949
1981
|
}
|
|
1950
1982
|
function listCacheDelete(key) {
|
|
1951
|
-
var
|
|
1983
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1952
1984
|
if (index < 0) {
|
|
1953
1985
|
return false;
|
|
1954
1986
|
}
|
|
1955
|
-
var lastIndex =
|
|
1987
|
+
var lastIndex = data2.length - 1;
|
|
1956
1988
|
if (index == lastIndex) {
|
|
1957
|
-
|
|
1989
|
+
data2.pop();
|
|
1958
1990
|
} else {
|
|
1959
|
-
splice.call(
|
|
1991
|
+
splice.call(data2, index, 1);
|
|
1960
1992
|
}
|
|
1961
1993
|
--this.size;
|
|
1962
1994
|
return true;
|
|
1963
1995
|
}
|
|
1964
1996
|
function listCacheGet(key) {
|
|
1965
|
-
var
|
|
1966
|
-
return index < 0 ? undefined$1 :
|
|
1997
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1998
|
+
return index < 0 ? undefined$1 : data2[index][1];
|
|
1967
1999
|
}
|
|
1968
2000
|
function listCacheHas(key) {
|
|
1969
2001
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1970
2002
|
}
|
|
1971
2003
|
function listCacheSet(key, value) {
|
|
1972
|
-
var
|
|
2004
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1973
2005
|
if (index < 0) {
|
|
1974
2006
|
++this.size;
|
|
1975
|
-
|
|
2007
|
+
data2.push([key, value]);
|
|
1976
2008
|
} else {
|
|
1977
|
-
|
|
2009
|
+
data2[index][1] = value;
|
|
1978
2010
|
}
|
|
1979
2011
|
return this;
|
|
1980
2012
|
}
|
|
@@ -2011,9 +2043,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2011
2043
|
return getMapData(this, key).has(key);
|
|
2012
2044
|
}
|
|
2013
2045
|
function mapCacheSet(key, value) {
|
|
2014
|
-
var
|
|
2015
|
-
|
|
2016
|
-
this.size +=
|
|
2046
|
+
var data2 = getMapData(this, key), size2 = data2.size;
|
|
2047
|
+
data2.set(key, value);
|
|
2048
|
+
this.size += data2.size == size2 ? 0 : 1;
|
|
2017
2049
|
return this;
|
|
2018
2050
|
}
|
|
2019
2051
|
MapCache.prototype.clear = mapCacheClear;
|
|
@@ -2038,16 +2070,16 @@ var __publicField = (obj, key, value) => {
|
|
|
2038
2070
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
2039
2071
|
SetCache.prototype.has = setCacheHas;
|
|
2040
2072
|
function Stack(entries) {
|
|
2041
|
-
var
|
|
2042
|
-
this.size =
|
|
2073
|
+
var data2 = this.__data__ = new ListCache(entries);
|
|
2074
|
+
this.size = data2.size;
|
|
2043
2075
|
}
|
|
2044
2076
|
function stackClear() {
|
|
2045
2077
|
this.__data__ = new ListCache();
|
|
2046
2078
|
this.size = 0;
|
|
2047
2079
|
}
|
|
2048
2080
|
function stackDelete(key) {
|
|
2049
|
-
var
|
|
2050
|
-
this.size =
|
|
2081
|
+
var data2 = this.__data__, result2 = data2["delete"](key);
|
|
2082
|
+
this.size = data2.size;
|
|
2051
2083
|
return result2;
|
|
2052
2084
|
}
|
|
2053
2085
|
function stackGet(key) {
|
|
@@ -2057,18 +2089,18 @@ var __publicField = (obj, key, value) => {
|
|
|
2057
2089
|
return this.__data__.has(key);
|
|
2058
2090
|
}
|
|
2059
2091
|
function stackSet(key, value) {
|
|
2060
|
-
var
|
|
2061
|
-
if (
|
|
2062
|
-
var pairs =
|
|
2092
|
+
var data2 = this.__data__;
|
|
2093
|
+
if (data2 instanceof ListCache) {
|
|
2094
|
+
var pairs = data2.__data__;
|
|
2063
2095
|
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
2064
2096
|
pairs.push([key, value]);
|
|
2065
|
-
this.size = ++
|
|
2097
|
+
this.size = ++data2.size;
|
|
2066
2098
|
return this;
|
|
2067
2099
|
}
|
|
2068
|
-
|
|
2100
|
+
data2 = this.__data__ = new MapCache(pairs);
|
|
2069
2101
|
}
|
|
2070
|
-
|
|
2071
|
-
this.size =
|
|
2102
|
+
data2.set(key, value);
|
|
2103
|
+
this.size = data2.size;
|
|
2072
2104
|
return this;
|
|
2073
2105
|
}
|
|
2074
2106
|
Stack.prototype.clear = stackClear;
|
|
@@ -2487,15 +2519,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2487
2519
|
}
|
|
2488
2520
|
object = Object2(object);
|
|
2489
2521
|
while (index--) {
|
|
2490
|
-
var
|
|
2491
|
-
if (noCustomizer &&
|
|
2522
|
+
var data2 = matchData[index];
|
|
2523
|
+
if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
|
|
2492
2524
|
return false;
|
|
2493
2525
|
}
|
|
2494
2526
|
}
|
|
2495
2527
|
while (++index < length) {
|
|
2496
|
-
|
|
2497
|
-
var key =
|
|
2498
|
-
if (noCustomizer &&
|
|
2528
|
+
data2 = matchData[index];
|
|
2529
|
+
var key = data2[0], objValue = object[key], srcValue = data2[1];
|
|
2530
|
+
if (noCustomizer && data2[2]) {
|
|
2499
2531
|
if (objValue === undefined$1 && !(key in object)) {
|
|
2500
2532
|
return false;
|
|
2501
2533
|
}
|
|
@@ -2798,8 +2830,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2798
2830
|
}
|
|
2799
2831
|
return object;
|
|
2800
2832
|
}
|
|
2801
|
-
var baseSetData = !metaMap ? identity : function(func,
|
|
2802
|
-
metaMap.set(func,
|
|
2833
|
+
var baseSetData = !metaMap ? identity : function(func, data2) {
|
|
2834
|
+
metaMap.set(func, data2);
|
|
2803
2835
|
return func;
|
|
2804
2836
|
};
|
|
2805
2837
|
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
@@ -3303,9 +3335,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3303
3335
|
index = wrapper ? index : length;
|
|
3304
3336
|
while (++index < length) {
|
|
3305
3337
|
func = funcs[index];
|
|
3306
|
-
var funcName = getFuncName(func),
|
|
3307
|
-
if (
|
|
3308
|
-
wrapper = wrapper[getFuncName(
|
|
3338
|
+
var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
3339
|
+
if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
|
|
3340
|
+
wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
|
|
3309
3341
|
} else {
|
|
3310
3342
|
wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
|
|
3311
3343
|
}
|
|
@@ -3532,7 +3564,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3532
3564
|
var partialsRight = partials, holdersRight = holders;
|
|
3533
3565
|
partials = holders = undefined$1;
|
|
3534
3566
|
}
|
|
3535
|
-
var
|
|
3567
|
+
var data2 = isBindKey ? undefined$1 : getData(func);
|
|
3536
3568
|
var newData = [
|
|
3537
3569
|
func,
|
|
3538
3570
|
bitmask,
|
|
@@ -3545,8 +3577,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3545
3577
|
ary2,
|
|
3546
3578
|
arity
|
|
3547
3579
|
];
|
|
3548
|
-
if (
|
|
3549
|
-
mergeData(newData,
|
|
3580
|
+
if (data2) {
|
|
3581
|
+
mergeData(newData, data2);
|
|
3550
3582
|
}
|
|
3551
3583
|
func = newData[0];
|
|
3552
3584
|
bitmask = newData[1];
|
|
@@ -3566,7 +3598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3566
3598
|
} else {
|
|
3567
3599
|
result2 = createHybrid.apply(undefined$1, newData);
|
|
3568
3600
|
}
|
|
3569
|
-
var setter =
|
|
3601
|
+
var setter = data2 ? baseSetData : setData;
|
|
3570
3602
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
3571
3603
|
}
|
|
3572
3604
|
function customDefaultsAssignIn(objValue, srcValue, key, object) {
|
|
@@ -3733,9 +3765,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3733
3765
|
function getFuncName(func) {
|
|
3734
3766
|
var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
|
|
3735
3767
|
while (length--) {
|
|
3736
|
-
var
|
|
3768
|
+
var data2 = array[length], otherFunc = data2.func;
|
|
3737
3769
|
if (otherFunc == null || otherFunc == func) {
|
|
3738
|
-
return
|
|
3770
|
+
return data2.name;
|
|
3739
3771
|
}
|
|
3740
3772
|
}
|
|
3741
3773
|
return result2;
|
|
@@ -3750,8 +3782,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3750
3782
|
return arguments.length ? result2(arguments[0], arguments[1]) : result2;
|
|
3751
3783
|
}
|
|
3752
3784
|
function getMapData(map2, key) {
|
|
3753
|
-
var
|
|
3754
|
-
return isKeyable(key) ?
|
|
3785
|
+
var data2 = map2.__data__;
|
|
3786
|
+
return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
|
|
3755
3787
|
}
|
|
3756
3788
|
function getMatchData(object) {
|
|
3757
3789
|
var result2 = keys(object), length = result2.length;
|
|
@@ -3823,8 +3855,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3823
3855
|
function getView(start, end, transforms) {
|
|
3824
3856
|
var index = -1, length = transforms.length;
|
|
3825
3857
|
while (++index < length) {
|
|
3826
|
-
var
|
|
3827
|
-
switch (
|
|
3858
|
+
var data2 = transforms[index], size2 = data2.size;
|
|
3859
|
+
switch (data2.type) {
|
|
3828
3860
|
case "drop":
|
|
3829
3861
|
start += size2;
|
|
3830
3862
|
break;
|
|
@@ -3919,16 +3951,16 @@ var __publicField = (obj, key, value) => {
|
|
|
3919
3951
|
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
3920
3952
|
}
|
|
3921
3953
|
function isIndex(value, length) {
|
|
3922
|
-
var
|
|
3954
|
+
var type2 = typeof value;
|
|
3923
3955
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
3924
|
-
return !!length && (
|
|
3956
|
+
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3925
3957
|
}
|
|
3926
3958
|
function isIterateeCall(value, index, object) {
|
|
3927
3959
|
if (!isObject(object)) {
|
|
3928
3960
|
return false;
|
|
3929
3961
|
}
|
|
3930
|
-
var
|
|
3931
|
-
if (
|
|
3962
|
+
var type2 = typeof index;
|
|
3963
|
+
if (type2 == "number" ? isArrayLike(object) && isIndex(index, object.length) : type2 == "string" && index in object) {
|
|
3932
3964
|
return eq(object[index], value);
|
|
3933
3965
|
}
|
|
3934
3966
|
return false;
|
|
@@ -3937,15 +3969,15 @@ var __publicField = (obj, key, value) => {
|
|
|
3937
3969
|
if (isArray(value)) {
|
|
3938
3970
|
return false;
|
|
3939
3971
|
}
|
|
3940
|
-
var
|
|
3941
|
-
if (
|
|
3972
|
+
var type2 = typeof value;
|
|
3973
|
+
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol(value)) {
|
|
3942
3974
|
return true;
|
|
3943
3975
|
}
|
|
3944
3976
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object);
|
|
3945
3977
|
}
|
|
3946
3978
|
function isKeyable(value) {
|
|
3947
|
-
var
|
|
3948
|
-
return
|
|
3979
|
+
var type2 = typeof value;
|
|
3980
|
+
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
3949
3981
|
}
|
|
3950
3982
|
function isLaziable(func) {
|
|
3951
3983
|
var funcName = getFuncName(func), other = lodash2[funcName];
|
|
@@ -3955,8 +3987,8 @@ var __publicField = (obj, key, value) => {
|
|
|
3955
3987
|
if (func === other) {
|
|
3956
3988
|
return true;
|
|
3957
3989
|
}
|
|
3958
|
-
var
|
|
3959
|
-
return !!
|
|
3990
|
+
var data2 = getData(other);
|
|
3991
|
+
return !!data2 && func === data2[0];
|
|
3960
3992
|
}
|
|
3961
3993
|
function isMasked(func) {
|
|
3962
3994
|
return !!maskSrcKey && maskSrcKey in func;
|
|
@@ -3987,41 +4019,41 @@ var __publicField = (obj, key, value) => {
|
|
|
3987
4019
|
var cache = result2.cache;
|
|
3988
4020
|
return result2;
|
|
3989
4021
|
}
|
|
3990
|
-
function mergeData(
|
|
3991
|
-
var bitmask =
|
|
3992
|
-
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG &&
|
|
4022
|
+
function mergeData(data2, source) {
|
|
4023
|
+
var bitmask = data2[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
|
|
4024
|
+
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
|
|
3993
4025
|
if (!(isCommon || isCombo)) {
|
|
3994
|
-
return
|
|
4026
|
+
return data2;
|
|
3995
4027
|
}
|
|
3996
4028
|
if (srcBitmask & WRAP_BIND_FLAG) {
|
|
3997
|
-
|
|
4029
|
+
data2[2] = source[2];
|
|
3998
4030
|
newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
|
|
3999
4031
|
}
|
|
4000
4032
|
var value = source[3];
|
|
4001
4033
|
if (value) {
|
|
4002
|
-
var partials =
|
|
4003
|
-
|
|
4004
|
-
|
|
4034
|
+
var partials = data2[3];
|
|
4035
|
+
data2[3] = partials ? composeArgs(partials, value, source[4]) : value;
|
|
4036
|
+
data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source[4];
|
|
4005
4037
|
}
|
|
4006
4038
|
value = source[5];
|
|
4007
4039
|
if (value) {
|
|
4008
|
-
partials =
|
|
4009
|
-
|
|
4010
|
-
|
|
4040
|
+
partials = data2[5];
|
|
4041
|
+
data2[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
|
|
4042
|
+
data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source[6];
|
|
4011
4043
|
}
|
|
4012
4044
|
value = source[7];
|
|
4013
4045
|
if (value) {
|
|
4014
|
-
|
|
4046
|
+
data2[7] = value;
|
|
4015
4047
|
}
|
|
4016
4048
|
if (srcBitmask & WRAP_ARY_FLAG) {
|
|
4017
|
-
|
|
4049
|
+
data2[8] = data2[8] == null ? source[8] : nativeMin(data2[8], source[8]);
|
|
4018
4050
|
}
|
|
4019
|
-
if (
|
|
4020
|
-
|
|
4051
|
+
if (data2[9] == null) {
|
|
4052
|
+
data2[9] = source[9];
|
|
4021
4053
|
}
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
return
|
|
4054
|
+
data2[0] = source[0];
|
|
4055
|
+
data2[1] = newBitmask;
|
|
4056
|
+
return data2;
|
|
4025
4057
|
}
|
|
4026
4058
|
function nativeKeysIn(object) {
|
|
4027
4059
|
var result2 = [];
|
|
@@ -4890,7 +4922,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4890
4922
|
lastArgs = lastThis = undefined$1;
|
|
4891
4923
|
return result2;
|
|
4892
4924
|
}
|
|
4893
|
-
function
|
|
4925
|
+
function cancel2() {
|
|
4894
4926
|
if (timerId !== undefined$1) {
|
|
4895
4927
|
clearTimeout2(timerId);
|
|
4896
4928
|
}
|
|
@@ -4920,7 +4952,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4920
4952
|
}
|
|
4921
4953
|
return result2;
|
|
4922
4954
|
}
|
|
4923
|
-
debounced.cancel =
|
|
4955
|
+
debounced.cancel = cancel2;
|
|
4924
4956
|
debounced.flush = flush;
|
|
4925
4957
|
return debounced;
|
|
4926
4958
|
}
|
|
@@ -5140,8 +5172,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5140
5172
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
5141
5173
|
}
|
|
5142
5174
|
function isObject(value) {
|
|
5143
|
-
var
|
|
5144
|
-
return value != null && (
|
|
5175
|
+
var type2 = typeof value;
|
|
5176
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
5145
5177
|
}
|
|
5146
5178
|
function isObjectLike(value) {
|
|
5147
5179
|
return value != null && typeof value == "object";
|
|
@@ -5287,7 +5319,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5287
5319
|
copyObject(source, keys(source), object, customizer);
|
|
5288
5320
|
});
|
|
5289
5321
|
var at = flatRest(baseAt);
|
|
5290
|
-
function
|
|
5322
|
+
function create2(prototype, properties) {
|
|
5291
5323
|
var result2 = baseCreate(prototype);
|
|
5292
5324
|
return properties == null ? result2 : baseAssign(result2, properties);
|
|
5293
5325
|
}
|
|
@@ -5971,9 +6003,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5971
6003
|
}
|
|
5972
6004
|
return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
|
|
5973
6005
|
}
|
|
5974
|
-
function uniqueId(
|
|
6006
|
+
function uniqueId(prefix2) {
|
|
5975
6007
|
var id = ++idCounter;
|
|
5976
|
-
return toString(
|
|
6008
|
+
return toString(prefix2) + id;
|
|
5977
6009
|
}
|
|
5978
6010
|
var add = createMathOperation(function(augend, addend) {
|
|
5979
6011
|
return augend + addend;
|
|
@@ -6034,7 +6066,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6034
6066
|
lodash2.conforms = conforms;
|
|
6035
6067
|
lodash2.constant = constant;
|
|
6036
6068
|
lodash2.countBy = countBy;
|
|
6037
|
-
lodash2.create =
|
|
6069
|
+
lodash2.create = create2;
|
|
6038
6070
|
lodash2.curry = curry;
|
|
6039
6071
|
lodash2.curryRight = curryRight;
|
|
6040
6072
|
lodash2.debounce = debounce;
|
|
@@ -6352,12 +6384,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6352
6384
|
};
|
|
6353
6385
|
});
|
|
6354
6386
|
arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
|
|
6355
|
-
var
|
|
6387
|
+
var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
|
|
6356
6388
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
6357
6389
|
var result2 = this.clone();
|
|
6358
6390
|
result2.__iteratees__.push({
|
|
6359
6391
|
"iteratee": getIteratee(iteratee2, 3),
|
|
6360
|
-
"type":
|
|
6392
|
+
"type": type2
|
|
6361
6393
|
});
|
|
6362
6394
|
result2.__filtered__ = result2.__filtered__ || isFilter;
|
|
6363
6395
|
return result2;
|
|
@@ -6925,14 +6957,14 @@ var __publicField = (obj, key, value) => {
|
|
|
6925
6957
|
function NamespaceSelectWidget(props) {
|
|
6926
6958
|
const kit = eagle.useUIKit();
|
|
6927
6959
|
const { action } = core.useResource();
|
|
6928
|
-
const { data } = core.useList({
|
|
6960
|
+
const { data: data2 } = core.useList({
|
|
6929
6961
|
resource: "namespaces",
|
|
6930
6962
|
meta: {
|
|
6931
6963
|
resourceBasePath: "/api/v1",
|
|
6932
6964
|
kind: "Namespace"
|
|
6933
6965
|
}
|
|
6934
6966
|
});
|
|
6935
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.select, { input: props, disabled: action === "edit", children:
|
|
6967
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
|
|
6936
6968
|
}
|
|
6937
6969
|
const namespaceRules = [
|
|
6938
6970
|
{
|
|
@@ -7196,16 +7228,16 @@ var __publicField = (obj, key, value) => {
|
|
|
7196
7228
|
}
|
|
7197
7229
|
});
|
|
7198
7230
|
class ResourceModel {
|
|
7199
|
-
constructor(
|
|
7231
|
+
constructor(data2) {
|
|
7200
7232
|
__publicField(this, "id");
|
|
7201
7233
|
__publicField(this, "apiVersion");
|
|
7202
7234
|
__publicField(this, "kind");
|
|
7203
7235
|
__publicField(this, "metadata");
|
|
7204
|
-
this.data =
|
|
7205
|
-
this.id =
|
|
7206
|
-
this.apiVersion =
|
|
7207
|
-
this.kind =
|
|
7208
|
-
this.metadata =
|
|
7236
|
+
this.data = data2;
|
|
7237
|
+
this.id = data2.id;
|
|
7238
|
+
this.apiVersion = data2.apiVersion;
|
|
7239
|
+
this.kind = data2.kind;
|
|
7240
|
+
this.metadata = data2.metadata;
|
|
7209
7241
|
}
|
|
7210
7242
|
get name() {
|
|
7211
7243
|
var _a;
|
|
@@ -7538,7 +7570,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7538
7570
|
document.execCommand("copy");
|
|
7539
7571
|
document.body.removeChild(input);
|
|
7540
7572
|
}
|
|
7541
|
-
function getCommonErrors(response,
|
|
7573
|
+
function getCommonErrors(response, i18n2) {
|
|
7542
7574
|
var _a;
|
|
7543
7575
|
if (!((response == null ? void 0 : response.message) || (response == null ? void 0 : response.code) || (response == null ? void 0 : response.reason) || (response == null ? void 0 : response.details) || (response == null ? void 0 : response.graphQLErrors))) {
|
|
7544
7576
|
return [];
|
|
@@ -7547,17 +7579,17 @@ var __publicField = (obj, key, value) => {
|
|
|
7547
7579
|
if (causes.length) {
|
|
7548
7580
|
return causes.map((cause) => {
|
|
7549
7581
|
let params = {};
|
|
7550
|
-
let
|
|
7582
|
+
let message2 = cause.message;
|
|
7551
7583
|
try {
|
|
7552
7584
|
const info = JSON.parse(cause.message);
|
|
7553
7585
|
params = info.params;
|
|
7554
|
-
|
|
7586
|
+
message2 = info.message;
|
|
7555
7587
|
} catch {
|
|
7556
|
-
return
|
|
7588
|
+
return i18n2.t(
|
|
7557
7589
|
[
|
|
7558
7590
|
`error.${cause.reason}`,
|
|
7559
7591
|
`error.${cause.code}`,
|
|
7560
|
-
`${
|
|
7592
|
+
`${message2}${cause.field ? `(${cause.field})` : ""}`
|
|
7561
7593
|
],
|
|
7562
7594
|
{
|
|
7563
7595
|
...params,
|
|
@@ -7565,11 +7597,11 @@ var __publicField = (obj, key, value) => {
|
|
|
7565
7597
|
}
|
|
7566
7598
|
);
|
|
7567
7599
|
}
|
|
7568
|
-
return
|
|
7600
|
+
return i18n2.t(
|
|
7569
7601
|
[
|
|
7570
7602
|
`error.${cause.reason}`,
|
|
7571
7603
|
`error.${cause.code}`,
|
|
7572
|
-
`${
|
|
7604
|
+
`${message2}${cause.field ? `(${cause.field})` : ""}`
|
|
7573
7605
|
],
|
|
7574
7606
|
{
|
|
7575
7607
|
...params,
|
|
@@ -7579,7 +7611,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7579
7611
|
});
|
|
7580
7612
|
}
|
|
7581
7613
|
return [
|
|
7582
|
-
|
|
7614
|
+
i18n2.t(
|
|
7583
7615
|
[`error.${response.code}`, `error.${response.reason}`, response.message || ""],
|
|
7584
7616
|
{ fallbackLng: "" }
|
|
7585
7617
|
)
|
|
@@ -7599,9 +7631,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7599
7631
|
const kit = eagle.useUIKit();
|
|
7600
7632
|
const {
|
|
7601
7633
|
t,
|
|
7602
|
-
i18n
|
|
7634
|
+
i18n: i18n2
|
|
7603
7635
|
} = useTranslation();
|
|
7604
|
-
const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody,
|
|
7636
|
+
const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [];
|
|
7605
7637
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(FormLayout, {
|
|
7606
7638
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(kit.form, {
|
|
7607
7639
|
...formProps,
|
|
@@ -7702,15 +7734,15 @@ var __publicField = (obj, key, value) => {
|
|
|
7702
7734
|
}
|
|
7703
7735
|
function useDownloadYAML() {
|
|
7704
7736
|
return function(options) {
|
|
7705
|
-
const { name, item } = options;
|
|
7737
|
+
const { name: name2, item } = options;
|
|
7706
7738
|
const content = yaml__default.default.dump(item);
|
|
7707
|
-
download(`${
|
|
7739
|
+
download(`${name2}.yaml`, content);
|
|
7708
7740
|
};
|
|
7709
7741
|
}
|
|
7710
7742
|
function useEdit() {
|
|
7711
7743
|
const { resource } = core.useParsed();
|
|
7712
7744
|
const go = core.useGo();
|
|
7713
|
-
const
|
|
7745
|
+
const edit2 = React.useCallback(
|
|
7714
7746
|
(id) => {
|
|
7715
7747
|
go({
|
|
7716
7748
|
to: `/${resource == null ? void 0 : resource.name}/edit`,
|
|
@@ -7721,14 +7753,14 @@ var __publicField = (obj, key, value) => {
|
|
|
7721
7753
|
},
|
|
7722
7754
|
[go, resource == null ? void 0 : resource.name]
|
|
7723
7755
|
);
|
|
7724
|
-
return { edit };
|
|
7756
|
+
return { edit: edit2 };
|
|
7725
7757
|
}
|
|
7726
7758
|
function K8sDropdown(props) {
|
|
7727
|
-
const { data } = props;
|
|
7759
|
+
const { data: data2 } = props;
|
|
7728
7760
|
const kit = eagle.useUIKit();
|
|
7729
7761
|
const useResourceResult = core.useResource();
|
|
7730
7762
|
const resource = useResourceResult.resource;
|
|
7731
|
-
const { edit } = useEdit();
|
|
7763
|
+
const { edit: edit2 } = useEdit();
|
|
7732
7764
|
const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
|
|
7733
7765
|
(resource == null ? void 0 : resource.name) || ""
|
|
7734
7766
|
);
|
|
@@ -7743,8 +7775,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7743
7775
|
kit.menuItem,
|
|
7744
7776
|
{
|
|
7745
7777
|
onClick: () => {
|
|
7746
|
-
if (
|
|
7747
|
-
|
|
7778
|
+
if (data2.id) {
|
|
7779
|
+
edit2(data2.id);
|
|
7748
7780
|
}
|
|
7749
7781
|
},
|
|
7750
7782
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: t("edit") })
|
|
@@ -7755,7 +7787,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7755
7787
|
{
|
|
7756
7788
|
danger: true,
|
|
7757
7789
|
onClick: () => {
|
|
7758
|
-
openDeleteConfirmModal(
|
|
7790
|
+
openDeleteConfirmModal(data2.id);
|
|
7759
7791
|
},
|
|
7760
7792
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(eagle.Icon, { src: iconsReact.TrashBinDelete16Icon, children: t("delete") })
|
|
7761
7793
|
}
|
|
@@ -7765,10 +7797,10 @@ var __publicField = (obj, key, value) => {
|
|
|
7765
7797
|
{
|
|
7766
7798
|
onClick: () => {
|
|
7767
7799
|
var _a;
|
|
7768
|
-
if (
|
|
7800
|
+
if (data2.id) {
|
|
7769
7801
|
download2({
|
|
7770
|
-
name: ((_a =
|
|
7771
|
-
item:
|
|
7802
|
+
name: ((_a = data2.metadata) == null ? void 0 : _a.name) || data2.kind || "",
|
|
7803
|
+
item: data2
|
|
7772
7804
|
});
|
|
7773
7805
|
}
|
|
7774
7806
|
},
|
|
@@ -7923,7 +7955,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7923
7955
|
const NamespacesFilter = () => {
|
|
7924
7956
|
const kit = eagle.useUIKit();
|
|
7925
7957
|
const { t } = useTranslation();
|
|
7926
|
-
const { data } = core.useList({
|
|
7958
|
+
const { data: data2 } = core.useList({
|
|
7927
7959
|
resource: "namespaces",
|
|
7928
7960
|
meta: {
|
|
7929
7961
|
resourceBasePath: "/api/v1",
|
|
@@ -7942,9 +7974,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7942
7974
|
},
|
|
7943
7975
|
children: [
|
|
7944
7976
|
/* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: "_all", children: t("dovetail.all_namespaces") }, "_all"),
|
|
7945
|
-
|
|
7946
|
-
const { name } =
|
|
7947
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value:
|
|
7977
|
+
data2 == null ? void 0 : data2.data.map((namespace2) => {
|
|
7978
|
+
const { name: name2 } = namespace2.metadata;
|
|
7979
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: name2, children: name2 }, name2);
|
|
7948
7980
|
})
|
|
7949
7981
|
]
|
|
7950
7982
|
}
|
|
@@ -8004,7 +8036,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8004
8036
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
8005
8037
|
};
|
|
8006
8038
|
const index_86mllf = "";
|
|
8007
|
-
const StateTag = ({ state }) => {
|
|
8039
|
+
const StateTag = ({ state: state2 }) => {
|
|
8008
8040
|
const kit = eagle.useUIKit();
|
|
8009
8041
|
const colorMap = {
|
|
8010
8042
|
running: "green",
|
|
@@ -8013,7 +8045,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8013
8045
|
terminated: "red",
|
|
8014
8046
|
pending: "gray"
|
|
8015
8047
|
};
|
|
8016
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.tag, { color: colorMap[(
|
|
8048
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.tag, { color: colorMap[(state2 == null ? void 0 : state2.toLowerCase()) || ""] || "green", children: state2 || "Active" });
|
|
8017
8049
|
};
|
|
8018
8050
|
var dayjs_min = { exports: {} };
|
|
8019
8051
|
(function(module2, exports3) {
|
|
@@ -8338,7 +8370,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8338
8370
|
const index_1wf16rt = "";
|
|
8339
8371
|
const NameLink = (props) => {
|
|
8340
8372
|
var _a;
|
|
8341
|
-
const { name, id, resource } = props;
|
|
8373
|
+
const { name: name2, id, resource } = props;
|
|
8342
8374
|
const kit = eagle.useUIKit();
|
|
8343
8375
|
const go = core.useGo();
|
|
8344
8376
|
const navigation = core.useNavigation();
|
|
@@ -8356,7 +8388,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8356
8388
|
}
|
|
8357
8389
|
});
|
|
8358
8390
|
},
|
|
8359
|
-
children:
|
|
8391
|
+
children: name2
|
|
8360
8392
|
}
|
|
8361
8393
|
);
|
|
8362
8394
|
};
|
|
@@ -8512,13 +8544,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8512
8544
|
const { vars } = options;
|
|
8513
8545
|
if (vars) {
|
|
8514
8546
|
const style2 = {};
|
|
8515
|
-
for (const
|
|
8516
|
-
const variable = vars[
|
|
8547
|
+
for (const name2 in vars) {
|
|
8548
|
+
const variable = vars[name2];
|
|
8517
8549
|
const result = variable[0];
|
|
8518
8550
|
const unit = variable[1] || "";
|
|
8519
8551
|
const value = typeof result === "function" ? result(props) : result;
|
|
8520
8552
|
warnIfInvalid(value, options.name);
|
|
8521
|
-
style2[`--${
|
|
8553
|
+
style2[`--${name2}`] = `${value}${unit}`;
|
|
8522
8554
|
}
|
|
8523
8555
|
const ownStyle = filteredProps.style || {};
|
|
8524
8556
|
const keys = Object.keys(ownStyle);
|
|
@@ -8635,14 +8667,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8635
8667
|
}
|
|
8636
8668
|
function CreateButton() {
|
|
8637
8669
|
const { resource } = core.useResource();
|
|
8638
|
-
const { create } = core.useNavigation();
|
|
8670
|
+
const { create: create2 } = core.useNavigation();
|
|
8639
8671
|
const kit = eagle.useUIKit();
|
|
8640
8672
|
const { t } = useTranslation();
|
|
8641
8673
|
const onClick = React.useCallback(() => {
|
|
8642
8674
|
if (resource == null ? void 0 : resource.name) {
|
|
8643
|
-
|
|
8675
|
+
create2(resource.name);
|
|
8644
8676
|
}
|
|
8645
|
-
}, [
|
|
8677
|
+
}, [create2, resource == null ? void 0 : resource.name]);
|
|
8646
8678
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.button, { type: "primary", onClick, children: t("create") });
|
|
8647
8679
|
}
|
|
8648
8680
|
const useDeleteManyModal = (resource, ids) => {
|
|
@@ -8733,14 +8765,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8733
8765
|
});
|
|
8734
8766
|
}
|
|
8735
8767
|
function ResourceList(props) {
|
|
8736
|
-
const { formatter, name, columns, Dropdown } = props;
|
|
8737
|
-
const { i18n } = useTranslation();
|
|
8768
|
+
const { formatter, name: name2, columns, Dropdown } = props;
|
|
8769
|
+
const { i18n: i18n2 } = useTranslation();
|
|
8738
8770
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
8739
8771
|
useTableParams: {},
|
|
8740
8772
|
columns: [
|
|
8741
|
-
PhaseColumnRenderer(
|
|
8742
|
-
NameColumnRenderer(
|
|
8743
|
-
NameSpaceColumnRenderer(
|
|
8773
|
+
PhaseColumnRenderer(i18n2),
|
|
8774
|
+
NameColumnRenderer(i18n2),
|
|
8775
|
+
NameSpaceColumnRenderer(i18n2),
|
|
8744
8776
|
...columns
|
|
8745
8777
|
],
|
|
8746
8778
|
tableProps: {
|
|
@@ -8749,7 +8781,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8749
8781
|
formatter,
|
|
8750
8782
|
Dropdown
|
|
8751
8783
|
});
|
|
8752
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title:
|
|
8784
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
|
|
8753
8785
|
}
|
|
8754
8786
|
const index_1hr2h38 = "";
|
|
8755
8787
|
const index_m52iq6 = "";
|
|
@@ -8949,12 +8981,12 @@ var __publicField = (obj, key, value) => {
|
|
|
8949
8981
|
t
|
|
8950
8982
|
} = useTranslation();
|
|
8951
8983
|
const {
|
|
8952
|
-
data
|
|
8984
|
+
data: data2
|
|
8953
8985
|
} = queryResult;
|
|
8954
|
-
if (!(
|
|
8986
|
+
if (!(data2 == null ? void 0 : data2.data)) {
|
|
8955
8987
|
return null;
|
|
8956
8988
|
}
|
|
8957
|
-
const record = formatter(
|
|
8989
|
+
const record = formatter(data2 == null ? void 0 : data2.data);
|
|
8958
8990
|
const FirstLineFields = [{
|
|
8959
8991
|
key: "NameSpace",
|
|
8960
8992
|
title: t("namespace"),
|
|
@@ -9108,7 +9140,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9108
9140
|
}
|
|
9109
9141
|
const ResourceCRUD = (props) => {
|
|
9110
9142
|
const { configs, urlPrefix } = props;
|
|
9111
|
-
const { i18n } = useTranslation();
|
|
9143
|
+
const { i18n: i18n2 } = useTranslation();
|
|
9112
9144
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: configs.map((config) => {
|
|
9113
9145
|
var _a, _b;
|
|
9114
9146
|
const formatter = config.formatter || ((v2) => new ResourceModel(v2));
|
|
@@ -9118,7 +9150,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9118
9150
|
{
|
|
9119
9151
|
name: config.kind,
|
|
9120
9152
|
formatter,
|
|
9121
|
-
columns: ((_a = config.columns) == null ? void 0 : _a.call(config,
|
|
9153
|
+
columns: ((_a = config.columns) == null ? void 0 : _a.call(config, i18n2)) || [],
|
|
9122
9154
|
Dropdown: config.Dropdown
|
|
9123
9155
|
}
|
|
9124
9156
|
) }),
|
|
@@ -9126,7 +9158,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9126
9158
|
ResourceShow,
|
|
9127
9159
|
{
|
|
9128
9160
|
formatter,
|
|
9129
|
-
filedGroups: ((_b = config.showFields) == null ? void 0 : _b.call(config,
|
|
9161
|
+
filedGroups: ((_b = config.showFields) == null ? void 0 : _b.call(config, i18n2)) || [],
|
|
9130
9162
|
Dropdown: config.Dropdown
|
|
9131
9163
|
}
|
|
9132
9164
|
) }),
|
|
@@ -9699,6 +9731,480 @@ var __publicField = (obj, key, value) => {
|
|
|
9699
9731
|
var liveProvider = lib.liveProvider = It;
|
|
9700
9732
|
lib.mapOperator = nt;
|
|
9701
9733
|
lib.sortData = M;
|
|
9734
|
+
function isAbsolute(pathname) {
|
|
9735
|
+
return pathname.charAt(0) === "/";
|
|
9736
|
+
}
|
|
9737
|
+
function spliceOne(list, index) {
|
|
9738
|
+
for (var i = index, k2 = i + 1, n = list.length; k2 < n; i += 1, k2 += 1) {
|
|
9739
|
+
list[i] = list[k2];
|
|
9740
|
+
}
|
|
9741
|
+
list.pop();
|
|
9742
|
+
}
|
|
9743
|
+
function resolvePathname(to, from) {
|
|
9744
|
+
if (from === void 0)
|
|
9745
|
+
from = "";
|
|
9746
|
+
var toParts = to && to.split("/") || [];
|
|
9747
|
+
var fromParts = from && from.split("/") || [];
|
|
9748
|
+
var isToAbs = to && isAbsolute(to);
|
|
9749
|
+
var isFromAbs = from && isAbsolute(from);
|
|
9750
|
+
var mustEndAbs = isToAbs || isFromAbs;
|
|
9751
|
+
if (to && isAbsolute(to)) {
|
|
9752
|
+
fromParts = toParts;
|
|
9753
|
+
} else if (toParts.length) {
|
|
9754
|
+
fromParts.pop();
|
|
9755
|
+
fromParts = fromParts.concat(toParts);
|
|
9756
|
+
}
|
|
9757
|
+
if (!fromParts.length)
|
|
9758
|
+
return "/";
|
|
9759
|
+
var hasTrailingSlash;
|
|
9760
|
+
if (fromParts.length) {
|
|
9761
|
+
var last = fromParts[fromParts.length - 1];
|
|
9762
|
+
hasTrailingSlash = last === "." || last === ".." || last === "";
|
|
9763
|
+
} else {
|
|
9764
|
+
hasTrailingSlash = false;
|
|
9765
|
+
}
|
|
9766
|
+
var up = 0;
|
|
9767
|
+
for (var i = fromParts.length; i >= 0; i--) {
|
|
9768
|
+
var part = fromParts[i];
|
|
9769
|
+
if (part === ".") {
|
|
9770
|
+
spliceOne(fromParts, i);
|
|
9771
|
+
} else if (part === "..") {
|
|
9772
|
+
spliceOne(fromParts, i);
|
|
9773
|
+
up++;
|
|
9774
|
+
} else if (up) {
|
|
9775
|
+
spliceOne(fromParts, i);
|
|
9776
|
+
up--;
|
|
9777
|
+
}
|
|
9778
|
+
}
|
|
9779
|
+
if (!mustEndAbs)
|
|
9780
|
+
for (; up--; up)
|
|
9781
|
+
fromParts.unshift("..");
|
|
9782
|
+
if (mustEndAbs && fromParts[0] !== "" && (!fromParts[0] || !isAbsolute(fromParts[0])))
|
|
9783
|
+
fromParts.unshift("");
|
|
9784
|
+
var result = fromParts.join("/");
|
|
9785
|
+
if (hasTrailingSlash && result.substr(-1) !== "/")
|
|
9786
|
+
result += "/";
|
|
9787
|
+
return result;
|
|
9788
|
+
}
|
|
9789
|
+
var isProduction$1 = process.env.NODE_ENV === "production";
|
|
9790
|
+
function warning(condition2, message2) {
|
|
9791
|
+
if (!isProduction$1) {
|
|
9792
|
+
if (condition2) {
|
|
9793
|
+
return;
|
|
9794
|
+
}
|
|
9795
|
+
var text = "Warning: " + message2;
|
|
9796
|
+
if (typeof console !== "undefined") {
|
|
9797
|
+
console.warn(text);
|
|
9798
|
+
}
|
|
9799
|
+
try {
|
|
9800
|
+
throw Error(text);
|
|
9801
|
+
} catch (x2) {
|
|
9802
|
+
}
|
|
9803
|
+
}
|
|
9804
|
+
}
|
|
9805
|
+
var isProduction = process.env.NODE_ENV === "production";
|
|
9806
|
+
var prefix = "Invariant failed";
|
|
9807
|
+
function invariant(condition2, message2) {
|
|
9808
|
+
if (condition2) {
|
|
9809
|
+
return;
|
|
9810
|
+
}
|
|
9811
|
+
if (isProduction) {
|
|
9812
|
+
throw new Error(prefix);
|
|
9813
|
+
}
|
|
9814
|
+
var provided = typeof message2 === "function" ? message2() : message2;
|
|
9815
|
+
var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
9816
|
+
throw new Error(value);
|
|
9817
|
+
}
|
|
9818
|
+
function addLeadingSlash(path) {
|
|
9819
|
+
return path.charAt(0) === "/" ? path : "/" + path;
|
|
9820
|
+
}
|
|
9821
|
+
function stripLeadingSlash(path) {
|
|
9822
|
+
return path.charAt(0) === "/" ? path.substr(1) : path;
|
|
9823
|
+
}
|
|
9824
|
+
function hasBasename(path, prefix2) {
|
|
9825
|
+
return path.toLowerCase().indexOf(prefix2.toLowerCase()) === 0 && "/?#".indexOf(path.charAt(prefix2.length)) !== -1;
|
|
9826
|
+
}
|
|
9827
|
+
function stripBasename(path, prefix2) {
|
|
9828
|
+
return hasBasename(path, prefix2) ? path.substr(prefix2.length) : path;
|
|
9829
|
+
}
|
|
9830
|
+
function stripTrailingSlash(path) {
|
|
9831
|
+
return path.charAt(path.length - 1) === "/" ? path.slice(0, -1) : path;
|
|
9832
|
+
}
|
|
9833
|
+
function parsePath(path) {
|
|
9834
|
+
var pathname = path || "/";
|
|
9835
|
+
var search = "";
|
|
9836
|
+
var hash = "";
|
|
9837
|
+
var hashIndex = pathname.indexOf("#");
|
|
9838
|
+
if (hashIndex !== -1) {
|
|
9839
|
+
hash = pathname.substr(hashIndex);
|
|
9840
|
+
pathname = pathname.substr(0, hashIndex);
|
|
9841
|
+
}
|
|
9842
|
+
var searchIndex = pathname.indexOf("?");
|
|
9843
|
+
if (searchIndex !== -1) {
|
|
9844
|
+
search = pathname.substr(searchIndex);
|
|
9845
|
+
pathname = pathname.substr(0, searchIndex);
|
|
9846
|
+
}
|
|
9847
|
+
return {
|
|
9848
|
+
pathname,
|
|
9849
|
+
search: search === "?" ? "" : search,
|
|
9850
|
+
hash: hash === "#" ? "" : hash
|
|
9851
|
+
};
|
|
9852
|
+
}
|
|
9853
|
+
function createPath(location2) {
|
|
9854
|
+
var pathname = location2.pathname, search = location2.search, hash = location2.hash;
|
|
9855
|
+
var path = pathname || "/";
|
|
9856
|
+
if (search && search !== "?")
|
|
9857
|
+
path += search.charAt(0) === "?" ? search : "?" + search;
|
|
9858
|
+
if (hash && hash !== "#")
|
|
9859
|
+
path += hash.charAt(0) === "#" ? hash : "#" + hash;
|
|
9860
|
+
return path;
|
|
9861
|
+
}
|
|
9862
|
+
function createLocation(path, state2, key, currentLocation) {
|
|
9863
|
+
var location2;
|
|
9864
|
+
if (typeof path === "string") {
|
|
9865
|
+
location2 = parsePath(path);
|
|
9866
|
+
location2.state = state2;
|
|
9867
|
+
} else {
|
|
9868
|
+
location2 = _extends({}, path);
|
|
9869
|
+
if (location2.pathname === void 0)
|
|
9870
|
+
location2.pathname = "";
|
|
9871
|
+
if (location2.search) {
|
|
9872
|
+
if (location2.search.charAt(0) !== "?")
|
|
9873
|
+
location2.search = "?" + location2.search;
|
|
9874
|
+
} else {
|
|
9875
|
+
location2.search = "";
|
|
9876
|
+
}
|
|
9877
|
+
if (location2.hash) {
|
|
9878
|
+
if (location2.hash.charAt(0) !== "#")
|
|
9879
|
+
location2.hash = "#" + location2.hash;
|
|
9880
|
+
} else {
|
|
9881
|
+
location2.hash = "";
|
|
9882
|
+
}
|
|
9883
|
+
if (state2 !== void 0 && location2.state === void 0)
|
|
9884
|
+
location2.state = state2;
|
|
9885
|
+
}
|
|
9886
|
+
try {
|
|
9887
|
+
location2.pathname = decodeURI(location2.pathname);
|
|
9888
|
+
} catch (e) {
|
|
9889
|
+
if (e instanceof URIError) {
|
|
9890
|
+
throw new URIError('Pathname "' + location2.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
|
|
9891
|
+
} else {
|
|
9892
|
+
throw e;
|
|
9893
|
+
}
|
|
9894
|
+
}
|
|
9895
|
+
if (key)
|
|
9896
|
+
location2.key = key;
|
|
9897
|
+
if (currentLocation) {
|
|
9898
|
+
if (!location2.pathname) {
|
|
9899
|
+
location2.pathname = currentLocation.pathname;
|
|
9900
|
+
} else if (location2.pathname.charAt(0) !== "/") {
|
|
9901
|
+
location2.pathname = resolvePathname(location2.pathname, currentLocation.pathname);
|
|
9902
|
+
}
|
|
9903
|
+
} else {
|
|
9904
|
+
if (!location2.pathname) {
|
|
9905
|
+
location2.pathname = "/";
|
|
9906
|
+
}
|
|
9907
|
+
}
|
|
9908
|
+
return location2;
|
|
9909
|
+
}
|
|
9910
|
+
function createTransitionManager() {
|
|
9911
|
+
var prompt = null;
|
|
9912
|
+
function setPrompt(nextPrompt) {
|
|
9913
|
+
process.env.NODE_ENV !== "production" ? warning(prompt == null, "A history supports only one prompt at a time") : void 0;
|
|
9914
|
+
prompt = nextPrompt;
|
|
9915
|
+
return function() {
|
|
9916
|
+
if (prompt === nextPrompt)
|
|
9917
|
+
prompt = null;
|
|
9918
|
+
};
|
|
9919
|
+
}
|
|
9920
|
+
function confirmTransitionTo(location2, action, getUserConfirmation, callback) {
|
|
9921
|
+
if (prompt != null) {
|
|
9922
|
+
var result = typeof prompt === "function" ? prompt(location2, action) : prompt;
|
|
9923
|
+
if (typeof result === "string") {
|
|
9924
|
+
if (typeof getUserConfirmation === "function") {
|
|
9925
|
+
getUserConfirmation(result, callback);
|
|
9926
|
+
} else {
|
|
9927
|
+
process.env.NODE_ENV !== "production" ? warning(false, "A history needs a getUserConfirmation function in order to use a prompt message") : void 0;
|
|
9928
|
+
callback(true);
|
|
9929
|
+
}
|
|
9930
|
+
} else {
|
|
9931
|
+
callback(result !== false);
|
|
9932
|
+
}
|
|
9933
|
+
} else {
|
|
9934
|
+
callback(true);
|
|
9935
|
+
}
|
|
9936
|
+
}
|
|
9937
|
+
var listeners = [];
|
|
9938
|
+
function appendListener(fn) {
|
|
9939
|
+
var isActive = true;
|
|
9940
|
+
function listener() {
|
|
9941
|
+
if (isActive)
|
|
9942
|
+
fn.apply(void 0, arguments);
|
|
9943
|
+
}
|
|
9944
|
+
listeners.push(listener);
|
|
9945
|
+
return function() {
|
|
9946
|
+
isActive = false;
|
|
9947
|
+
listeners = listeners.filter(function(item) {
|
|
9948
|
+
return item !== listener;
|
|
9949
|
+
});
|
|
9950
|
+
};
|
|
9951
|
+
}
|
|
9952
|
+
function notifyListeners() {
|
|
9953
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9954
|
+
args[_key] = arguments[_key];
|
|
9955
|
+
}
|
|
9956
|
+
listeners.forEach(function(listener) {
|
|
9957
|
+
return listener.apply(void 0, args);
|
|
9958
|
+
});
|
|
9959
|
+
}
|
|
9960
|
+
return {
|
|
9961
|
+
setPrompt,
|
|
9962
|
+
confirmTransitionTo,
|
|
9963
|
+
appendListener,
|
|
9964
|
+
notifyListeners
|
|
9965
|
+
};
|
|
9966
|
+
}
|
|
9967
|
+
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
9968
|
+
function getConfirmation(message2, callback) {
|
|
9969
|
+
callback(window.confirm(message2));
|
|
9970
|
+
}
|
|
9971
|
+
function supportsGoWithoutReloadUsingHash() {
|
|
9972
|
+
return window.navigator.userAgent.indexOf("Firefox") === -1;
|
|
9973
|
+
}
|
|
9974
|
+
var HashChangeEvent$1 = "hashchange";
|
|
9975
|
+
var HashPathCoders = {
|
|
9976
|
+
hashbang: {
|
|
9977
|
+
encodePath: function encodePath(path) {
|
|
9978
|
+
return path.charAt(0) === "!" ? path : "!/" + stripLeadingSlash(path);
|
|
9979
|
+
},
|
|
9980
|
+
decodePath: function decodePath(path) {
|
|
9981
|
+
return path.charAt(0) === "!" ? path.substr(1) : path;
|
|
9982
|
+
}
|
|
9983
|
+
},
|
|
9984
|
+
noslash: {
|
|
9985
|
+
encodePath: stripLeadingSlash,
|
|
9986
|
+
decodePath: addLeadingSlash
|
|
9987
|
+
},
|
|
9988
|
+
slash: {
|
|
9989
|
+
encodePath: addLeadingSlash,
|
|
9990
|
+
decodePath: addLeadingSlash
|
|
9991
|
+
}
|
|
9992
|
+
};
|
|
9993
|
+
function stripHash(url) {
|
|
9994
|
+
var hashIndex = url.indexOf("#");
|
|
9995
|
+
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
9996
|
+
}
|
|
9997
|
+
function getHashPath() {
|
|
9998
|
+
var href = window.location.href;
|
|
9999
|
+
var hashIndex = href.indexOf("#");
|
|
10000
|
+
return hashIndex === -1 ? "" : href.substring(hashIndex + 1);
|
|
10001
|
+
}
|
|
10002
|
+
function pushHashPath(path) {
|
|
10003
|
+
window.location.hash = path;
|
|
10004
|
+
}
|
|
10005
|
+
function replaceHashPath(path) {
|
|
10006
|
+
window.location.replace(stripHash(window.location.href) + "#" + path);
|
|
10007
|
+
}
|
|
10008
|
+
function createHashHistory(props) {
|
|
10009
|
+
if (props === void 0) {
|
|
10010
|
+
props = {};
|
|
10011
|
+
}
|
|
10012
|
+
!canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, "Hash history needs a DOM") : invariant(false) : void 0;
|
|
10013
|
+
var globalHistory = window.history;
|
|
10014
|
+
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
|
10015
|
+
var _props = props, _props$getUserConfirm = _props.getUserConfirmation, getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm, _props$hashType = _props.hashType, hashType = _props$hashType === void 0 ? "slash" : _props$hashType;
|
|
10016
|
+
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : "";
|
|
10017
|
+
var _HashPathCoders$hashT = HashPathCoders[hashType], encodePath = _HashPathCoders$hashT.encodePath, decodePath = _HashPathCoders$hashT.decodePath;
|
|
10018
|
+
function getDOMLocation() {
|
|
10019
|
+
var path2 = decodePath(getHashPath());
|
|
10020
|
+
process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path2, basename), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + path2 + '" to begin with "' + basename + '".') : void 0;
|
|
10021
|
+
if (basename)
|
|
10022
|
+
path2 = stripBasename(path2, basename);
|
|
10023
|
+
return createLocation(path2);
|
|
10024
|
+
}
|
|
10025
|
+
var transitionManager = createTransitionManager();
|
|
10026
|
+
function setState(nextState) {
|
|
10027
|
+
_extends(history2, nextState);
|
|
10028
|
+
history2.length = globalHistory.length;
|
|
10029
|
+
transitionManager.notifyListeners(history2.location, history2.action);
|
|
10030
|
+
}
|
|
10031
|
+
var forceNextPop = false;
|
|
10032
|
+
var ignorePath = null;
|
|
10033
|
+
function locationsAreEqual$$1(a, b2) {
|
|
10034
|
+
return a.pathname === b2.pathname && a.search === b2.search && a.hash === b2.hash;
|
|
10035
|
+
}
|
|
10036
|
+
function handleHashChange() {
|
|
10037
|
+
var path2 = getHashPath();
|
|
10038
|
+
var encodedPath2 = encodePath(path2);
|
|
10039
|
+
if (path2 !== encodedPath2) {
|
|
10040
|
+
replaceHashPath(encodedPath2);
|
|
10041
|
+
} else {
|
|
10042
|
+
var location2 = getDOMLocation();
|
|
10043
|
+
var prevLocation = history2.location;
|
|
10044
|
+
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location2))
|
|
10045
|
+
return;
|
|
10046
|
+
if (ignorePath === createPath(location2))
|
|
10047
|
+
return;
|
|
10048
|
+
ignorePath = null;
|
|
10049
|
+
handlePop(location2);
|
|
10050
|
+
}
|
|
10051
|
+
}
|
|
10052
|
+
function handlePop(location2) {
|
|
10053
|
+
if (forceNextPop) {
|
|
10054
|
+
forceNextPop = false;
|
|
10055
|
+
setState();
|
|
10056
|
+
} else {
|
|
10057
|
+
var action = "POP";
|
|
10058
|
+
transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
|
|
10059
|
+
if (ok) {
|
|
10060
|
+
setState({
|
|
10061
|
+
action,
|
|
10062
|
+
location: location2
|
|
10063
|
+
});
|
|
10064
|
+
} else {
|
|
10065
|
+
revertPop(location2);
|
|
10066
|
+
}
|
|
10067
|
+
});
|
|
10068
|
+
}
|
|
10069
|
+
}
|
|
10070
|
+
function revertPop(fromLocation) {
|
|
10071
|
+
var toLocation = history2.location;
|
|
10072
|
+
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
|
10073
|
+
if (toIndex === -1)
|
|
10074
|
+
toIndex = 0;
|
|
10075
|
+
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
|
10076
|
+
if (fromIndex === -1)
|
|
10077
|
+
fromIndex = 0;
|
|
10078
|
+
var delta = toIndex - fromIndex;
|
|
10079
|
+
if (delta) {
|
|
10080
|
+
forceNextPop = true;
|
|
10081
|
+
go(delta);
|
|
10082
|
+
}
|
|
10083
|
+
}
|
|
10084
|
+
var path = getHashPath();
|
|
10085
|
+
var encodedPath = encodePath(path);
|
|
10086
|
+
if (path !== encodedPath)
|
|
10087
|
+
replaceHashPath(encodedPath);
|
|
10088
|
+
var initialLocation = getDOMLocation();
|
|
10089
|
+
var allPaths = [createPath(initialLocation)];
|
|
10090
|
+
function createHref(location2) {
|
|
10091
|
+
var baseTag = document.querySelector("base");
|
|
10092
|
+
var href = "";
|
|
10093
|
+
if (baseTag && baseTag.getAttribute("href")) {
|
|
10094
|
+
href = stripHash(window.location.href);
|
|
10095
|
+
}
|
|
10096
|
+
return href + "#" + encodePath(basename + createPath(location2));
|
|
10097
|
+
}
|
|
10098
|
+
function push(path2, state2) {
|
|
10099
|
+
process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot push state; it is ignored") : void 0;
|
|
10100
|
+
var action = "PUSH";
|
|
10101
|
+
var location2 = createLocation(path2, void 0, void 0, history2.location);
|
|
10102
|
+
transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
|
|
10103
|
+
if (!ok)
|
|
10104
|
+
return;
|
|
10105
|
+
var path3 = createPath(location2);
|
|
10106
|
+
var encodedPath2 = encodePath(basename + path3);
|
|
10107
|
+
var hashChanged = getHashPath() !== encodedPath2;
|
|
10108
|
+
if (hashChanged) {
|
|
10109
|
+
ignorePath = path3;
|
|
10110
|
+
pushHashPath(encodedPath2);
|
|
10111
|
+
var prevIndex = allPaths.lastIndexOf(createPath(history2.location));
|
|
10112
|
+
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
|
10113
|
+
nextPaths.push(path3);
|
|
10114
|
+
allPaths = nextPaths;
|
|
10115
|
+
setState({
|
|
10116
|
+
action,
|
|
10117
|
+
location: location2
|
|
10118
|
+
});
|
|
10119
|
+
} else {
|
|
10120
|
+
process.env.NODE_ENV !== "production" ? warning(false, "Hash history cannot PUSH the same path; a new entry will not be added to the history stack") : void 0;
|
|
10121
|
+
setState();
|
|
10122
|
+
}
|
|
10123
|
+
});
|
|
10124
|
+
}
|
|
10125
|
+
function replace(path2, state2) {
|
|
10126
|
+
process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot replace state; it is ignored") : void 0;
|
|
10127
|
+
var action = "REPLACE";
|
|
10128
|
+
var location2 = createLocation(path2, void 0, void 0, history2.location);
|
|
10129
|
+
transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
|
|
10130
|
+
if (!ok)
|
|
10131
|
+
return;
|
|
10132
|
+
var path3 = createPath(location2);
|
|
10133
|
+
var encodedPath2 = encodePath(basename + path3);
|
|
10134
|
+
var hashChanged = getHashPath() !== encodedPath2;
|
|
10135
|
+
if (hashChanged) {
|
|
10136
|
+
ignorePath = path3;
|
|
10137
|
+
replaceHashPath(encodedPath2);
|
|
10138
|
+
}
|
|
10139
|
+
var prevIndex = allPaths.indexOf(createPath(history2.location));
|
|
10140
|
+
if (prevIndex !== -1)
|
|
10141
|
+
allPaths[prevIndex] = path3;
|
|
10142
|
+
setState({
|
|
10143
|
+
action,
|
|
10144
|
+
location: location2
|
|
10145
|
+
});
|
|
10146
|
+
});
|
|
10147
|
+
}
|
|
10148
|
+
function go(n) {
|
|
10149
|
+
process.env.NODE_ENV !== "production" ? warning(canGoWithoutReload, "Hash history go(n) causes a full page reload in this browser") : void 0;
|
|
10150
|
+
globalHistory.go(n);
|
|
10151
|
+
}
|
|
10152
|
+
function goBack() {
|
|
10153
|
+
go(-1);
|
|
10154
|
+
}
|
|
10155
|
+
function goForward() {
|
|
10156
|
+
go(1);
|
|
10157
|
+
}
|
|
10158
|
+
var listenerCount = 0;
|
|
10159
|
+
function checkDOMListeners(delta) {
|
|
10160
|
+
listenerCount += delta;
|
|
10161
|
+
if (listenerCount === 1 && delta === 1) {
|
|
10162
|
+
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
|
10163
|
+
} else if (listenerCount === 0) {
|
|
10164
|
+
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
|
10165
|
+
}
|
|
10166
|
+
}
|
|
10167
|
+
var isBlocked = false;
|
|
10168
|
+
function block(prompt) {
|
|
10169
|
+
if (prompt === void 0) {
|
|
10170
|
+
prompt = false;
|
|
10171
|
+
}
|
|
10172
|
+
var unblock = transitionManager.setPrompt(prompt);
|
|
10173
|
+
if (!isBlocked) {
|
|
10174
|
+
checkDOMListeners(1);
|
|
10175
|
+
isBlocked = true;
|
|
10176
|
+
}
|
|
10177
|
+
return function() {
|
|
10178
|
+
if (isBlocked) {
|
|
10179
|
+
isBlocked = false;
|
|
10180
|
+
checkDOMListeners(-1);
|
|
10181
|
+
}
|
|
10182
|
+
return unblock();
|
|
10183
|
+
};
|
|
10184
|
+
}
|
|
10185
|
+
function listen(listener) {
|
|
10186
|
+
var unlisten = transitionManager.appendListener(listener);
|
|
10187
|
+
checkDOMListeners(1);
|
|
10188
|
+
return function() {
|
|
10189
|
+
checkDOMListeners(-1);
|
|
10190
|
+
unlisten();
|
|
10191
|
+
};
|
|
10192
|
+
}
|
|
10193
|
+
var history2 = {
|
|
10194
|
+
length: globalHistory.length,
|
|
10195
|
+
action: "POP",
|
|
10196
|
+
location: initialLocation,
|
|
10197
|
+
createHref,
|
|
10198
|
+
push,
|
|
10199
|
+
replace,
|
|
10200
|
+
go,
|
|
10201
|
+
goBack,
|
|
10202
|
+
goForward,
|
|
10203
|
+
block,
|
|
10204
|
+
listen
|
|
10205
|
+
};
|
|
10206
|
+
return history2;
|
|
10207
|
+
}
|
|
9702
10208
|
const index_1wt5px2 = "";
|
|
9703
10209
|
const MenuStyle = "mdppgn0";
|
|
9704
10210
|
const Menu = () => {
|
|
@@ -9768,6 +10274,148 @@ var __publicField = (obj, key, value) => {
|
|
|
9768
10274
|
})]
|
|
9769
10275
|
});
|
|
9770
10276
|
};
|
|
10277
|
+
const copy$1 = "Copy";
|
|
10278
|
+
const reset_arguments$1 = "Reset";
|
|
10279
|
+
const view_changes$1 = "Show Diff";
|
|
10280
|
+
const back_to_edit$1 = "Edit";
|
|
10281
|
+
const configure_file$1 = "Configuration";
|
|
10282
|
+
const yaml_format_wrong$1 = "Configuration is in an invalid YAML format.";
|
|
10283
|
+
const yaml_value_wrong$1 = "Configuration has invalid values.";
|
|
10284
|
+
const edit_yaml$1 = "Edit YAML";
|
|
10285
|
+
const copied$1 = "Copied";
|
|
10286
|
+
const already_reset$1 = "Already reset";
|
|
10287
|
+
const dovetail$1 = {
|
|
10288
|
+
copy: copy$1,
|
|
10289
|
+
reset_arguments: reset_arguments$1,
|
|
10290
|
+
view_changes: view_changes$1,
|
|
10291
|
+
back_to_edit: back_to_edit$1,
|
|
10292
|
+
configure_file: configure_file$1,
|
|
10293
|
+
yaml_format_wrong: yaml_format_wrong$1,
|
|
10294
|
+
yaml_value_wrong: yaml_value_wrong$1,
|
|
10295
|
+
edit_yaml: edit_yaml$1,
|
|
10296
|
+
copied: copied$1,
|
|
10297
|
+
already_reset: already_reset$1
|
|
10298
|
+
};
|
|
10299
|
+
const EN = {
|
|
10300
|
+
dovetail: dovetail$1
|
|
10301
|
+
};
|
|
10302
|
+
const copy = "\u590D\u5236";
|
|
10303
|
+
const reset_arguments = "\u91CD\u7F6E";
|
|
10304
|
+
const view_changes = "\u67E5\u770B\u6539\u52A8";
|
|
10305
|
+
const back_to_edit = "\u7F16\u8F91";
|
|
10306
|
+
const configure_file = "\u914D\u7F6E\u5185\u5BB9";
|
|
10307
|
+
const yaml_format_wrong = "\u914D\u7F6E\u5185\u5BB9\u4E0D\u662F\u6709\u6548\u7684 yaml \u683C\u5F0F\u3002";
|
|
10308
|
+
const yaml_value_wrong = "\u914D\u7F6E\u5185\u5BB9\u4E2D\u5B58\u5728\u4E0D\u5408\u6CD5\u7684\u503C\u3002";
|
|
10309
|
+
const edit_yaml = "\u7F16\u8F91 YAML";
|
|
10310
|
+
const copied = "\u5DF2\u590D\u5236";
|
|
10311
|
+
const already_reset = "\u5DF2\u91CD\u7F6E";
|
|
10312
|
+
const cancel = "\u53D6\u6D88";
|
|
10313
|
+
const create = "\u521B\u5EFA";
|
|
10314
|
+
const confirm_delete_text = "\u786E\u5B9A\u8981\u5220\u9664 {{target}} \u5417\uFF1F";
|
|
10315
|
+
const edit = "\u7F16\u8F91";
|
|
10316
|
+
const namespace = "\u540D\u5B57\u7A7A\u95F4";
|
|
10317
|
+
const name = "\u540D\u5B57";
|
|
10318
|
+
const state = "\u72B6\u6001";
|
|
10319
|
+
const status = "\u72B6\u6001";
|
|
10320
|
+
const phase = "\u72B6\u6001";
|
|
10321
|
+
const image = "\u955C\u50CF";
|
|
10322
|
+
const replicas = "\u526F\u672C\u6570";
|
|
10323
|
+
const created_time = "\u521B\u5EFA\u65F6\u95F4";
|
|
10324
|
+
const label = "\u6807\u7B7E";
|
|
10325
|
+
const annotation = "\u6CE8\u91CA";
|
|
10326
|
+
const type = "\u7C7B\u578B";
|
|
10327
|
+
const condition = "Condition";
|
|
10328
|
+
const download_yaml = "\u4E0B\u8F7D YAML";
|
|
10329
|
+
const detail = "\u8BE6\u60C5";
|
|
10330
|
+
const node_name = "\u4E3B\u673A\u540D\u79F0";
|
|
10331
|
+
const restarts = "\u91CD\u542F\u6B21\u6570";
|
|
10332
|
+
const updated_time = "\u66F4\u65B0\u65F6\u95F4";
|
|
10333
|
+
const message = "\u6D88\u606F";
|
|
10334
|
+
const save = "\u4FDD\u5B58";
|
|
10335
|
+
const more = "\u66F4\u591A";
|
|
10336
|
+
const workload = "\u5DE5\u4F5C\u8D1F\u8F7D";
|
|
10337
|
+
const all_namespaces = "\u6240\u6709\u540D\u5B57\u7A7A\u95F4";
|
|
10338
|
+
const empty = "\u65E0\u53EF\u663E\u793A\u7684\u6570\u636E";
|
|
10339
|
+
const schedule = "\u8C03\u5EA6";
|
|
10340
|
+
const lastScheduleTime = "\u4E0A\u6B21\u8C03\u5EA6";
|
|
10341
|
+
const duration = "\u6301\u7EED\u65F6\u95F4";
|
|
10342
|
+
const completions = "\u5B8C\u6210 Job \u5386\u53F2\u6570";
|
|
10343
|
+
const started = "\u5F00\u59CB\u65F6\u95F4";
|
|
10344
|
+
const ready = "\u5C31\u7EEA";
|
|
10345
|
+
const init_container = "\u521D\u59CB\u5316\u5BB9\u5668";
|
|
10346
|
+
const container = "\u5BB9\u5668";
|
|
10347
|
+
const redeploy = "\u91CD\u65B0\u90E8\u7F72";
|
|
10348
|
+
const data = "\u6570\u636E";
|
|
10349
|
+
const suspend = "\u6682\u505C";
|
|
10350
|
+
const resume = "\u91CD\u65B0\u5F00\u59CB";
|
|
10351
|
+
const dovetail = {
|
|
10352
|
+
copy,
|
|
10353
|
+
reset_arguments,
|
|
10354
|
+
view_changes,
|
|
10355
|
+
back_to_edit,
|
|
10356
|
+
configure_file,
|
|
10357
|
+
yaml_format_wrong,
|
|
10358
|
+
yaml_value_wrong,
|
|
10359
|
+
edit_yaml,
|
|
10360
|
+
copied,
|
|
10361
|
+
already_reset,
|
|
10362
|
+
cancel,
|
|
10363
|
+
"delete": "\u5220\u9664",
|
|
10364
|
+
create,
|
|
10365
|
+
confirm_delete_text,
|
|
10366
|
+
edit,
|
|
10367
|
+
namespace,
|
|
10368
|
+
name,
|
|
10369
|
+
state,
|
|
10370
|
+
status,
|
|
10371
|
+
phase,
|
|
10372
|
+
image,
|
|
10373
|
+
replicas,
|
|
10374
|
+
created_time,
|
|
10375
|
+
label,
|
|
10376
|
+
annotation,
|
|
10377
|
+
type,
|
|
10378
|
+
condition,
|
|
10379
|
+
download_yaml,
|
|
10380
|
+
detail,
|
|
10381
|
+
node_name,
|
|
10382
|
+
restarts,
|
|
10383
|
+
updated_time,
|
|
10384
|
+
message,
|
|
10385
|
+
save,
|
|
10386
|
+
more,
|
|
10387
|
+
workload,
|
|
10388
|
+
all_namespaces,
|
|
10389
|
+
empty,
|
|
10390
|
+
schedule,
|
|
10391
|
+
lastScheduleTime,
|
|
10392
|
+
duration,
|
|
10393
|
+
completions,
|
|
10394
|
+
started,
|
|
10395
|
+
ready,
|
|
10396
|
+
init_container,
|
|
10397
|
+
container,
|
|
10398
|
+
redeploy,
|
|
10399
|
+
data,
|
|
10400
|
+
suspend,
|
|
10401
|
+
resume
|
|
10402
|
+
};
|
|
10403
|
+
const ZH = {
|
|
10404
|
+
dovetail
|
|
10405
|
+
};
|
|
10406
|
+
const resources = {
|
|
10407
|
+
"en-US": EN,
|
|
10408
|
+
"zh-CN": ZH
|
|
10409
|
+
};
|
|
10410
|
+
i18n__default.default.use(initReactI18next).init({
|
|
10411
|
+
supportedLngs: ["en-US", "zh-CN"],
|
|
10412
|
+
resources,
|
|
10413
|
+
ns: Object.keys(resources["zh-CN"]),
|
|
10414
|
+
defaultNS: "dovetail",
|
|
10415
|
+
fallbackLng: ["en-US", "zh-CN"],
|
|
10416
|
+
lng: "zh-CN",
|
|
10417
|
+
nsSeparator: "."
|
|
10418
|
+
});
|
|
9771
10419
|
const styles = "";
|
|
9772
10420
|
const antd = "";
|
|
9773
10421
|
const style = "";
|
|
@@ -9776,9 +10424,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9776
10424
|
watchWsApiUrl: "api/sks-ws/k8s",
|
|
9777
10425
|
prefix: "default"
|
|
9778
10426
|
});
|
|
10427
|
+
const history = createHashHistory();
|
|
9779
10428
|
const Dovetail = (props) => {
|
|
9780
10429
|
const { resourcesConfig, urlPrefix } = props;
|
|
9781
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.
|
|
10430
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Router, { history, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9782
10431
|
core.Refine,
|
|
9783
10432
|
{
|
|
9784
10433
|
dataProvider: {
|