@dovetail-v2/refine 0.1.9 → 0.1.11-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 (263) hide show
  1. package/dist/{MonacoYamlDiffEditor-0f76e977.js → MonacoYamlDiffEditor-adaa32ac.js} +1 -1
  2. package/dist/{index-aacb414b.js → index-906cb61f.js} +1161 -874
  3. package/dist/refine.js +208 -203
  4. package/dist/refine.umd.cjs +954 -667
  5. package/dist/style.css +44 -44
  6. package/lib/components/CreateButton/index.d.ts +5 -1
  7. package/lib/components/DropdownMenuItems/EditNodeTaintDropdownMenuItem.d.ts +12 -0
  8. package/lib/components/Dropdowns/CronJobDropdown/index.d.ts +9 -0
  9. package/lib/components/Dropdowns/K8sDropdown/index.d.ts +9 -0
  10. package/lib/components/Dropdowns/PodDropdown/index.d.ts +9 -0
  11. package/lib/components/Dropdowns/ReplicasDropdown/index.d.ts +9 -0
  12. package/lib/components/Dropdowns/WorkloadDropdown/index.d.ts +9 -0
  13. package/lib/components/EditField/index.d.ts +1 -1
  14. package/lib/components/EditMetadataForm/EditNodeTaintForm.d.ts +12 -0
  15. package/lib/components/InternalBaseTable/TableWidgets.d.ts +6 -0
  16. package/lib/components/InternalBaseTable/index.d.ts +43 -0
  17. package/lib/components/ListPage/index.d.ts +2 -2
  18. package/lib/components/NodeTaintsTable/NodeTaintsTable.d.ts +7 -0
  19. package/lib/components/NodeTaintsTable/index.d.ts +1 -0
  20. package/lib/components/PVCDistributeStorage/index.d.ts +1 -1
  21. package/lib/components/ResourceFiledDisplays.d.ts +2 -3
  22. package/lib/components/ResourceLink/index.d.ts +2 -2
  23. package/lib/components/ResourceSelect/index.d.ts +2 -2
  24. package/lib/components/ShowContent/fields.d.ts +2 -0
  25. package/lib/components/ShowContent/groups.d.ts +4 -2
  26. package/lib/components/StateTag/StateTag.d.ts +3 -3
  27. package/lib/components/Table/TableToolBar.d.ts +1 -0
  28. package/lib/components/Table/index.d.ts +11 -43
  29. package/lib/components/TableToolbar/index.d.ts +9 -0
  30. package/lib/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +2 -0
  31. package/lib/components/index.d.ts +7 -5
  32. package/lib/constants/state.d.ts +8 -3
  33. package/lib/contexts/component.d.ts +1 -1
  34. package/lib/hooks/useEagleTable/columns.d.ts +2 -1
  35. package/lib/hooks/useEagleTable/useEagleTable.d.ts +3 -4
  36. package/lib/hooks/useSubmitForm.d.ts +1 -1
  37. package/lib/hooks/useTableData.d.ts +1 -1
  38. package/lib/i18n.d.ts +29 -18
  39. package/lib/locales/zh-CN/index.d.ts +29 -18
  40. package/lib/models/cronjob-model.d.ts +2 -2
  41. package/lib/models/daemonset-model.d.ts +2 -2
  42. package/lib/models/deployment-model.d.ts +2 -2
  43. package/lib/models/job-model.d.ts +2 -2
  44. package/lib/models/node-model.d.ts +2 -2
  45. package/lib/models/persistent-volume-claim.d.ts +2 -0
  46. package/lib/models/persistent-volume.d.ts +3 -0
  47. package/lib/models/statefulset-model.d.ts +2 -2
  48. package/lib/src/App.d.ts +3 -0
  49. package/lib/src/Dovetail.d.ts +18 -0
  50. package/lib/src/components/Breadcrumb/index.d.ts +6 -0
  51. package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +7 -0
  52. package/lib/src/components/ConditionsTable/index.d.ts +1 -0
  53. package/lib/src/components/CreateButton/index.d.ts +2 -0
  54. package/lib/src/components/CronJobDropdown/index.d.ts +9 -0
  55. package/lib/src/components/CronjobJobsTable/index.d.ts +8 -0
  56. package/lib/src/components/DeleteButton/index.d.ts +2 -0
  57. package/lib/src/components/DeleteManyButton/index.d.ts +4 -0
  58. package/lib/src/components/DrawerShow/DrawerShow.d.ts +9 -0
  59. package/lib/src/components/DrawerShow/index.d.ts +1 -0
  60. package/lib/src/components/DurationTime/index.d.ts +6 -0
  61. package/lib/src/components/EditButton/index.d.ts +2 -0
  62. package/lib/src/components/EditField/index.d.ts +15 -0
  63. package/lib/src/components/ErrorContent/index.d.ts +17 -0
  64. package/lib/src/components/EventsTable/EventsTable.d.ts +6 -0
  65. package/lib/src/components/EventsTable/index.d.ts +1 -0
  66. package/lib/src/components/Form/FormModal.d.ts +9 -0
  67. package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
  68. package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
  69. package/lib/src/components/Form/YamlForm.d.ts +29 -0
  70. package/lib/src/components/Form/index.d.ts +7 -0
  71. package/lib/src/components/Form/type.d.ts +17 -0
  72. package/lib/src/components/Form/useFieldsConfig.d.ts +4 -0
  73. package/lib/src/components/Form/useReactHookForm.d.ts +30 -0
  74. package/lib/src/components/Form/useRefineForm.d.ts +13 -0
  75. package/lib/src/components/Form/useYamlForm.d.ts +50 -0
  76. package/lib/src/components/FormErrorAlert/index.d.ts +9 -0
  77. package/lib/src/components/FormLayout/index.d.ts +7 -0
  78. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
  79. package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
  80. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
  81. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
  82. package/lib/src/components/FormWidgets/index.d.ts +4 -0
  83. package/lib/src/components/FormWidgets/widget.d.ts +5 -0
  84. package/lib/src/components/ImageNames/index.d.ts +5 -0
  85. package/lib/src/components/IngressRulesComponent/index.d.ts +5 -0
  86. package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +7 -0
  87. package/lib/src/components/IngressRulesTable/index.d.ts +1 -0
  88. package/lib/src/components/K8sDropdown/index.d.ts +9 -0
  89. package/lib/src/components/KeyValue/KeyValue.d.ts +7 -0
  90. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
  91. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
  92. package/lib/src/components/KeyValue/index.d.ts +3 -0
  93. package/lib/src/components/Layout/index.d.ts +3 -0
  94. package/lib/src/components/LinkFallback/index.d.ts +4 -0
  95. package/lib/src/components/ListPage/index.d.ts +10 -0
  96. package/lib/src/components/Menu/index.d.ts +2 -0
  97. package/lib/src/components/NamespacesFilter/index.d.ts +11 -0
  98. package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +8 -0
  99. package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +1 -0
  100. package/lib/src/components/PVCDistributeStorage/index.d.ts +16 -0
  101. package/lib/src/components/PageShow/PageShow.d.ts +12 -0
  102. package/lib/src/components/PageShow/index.d.ts +1 -0
  103. package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +8 -0
  104. package/lib/src/components/PodContainersTable/index.d.ts +1 -0
  105. package/lib/src/components/PodDropdown/index.d.ts +9 -0
  106. package/lib/src/components/PodLog/index.d.ts +6 -0
  107. package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
  108. package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
  109. package/lib/src/components/PodShellModal/index.d.ts +10 -0
  110. package/lib/src/components/PortsTable/index.d.ts +7 -0
  111. package/lib/src/components/ReferenceLink/index.d.ts +8 -0
  112. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  113. package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +8 -0
  114. package/lib/src/components/ResourceCRUD/create/index.d.ts +8 -0
  115. package/lib/src/components/ResourceCRUD/index.d.ts +4 -0
  116. package/lib/src/components/ResourceCRUD/list/index.d.ts +9 -0
  117. package/lib/src/components/ResourceCRUD/show/index.d.ts +9 -0
  118. package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
  119. package/lib/src/components/ResourceLink/index.d.ts +8 -0
  120. package/lib/src/components/ResourceSelect/index.d.ts +12 -0
  121. package/lib/src/components/ResourceTable/index.d.ts +9 -0
  122. package/lib/src/components/ResourceUsageBar/index.d.ts +8 -0
  123. package/lib/src/components/Separator/index.d.ts +2 -0
  124. package/lib/src/components/ServiceComponents/index.d.ts +10 -0
  125. package/lib/src/components/Shell/ShellToolbar.d.ts +16 -0
  126. package/lib/src/components/Shell/index.d.ts +74 -0
  127. package/lib/src/components/ShowContent/ShowContent.d.ts +18 -0
  128. package/lib/src/components/ShowContent/fields.d.ts +76 -0
  129. package/lib/src/components/ShowContent/groups.d.ts +24 -0
  130. package/lib/src/components/ShowContent/index.d.ts +4 -0
  131. package/lib/src/components/ShowContent/tabs.d.ts +5 -0
  132. package/lib/src/components/StateTag/StateTag.d.ts +10 -0
  133. package/lib/src/components/StateTag/index.d.ts +1 -0
  134. package/lib/src/components/Table/TableToolBar.d.ts +8 -0
  135. package/lib/src/components/Table/TableWidgets.d.ts +6 -0
  136. package/lib/src/components/Table/index.d.ts +43 -0
  137. package/lib/src/components/Tabs/index.d.ts +10 -0
  138. package/lib/src/components/Tags/index.d.ts +6 -0
  139. package/lib/src/components/TextTags/index.d.ts +6 -0
  140. package/lib/src/components/Time/index.d.ts +8 -0
  141. package/lib/src/components/ValueDisplay/index.d.ts +9 -0
  142. package/lib/src/components/WorkloadDropdown/index.d.ts +9 -0
  143. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +9 -0
  144. package/lib/src/components/WorkloadPodsTable/index.d.ts +1 -0
  145. package/lib/src/components/WorkloadReplicas/index.d.ts +17 -0
  146. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +9 -0
  147. package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +19 -0
  148. package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +27 -0
  149. package/lib/src/components/YamlEditor/index.d.ts +1 -0
  150. package/lib/src/components/YamlEditor/style.d.ts +11 -0
  151. package/lib/src/components/YamlEditor/yaml.worker.d.ts +1 -0
  152. package/lib/src/components/index.d.ts +49 -0
  153. package/lib/src/constants/auth.d.ts +5 -0
  154. package/lib/src/constants/index.d.ts +3 -0
  155. package/lib/src/constants/k8s.d.ts +522 -0
  156. package/lib/src/constants/state.d.ts +15 -0
  157. package/lib/src/contexts/component.d.ts +8 -0
  158. package/lib/src/contexts/configs.d.ts +4 -0
  159. package/lib/src/contexts/global-store.d.ts +6 -0
  160. package/lib/src/contexts/index.d.ts +3 -0
  161. package/lib/src/hooks/index.d.ts +8 -0
  162. package/lib/src/hooks/useDeleteModal/index.d.ts +1 -0
  163. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +8 -0
  164. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +7 -0
  165. package/lib/src/hooks/useDownloadYAML.d.ts +7 -0
  166. package/lib/src/hooks/useEagleTable/columns.d.ts +47 -0
  167. package/lib/src/hooks/useEagleTable/index.d.ts +2 -0
  168. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +56 -0
  169. package/lib/src/hooks/useEdit.d.ts +4 -0
  170. package/lib/src/hooks/useGlobalStore.d.ts +3 -0
  171. package/lib/src/hooks/useK8sYamlEditor.d.ts +5 -0
  172. package/lib/src/hooks/useNamespaceRefineFilter.d.ts +5 -0
  173. package/lib/src/hooks/useOpenForm.d.ts +8 -0
  174. package/lib/src/hooks/useSchema.d.ts +21 -0
  175. package/lib/src/hooks/useSubmitForm.d.ts +14 -0
  176. package/lib/src/hooks/useTableData.d.ts +20 -0
  177. package/lib/src/i18n.d.ts +371 -0
  178. package/lib/src/index.d.ts +12 -0
  179. package/lib/src/locales/en-US/index.d.ts +175 -0
  180. package/lib/src/locales/index.d.ts +2 -0
  181. package/lib/src/locales/zh-CN/index.d.ts +193 -0
  182. package/lib/src/main.d.ts +3 -0
  183. package/lib/src/models/cronjob-model.d.ts +15 -0
  184. package/lib/src/models/daemonset-model.d.ts +15 -0
  185. package/lib/src/models/deployment-model.d.ts +13 -0
  186. package/lib/src/models/event-model.d.ts +7 -0
  187. package/lib/src/models/index.d.ts +19 -0
  188. package/lib/src/models/ingress-model.d.ts +20 -0
  189. package/lib/src/models/job-model.d.ts +20 -0
  190. package/lib/src/models/network-policy-model.d.ts +9 -0
  191. package/lib/src/models/node-model.d.ts +17 -0
  192. package/lib/src/models/persistent-volume-claim.d.ts +13 -0
  193. package/lib/src/models/persistent-volume.d.ts +13 -0
  194. package/lib/src/models/pod-metrics-model.d.ts +8 -0
  195. package/lib/src/models/pod-model.d.ts +20 -0
  196. package/lib/src/models/resource-model.d.ts +21 -0
  197. package/lib/src/models/service-model.d.ts +24 -0
  198. package/lib/src/models/statefulset-model.d.ts +13 -0
  199. package/lib/src/models/storage-class.d.ts +16 -0
  200. package/lib/src/models/types/index.d.ts +1 -0
  201. package/lib/src/models/types/metric.d.ts +25 -0
  202. package/lib/src/models/workload-base-model.d.ts +12 -0
  203. package/lib/src/models/workload-model.d.ts +18 -0
  204. package/lib/src/pages/configmaps/index.d.ts +4 -0
  205. package/lib/src/pages/cronjobs/create/index.d.ts +3 -0
  206. package/lib/src/pages/cronjobs/index.d.ts +3 -0
  207. package/lib/src/pages/cronjobs/list/index.d.ts +3 -0
  208. package/lib/src/pages/cronjobs/show/index.d.ts +3 -0
  209. package/lib/src/pages/daemonsets/create/index.d.ts +3 -0
  210. package/lib/src/pages/daemonsets/index.d.ts +3 -0
  211. package/lib/src/pages/daemonsets/list/index.d.ts +3 -0
  212. package/lib/src/pages/daemonsets/show/index.d.ts +3 -0
  213. package/lib/src/pages/deployments/index.d.ts +2 -0
  214. package/lib/src/pages/deployments/list/index.d.ts +3 -0
  215. package/lib/src/pages/deployments/show/index.d.ts +3 -0
  216. package/lib/src/pages/ingresses/index.d.ts +4 -0
  217. package/lib/src/pages/jobs/index.d.ts +4 -0
  218. package/lib/src/pages/networkPolicies/index.d.ts +4 -0
  219. package/lib/src/pages/nodes/index.d.ts +2 -0
  220. package/lib/src/pages/nodes/list/index.d.ts +3 -0
  221. package/lib/src/pages/nodes/show/index.d.ts +3 -0
  222. package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
  223. package/lib/src/pages/persistentvolumes/index.d.ts +4 -0
  224. package/lib/src/pages/pods/create/index.d.ts +3 -0
  225. package/lib/src/pages/pods/index.d.ts +3 -0
  226. package/lib/src/pages/pods/list/index.d.ts +3 -0
  227. package/lib/src/pages/pods/show/index.d.ts +3 -0
  228. package/lib/src/pages/secrets/index.d.ts +4 -0
  229. package/lib/src/pages/services/index.d.ts +4 -0
  230. package/lib/src/pages/statefulsets/index.d.ts +4 -0
  231. package/lib/src/pages/storageclasses/form/index.d.ts +9 -0
  232. package/lib/src/pages/storageclasses/index.d.ts +48 -0
  233. package/lib/src/plugins/index.d.ts +4 -0
  234. package/lib/src/plugins/model-plugin.d.ts +13 -0
  235. package/lib/src/plugins/relation-plugin.d.ts +26 -0
  236. package/lib/src/plugins/type.d.ts +8 -0
  237. package/lib/src/providers/index.d.ts +1 -0
  238. package/lib/src/providers/router-provider/index.d.ts +21 -0
  239. package/lib/src/styles/button.d.ts +1 -0
  240. package/lib/src/styles/modal.d.ts +1 -0
  241. package/lib/src/types/index.d.ts +1 -0
  242. package/lib/src/types/resource.d.ts +62 -0
  243. package/lib/src/utils/addId.d.ts +3 -0
  244. package/lib/src/utils/download.d.ts +1 -0
  245. package/lib/src/utils/error.d.ts +20 -0
  246. package/lib/src/utils/form.d.ts +3 -0
  247. package/lib/src/utils/index.d.ts +1 -0
  248. package/lib/src/utils/k8s.d.ts +3 -0
  249. package/lib/src/utils/labels.d.ts +9 -0
  250. package/lib/src/utils/match-selector.d.ts +3 -0
  251. package/lib/src/utils/openapi.d.ts +40 -0
  252. package/lib/src/utils/schema.d.ts +18 -0
  253. package/lib/src/utils/selector.d.ts +3 -0
  254. package/lib/src/utils/shell.d.ts +16 -0
  255. package/lib/src/utils/storage.d.ts +13 -0
  256. package/lib/src/utils/string.d.ts +1 -0
  257. package/lib/src/utils/time.d.ts +13 -0
  258. package/lib/src/utils/unit.d.ts +12 -0
  259. package/lib/src/utils/yaml.d.ts +2 -0
  260. package/lib/styles/tag.d.ts +1 -0
  261. package/lib/types/resource.d.ts +3 -3
  262. package/lib/vite.config.d.ts +2 -0
  263. package/package.json +5 -5
