@dovetail-v2/refine 0.1.2 → 0.1.4-pod-exec-0

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.
Files changed (219) hide show
  1. package/dist/{MonacoYamlDiffEditor-f0cf18e8.js → MonacoYamlDiffEditor-706f5a4e.js} +1 -1
  2. package/dist/{index-903eb91c.js → index-bce2a951.js} +16197 -2294
  3. package/dist/refine.js +164 -158
  4. package/dist/refine.umd.cjs +15580 -1677
  5. package/dist/style.css +229 -11
  6. package/lib/App.d.ts +2 -0
  7. package/lib/Dovetail.d.ts +18 -0
  8. package/lib/components/Breadcrumb/index.d.ts +5 -0
  9. package/lib/components/ConditionsTable/ConditionsTable.d.ts +7 -0
  10. package/lib/components/ConditionsTable/index.d.ts +1 -0
  11. package/lib/components/CreateButton/index.d.ts +1 -0
  12. package/lib/components/CronJobDropdown/index.d.ts +8 -0
  13. package/lib/components/CronjobJobsTable/index.d.ts +8 -0
  14. package/lib/components/DeleteButton/index.d.ts +2 -0
  15. package/lib/components/DeleteManyButton/index.d.ts +4 -0
  16. package/lib/components/DrawerShow/DrawerShow.d.ts +8 -0
  17. package/lib/components/DrawerShow/index.d.ts +1 -0
  18. package/lib/components/DurationTime/index.d.ts +5 -0
  19. package/lib/components/EditButton/index.d.ts +2 -0
  20. package/lib/components/EditField/index.d.ts +15 -0
  21. package/lib/components/ErrorContent/index.d.ts +17 -0
  22. package/lib/components/EventsTable/EventsTable.d.ts +6 -0
  23. package/lib/components/EventsTable/index.d.ts +1 -0
  24. package/lib/components/Form/FormModal.d.ts +10 -0
  25. package/lib/components/Form/RefineFormContent.d.ts +11 -0
  26. package/lib/components/Form/RefineFormPage.d.ts +6 -0
  27. package/lib/components/Form/YamlForm.d.ts +28 -0
  28. package/lib/components/Form/index.d.ts +7 -0
  29. package/lib/components/Form/type.d.ts +17 -0
  30. package/lib/components/Form/useReactHookForm.d.ts +29 -0
  31. package/lib/components/Form/useRefineForm.d.ts +13 -0
  32. package/lib/components/Form/useYamlForm.d.ts +51 -0
  33. package/lib/components/FormErrorAlert/index.d.ts +9 -0
  34. package/lib/components/FormLayout/index.d.ts +7 -0
  35. package/lib/components/FormWidgets/KeyValueListWidget.d.ts +5 -0
  36. package/lib/components/FormWidgets/MetadataForm.d.ts +1 -0
  37. package/lib/components/FormWidgets/NameInputWidget.d.ts +50 -0
  38. package/lib/components/FormWidgets/NamespaceSelectWidget.d.ts +8 -0
  39. package/lib/components/FormWidgets/index.d.ts +4 -0
  40. package/lib/components/FormWidgets/widget.d.ts +5 -0
  41. package/lib/components/ImageNames/index.d.ts +5 -0
  42. package/lib/components/IngressRulesComponent/index.d.ts +5 -0
  43. package/lib/components/IngressRulesTable/IngressRulesTable.d.ts +7 -0
  44. package/lib/components/IngressRulesTable/index.d.ts +1 -0
  45. package/lib/components/K8sDropdown/index.d.ts +9 -0
  46. package/lib/components/KeyValue/KeyValue.d.ts +7 -0
  47. package/lib/components/KeyValue/KeyValueAnnotation.d.ts +5 -0
  48. package/lib/components/KeyValue/KeyValueSecret.d.ts +4 -0
  49. package/lib/components/KeyValue/index.d.ts +3 -0
  50. package/lib/components/Layout/index.d.ts +3 -0
  51. package/lib/components/LinkFallback/index.d.ts +3 -0
  52. package/lib/components/ListPage/index.d.ts +9 -0
  53. package/lib/components/Menu/index.d.ts +1 -0
  54. package/lib/components/NamespacesFilter/index.d.ts +11 -0
  55. package/lib/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
  56. package/lib/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
  57. package/lib/components/PageShow/PageShow.d.ts +12 -0
  58. package/lib/components/PageShow/index.d.ts +1 -0
  59. package/lib/components/PodContainersTable/PodContainersTable.d.ts +8 -0
  60. package/lib/components/PodContainersTable/index.d.ts +1 -0
  61. package/lib/components/PodDropdown/index.d.ts +9 -0
  62. package/lib/components/PodLog/index.d.ts +6 -0
  63. package/lib/components/PodSelectorTable/index.d.ts +6 -0
  64. package/lib/components/PodShellModal/PodShell.d.ts +18 -0
  65. package/lib/components/PodShellModal/index.d.ts +9 -0
  66. package/lib/components/PortsTable/index.d.ts +7 -0
  67. package/lib/components/ReferenceLink/index.d.ts +8 -0
  68. package/lib/components/ReplicasDropdown/index.d.ts +9 -0
  69. package/lib/components/ResourceCRUD/ResourceCRUD.d.ts +7 -0
  70. package/lib/components/ResourceCRUD/create/index.d.ts +7 -0
  71. package/lib/components/ResourceCRUD/index.d.ts +4 -0
  72. package/lib/components/ResourceCRUD/list/index.d.ts +8 -0
  73. package/lib/components/ResourceCRUD/show/index.d.ts +8 -0
  74. package/lib/components/ResourceFiledDisplays.d.ts +6 -0
  75. package/lib/components/ResourceLink/index.d.ts +8 -0
  76. package/lib/components/ResourceSelect/index.d.ts +11 -0
  77. package/lib/components/ResourceUsageBar/index.d.ts +8 -0
  78. package/lib/components/Separator/index.d.ts +2 -0
  79. package/lib/components/ServiceComponents/index.d.ts +10 -0
  80. package/lib/components/Shell/index.d.ts +54 -0
  81. package/lib/components/ShowContent/ShowContent.d.ts +18 -0
  82. package/lib/components/ShowContent/fields.d.ts +68 -0
  83. package/lib/components/ShowContent/groups.d.ts +23 -0
  84. package/lib/components/ShowContent/index.d.ts +4 -0
  85. package/lib/components/ShowContent/tabs.d.ts +5 -0
  86. package/lib/components/StateTag/StateTag.d.ts +10 -0
  87. package/lib/components/StateTag/index.d.ts +1 -0
  88. package/lib/components/Table/TableToolBar.d.ts +8 -0
  89. package/lib/components/Table/TableWidgets.d.ts +6 -0
  90. package/lib/components/Table/index.d.ts +43 -0
  91. package/lib/components/Tabs/index.d.ts +10 -0
  92. package/lib/components/Tags/index.d.ts +6 -0
  93. package/lib/components/TextTags/index.d.ts +6 -0
  94. package/lib/components/Time/index.d.ts +8 -0
  95. package/lib/components/ValueDisplay/index.d.ts +9 -0
  96. package/lib/components/WorkloadDropdown/index.d.ts +9 -0
  97. package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +9 -0
  98. package/lib/components/WorkloadPodsTable/index.d.ts +1 -0
  99. package/lib/components/WorkloadReplicas/index.d.ts +17 -0
  100. package/lib/components/YamlEditor/MonacoYamlDiffEditor.d.ts +9 -0
  101. package/lib/components/YamlEditor/MonacoYamlEditor.d.ts +19 -0
  102. package/lib/components/YamlEditor/YamlEditorComponent.d.ts +27 -0
  103. package/lib/components/YamlEditor/index.d.ts +1 -0
  104. package/lib/components/YamlEditor/style.d.ts +11 -0
  105. package/lib/components/YamlEditor/yaml.worker.d.ts +1 -0
  106. package/lib/components/index.d.ts +47 -0
  107. package/lib/constants/auth.d.ts +5 -0
  108. package/lib/constants/index.d.ts +3 -0
  109. package/lib/constants/k8s.d.ts +487 -0
  110. package/lib/constants/state.d.ts +15 -0
  111. package/lib/contexts/component.d.ts +7 -0
  112. package/lib/contexts/configs.d.ts +3 -0
  113. package/lib/contexts/global-store.d.ts +5 -0
  114. package/lib/contexts/index.d.ts +3 -0
  115. package/lib/hooks/index.d.ts +8 -0
  116. package/lib/hooks/useDeleteModal/index.d.ts +1 -0
  117. package/lib/hooks/useDeleteModal/useDeleteManyModal.d.ts +7 -0
  118. package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +7 -0
  119. package/lib/hooks/useDownloadYAML.d.ts +7 -0
  120. package/lib/hooks/useEagleTable/columns.d.ts +41 -0
  121. package/lib/hooks/useEagleTable/index.d.ts +2 -0
  122. package/lib/hooks/useEagleTable/useEagleTable.d.ts +55 -0
  123. package/lib/hooks/useEdit.d.ts +4 -0
  124. package/lib/hooks/useGlobalStore.d.ts +3 -0
  125. package/lib/hooks/useK8sYamlEditor.d.ts +5 -0
  126. package/lib/hooks/useNamespaceRefineFilter.d.ts +5 -0
  127. package/lib/hooks/useOpenForm.d.ts +7 -0
  128. package/lib/hooks/useSchema.d.ts +14 -0
  129. package/lib/hooks/useSubmitForm.d.ts +14 -0
  130. package/lib/hooks/useTableData.d.ts +19 -0
  131. package/lib/i18n.d.ts +353 -0
  132. package/lib/index.d.ts +11 -0
  133. package/lib/locales/en-US/index.d.ts +175 -0
  134. package/lib/locales/index.d.ts +2 -0
  135. package/lib/locales/zh-CN/index.d.ts +175 -0
  136. package/lib/main.d.ts +3 -0
  137. package/lib/models/cronjob-model.d.ts +15 -0
  138. package/lib/models/daemonset-model.d.ts +15 -0
  139. package/lib/models/deployment-model.d.ts +13 -0
  140. package/lib/models/event-model.d.ts +7 -0
  141. package/lib/models/index.d.ts +19 -0
  142. package/lib/models/ingress-model.d.ts +20 -0
  143. package/lib/models/job-model.d.ts +20 -0
  144. package/lib/models/network-policy-model.d.ts +9 -0
  145. package/lib/models/node-model.d.ts +17 -0
  146. package/lib/models/persistent-volume-claim.d.ts +9 -0
  147. package/lib/models/persistent-volume.d.ts +9 -0
  148. package/lib/models/pod-metrics-model.d.ts +8 -0
  149. package/lib/models/pod-model.d.ts +20 -0
  150. package/lib/models/resource-model.d.ts +21 -0
  151. package/lib/models/service-model.d.ts +24 -0
  152. package/lib/models/statefulset-model.d.ts +13 -0
  153. package/lib/models/storage-class.d.ts +12 -0
  154. package/lib/models/types/index.d.ts +1 -0
  155. package/lib/models/types/metric.d.ts +25 -0
  156. package/lib/models/workload-base-model.d.ts +12 -0
  157. package/lib/models/workload-model.d.ts +18 -0
  158. package/lib/pages/configmaps/index.d.ts +4 -0
  159. package/lib/pages/cronjobs/create/index.d.ts +3 -0
  160. package/lib/pages/cronjobs/index.d.ts +3 -0
  161. package/lib/pages/cronjobs/list/index.d.ts +3 -0
  162. package/lib/pages/cronjobs/show/index.d.ts +3 -0
  163. package/lib/pages/daemonsets/create/index.d.ts +3 -0
  164. package/lib/pages/daemonsets/index.d.ts +3 -0
  165. package/lib/pages/daemonsets/list/index.d.ts +3 -0
  166. package/lib/pages/daemonsets/show/index.d.ts +3 -0
  167. package/lib/pages/deployments/index.d.ts +2 -0
  168. package/lib/pages/deployments/list/index.d.ts +3 -0
  169. package/lib/pages/deployments/show/index.d.ts +3 -0
  170. package/lib/pages/ingresses/index.d.ts +4 -0
  171. package/lib/pages/jobs/index.d.ts +4 -0
  172. package/lib/pages/networkPolicies/index.d.ts +4 -0
  173. package/lib/pages/nodes/index.d.ts +2 -0
  174. package/lib/pages/nodes/list/index.d.ts +3 -0
  175. package/lib/pages/nodes/show/index.d.ts +3 -0
  176. package/lib/pages/persistentvolumeclaims/index.d.ts +4 -0
  177. package/lib/pages/persistentvolumes/index.d.ts +4 -0
  178. package/lib/pages/pods/create/index.d.ts +3 -0
  179. package/lib/pages/pods/index.d.ts +3 -0
  180. package/lib/pages/pods/list/index.d.ts +3 -0
  181. package/lib/pages/pods/show/index.d.ts +3 -0
  182. package/lib/pages/secrets/index.d.ts +4 -0
  183. package/lib/pages/services/index.d.ts +4 -0
  184. package/lib/pages/statefulsets/index.d.ts +4 -0
  185. package/lib/pages/storageclasses/form/index.d.ts +9 -0
  186. package/lib/pages/storageclasses/index.d.ts +44 -0
  187. package/lib/plugins/index.d.ts +4 -0
  188. package/lib/plugins/model-plugin.d.ts +13 -0
  189. package/lib/plugins/relation-plugin.d.ts +26 -0
  190. package/lib/plugins/type.d.ts +8 -0
  191. package/lib/providers/index.d.ts +1 -0
  192. package/lib/providers/router-provider/index.d.ts +21 -0
  193. package/lib/src/components/Form/FormModal.d.ts +1 -0
  194. package/lib/src/components/PodDropdown/index.d.ts +9 -0
  195. package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
  196. package/lib/src/components/PodShellModal/index.d.ts +10 -0
  197. package/lib/src/components/Shell/index.d.ts +54 -0
  198. package/lib/src/components/index.d.ts +3 -0
  199. package/lib/src/i18n.d.ts +1 -0
  200. package/lib/src/locales/en-US/index.d.ts +1 -0
  201. package/lib/src/utils/shell.d.ts +16 -0
  202. package/lib/types/index.d.ts +1 -0
  203. package/lib/types/resource.d.ts +62 -0
  204. package/lib/utils/addId.d.ts +3 -0
  205. package/lib/utils/download.d.ts +1 -0
  206. package/lib/utils/error.d.ts +20 -0
  207. package/lib/utils/form.d.ts +3 -0
  208. package/lib/utils/k8s.d.ts +3 -0
  209. package/lib/utils/labels.d.ts +9 -0
  210. package/lib/utils/match-selector.d.ts +3 -0
  211. package/lib/utils/openapi.d.ts +45 -0
  212. package/lib/utils/schema.d.ts +17 -0
  213. package/lib/utils/selector.d.ts +3 -0
  214. package/lib/utils/shell.d.ts +15 -0
  215. package/lib/utils/string.d.ts +1 -0
  216. package/lib/utils/time.d.ts +13 -0
  217. package/lib/utils/unit.d.ts +12 -0
  218. package/lib/utils/yaml.d.ts +2 -0
  219. package/package.json +14 -5
