@dovetail-v2/refine 0.0.27 → 0.0.28-alpha.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 (271) hide show
  1. package/dist/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-a06e0978.js} +5 -5
  2. package/dist/{index-56189b86.js → index-5213b638.js} +15088 -9839
  3. package/dist/refine.js +173 -106
  4. package/dist/refine.umd.cjs +14991 -9742
  5. package/dist/style.css +99 -50
  6. package/lib/src/Dovetail.d.ts +3 -0
  7. package/lib/src/components/CronJobDropdown/index.d.ts +2 -0
  8. package/lib/src/components/CronjobJobsTable/index.d.ts +1 -0
  9. package/lib/src/components/DurationTime/index.d.ts +6 -0
  10. package/lib/src/components/ErrorContent/index.d.ts +6 -1
  11. package/lib/src/components/Form/FormModal.d.ts +9 -0
  12. package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
  13. package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
  14. package/lib/src/components/Form/YamlForm.d.ts +26 -0
  15. package/lib/src/components/Form/index.d.ts +7 -4
  16. package/lib/src/components/Form/type.d.ts +14 -0
  17. package/lib/src/components/Form/useReactHookForm.d.ts +29 -0
  18. package/lib/src/components/Form/useRefineForm.d.ts +10 -0
  19. package/lib/src/components/Form/useYamlForm.d.ts +51 -0
  20. package/lib/src/components/FormErrorAlert/index.d.ts +1 -0
  21. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
  22. package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
  23. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
  24. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
  25. package/lib/src/components/FormWidgets/widget.d.ts +5 -0
  26. package/lib/src/components/ImageNames/index.d.ts +1 -0
  27. package/lib/src/components/K8sDropdown/index.d.ts +2 -0
  28. package/lib/src/components/KeyValue/KeyValue.d.ts +6 -5
  29. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
  30. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
  31. package/lib/src/components/KeyValue/index.d.ts +2 -0
  32. package/lib/src/components/ListPage/index.d.ts +0 -1
  33. package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
  34. package/lib/src/components/NamespacesFilter/index.d.ts +6 -2
  35. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
  36. package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
  37. package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
  38. package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
  39. package/lib/src/components/PortsTable/index.d.ts +7 -0
  40. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  41. package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +1 -1
  42. package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
  43. package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
  44. package/lib/src/components/ServiceComponents/index.d.ts +11 -0
  45. package/lib/src/components/ShowContent/ShowContent.d.ts +7 -0
  46. package/lib/src/components/ShowContent/fields.d.ts +43 -26
  47. package/lib/src/components/ShowContent/groups.d.ts +22 -0
  48. package/lib/src/components/ShowContent/index.d.ts +2 -0
  49. package/lib/src/components/ShowContent/tabs.d.ts +5 -0
  50. package/lib/src/components/StateTag/StateTag.d.ts +2 -0
  51. package/lib/src/components/Table/TableToolBar.d.ts +1 -1
  52. package/lib/src/components/Table/index.d.ts +18 -8
  53. package/lib/src/components/Tabs/index.d.ts +10 -0
  54. package/lib/src/components/TextTags/index.d.ts +6 -0
  55. package/lib/src/components/Time/index.d.ts +3 -4
  56. package/lib/src/components/ValueDisplay/index.d.ts +9 -0
  57. package/lib/src/components/WorkloadDropdown/index.d.ts +4 -2
  58. package/lib/src/components/WorkloadReplicas/index.d.ts +14 -5
  59. package/lib/src/components/YamlForm/index.d.ts +6 -0
  60. package/lib/src/components/index.d.ts +7 -4
  61. package/lib/src/constants/auth.d.ts +5 -0
  62. package/lib/src/constants/index.d.ts +1 -0
  63. package/lib/src/constants/k8s.d.ts +289 -89
  64. package/lib/src/constants/state.d.ts +2 -1
  65. package/lib/src/contexts/component.d.ts +2 -0
  66. package/lib/src/hooks/index.d.ts +1 -1
  67. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +2 -2
  68. package/lib/src/hooks/useDownloadYAML.d.ts +1 -1
  69. package/lib/src/hooks/useEagleForm.d.ts +2 -1
  70. package/lib/src/hooks/useEagleTable/columns.d.ts +19 -3
  71. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +4 -0
  72. package/lib/src/hooks/useModal.d.ts +0 -0
  73. package/lib/src/hooks/useOpenForm.d.ts +3 -0
  74. package/lib/src/hooks/useTableData.d.ts +18 -0
  75. package/lib/src/i18n.d.ts +181 -14
  76. package/lib/src/index.d.ts +0 -1
  77. package/lib/src/locales/en-US/index.d.ts +104 -1
  78. package/lib/src/locales/zh-CN/index.d.ts +76 -13
  79. package/lib/src/model/cronjob-model.d.ts +9 -0
  80. package/lib/src/model/index.d.ts +6 -0
  81. package/lib/src/model/job-model.d.ts +10 -0
  82. package/lib/src/model/pod-metrics-model.d.ts +7 -0
  83. package/lib/src/model/pod-model.d.ts +15 -0
  84. package/lib/src/model/resource-model.d.ts +17 -0
  85. package/lib/src/model/workload-model.d.ts +17 -0
  86. package/lib/src/models/daemonset-model.d.ts +3 -1
  87. package/lib/src/models/deployment-model.d.ts +1 -1
  88. package/lib/src/models/index.d.ts +1 -0
  89. package/lib/src/models/ingress-model.d.ts +5 -3
  90. package/lib/src/models/job-model.d.ts +2 -0
  91. package/lib/src/models/service-model.d.ts +14 -1
  92. package/lib/src/models/statefulset-model.d.ts +1 -1
  93. package/lib/src/pages/deployments/index.d.ts +0 -1
  94. package/lib/src/pages/services/index.d.ts +2 -2
  95. package/lib/src/pages/statefulsets/index.d.ts +4 -3
  96. package/lib/src/types/metric.d.ts +25 -0
  97. package/lib/src/types/resource.d.ts +22 -4
  98. package/package.json +12 -10
  99. package/lib/src/App.js +0 -91
  100. package/lib/src/Dovetail.js +0 -45
  101. package/lib/src/components/Breadcrumb/index.js +0 -20
  102. package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
  103. package/lib/src/components/ConditionsTable/index.js +0 -1
  104. package/lib/src/components/CreateButton/index.js +0 -10
  105. package/lib/src/components/CronJobDropdown/index.js +0 -26
  106. package/lib/src/components/CronjobJobsTable/index.js +0 -49
  107. package/lib/src/components/DeleteButton/index.js +0 -13
  108. package/lib/src/components/DeleteManyButton/index.js +0 -16
  109. package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
  110. package/lib/src/components/DrawerShow/index.js +0 -1
  111. package/lib/src/components/EditButton/index.js +0 -13
  112. package/lib/src/components/EditField/index.js +0 -47
  113. package/lib/src/components/ErrorContent/index.js +0 -36
  114. package/lib/src/components/EventsTable/EventsTable.js +0 -59
  115. package/lib/src/components/EventsTable/index.js +0 -1
  116. package/lib/src/components/Form/KeyValueListWidget.js +0 -56
  117. package/lib/src/components/Form/MetadataForm.js +0 -9
  118. package/lib/src/components/Form/NameInputWidget.js +0 -50
  119. package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
  120. package/lib/src/components/Form/widget.js +0 -1
  121. package/lib/src/components/FormErrorAlert/index.js +0 -8
  122. package/lib/src/components/FormLayout/index.js +0 -21
  123. package/lib/src/components/FormModal/index.js +0 -51
  124. package/lib/src/components/ImageNames/index.js +0 -14
  125. package/lib/src/components/IngressRulesComponent/index.js +0 -11
  126. package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
  127. package/lib/src/components/IngressRulesTable/index.js +0 -1
  128. package/lib/src/components/K8sDropdown/index.js +0 -31
  129. package/lib/src/components/KeyValue/KeyValue.js +0 -27
  130. package/lib/src/components/KeyValue/index.js +0 -1
  131. package/lib/src/components/KeyValueData/index.js +0 -50
  132. package/lib/src/components/Layout/index.js +0 -39
  133. package/lib/src/components/ListPage/index.js +0 -25
  134. package/lib/src/components/Menu/index.js +0 -36
  135. package/lib/src/components/NamespacesFilter/index.js +0 -34
  136. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
  137. package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
  138. package/lib/src/components/PageShow/PageShow.js +0 -11
  139. package/lib/src/components/PageShow/index.js +0 -1
  140. package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
  141. package/lib/src/components/PodContainersTable/index.js +0 -1
  142. package/lib/src/components/PodLog/index.js +0 -136
  143. package/lib/src/components/ReferenceLink/index.js +0 -17
  144. package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
  145. package/lib/src/components/ResourceCRUD/create/index.js +0 -13
  146. package/lib/src/components/ResourceCRUD/index.js +0 -4
  147. package/lib/src/components/ResourceCRUD/list/index.js +0 -19
  148. package/lib/src/components/ResourceCRUD/show/index.js +0 -6
  149. package/lib/src/components/ResourceLink/index.js +0 -21
  150. package/lib/src/components/ResourceUsageBar/index.js +0 -81
  151. package/lib/src/components/Separator/index.js +0 -11
  152. package/lib/src/components/ShowContent/ShowContent.js +0 -157
  153. package/lib/src/components/ShowContent/fields.js +0 -157
  154. package/lib/src/components/ShowContent/index.js +0 -2
  155. package/lib/src/components/StateTag/StateTag.js +0 -22
  156. package/lib/src/components/StateTag/index.js +0 -1
  157. package/lib/src/components/Table/ErrorContent.js +0 -36
  158. package/lib/src/components/Table/TableToolBar.js +0 -14
  159. package/lib/src/components/Table/TableWidgets.js +0 -28
  160. package/lib/src/components/Table/index.js +0 -69
  161. package/lib/src/components/Tags/index.js +0 -22
  162. package/lib/src/components/Time/index.js +0 -14
  163. package/lib/src/components/WorkloadDropdown/index.js +0 -24
  164. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
  165. package/lib/src/components/WorkloadPodsTable/index.js +0 -1
  166. package/lib/src/components/WorkloadReplicas/index.js +0 -50
  167. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
  168. package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
  169. package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
  170. package/lib/src/components/YamlEditor/index.js +0 -1
  171. package/lib/src/components/YamlEditor/style.js +0 -102
  172. package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
  173. package/lib/src/components/YamlForm/index.js +0 -61
  174. package/lib/src/components/index.js +0 -38
  175. package/lib/src/constants/index.js +0 -2
  176. package/lib/src/constants/k8s.js +0 -203
  177. package/lib/src/constants/state.js +0 -15
  178. package/lib/src/contexts/component.js +0 -3
  179. package/lib/src/contexts/configs.js +0 -3
  180. package/lib/src/contexts/global-store.js +0 -3
  181. package/lib/src/contexts/index.js +0 -3
  182. package/lib/src/hooks/index.js +0 -7
  183. package/lib/src/hooks/useDeleteModal/index.js +0 -1
  184. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
  185. package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
  186. package/lib/src/hooks/useDownloadYAML.js +0 -10
  187. package/lib/src/hooks/useEagleForm.js +0 -177
  188. package/lib/src/hooks/useEagleTable/columns.js +0 -246
  189. package/lib/src/hooks/useEagleTable/index.js +0 -2
  190. package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
  191. package/lib/src/hooks/useEdit.js +0 -19
  192. package/lib/src/hooks/useGlobalStore.js +0 -5
  193. package/lib/src/hooks/useK8sYamlEditor.js +0 -37
  194. package/lib/src/hooks/useOpenForm.js +0 -43
  195. package/lib/src/hooks/useSchema.js +0 -37
  196. package/lib/src/hooks/useSubmitForm.js +0 -42
  197. package/lib/src/i18n.js +0 -18
  198. package/lib/src/index.js +0 -13
  199. package/lib/src/locales/en-US/dovetail.json +0 -18
  200. package/lib/src/locales/en-US/index.js +0 -4
  201. package/lib/src/locales/index.js +0 -2
  202. package/lib/src/locales/zh-CN/dovetail.json +0 -91
  203. package/lib/src/locales/zh-CN/index.js +0 -4
  204. package/lib/src/main.js +0 -12
  205. package/lib/src/models/cronjob-model.js +0 -32
  206. package/lib/src/models/daemonset-model.js +0 -17
  207. package/lib/src/models/deployment-model.js +0 -17
  208. package/lib/src/models/event-model.js +0 -11
  209. package/lib/src/models/index.js +0 -14
  210. package/lib/src/models/ingress-model.js +0 -24
  211. package/lib/src/models/job-model.js +0 -56
  212. package/lib/src/models/network-policy-model.js +0 -10
  213. package/lib/src/models/pod-metrics-model.js +0 -34
  214. package/lib/src/models/pod-model.js +0 -78
  215. package/lib/src/models/resource-model.js +0 -34
  216. package/lib/src/models/service-model.js +0 -17
  217. package/lib/src/models/statefulset-model.js +0 -17
  218. package/lib/src/models/types/index.js +0 -1
  219. package/lib/src/models/types/metric.js +0 -1
  220. package/lib/src/models/workload-base-model.js +0 -22
  221. package/lib/src/models/workload-model.js +0 -51
  222. package/lib/src/pages/configmaps/index.js +0 -15
  223. package/lib/src/pages/cronjobs/create/index.js +0 -6
  224. package/lib/src/pages/cronjobs/index.js +0 -3
  225. package/lib/src/pages/cronjobs/list/index.js +0 -42
  226. package/lib/src/pages/cronjobs/show/index.js +0 -16
  227. package/lib/src/pages/daemonsets/create/index.js +0 -6
  228. package/lib/src/pages/daemonsets/index.js +0 -3
  229. package/lib/src/pages/daemonsets/list/index.js +0 -32
  230. package/lib/src/pages/daemonsets/show/index.js +0 -16
  231. package/lib/src/pages/deployments/create/index.js +0 -7
  232. package/lib/src/pages/deployments/index.js +0 -3
  233. package/lib/src/pages/deployments/list/index.js +0 -26
  234. package/lib/src/pages/deployments/show/index.js +0 -16
  235. package/lib/src/pages/ingresses/index.js +0 -26
  236. package/lib/src/pages/jobs/index.js +0 -34
  237. package/lib/src/pages/networkPolicies/index.js +0 -67
  238. package/lib/src/pages/pods/create/index.js +0 -6
  239. package/lib/src/pages/pods/index.js +0 -3
  240. package/lib/src/pages/pods/list/index.js +0 -81
  241. package/lib/src/pages/pods/show/index.js +0 -54
  242. package/lib/src/pages/secrets/index.js +0 -15
  243. package/lib/src/pages/services/index.js +0 -26
  244. package/lib/src/pages/statefulsets/create/index.js +0 -6
  245. package/lib/src/pages/statefulsets/index.js +0 -3
  246. package/lib/src/pages/statefulsets/list/index.js +0 -26
  247. package/lib/src/pages/statefulsets/show/index.js +0 -16
  248. package/lib/src/plugins/index.js +0 -3
  249. package/lib/src/plugins/model-plugin.js +0 -46
  250. package/lib/src/plugins/relation-plugin.js +0 -81
  251. package/lib/src/plugins/type.js +0 -1
  252. package/lib/src/providers/index.js +0 -1
  253. package/lib/src/providers/router-provider/index.js +0 -100
  254. package/lib/src/types/index.js +0 -1
  255. package/lib/src/types/resource.js +0 -12
  256. package/lib/src/utils/addId.js +0 -8
  257. package/lib/src/utils/download.js +0 -9
  258. package/lib/src/utils/error.js +0 -53
  259. package/lib/src/utils/form.js +0 -9
  260. package/lib/src/utils/k8s.js +0 -6
  261. package/lib/src/utils/labels.js +0 -15
  262. package/lib/src/utils/match-selector.js +0 -12
  263. package/lib/src/utils/openapi.js +0 -33
  264. package/lib/src/utils/schema.js +0 -117
  265. package/lib/src/utils/selector.js +0 -12
  266. package/lib/src/utils/string.js +0 -6
  267. package/lib/src/utils/time.js +0 -46
  268. package/lib/src/utils/unit.js +0 -69
  269. package/lib/src/utils/yaml.js +0 -44
  270. package/lib/vite.config.js +0 -60
  271. /package/lib/src/components/{Form/index.js → FormWidgets/index.d.ts} +0 -0