@@ -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
+ volume_mode: string;
164
+ access_mode: string;
165
+ block: string;
166
+ pv_phase_available: string;
167
+ pv_phase_bound: string;
168
+ pv_phase_released: string;
169
+ pv_phase_failed: string;
170
+ pv_phase_pending: string;
171
+ exec_pod: string;
172
+ search: string;
173
+ };
174
+ };
175
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import './en-US';
2
+ import './zh-CN';
@@ -0,0 +1,193 @@
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
+ cancel: string;
14
+ delete: string;
15
+ create: string;
16
+ delete_resource: string;
17
+ confirm_delete_text: string;
18
+ delete_tip: string;
19
+ edit: string;
20
+ namespace: string;
21
+ name: string;
22
+ state: string;
23
+ image: string;
24
+ created_time: string;
25
+ label: string;
26
+ annotation: string;
27
+ type: string;
28
+ event: string;
29
+ reason: string;
30
+ object: string;
31
+ note: string;
32
+ condition: string;
33
+ download_yaml: string;
34
+ detail: string;
35
+ restarts: string;
36
+ updated_time: string;
37
+ message: string;
38
+ save: string;
39
+ workload: string;
40
+ all_namespaces: string;
41
+ empty: string;
42
+ schedule: string;
43
+ lastScheduleTime: string;
44
+ duration: string;
45
+ started: string;
46
+ init_container: string;
47
+ regular_container: string;
48
+ container: string;
49
+ redeploy: string;
50
+ data: string;
51
+ suspend: string;
52
+ resume: string;
53
+ clusterIp: string;
54
+ sessionAffinity: string;
55
+ log: string;
56
+ select_container: string;
57
+ fetch_schema_fail: string;
58
+ obtain_data_error: string;
59
+ retry: string;
60
+ ready: string;
61
+ updating: string;
62
+ completed: string;
63
+ failed: string;
64
+ suspended: string;
65
+ running: string;
66
+ terminating: string;
67
+ succeeded: string;
68
+ terminated: string;
69
+ unknown: string;
70
+ pending: string;
71
+ waiting: string;
72
+ create_resource: string;
73
+ edit_resource: string;
74
+ sec: string;
75
+ min: string;
76
+ hr: string;
77
+ day: string;
78
+ expand: string;
79
+ fold: string;
80
+ rule: string;
81
+ default_backend: string;
82
+ ingress_class: string;
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;
155
+ only_support_one_yaml: string;
156
+ support: string;
157
+ not_support: string;
158
+ stopped: string;
159
+ any_node_ip: string;
160
+ storage_class: string;
161
+ persistent_volume: string;
162
+ provisioner: string;
163
+ file_system: string;
164
+ capacity: string;
165
+ distributed: string;
166
+ volume_mode: string;
167
+ access_mode: string;
168
+ block: string;
169
+ pv_phase_available: string;
170
+ pv_phase_bound: string;
171
+ pv_phase_released: string;
172
+ pv_phase_failed: string;
173
+ pv_phase_pending: string;
174
+ font_size: string;
175
+ download_shell_content: string;
176
+ clear_shell: string;
177
+ disconnected: string;
178
+ connecting: string;
179
+ reconnect: string;
180
+ search: string;
181
+ pvc: string;
182
+ pv: string;
183
+ csi: string;
184
+ retain: string;
185
+ default_sc: string;
186
+ reclaim_policy: string;
187
+ allow_expand: string;
188
+ edit_distribute_storage: string;
189
+ edit_distribute_storage_success_toast: string;
190
+ edit_distribute_storage_failed_toast: string;
191
+ };
192
+ };
193
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './i18n';
2
+ import 'antd/dist/antd.css';
3
+ import '@cloudtower/eagle/dist/style.css';
@@ -0,0 +1,15 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { CronJob } from 'kubernetes-types/batch/v1';
3
+ import { WorkloadState } from '../constants';
4
+ import { WorkloadBaseModel } from './workload-base-model';
5
+ type RequiredCronJob = Required<CronJob> & Unstructured;
6
+ export declare class CronJobModel extends WorkloadBaseModel {
7
+ _rawYaml: RequiredCronJob;
8
+ spec?: RequiredCronJob['spec'];
9
+ status?: RequiredCronJob['status'];
10
+ constructor(_rawYaml: RequiredCronJob, _globalStore: GlobalStore);
11
+ get stateDisplay(): WorkloadState.SUSPENDED | WorkloadState.RUNNING;
12
+ suspend(): RequiredCronJob;
13
+ resume(): RequiredCronJob;
14
+ }
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { DaemonSet } from 'kubernetes-types/apps/v1';
3
+ import { WorkloadState } from '../constants';
4
+ import { WorkloadModel } from './workload-model';
5
+ type RequiredDaemonSet = Required<DaemonSet> & Unstructured;
6
+ export declare class DaemonSetModel extends WorkloadModel {
7
+ _rawYaml: RequiredDaemonSet;
8
+ spec?: RequiredDaemonSet['spec'];
9
+ status?: RequiredDaemonSet['status'];
10
+ constructor(_rawYaml: RequiredDaemonSet, _globalStore: GlobalStore);
11
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY;
12
+ get replicas(): number;
13
+ get readyReplicas(): number;
14
+ }
15
+ export {};
@@ -0,0 +1,13 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { Deployment } from 'kubernetes-types/apps/v1';
3
+ import { WorkloadState } from '../constants';
4
+ import { WorkloadModel } from './workload-model';
5
+ type RequiredDeployment = Required<Deployment> & Unstructured;
6
+ export declare class DeploymentModel extends WorkloadModel {
7
+ _rawYaml: RequiredDeployment;
8
+ spec?: RequiredDeployment['spec'];
9
+ status?: RequiredDeployment['status'];
10
+ constructor(_rawYaml: RequiredDeployment, _globalStore: GlobalStore);
11
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY | WorkloadState.STOPPED;
12
+ }
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { Event } from 'kubernetes-types/core/v1';
3
+ import { ResourceModel } from './resource-model';
4
+ export declare class EventModel extends ResourceModel {
5
+ _rawYaml: Unstructured & Event;
6
+ constructor(_rawYaml: Unstructured & Event, _globalStore: GlobalStore);
7
+ }
@@ -0,0 +1,19 @@
1
+ export * from './ingress-model';
2
+ export * from './network-policy-model';
3
+ export * from './job-model';
4
+ export * from './workload-model';
5
+ export * from './workload-base-model';
6
+ export * from './pod-model';
7
+ export * from './pod-metrics-model';
8
+ export * from './resource-model';
9
+ export * from './workload-model';
10
+ export * from './cronjob-model';
11
+ export * from './event-model';
12
+ export * from './deployment-model';
13
+ export * from './daemonset-model';
14
+ export * from './statefulset-model';
15
+ export * from './service-model';
16
+ export * from './node-model';
17
+ export * from './storage-class';
18
+ export * from './persistent-volume';
19
+ export * from './persistent-volume-claim';
@@ -0,0 +1,20 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { Ingress } from 'kubernetes-types/networking/v1';
3
+ import { ResourceModel } from './resource-model';
4
+ type IngressTypes = Required<Ingress> & Unstructured;
5
+ export type RuleItem = {
6
+ serviceName?: string;
7
+ resourceName?: string;
8
+ fullPath: string;
9
+ pathType: string;
10
+ host?: string;
11
+ servicePort?: number | string;
12
+ };
13
+ export declare class IngressModel extends ResourceModel<IngressTypes> {
14
+ _rawYaml: IngressTypes;
15
+ flattenedRules: RuleItem[];
16
+ constructor(_rawYaml: IngressTypes, _globalStore: GlobalStore);
17
+ init(): Promise<void>;
18
+ private getFullPath;
19
+ }
20
+ export {};
@@ -0,0 +1,20 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { Job } from 'kubernetes-types/batch/v1';
3
+ import { WorkloadState } from '../constants';
4
+ import { WorkloadBaseModel } from './workload-base-model';
5
+ type RequiredJob = Required<Job> & Unstructured;
6
+ export declare class JobModel extends WorkloadBaseModel {
7
+ _rawYaml: RequiredJob;
8
+ restarts: number;
9
+ spec?: RequiredJob['spec'];
10
+ status?: RequiredJob['status'];
11
+ constructor(_rawYaml: RequiredJob, _globalStore: GlobalStore);
12
+ init(): Promise<void>;
13
+ private getRestarts;
14
+ get duration(): number;
15
+ get completionsDisplay(): string;
16
+ get succeeded(): number;
17
+ get completions(): number | undefined;
18
+ get stateDisplay(): WorkloadState.COMPLETED | WorkloadState.FAILED | WorkloadState.SUSPENDED | WorkloadState.RUNNING;
19
+ }
20
+ export {};
@@ -0,0 +1,9 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { NetworkPolicy } from 'kubernetes-types/networking/v1';
3
+ import { ResourceModel } from './resource-model';
4
+ type NetworkPolicyTypes = Required<NetworkPolicy> & Unstructured;
5
+ export declare class NetworkPolicyModel extends ResourceModel<NetworkPolicyTypes> {
6
+ _rawYaml: NetworkPolicyTypes;
7
+ constructor(_rawYaml: NetworkPolicyTypes, _globalStore: GlobalStore);
8
+ }
9
+ export {};
@@ -0,0 +1,17 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { Node } from 'kubernetes-types/core/v1';
3
+ import { WorkloadBaseModel } from './workload-base-model';
4
+ type RequiredNode = Required<Node> & Unstructured;
5
+ export declare enum NodeRole {
6
+ ControlPlane = "Control Plane",
7
+ Worker = "Worker"
8
+ }
9
+ export declare class NodeModel extends WorkloadBaseModel {
10
+ _rawYaml: RequiredNode;
11
+ constructor(_rawYaml: RequiredNode, _globalStore: GlobalStore);
12
+ get role(): NodeRole;
13
+ get ip(): string | undefined;
14
+ get nodeGroupName(): string | undefined;
15
+ get isControlPlane(): boolean;
16
+ }
17
+ export {};
@@ -0,0 +1,13 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { PersistentVolumeClaim } from 'kubernetes-types/core/v1';
3
+ import { ResourceModel } from './resource-model';
4
+ type RequiredPersistentClaimVolume = Required<PersistentVolumeClaim> & Unstructured;
5
+ export declare class PersistentVolumeClaimModel extends ResourceModel {
6
+ _rawYaml: RequiredPersistentClaimVolume;
7
+ spec: Required<PersistentVolumeClaim>['spec'];
8
+ constructor(_rawYaml: RequiredPersistentClaimVolume, _globalStore: GlobalStore);
9
+ get phase(): string | undefined;
10
+ get pv(): string | undefined;
11
+ updateDistributeStorage(distributeStorage: number): RequiredPersistentClaimVolume;
12
+ }
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { PersistentVolume } from 'kubernetes-types/core/v1';
3
+ import { ResourceModel } from './resource-model';
4
+ type RequiredPersistentVolume = Required<PersistentVolume> & Unstructured;
5
+ export declare class PersistentVolumeModel extends ResourceModel {
6
+ _rawYaml: RequiredPersistentVolume;
7
+ spec: PersistentVolume['spec'];
8
+ constructor(_rawYaml: RequiredPersistentVolume, _globalStore: GlobalStore);
9
+ get phase(): string | undefined;
10
+ get csi(): string | undefined;
11
+ get pvc(): string | undefined;
12
+ }
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { GlobalStore } from 'k8s-api-provider';
2
+ import { ResourceModel } from './resource-model';
3
+ import { PodMetrics, ResourceQuantity } from './types/metric';
4
+ export declare class PodMetricsModel extends ResourceModel<PodMetrics> {
5
+ _rawYaml: PodMetrics;
6
+ usage: ResourceQuantity;
7
+ constructor(_rawYaml: PodMetrics, _globalStore: GlobalStore);
8
+ }
@@ -0,0 +1,20 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { Pod } from 'kubernetes-types/core/v1';
3
+ import { ResourceQuantity } from './types/metric';
4
+ import { WorkloadBaseModel } from './workload-base-model';
5
+ type RequiredPod = Required<Pod> & Unstructured;
6
+ export declare class PodModel extends WorkloadBaseModel {
7
+ _rawYaml: RequiredPod;
8
+ request: ResourceQuantity;
9
+ limit: ResourceQuantity;
10
+ spec?: RequiredPod['spec'];
11
+ status?: RequiredPod['status'];
12
+ constructor(_rawYaml: RequiredPod, _globalStore: GlobalStore);
13
+ get imageNames(): string[];
14
+ get restartCount(): number;
15
+ get readyDisplay(): string;
16
+ get readyContainerCount(): number | undefined;
17
+ get containerCount(): number;
18
+ get stateDisplay(): string;
19
+ }
20
+ export {};
@@ -0,0 +1,21 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ export type IResourceModel = Unstructured & ResourceModel;
3
+ export declare class ResourceModel<T extends Unstructured = Unstructured> {
4
+ _rawYaml: T;
5
+ id: string;
6
+ apiVersion: T['apiVersion'];
7
+ kind: T['kind'];
8
+ metadata: T['metadata'];
9
+ _globalStore: GlobalStore;
10
+ constructor(_rawYaml: T, _globalStore: GlobalStore);
11
+ init(): Promise<void>;
12
+ get name(): string | undefined;
13
+ get namespace(): string | undefined;
14
+ get labels(): {
15
+ [name: string]: string;
16
+ } | undefined;
17
+ get annotations(): {
18
+ [name: string]: string;
19
+ } | undefined;
20
+ restore(): T;
21
+ }
@@ -0,0 +1,24 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { Service } from 'kubernetes-types/core/v1';
3
+ import { ResourceModel } from './resource-model';
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
+ }
12
+ export declare class ServiceModel extends ResourceModel<ServiceType> {
13
+ _rawYaml: ServiceType;
14
+ constructor(_rawYaml: ServiceType, _globalStore: GlobalStore);
15
+ get displayType(): string | undefined;
16
+ get dnsRecord(): string;
17
+ get displayPortMapping(): {
18
+ servicePort: number;
19
+ nodePort: number | undefined;
20
+ link: string;
21
+ targetPort: string | number | undefined;
22
+ protocol: string | undefined;
23
+ }[] | undefined;
24
+ }
@@ -0,0 +1,13 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import { StatefulSet } from 'kubernetes-types/apps/v1';
3
+ import { WorkloadState } from '../constants';
4
+ import { WorkloadModel } from './workload-model';
5
+ type RequiredStatefulSet = Required<StatefulSet> & Unstructured;
6
+ export declare class StatefulSetModel extends WorkloadModel {
7
+ _rawYaml: RequiredStatefulSet;
8
+ spec?: RequiredStatefulSet['spec'];
9
+ status?: RequiredStatefulSet['status'];
10
+ constructor(_rawYaml: RequiredStatefulSet, _globalStore: GlobalStore);
11
+ get stateDisplay(): WorkloadState.UPDATING | WorkloadState.READY | WorkloadState.STOPPED;
12
+ }
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import { GlobalStore, Unstructured } from 'k8s-api-provider';
2
+ import type { PersistentVolume } from 'kubernetes-types/core/v1';
3
+ import type { StorageClass } from 'kubernetes-types/storage/v1';
4
+ import { PersistentVolumeModel } from './persistent-volume';
5
+ import { ResourceModel } from './resource-model';
6
+ type RequiredStorageClass = Required<StorageClass> & Unstructured;
7
+ export declare class StorageClassModel extends ResourceModel {
8
+ _rawYaml: RequiredStorageClass;
9
+ pvs: PersistentVolumeModel[];
10
+ constructor(_rawYaml: RequiredStorageClass, _globalStore: GlobalStore);
11
+ init(): Promise<void>;
12
+ filterPV(pv: PersistentVolume | PersistentVolumeModel, scName?: string): boolean;
13
+ get isDefaultSC(): string | undefined;
14
+ get reclaimPolicy(): string;
15
+ }
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './metric';