@@ -0,0 +1,7 @@
1
+ import { YamlFormProps } from '../components';
2
+ interface UseOpenFormOptions {
3
+ id?: string;
4
+ renderForm?: (props: YamlFormProps) => React.ReactNode;
5
+ }
6
+ export declare function useOpenForm(options?: UseOpenFormOptions): () => void;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { type IResourceItem } from '@refinedev/core';
2
+ import { JSONSchema7 } from 'json-schema';
3
+ type UseSchemaOptions = {
4
+ resource?: IResourceItem;
5
+ skip?: boolean;
6
+ };
7
+ type UseSchemaResult = {
8
+ schema: JSONSchema7 | null;
9
+ loading: boolean;
10
+ error: Error | null;
11
+ fetchSchema: () => void;
12
+ };
13
+ export declare function useSchema(options?: UseSchemaOptions): UseSchemaResult;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface UseSubmitFormOptions {
3
+ formRef: React.MutableRefObject<{
4
+ submit: () => (Promise<unknown> | undefined);
5
+ } | null>;
6
+ onSubmitSuccess?: () => void;
7
+ }
8
+ export declare function useSubmitForm(options: UseSubmitFormOptions): {
9
+ submitting: boolean;
10
+ errorMsgs: string[];
11
+ reset: () => void;
12
+ onSubmit: () => Promise<void>;
13
+ };
14
+ export {};
@@ -0,0 +1,19 @@
1
+ import { CrudSorting } from '@refinedev/core';
2
+ import { Column, SorterOrder } from 'src/components/Table';
3
+ type UseTableDataProps<Data extends {
4
+ id: string;
5
+ }> = {
6
+ pageSize?: number;
7
+ defaultSorters?: CrudSorting;
8
+ data: Data[];
9
+ columns: Column<Data>[];
10
+ };
11
+ declare function useTableData<Data extends {
12
+ id: string;
13
+ }>({ data, columns, pageSize, defaultSorters }: UseTableDataProps<Data>): {
14
+ data: Data[];
15
+ currentPage: number;
16
+ onPageChange: import("react").Dispatch<import("react").SetStateAction<number>>;
17
+ onSorterChange: (order?: SorterOrder | null, key?: string) => void;
18
+ };
19
+ export default useTableData;
package/lib/i18n.d.ts ADDED
@@ -0,0 +1,353 @@
1
+ import 'dayjs/locale/zh';
2
+ import i18n from 'i18next';
3
+ export declare const resources: {
4
+ 'en-US': {
5
+ dovetail: {
6
+ copy: string;
7
+ reset_arguments: string;
8
+ view_changes: string;
9
+ back_to_edit: string;
10
+ configure_file: string;
11
+ yaml_format_wrong: string;
12
+ yaml_value_wrong: string;
13
+ edit_yaml: string;
14
+ copied: string;
15
+ already_reset: string;
16
+ fetch_schema_fail: string;
17
+ obtain_data_error: string;
18
+ retry: string;
19
+ create_resource: string;
20
+ edit_resource: string;
21
+ state: string;
22
+ name: string;
23
+ pod: string;
24
+ cancel: string;
25
+ delete: string;
26
+ create: string;
27
+ confirm_delete_text: string;
28
+ edit: string;
29
+ namespace: string;
30
+ created_time: string;
31
+ label: string;
32
+ annotation: string;
33
+ type: string;
34
+ event: string;
35
+ reason: string;
36
+ object: string;
37
+ note: string;
38
+ condition: string;
39
+ download_yaml: string;
40
+ detail: string;
41
+ message: string;
42
+ save: string;
43
+ workload: string;
44
+ empty: string;
45
+ schedule: string;
46
+ lastScheduleTime: string;
47
+ duration: string;
48
+ started: string;
49
+ container: string;
50
+ redeploy: string;
51
+ data: string;
52
+ resume: string;
53
+ sessionAffinity: string;
54
+ log: string;
55
+ ready: string;
56
+ updating: string;
57
+ completed: string;
58
+ failed: string;
59
+ suspended: string;
60
+ running: string;
61
+ terminating: string;
62
+ terminated: string;
63
+ succeeded: string;
64
+ unknown: string;
65
+ pending: string;
66
+ waiting: string;
67
+ expand: string;
68
+ fold: string;
69
+ rule: string;
70
+ port: string;
71
+ cert: string;
72
+ ip_address: string;
73
+ last_seen: string;
74
+ node_port: string;
75
+ protocol: string;
76
+ key: string;
77
+ value: string;
78
+ path: string;
79
+ backend: string;
80
+ belong_to_node: string;
81
+ true: string;
82
+ false: string;
83
+ warning: string;
84
+ normal: string;
85
+ delete_tip: string;
86
+ delete_resource: string;
87
+ password: string;
88
+ username: string;
89
+ host: string;
90
+ no_resource: string;
91
+ all_namespaces: string;
92
+ clusterIp: string;
93
+ select_container: string;
94
+ sec: string;
95
+ min: string;
96
+ hr: string;
97
+ day: string;
98
+ port_mapping: string;
99
+ out_cluster_access: string;
100
+ in_cluster_access: string;
101
+ fail_get_detail: string;
102
+ pod_num: string;
103
+ show_data_value: string;
104
+ hide_data_value: string;
105
+ please_input: string;
106
+ create_failed: string;
107
+ create_failed_tip: string;
108
+ save_failed: string;
109
+ save_failed_tip: string;
110
+ completion_num_tooltip: string;
111
+ ready_num_tooltip: string;
112
+ realtime_log: string;
113
+ previous_log: string;
114
+ auto_wrap: string;
115
+ container_num: string;
116
+ edit_resource_success: string;
117
+ redeploy_success_toast: string;
118
+ redeploy_failed_toast: string;
119
+ pause_success_toast: string;
120
+ pause_failed_toast: string;
121
+ resume_success_toast: string;
122
+ resume_failed_toast: string;
123
+ delete_success_toast: string;
124
+ delete_failed_toast: string;
125
+ create_success_toast: string;
126
+ save_yaml_success_toast: string;
127
+ save_replicas_success_toast: string;
128
+ save_replicas_failed_toast: string;
129
+ port_mapping_title_tooltip: string;
130
+ in_cluster_desc: string;
131
+ in_cluster_ip_desc: string;
132
+ in_cluster_external_name_desc: string;
133
+ out_cluster_ip_desc: string;
134
+ out_cluster_node_port_desc: string;
135
+ out_cluster_lb_desc: string;
136
+ out_external_name_desc: string;
137
+ image: string;
138
+ restarts: string;
139
+ updated_time: string;
140
+ init_container: string;
141
+ regular_container: string;
142
+ suspend: string;
143
+ default_backend: string;
144
+ ingress_class: string;
145
+ pod_ready_num: string;
146
+ pod_complete_num: string;
147
+ pod_replicas_num: string;
148
+ edit_replicas: string;
149
+ dns_record: string;
150
+ basic_info: string;
151
+ pod_selector: string;
152
+ ingress_rule: string;
153
+ egress_rule: string;
154
+ service_port: string;
155
+ pod_port: string;
156
+ path_type: string;
157
+ only_support_one_yaml: string;
158
+ not_support: string;
159
+ stopped: string;
160
+ any_node_ip: string;
161
+ storage_class: string;
162
+ persistent_volume: string;
163
+ provisioner: string;
164
+ file_system: string;
165
+ capacity: string;
166
+ phase: string;
167
+ volume_mode: string;
168
+ access_mode: string;
169
+ block: string;
170
+ pv_phase_available: string;
171
+ pv_phase_bound: string;
172
+ pv_phase_released: string;
173
+ pv_phase_failed: string;
174
+ pv_phase_pending: string;
175
+ exec_pod: string;
176
+ };
177
+ };
178
+ 'zh-CN': {
179
+ dovetail: {
180
+ copy: string;
181
+ reset_arguments: string;
182
+ view_changes: string;
183
+ back_to_edit: string;
184
+ configure_file: string;
185
+ yaml_format_wrong: string;
186
+ yaml_value_wrong: string;
187
+ edit_yaml: string;
188
+ copied: string;
189
+ already_reset: string;
190
+ cancel: string;
191
+ delete: string;
192
+ create: string;
193
+ delete_resource: string;
194
+ confirm_delete_text: string;
195
+ delete_tip: string;
196
+ edit: string;
197
+ namespace: string;
198
+ name: string;
199
+ state: string;
200
+ image: string;
201
+ created_time: string;
202
+ label: string;
203
+ annotation: string;
204
+ type: string;
205
+ event: string;
206
+ reason: string;
207
+ object: string;
208
+ note: string;
209
+ condition: string;
210
+ download_yaml: string;
211
+ detail: string;
212
+ restarts: string;
213
+ updated_time: string;
214
+ message: string;
215
+ save: string;
216
+ workload: string;
217
+ all_namespaces: string;
218
+ empty: string;
219
+ schedule: string;
220
+ lastScheduleTime: string;
221
+ duration: string;
222
+ started: string;
223
+ init_container: string;
224
+ regular_container: string;
225
+ container: string;
226
+ redeploy: string;
227
+ data: string;
228
+ suspend: string;
229
+ resume: string;
230
+ clusterIp: string;
231
+ sessionAffinity: string;
232
+ log: string;
233
+ select_container: string;
234
+ fetch_schema_fail: string;
235
+ obtain_data_error: string;
236
+ retry: string;
237
+ ready: string;
238
+ updating: string;
239
+ completed: string;
240
+ failed: string;
241
+ suspended: string;
242
+ running: string;
243
+ terminating: string;
244
+ succeeded: string;
245
+ terminated: string;
246
+ unknown: string;
247
+ pending: string;
248
+ waiting: string;
249
+ create_resource: string;
250
+ edit_resource: string;
251
+ sec: string;
252
+ min: string;
253
+ hr: string;
254
+ day: string;
255
+ expand: string;
256
+ fold: string;
257
+ rule: string;
258
+ default_backend: string;
259
+ ingress_class: string;
260
+ port: string;
261
+ pod_ready_num: string;
262
+ pod_complete_num: string;
263
+ pod_replicas_num: string;
264
+ edit_replicas: string;
265
+ cert: string;
266
+ dns_record: string;
267
+ port_mapping: string;
268
+ out_cluster_access: string;
269
+ in_cluster_access: string;
270
+ fail_get_detail: string;
271
+ basic_info: string;
272
+ pod: string;
273
+ pod_num: string;
274
+ pod_selector: string;
275
+ ingress_rule: string;
276
+ egress_rule: string;
277
+ ip_address: string;
278
+ last_seen: string;
279
+ service_port: string;
280
+ pod_port: string;
281
+ node_port: string;
282
+ protocol: string;
283
+ key: string;
284
+ value: string;
285
+ show_data_value: string;
286
+ hide_data_value: string;
287
+ path_type: string;
288
+ path: string;
289
+ backend: string;
290
+ belong_to_node: string;
291
+ please_input: string;
292
+ create_failed: string;
293
+ create_failed_tip: string;
294
+ save_failed: string;
295
+ save_failed_tip: string;
296
+ completion_num_tooltip: string;
297
+ ready_num_tooltip: string;
298
+ true: string;
299
+ false: string;
300
+ warning: string;
301
+ normal: string;
302
+ realtime_log: string;
303
+ previous_log: string;
304
+ auto_wrap: string;
305
+ name_can_not_be_empty: string;
306
+ password: string;
307
+ username: string;
308
+ host: string;
309
+ container_num: string;
310
+ edit_resource_success: string;
311
+ redeploy_success_toast: string;
312
+ redeploy_failed_toast: string;
313
+ pause_success_toast: string;
314
+ pause_failed_toast: string;
315
+ resume_success_toast: string;
316
+ resume_failed_toast: string;
317
+ delete_success_toast: string;
318
+ delete_failed_toast: string;
319
+ create_success_toast: string;
320
+ save_yaml_success_toast: string;
321
+ save_replicas_success_toast: string;
322
+ save_replicas_failed_toast: string;
323
+ no_resource: string;
324
+ port_mapping_title_tooltip: string;
325
+ in_cluster_desc: string;
326
+ in_cluster_ip_desc: string;
327
+ in_cluster_external_name_desc: string;
328
+ out_cluster_ip_desc: string;
329
+ out_cluster_node_port_desc: string;
330
+ out_cluster_lb_desc: string;
331
+ out_external_name_desc: string;
332
+ only_support_one_yaml: string;
333
+ not_support: string;
334
+ stopped: string;
335
+ any_node_ip: string;
336
+ storage_class: string;
337
+ persistent_volume: string;
338
+ provisioner: string;
339
+ file_system: string;
340
+ capacity: string;
341
+ phase: string;
342
+ volume_mode: string;
343
+ access_mode: string;
344
+ block: string;
345
+ pv_phase_available: string;
346
+ pv_phase_bound: string;
347
+ pv_phase_released: string;
348
+ pv_phase_failed: string;
349
+ pv_phase_pending: string;
350
+ };
351
+ };
352
+ };
353
+ export default i18n;
package/lib/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare const dovetailRefineI18n: import("i18next").i18n;
2
+ export * from './providers';
3
+ export * from './hooks';
4
+ export * from './components';
5
+ export * from './constants';
6
+ export * from './hooks';
7
+ export * from './Dovetail';
8
+ export * from './types';
9
+ export * from './contexts';
10
+ export * from './models';
11
+ export * from './plugins';
@@ -0,0 +1,175 @@
1
+ declare const _default: {
2
+ dovetail: {
3
+ copy: string;
4
+ reset_arguments: string;
5
+ view_changes: string;
6
+ back_to_edit: string;
7
+ configure_file: string;
8
+ yaml_format_wrong: string;
9
+ yaml_value_wrong: string;
10
+ edit_yaml: string;
11
+ copied: string;
12
+ already_reset: string;
13
+ fetch_schema_fail: string;
14
+ obtain_data_error: string;
15
+ retry: string;
16
+ create_resource: string;
17
+ edit_resource: string;
18
+ state: string;
19
+ name: string;
20
+ pod: string;
21
+ cancel: string;
22
+ delete: string;
23
+ create: string;
24
+ confirm_delete_text: string;
25
+ edit: string;
26
+ namespace: string;
27
+ created_time: string;
28
+ label: string;
29
+ annotation: string;
30
+ type: string;
31
+ event: string;
32
+ reason: string;
33
+ object: string;
34
+ note: string;
35
+ condition: string;
36
+ download_yaml: string;
37
+ detail: string;
38
+ message: string;
39
+ save: string;
40
+ workload: string;
41
+ empty: string;
42
+ schedule: string;
43
+ lastScheduleTime: string;
44
+ duration: string;
45
+ started: string;
46
+ container: string;
47
+ redeploy: string;
48
+ data: string;
49
+ resume: string;
50
+ sessionAffinity: string;
51
+ log: string;
52
+ ready: string;
53
+ updating: string;
54
+ completed: string;
55
+ failed: string;
56
+ suspended: string;
57
+ running: string;
58
+ terminating: string;
59
+ terminated: string;
60
+ succeeded: string;
61
+ unknown: string;
62
+ pending: string;
63
+ waiting: string;
64
+ expand: string;
65
+ fold: string;
66
+ rule: string;
67
+ port: string;
68
+ cert: string;
69
+ ip_address: string;
70
+ last_seen: string;
71
+ node_port: string;
72
+ protocol: string;
73
+ key: string;
74
+ value: string;
75
+ path: string;
76
+ backend: string;
77
+ belong_to_node: string;
78
+ true: string;
79
+ false: string;
80
+ warning: string;
81
+ normal: string;
82
+ delete_tip: string;
83
+ delete_resource: string;
84
+ password: string;
85
+ username: string;
86
+ host: string;
87
+ no_resource: string;
88
+ all_namespaces: string;
89
+ clusterIp: string;
90
+ select_container: string;
91
+ sec: string;
92
+ min: string;
93
+ hr: string;
94
+ day: string;
95
+ port_mapping: string;
96
+ out_cluster_access: string;
97
+ in_cluster_access: string;
98
+ fail_get_detail: string;
99
+ pod_num: string;
100
+ show_data_value: string;
101
+ hide_data_value: string;
102
+ please_input: string;
103
+ create_failed: string;
104
+ create_failed_tip: string;
105
+ save_failed: string;
106
+ save_failed_tip: string;
107
+ completion_num_tooltip: string;
108
+ ready_num_tooltip: string;
109
+ realtime_log: string;
110
+ previous_log: string;
111
+ auto_wrap: string;
112
+ container_num: string;
113
+ edit_resource_success: string;
114
+ redeploy_success_toast: string;
115
+ redeploy_failed_toast: string;
116
+ pause_success_toast: string;
117
+ pause_failed_toast: string;
118
+ resume_success_toast: string;
119
+ resume_failed_toast: string;
120
+ delete_success_toast: string;
121
+ delete_failed_toast: string;
122
+ create_success_toast: string;
123
+ save_yaml_success_toast: string;
124
+ save_replicas_success_toast: string;
125
+ save_replicas_failed_toast: string;
126
+ port_mapping_title_tooltip: string;
127
+ in_cluster_desc: string;
128
+ in_cluster_ip_desc: string;
129
+ in_cluster_external_name_desc: string;
130
+ out_cluster_ip_desc: string;
131
+ out_cluster_node_port_desc: string;
132
+ out_cluster_lb_desc: string;
133
+ out_external_name_desc: string;
134
+ image: string;
135
+ restarts: string;
136
+ updated_time: string;
137
+ init_container: string;
138
+ regular_container: string;
139
+ suspend: string;
140
+ default_backend: string;
141
+ ingress_class: string;
142
+ pod_ready_num: string;
143
+ pod_complete_num: string;
144
+ pod_replicas_num: string;
145
+ edit_replicas: string;
146
+ dns_record: string;
147
+ basic_info: string;
148
+ pod_selector: string;
149
+ ingress_rule: string;
150
+ egress_rule: string;
151
+ service_port: string;
152
+ pod_port: string;
153
+ path_type: string;
154
+ only_support_one_yaml: string;
155
+ not_support: string;
156
+ stopped: string;
157
+ any_node_ip: string;
158
+ storage_class: string;
159
+ persistent_volume: string;
160
+ provisioner: string;
161
+ file_system: string;
162
+ capacity: string;
163
+ phase: string;
164
+ volume_mode: string;
165
+ access_mode: string;
166
+ block: string;
167
+ pv_phase_available: string;
168
+ pv_phase_bound: string;
169
+ pv_phase_released: string;
170
+ pv_phase_failed: string;
171
+ pv_phase_pending: string;
172
+ exec_pod: string;
173
+ };
174
+ };
175
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import './en-US';
2
+ import './zh-CN';