@dovetail-v2/refine 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MonacoYamlDiffEditor-b06840cc.js → MonacoYamlDiffEditor-37f2db86.js} +1 -1
- package/dist/{index-56189b86.js → index-3716ce7b.js} +455 -452
- package/dist/refine.js +4 -4
- package/dist/refine.umd.cjs +454 -451
- package/lib/src/components/ConditionsTable/ConditionsTable.js +2 -2
- package/lib/src/components/CreateButton/index.js +2 -2
- package/lib/src/components/CronJobDropdown/index.js +2 -2
- package/lib/src/components/CronjobJobsTable/index.js +2 -2
- package/lib/src/components/DeleteButton/index.js +2 -2
- package/lib/src/components/DeleteManyButton/index.js +2 -2
- package/lib/src/components/EditField/index.js +3 -3
- package/lib/src/components/ErrorContent/index.js +2 -2
- package/lib/src/components/EventsTable/EventsTable.js +2 -2
- package/lib/src/components/FormLayout/index.js +2 -2
- package/lib/src/components/FormModal/index.js +2 -2
- package/lib/src/components/ImageNames/index.js +2 -2
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +2 -2
- package/lib/src/components/K8sDropdown/index.js +2 -2
- package/lib/src/components/KeyValueData/index.js +2 -2
- package/lib/src/components/NamespacesFilter/index.js +2 -2
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +2 -2
- package/lib/src/components/PodContainersTable/PodContainersTable.js +2 -2
- package/lib/src/components/PodLog/index.js +2 -2
- package/lib/src/components/ResourceCRUD/list/index.js +2 -2
- package/lib/src/components/ShowContent/ShowContent.js +2 -2
- package/lib/src/components/StateTag/StateTag.js +2 -2
- package/lib/src/components/Table/ErrorContent.js +2 -2
- package/lib/src/components/Table/index.js +2 -2
- package/lib/src/components/WorkloadDropdown/index.js +2 -2
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +2 -2
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +2 -2
- package/lib/src/components/YamlForm/index.js +2 -2
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +2 -2
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +2 -2
- package/lib/src/hooks/useEagleForm.js +2 -2
- package/lib/src/hooks/useSubmitForm.js +2 -2
- package/lib/src/i18n.d.ts +1 -0
- package/lib/src/i18n.js +8 -7
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locales/index.d.ts +115 -2
- package/lib/src/locales/index.js +6 -2
- package/lib/src/pages/cronjobs/list/index.js +2 -2
- package/lib/src/pages/cronjobs/show/index.js +2 -2
- package/lib/src/pages/daemonsets/list/index.js +2 -2
- package/lib/src/pages/daemonsets/show/index.js +2 -2
- package/lib/src/pages/deployments/list/index.js +2 -2
- package/lib/src/pages/deployments/show/index.js +2 -2
- package/lib/src/pages/pods/list/index.js +2 -2
- package/lib/src/pages/pods/show/index.js +2 -2
- package/lib/src/pages/statefulsets/list/index.js +2 -2
- package/lib/src/pages/statefulsets/show/index.js +2 -2
- package/package.json +1 -1
package/lib/src/index.d.ts
CHANGED
package/lib/src/index.js
CHANGED
|
@@ -1,2 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const D2Locales: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
dovetail: {
|
|
4
|
+
copy: string;
|
|
5
|
+
reset_arguments: string;
|
|
6
|
+
view_changes: string;
|
|
7
|
+
back_to_edit: string;
|
|
8
|
+
configure_file: string;
|
|
9
|
+
yaml_format_wrong: string;
|
|
10
|
+
yaml_value_wrong: string;
|
|
11
|
+
edit_yaml: string;
|
|
12
|
+
copied: string;
|
|
13
|
+
already_reset: string;
|
|
14
|
+
fetch_schema_fail: string;
|
|
15
|
+
obtain_data_error: string;
|
|
16
|
+
retry: string;
|
|
17
|
+
create_resource: string;
|
|
18
|
+
edit_resource: string;
|
|
19
|
+
status: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
'zh-CN': {
|
|
23
|
+
dovetail: {
|
|
24
|
+
copy: string;
|
|
25
|
+
reset_arguments: string;
|
|
26
|
+
view_changes: string;
|
|
27
|
+
back_to_edit: string;
|
|
28
|
+
configure_file: string;
|
|
29
|
+
yaml_format_wrong: string;
|
|
30
|
+
yaml_value_wrong: string;
|
|
31
|
+
edit_yaml: string;
|
|
32
|
+
copied: string;
|
|
33
|
+
already_reset: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
delete: string;
|
|
36
|
+
create: string;
|
|
37
|
+
confirm_delete_text: string;
|
|
38
|
+
edit: string;
|
|
39
|
+
namespace: string;
|
|
40
|
+
name: string;
|
|
41
|
+
state: string;
|
|
42
|
+
status: string;
|
|
43
|
+
phase: string;
|
|
44
|
+
image: string;
|
|
45
|
+
replicas: string;
|
|
46
|
+
created_time: string;
|
|
47
|
+
label: string;
|
|
48
|
+
annotation: string;
|
|
49
|
+
type: string;
|
|
50
|
+
event: string;
|
|
51
|
+
reason: string;
|
|
52
|
+
object: string;
|
|
53
|
+
note: string;
|
|
54
|
+
condition: string;
|
|
55
|
+
download_yaml: string;
|
|
56
|
+
detail: string;
|
|
57
|
+
node_name: string;
|
|
58
|
+
restarts: string;
|
|
59
|
+
updated_time: string;
|
|
60
|
+
message: string;
|
|
61
|
+
save: string;
|
|
62
|
+
more: string;
|
|
63
|
+
workload: string;
|
|
64
|
+
all_namespaces: string;
|
|
65
|
+
empty: string;
|
|
66
|
+
schedule: string;
|
|
67
|
+
lastScheduleTime: string;
|
|
68
|
+
duration: string;
|
|
69
|
+
completions: string;
|
|
70
|
+
started: string;
|
|
71
|
+
init_container: string;
|
|
72
|
+
container: string;
|
|
73
|
+
redeploy: string;
|
|
74
|
+
data: string;
|
|
75
|
+
suspend: string;
|
|
76
|
+
resume: string;
|
|
77
|
+
cluster: string;
|
|
78
|
+
storage: string;
|
|
79
|
+
network: string;
|
|
80
|
+
clusterIp: string;
|
|
81
|
+
sessionAffinity: string;
|
|
82
|
+
log: string;
|
|
83
|
+
select_container: string;
|
|
84
|
+
wrap: string;
|
|
85
|
+
resume_log: string;
|
|
86
|
+
log_new_lines: string;
|
|
87
|
+
fetch_schema_fail: string;
|
|
88
|
+
obtain_data_error: string;
|
|
89
|
+
retry: string;
|
|
90
|
+
ready: string;
|
|
91
|
+
updating: string;
|
|
92
|
+
completed: string;
|
|
93
|
+
failed: string;
|
|
94
|
+
suspended: string;
|
|
95
|
+
running: string;
|
|
96
|
+
terminating: string;
|
|
97
|
+
succeeded: string;
|
|
98
|
+
unknown: string;
|
|
99
|
+
pending: string;
|
|
100
|
+
waiting: string;
|
|
101
|
+
create_resource: string;
|
|
102
|
+
edit_resource: string;
|
|
103
|
+
sec: string;
|
|
104
|
+
min: string;
|
|
105
|
+
hr: string;
|
|
106
|
+
day: string;
|
|
107
|
+
expand: string;
|
|
108
|
+
fold: string;
|
|
109
|
+
rule: string;
|
|
110
|
+
default_backend: string;
|
|
111
|
+
ingress_rule_type: string;
|
|
112
|
+
port: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
package/lib/src/locales/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { CronJobDropdown } from 'src/components/CronJobDropdown';
|
|
4
3
|
import { ListPage } from 'src/components/ListPage';
|
|
5
4
|
import Time from 'src/components/Time';
|
|
6
5
|
import { useEagleTable } from 'src/hooks/useEagleTable';
|
|
7
6
|
import { AgeColumnRenderer, WorkloadImageColumnRenderer, NameColumnRenderer, NameSpaceColumnRenderer, StateDisplayColumnRenderer, } from 'src/hooks/useEagleTable/columns';
|
|
7
|
+
import { useD2Translation } from '../../../i18n';
|
|
8
8
|
export const CronJobList = () => {
|
|
9
|
-
const { i18n } =
|
|
9
|
+
const { i18n } = useD2Translation();
|
|
10
10
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
11
11
|
useTableParams: {},
|
|
12
12
|
columns: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { CronJobDropdown } from '../../../components/CronJobDropdown';
|
|
4
3
|
import { PageShow } from '../../../components/PageShow';
|
|
5
4
|
import { ImageField, JobsField } from '../../../components/ShowContent/fields';
|
|
5
|
+
import { useD2Translation } from '../../../i18n';
|
|
6
6
|
export const CronJobShow = () => {
|
|
7
|
-
const { i18n } =
|
|
7
|
+
const { i18n } = useD2Translation();
|
|
8
8
|
return (_jsx(PageShow, { showConfig: {
|
|
9
9
|
groups: [
|
|
10
10
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { ListPage } from 'src/components/ListPage';
|
|
4
3
|
import { WorkloadDropdown } from 'src/components/WorkloadDropdown';
|
|
5
4
|
import { useEagleTable } from 'src/hooks/useEagleTable';
|
|
6
5
|
import { AgeColumnRenderer, WorkloadImageColumnRenderer, NameColumnRenderer, NameSpaceColumnRenderer, StateDisplayColumnRenderer, WorkloadRestartsColumnRenderer, } from 'src/hooks/useEagleTable/columns';
|
|
6
|
+
import { useD2Translation } from '../../../i18n';
|
|
7
7
|
export const DaemonSetList = () => {
|
|
8
|
-
const { i18n } =
|
|
8
|
+
const { i18n } = useD2Translation();
|
|
9
9
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
10
10
|
useTableParams: {},
|
|
11
11
|
columns: [
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { WorkloadDropdown } from 'src/components/WorkloadDropdown';
|
|
3
3
|
import { PageShow } from '../../../components/PageShow';
|
|
4
4
|
import { ConditionsField, ImageField, PodsField, } from '../../../components/ShowContent/fields';
|
|
5
|
-
import {
|
|
5
|
+
import { useD2Translation } from '../../../i18n';
|
|
6
6
|
export const DaemonSetShow = () => {
|
|
7
|
-
const { i18n } =
|
|
7
|
+
const { i18n } = useD2Translation();
|
|
8
8
|
return (_jsx(PageShow, { showConfig: {
|
|
9
9
|
groups: [
|
|
10
10
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { ListPage } from 'src/components/ListPage';
|
|
4
3
|
import { WorkloadDropdown } from 'src/components/WorkloadDropdown';
|
|
5
4
|
import { useEagleTable } from 'src/hooks/useEagleTable';
|
|
6
5
|
import { AgeColumnRenderer, WorkloadImageColumnRenderer, NameColumnRenderer, NameSpaceColumnRenderer, ReplicasColumnRenderer, WorkloadRestartsColumnRenderer, StateDisplayColumnRenderer, } from 'src/hooks/useEagleTable/columns';
|
|
6
|
+
import { useD2Translation } from '../../../i18n';
|
|
7
7
|
export const DeploymentList = () => {
|
|
8
|
-
const { i18n } =
|
|
8
|
+
const { i18n } = useD2Translation();
|
|
9
9
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
10
10
|
useTableParams: {},
|
|
11
11
|
columns: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { PageShow } from '../../../components/PageShow';
|
|
4
3
|
import { ConditionsField, EventsTableTabField, ImageField, PodsField, ReplicaField, } from '../../../components/ShowContent/fields';
|
|
5
4
|
import { WorkloadDropdown } from '../../../components/WorkloadDropdown';
|
|
5
|
+
import { useD2Translation } from '../../../i18n';
|
|
6
6
|
export const DeploymentShow = () => {
|
|
7
|
-
const { i18n } =
|
|
7
|
+
const { i18n } = useD2Translation();
|
|
8
8
|
return (_jsx(PageShow, { showConfig: {
|
|
9
9
|
groups: [
|
|
10
10
|
{
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useList } from '@refinedev/core';
|
|
3
3
|
import { compact } from 'lodash-es';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
5
|
import { ListPage } from '../../../components/ListPage';
|
|
7
6
|
import { useEagleTable } from '../../../hooks/useEagleTable';
|
|
8
7
|
import { AgeColumnRenderer, WorkloadImageColumnRenderer, NameColumnRenderer, NameSpaceColumnRenderer, CommonSorter, RestartCountColumnRenderer, NodeNameColumnRenderer, StateDisplayColumnRenderer, PodWorkloadColumnRenderer, } from '../../../hooks/useEagleTable/columns';
|
|
8
|
+
import { useD2Translation } from '../../../i18n';
|
|
9
9
|
export const PodList = () => {
|
|
10
|
-
const { i18n } =
|
|
10
|
+
const { i18n } = useD2Translation();
|
|
11
11
|
const { data: metricsData } = useList({
|
|
12
12
|
resource: 'podMetrics',
|
|
13
13
|
meta: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { PodLog } from 'src/components/PodLog';
|
|
4
3
|
import { PageShow } from '../../../components/PageShow';
|
|
5
4
|
import { PodContainersTable } from '../../../components/PodContainersTable';
|
|
6
5
|
import { ConditionsField } from '../../../components/ShowContent/fields';
|
|
6
|
+
import { useD2Translation } from '../../../i18n';
|
|
7
7
|
export const PodShow = () => {
|
|
8
|
-
const { i18n } =
|
|
8
|
+
const { i18n } = useD2Translation();
|
|
9
9
|
return (_jsx(PageShow, { showConfig: {
|
|
10
10
|
groups: [{
|
|
11
11
|
fields: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { ListPage } from 'src/components/ListPage';
|
|
4
3
|
import { WorkloadDropdown } from 'src/components/WorkloadDropdown';
|
|
5
4
|
import { useEagleTable } from 'src/hooks/useEagleTable';
|
|
6
5
|
import { AgeColumnRenderer, WorkloadImageColumnRenderer, NameColumnRenderer, NameSpaceColumnRenderer, StateDisplayColumnRenderer, ReplicasColumnRenderer, WorkloadRestartsColumnRenderer, } from 'src/hooks/useEagleTable/columns';
|
|
6
|
+
import { useD2Translation } from '../../../i18n';
|
|
7
7
|
export const StatefulSetList = () => {
|
|
8
|
-
const { i18n } =
|
|
8
|
+
const { i18n } = useD2Translation();
|
|
9
9
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
10
10
|
useTableParams: {},
|
|
11
11
|
columns: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { WorkloadDropdown } from 'src/components/WorkloadDropdown';
|
|
4
3
|
import { PageShow } from '../../../components/PageShow';
|
|
5
4
|
import { ConditionsField, ImageField, PodsField, ReplicaField, } from '../../../components/ShowContent/fields';
|
|
5
|
+
import { useD2Translation } from '../../../i18n';
|
|
6
6
|
export const StatefulSetShow = () => {
|
|
7
|
-
const { i18n } =
|
|
7
|
+
const { i18n } = useD2Translation();
|
|
8
8
|
return (_jsx(PageShow, { showConfig: {
|
|
9
9
|
groups: [
|
|
10
10
|
{
|