@dovetail-v2/refine 0.1.11-alpha.1 → 0.1.11

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 (234) hide show
  1. package/dist/{MonacoYamlDiffEditor-1c2c2dd9.js → MonacoYamlDiffEditor-10d71161.js} +1 -1
  2. package/dist/{index-e30b5cd6.js → index-bf5bacd7.js} +744 -556
  3. package/dist/refine.js +3 -1
  4. package/dist/refine.umd.cjs +738 -550
  5. package/dist/style.css +143 -6
  6. package/lib/components/EditField/index.d.ts +3 -0
  7. package/lib/components/EditMetadataForm/KeyValueTableForm.d.ts +15 -0
  8. package/lib/components/EditMetadataForm/LabelFormatPopover.d.ts +3 -0
  9. package/lib/components/ResourceSelect/index.d.ts +2 -2
  10. package/lib/i18n.d.ts +20 -0
  11. package/lib/locales/zh-CN/index.d.ts +20 -0
  12. package/lib/utils/index.d.ts +1 -0
  13. package/lib/utils/validation.d.ts +8 -0
  14. package/package.json +9 -9
  15. package/lib/components/CronJobDropdown/index.d.ts +0 -9
  16. package/lib/components/K8sDropdown/index.d.ts +0 -9
  17. package/lib/components/PodDropdown/index.d.ts +0 -9
  18. package/lib/components/ReplicasDropdown/index.d.ts +0 -9
  19. package/lib/components/Table/TableToolBar.d.ts +0 -9
  20. package/lib/components/Table/TableWidgets.d.ts +0 -6
  21. package/lib/components/WorkloadDropdown/index.d.ts +0 -9
  22. package/lib/src/App.d.ts +0 -3
  23. package/lib/src/Dovetail.d.ts +0 -18
  24. package/lib/src/components/Breadcrumb/index.d.ts +0 -6
  25. package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +0 -7
  26. package/lib/src/components/ConditionsTable/index.d.ts +0 -1
  27. package/lib/src/components/CreateButton/index.d.ts +0 -2
  28. package/lib/src/components/CronJobDropdown/index.d.ts +0 -9
  29. package/lib/src/components/CronjobJobsTable/index.d.ts +0 -8
  30. package/lib/src/components/DeleteButton/index.d.ts +0 -2
  31. package/lib/src/components/DeleteManyButton/index.d.ts +0 -4
  32. package/lib/src/components/DrawerShow/DrawerShow.d.ts +0 -9
  33. package/lib/src/components/DrawerShow/index.d.ts +0 -1
  34. package/lib/src/components/DurationTime/index.d.ts +0 -6
  35. package/lib/src/components/EditButton/index.d.ts +0 -2
  36. package/lib/src/components/EditField/index.d.ts +0 -15
  37. package/lib/src/components/ErrorContent/index.d.ts +0 -17
  38. package/lib/src/components/EventsTable/EventsTable.d.ts +0 -6
  39. package/lib/src/components/EventsTable/index.d.ts +0 -1
  40. package/lib/src/components/Form/FormModal.d.ts +0 -9
  41. package/lib/src/components/Form/RefineFormContent.d.ts +0 -12
  42. package/lib/src/components/Form/RefineFormPage.d.ts +0 -7
  43. package/lib/src/components/Form/YamlForm.d.ts +0 -29
  44. package/lib/src/components/Form/index.d.ts +0 -7
  45. package/lib/src/components/Form/type.d.ts +0 -17
  46. package/lib/src/components/Form/useFieldsConfig.d.ts +0 -4
  47. package/lib/src/components/Form/useReactHookForm.d.ts +0 -30
  48. package/lib/src/components/Form/useRefineForm.d.ts +0 -13
  49. package/lib/src/components/Form/useYamlForm.d.ts +0 -50
  50. package/lib/src/components/FormErrorAlert/index.d.ts +0 -9
  51. package/lib/src/components/FormLayout/index.d.ts +0 -7
  52. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +0 -6
  53. package/lib/src/components/FormWidgets/MetadataForm.d.ts +0 -2
  54. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +0 -51
  55. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -9
  56. package/lib/src/components/FormWidgets/index.d.ts +0 -4
  57. package/lib/src/components/FormWidgets/widget.d.ts +0 -5
  58. package/lib/src/components/ImageNames/index.d.ts +0 -5
  59. package/lib/src/components/IngressRulesComponent/index.d.ts +0 -5
  60. package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
  61. package/lib/src/components/IngressRulesTable/index.d.ts +0 -1
  62. package/lib/src/components/K8sDropdown/index.d.ts +0 -9
  63. package/lib/src/components/KeyValue/KeyValue.d.ts +0 -7
  64. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +0 -6
  65. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +0 -5
  66. package/lib/src/components/KeyValue/index.d.ts +0 -3
  67. package/lib/src/components/Layout/index.d.ts +0 -3
  68. package/lib/src/components/LinkFallback/index.d.ts +0 -4
  69. package/lib/src/components/ListPage/index.d.ts +0 -10
  70. package/lib/src/components/Menu/index.d.ts +0 -2
  71. package/lib/src/components/NamespacesFilter/index.d.ts +0 -11
  72. package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
  73. package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
  74. package/lib/src/components/PVCDistributeStorage/index.d.ts +0 -16
  75. package/lib/src/components/PageShow/PageShow.d.ts +0 -12
  76. package/lib/src/components/PageShow/index.d.ts +0 -1
  77. package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +0 -8
  78. package/lib/src/components/PodContainersTable/index.d.ts +0 -1
  79. package/lib/src/components/PodDropdown/index.d.ts +0 -9
  80. package/lib/src/components/PodLog/index.d.ts +0 -6
  81. package/lib/src/components/PodSelectorTable/index.d.ts +0 -6
  82. package/lib/src/components/PodShellModal/PodShell.d.ts +0 -18
  83. package/lib/src/components/PodShellModal/index.d.ts +0 -10
  84. package/lib/src/components/PortsTable/index.d.ts +0 -7
  85. package/lib/src/components/ReferenceLink/index.d.ts +0 -8
  86. package/lib/src/components/ReplicasDropdown/index.d.ts +0 -9
  87. package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +0 -8
  88. package/lib/src/components/ResourceCRUD/create/index.d.ts +0 -8
  89. package/lib/src/components/ResourceCRUD/index.d.ts +0 -4
  90. package/lib/src/components/ResourceCRUD/list/index.d.ts +0 -9
  91. package/lib/src/components/ResourceCRUD/show/index.d.ts +0 -9
  92. package/lib/src/components/ResourceFiledDisplays.d.ts +0 -7
  93. package/lib/src/components/ResourceLink/index.d.ts +0 -8
  94. package/lib/src/components/ResourceSelect/index.d.ts +0 -12
  95. package/lib/src/components/ResourceTable/index.d.ts +0 -9
  96. package/lib/src/components/ResourceUsageBar/index.d.ts +0 -8
  97. package/lib/src/components/Separator/index.d.ts +0 -2
  98. package/lib/src/components/ServiceComponents/index.d.ts +0 -10
  99. package/lib/src/components/Shell/ShellToolbar.d.ts +0 -16
  100. package/lib/src/components/Shell/index.d.ts +0 -74
  101. package/lib/src/components/ShowContent/ShowContent.d.ts +0 -18
  102. package/lib/src/components/ShowContent/fields.d.ts +0 -76
  103. package/lib/src/components/ShowContent/groups.d.ts +0 -24
  104. package/lib/src/components/ShowContent/index.d.ts +0 -4
  105. package/lib/src/components/ShowContent/tabs.d.ts +0 -5
  106. package/lib/src/components/StateTag/StateTag.d.ts +0 -10
  107. package/lib/src/components/StateTag/index.d.ts +0 -1
  108. package/lib/src/components/Table/TableToolBar.d.ts +0 -8
  109. package/lib/src/components/Table/TableWidgets.d.ts +0 -6
  110. package/lib/src/components/Table/index.d.ts +0 -43
  111. package/lib/src/components/Tabs/index.d.ts +0 -10
  112. package/lib/src/components/Tags/index.d.ts +0 -6
  113. package/lib/src/components/TextTags/index.d.ts +0 -6
  114. package/lib/src/components/Time/index.d.ts +0 -8
  115. package/lib/src/components/ValueDisplay/index.d.ts +0 -9
  116. package/lib/src/components/WorkloadDropdown/index.d.ts +0 -9
  117. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
  118. package/lib/src/components/WorkloadPodsTable/index.d.ts +0 -1
  119. package/lib/src/components/WorkloadReplicas/index.d.ts +0 -17
  120. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
  121. package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
  122. package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
  123. package/lib/src/components/YamlEditor/index.d.ts +0 -1
  124. package/lib/src/components/YamlEditor/style.d.ts +0 -11
  125. package/lib/src/components/YamlEditor/yaml.worker.d.ts +0 -1
  126. package/lib/src/components/index.d.ts +0 -49
  127. package/lib/src/constants/auth.d.ts +0 -5
  128. package/lib/src/constants/index.d.ts +0 -3
  129. package/lib/src/constants/k8s.d.ts +0 -522
  130. package/lib/src/constants/state.d.ts +0 -15
  131. package/lib/src/contexts/component.d.ts +0 -8
  132. package/lib/src/contexts/configs.d.ts +0 -4
  133. package/lib/src/contexts/global-store.d.ts +0 -6
  134. package/lib/src/contexts/index.d.ts +0 -3
  135. package/lib/src/hooks/index.d.ts +0 -8
  136. package/lib/src/hooks/useDeleteModal/index.d.ts +0 -1
  137. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -8
  138. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
  139. package/lib/src/hooks/useDownloadYAML.d.ts +0 -7
  140. package/lib/src/hooks/useEagleTable/columns.d.ts +0 -47
  141. package/lib/src/hooks/useEagleTable/index.d.ts +0 -2
  142. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +0 -56
  143. package/lib/src/hooks/useEdit.d.ts +0 -4
  144. package/lib/src/hooks/useGlobalStore.d.ts +0 -3
  145. package/lib/src/hooks/useK8sYamlEditor.d.ts +0 -5
  146. package/lib/src/hooks/useNamespaceRefineFilter.d.ts +0 -5
  147. package/lib/src/hooks/useOpenForm.d.ts +0 -8
  148. package/lib/src/hooks/useSchema.d.ts +0 -21
  149. package/lib/src/hooks/useSubmitForm.d.ts +0 -14
  150. package/lib/src/hooks/useTableData.d.ts +0 -20
  151. package/lib/src/i18n.d.ts +0 -371
  152. package/lib/src/index.d.ts +0 -12
  153. package/lib/src/locales/en-US/index.d.ts +0 -175
  154. package/lib/src/locales/index.d.ts +0 -2
  155. package/lib/src/locales/zh-CN/index.d.ts +0 -193
  156. package/lib/src/main.d.ts +0 -3
  157. package/lib/src/models/cronjob-model.d.ts +0 -15
  158. package/lib/src/models/daemonset-model.d.ts +0 -15
  159. package/lib/src/models/deployment-model.d.ts +0 -13
  160. package/lib/src/models/event-model.d.ts +0 -7
  161. package/lib/src/models/index.d.ts +0 -19
  162. package/lib/src/models/ingress-model.d.ts +0 -20
  163. package/lib/src/models/job-model.d.ts +0 -20
  164. package/lib/src/models/network-policy-model.d.ts +0 -9
  165. package/lib/src/models/node-model.d.ts +0 -17
  166. package/lib/src/models/persistent-volume-claim.d.ts +0 -13
  167. package/lib/src/models/persistent-volume.d.ts +0 -13
  168. package/lib/src/models/pod-metrics-model.d.ts +0 -8
  169. package/lib/src/models/pod-model.d.ts +0 -20
  170. package/lib/src/models/resource-model.d.ts +0 -21
  171. package/lib/src/models/service-model.d.ts +0 -24
  172. package/lib/src/models/statefulset-model.d.ts +0 -13
  173. package/lib/src/models/storage-class.d.ts +0 -16
  174. package/lib/src/models/types/index.d.ts +0 -1
  175. package/lib/src/models/types/metric.d.ts +0 -25
  176. package/lib/src/models/workload-base-model.d.ts +0 -12
  177. package/lib/src/models/workload-model.d.ts +0 -18
  178. package/lib/src/pages/configmaps/index.d.ts +0 -4
  179. package/lib/src/pages/cronjobs/create/index.d.ts +0 -3
  180. package/lib/src/pages/cronjobs/index.d.ts +0 -3
  181. package/lib/src/pages/cronjobs/list/index.d.ts +0 -3
  182. package/lib/src/pages/cronjobs/show/index.d.ts +0 -3
  183. package/lib/src/pages/daemonsets/create/index.d.ts +0 -3
  184. package/lib/src/pages/daemonsets/index.d.ts +0 -3
  185. package/lib/src/pages/daemonsets/list/index.d.ts +0 -3
  186. package/lib/src/pages/daemonsets/show/index.d.ts +0 -3
  187. package/lib/src/pages/deployments/index.d.ts +0 -2
  188. package/lib/src/pages/deployments/list/index.d.ts +0 -3
  189. package/lib/src/pages/deployments/show/index.d.ts +0 -3
  190. package/lib/src/pages/ingresses/index.d.ts +0 -4
  191. package/lib/src/pages/jobs/index.d.ts +0 -4
  192. package/lib/src/pages/networkPolicies/index.d.ts +0 -4
  193. package/lib/src/pages/nodes/index.d.ts +0 -2
  194. package/lib/src/pages/nodes/list/index.d.ts +0 -3
  195. package/lib/src/pages/nodes/show/index.d.ts +0 -3
  196. package/lib/src/pages/persistentvolumeclaims/index.d.ts +0 -4
  197. package/lib/src/pages/persistentvolumes/index.d.ts +0 -4
  198. package/lib/src/pages/pods/create/index.d.ts +0 -3
  199. package/lib/src/pages/pods/index.d.ts +0 -3
  200. package/lib/src/pages/pods/list/index.d.ts +0 -3
  201. package/lib/src/pages/pods/show/index.d.ts +0 -3
  202. package/lib/src/pages/secrets/index.d.ts +0 -4
  203. package/lib/src/pages/services/index.d.ts +0 -4
  204. package/lib/src/pages/statefulsets/index.d.ts +0 -4
  205. package/lib/src/pages/storageclasses/form/index.d.ts +0 -9
  206. package/lib/src/pages/storageclasses/index.d.ts +0 -48
  207. package/lib/src/plugins/index.d.ts +0 -4
  208. package/lib/src/plugins/model-plugin.d.ts +0 -13
  209. package/lib/src/plugins/relation-plugin.d.ts +0 -26
  210. package/lib/src/plugins/type.d.ts +0 -8
  211. package/lib/src/providers/index.d.ts +0 -1
  212. package/lib/src/providers/router-provider/index.d.ts +0 -21
  213. package/lib/src/styles/button.d.ts +0 -1
  214. package/lib/src/styles/modal.d.ts +0 -1
  215. package/lib/src/types/index.d.ts +0 -1
  216. package/lib/src/types/resource.d.ts +0 -62
  217. package/lib/src/utils/addId.d.ts +0 -3
  218. package/lib/src/utils/download.d.ts +0 -1
  219. package/lib/src/utils/error.d.ts +0 -20
  220. package/lib/src/utils/form.d.ts +0 -3
  221. package/lib/src/utils/index.d.ts +0 -1
  222. package/lib/src/utils/k8s.d.ts +0 -3
  223. package/lib/src/utils/labels.d.ts +0 -9
  224. package/lib/src/utils/match-selector.d.ts +0 -3
  225. package/lib/src/utils/openapi.d.ts +0 -40
  226. package/lib/src/utils/schema.d.ts +0 -18
  227. package/lib/src/utils/selector.d.ts +0 -3
  228. package/lib/src/utils/shell.d.ts +0 -16
  229. package/lib/src/utils/storage.d.ts +0 -13
  230. package/lib/src/utils/string.d.ts +0 -1
  231. package/lib/src/utils/time.d.ts +0 -13
  232. package/lib/src/utils/unit.d.ts +0 -12
  233. package/lib/src/utils/yaml.d.ts +0 -2
  234. package/lib/vite.config.d.ts +0 -2
@@ -1,175 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import './en-US';
2
- import './zh-CN';
@@ -1,193 +0,0 @@
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;
package/lib/src/main.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import './i18n';
2
- import 'antd/dist/antd.css';
3
- import '@cloudtower/eagle/dist/style.css';
@@ -1,15 +0,0 @@
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 {};
@@ -1,15 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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';
@@ -1,20 +0,0 @@
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 {};
@@ -1,20 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
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 {};
@@ -1,17 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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 {};
@@ -1,21 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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 {};
@@ -1,16 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export * from './metric';