refactor: move translations and logging to new core (#36929)

This commit is contained in:
Mehmet Salih Yavuz
2026-01-12 08:58:59 +03:00
committed by GitHub
parent 0294c30c9e
commit e9b6791ffb
704 changed files with 1067 additions and 1252 deletions

View File

@@ -27,10 +27,10 @@ import {
useState,
} from 'react';
import { useSelector } from 'react-redux';
import { t } from '@apache-superset/core';
import {
AdhocColumn,
isAdhocColumn,
t,
DatasourceType,
Metric,
QueryFormMetric,

View File

@@ -19,9 +19,9 @@
import { useCallback, useEffect, useMemo, useState, ReactNode } from 'react';
import { useSelector } from 'react-redux';
import { t } from '@apache-superset/core';
import {
AdhocColumn,
t,
isAdhocColumn,
Metric,
QueryFormMetric,

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { DndItemType } from 'src/explore/components/DndItemType';
import AdhocFilterPopoverTrigger from 'src/explore/components/controls/FilterControl/AdhocFilterPopoverTrigger';
import AdhocFilter from 'src/explore/components/controls/FilterControl/AdhocFilter';

View File

@@ -17,10 +17,9 @@
* under the License.
*/
import { useCallback, useMemo, useState } from 'react';
import { t } from '@apache-superset/core';
import {
AdhocColumn,
tn,
t,
isAdhocColumn,
Metric,
ensureIsArray,
@@ -28,6 +27,7 @@ import {
QueryFormMetric,
QueryFormData,
} from '@superset-ui/core';
import { tn } from '@apache-superset/core';
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
import { isString } from 'lodash';
import DndSelectLabel from 'src/explore/components/controls/DndColumnSelectControl/DndSelectLabel';

View File

@@ -17,13 +17,9 @@
* under the License.
*/
import { useCallback, useMemo, useState } from 'react';
import {
AdhocColumn,
tn,
QueryFormColumn,
t,
isAdhocColumn,
} from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { AdhocColumn, QueryFormColumn, isAdhocColumn } from '@superset-ui/core';
import { tn } from '@apache-superset/core';
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
import { isEmpty } from 'lodash';
import DndSelectLabel from 'src/explore/components/controls/DndColumnSelectControl/DndSelectLabel';

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { ChangeEvent, useCallback, useState } from 'react';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { styled, useTheme } from '@apache-superset/core/ui';
import { Input, Tooltip } from '@superset-ui/core/components';
import { Icons } from '@superset-ui/core/components/Icons';

View File

@@ -17,13 +17,12 @@
* under the License.
*/
import { useCallback, useEffect, useMemo, useState } from 'react';
import { t, logging } from '@apache-superset/core';
import {
logging,
Metric,
QueryFormData,
QueryFormMetric,
SupersetClient,
t,
} from '@superset-ui/core';
import {
ColumnMeta,

View File

@@ -19,15 +19,15 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { nanoid } from 'nanoid';
import { t } from '@apache-superset/core';
import {
ensureIsArray,
isAdhocMetricSimple,
isSavedMetric,
Metric,
QueryFormMetric,
t,
tn,
} from '@superset-ui/core';
import { tn } from '@apache-superset/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { ColumnMeta } from '@superset-ui/chart-controls';
import AdhocMetric from 'src/explore/components/controls/MetricControl/AdhocMetric';

View File

@@ -18,7 +18,7 @@
*/
import { ReactNode, useCallback, useContext, useEffect, useMemo } from 'react';
import { useDrop } from 'react-dnd';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import ControlHeader from 'src/explore/components/ControlHeader';
import {
AddControlLabel,

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { useCallback } from 'react';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { css, styled, useTheme } from '@apache-superset/core/ui';
import { Icons, InfoTooltip } from '@superset-ui/core/components';
import {

View File

@@ -17,12 +17,12 @@
* under the License.
*/
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
import {
AdhocColumn,
ensureIsArray,
QueryFormColumn,
isPhysicalColumn,
t,
} from '@superset-ui/core';
const getColumnNameOrAdhocColumn = (