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