mirror of
https://github.com/apache/superset.git
synced 2026-07-19 21:25:38 +00:00
refactor(core): reorganize superset-core packages into feature-based structure (#38448)
This commit is contained in:
committed by
GitHub
parent
5f0efd2be9
commit
357e35dc62
@@ -27,7 +27,8 @@ import {
|
||||
useState,
|
||||
} from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { t, editors } from '@apache-superset/core';
|
||||
import { editors } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
AdhocColumn,
|
||||
isAdhocColumn,
|
||||
@@ -35,7 +36,7 @@ import {
|
||||
Metric,
|
||||
QueryFormMetric,
|
||||
} from '@superset-ui/core';
|
||||
import { styled, css } from '@apache-superset/core/ui';
|
||||
import { styled, css } from '@apache-superset/core/theme';
|
||||
import { ColumnMeta, isSavedExpression } from '@superset-ui/chart-controls';
|
||||
import Tabs from '@superset-ui/core/components/Tabs';
|
||||
import {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import { useCallback, useEffect, useMemo, useState, ReactNode } from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
AdhocColumn,
|
||||
isAdhocColumn,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
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,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
AdhocColumn,
|
||||
isAdhocColumn,
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
QueryFormMetric,
|
||||
QueryFormData,
|
||||
} from '@superset-ui/core';
|
||||
import { tn } from '@apache-superset/core';
|
||||
import { tn } from '@apache-superset/core/translation';
|
||||
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
|
||||
import { isString } from 'lodash';
|
||||
import DndSelectLabel from 'src/explore/components/controls/DndColumnSelectControl/DndSelectLabel';
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import { AdhocColumn, QueryFormColumn, isAdhocColumn } from '@superset-ui/core';
|
||||
import { tn } from '@apache-superset/core';
|
||||
import { tn } from '@apache-superset/core/translation';
|
||||
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
|
||||
import { isEmpty } from 'lodash';
|
||||
import DndSelectLabel from 'src/explore/components/controls/DndColumnSelectControl/DndSelectLabel';
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { ChangeEvent, useCallback, useState } from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import { styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { Input, Tooltip } from '@superset-ui/core/components';
|
||||
import { Icons } from '@superset-ui/core/components/Icons';
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
QueryFormData,
|
||||
QueryFormMetric,
|
||||
} from '@superset-ui/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import { GenericDataType } from '@apache-superset/core/common';
|
||||
import { ColumnMeta } from '@superset-ui/chart-controls';
|
||||
import {
|
||||
fireEvent,
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { t, logging } from '@apache-superset/core';
|
||||
import { logging } from '@apache-superset/core/utils';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
Metric,
|
||||
QueryFormData,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
ensureIsArray,
|
||||
isAdhocMetricSimple,
|
||||
@@ -27,8 +27,8 @@ import {
|
||||
Metric,
|
||||
QueryFormMetric,
|
||||
} from '@superset-ui/core';
|
||||
import { tn } from '@apache-superset/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import { tn } from '@apache-superset/core/translation';
|
||||
import { GenericDataType } from '@apache-superset/core/common';
|
||||
import { ColumnMeta } from '@superset-ui/chart-controls';
|
||||
import AdhocMetric from 'src/explore/components/controls/MetricControl/AdhocMetric';
|
||||
import AdhocMetricPopoverTrigger from 'src/explore/components/controls/MetricControl/AdhocMetricPopoverTrigger';
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
import { ReactNode, useCallback, useContext, useEffect, useMemo } from 'react';
|
||||
import { useDrop } from 'react-dnd';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||
import {
|
||||
AddControlLabel,
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { useCallback } from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { Icons, InfoTooltip } from '@superset-ui/core/components';
|
||||
import {
|
||||
CaretContainer,
|
||||
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
import { Tooltip } from '@superset-ui/core/components';
|
||||
import { StyledColumnOption } from 'src/explore/components/optionRenderers';
|
||||
import { isAdhocColumn } from '@superset-ui/core';
|
||||
import { styled } from '@apache-superset/core/ui';
|
||||
import { styled } from '@apache-superset/core/theme';
|
||||
import { ColumnMeta } from '@superset-ui/chart-controls';
|
||||
import Option from './Option';
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
useState,
|
||||
MouseEvent as ReactMouseEvent,
|
||||
} from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import { throttle } from 'lodash';
|
||||
import {
|
||||
POPOVER_INITIAL_HEIGHT,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { ColumnMeta, isColumnMeta } from '@superset-ui/chart-controls';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
AdhocColumn,
|
||||
ensureIsArray,
|
||||
|
||||
Reference in New Issue
Block a user