@dovetail-v2/refine 0.0.28 → 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-b459d49b.js → MonacoYamlDiffEditor-37f2db86.js} +1 -1
- package/dist/{index-432360ef.js → index-3716ce7b.js} +39 -34
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +40 -35
- package/lib/src/App.js +0 -2
- 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 +6 -1
- 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
|
@@ -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
|
{
|