Browse Source

[UI] Cleanup

Oleg Shuralev 5 years ago
parent
commit
c327908493
45 changed files with 43 additions and 41 deletions
  1. 1 1
      frontend/src/components/AppContainer.tsx
  2. 1 1
      frontend/src/components/Brokers/Brokers.tsx
  3. 1 1
      frontend/src/components/Brokers/BrokersContainer.ts
  4. 1 1
      frontend/src/components/Nav/ClusterMenu.tsx
  5. 1 1
      frontend/src/components/Nav/Nav.tsx
  6. 1 1
      frontend/src/components/Nav/NavConatiner.ts
  7. 1 1
      frontend/src/components/Topics/Details/Details.tsx
  8. 1 1
      frontend/src/components/Topics/Details/DetailsContainer.ts
  9. 1 1
      frontend/src/components/Topics/Details/Messages/Messages.tsx
  10. 1 1
      frontend/src/components/Topics/Details/Messages/MessagesContainer.ts
  11. 1 1
      frontend/src/components/Topics/Details/Overview/Overview.tsx
  12. 1 1
      frontend/src/components/Topics/Details/Overview/OverviewContainer.ts
  13. 1 1
      frontend/src/components/Topics/Details/Settings/Settings.tsx
  14. 1 1
      frontend/src/components/Topics/Details/Settings/SettingsContainer.ts
  15. 1 1
      frontend/src/components/Topics/List/List.tsx
  16. 1 1
      frontend/src/components/Topics/List/ListContainer.ts
  17. 1 1
      frontend/src/components/Topics/List/ListItem.tsx
  18. 1 1
      frontend/src/components/Topics/New/New.tsx
  19. 1 1
      frontend/src/components/Topics/New/NewContainer.ts
  20. 1 1
      frontend/src/components/Topics/Topics.tsx
  21. 1 1
      frontend/src/components/Topics/TopicsContainer.ts
  22. 1 1
      frontend/src/lib/api/brokers.ts
  23. 1 1
      frontend/src/lib/api/clusters.ts
  24. 1 1
      frontend/src/lib/api/topics.ts
  25. 0 0
      frontend/src/lib/interfaces/broker.ts
  26. 2 0
      frontend/src/lib/interfaces/cluster.ts
  27. 0 0
      frontend/src/lib/interfaces/index.ts
  28. 1 1
      frontend/src/lib/interfaces/loader.ts
  29. 0 0
      frontend/src/lib/interfaces/topic.ts
  30. 1 1
      frontend/src/lib/paths.ts
  31. 1 1
      frontend/src/redux/reducers/brokers/actions.ts
  32. 1 1
      frontend/src/redux/reducers/brokers/reducer.ts
  33. 1 1
      frontend/src/redux/reducers/brokers/selectors.ts
  34. 1 1
      frontend/src/redux/reducers/brokers/thunks.ts
  35. 1 1
      frontend/src/redux/reducers/clusters/actions.ts
  36. 1 1
      frontend/src/redux/reducers/clusters/reducer.ts
  37. 1 1
      frontend/src/redux/reducers/clusters/selectors.ts
  38. 1 1
      frontend/src/redux/reducers/clusters/thunks.ts
  39. 1 1
      frontend/src/redux/reducers/index.ts
  40. 1 1
      frontend/src/redux/reducers/loader/reducer.ts
  41. 1 1
      frontend/src/redux/reducers/loader/selectors.ts
  42. 1 1
      frontend/src/redux/reducers/topics/actions.ts
  43. 1 1
      frontend/src/redux/reducers/topics/reducer.ts
  44. 1 1
      frontend/src/redux/reducers/topics/selectors.ts
  45. 1 1
      frontend/src/redux/reducers/topics/thunks.ts

+ 1 - 1
frontend/src/components/AppContainer.tsx

