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

@@ -17,11 +17,11 @@
* under the License.
*/
import { useEffect, useMemo, useState } from 'react';
import { t } from '@apache-superset/core';
import {
ensureIsArray,
fetchTimeRange,
getTimeOffset,
t,
} from '@superset-ui/core';
import { css, styled, useTheme } from '@apache-superset/core/ui';
import { Tooltip } from '@superset-ui/core/components';

View File

@@ -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 { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,

View File

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

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { SMART_DATE_ID, t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { SMART_DATE_ID } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t, Behavior } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { Behavior } from '@superset-ui/core';
import controlPanel from './controlPanel';
import transformProps from './transformProps';
import buildQuery from './buildQuery';

View File

@@ -17,8 +17,8 @@
* under the License.
*/
import { useState, useEffect, useRef, MouseEvent } from 'react';
import { t } from '@apache-superset/core';
import {
t,
getNumberFormatter,
getTimeFormatter,
SMART_DATE_VERBOSE_ID,

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { SMART_DATE_ID, t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { SMART_DATE_ID } from '@superset-ui/core';
import {
aggregationControl,
ControlPanelConfig,

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t, Behavior } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { Behavior } from '@superset-ui/core';
import controlPanel from './controlPanel';
import transformProps from './transformProps';
import buildQuery from './buildQuery';

View File

@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@apache-superset/core';
import {
extractTimegrain,
getNumberFormatter,
@@ -24,7 +25,6 @@ import {
getXAxisLabel,
Metric,
getValueFormatter,
t,
tooltipHtml,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';

View File

@@ -18,7 +18,7 @@
*/
// These are control configurations that are shared ONLY within the BigNumberWithTrendline viz plugin repo.
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { CustomControlItem } from '@superset-ui/chart-controls';
const FONT_SIZE_OPTIONS_SMALL = [