mirror of https://github.com/apache/superset.git
rename @superset-ui/core to @superset-ui/connection (#6274)
This commit is contained in:
parent
c7f8abc6c5
commit
124c55c117
|
@ -51,8 +51,8 @@
|
||||||
"@data-ui/sparkline": "^0.0.54",
|
"@data-ui/sparkline": "^0.0.54",
|
||||||
"@data-ui/theme": "^0.0.62",
|
"@data-ui/theme": "^0.0.62",
|
||||||
"@data-ui/xy-chart": "^0.0.61",
|
"@data-ui/xy-chart": "^0.0.61",
|
||||||
"@superset-ui/core": "^0.0.7",
|
"@superset-ui/connection": "^0.3.0",
|
||||||
"@superset-ui/translation": "^0.2.1",
|
"@superset-ui/translation": "^0.3.0",
|
||||||
"@vx/legend": "^0.0.170",
|
"@vx/legend": "^0.0.170",
|
||||||
"@vx/responsive": "0.0.172",
|
"@vx/responsive": "0.0.172",
|
||||||
"@vx/scale": "^0.0.165",
|
"@vx/scale": "^0.0.165",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import fetchMock from 'fetch-mock';
|
import fetchMock from 'fetch-mock';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
export default function setupSupersetClient() {
|
export default function setupSupersetClient() {
|
||||||
// The following is needed to mock out SupersetClient requests
|
// The following is needed to mock out SupersetClient requests
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import shortid from 'shortid';
|
import shortid from 'shortid';
|
||||||
import JSONbig from 'json-bigint';
|
import JSONbig from 'json-bigint';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import { now } from '../modules/dates';
|
import { now } from '../modules/dates';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import * as Actions from '../actions';
|
import * as Actions from '../actions';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||||
import { Button } from 'react-bootstrap';
|
import { Button } from 'react-bootstrap';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import Loading from '../../components/Loading';
|
import Loading from '../../components/Loading';
|
||||||
import QueryTable from './QueryTable';
|
import QueryTable from './QueryTable';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { connect } from 'react-redux';
|
||||||
import Select from 'react-virtualized-select';
|
import Select from 'react-virtualized-select';
|
||||||
import createFilterOptions from 'react-select-fast-filter-options';
|
import createFilterOptions from 'react-select-fast-filter-options';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import TableElement from './TableElement';
|
import TableElement from './TableElement';
|
||||||
import AsyncSelect from '../../components/AsyncSelect';
|
import AsyncSelect from '../../components/AsyncSelect';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* global window, AbortController */
|
/* global window, AbortController */
|
||||||
/* eslint no-undef: 'error' */
|
/* eslint no-undef: 'error' */
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import { getExploreUrlAndPayload, getAnnotationJsonUrl } from '../explore/exploreUtils';
|
import { getExploreUrlAndPayload, getAnnotationJsonUrl } from '../explore/exploreUtils';
|
||||||
import { requiresQuery, ANNOTATION_SOURCE_TYPES } from '../modules/AnnotationTypes';
|
import { requiresQuery, ANNOTATION_SOURCE_TYPES } from '../modules/AnnotationTypes';
|
||||||
import { addDangerToast } from '../messageToasts/actions';
|
import { addDangerToast } from '../messageToasts/actions';
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Select from 'react-select';
|
import Select from 'react-select';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import getClientErrorObject from '../utils/getClientErrorObject';
|
import getClientErrorObject from '../utils/getClientErrorObject';
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Table, Tr, Td } from 'reactable';
|
import { Table, Tr, Td } from 'reactable';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import withToasts from '../messageToasts/enhancers/withToasts';
|
import withToasts from '../messageToasts/enhancers/withToasts';
|
||||||
import Loading from '../components/Loading';
|
import Loading from '../components/Loading';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* eslint camelcase: 0 */
|
/* eslint camelcase: 0 */
|
||||||
import { ActionCreators as UndoActionCreators } from 'redux-undo';
|
import { ActionCreators as UndoActionCreators } from 'redux-undo';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import { addChart, removeChart, refreshChart } from '../../chart/chartAction';
|
import { addChart, removeChart, refreshChart } from '../../chart/chartAction';
|
||||||
import { chart as initChart } from '../../chart/chartReducer';
|
import { chart as initChart } from '../../chart/chartReducer';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import getClientErrorObject from '../../utils/getClientErrorObject';
|
import getClientErrorObject from '../../utils/getClientErrorObject';
|
||||||
|
|
||||||
export const SET_DATASOURCE = 'SET_DATASOURCE';
|
export const SET_DATASOURCE = 'SET_DATASOURCE';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint camelcase: 0 */
|
/* eslint camelcase: 0 */
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import { addDangerToast } from '../../messageToasts/actions';
|
import { addDangerToast } from '../../messageToasts/actions';
|
||||||
import { getDatasourceParameter } from '../../modules/utils';
|
import { getDatasourceParameter } from '../../modules/utils';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import { DropdownButton, MenuItem } from 'react-bootstrap';
|
import { DropdownButton, MenuItem } from 'react-bootstrap';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||||
import { Alert, Badge, Col, Label, Tabs, Tab, Well } from 'react-bootstrap';
|
import { Alert, Badge, Col, Label, Tabs, Tab, Well } from 'react-bootstrap';
|
||||||
import shortid from 'shortid';
|
import shortid from 'shortid';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import getClientErrorObject from '../utils/getClientErrorObject';
|
import getClientErrorObject from '../utils/getClientErrorObject';
|
||||||
|
|
||||||
import Button from '../components/Button';
|
import Button from '../components/Button';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||||
import { Alert, Button, Modal } from 'react-bootstrap';
|
import { Alert, Button, Modal } from 'react-bootstrap';
|
||||||
import Dialog from 'react-bootstrap-dialog';
|
import Dialog from 'react-bootstrap-dialog';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import getClientErrorObject from '../utils/getClientErrorObject';
|
import getClientErrorObject from '../utils/getClientErrorObject';
|
||||||
import DatasourceEditor from '../datasource/DatasourceEditor';
|
import DatasourceEditor from '../datasource/DatasourceEditor';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint camelcase: 0 */
|
/* eslint camelcase: 0 */
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import { addDangerToast } from '../../messageToasts/actions';
|
import { addDangerToast } from '../../messageToasts/actions';
|
||||||
|
|
||||||
const FAVESTAR_BASE_URL = '/superset/favstar/slice';
|
const FAVESTAR_BASE_URL = '/superset/favstar/slice';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import { getExploreUrlAndPayload } from '../exploreUtils';
|
import { getExploreUrlAndPayload } from '../exploreUtils';
|
||||||
|
|
||||||
export const FETCH_DASHBOARDS_SUCCEEDED = 'FETCH_DASHBOARDS_SUCCEEDED';
|
export const FETCH_DASHBOARDS_SUCCEEDED = 'FETCH_DASHBOARDS_SUCCEEDED';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||||
import { FormGroup } from 'react-bootstrap';
|
import { FormGroup } from 'react-bootstrap';
|
||||||
import VirtualizedSelect from 'react-virtualized-select';
|
import VirtualizedSelect from 'react-virtualized-select';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import AdhocFilter, { EXPRESSION_TYPES, CLAUSES } from '../AdhocFilter';
|
import AdhocFilter, { EXPRESSION_TYPES, CLAUSES } from '../AdhocFilter';
|
||||||
import adhocMetricType from '../propTypes/adhocMetricType';
|
import adhocMetricType from '../propTypes/adhocMetricType';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import github from 'react-syntax-highlighter/styles/hljs/github';
|
||||||
import { DropdownButton, MenuItem, Row, Col, FormControl } from 'react-bootstrap';
|
import { DropdownButton, MenuItem, Row, Col, FormControl } from 'react-bootstrap';
|
||||||
import { Table } from 'reactable';
|
import { Table } from 'reactable';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import getClientErrorObject from '../../utils/getClientErrorObject';
|
import getClientErrorObject from '../../utils/getClientErrorObject';
|
||||||
import CopyToClipboard from './../../components/CopyToClipboard';
|
import CopyToClipboard from './../../components/CopyToClipboard';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { CompactPicker } from 'react-color';
|
||||||
import { Button } from 'react-bootstrap';
|
import { Button } from 'react-bootstrap';
|
||||||
import mathjs from 'mathjs';
|
import mathjs from 'mathjs';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import SelectControl from './SelectControl';
|
import SelectControl from './SelectControl';
|
||||||
import TextControl from './TextControl';
|
import TextControl from './TextControl';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint no-console: 0 */
|
/* eslint no-console: 0 */
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
// This creates an association between an eventName and the ActionLog instance so that
|
// This creates an association between an eventName and the ActionLog instance so that
|
||||||
// Logger.append calls do not have to know about the appropriate ActionLog instance
|
// Logger.append calls do not have to know about the appropriate ActionLog instance
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint global-require: 0 */
|
/* eslint global-require: 0 */
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import getClientErrorObject from '../utils/getClientErrorObject';
|
import getClientErrorObject from '../utils/getClientErrorObject';
|
||||||
|
|
||||||
function showApiMessage(resp) {
|
function showApiMessage(resp) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint no-console: 0 */
|
/* eslint no-console: 0 */
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
export default function setupClient() {
|
export default function setupClient() {
|
||||||
const csrfNode = document.querySelector('#csrf_token');
|
const csrfNode = document.querySelector('#csrf_token');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import d3 from 'd3';
|
import d3 from 'd3';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import getClientErrorObject from './getClientErrorObject';
|
import getClientErrorObject from './getClientErrorObject';
|
||||||
|
|
||||||
export const EARTH_CIRCUMFERENCE_KM = 40075.16;
|
export const EARTH_CIRCUMFERENCE_KM = 40075.16;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
|
|
||||||
import DeckGLContainer from '../DeckGLContainer';
|
import DeckGLContainer from '../DeckGLContainer';
|
||||||
import { getExploreLongUrl } from '../../../explore/exploreUtils';
|
import { getExploreLongUrl } from '../../../explore/exploreUtils';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Table, Tr, Td, unsafe } from 'reactable';
|
import { Table, Tr, Td, unsafe } from 'reactable';
|
||||||
import { SupersetClient } from '@superset-ui/core';
|
import { SupersetClient } from '@superset-ui/connection';
|
||||||
import { t } from '@superset-ui/translation';
|
import { t } from '@superset-ui/translation';
|
||||||
|
|
||||||
import withToasts from '../messageToasts/enhancers/withToasts';
|
import withToasts from '../messageToasts/enhancers/withToasts';
|
||||||
|
|
|
@ -399,18 +399,17 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
array-from "^2.1.1"
|
array-from "^2.1.1"
|
||||||
|
|
||||||
"@superset-ui/core@^0.0.7":
|
"@superset-ui/connection@^0.3.0":
|
||||||
version "0.0.7"
|
version "0.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@superset-ui/core/-/core-0.0.7.tgz#e91374d10c96de504225a24d7d1d76e73cdb06cd"
|
resolved "https://registry.yarnpkg.com/@superset-ui/connection/-/connection-0.3.0.tgz#f659d8b74e88b64e7463c09e1a08fb89ac29c2b9"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime" "^7.1.2"
|
"@babel/runtime" "^7.1.2"
|
||||||
whatwg-fetch "^2.0.4"
|
whatwg-fetch "^2.0.4"
|
||||||
|
|
||||||
"@superset-ui/translation@^0.2.1":
|
"@superset-ui/translation@^0.3.0":
|
||||||
version "0.2.1"
|
version "0.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@superset-ui/translation/-/translation-0.2.1.tgz#252025d566918782bafc25cb9fe2aa31f9917093"
|
resolved "https://registry.yarnpkg.com/@superset-ui/translation/-/translation-0.3.0.tgz#e0c1737739f61bcdaf5c5b15a80ceecc38a50e52"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime" "^7.1.2"
|
|
||||||
jed "^1.1.1"
|
jed "^1.1.1"
|
||||||
|
|
||||||
"@types/blob-util@1.3.3":
|
"@types/blob-util@1.3.3":
|
||||||
|
|
Loading…
Reference in New Issue