@@ -4,7 +4,7 @@ import {
 } from 'redux/reducers/clusters/thunks';
 } from 'redux/reducers/clusters/thunks';
 import App from './App';
 import App from './App';
 import { getIsClusterListFetched } from 'redux/reducers/clusters/selectors';
 import { getIsClusterListFetched } from 'redux/reducers/clusters/selectors';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 
 
 const mapStateToProps = (state: RootState) => ({
 const mapStateToProps = (state: RootState) => ({
   isClusterListFetched: getIsClusterListFetched(state),
   isClusterListFetched: getIsClusterListFetched(state),

+ 1 - 1
frontend/src/components/Brokers/Brokers.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, BrokerMetrics, ZooKeeperStatus } from 'types';
+import { ClusterId, BrokerMetrics, ZooKeeperStatus } from 'lib/interfaces';
 import useInterval from 'lib/hooks/useInterval';
 import useInterval from 'lib/hooks/useInterval';
 import formatBytes from 'lib/utils/formatBytes';
 import formatBytes from 'lib/utils/formatBytes';
 import cx from 'classnames';
 import cx from 'classnames';

+ 1 - 1
frontend/src/components/Brokers/BrokersContainer.ts

@@ -5,7 +5,7 @@ import {
 } from 'redux/reducers/brokers/thunks';
 } from 'redux/reducers/brokers/thunks';
 import Brokers from './Brokers';
 import Brokers from './Brokers';
 import * as brokerSelectors from 'redux/reducers/brokers/selectors';
 import * as brokerSelectors from 'redux/reducers/brokers/selectors';
-import { RootState, ClusterId } from 'types';
+import { RootState, ClusterId } from 'lib/interfaces';
 import { RouteComponentProps } from 'react-router-dom';
 import { RouteComponentProps } from 'react-router-dom';
 
 
 interface RouteProps {
 interface RouteProps {

+ 1 - 1
frontend/src/components/Nav/ClusterMenu.tsx

@@ -1,5 +1,5 @@
 import React, { CSSProperties } from 'react';
 import React, { CSSProperties } from 'react';
-import { Cluster } from 'types';
+import { Cluster } from 'lib/interfaces';
 import { NavLink } from 'react-router-dom';
 import { NavLink } from 'react-router-dom';
 import { clusterBrokersPath, clusterTopicsPath } from 'lib/paths';
 import { clusterBrokersPath, clusterTopicsPath } from 'lib/paths';
 
 

+ 1 - 1
frontend/src/components/Nav/Nav.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { Cluster } from 'types';
+import { Cluster } from 'lib/interfaces';
 import { NavLink } from 'react-router-dom';
 import { NavLink } from 'react-router-dom';
 import cx from 'classnames';
 import cx from 'classnames';
 import ClusterMenu from './ClusterMenu';
 import ClusterMenu from './ClusterMenu';

+ 1 - 1
frontend/src/components/Nav/NavConatiner.ts

@@ -1,7 +1,7 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
 import Nav from './Nav';
 import Nav from './Nav';
 import { getIsClusterListFetched, getClusterList } from 'redux/reducers/clusters/selectors';
 import { getIsClusterListFetched, getClusterList } from 'redux/reducers/clusters/selectors';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 
 
 const mapStateToProps = (state: RootState) => ({
 const mapStateToProps = (state: RootState) => ({
   isClusterListFetched: getIsClusterListFetched(state),
   isClusterListFetched: getIsClusterListFetched(state),

+ 1 - 1
frontend/src/components/Topics/Details/Details.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, Topic, TopicDetails, TopicName } from 'types';
+import { ClusterId, Topic, TopicDetails, TopicName } from 'lib/interfaces';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import { NavLink, Switch, Route } from 'react-router-dom';
 import { NavLink, Switch, Route } from 'react-router-dom';
 import { clusterTopicsPath, clusterTopicSettingsPath, clusterTopicPath, clusterTopicMessagesPath } from 'lib/paths';
 import { clusterTopicsPath, clusterTopicSettingsPath, clusterTopicPath, clusterTopicMessagesPath } from 'lib/paths';

+ 1 - 1
frontend/src/components/Topics/Details/DetailsContainer.ts

@@ -1,6 +1,6 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
 import Details from './Details';
 import Details from './Details';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 
 
 interface RouteProps {
 interface RouteProps {

+ 1 - 1
frontend/src/components/Topics/Details/Messages/Messages.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, TopicName } from 'types';
+import { ClusterId, TopicName } from 'lib/interfaces';
 
 
 interface Props {
 interface Props {
   clusterId: ClusterId;
   clusterId: ClusterId;

+ 1 - 1
frontend/src/components/Topics/Details/Messages/MessagesContainer.ts

@@ -1,6 +1,6 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
 import Messages from './Messages';
 import Messages from './Messages';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 
 
 interface RouteProps {
 interface RouteProps {

+ 1 - 1
frontend/src/components/Topics/Details/Overview/Overview.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, Topic, TopicDetails, TopicName } from 'types';
+import { ClusterId, Topic, TopicDetails, TopicName } from 'lib/interfaces';
 import MetricsWrapper from 'components/common/Dashboard/MetricsWrapper';
 import MetricsWrapper from 'components/common/Dashboard/MetricsWrapper';
 import Indicator from 'components/common/Dashboard/Indicator';
 import Indicator from 'components/common/Dashboard/Indicator';
 
 

+ 1 - 1
frontend/src/components/Topics/Details/Overview/OverviewContainer.ts

@@ -3,7 +3,7 @@ import {
   fetchTopicDetails,
   fetchTopicDetails,
 } from 'redux/reducers/topics/thunks';
 } from 'redux/reducers/topics/thunks';
 import Overview from './Overview';
 import Overview from './Overview';
-import { RootState, TopicName, ClusterId } from 'types';
+import { RootState, TopicName, ClusterId } from 'lib/interfaces';
 import { getTopicByName, getIsTopicDetailsFetched } from 'redux/reducers/topics/selectors';
 import { getTopicByName, getIsTopicDetailsFetched } from 'redux/reducers/topics/selectors';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 
 

+ 1 - 1
frontend/src/components/Topics/Details/Settings/Settings.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, TopicName, TopicConfig } from 'types';
+import { ClusterId, TopicName, TopicConfig } from 'lib/interfaces';
 
 
 interface Props {
 interface Props {
   clusterId: ClusterId;
   clusterId: ClusterId;

+ 1 - 1
frontend/src/components/Topics/Details/Settings/SettingsContainer.ts

@@ -1,5 +1,5 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
-import { RootState, ClusterId, TopicName } from 'types';
+import { RootState, ClusterId, TopicName } from 'lib/interfaces';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import {
 import {
   fetchTopicConfig,
   fetchTopicConfig,

+ 1 - 1
frontend/src/components/Topics/List/List.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { TopicWithDetailedInfo, ClusterId } from 'types';
+import { TopicWithDetailedInfo, ClusterId } from 'lib/interfaces';
 import ListItem from './ListItem';
 import ListItem from './ListItem';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import { NavLink } from 'react-router-dom';
 import { NavLink } from 'react-router-dom';

+ 1 - 1
frontend/src/components/Topics/List/ListContainer.ts

@@ -1,5 +1,5 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 import { getTopicList, getExternalTopicList } from 'redux/reducers/topics/selectors';
 import { getTopicList, getExternalTopicList } from 'redux/reducers/topics/selectors';
 import List from './List';
 import List from './List';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';

+ 1 - 1
frontend/src/components/Topics/List/ListItem.tsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import React from 'react';
 import cx from 'classnames';
 import cx from 'classnames';
 import { NavLink } from 'react-router-dom';
 import { NavLink } from 'react-router-dom';
-import { TopicWithDetailedInfo } from 'types';
+import { TopicWithDetailedInfo } from 'lib/interfaces';
 
 
 const ListItem: React.FC<TopicWithDetailedInfo> = ({
 const ListItem: React.FC<TopicWithDetailedInfo> = ({
   name,
   name,

+ 1 - 1
frontend/src/components/Topics/New/New.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId, CleanupPolicy, TopicFormData, TopicName } from 'types';
+import { ClusterId, CleanupPolicy, TopicFormData, TopicName } from 'lib/interfaces';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb';
 import { clusterTopicsPath } from 'lib/paths';
 import { clusterTopicsPath } from 'lib/paths';
 import { useForm, ErrorMessage } from 'react-hook-form';
 import { useForm, ErrorMessage } from 'react-hook-form';

+ 1 - 1
frontend/src/components/Topics/New/NewContainer.ts

@@ -1,5 +1,5 @@
 import { connect } from 'react-redux';
 import { connect } from 'react-redux';
-import { RootState, ClusterId, TopicFormData, TopicName, Action } from 'types';
+import { RootState, ClusterId, TopicFormData, TopicName, Action } from 'lib/interfaces';
 import New from './New';
 import New from './New';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { withRouter, RouteComponentProps } from 'react-router-dom';
 import { createTopic } from 'redux/reducers/topics/thunks';
 import { createTopic } from 'redux/reducers/topics/thunks';

+ 1 - 1
frontend/src/components/Topics/Topics.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
 import React from 'react';
-import { ClusterId } from 'types';
+import { ClusterId } from 'lib/interfaces';
 import {
 import {
   Switch,
   Switch,
   Route,
   Route,

+ 1 - 1
frontend/src/components/Topics/TopicsContainer.ts

@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
 import { fetchTopicList } from 'redux/reducers/topics/thunks';
 import { fetchTopicList } from 'redux/reducers/topics/thunks';
 import Topics from './Topics';
 import Topics from './Topics';
 import { getIsTopicListFetched } from 'redux/reducers/topics/selectors';
 import { getIsTopicListFetched } from 'redux/reducers/topics/selectors';
-import { RootState, ClusterId } from 'types';
+import { RootState, ClusterId } from 'lib/interfaces';
 import { RouteComponentProps } from 'react-router-dom';
 import { RouteComponentProps } from 'react-router-dom';
 
 
 interface RouteProps {
 interface RouteProps {

+ 1 - 1
frontend/src/lib/api/brokers.ts

@@ -2,7 +2,7 @@ import {
   Broker,
   Broker,
   ClusterId,
   ClusterId,
   BrokerMetrics,
   BrokerMetrics,
-} from 'types';
+} from 'lib/interfaces';
 import {
 import {
   BASE_URL,
   BASE_URL,
   BASE_PARAMS,
   BASE_PARAMS,

+ 1 - 1
frontend/src/lib/api/clusters.ts

@@ -1,6 +1,6 @@
 import {
 import {
   Cluster,
   Cluster,
-} from 'types';
+} from 'lib/interfaces';
 import {
 import {
   BASE_URL,
   BASE_URL,
   BASE_PARAMS,
   BASE_PARAMS,

+ 1 - 1
frontend/src/lib/api/topics.ts

@@ -5,7 +5,7 @@ import {
   TopicDetails,
   TopicDetails,
   TopicConfig,
   TopicConfig,
   TopicFormData,
   TopicFormData,
-} from 'types';
+} from 'lib/interfaces';
 import {
 import {
   BASE_URL,
   BASE_URL,
   BASE_PARAMS,
   BASE_PARAMS,

+ 0 - 0
frontend/src/types/broker.ts → frontend/src/lib/interfaces/broker.ts


+ 2 - 0
frontend/src/types/cluster.ts → frontend/src/lib/interfaces/cluster.ts

@@ -13,4 +13,6 @@ export interface Cluster {
   brokerCount: number;
   brokerCount: number;
   onlinePartitionCount: number;
   onlinePartitionCount: number;
   topicCount: number;
   topicCount: number;
+  bytesInPerSec: number;
+  bytesOutPerSec: number;
 }
 }

+ 0 - 0
frontend/src/types/index.ts → frontend/src/lib/interfaces/index.ts


+ 1 - 1
frontend/src/types/loader.ts → frontend/src/lib/interfaces/loader.ts

@@ -1,4 +1,4 @@
-import { FetchStatus } from "types";
+import { FetchStatus } from 'lib/interfaces';
 
 
 export interface LoaderState {
 export interface LoaderState {
   [key: string]: FetchStatus;
   [key: string]: FetchStatus;

+ 0 - 0
frontend/src/types/topic.ts → frontend/src/lib/interfaces/topic.ts


+ 1 - 1
frontend/src/lib/paths.ts

@@ -1,4 +1,4 @@
-import { ClusterId, TopicName } from "types";
+import { ClusterId, TopicName } from 'lib/interfaces';
 
 
 const clusterPath = (clusterId: ClusterId) => `/clusters/${clusterId}`;
 const clusterPath = (clusterId: ClusterId) => `/clusters/${clusterId}`;
 
 

+ 1 - 1
frontend/src/redux/reducers/brokers/actions.ts

@@ -1,6 +1,6 @@
 import { createAsyncAction} from 'typesafe-actions';
 import { createAsyncAction} from 'typesafe-actions';
 import ActionType from './actionType';
 import ActionType from './actionType';
-import { Broker, BrokerMetrics } from 'types';
+import { Broker, BrokerMetrics } from 'lib/interfaces';
 
 
 export const fetchBrokersAction = createAsyncAction(
 export const fetchBrokersAction = createAsyncAction(
   ActionType.GET_BROKERS__REQUEST,
   ActionType.GET_BROKERS__REQUEST,

+ 1 - 1
frontend/src/redux/reducers/brokers/reducer.ts

@@ -1,4 +1,4 @@
-import { Action, BrokersState, ZooKeeperStatus, BrokerMetrics } from 'types';
+import { Action, BrokersState, ZooKeeperStatus, BrokerMetrics } from 'lib/interfaces';
 import actionType from 'redux/reducers/actionType';
 import actionType from 'redux/reducers/actionType';
 
 
 export const initialState: BrokersState =  {
 export const initialState: BrokersState =  {

+ 1 - 1
frontend/src/redux/reducers/brokers/selectors.ts

@@ -1,5 +1,5 @@
 import { createSelector } from 'reselect';
 import { createSelector } from 'reselect';
-import { RootState, FetchStatus, BrokersState } from 'types';
+import { RootState, FetchStatus, BrokersState } from 'lib/interfaces';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 
 
 const brokersState = ({ brokers }: RootState): BrokersState => brokers;
 const brokersState = ({ brokers }: RootState): BrokersState => brokers;

+ 1 - 1
frontend/src/redux/reducers/brokers/thunks.ts

@@ -3,7 +3,7 @@ import {
   fetchBrokersAction,
   fetchBrokersAction,
   fetchBrokerMetricsAction,
   fetchBrokerMetricsAction,
 } from './actions';
 } from './actions';
-import { PromiseThunk, ClusterId } from 'types';
+import { PromiseThunk, ClusterId } from 'lib/interfaces';
 
 
 
 
 export const fetchBrokers = (clusterId: ClusterId): PromiseThunk<void> => async (dispatch) => {
 export const fetchBrokers = (clusterId: ClusterId): PromiseThunk<void> => async (dispatch) => {

+ 1 - 1
frontend/src/redux/reducers/clusters/actions.ts

@@ -1,6 +1,6 @@
 import { createAsyncAction} from 'typesafe-actions';
 import { createAsyncAction} from 'typesafe-actions';
 import ActionType from './actionType';
 import ActionType from './actionType';
-import { Cluster } from 'types';
+import { Cluster } from 'lib/interfaces';
 
 
 export const fetchClusterListAction = createAsyncAction(
 export const fetchClusterListAction = createAsyncAction(
   ActionType.GET_CLUSTERS__REQUEST,
   ActionType.GET_CLUSTERS__REQUEST,

+ 1 - 1
frontend/src/redux/reducers/clusters/reducer.ts

@@ -1,4 +1,4 @@
-import { Cluster, Action } from 'types';
+import { Cluster, Action } from 'lib/interfaces';
 import actionType from 'redux/reducers/actionType';
 import actionType from 'redux/reducers/actionType';
 
 
 export const initialState: Cluster[] = [];
 export const initialState: Cluster[] = [];

+ 1 - 1
frontend/src/redux/reducers/clusters/selectors.ts

@@ -1,5 +1,5 @@
 import { createSelector } from 'reselect';
 import { createSelector } from 'reselect';
-import { Cluster, RootState, FetchStatus } from 'types';
+import { Cluster, RootState, FetchStatus } from 'lib/interfaces';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 
 
 const clustersState = ({ clusters }: RootState): Cluster[] => clusters;
 const clustersState = ({ clusters }: RootState): Cluster[] => clusters;

+ 1 - 1
frontend/src/redux/reducers/clusters/thunks.ts

@@ -4,7 +4,7 @@ import {
 import {
 import {
   fetchClusterListAction,
   fetchClusterListAction,
 } from './actions';
 } from './actions';
-import { Cluster, PromiseThunk } from 'types';
+import { Cluster, PromiseThunk } from 'lib/interfaces';
 
 
 export const fetchClustersList = (): PromiseThunk<void> => async (dispatch) => {
 export const fetchClustersList = (): PromiseThunk<void> => async (dispatch) => {
   dispatch(fetchClusterListAction.request());
   dispatch(fetchClusterListAction.request());

+ 1 - 1
frontend/src/redux/reducers/index.ts

@@ -3,7 +3,7 @@ import topics from './topics/reducer';
 import clusters from './clusters/reducer';
 import clusters from './clusters/reducer';
 import brokers from './brokers/reducer';
 import brokers from './brokers/reducer';
 import loader from './loader/reducer';
 import loader from './loader/reducer';
-import { RootState } from 'types';
+import { RootState } from 'lib/interfaces';
 
 
 export default combineReducers<RootState>({
 export default combineReducers<RootState>({
   topics,
   topics,

+ 1 - 1
frontend/src/redux/reducers/loader/reducer.ts

@@ -1,4 +1,4 @@
-import { FetchStatus, Action, LoaderState } from 'types';
+import { FetchStatus, Action, LoaderState } from 'lib/interfaces';
 
 
 export const initialState: LoaderState = {};
 export const initialState: LoaderState = {};
 
 

+ 1 - 1
frontend/src/redux/reducers/loader/selectors.ts

@@ -1,4 +1,4 @@
-import { RootState, FetchStatus } from 'types';
+import { RootState, FetchStatus } from 'lib/interfaces';
 
 
 export const createFetchingSelector = (action: string) =>
 export const createFetchingSelector = (action: string) =>
   (state: RootState) => (state.loader[action] || FetchStatus.notFetched);
   (state: RootState) => (state.loader[action] || FetchStatus.notFetched);

+ 1 - 1
frontend/src/redux/reducers/topics/actions.ts

@@ -1,6 +1,6 @@
 import { createAsyncAction} from 'typesafe-actions';
 import { createAsyncAction} from 'typesafe-actions';
 import ActionType from './actionType';
 import ActionType from './actionType';
-import { Topic, TopicDetails, TopicName, TopicConfig} from 'types';
+import { Topic, TopicDetails, TopicName, TopicConfig} from 'lib/interfaces';
 
 
 export const fetchTopicListAction = createAsyncAction(
 export const fetchTopicListAction = createAsyncAction(
   ActionType.GET_TOPICS__REQUEST,
   ActionType.GET_TOPICS__REQUEST,

+ 1 - 1
frontend/src/redux/reducers/topics/reducer.ts

@@ -1,4 +1,4 @@
-import { Action, TopicsState, Topic } from 'types';
+import { Action, TopicsState, Topic } from 'lib/interfaces';
 import actionType from 'redux/reducers/actionType';
 import actionType from 'redux/reducers/actionType';
 
 
 export const initialState: TopicsState = {
 export const initialState: TopicsState = {

+ 1 - 1
frontend/src/redux/reducers/topics/selectors.ts

@@ -1,5 +1,5 @@
 import { createSelector } from 'reselect';
 import { createSelector } from 'reselect';
-import { RootState, TopicName, FetchStatus, TopicsState } from 'types';
+import { RootState, TopicName, FetchStatus, TopicsState } from 'lib/interfaces';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 import { createFetchingSelector } from 'redux/reducers/loader/selectors';
 
 
 const topicsState = ({ topics }: RootState): TopicsState => topics;
 const topicsState = ({ topics }: RootState): TopicsState => topics;

+ 1 - 1
frontend/src/redux/reducers/topics/thunks.ts

@@ -10,7 +10,7 @@ import {
   fetchTopicConfigAction,
   fetchTopicConfigAction,
   createTopicAction,
   createTopicAction,
 } from './actions';
 } from './actions';
-import { PromiseThunk, ClusterId, TopicName, TopicFormData } from 'types';
+import { PromiseThunk, ClusterId, TopicName, TopicFormData } from 'lib/interfaces';
 
 
 export const fetchTopicList = (clusterId: ClusterId): PromiseThunk<void> => async (dispatch) => {
 export const fetchTopicList = (clusterId: ClusterId): PromiseThunk<void> => async (dispatch) => {
   dispatch(fetchTopicListAction.request());
   dispatch(fetchTopicListAction.request());