mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
refactor: move translations and logging to new core (#36929)
This commit is contained in:
committed by
GitHub
parent
0294c30c9e
commit
e9b6791ffb
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user