@dovetail-v2/refine 0.0.29 → 0.0.31
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-37f2db86.js → MonacoYamlDiffEditor-b0ea1b12.js} +1 -1
- package/dist/{index-3716ce7b.js → index-01ce45aa.js} +3992 -3844
- package/dist/refine.js +108 -100
- package/dist/refine.umd.cjs +3895 -3747
- package/lib/src/components/ServiceComponents/index.d.ts +8 -0
- package/lib/src/components/ShowContent/fields.d.ts +4 -4
- package/lib/src/components/TextTags/index.d.ts +6 -0
- package/lib/src/components/YamlForm/index.d.ts +2 -0
- package/lib/src/components/index.d.ts +2 -0
- package/lib/src/hooks/useEagleTable/columns.d.ts +5 -1
- package/lib/src/i18n.d.ts +7 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/locales/index.d.ts +2 -115
- package/lib/src/locales/zh-CN/index.d.ts +7 -0
- package/lib/src/models/index.d.ts +1 -0
- package/lib/src/models/service-model.d.ts +10 -1
- package/lib/src/pages/services/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ServiceModel } from '../../models';
|
|
3
|
+
type Props = {
|
|
4
|
+
service: ServiceModel;
|
|
5
|
+
};
|
|
6
|
+
export declare const ServiceInClusterAccessComponent: React.FC<Props>;
|
|
7
|
+
export declare const ServiceOutClusterAccessComponent: React.FC<Props>;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i18n as I18nType } from 'i18next';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel } from '../../models';
|
|
3
|
+
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel } from '../../models';
|
|
4
4
|
export type ShowField<Model extends ResourceModel> = {
|
|
5
5
|
key: string;
|
|
6
6
|
title: string;
|
|
@@ -32,9 +32,9 @@ export declare const JobsField: <Model extends JobModel | CronJobModel>() => Sho
|
|
|
32
32
|
export declare const DataField: (i18n: I18nType) => ShowField<ResourceModel>;
|
|
33
33
|
export declare const SecretDataField: (i18n: I18nType) => ShowField<ResourceModel>;
|
|
34
34
|
export declare const StartTimeField: (i18n: I18nType) => ShowField<JobModel>;
|
|
35
|
-
export declare const ServiceTypeField: (i18n: I18nType) => ShowField<
|
|
36
|
-
export declare const ClusterIpField: (i18n: I18nType) => ShowField<
|
|
37
|
-
export declare const SessionAffinityField: (i18n: I18nType) => ShowField<
|
|
35
|
+
export declare const ServiceTypeField: (i18n: I18nType) => ShowField<ServiceModel>;
|
|
36
|
+
export declare const ClusterIpField: (i18n: I18nType) => ShowField<ServiceModel>;
|
|
37
|
+
export declare const SessionAffinityField: (i18n: I18nType) => ShowField<ServiceModel>;
|
|
38
38
|
export declare const ServicePodsField: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>() => ShowTabField<Model>;
|
|
39
39
|
export declare const IngressRulesTableTabField: <Model extends IngressModel>(i18n: I18nType) => ShowTabField<Model>;
|
|
40
40
|
export declare const EventsTableTabField: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => ShowTabField<Model>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import useEagleForm from 'src/hooks/useEagleForm';
|
|
2
3
|
export declare enum SchemaStrategy {
|
|
3
4
|
Required = "Required",
|
|
4
5
|
Optional = "Optional",
|
|
@@ -9,6 +10,7 @@ export interface YamlFormProps {
|
|
|
9
10
|
initialValues?: Record<string, unknown>;
|
|
10
11
|
schemaStrategy?: SchemaStrategy;
|
|
11
12
|
isShowLayout?: boolean;
|
|
13
|
+
useFormProps?: Parameters<typeof useEagleForm>[0];
|
|
12
14
|
onSaveButtonPropsChange?: (saveButtonProps: {
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
onClick: () => void;
|
|
@@ -32,7 +32,9 @@ export * from './EditButton';
|
|
|
32
32
|
export * from './ReferenceLink';
|
|
33
33
|
export * from './ResourceLink';
|
|
34
34
|
export * from './NamespacesFilter';
|
|
35
|
+
export * from './ServiceComponents';
|
|
35
36
|
export * from './Tags';
|
|
37
|
+
export * from './TextTags';
|
|
36
38
|
export * from './PodLog';
|
|
37
39
|
export * from './FormModal';
|
|
38
40
|
export * from './NetworkPolicyRulesTable';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i18n as I18nType } from 'i18next';
|
|
2
2
|
import { Column } from '../../components/Table';
|
|
3
|
-
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel } from '../../models';
|
|
3
|
+
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel } from '../../models';
|
|
4
4
|
export declare const CommonSorter: (dataIndex: string[]) => (a: unknown, b: unknown) => 0 | 1 | -1;
|
|
5
5
|
export declare const NameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType, resource?: string) => Column<Model>;
|
|
6
6
|
export declare const NameSpaceColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
@@ -14,6 +14,10 @@ export declare const RestartCountColumnRenderer: <Model extends PodModel>(i18n:
|
|
|
14
14
|
export declare const CompletionsCountColumnRenderer: <Model extends JobModel | CronJobModel>(i18n: I18nType) => Column<Model>;
|
|
15
15
|
export declare const DurationColumnRenderer: <Model extends JobModel | CronJobModel>(i18n: I18nType) => Column<Model>;
|
|
16
16
|
export declare const ServiceTypeColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
17
|
+
export declare const ServiceInClusterAccessColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
|
|
18
|
+
export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
|
|
17
19
|
export declare const PodWorkloadColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
|
|
18
20
|
export declare const IngressRulesColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
19
21
|
export declare const IngressDefaultBackendColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
22
|
+
export declare const IngressClassColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
23
|
+
export declare const IngressTlsColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -110,9 +110,15 @@ export declare const resources: {
|
|
|
110
110
|
rule: string;
|
|
111
111
|
default_backend: string;
|
|
112
112
|
ingress_rule_type: string;
|
|
113
|
+
ingress_class: string;
|
|
113
114
|
port: string;
|
|
115
|
+
cert: string;
|
|
116
|
+
dns_record: string;
|
|
117
|
+
port_mapping: string;
|
|
118
|
+
out_cluster_access: string;
|
|
119
|
+
in_cluster_access: string;
|
|
120
|
+
any_node_ip: string;
|
|
114
121
|
};
|
|
115
122
|
};
|
|
116
123
|
};
|
|
117
|
-
export declare const useD2Translation: () => import("react-i18next").UseTranslationResponse<"translation", undefined>;
|
|
118
124
|
export default i18n;
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,115 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
dovetail: {
|
|
4
|
-
copy: string;
|
|
5
|
-
reset_arguments: string;
|
|
6
|
-
view_changes: string;
|
|
7
|
-
back_to_edit: string;
|
|
8
|
-
configure_file: string;
|
|
9
|
-
yaml_format_wrong: string;
|
|
10
|
-
yaml_value_wrong: string;
|
|
11
|
-
edit_yaml: string;
|
|
12
|
-
copied: string;
|
|
13
|
-
already_reset: string;
|
|
14
|
-
fetch_schema_fail: string;
|
|
15
|
-
obtain_data_error: string;
|
|
16
|
-
retry: string;
|
|
17
|
-
create_resource: string;
|
|
18
|
-
edit_resource: string;
|
|
19
|
-
status: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
'zh-CN': {
|
|
23
|
-
dovetail: {
|
|
24
|
-
copy: string;
|
|
25
|
-
reset_arguments: string;
|
|
26
|
-
view_changes: string;
|
|
27
|
-
back_to_edit: string;
|
|
28
|
-
configure_file: string;
|
|
29
|
-
yaml_format_wrong: string;
|
|
30
|
-
yaml_value_wrong: string;
|
|
31
|
-
edit_yaml: string;
|
|
32
|
-
copied: string;
|
|
33
|
-
already_reset: string;
|
|
34
|
-
cancel: string;
|
|
35
|
-
delete: string;
|
|
36
|
-
create: string;
|
|
37
|
-
confirm_delete_text: string;
|
|
38
|
-
edit: string;
|
|
39
|
-
namespace: string;
|
|
40
|
-
name: string;
|
|
41
|
-
state: string;
|
|
42
|
-
status: string;
|
|
43
|
-
phase: string;
|
|
44
|
-
image: string;
|
|
45
|
-
replicas: string;
|
|
46
|
-
created_time: string;
|
|
47
|
-
label: string;
|
|
48
|
-
annotation: string;
|
|
49
|
-
type: string;
|
|
50
|
-
event: string;
|
|
51
|
-
reason: string;
|
|
52
|
-
object: string;
|
|
53
|
-
note: string;
|
|
54
|
-
condition: string;
|
|
55
|
-
download_yaml: string;
|
|
56
|
-
detail: string;
|
|
57
|
-
node_name: string;
|
|
58
|
-
restarts: string;
|
|
59
|
-
updated_time: string;
|
|
60
|
-
message: string;
|
|
61
|
-
save: string;
|
|
62
|
-
more: string;
|
|
63
|
-
workload: string;
|
|
64
|
-
all_namespaces: string;
|
|
65
|
-
empty: string;
|
|
66
|
-
schedule: string;
|
|
67
|
-
lastScheduleTime: string;
|
|
68
|
-
duration: string;
|
|
69
|
-
completions: string;
|
|
70
|
-
started: string;
|
|
71
|
-
init_container: string;
|
|
72
|
-
container: string;
|
|
73
|
-
redeploy: string;
|
|
74
|
-
data: string;
|
|
75
|
-
suspend: string;
|
|
76
|
-
resume: string;
|
|
77
|
-
cluster: string;
|
|
78
|
-
storage: string;
|
|
79
|
-
network: string;
|
|
80
|
-
clusterIp: string;
|
|
81
|
-
sessionAffinity: string;
|
|
82
|
-
log: string;
|
|
83
|
-
select_container: string;
|
|
84
|
-
wrap: string;
|
|
85
|
-
resume_log: string;
|
|
86
|
-
log_new_lines: string;
|
|
87
|
-
fetch_schema_fail: string;
|
|
88
|
-
obtain_data_error: string;
|
|
89
|
-
retry: string;
|
|
90
|
-
ready: string;
|
|
91
|
-
updating: string;
|
|
92
|
-
completed: string;
|
|
93
|
-
failed: string;
|
|
94
|
-
suspended: string;
|
|
95
|
-
running: string;
|
|
96
|
-
terminating: string;
|
|
97
|
-
succeeded: string;
|
|
98
|
-
unknown: string;
|
|
99
|
-
pending: string;
|
|
100
|
-
waiting: string;
|
|
101
|
-
create_resource: string;
|
|
102
|
-
edit_resource: string;
|
|
103
|
-
sec: string;
|
|
104
|
-
min: string;
|
|
105
|
-
hr: string;
|
|
106
|
-
day: string;
|
|
107
|
-
expand: string;
|
|
108
|
-
fold: string;
|
|
109
|
-
rule: string;
|
|
110
|
-
default_backend: string;
|
|
111
|
-
ingress_rule_type: string;
|
|
112
|
-
port: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
1
|
+
import './en-US';
|
|
2
|
+
import './zh-CN';
|
|
@@ -88,7 +88,14 @@ declare const _default: {
|
|
|
88
88
|
rule: string;
|
|
89
89
|
default_backend: string;
|
|
90
90
|
ingress_rule_type: string;
|
|
91
|
+
ingress_class: string;
|
|
91
92
|
port: string;
|
|
93
|
+
cert: string;
|
|
94
|
+
dns_record: string;
|
|
95
|
+
port_mapping: string;
|
|
96
|
+
out_cluster_access: string;
|
|
97
|
+
in_cluster_access: string;
|
|
98
|
+
any_node_ip: string;
|
|
92
99
|
};
|
|
93
100
|
};
|
|
94
101
|
export default _default;
|
|
@@ -2,9 +2,18 @@ import { GlobalStore, Unstructured } from 'k8s-api-provider';
|
|
|
2
2
|
import { Service } from 'kubernetes-types/core/v1';
|
|
3
3
|
import { ResourceModel } from './resource-model';
|
|
4
4
|
export type ServiceType = Required<Unstructured & Service>;
|
|
5
|
+
export declare enum ServiceTypeEnum {
|
|
6
|
+
ClusterIP = "ClusterIP",
|
|
7
|
+
NodePort = "NodePort",
|
|
8
|
+
LoadBalancer = "LoadBalancer",
|
|
9
|
+
ExternalName = "ExternalName",
|
|
10
|
+
Headless = "Headless"
|
|
11
|
+
}
|
|
5
12
|
export declare class ServiceModel extends ResourceModel<ServiceType> {
|
|
6
13
|
_rawYaml: ServiceType;
|
|
7
14
|
_globalStore: GlobalStore;
|
|
8
15
|
constructor(_rawYaml: ServiceType, _globalStore: GlobalStore);
|
|
9
|
-
|
|
16
|
+
get displayType(): string | undefined;
|
|
17
|
+
get dnsRecord(): string;
|
|
18
|
+
get displayPortMapping(): string[] | undefined;
|
|
10
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i18n } from 'i18next';
|
|
2
|
-
import {
|
|
2
|
+
import { ServiceModel } from '../../models/service-model';
|
|
3
3
|
import { ResourceConfig } from '../../types';
|
|
4
|
-
export declare const ServicesConfig: (i18n: i18n) => ResourceConfig<
|
|
4
|
+
export declare const ServicesConfig: (i18n: i18n) => ResourceConfig<ServiceModel>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"scripts": {
|
|
80
80
|
"dev": "refine dev",
|
|
81
81
|
"dev:test": "VITE_IS_TEST=true refine dev",
|
|
82
|
-
"build": "tsc && vite build",
|
|
82
|
+
"build": "tsc --emitDeclarationOnly && vite build",
|
|
83
83
|
"preview": "refine start",
|
|
84
84
|
"refine": "refine",
|
|
85
85
|
"unit-test": "jest",
|