mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -22,7 +22,7 @@ import {
|
||||
type MouseEvent as ReactMouseEvent,
|
||||
} from 'react';
|
||||
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
AdhocMetric,
|
||||
BinaryQueryObjectFilterClause,
|
||||
@@ -40,7 +40,7 @@ import {
|
||||
normalizeCurrency,
|
||||
NumberFormatter,
|
||||
} from '@superset-ui/core';
|
||||
import { styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { aggregatorTemplates, PivotTable, sortAs } from './react-pivottable';
|
||||
import {
|
||||
FilterType,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
getStandardizedControls,
|
||||
sharedControls,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import {
|
||||
ensureIsArray,
|
||||
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 {
|
||||
Behavior,
|
||||
ChartMetadata,
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
SMART_DATE_ID,
|
||||
TimeFormats,
|
||||
} from '@superset-ui/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import { GenericDataType } from '@apache-superset/core/common';
|
||||
import { getColorFormatters } from '@superset-ui/chart-controls';
|
||||
import { DateFormatter } from '../types';
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { css, styled } from '@apache-superset/core/ui';
|
||||
import { css, styled } from '@apache-superset/core/theme';
|
||||
|
||||
export const Styles = styled.div<{ isDashboardEditMode: boolean }>`
|
||||
${({ theme, isDashboardEditMode }) => css`
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
import { Component, ReactNode, MouseEvent } from 'react';
|
||||
import { safeHtmlSpan } from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core/ui';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FaSort } from 'react-icons/fa';
|
||||
import { FaSortDown as FaSortDesc } from 'react-icons/fa';
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import { t } from '@apache-superset/core/ui';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
|
||||
type SortFunction = (
|
||||
a: string | number | null,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
import { ChartProps, QueryFormData } from '@superset-ui/core';
|
||||
import { supersetTheme } from '@apache-superset/core/ui';
|
||||
import { supersetTheme } from '@apache-superset/core/theme';
|
||||
import transformProps from '../../src/plugin/transformProps';
|
||||
import { MetricsLayoutEnum } from '../../src/types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user