@dovetail-v2/refine 0.3.12-alpha.2 → 0.3.13-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/components/InternalBaseTable/index.d.ts +1 -0
- package/dist/components/KeyValue/KeyValue.d.ts +2 -0
- package/dist/components/ResourceSelect/index.d.ts +1 -0
- package/dist/components/ShowContent/fields.d.ts +1 -1
- package/dist/components/ShowContent/groups.d.ts +1 -4
- package/dist/components/ShowContent/tabs.d.ts +13 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useRefineFilters.d.ts +9 -0
- package/dist/i18n.d.ts +5 -0
- package/dist/locales/zh-CN/index.d.ts +5 -0
- package/dist/models/ingress-model.d.ts +1 -1
- package/dist/refine.cjs +536 -283
- package/dist/refine.js +537 -284
- package/dist/style.css +72 -8
- package/dist/types/resource.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/match-selector.d.ts +1 -1
- package/package.json +1 -1
- package/dist/utils/selector.d.ts +0 -3
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ErrorContentType } from 'src/components/ErrorContent';
|
|
2
3
|
export interface KeyValueProps {
|
|
3
4
|
data: Record<string, string>;
|
|
4
5
|
empty?: string;
|
|
5
6
|
hideSecret?: boolean;
|
|
7
|
+
errorContent?: ErrorContentType;
|
|
6
8
|
}
|
|
7
9
|
export declare const KeyValue: React.FC<KeyValueProps>;
|
|
@@ -11,7 +11,7 @@ export type ShowField<Model extends ResourceModel> = {
|
|
|
11
11
|
path: string[];
|
|
12
12
|
labelWidth?: string;
|
|
13
13
|
col?: number;
|
|
14
|
-
hidden?: boolean;
|
|
14
|
+
hidden?: boolean | ((record: Model) => boolean);
|
|
15
15
|
render?: (val: unknown, record: Model, field: ShowField<Model>, size: 'small' | 'medium') => React.ReactNode | undefined;
|
|
16
16
|
renderContent?: (val: unknown, record: Model, field: ShowField<Model>, size: 'small' | 'medium') => React.ReactNode | undefined;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18n as I18nType } from 'i18next';
|
|
2
2
|
import { Unstructured } from 'k8s-api-provider';
|
|
3
3
|
import { NetworkPolicy } from 'kubernetes-types/networking/v1';
|
|
4
|
-
import { ResourceModel, WorkloadBaseModel, ServiceModel, JobModel, CronJobModel, PodModel,
|
|
4
|
+
import { ResourceModel, WorkloadBaseModel, ServiceModel, JobModel, CronJobModel, PodModel, StorageClassModel, PersistentVolumeClaimModel } from 'src/models';
|
|
5
5
|
import { ShowField, ShowArea, ShowGroup } from './fields';
|
|
6
6
|
export declare const BasicGroup: <Model extends ResourceModel<Unstructured>>(i18n: I18nType, { upAreas, downAreas, basicFields, }?: {
|
|
7
7
|
upAreas?: ShowArea<Model>[] | undefined;
|
|
@@ -14,12 +14,9 @@ export declare const ServicePodsGroup: <Model extends ServiceModel>() => ShowGro
|
|
|
14
14
|
export declare const PVCPodsGroup: <Model extends PersistentVolumeClaimModel>() => ShowGroup<Model>;
|
|
15
15
|
export declare const ConditionsGroup: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowGroup<Model>;
|
|
16
16
|
export declare const NodeTaintsGroup: (i18n: I18nType) => ShowGroup<ResourceModel<Node & Unstructured>>;
|
|
17
|
-
export declare const SecretDataGroup: <Model extends ResourceModel<Unstructured>>() => ShowGroup<Model>;
|
|
18
17
|
export declare const JobsGroup: <Model extends JobModel | CronJobModel>() => ShowGroup<Model>;
|
|
19
|
-
export declare const IngressRulesGroup: <Model extends IngressModel>(i18n: I18nType) => ShowGroup<Model>;
|
|
20
18
|
export declare const PodSelectorGroup: <Model extends ResourceModel<Required<Unstructured & import("kubernetes-types/core/v1").Service> | (NetworkPolicy & Unstructured)>>(i18n: I18nType) => ShowGroup<Model>;
|
|
21
19
|
export declare const PortsGroup: <Model extends ServiceModel>(i18n: I18nType) => ShowGroup<Model>;
|
|
22
|
-
export declare const DataGroup: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowGroup<Model>;
|
|
23
20
|
export declare const NetworkPolicyIngressRulesGroup: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowGroup<Model>;
|
|
24
21
|
export declare const NetworkPolicyEgressRulesGroup: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowGroup<Model>;
|
|
25
22
|
export declare const StorageClassPvGroup: <Model extends StorageClassModel>(i18n: I18nType) => ShowGroup<Model>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n as I18nType } from 'i18next';
|
|
2
|
-
import { ResourceModel, PodModel } from 'src/models';
|
|
2
|
+
import { ResourceModel, PodModel, ServiceModel, IngressModel } from 'src/models';
|
|
3
3
|
import { ShowTab } from './fields';
|
|
4
4
|
export declare const EventsTab: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>({ i18n, size, }: {
|
|
5
5
|
i18n: I18nType;
|
|
@@ -14,3 +14,15 @@ export declare const LabelAnnotationsTab: <Model extends ResourceModel<import("k
|
|
|
14
14
|
size?: "small" | "medium" | undefined;
|
|
15
15
|
}) => ShowTab<Model>;
|
|
16
16
|
export declare const PodLogTab: <Model extends PodModel>(i18n: I18nType, apiUrl: string) => ShowTab<Model>;
|
|
17
|
+
export declare const PortsTab: <Model extends ServiceModel>({ i18n, }: {
|
|
18
|
+
i18n: I18nType;
|
|
19
|
+
}) => ShowTab<Model>;
|
|
20
|
+
export declare const IngressRulesTab: <Model extends IngressModel>({ i18n, }: {
|
|
21
|
+
i18n: I18nType;
|
|
22
|
+
}) => ShowTab<Model>;
|
|
23
|
+
export declare const DataTab: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>({ i18n, }: {
|
|
24
|
+
i18n: I18nType;
|
|
25
|
+
}) => ShowTab<Model>;
|
|
26
|
+
export declare const SecretDataTab: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>({ i18n, }: {
|
|
27
|
+
i18n: I18nType;
|
|
28
|
+
}) => ShowTab<Model>;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NAME_KEYWORD_PARAM = "name_keyword";
|
|
2
|
+
interface UseRefineFiltersOptions {
|
|
3
|
+
disableNamespaceFilter?: boolean;
|
|
4
|
+
disableNameKeywordFilter?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function useRefineFilters(options?: UseRefineFiltersOptions): {
|
|
7
|
+
permanent: import("@refinedev/core").CrudFilter[];
|
|
8
|
+
};
|
|
9
|
+
export {};
|
package/dist/i18n.d.ts
CHANGED
|
@@ -521,6 +521,11 @@ export declare const resources: {
|
|
|
521
521
|
all: string;
|
|
522
522
|
optional_with_bracket: string;
|
|
523
523
|
label_annotations: string;
|
|
524
|
+
target_service: string;
|
|
525
|
+
target_service_port: string;
|
|
526
|
+
select_workload: string;
|
|
527
|
+
no_search_result: string;
|
|
528
|
+
clear_search_condition: string;
|
|
524
529
|
};
|
|
525
530
|
};
|
|
526
531
|
};
|
|
@@ -265,6 +265,11 @@ declare const _default: {
|
|
|
265
265
|
all: string;
|
|
266
266
|
optional_with_bracket: string;
|
|
267
267
|
label_annotations: string;
|
|
268
|
+
target_service: string;
|
|
269
|
+
target_service_port: string;
|
|
270
|
+
select_workload: string;
|
|
271
|
+
no_search_result: string;
|
|
272
|
+
clear_search_condition: string;
|
|
268
273
|
};
|
|
269
274
|
};
|
|
270
275
|
export default _default;
|
|
@@ -15,6 +15,6 @@ export declare class IngressModel extends ResourceModel<IngressTypes> {
|
|
|
15
15
|
_rawYaml: IngressTypes;
|
|
16
16
|
constructor(_rawYaml: IngressTypes, _globalStore: GlobalStore);
|
|
17
17
|
private getFullPath;
|
|
18
|
-
getFlattenedRules(services
|
|
18
|
+
getFlattenedRules(services?: Service[]): RuleItem[];
|
|
19
19
|
}
|
|
20
20
|
export {};
|