package/lib/src/i18n.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import 'dayjs/locale/zh';
1
2
  import i18n from 'i18next';
2
3
  export declare const resources: {
3
4
  'en-US': {
@@ -17,7 +18,110 @@ export declare const resources: {
17
18
  retry: string;
18
19
  create_resource: string;
19
20
  edit_resource: string;
20
- status: 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
+ image: string;
31
+ created_time: string;
32
+ label: string;
33
+ annotation: string;
34
+ type: string;
35
+ event: string;
36
+ reason: string;
37
+ object: string;
38
+ note: string;
39
+ condition: string;
40
+ download_yaml: string;
41
+ detail: string;
42
+ restarts: string;
43
+ updated_time: string;
44
+ message: string;
45
+ save: string;
46
+ more: string;
47
+ workload: string;
48
+ all_namespaces: string;
49
+ empty: string;
50
+ schedule: string;
51
+ lastScheduleTime: string;
52
+ duration: string;
53
+ started: string;
54
+ init_container: string;
55
+ regular_container: string;
56
+ container: string;
57
+ redeploy: string;
58
+ data: string;
59
+ suspend: string;
60
+ resume: string;
61
+ clusterIp: string;
62
+ sessionAffinity: string;
63
+ log: string;
64
+ select_container: string;
65
+ wrap: string;
66
+ resume_log: string;
67
+ log_new_lines: string;
68
+ ready: string;
69
+ updating: string;
70
+ completed: string;
71
+ failed: string;
72
+ suspended: string;
73
+ running: string;
74
+ terminating: string;
75
+ terminated: string;
76
+ succeeded: string;
77
+ unknown: string;
78
+ pending: string;
79
+ waiting: string;
80
+ sec: string;
81
+ min: string;
82
+ hr: string;
83
+ day: string;
84
+ expand: string;
85
+ fold: string;
86
+ rule: string;
87
+ default_backend: string;
88
+ ingress_class: string;
89
+ port: string;
90
+ pod_ready_num: string;
91
+ pod_replicas_num: string;
92
+ edit_replicas: string;
93
+ cert: string;
94
+ dns_record: string;
95
+ port_mapping: string;
96
+ out_cluster_access: string;
97
+ in_cluster_access: string;
98
+ fail_get_detail: string;
99
+ basic_info: string;
100
+ pod_selector: string;
101
+ ingress_rule: string;
102
+ egress_rule: string;
103
+ ip_address: string;
104
+ last_seen: string;
105
+ service_port: string;
106
+ pod_port: string;
107
+ node_port: string;
108
+ protocol: string;
109
+ key: string;
110
+ value: string;
111
+ path_type: string;
112
+ path: string;
113
+ backend: string;
114
+ belong_to_node: string;
115
+ true: string;
116
+ false: string;
117
+ warning: string;
118
+ normal: string;
119
+ delete_tip: string;
120
+ delete_resource: string;
121
+ password: string;
122
+ username: string;
123
+ host: string;
124
+ no_resource: string;
21
125
  };
22
126
  };
23
127
  'zh-CN': {
@@ -35,15 +139,14 @@ export declare const resources: {
35
139
  cancel: string;
36
140
  delete: string;
37
141
  create: string;
142
+ delete_resource: string;
38
143
  confirm_delete_text: string;
144
+ delete_tip: string;
39
145
  edit: string;
40
146
  namespace: string;
41
147
  name: string;
42
148
  state: string;
43
- status: string;
44
- phase: string;
45
149
  image: string;
46
- replicas: string;
47
150
  created_time: string;
48
151
  label: string;
49
152
  annotation: string;
@@ -55,36 +158,28 @@ export declare const resources: {
55
158
  condition: string;
56
159
  download_yaml: string;
57
160
  detail: string;
58
- node_name: string;
59
161
  restarts: string;
60
162
  updated_time: string;
61
163
  message: string;
62
164
  save: string;
63
- more: string;
64
165
  workload: string;
65
166
  all_namespaces: string;
66
167
  empty: string;
67
168
  schedule: string;
68
169
  lastScheduleTime: string;
69
170
  duration: string;
70
- completions: string;
71
171
  started: string;
72
172
  init_container: string;
173
+ regular_container: string;
73
174
  container: string;
74
175
  redeploy: string;
75
176
  data: string;
76
177
  suspend: string;
77
178
  resume: string;
78
- cluster: string;
79
- storage: string;
80
- network: string;
81
179
  clusterIp: string;
82
180
  sessionAffinity: string;
83
181
  log: string;
84
182
  select_container: string;
85
- wrap: string;
86
- resume_log: string;
87
- log_new_lines: string;
88
183
  fetch_schema_fail: string;
89
184
  obtain_data_error: string;
90
185
  retry: string;
@@ -96,6 +191,7 @@ export declare const resources: {
96
191
  running: string;
97
192
  terminating: string;
98
193
  succeeded: string;
194
+ terminated: string;
99
195
  unknown: string;
100
196
  pending: string;
101
197
  waiting: string;
@@ -109,8 +205,79 @@ export declare const resources: {
109
205
  fold: string;
110
206
  rule: string;
111
207
  default_backend: string;
112
- ingress_rule_type: string;
208
+ ingress_class: string;
113
209
  port: string;
210
+ pod_ready_num: string;
211
+ pod_complete_num: string;
212
+ pod_replicas_num: string;
213
+ edit_replicas: string;
214
+ cert: string;
215
+ dns_record: string;
216
+ port_mapping: string;
217
+ out_cluster_access: string;
218
+ in_cluster_access: string;
219
+ fail_get_detail: string;
220
+ basic_info: string;
221
+ pod: string;
222
+ pod_num: string;
223
+ pod_selector: string;
224
+ ingress_rule: string;
225
+ egress_rule: string;
226
+ ip_address: string;
227
+ last_seen: string;
228
+ service_port: string;
229
+ pod_port: string;
230
+ node_port: string;
231
+ protocol: string;
232
+ key: string;
233
+ value: string;
234
+ show_data_value: string;
235
+ hide_data_value: string;
236
+ path_type: string;
237
+ path: string;
238
+ backend: string;
239
+ belong_to_node: string;
240
+ please_input: string;
241
+ create_failed: string;
242
+ create_failed_tip: string;
243
+ save_failed: string;
244
+ save_failed_tip: string;
245
+ completion_num_tooltip: string;
246
+ ready_num_tooltip: string;
247
+ true: string;
248
+ false: string;
249
+ warning: string;
250
+ normal: string;
251
+ realtime_log: string;
252
+ previous_log: string;
253
+ auto_wrap: string;
254
+ name_can_not_be_empty: string;
255
+ password: string;
256
+ username: string;
257
+ host: string;
258
+ container_num: string;
259
+ edit_resource_success: string;
260
+ redeploy_success_toast: string;
261
+ redeploy_failed_toast: string;
262
+ pause_success_toast: string;
263
+ pause_failed_toast: string;
264
+ resume_success_toast: string;
265
+ resume_failed_toast: string;
266
+ delete_success_toast: string;
267
+ delete_failed_toast: string;
268
+ create_success_toast: string;
269
+ save_yaml_success_toast: string;
270
+ save_replicas_success_toast: string;
271
+ save_replicas_failed_toast: string;
272
+ no_resource: string;
273
+ port_mapping_title_tooltip: string;
274
+ in_cluster_desc: string;
275
+ in_cluster_ip_desc: string;
276
+ in_cluster_external_name_desc: string;
277
+ out_cluster_ip_desc: string;
278
+ out_cluster_node_port_desc: string;
279
+ out_cluster_lb_desc: string;
280
+ out_external_name_desc: string;
114
281
  };
115
282
  };
116
283
  };
@@ -1,5 +1,4 @@
1
1
  export declare const dovetailRefineI18n: import("i18next").i18n;
2
- export * as D2Locales from './locales';
3
2
  export * from './providers';
4
3
  export * from './hooks';
5
4
  export * from './components';
@@ -15,7 +15,110 @@ declare const _default: {
15
15
  retry: string;
16
16
  create_resource: string;
17
17
  edit_resource: string;
18
- status: 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
+ image: string;
28
+ created_time: string;
29
+ label: string;
30
+ annotation: string;
31
+ type: string;
32
+ event: string;
33
+ reason: string;
34
+ object: string;
35
+ note: string;
36
+ condition: string;
37
+ download_yaml: string;
38
+ detail: string;
39
+ restarts: string;
40
+ updated_time: string;
41
+ message: string;
42
+ save: string;
43
+ more: string;
44
+ workload: string;
45
+ all_namespaces: string;
46
+ empty: string;
47
+ schedule: string;
48
+ lastScheduleTime: string;
49
+ duration: string;
50
+ started: string;
51
+ init_container: string;
52
+ regular_container: string;
53
+ container: string;
54
+ redeploy: string;
55
+ data: string;
56
+ suspend: string;
57
+ resume: string;
58
+ clusterIp: string;
59
+ sessionAffinity: string;
60
+ log: string;
61
+ select_container: string;
62
+ wrap: string;
63
+ resume_log: string;
64
+ log_new_lines: string;
65
+ ready: string;
66
+ updating: string;
67
+ completed: string;
68
+ failed: string;
69
+ suspended: string;
70
+ running: string;
71
+ terminating: string;
72
+ terminated: string;
73
+ succeeded: string;
74
+ unknown: string;
75
+ pending: string;
76
+ waiting: string;
77
+ sec: string;
78
+ min: string;
79
+ hr: string;
80
+ day: string;
81
+ expand: string;
82
+ fold: string;
83
+ rule: string;
84
+ default_backend: string;
85
+ ingress_class: string;
86
+ port: string;
87
+ pod_ready_num: string;
88
+ pod_replicas_num: string;
89
+ edit_replicas: string;
90
+ cert: string;
91
+ dns_record: string;
92
+ port_mapping: string;
93
+ out_cluster_access: string;
94
+ in_cluster_access: string;
95
+ fail_get_detail: string;
96
+ basic_info: string;
97
+ pod_selector: string;
98
+ ingress_rule: string;
99
+ egress_rule: string;
100
+ ip_address: string;
101
+ last_seen: string;
102
+ service_port: string;
103
+ pod_port: string;
104
+ node_port: string;
105
+ protocol: string;
106
+ key: string;
107
+ value: string;
108
+ path_type: string;
109
+ path: string;
110
+ backend: string;
111
+ belong_to_node: string;
112
+ true: string;
113
+ false: string;
114
+ warning: string;
115
+ normal: string;
116
+ delete_tip: string;
117
+ delete_resource: string;
118
+ password: string;
119
+ username: string;
120
+ host: string;
121
+ no_resource: string;
19
122
  };
20
123
  };
21
124
  export default _default;
@@ -13,15 +13,14 @@ declare const _default: {
13
13
  cancel: string;
14
14
  delete: string;
15
15
  create: string;
16
+ delete_resource: string;
16
17
  confirm_delete_text: string;
18
+ delete_tip: string;
17
19
  edit: string;
18
20
  namespace: string;
19
21
  name: string;
20
22
  state: string;
21
- status: string;
22
- phase: string;
23
23
  image: string;
24
- replicas: string;
25
24
  created_time: string;
26
25
  label: string;
27
26
  annotation: string;
@@ -33,36 +32,28 @@ declare const _default: {
33
32
  condition: string;
34
33
  download_yaml: string;
35
34
  detail: string;
36
- node_name: string;
37
35
  restarts: string;
38
36
  updated_time: string;
39
37
  message: string;
40
38
  save: string;
41
- more: string;
42
39
  workload: string;
43
40
  all_namespaces: string;
44
41
  empty: string;
45
42
  schedule: string;
46
43
  lastScheduleTime: string;
47
44
  duration: string;
48
- completions: string;
49
45
  started: string;
50
46
  init_container: string;
47
+ regular_container: string;
51
48
  container: string;
52
49
  redeploy: string;
53
50
  data: string;
54
51
  suspend: string;
55
52
  resume: string;
56
- cluster: string;
57
- storage: string;
58
- network: string;
59
53
  clusterIp: string;
60
54
  sessionAffinity: string;
61
55
  log: string;
62
56
  select_container: string;
63
- wrap: string;
64
- resume_log: string;
65
- log_new_lines: string;
66
57
  fetch_schema_fail: string;
67
58
  obtain_data_error: string;
68
59
  retry: string;
@@ -74,6 +65,7 @@ declare const _default: {
74
65
  running: string;
75
66
  terminating: string;
76
67
  succeeded: string;
68
+ terminated: string;
77
69
  unknown: string;
78
70
  pending: string;
79
71
  waiting: string;
@@ -87,8 +79,79 @@ declare const _default: {
87
79
  fold: string;
88
80
  rule: string;
89
81
  default_backend: string;
90
- ingress_rule_type: string;
82
+ ingress_class: string;
91
83
  port: string;
84
+ pod_ready_num: string;
85
+ pod_complete_num: string;
86
+ pod_replicas_num: string;
87
+ edit_replicas: string;
88
+ cert: string;
89
+ dns_record: string;
90
+ port_mapping: string;
91
+ out_cluster_access: string;
92
+ in_cluster_access: string;
93
+ fail_get_detail: string;
94
+ basic_info: string;
95
+ pod: string;
96
+ pod_num: string;
97
+ pod_selector: string;
98
+ ingress_rule: string;
99
+ egress_rule: string;
100
+ ip_address: string;
101
+ last_seen: string;
102
+ service_port: string;
103
+ pod_port: string;
104
+ node_port: string;
105
+ protocol: string;
106
+ key: string;
107
+ value: string;
108
+ show_data_value: string;
109
+ hide_data_value: string;
110
+ path_type: string;
111
+ path: string;
112
+ backend: string;
113
+ belong_to_node: string;
114
+ please_input: string;
115
+ create_failed: string;
116
+ create_failed_tip: string;
117
+ save_failed: string;
118
+ save_failed_tip: string;
119
+ completion_num_tooltip: string;
120
+ ready_num_tooltip: string;
121
+ true: string;
122
+ false: string;
123
+ warning: string;
124
+ normal: string;
125
+ realtime_log: string;
126
+ previous_log: string;
127
+ auto_wrap: string;
128
+ name_can_not_be_empty: string;
129
+ password: string;
130
+ username: string;
131
+ host: string;
132
+ container_num: string;
133
+ edit_resource_success: string;
134
+ redeploy_success_toast: string;
135
+ redeploy_failed_toast: string;
136
+ pause_success_toast: string;
137
+ pause_failed_toast: string;
138
+ resume_success_toast: string;
139
+ resume_failed_toast: string;
140
+ delete_success_toast: string;
141
+ delete_failed_toast: string;
142
+ create_success_toast: string;
143
+ save_yaml_success_toast: string;
144
+ save_replicas_success_toast: string;
145
+ save_replicas_failed_toast: string;
146
+ no_resource: string;
147
+ port_mapping_title_tooltip: string;
148
+ in_cluster_desc: string;
149
+ in_cluster_ip_desc: string;
150
+ in_cluster_external_name_desc: string;
151
+ out_cluster_ip_desc: string;
152
+ out_cluster_node_port_desc: string;
153
+ out_cluster_lb_desc: string;
154
+ out_external_name_desc: string;
92
155
  };
93
156
  };
94
157
  export default _default;
@@ -0,0 +1,9 @@
1
+ import { CronJob } from 'kubernetes-types/batch/v1';
2
+ import { WithId } from '../types';
3
+ import { WorkloadModel } from './workload-model';
4
+ export declare class CronJobModel extends WorkloadModel<CronJob> {
5
+ data: WithId<CronJob>;
6
+ constructor(data: WithId<CronJob>);
7
+ suspend(): WithId<CronJob>;
8
+ resume(): WithId<CronJob>;
9
+ }
@@ -0,0 +1,6 @@
1
+ export * from './job-model';
2
+ export * from './pod-model';
3
+ export * from './pod-metrics-model';
4
+ export * from './resource-model';
5
+ export * from './workload-model';
6
+ export * from './cronjob-model';
@@ -0,0 +1,10 @@
1
+ import { Job } from 'kubernetes-types/batch/v1';
2
+ import { WithId } from '../types';
3
+ import { WorkloadModel } from './workload-model';
4
+ export declare class JobModel extends WorkloadModel<Job> {
5
+ rawYaml: WithId<Job>;
6
+ constructor(rawYaml: WithId<Job>);
7
+ get duration(): number;
8
+ get durationDisplay(): string | undefined;
9
+ get completionsDisplay(): string;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PodMetrics, ResourceQuantity } from 'src/types/metric';
2
+ import { ResourceModel } from './resource-model';
3
+ export declare class PodMetricsModel extends ResourceModel {
4
+ data: PodMetrics;
5
+ usage: ResourceQuantity;
6
+ constructor(data: PodMetrics);
7
+ }
@@ -0,0 +1,15 @@
1
+ import type { Pod } from 'kubernetes-types/core/v1';
2
+ import { ResourceQuantity } from 'src/types/metric';
3
+ import { WithId } from '../types';
4
+ import { WorkloadModel } from './workload-model';
5
+ export declare class PodModel extends WorkloadModel<Pod> {
6
+ rawYaml: WithId<Pod>;
7
+ request: ResourceQuantity;
8
+ limit: ResourceQuantity;
9
+ constructor(rawYaml: WithId<Pod>);
10
+ get imageNames(): string[];
11
+ get restartCount(): number;
12
+ get readyDisplay(): string;
13
+ get readyContainerCount(): number | undefined;
14
+ get containerCount(): number | undefined;
15
+ }
@@ -0,0 +1,17 @@
1
+ import { Resource } from '../types';
2
+ export declare class ResourceModel implements Resource {
3
+ rawYaml: Resource;
4
+ id: Resource['id'];
5
+ apiVersion: Resource['apiVersion'];
6
+ kind: Resource['kind'];
7
+ metadata: Resource['metadata'];
8
+ constructor(rawYaml: Resource);
9
+ get name(): string | undefined;
10
+ get namespace(): string | undefined;
11
+ get labels(): {
12
+ [name: string]: string;
13
+ } | undefined;
14
+ get annotations(): {
15
+ [name: string]: string;
16
+ } | undefined;
17
+ }
@@ -0,0 +1,17 @@
1
+ import type { DaemonSet, Deployment, StatefulSet } from 'kubernetes-types/apps/v1';
2
+ import type { CronJob, Job } from 'kubernetes-types/batch/v1';
3
+ import { Pod } from 'kubernetes-types/core/v1';
4
+ import { WithId } from '../types';
5
+ import { ResourceModel } from './resource-model';
6
+ type WorkloadTypes = Deployment | StatefulSet | Job | DaemonSet | CronJob | Pod;
7
+ export declare class WorkloadModel<T extends WorkloadTypes = WorkloadTypes> extends ResourceModel {
8
+ rawYaml: WithId<T>;
9
+ constructor(rawYaml: WithId<T>);
10
+ get status(): T['status'];
11
+ get spec(): T['spec'];
12
+ get imageNames(): string[];
13
+ get restartCount(): number;
14
+ redeploy(): WithId<T>;
15
+ scale(value: number): WithId<T>;
16
+ }
17
+ export {};
@@ -9,6 +9,8 @@ export declare class DaemonSetModel extends WorkloadModel {
9
9
  spec?: RequiredDaemonSet['spec'];
10
10
  status?: RequiredDaemonSet['status'];
11
11
  constructor(_rawYaml: RequiredDaemonSet, _globalStore: GlobalStore);
12
- get stateDisplay(): WorkloadState.UPDATEING | WorkloadState.READY;
12
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
13
+ get replicas(): number;
14
+ get readyReplicas(): number;
13
15
  }
14
16
  export {};
@@ -9,6 +9,6 @@ export declare class DeploymentModel extends WorkloadModel {
9
9
  spec?: RequiredDeployment['spec'];
10
10
  status?: RequiredDeployment['status'];
11
11
  constructor(_rawYaml: RequiredDeployment, _globalStore: GlobalStore);
12
- get stateDisplay(): WorkloadState.UPDATEING | WorkloadState.READY;
12
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
13
13
  }
14
14
  export {};
@@ -12,3 +12,4 @@ export * from './event-model';
12
12
  export * from './deployment-model';
13
13
  export * from './daemonset-model';
14
14
  export * from './statefulset-model';
15
+ export * from './service-model';
@@ -2,17 +2,19 @@ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
2
  import type { Ingress } from 'kubernetes-types/networking/v1';
3
3
  import { ResourceModel } from './resource-model';
4
4
  type IngressTypes = Required<Ingress> & Unstructured;
5
- type RuleItem = {
6
- serviceName: string;
5
+ export type RuleItem = {
6
+ serviceName?: string;
7
+ resourceName?: string;
7
8
  fullPath: string;
8
9
  pathType: string;
9
10
  host?: string;
10
- servicePort?: number;
11
+ servicePort?: number | string;
11
12
  };
12
13
  export declare class IngressModel extends ResourceModel<IngressTypes> {
13
14
  _rawYaml: IngressTypes;
14
15
  _globalStore: GlobalStore;
15
16
  flattenedRules: RuleItem[];
16
17
  constructor(_rawYaml: IngressTypes, _globalStore: GlobalStore);
18
+ private getFullPath;
17
19
  }
18
20
  export {};
@@ -14,6 +14,8 @@ export declare class JobModel extends WorkloadBaseModel {
14
14
  private getRestarts;
15
15
  get duration(): number;
16
16
  get completionsDisplay(): string;
17
+ get succeeded(): number;
18
+ get completions(): number | undefined;
17
19
  get stateDisplay(): WorkloadState.COMPLETED | WorkloadState.FAILED | WorkloadState.SUSPENDED | WorkloadState.RUNNING;
18
20
  }
19
21
  export {};