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