mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
chore: Moves the datasource components to the components folder (#17130)
This commit is contained in:
parent
20627755a5
commit
e32acd22fd
@ -21,8 +21,10 @@ import sinon from 'sinon';
|
|||||||
import configureStore from 'redux-mock-store';
|
import configureStore from 'redux-mock-store';
|
||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { Menu } from 'src/common/components';
|
import { Menu } from 'src/common/components';
|
||||||
import DatasourceModal from 'src/datasource/DatasourceModal';
|
import {
|
||||||
import ChangeDatasourceModal from 'src/datasource/ChangeDatasourceModal';
|
DatasourceModal,
|
||||||
|
ChangeDatasourceModal,
|
||||||
|
} from 'src/components/Datasource';
|
||||||
import DatasourceControl from 'src/explore/components/controls/DatasourceControl';
|
import DatasourceControl from 'src/explore/components/controls/DatasourceControl';
|
||||||
import Icons from 'src/components/Icons';
|
import Icons from 'src/components/Icons';
|
||||||
import { Tooltip } from 'src/components/Tooltip';
|
import { Tooltip } from 'src/components/Tooltip';
|
||||||
|
@ -25,7 +25,7 @@ import { act } from 'react-dom/test-utils';
|
|||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
|
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
|
||||||
import Modal from 'src/components/Modal';
|
import Modal from 'src/components/Modal';
|
||||||
import ChangeDatasourceModal from 'src/datasource/ChangeDatasourceModal';
|
import { ChangeDatasourceModal } from 'src/components/Datasource';
|
||||||
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
||||||
import mockDatasource from 'spec/fixtures/mockDatasource';
|
import mockDatasource from 'spec/fixtures/mockDatasource';
|
||||||
|
|
@ -41,7 +41,7 @@ import {
|
|||||||
SORT_BY as DATASET_SORT_BY,
|
SORT_BY as DATASET_SORT_BY,
|
||||||
} from 'src/views/CRUD/data/dataset/constants';
|
} from 'src/views/CRUD/data/dataset/constants';
|
||||||
import withToasts from 'src/components/MessageToasts/withToasts';
|
import withToasts from 'src/components/MessageToasts/withToasts';
|
||||||
import FacePile from '../components/FacePile';
|
import FacePile from '../FacePile';
|
||||||
|
|
||||||
const CONFIRM_WARNING_MESSAGE = t(
|
const CONFIRM_WARNING_MESSAGE = t(
|
||||||
'Warning! Changing the dataset may break the chart if the metadata does not exist.',
|
'Warning! Changing the dataset may break the chart if the metadata does not exist.',
|
@ -28,7 +28,7 @@ import { Radio } from 'src/components/Radio';
|
|||||||
|
|
||||||
import Icons from 'src/components/Icons';
|
import Icons from 'src/components/Icons';
|
||||||
import Tabs from 'src/components/Tabs';
|
import Tabs from 'src/components/Tabs';
|
||||||
import DatasourceEditor from 'src/datasource/DatasourceEditor';
|
import DatasourceEditor from 'src/components/Datasource/DatasourceEditor';
|
||||||
import Field from 'src/CRUD/Field';
|
import Field from 'src/CRUD/Field';
|
||||||
import mockDatasource from 'spec/fixtures/mockDatasource';
|
import mockDatasource from 'spec/fixtures/mockDatasource';
|
||||||
import * as featureFlags from 'src/featureFlags';
|
import * as featureFlags from 'src/featureFlags';
|
@ -28,8 +28,8 @@ import { supersetTheme, ThemeProvider } from '@superset-ui/core';
|
|||||||
|
|
||||||
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint';
|
||||||
import Modal from 'src/components/Modal';
|
import Modal from 'src/components/Modal';
|
||||||
import DatasourceModal from 'src/datasource/DatasourceModal';
|
import { DatasourceModal } from 'src/components/Datasource';
|
||||||
import DatasourceEditor from 'src/datasource/DatasourceEditor';
|
import DatasourceEditor from 'src/components/Datasource/DatasourceEditor';
|
||||||
import * as featureFlags from 'src/featureFlags';
|
import * as featureFlags from 'src/featureFlags';
|
||||||
import mockDatasource from 'spec/fixtures/mockDatasource';
|
import mockDatasource from 'spec/fixtures/mockDatasource';
|
||||||
|
|
22
superset-frontend/src/components/Datasource/index.tsx
Normal file
22
superset-frontend/src/components/Datasource/index.tsx
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/**
|
||||||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
|
* to you under the Apache License, Version 2.0 (the
|
||||||
|
* "License"); you may not use this file except in compliance
|
||||||
|
* with the License. You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*/
|
||||||
|
import ChangeDatasourceModal from './ChangeDatasourceModal';
|
||||||
|
import DatasourceModal from './DatasourceModal';
|
||||||
|
|
||||||
|
export { ChangeDatasourceModal, DatasourceModal };
|
@ -24,8 +24,10 @@ import { t, styled, supersetTheme } from '@superset-ui/core';
|
|||||||
import { Dropdown, Menu } from 'src/common/components';
|
import { Dropdown, Menu } from 'src/common/components';
|
||||||
import { Tooltip } from 'src/components/Tooltip';
|
import { Tooltip } from 'src/components/Tooltip';
|
||||||
import Icons from 'src/components/Icons';
|
import Icons from 'src/components/Icons';
|
||||||
import ChangeDatasourceModal from 'src/datasource/ChangeDatasourceModal';
|
import {
|
||||||
import DatasourceModal from 'src/datasource/DatasourceModal';
|
ChangeDatasourceModal,
|
||||||
|
DatasourceModal,
|
||||||
|
} from 'src/components/Datasource';
|
||||||
import { postForm } from 'src/explore/exploreUtils';
|
import { postForm } from 'src/explore/exploreUtils';
|
||||||
import Button from 'src/components/Button';
|
import Button from 'src/components/Button';
|
||||||
import ErrorAlert from 'src/components/ErrorMessage/ErrorAlert';
|
import ErrorAlert from 'src/components/ErrorMessage/ErrorAlert';
|
||||||
|
@ -32,7 +32,7 @@ import {
|
|||||||
import { ColumnObject } from 'src/views/CRUD/data/dataset/types';
|
import { ColumnObject } from 'src/views/CRUD/data/dataset/types';
|
||||||
import { useListViewResource } from 'src/views/CRUD/hooks';
|
import { useListViewResource } from 'src/views/CRUD/hooks';
|
||||||
import ConfirmStatusChange from 'src/components/ConfirmStatusChange';
|
import ConfirmStatusChange from 'src/components/ConfirmStatusChange';
|
||||||
import DatasourceModal from 'src/datasource/DatasourceModal';
|
import { DatasourceModal } from 'src/components/Datasource';
|
||||||
import DeleteModal from 'src/components/DeleteModal';
|
import DeleteModal from 'src/components/DeleteModal';
|
||||||
import handleResourceExport from 'src/utils/export';
|
import handleResourceExport from 'src/utils/export';
|
||||||
import ListView, {
|
import ListView, {
|
||||||
|
Loading…
Reference in New Issue
Block a user