@dovetail-v2/refine 0.1.5-alpha.0 → 0.1.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MonacoYamlDiffEditor-c27ab21c.js → MonacoYamlDiffEditor-c5547070.js} +1 -1
- package/dist/{index-984f2ec7.js → index-152e54ea.js} +390 -315
- package/dist/refine.js +213 -212
- package/dist/refine.umd.cjs +178 -103
- package/dist/style.css +1 -0
- package/lib/src/components/Form/useYamlForm.d.ts +2 -3
- package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +1 -1
- package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +1 -1
- package/lib/src/hooks/useSchema.d.ts +7 -0
- package/lib/src/i18n.d.ts +1 -0
- package/lib/src/locales/en-US/index.d.ts +1 -0
- package/lib/src/utils/openapi.d.ts +6 -11
- package/package.json +1 -1
- package/lib/App.d.ts +0 -2
- package/lib/Dovetail.d.ts +0 -18
- package/lib/components/Breadcrumb/index.d.ts +0 -5
- package/lib/components/ConditionsTable/ConditionsTable.d.ts +0 -7
- package/lib/components/ConditionsTable/index.d.ts +0 -1
- package/lib/components/CreateButton/index.d.ts +0 -1
- package/lib/components/CronJobDropdown/index.d.ts +0 -8
- package/lib/components/CronjobJobsTable/index.d.ts +0 -8
- package/lib/components/DeleteButton/index.d.ts +0 -2
- package/lib/components/DeleteManyButton/index.d.ts +0 -4
- package/lib/components/DrawerShow/DrawerShow.d.ts +0 -8
- package/lib/components/DrawerShow/index.d.ts +0 -1
- package/lib/components/DurationTime/index.d.ts +0 -5
- package/lib/components/EditButton/index.d.ts +0 -2
- package/lib/components/EditField/index.d.ts +0 -15
- package/lib/components/ErrorContent/index.d.ts +0 -17
- package/lib/components/EventsTable/EventsTable.d.ts +0 -6
- package/lib/components/EventsTable/index.d.ts +0 -1
- package/lib/components/Form/FormModal.d.ts +0 -10
- package/lib/components/Form/RefineFormContent.d.ts +0 -11
- package/lib/components/Form/RefineFormPage.d.ts +0 -6
- package/lib/components/Form/YamlForm.d.ts +0 -28
- package/lib/components/Form/index.d.ts +0 -7
- package/lib/components/Form/type.d.ts +0 -17
- package/lib/components/Form/useReactHookForm.d.ts +0 -29
- package/lib/components/Form/useRefineForm.d.ts +0 -13
- package/lib/components/Form/useYamlForm.d.ts +0 -51
- package/lib/components/FormErrorAlert/index.d.ts +0 -9
- package/lib/components/FormLayout/index.d.ts +0 -7
- package/lib/components/FormWidgets/KeyValueListWidget.d.ts +0 -5
- package/lib/components/FormWidgets/MetadataForm.d.ts +0 -1
- package/lib/components/FormWidgets/NameInputWidget.d.ts +0 -50
- package/lib/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -8
- package/lib/components/FormWidgets/index.d.ts +0 -4
- package/lib/components/FormWidgets/widget.d.ts +0 -5
- package/lib/components/ImageNames/index.d.ts +0 -5
- package/lib/components/IngressRulesComponent/index.d.ts +0 -5
- package/lib/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
- package/lib/components/IngressRulesTable/index.d.ts +0 -1
- package/lib/components/K8sDropdown/index.d.ts +0 -9
- package/lib/components/KeyValue/KeyValue.d.ts +0 -7
- package/lib/components/KeyValue/KeyValueAnnotation.d.ts +0 -5
- package/lib/components/KeyValue/KeyValueSecret.d.ts +0 -4
- package/lib/components/KeyValue/index.d.ts +0 -3
- package/lib/components/Layout/index.d.ts +0 -3
- package/lib/components/LinkFallback/index.d.ts +0 -3
- package/lib/components/ListPage/index.d.ts +0 -9
- package/lib/components/Menu/index.d.ts +0 -1
- package/lib/components/NamespacesFilter/index.d.ts +0 -11
- package/lib/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
- package/lib/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
- package/lib/components/PageShow/PageShow.d.ts +0 -12
- package/lib/components/PageShow/index.d.ts +0 -1
- package/lib/components/PodContainersTable/PodContainersTable.d.ts +0 -8
- package/lib/components/PodContainersTable/index.d.ts +0 -1
- package/lib/components/PodDropdown/index.d.ts +0 -9
- package/lib/components/PodLog/index.d.ts +0 -6
- package/lib/components/PodSelectorTable/index.d.ts +0 -6
- package/lib/components/PodShellModal/PodShell.d.ts +0 -18
- package/lib/components/PodShellModal/index.d.ts +0 -9
- package/lib/components/PortsTable/index.d.ts +0 -7
- package/lib/components/ReferenceLink/index.d.ts +0 -8
- package/lib/components/ReplicasDropdown/index.d.ts +0 -9
- package/lib/components/ResourceCRUD/ResourceCRUD.d.ts +0 -7
- package/lib/components/ResourceCRUD/create/index.d.ts +0 -7
- package/lib/components/ResourceCRUD/index.d.ts +0 -4
- package/lib/components/ResourceCRUD/list/index.d.ts +0 -8
- package/lib/components/ResourceCRUD/show/index.d.ts +0 -8
- package/lib/components/ResourceFiledDisplays.d.ts +0 -6
- package/lib/components/ResourceLink/index.d.ts +0 -8
- package/lib/components/ResourceSelect/index.d.ts +0 -11
- package/lib/components/ResourceUsageBar/index.d.ts +0 -8
- package/lib/components/Separator/index.d.ts +0 -2
- package/lib/components/ServiceComponents/index.d.ts +0 -10
- package/lib/components/Shell/index.d.ts +0 -54
- package/lib/components/ShowContent/ShowContent.d.ts +0 -18
- package/lib/components/ShowContent/fields.d.ts +0 -68
- package/lib/components/ShowContent/groups.d.ts +0 -23
- package/lib/components/ShowContent/index.d.ts +0 -4
- package/lib/components/ShowContent/tabs.d.ts +0 -5
- package/lib/components/StateTag/StateTag.d.ts +0 -10
- package/lib/components/StateTag/index.d.ts +0 -1
- package/lib/components/Table/TableToolBar.d.ts +0 -8
- package/lib/components/Table/TableWidgets.d.ts +0 -6
- package/lib/components/Table/index.d.ts +0 -43
- package/lib/components/Tabs/index.d.ts +0 -10
- package/lib/components/Tags/index.d.ts +0 -6
- package/lib/components/TextTags/index.d.ts +0 -6
- package/lib/components/Time/index.d.ts +0 -8
- package/lib/components/ValueDisplay/index.d.ts +0 -9
- package/lib/components/WorkloadDropdown/index.d.ts +0 -9
- package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
- package/lib/components/WorkloadPodsTable/index.d.ts +0 -1
- package/lib/components/WorkloadReplicas/index.d.ts +0 -17
- package/lib/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
- package/lib/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
- package/lib/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
- package/lib/components/YamlEditor/index.d.ts +0 -1
- package/lib/components/YamlEditor/style.d.ts +0 -11
- package/lib/components/YamlEditor/yaml.worker.d.ts +0 -1
- package/lib/components/index.d.ts +0 -47
- package/lib/constants/auth.d.ts +0 -5
- package/lib/constants/index.d.ts +0 -3
- package/lib/constants/k8s.d.ts +0 -487
- package/lib/constants/state.d.ts +0 -15
- package/lib/contexts/component.d.ts +0 -7
- package/lib/contexts/configs.d.ts +0 -3
- package/lib/contexts/global-store.d.ts +0 -5
- package/lib/contexts/index.d.ts +0 -3
- package/lib/hooks/index.d.ts +0 -8
- package/lib/hooks/useDeleteModal/index.d.ts +0 -1
- package/lib/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -7
- package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
- package/lib/hooks/useDownloadYAML.d.ts +0 -7
- package/lib/hooks/useEagleTable/columns.d.ts +0 -41
- package/lib/hooks/useEagleTable/index.d.ts +0 -2
- package/lib/hooks/useEagleTable/useEagleTable.d.ts +0 -55
- package/lib/hooks/useEdit.d.ts +0 -4
- package/lib/hooks/useGlobalStore.d.ts +0 -3
- package/lib/hooks/useK8sYamlEditor.d.ts +0 -5
- package/lib/hooks/useNamespaceRefineFilter.d.ts +0 -5
- package/lib/hooks/useOpenForm.d.ts +0 -7
- package/lib/hooks/useSchema.d.ts +0 -14
- package/lib/hooks/useSubmitForm.d.ts +0 -14
- package/lib/hooks/useTableData.d.ts +0 -19
- package/lib/i18n.d.ts +0 -353
- package/lib/index.d.ts +0 -11
- package/lib/locales/en-US/index.d.ts +0 -175
- package/lib/locales/index.d.ts +0 -2
- package/lib/locales/zh-CN/index.d.ts +0 -175
- package/lib/main.d.ts +0 -3
- package/lib/models/cronjob-model.d.ts +0 -15
- package/lib/models/daemonset-model.d.ts +0 -15
- package/lib/models/deployment-model.d.ts +0 -13
- package/lib/models/event-model.d.ts +0 -7
- package/lib/models/index.d.ts +0 -19
- package/lib/models/ingress-model.d.ts +0 -20
- package/lib/models/job-model.d.ts +0 -20
- package/lib/models/network-policy-model.d.ts +0 -9
- package/lib/models/node-model.d.ts +0 -17
- package/lib/models/persistent-volume-claim.d.ts +0 -9
- package/lib/models/persistent-volume.d.ts +0 -9
- package/lib/models/pod-metrics-model.d.ts +0 -8
- package/lib/models/pod-model.d.ts +0 -20
- package/lib/models/resource-model.d.ts +0 -21
- package/lib/models/service-model.d.ts +0 -24
- package/lib/models/statefulset-model.d.ts +0 -13
- package/lib/models/storage-class.d.ts +0 -12
- package/lib/models/types/index.d.ts +0 -1
- package/lib/models/types/metric.d.ts +0 -25
- package/lib/models/workload-base-model.d.ts +0 -12
- package/lib/models/workload-model.d.ts +0 -18
- package/lib/pages/configmaps/index.d.ts +0 -4
- package/lib/pages/cronjobs/create/index.d.ts +0 -3
- package/lib/pages/cronjobs/index.d.ts +0 -3
- package/lib/pages/cronjobs/list/index.d.ts +0 -3
- package/lib/pages/cronjobs/show/index.d.ts +0 -3
- package/lib/pages/daemonsets/create/index.d.ts +0 -3
- package/lib/pages/daemonsets/index.d.ts +0 -3
- package/lib/pages/daemonsets/list/index.d.ts +0 -3
- package/lib/pages/daemonsets/show/index.d.ts +0 -3
- package/lib/pages/deployments/index.d.ts +0 -2
- package/lib/pages/deployments/list/index.d.ts +0 -3
- package/lib/pages/deployments/show/index.d.ts +0 -3
- package/lib/pages/ingresses/index.d.ts +0 -4
- package/lib/pages/jobs/index.d.ts +0 -4
- package/lib/pages/networkPolicies/index.d.ts +0 -4
- package/lib/pages/nodes/index.d.ts +0 -2
- package/lib/pages/nodes/list/index.d.ts +0 -3
- package/lib/pages/nodes/show/index.d.ts +0 -3
- package/lib/pages/persistentvolumeclaims/index.d.ts +0 -4
- package/lib/pages/persistentvolumes/index.d.ts +0 -4
- package/lib/pages/pods/create/index.d.ts +0 -3
- package/lib/pages/pods/index.d.ts +0 -3
- package/lib/pages/pods/list/index.d.ts +0 -3
- package/lib/pages/pods/show/index.d.ts +0 -3
- package/lib/pages/secrets/index.d.ts +0 -4
- package/lib/pages/services/index.d.ts +0 -4
- package/lib/pages/statefulsets/index.d.ts +0 -4
- package/lib/pages/storageclasses/form/index.d.ts +0 -9
- package/lib/pages/storageclasses/index.d.ts +0 -44
- package/lib/plugins/index.d.ts +0 -4
- package/lib/plugins/model-plugin.d.ts +0 -13
- package/lib/plugins/relation-plugin.d.ts +0 -26
- package/lib/plugins/type.d.ts +0 -8
- package/lib/providers/index.d.ts +0 -1
- package/lib/providers/router-provider/index.d.ts +0 -21
- package/lib/src/utils/index.d.ts +0 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/resource.d.ts +0 -62
- package/lib/utils/addId.d.ts +0 -3
- package/lib/utils/download.d.ts +0 -1
- package/lib/utils/error.d.ts +0 -20
- package/lib/utils/form.d.ts +0 -3
- package/lib/utils/k8s.d.ts +0 -3
- package/lib/utils/labels.d.ts +0 -9
- package/lib/utils/match-selector.d.ts +0 -3
- package/lib/utils/openapi.d.ts +0 -45
- package/lib/utils/schema.d.ts +0 -17
- package/lib/utils/selector.d.ts +0 -3
- package/lib/utils/shell.d.ts +0 -15
- package/lib/utils/string.d.ts +0 -1
- package/lib/utils/time.d.ts +0 -13
- package/lib/utils/unit.d.ts +0 -12
- package/lib/utils/yaml.d.ts +0 -2
|
@@ -1168,6 +1168,7 @@ const pv_phase_released$1 = "Released";
|
|
|
1168
1168
|
const pv_phase_failed$1 = "Failed";
|
|
1169
1169
|
const pv_phase_pending$1 = "Pending";
|
|
1170
1170
|
const exec_pod = "Execute shell";
|
|
1171
|
+
const search$1 = "Search";
|
|
1171
1172
|
const dovetail$1 = {
|
|
1172
1173
|
copy: copy$2,
|
|
1173
1174
|
reset_arguments: reset_arguments$1,
|
|
@@ -1338,7 +1339,8 @@ const dovetail$1 = {
|
|
|
1338
1339
|
pv_phase_released: pv_phase_released$1,
|
|
1339
1340
|
pv_phase_failed: pv_phase_failed$1,
|
|
1340
1341
|
pv_phase_pending: pv_phase_pending$1,
|
|
1341
|
-
exec_pod
|
|
1342
|
+
exec_pod,
|
|
1343
|
+
search: search$1
|
|
1342
1344
|
};
|
|
1343
1345
|
const EN = {
|
|
1344
1346
|
dovetail: dovetail$1
|
|
@@ -8020,6 +8022,10 @@ function generateSchemaTypeValue(schema) {
|
|
|
8020
8022
|
function resolveRef(schema, schemas, options) {
|
|
8021
8023
|
var _a, _b;
|
|
8022
8024
|
const { prune } = options;
|
|
8025
|
+
const kindObj = schema["x-kubernetes-group-version-kind"];
|
|
8026
|
+
if (kindObj) {
|
|
8027
|
+
schema.properties.kind = { const: kindObj[0].kind };
|
|
8028
|
+
}
|
|
8023
8029
|
if (schema.$ref) {
|
|
8024
8030
|
const refKey = schema.$ref.replace("#/components/schemas/", "");
|
|
8025
8031
|
Object.assign(schema, schemas[refKey]);
|
|
@@ -8074,30 +8080,47 @@ function resolveRef(schema, schemas, options) {
|
|
|
8074
8080
|
}
|
|
8075
8081
|
class K8sOpenAPI {
|
|
8076
8082
|
constructor(resourceBasePath) {
|
|
8077
|
-
|
|
8083
|
+
// private response: OpenAPIResponse | null = null;
|
|
8078
8084
|
__publicField(this, "apiVersion");
|
|
8085
|
+
__publicField(this, "schemas", null);
|
|
8079
8086
|
this.resourceBasePath = resourceBasePath;
|
|
8080
8087
|
this.apiVersion = getApiVersion(resourceBasePath);
|
|
8081
8088
|
}
|
|
8089
|
+
// Fetch and process OpenAPI schemas
|
|
8082
8090
|
async fetch() {
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8091
|
+
try {
|
|
8092
|
+
const response = await fetch(
|
|
8093
|
+
`/api/sks/api/v1/clusters/sks-mgmt/proxy/openapi/v3${this.resourceBasePath}`
|
|
8094
|
+
);
|
|
8095
|
+
const result = await response.json();
|
|
8096
|
+
this.schemas = Object.values(result.components.schemas);
|
|
8097
|
+
if (this.schemas) {
|
|
8098
|
+
this.processSchemas(result.components.schemas);
|
|
8099
|
+
}
|
|
8100
|
+
return this.schemas;
|
|
8101
|
+
} catch (error) {
|
|
8102
|
+
console.error("Failed to fetch OpenAPI schemas:", error);
|
|
8103
|
+
return null;
|
|
8104
|
+
}
|
|
8087
8105
|
}
|
|
8088
|
-
|
|
8106
|
+
// Find schema by kind and version
|
|
8107
|
+
findSchema(kind) {
|
|
8089
8108
|
var _a;
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
(schema2) => {
|
|
8109
|
+
return (_a = this.schemas) == null ? void 0 : _a.find(
|
|
8110
|
+
(schema) => {
|
|
8093
8111
|
var _a2;
|
|
8094
|
-
return (_a2 =
|
|
8112
|
+
return (_a2 = schema["x-kubernetes-group-version-kind"]) == null ? void 0 : _a2.some(
|
|
8095
8113
|
({ kind: schemaKind, version: schemaVersion, group: schemaGroup }) => kind === schemaKind && this.apiVersion === `${schemaGroup ? schemaGroup + "/" : ""}${schemaVersion}`
|
|
8096
8114
|
);
|
|
8097
8115
|
}
|
|
8098
8116
|
);
|
|
8099
|
-
|
|
8100
|
-
|
|
8117
|
+
}
|
|
8118
|
+
// Process and clean up schemas
|
|
8119
|
+
processSchemas(schemaMap) {
|
|
8120
|
+
var _a;
|
|
8121
|
+
(_a = this.schemas) == null ? void 0 : _a.forEach((schema) => {
|
|
8122
|
+
var _a2;
|
|
8123
|
+
resolveRef(schema, schemaMap, {
|
|
8101
8124
|
prune: {
|
|
8102
8125
|
description: true,
|
|
8103
8126
|
optional: false,
|
|
@@ -8106,13 +8129,52 @@ class K8sOpenAPI {
|
|
|
8106
8129
|
xProperty: true
|
|
8107
8130
|
}
|
|
8108
8131
|
});
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
}
|
|
8113
|
-
return schema;
|
|
8132
|
+
if ((_a2 = schema == null ? void 0 : schema.properties) == null ? void 0 : _a2.status) {
|
|
8133
|
+
delete schema.properties.status;
|
|
8134
|
+
}
|
|
8135
|
+
});
|
|
8114
8136
|
}
|
|
8115
8137
|
}
|
|
8138
|
+
function useApiGroupSchema(apiGroups) {
|
|
8139
|
+
const [state2, setState] = useState({
|
|
8140
|
+
schemas: null,
|
|
8141
|
+
schemasMap: {},
|
|
8142
|
+
loading: false,
|
|
8143
|
+
error: null
|
|
8144
|
+
});
|
|
8145
|
+
const fetchSchema = useCallback(async () => {
|
|
8146
|
+
setState((prev) => ({ ...prev, loading: true, error: null }));
|
|
8147
|
+
try {
|
|
8148
|
+
const results = await Promise.all(
|
|
8149
|
+
apiGroups.map(async (apiGroup) => {
|
|
8150
|
+
if (state2.schemasMap[apiGroup]) {
|
|
8151
|
+
return { apiGroup, schemas: state2.schemasMap[apiGroup] };
|
|
8152
|
+
}
|
|
8153
|
+
const openapi = new K8sOpenAPI(apiGroup);
|
|
8154
|
+
const groupSchemas = await openapi.fetch();
|
|
8155
|
+
return { apiGroup, schemas: groupSchemas || [] };
|
|
8156
|
+
})
|
|
8157
|
+
);
|
|
8158
|
+
const newSchemasMap = results.reduce((acc, { apiGroup, schemas }) => {
|
|
8159
|
+
acc[apiGroup] = schemas;
|
|
8160
|
+
return acc;
|
|
8161
|
+
}, {});
|
|
8162
|
+
const allSchemas = results.flatMap(({ schemas }) => schemas);
|
|
8163
|
+
setState({
|
|
8164
|
+
schemas: allSchemas,
|
|
8165
|
+
schemasMap: newSchemasMap,
|
|
8166
|
+
loading: false,
|
|
8167
|
+
error: null
|
|
8168
|
+
});
|
|
8169
|
+
} catch (e2) {
|
|
8170
|
+
setState((prev) => ({ ...prev, loading: false, error: e2 }));
|
|
8171
|
+
}
|
|
8172
|
+
}, [apiGroups, state2.schemasMap]);
|
|
8173
|
+
useEffect(() => {
|
|
8174
|
+
fetchSchema();
|
|
8175
|
+
}, [fetchSchema]);
|
|
8176
|
+
return { ...state2, fetchSchema };
|
|
8177
|
+
}
|
|
8116
8178
|
function useSchema(options) {
|
|
8117
8179
|
var _a;
|
|
8118
8180
|
const [schema, setSchema] = useState(null);
|
|
@@ -8132,6 +8194,7 @@ function useSchema(options) {
|
|
|
8132
8194
|
setLoading(true);
|
|
8133
8195
|
setError(null);
|
|
8134
8196
|
try {
|
|
8197
|
+
await openapi.fetch();
|
|
8135
8198
|
const schema2 = await openapi.findSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.kind);
|
|
8136
8199
|
setSchema(schema2 || null);
|
|
8137
8200
|
setError(null);
|
|
@@ -8145,7 +8208,7 @@ function useSchema(options) {
|
|
|
8145
8208
|
if (options == null ? void 0 : options.skip)
|
|
8146
8209
|
return;
|
|
8147
8210
|
fetchSchema();
|
|
8148
|
-
}, [fetchSchema]);
|
|
8211
|
+
}, [fetchSchema, options == null ? void 0 : options.skip]);
|
|
8149
8212
|
return {
|
|
8150
8213
|
schema,
|
|
8151
8214
|
loading,
|
|
@@ -18135,16 +18198,17 @@ const PlainCodeStyle = "pqch97v";
|
|
|
18135
18198
|
const ErrorMsgStyle = "eh2qjnl";
|
|
18136
18199
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
18137
18200
|
const YamlEditorStyle = "y16u5v3w";
|
|
18138
|
-
const schemaMap = /* @__PURE__ */ new Map();
|
|
18139
18201
|
const MonacoYamlEditor$1 = (props) => {
|
|
18140
18202
|
const ref = useRef(null);
|
|
18141
|
-
const instanceRef = useRef({
|
|
18203
|
+
const instanceRef = useRef({
|
|
18204
|
+
editor: null
|
|
18205
|
+
});
|
|
18142
18206
|
const {
|
|
18143
18207
|
defaultValue,
|
|
18144
18208
|
id,
|
|
18145
18209
|
height,
|
|
18146
18210
|
readOnly,
|
|
18147
|
-
|
|
18211
|
+
schemas,
|
|
18148
18212
|
isScrollOnFocus,
|
|
18149
18213
|
onChange,
|
|
18150
18214
|
onValidate,
|
|
@@ -18154,24 +18218,21 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
18154
18218
|
} = props;
|
|
18155
18219
|
const uri = id ? monaco.Uri.parse(`${id}.yaml`) : void 0;
|
|
18156
18220
|
useEffect(() => {
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
// Id of the first schema
|
|
18221
|
+
const finalSchemas = [
|
|
18222
|
+
{
|
|
18160
18223
|
uri: String(uri),
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18224
|
+
fileMatch: [String(uri)],
|
|
18225
|
+
schema: {
|
|
18226
|
+
oneOf: schemas || []
|
|
18227
|
+
}
|
|
18228
|
+
}
|
|
18229
|
+
];
|
|
18167
18230
|
setDiagnosticsOptions({
|
|
18168
18231
|
enableSchemaRequest: false,
|
|
18169
|
-
hover: true,
|
|
18170
|
-
completion: true,
|
|
18171
18232
|
validate: true,
|
|
18172
18233
|
format: true,
|
|
18173
18234
|
isKubernetes: true,
|
|
18174
|
-
schemas
|
|
18235
|
+
schemas: finalSchemas
|
|
18175
18236
|
});
|
|
18176
18237
|
const model = monaco.editor.createModel(defaultValue, "yaml", uri);
|
|
18177
18238
|
const editor = monaco.editor.create(ref.current, {
|
|
@@ -18192,11 +18253,10 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
18192
18253
|
onEditorCreate == null ? void 0 : onEditorCreate(editor);
|
|
18193
18254
|
return () => {
|
|
18194
18255
|
instanceRef.current.editor = null;
|
|
18195
|
-
schemaMap.delete(id);
|
|
18196
18256
|
model.dispose();
|
|
18197
18257
|
editor.dispose();
|
|
18198
18258
|
};
|
|
18199
|
-
}, [
|
|
18259
|
+
}, [id, schemas, readOnly, isScrollOnFocus, getInstance]);
|
|
18200
18260
|
useEffect(() => {
|
|
18201
18261
|
const editor = instanceRef.current.editor;
|
|
18202
18262
|
if (editor) {
|
|
@@ -18218,7 +18278,10 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
18218
18278
|
const model = (_a = instanceRef.current.editor) == null ? void 0 : _a.getModel();
|
|
18219
18279
|
const currentEditorUri = model == null ? void 0 : model.uri;
|
|
18220
18280
|
if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
|
|
18221
|
-
const marks = monaco.editor.getModelMarkers({
|
|
18281
|
+
const marks = monaco.editor.getModelMarkers({
|
|
18282
|
+
owner: "yaml",
|
|
18283
|
+
resource: currentEditorUri
|
|
18284
|
+
});
|
|
18222
18285
|
const yamlMarks = marks.filter((m) => m.source === "YAML");
|
|
18223
18286
|
const schemaMarks = marks.filter((m) => m.source !== "YAML");
|
|
18224
18287
|
const yamlValid = yamlMarks.length === 0;
|
|
@@ -18228,7 +18291,11 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
18228
18291
|
var _a2;
|
|
18229
18292
|
return (_a2 = mark.source) == null ? void 0 : _a2.includes("yaml-schema");
|
|
18230
18293
|
})) {
|
|
18231
|
-
monaco.editor.setModelMarkers(
|
|
18294
|
+
monaco.editor.setModelMarkers(
|
|
18295
|
+
model,
|
|
18296
|
+
"yaml",
|
|
18297
|
+
marks.map((mark) => ({ ...mark, source: "", resource: {} }))
|
|
18298
|
+
);
|
|
18232
18299
|
}
|
|
18233
18300
|
}
|
|
18234
18301
|
});
|
|
@@ -18254,20 +18321,24 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
18254
18321
|
const editor = instanceRef.current.editor;
|
|
18255
18322
|
const stops = [];
|
|
18256
18323
|
if (editor && isScrollOnFocus) {
|
|
18257
|
-
stops.push(
|
|
18258
|
-
editor.
|
|
18259
|
-
|
|
18260
|
-
|
|
18261
|
-
|
|
18262
|
-
|
|
18263
|
-
|
|
18264
|
-
|
|
18265
|
-
|
|
18266
|
-
|
|
18267
|
-
|
|
18268
|
-
|
|
18269
|
-
|
|
18270
|
-
|
|
18324
|
+
stops.push(
|
|
18325
|
+
editor.onDidFocusEditorWidget(() => {
|
|
18326
|
+
editor.updateOptions({
|
|
18327
|
+
scrollbar: {
|
|
18328
|
+
handleMouseWheel: true
|
|
18329
|
+
}
|
|
18330
|
+
});
|
|
18331
|
+
})
|
|
18332
|
+
);
|
|
18333
|
+
stops.push(
|
|
18334
|
+
editor.onDidBlurEditorWidget(() => {
|
|
18335
|
+
editor.updateOptions({
|
|
18336
|
+
scrollbar: {
|
|
18337
|
+
handleMouseWheel: false
|
|
18338
|
+
}
|
|
18339
|
+
});
|
|
18340
|
+
})
|
|
18341
|
+
);
|
|
18271
18342
|
}
|
|
18272
18343
|
return () => {
|
|
18273
18344
|
stops.forEach((stop) => stop.dispose());
|
|
@@ -18310,7 +18381,7 @@ const NetworkPolicyRulesViewer = ({
|
|
|
18310
18381
|
});
|
|
18311
18382
|
}
|
|
18312
18383
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
|
|
18313
|
-
|
|
18384
|
+
schemas: [],
|
|
18314
18385
|
defaultValue: yaml.dump(ingressOrEgress),
|
|
18315
18386
|
height: "300px",
|
|
18316
18387
|
className: EditorStyle$1,
|
|
@@ -31844,12 +31915,13 @@ function copy(text, options) {
|
|
|
31844
31915
|
}
|
|
31845
31916
|
var copyToClipboard$1 = copy;
|
|
31846
31917
|
const copyToClipboard$2 = /* @__PURE__ */ getDefaultExportFromCjs(copyToClipboard$1);
|
|
31847
|
-
const
|
|
31918
|
+
const ShellToolbar_ox6trc = "";
|
|
31848
31919
|
const ToolbarStyle$1 = "tzxa6d";
|
|
31849
31920
|
const ToolbarAreaStyle = "t1sxu3rr";
|
|
31850
31921
|
const IconWrapperStyle = "ix8ych8";
|
|
31851
31922
|
const IconStyle = "i58m6oo";
|
|
31852
31923
|
const DividerStyle = "d1t2oa87";
|
|
31924
|
+
const TooltipStyle = "tuo8xdg";
|
|
31853
31925
|
function ShellToolbar(props) {
|
|
31854
31926
|
const {
|
|
31855
31927
|
className,
|
|
@@ -31879,7 +31951,10 @@ function ShellToolbar(props) {
|
|
|
31879
31951
|
})),
|
|
31880
31952
|
slotsElements: {
|
|
31881
31953
|
trigger: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
31882
|
-
title:
|
|
31954
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
31955
|
+
className: TooltipStyle,
|
|
31956
|
+
children: t2("dovetail.font_size")
|
|
31957
|
+
}),
|
|
31883
31958
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
31884
31959
|
style: {
|
|
31885
31960
|
display: "flex",
|
|
@@ -31895,7 +31970,10 @@ function ShellToolbar(props) {
|
|
|
31895
31970
|
}
|
|
31896
31971
|
}),
|
|
31897
31972
|
downloadLog: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
31898
|
-
title:
|
|
31973
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
31974
|
+
className: TooltipStyle,
|
|
31975
|
+
children: t2("dovetail.download_shell_content")
|
|
31976
|
+
}),
|
|
31899
31977
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
31900
31978
|
className: IconStyle,
|
|
31901
31979
|
src: LogCollection16GrayIcon,
|
|
@@ -31904,7 +31982,10 @@ function ShellToolbar(props) {
|
|
|
31904
31982
|
})
|
|
31905
31983
|
}),
|
|
31906
31984
|
clear: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
31907
|
-
title:
|
|
31985
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
31986
|
+
className: TooltipStyle,
|
|
31987
|
+
children: t2("dovetail.clear_shell")
|
|
31988
|
+
}),
|
|
31908
31989
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
31909
31990
|
className: IconStyle,
|
|
31910
31991
|
src: TrashBinDeletePermanently16GrayIcon,
|
|
@@ -31921,7 +32002,7 @@ function ShellToolbar(props) {
|
|
|
31921
32002
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
31922
32003
|
className: ToolbarAreaStyle,
|
|
31923
32004
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
|
|
31924
|
-
placeholder: "
|
|
32005
|
+
placeholder: t2("dovetail.search"),
|
|
31925
32006
|
size: "small",
|
|
31926
32007
|
total: searchMatchedTotal,
|
|
31927
32008
|
onChange: (str) => {
|
|
@@ -32260,7 +32341,8 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
|
|
|
32260
32341
|
className: ContainerStyle,
|
|
32261
32342
|
children: [!!error ? /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
32262
32343
|
style: {
|
|
32263
|
-
margin:
|
|
32344
|
+
margin: 8,
|
|
32345
|
+
marginBottom: 4
|
|
32264
32346
|
},
|
|
32265
32347
|
message: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
32266
32348
|
className: ErrorAlertStyle,
|
|
@@ -37257,7 +37339,7 @@ const Separator = () => {
|
|
|
37257
37339
|
});
|
|
37258
37340
|
};
|
|
37259
37341
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
37260
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
37342
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c5547070.js"));
|
|
37261
37343
|
const YamlEditorComponent = forwardRef(
|
|
37262
37344
|
function YamlEditorComponent2(props, ref) {
|
|
37263
37345
|
const {
|
|
@@ -37268,7 +37350,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
37268
37350
|
height,
|
|
37269
37351
|
readOnly,
|
|
37270
37352
|
errorMsgs = [],
|
|
37271
|
-
|
|
37353
|
+
schemas,
|
|
37272
37354
|
eleRef,
|
|
37273
37355
|
className
|
|
37274
37356
|
} = props;
|
|
@@ -37480,7 +37562,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
37480
37562
|
onValidate,
|
|
37481
37563
|
onEditorCreate,
|
|
37482
37564
|
onBlur: props.onBlur,
|
|
37483
|
-
|
|
37565
|
+
schemas,
|
|
37484
37566
|
readOnly
|
|
37485
37567
|
}
|
|
37486
37568
|
) }) }),
|
|
@@ -37719,43 +37801,35 @@ const useYamlForm = ({
|
|
|
37719
37801
|
}),
|
|
37720
37802
|
[formLoading, form]
|
|
37721
37803
|
);
|
|
37722
|
-
const
|
|
37723
|
-
|
|
37724
|
-
|
|
37725
|
-
|
|
37726
|
-
|
|
37727
|
-
|
|
37728
|
-
|
|
37729
|
-
|
|
37730
|
-
|
|
37731
|
-
|
|
37732
|
-
|
|
37733
|
-
|
|
37734
|
-
|
|
37735
|
-
|
|
37736
|
-
|
|
37737
|
-
|
|
37738
|
-
onEditorCreate(editorInstance) {
|
|
37739
|
-
var _a3, _b;
|
|
37740
|
-
const editorValue = yaml.dump(initialValues);
|
|
37741
|
-
(_a3 = editor.current) == null ? void 0 : _a3.setEditorValue(editorValue);
|
|
37742
|
-
(_b = editor.current) == null ? void 0 : _b.setValue(editorValue);
|
|
37743
|
-
if (action === "edit") {
|
|
37744
|
-
fold2(editorInstance);
|
|
37745
|
-
}
|
|
37804
|
+
const schemas = useMemo(() => {
|
|
37805
|
+
return schema ? [schema] : [];
|
|
37806
|
+
}, [schema]);
|
|
37807
|
+
const editorProps = useMemo(() => {
|
|
37808
|
+
var _a2;
|
|
37809
|
+
return {
|
|
37810
|
+
ref: editor,
|
|
37811
|
+
defaultValue: schema && (editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations) ? generateYamlBySchema(initialValues || {}, schema) : yaml.dump(initialValues),
|
|
37812
|
+
schemas,
|
|
37813
|
+
id: ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
|
|
37814
|
+
errorMsgs: editorErrors,
|
|
37815
|
+
onValidate(yamlValid, schemaValid) {
|
|
37816
|
+
setIsYamlValid(yamlValid);
|
|
37817
|
+
setIsSchemaValid(schemaValid);
|
|
37818
|
+
if (yamlValid && schemaValid) {
|
|
37819
|
+
setEditorErrors([]);
|
|
37746
37820
|
}
|
|
37747
|
-
}
|
|
37748
|
-
|
|
37749
|
-
|
|
37750
|
-
|
|
37751
|
-
|
|
37752
|
-
|
|
37753
|
-
|
|
37754
|
-
|
|
37755
|
-
|
|
37756
|
-
|
|
37757
|
-
|
|
37758
|
-
);
|
|
37821
|
+
},
|
|
37822
|
+
onEditorCreate(editorInstance) {
|
|
37823
|
+
var _a3, _b;
|
|
37824
|
+
const editorValue = yaml.dump(initialValues);
|
|
37825
|
+
(_a3 = editor.current) == null ? void 0 : _a3.setEditorValue(editorValue);
|
|
37826
|
+
(_b = editor.current) == null ? void 0 : _b.setValue(editorValue);
|
|
37827
|
+
if (action === "edit") {
|
|
37828
|
+
fold2(editorInstance);
|
|
37829
|
+
}
|
|
37830
|
+
}
|
|
37831
|
+
};
|
|
37832
|
+
}, [schema, editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations, initialValues, schemas, (_a = useResourceResult.resource) == null ? void 0 : _a.name, editorErrors, action, fold2]);
|
|
37759
37833
|
return {
|
|
37760
37834
|
form: formSF.form,
|
|
37761
37835
|
formProps: {
|
|
@@ -37794,7 +37868,7 @@ const useYamlForm = ({
|
|
|
37794
37868
|
editorProps,
|
|
37795
37869
|
enableEditor,
|
|
37796
37870
|
errorResponseBody,
|
|
37797
|
-
schema,
|
|
37871
|
+
schemas: schema ? [schema] : [],
|
|
37798
37872
|
isLoadingSchema,
|
|
37799
37873
|
loadSchemaError,
|
|
37800
37874
|
fetchSchema,
|
|
@@ -37886,9 +37960,9 @@ function YamlForm(props) {
|
|
|
37886
37960
|
const formWrapperProps = isShowLayout ? {
|
|
37887
37961
|
saveButtonProps
|
|
37888
37962
|
} : {};
|
|
37889
|
-
const
|
|
37890
|
-
return editorProps.
|
|
37891
|
-
}, [editorProps.
|
|
37963
|
+
const schemas = useMemo(() => {
|
|
37964
|
+
return editorProps.schemas || [];
|
|
37965
|
+
}, [editorProps.schemas]);
|
|
37892
37966
|
const responseErrors = useMemo(() => errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [], [errorResponseBody, i18n2]);
|
|
37893
37967
|
const onFinish = useCallback(async (store) => {
|
|
37894
37968
|
var _a, _b;
|
|
@@ -37923,7 +37997,7 @@ function YamlForm(props) {
|
|
|
37923
37997
|
if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
|
|
37924
37998
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
|
|
37925
37999
|
}
|
|
37926
|
-
return editorProps.
|
|
38000
|
+
return editorProps.schemas || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
37927
38001
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
37928
38002
|
style: {
|
|
37929
38003
|
flex: 1
|
|
@@ -37931,7 +38005,7 @@ function YamlForm(props) {
|
|
|
37931
38005
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditorComponent, {
|
|
37932
38006
|
...editorProps,
|
|
37933
38007
|
className: EditorStyle,
|
|
37934
|
-
|
|
38008
|
+
schemas,
|
|
37935
38009
|
collapsable: false
|
|
37936
38010
|
})
|
|
37937
38011
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
@@ -39310,229 +39384,230 @@ const relationPlugin = new RelationPlugin();
|
|
|
39310
39384
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
39311
39385
|
const dovetailRefineI18n = i18n;
|
|
39312
39386
|
export {
|
|
39313
|
-
|
|
39387
|
+
rfc1035LabelRules as $,
|
|
39314
39388
|
AgeColumnRenderer as A,
|
|
39315
|
-
|
|
39389
|
+
PVCStorageColumnRenderer as B,
|
|
39316
39390
|
CommonSorter as C,
|
|
39317
39391
|
DurationColumnRenderer as D,
|
|
39318
|
-
|
|
39319
|
-
|
|
39320
|
-
|
|
39321
|
-
|
|
39392
|
+
PVStorageClassColumnRenderer as E,
|
|
39393
|
+
PVPhaseColumnRenderer as F,
|
|
39394
|
+
PVVolumeModeColumnRenderer as G,
|
|
39395
|
+
PVAccessModeColumnRenderer as H,
|
|
39322
39396
|
IngressRulesColumnRenderer as I,
|
|
39323
|
-
|
|
39324
|
-
|
|
39325
|
-
|
|
39397
|
+
ColumnKeys as J,
|
|
39398
|
+
addDefaultRenderToColumns as K,
|
|
39399
|
+
useEagleTable as L,
|
|
39326
39400
|
ModalStyle as M,
|
|
39327
39401
|
NameColumnRenderer as N,
|
|
39328
|
-
|
|
39402
|
+
useDownloadYAML as O,
|
|
39329
39403
|
PlainTextNameColumnRenderer as P,
|
|
39330
|
-
|
|
39404
|
+
useEdit as Q,
|
|
39331
39405
|
ReplicasColumnRenderer as R,
|
|
39332
39406
|
StateDisplayColumnRenderer as S,
|
|
39333
|
-
|
|
39334
|
-
|
|
39335
|
-
|
|
39407
|
+
useGlobalStore as T,
|
|
39408
|
+
useOpenForm as U,
|
|
39409
|
+
index as V,
|
|
39336
39410
|
WorkloadImageColumnRenderer as W,
|
|
39337
|
-
|
|
39338
|
-
|
|
39339
|
-
|
|
39340
|
-
|
|
39341
|
-
|
|
39342
|
-
|
|
39343
|
-
|
|
39344
|
-
|
|
39345
|
-
|
|
39346
|
-
|
|
39347
|
-
|
|
39348
|
-
|
|
39349
|
-
|
|
39350
|
-
|
|
39351
|
-
|
|
39352
|
-
|
|
39353
|
-
|
|
39354
|
-
|
|
39355
|
-
|
|
39356
|
-
|
|
39357
|
-
|
|
39358
|
-
|
|
39359
|
-
|
|
39360
|
-
|
|
39361
|
-
|
|
39362
|
-
|
|
39363
|
-
|
|
39364
|
-
|
|
39365
|
-
|
|
39366
|
-
|
|
39367
|
-
|
|
39368
|
-
|
|
39369
|
-
|
|
39370
|
-
|
|
39371
|
-
|
|
39372
|
-
|
|
39373
|
-
|
|
39374
|
-
|
|
39375
|
-
|
|
39376
|
-
|
|
39377
|
-
|
|
39378
|
-
|
|
39379
|
-
|
|
39380
|
-
|
|
39381
|
-
|
|
39382
|
-
|
|
39383
|
-
|
|
39384
|
-
|
|
39385
|
-
|
|
39386
|
-
|
|
39387
|
-
|
|
39388
|
-
|
|
39389
|
-
|
|
39390
|
-
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39394
|
-
|
|
39395
|
-
|
|
39396
|
-
|
|
39397
|
-
|
|
39398
|
-
|
|
39399
|
-
|
|
39400
|
-
|
|
39401
|
-
|
|
39402
|
-
|
|
39403
|
-
|
|
39404
|
-
|
|
39405
|
-
|
|
39406
|
-
|
|
39407
|
-
|
|
39408
|
-
|
|
39409
|
-
|
|
39410
|
-
|
|
39411
|
-
|
|
39412
|
-
|
|
39413
|
-
|
|
39414
|
-
|
|
39415
|
-
|
|
39416
|
-
|
|
39417
|
-
|
|
39418
|
-
|
|
39419
|
-
|
|
39420
|
-
|
|
39421
|
-
|
|
39422
|
-
|
|
39423
|
-
|
|
39424
|
-
|
|
39425
|
-
|
|
39426
|
-
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39437
|
-
|
|
39438
|
-
|
|
39439
|
-
|
|
39440
|
-
|
|
39441
|
-
|
|
39442
|
-
|
|
39443
|
-
|
|
39444
|
-
|
|
39445
|
-
|
|
39446
|
-
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39450
|
-
|
|
39451
|
-
|
|
39452
|
-
|
|
39453
|
-
|
|
39454
|
-
|
|
39455
|
-
|
|
39456
|
-
|
|
39457
|
-
|
|
39458
|
-
|
|
39459
|
-
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
|
|
39467
|
-
|
|
39468
|
-
|
|
39469
|
-
|
|
39470
|
-
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
39479
|
-
|
|
39480
|
-
|
|
39481
|
-
|
|
39482
|
-
|
|
39483
|
-
|
|
39484
|
-
|
|
39485
|
-
|
|
39486
|
-
|
|
39487
|
-
|
|
39488
|
-
|
|
39489
|
-
|
|
39490
|
-
|
|
39491
|
-
|
|
39492
|
-
|
|
39493
|
-
|
|
39494
|
-
|
|
39495
|
-
|
|
39496
|
-
|
|
39497
|
-
|
|
39498
|
-
|
|
39499
|
-
|
|
39500
|
-
|
|
39501
|
-
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39506
|
-
|
|
39507
|
-
|
|
39508
|
-
|
|
39509
|
-
|
|
39510
|
-
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
39514
|
-
|
|
39411
|
+
Breadcrumb as X,
|
|
39412
|
+
NameInputWidget as Y,
|
|
39413
|
+
dnsSubDomainRules as Z,
|
|
39414
|
+
rfc1123LabelRules as _,
|
|
39415
|
+
useApiGroupSchema as a,
|
|
39416
|
+
EventsTab as a$,
|
|
39417
|
+
NamespaceSelectWidget as a0,
|
|
39418
|
+
namespaceRules as a1,
|
|
39419
|
+
KeyValueListWidget as a2,
|
|
39420
|
+
MetadataForm as a3,
|
|
39421
|
+
PageShow as a4,
|
|
39422
|
+
Time as a5,
|
|
39423
|
+
ConditionsTable as a6,
|
|
39424
|
+
PodContainersTable as a7,
|
|
39425
|
+
WorkloadDropdown as a8,
|
|
39426
|
+
ReplicasDropdown as a9,
|
|
39427
|
+
JobsField as aA,
|
|
39428
|
+
DataField as aB,
|
|
39429
|
+
SecretDataField as aC,
|
|
39430
|
+
StartTimeField as aD,
|
|
39431
|
+
ServiceTypeField as aE,
|
|
39432
|
+
ClusterIpField as aF,
|
|
39433
|
+
SessionAffinityField as aG,
|
|
39434
|
+
ServicePodsField as aH,
|
|
39435
|
+
IngressRulesTableTabField as aI,
|
|
39436
|
+
EventsTableTabField as aJ,
|
|
39437
|
+
NamespaceField as aK,
|
|
39438
|
+
AgeField as aL,
|
|
39439
|
+
LabelsField as aM,
|
|
39440
|
+
AnnotationsField as aN,
|
|
39441
|
+
ServiceInnerClusterAccessField as aO,
|
|
39442
|
+
ServiceOutClusterAccessField as aP,
|
|
39443
|
+
PodSelectorField as aQ,
|
|
39444
|
+
PortsTableField as aR,
|
|
39445
|
+
DurationField as aS,
|
|
39446
|
+
StorageClassProvisionerField as aT,
|
|
39447
|
+
StorageClassPvField as aU,
|
|
39448
|
+
PVCapacityField as aV,
|
|
39449
|
+
PVCStorageField as aW,
|
|
39450
|
+
PVStorageClassField as aX,
|
|
39451
|
+
PVPhaseField as aY,
|
|
39452
|
+
PVVolumeModeField as aZ,
|
|
39453
|
+
PVAccessModeField as a_,
|
|
39454
|
+
PodDropdown as aa,
|
|
39455
|
+
CreateButton as ab,
|
|
39456
|
+
ImageNames as ac,
|
|
39457
|
+
ResourceList as ad,
|
|
39458
|
+
ResourceShow as ae,
|
|
39459
|
+
ResourceForm as af,
|
|
39460
|
+
ResourceCRUD as ag,
|
|
39461
|
+
WorkloadPodsTable as ah,
|
|
39462
|
+
CronJobDropdown as ai,
|
|
39463
|
+
K8sDropdown as aj,
|
|
39464
|
+
ResourceUsageBar as ak,
|
|
39465
|
+
WorkloadReplicasForm as al,
|
|
39466
|
+
WorkloadReplicas as am,
|
|
39467
|
+
CronjobJobsTable as an,
|
|
39468
|
+
KeyValue as ao,
|
|
39469
|
+
KeyValueAnnotation as ap,
|
|
39470
|
+
KeyValueSecret as aq,
|
|
39471
|
+
Separator as ar,
|
|
39472
|
+
YamlEditorComponent as as,
|
|
39473
|
+
DeleteButton as at,
|
|
39474
|
+
Layout as au,
|
|
39475
|
+
AreaType as av,
|
|
39476
|
+
ImageField as aw,
|
|
39477
|
+
ReplicaField as ax,
|
|
39478
|
+
ConditionsField as ay,
|
|
39479
|
+
PodsField as az,
|
|
39480
|
+
useSchema as b,
|
|
39481
|
+
NETWORK_POLICY_INIT_VALUE as b$,
|
|
39482
|
+
PodLogTab as b0,
|
|
39483
|
+
BasicGroup as b1,
|
|
39484
|
+
PodsGroup as b2,
|
|
39485
|
+
PodContainersGroup as b3,
|
|
39486
|
+
ServicePodsGroup as b4,
|
|
39487
|
+
ConditionsGroup as b5,
|
|
39488
|
+
SecretDataGroup as b6,
|
|
39489
|
+
JobsGroup as b7,
|
|
39490
|
+
IngressRulesGroup as b8,
|
|
39491
|
+
PodSelectorGroup as b9,
|
|
39492
|
+
ServiceInClusterAccessComponent as bA,
|
|
39493
|
+
ServiceOutClusterAccessComponent as bB,
|
|
39494
|
+
Tags as bC,
|
|
39495
|
+
TextTags as bD,
|
|
39496
|
+
PodLog as bE,
|
|
39497
|
+
NetworkPolicyRulesViewer as bF,
|
|
39498
|
+
PVPhaseDisplay as bG,
|
|
39499
|
+
PVVolumeModeDisplay as bH,
|
|
39500
|
+
Tabs as bI,
|
|
39501
|
+
ResourceSelect as bJ,
|
|
39502
|
+
SocketStatus as bK,
|
|
39503
|
+
Shell as bL,
|
|
39504
|
+
PodShellModal as bM,
|
|
39505
|
+
PodShell as bN,
|
|
39506
|
+
BASE_INIT_VALUE as bO,
|
|
39507
|
+
DEPLOYMENT_INIT_VALUE as bP,
|
|
39508
|
+
CRONJOB_INIT_VALUE as bQ,
|
|
39509
|
+
DAEMONSET_INIT_VALUE as bR,
|
|
39510
|
+
JOB_INIT_VALUE as bS,
|
|
39511
|
+
STATEFULSET_INIT_VALUE as bT,
|
|
39512
|
+
POD_INIT_VALUE as bU,
|
|
39513
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bV,
|
|
39514
|
+
SERVICE_NODE_PORT_INIT_VALUE as bW,
|
|
39515
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bX,
|
|
39516
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bY,
|
|
39517
|
+
SERVICE_HEADLESS_INIT_VALUE as bZ,
|
|
39518
|
+
INGRESS_INIT_VALUE as b_,
|
|
39519
|
+
PortsGroup as ba,
|
|
39520
|
+
DataGroup as bb,
|
|
39521
|
+
NetworkPolicyIngressRulesGroup as bc,
|
|
39522
|
+
NetworkPolicyEgressRulesGroup as bd,
|
|
39523
|
+
StorageClassPvGroup as be,
|
|
39524
|
+
ShowGroupComponent as bf,
|
|
39525
|
+
ShowContent as bg,
|
|
39526
|
+
DeleteManyButton as bh,
|
|
39527
|
+
ListPage as bi,
|
|
39528
|
+
StateTagStyle as bj,
|
|
39529
|
+
StateTag as bk,
|
|
39530
|
+
DrawerShow as bl,
|
|
39531
|
+
Menu as bm,
|
|
39532
|
+
EditButton as bn,
|
|
39533
|
+
ReferenceLink as bo,
|
|
39534
|
+
ResourceLink as bp,
|
|
39535
|
+
NS_STORE_KEY as bq,
|
|
39536
|
+
ALL_NS as br,
|
|
39537
|
+
useNamespacesFilter as bs,
|
|
39538
|
+
NamespacesFilter as bt,
|
|
39539
|
+
FormModal as bu,
|
|
39540
|
+
RefineFormContent as bv,
|
|
39541
|
+
RefineFormPage as bw,
|
|
39542
|
+
SchemaStrategy as bx,
|
|
39543
|
+
YamlForm as by,
|
|
39544
|
+
useRefineForm as bz,
|
|
39545
|
+
useDeleteModal as c,
|
|
39546
|
+
CONFIG_MAP_INIT_VALUE as c0,
|
|
39547
|
+
SERVER_INSTANCE_INIT_VALUE as c1,
|
|
39548
|
+
TIMESTAMP_LABEL as c2,
|
|
39549
|
+
SECRET_OPAQUE_INIT_VALUE as c3,
|
|
39550
|
+
SECRET_IMAGE_REPO_INIT_VALUE as c4,
|
|
39551
|
+
SECRET_BASIC_AUTH_INIT_VALUE as c5,
|
|
39552
|
+
SECRET_SSH_AUTH_INIT_VALUE as c6,
|
|
39553
|
+
SECRET_TLS_INIT_VALUE as c7,
|
|
39554
|
+
SECRET_CUSTOM_INIT_VALUE as c8,
|
|
39555
|
+
NODE_INIT_VALUE as c9,
|
|
39556
|
+
StorageClassModel as cA,
|
|
39557
|
+
PersistentVolumeModel as cB,
|
|
39558
|
+
PersistentVolumeClaimModel as cC,
|
|
39559
|
+
ProviderPlugins as cD,
|
|
39560
|
+
ModelPlugin as cE,
|
|
39561
|
+
modelPlugin as cF,
|
|
39562
|
+
RelationPlugin as cG,
|
|
39563
|
+
relationPlugin as cH,
|
|
39564
|
+
STORAGE_CLASS_INIT_VALUE as ca,
|
|
39565
|
+
WorkloadState as cb,
|
|
39566
|
+
AccessControlAuth as cc,
|
|
39567
|
+
Dovetail as cd,
|
|
39568
|
+
RESOURCE_GROUP as ce,
|
|
39569
|
+
FormType as cf,
|
|
39570
|
+
ComponentContext as cg,
|
|
39571
|
+
GlobalStoreContext as ch,
|
|
39572
|
+
ConfigsContext as ci,
|
|
39573
|
+
IngressModel as cj,
|
|
39574
|
+
NetworkPolicyModel as ck,
|
|
39575
|
+
JobModel as cl,
|
|
39576
|
+
WorkloadModel as cm,
|
|
39577
|
+
WorkloadBaseModel as cn,
|
|
39578
|
+
PodModel as co,
|
|
39579
|
+
PodMetricsModel as cp,
|
|
39580
|
+
ResourceModel as cq,
|
|
39581
|
+
CronJobModel as cr,
|
|
39582
|
+
EventModel as cs,
|
|
39583
|
+
DeploymentModel as ct,
|
|
39584
|
+
DaemonSetModel as cu,
|
|
39585
|
+
StatefulSetModel as cv,
|
|
39586
|
+
ServiceTypeEnum as cw,
|
|
39587
|
+
ServiceModel as cx,
|
|
39588
|
+
NodeRole as cy,
|
|
39589
|
+
NodeModel as cz,
|
|
39515
39590
|
dovetailRefineI18n as d,
|
|
39516
|
-
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
|
|
39520
|
-
|
|
39591
|
+
NameSpaceColumnRenderer as e,
|
|
39592
|
+
WorkloadRestartsColumnRenderer as f,
|
|
39593
|
+
NodeNameColumnRenderer as g,
|
|
39594
|
+
RestartCountColumnRenderer as h,
|
|
39595
|
+
CompletionsCountColumnRenderer as i,
|
|
39521
39596
|
jsxRuntimeExports as j,
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
|
|
39527
|
-
|
|
39528
|
-
|
|
39597
|
+
ServiceTypeColumnRenderer as k,
|
|
39598
|
+
ServiceInClusterAccessTitle as l,
|
|
39599
|
+
ServiceInClusterAccessColumnRenderer as m,
|
|
39600
|
+
ServiceOutClusterAccessTitle as n,
|
|
39601
|
+
ServiceOutClusterAccessColumnRenderer as o,
|
|
39602
|
+
PodWorkloadColumnRenderer as p,
|
|
39603
|
+
IngressDefaultBackendColumnRenderer as q,
|
|
39529
39604
|
routerProvider as r,
|
|
39530
|
-
|
|
39531
|
-
|
|
39605
|
+
IngressClassColumnRenderer as s,
|
|
39606
|
+
IngressTlsColumnRenderer as t,
|
|
39532
39607
|
useNamespaceRefineFilter as u,
|
|
39533
|
-
|
|
39534
|
-
|
|
39535
|
-
|
|
39536
|
-
|
|
39537
|
-
|
|
39608
|
+
PodContainersNumColumnRenderer as v,
|
|
39609
|
+
DataKeysColumnRenderer as w,
|
|
39610
|
+
PortMappingColumnRenderer as x,
|
|
39611
|
+
ProvisionerColumnRenderer as y,
|
|
39612
|
+
PVCapacityColumnRenderer as z
|
|
39538
39613
|
};
|