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

@@ -20,7 +20,7 @@
*/
import { useRef, useState } from 'react';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { ArrowDownOutlined, ArrowUpOutlined } from '@ant-design/icons';
import FilterIcon from './Filter';
import KebabMenu from './KebabMenu';

View File

@@ -17,7 +17,7 @@
* under the License.
*/
/* eslint-disable theme-colors/no-literal-colors */
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import {
VerticalLeftOutlined,
VerticalRightOutlined,

View File

@@ -20,7 +20,7 @@
import { useState } from 'react';
import { Dropdown } from 'antd';
import { TableOutlined, DownOutlined, CheckOutlined } from '@ant-design/icons';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { InfoText, ColumnLabel, CheckIconWrapper } from '../../styles';
interface ComparisonColumn {

View File

@@ -42,12 +42,12 @@ import {
CellClickedEvent,
IMenuActionParams,
} from '@superset-ui/core/components/ThemedAgGridReact';
import { t } from '@apache-superset/core';
import {
AgGridChartState,
DataRecordValue,
DataRecord,
JsonObject,
t,
} from '@superset-ui/core';
import { SearchOutlined } from '@ant-design/icons';
import { debounce, isEqual } from 'lodash';

View File

@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@apache-superset/core';
import {
DataRecord,
DataRecordValue,
getTimeFormatterForGranularity,
t,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { useCallback, useEffect, useState, useMemo } from 'react';

View File

@@ -40,6 +40,7 @@ import {
isRegularMetric,
isPercentMetric,
} from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
import {
ensureIsArray,
FeatureFlag,
@@ -50,7 +51,6 @@ import {
QueryFormColumn,
QueryMode,
SMART_DATE_ID,
t,
validateMaxValue,
validateServerPagination,
} from '@superset-ui/core';

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { Behavior, ChartMetadata, ChartPlugin, t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { Behavior, ChartMetadata, ChartPlugin } from '@superset-ui/core';
import transformProps from './transformProps';
import thumbnail from './images/thumbnail.png';
import thumbnailDark from './images/thumbnail-dark.png';

View File

@@ -18,7 +18,8 @@
* under the License.
*/
import { isProbablyHTML, sanitizeHtml, t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { isProbablyHTML, sanitizeHtml } from '@superset-ui/core';
import { InfoCircleOutlined } from '@ant-design/icons';
import { Tooltip } from '@superset-ui/core/components';
import { CellRendererProps } from '../types';

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import memoizeOne from 'memoize-one';
import { t } from '@apache-superset/core';
import {
ComparisonType,
Currency,
@@ -33,7 +34,6 @@ import {
NumberFormats,
QueryMode,
SMART_DATE_ID,
t,
TimeFormats,
TimeFormatter,
} from '@superset-ui/core';