Просмотр исходного кода

Fixed storybook and tests support for Flow

Sergiu Miclea 8 лет назад
Родитель
Сommit
c52f93dead
100 измененных файлов с 106 добавлено и 106 удалено
  1. 6 6
      private/storybook/Decorator.jsx
  2. 1 1
      src/components/atoms/Arrow/story.jsx
  3. 1 1
      src/components/atoms/Button/story.jsx
  4. 1 1
      src/components/atoms/Button/test.jsx
  5. 1 1
      src/components/atoms/Checkbox/story.jsx
  6. 1 1
      src/components/atoms/Checkbox/test.jsx
  7. 1 1
      src/components/atoms/CopyButton/story.jsx
  8. 1 1
      src/components/atoms/CopyButton/test.jsx
  9. 1 1
      src/components/atoms/CopyValue/test.jsx
  10. 1 1
      src/components/atoms/DropdownButton/story.jsx
  11. 1 1
      src/components/atoms/DropdownButton/test.jsx
  12. 1 1
      src/components/atoms/EndpointLogos/story.jsx
  13. 1 1
      src/components/atoms/EndpointLogos/test.jsx
  14. 1 1
      src/components/atoms/Logo/story.jsx
  15. 1 1
      src/components/atoms/PasswordValue/story.jsx
  16. 1 1
      src/components/atoms/PasswordValue/test.jsx
  17. 1 1
      src/components/atoms/ProgressBar/story.jsx
  18. 1 1
      src/components/atoms/ProgressBar/test.jsx
  19. 1 1
      src/components/atoms/RadioInput/story.jsx
  20. 1 1
      src/components/atoms/RadioInput/test.jsx
  21. 1 1
      src/components/atoms/ReloadButton/story.jsx
  22. 1 1
      src/components/atoms/ReloadButton/test.jsx
  23. 1 1
      src/components/atoms/SearchButton/story.jsx
  24. 1 1
      src/components/atoms/SearchButton/test.jsx
  25. 1 1
      src/components/atoms/StatusIcon/story.jsx
  26. 1 1
      src/components/atoms/StatusIcon/test.jsx
  27. 1 1
      src/components/atoms/StatusImage/story.jsx
  28. 1 1
      src/components/atoms/StatusImage/test.jsx
  29. 1 1
      src/components/atoms/StatusPill/story.jsx
  30. 1 1
      src/components/atoms/StatusPill/test.jsx
  31. 1 1
      src/components/atoms/Switch/story.jsx
  32. 1 1
      src/components/atoms/Switch/test.jsx
  33. 1 1
      src/components/atoms/TextInput/story.jsx
  34. 1 1
      src/components/atoms/TextInput/test.jsx
  35. 1 1
      src/components/atoms/ToggleButtonBar/story.jsx
  36. 1 1
      src/components/atoms/ToggleButtonBar/test.jsx
  37. 2 2
      src/components/atoms/Tooltip/story.jsx
  38. 1 1
      src/components/molecules/DatetimePicker/story.jsx
  39. 1 1
      src/components/molecules/DatetimePicker/test.jsx
  40. 1 1
      src/components/molecules/DetailsNavigation/story.jsx
  41. 1 1
      src/components/molecules/DetailsNavigation/test.jsx
  42. 1 1
      src/components/molecules/Dropdown/story.jsx
  43. 1 1
      src/components/molecules/Dropdown/test.jsx
  44. 1 1
      src/components/molecules/DropdownLink/story.jsx
  45. 1 1
      src/components/molecules/DropdownLink/test.jsx
  46. 1 1
      src/components/molecules/EndpointField/story.jsx
  47. 1 1
      src/components/molecules/EndpointField/test.jsx
  48. 1 1
      src/components/molecules/EndpointListItem/story.jsx
  49. 1 1
      src/components/molecules/EndpointListItem/test.jsx
  50. 1 1
      src/components/molecules/LoadingButton/story.jsx
  51. 1 1
      src/components/molecules/LoadingButton/test.jsx
  52. 1 1
      src/components/molecules/LoginFormField/story.jsx
  53. 1 1
      src/components/molecules/LoginFormField/test.jsx
  54. 1 1
      src/components/molecules/LoginOptions/story.jsx
  55. 1 1
      src/components/molecules/LoginOptions/test.jsx
  56. 1 1
      src/components/molecules/MainListFilter/story.jsx
  57. 1 1
      src/components/molecules/MainListFilter/test.jsx
  58. 1 1
      src/components/molecules/MainListItem/story.jsx
  59. 1 1
      src/components/molecules/MainListItem/test.jsx
  60. 1 1
      src/components/molecules/Modal/story.jsx
  61. 1 1
      src/components/molecules/Modal/test.jsx
  62. 1 1
      src/components/molecules/NewItemDropdown/story.jsx
  63. 1 1
      src/components/molecules/NewItemDropdown/test.jsx
  64. 1 1
      src/components/molecules/NotificationDropdown/story.jsx
  65. 1 1
      src/components/molecules/NotificationDropdown/test.jsx
  66. 1 1
      src/components/molecules/PropertiesTable/story.jsx
  67. 1 1
      src/components/molecules/PropertiesTable/test.jsx
  68. 1 1
      src/components/molecules/SearchInput/story.jsx
  69. 1 1
      src/components/molecules/SearchInput/test.jsx
  70. 1 1
      src/components/molecules/SideMenu/story.jsx
  71. 1 1
      src/components/molecules/SideMenu/test.jsx
  72. 1 1
      src/components/molecules/Table/story.jsx
  73. 1 1
      src/components/molecules/Table/test.jsx
  74. 1 1
      src/components/molecules/TaskItem/story.jsx
  75. 1 1
      src/components/molecules/TaskItem/test.jsx
  76. 1 1
      src/components/molecules/Timeline/story.jsx
  77. 1 1
      src/components/molecules/Timeline/test.jsx
  78. 1 1
      src/components/molecules/UserDropdown/story.jsx
  79. 1 1
      src/components/molecules/UserDropdown/test.jsx
  80. 1 1
      src/components/molecules/WizardBreadcrumbs/story.jsx
  81. 1 1
      src/components/molecules/WizardBreadcrumbs/test.jsx
  82. 1 1
      src/components/molecules/WizardOptionsField/story.jsx
  83. 1 1
      src/components/molecules/WizardOptionsField/test.jsx
  84. 1 1
      src/components/molecules/WizardType/story.jsx
  85. 1 1
      src/components/molecules/WizardType/test.jsx
  86. 1 1
      src/components/organisms/AlertModal/story.jsx
  87. 1 1
      src/components/organisms/AlertModal/test.jsx
  88. 1 1
      src/components/organisms/ChooseProvider/story.jsx
  89. 1 1
      src/components/organisms/ChooseProvider/test.jsx
  90. 1 1
      src/components/organisms/DetailsContentHeader/story.jsx
  91. 1 1
      src/components/organisms/DetailsContentHeader/test.jsx
  92. 1 1
      src/components/organisms/DetailsPageHeader/story.jsx
  93. 1 1
      src/components/organisms/DetailsPageHeader/test.jsx
  94. 1 1
      src/components/organisms/EndpointDetailsContent/story.jsx
  95. 1 1
      src/components/organisms/EndpointDetailsContent/test.jsx
  96. 1 1
      src/components/organisms/EndpointValidation/story.jsx
  97. 1 1
      src/components/organisms/EndpointValidation/test.jsx
  98. 1 1
      src/components/organisms/Executions/story.jsx
  99. 1 1
      src/components/organisms/Executions/test.jsx
  100. 1 1
      src/components/organisms/FilterList/story.jsx

+ 6 - 6
private/storybook/Decorator.jsx

@@ -12,9 +12,10 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-import React from 'react'
+// @flow
+
+import * as React from 'react'
 import styled from 'styled-components'
-import PropTypes from 'prop-types'
 import Palette from '../../src/components/styleUtils/Palette'
 
 const Wrapper = styled.div`
@@ -23,10 +24,9 @@ const Wrapper = styled.div`
   padding: 32px;
 `
 
-const Decorator = ({ children }) => <Wrapper>{children}</Wrapper>
-
-Decorator.propTypes = {
-  children: PropTypes.node,
+type Props = {
+  children: React.Node,
 }
+const Decorator = (props: Props) => <Wrapper>{props.children}</Wrapper>
 
 export default Decorator

+ 1 - 1
src/components/atoms/Arrow/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Arrow from './Arrow'
+import Arrow from '.'
 
 storiesOf('Arrow', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/Button/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf, action } from '@storybook/react'
-import Button from './Button'
+import Button from '.'
 
 storiesOf('Button', module)
   .add('primary', () => (

+ 1 - 1
src/components/atoms/Button/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import Button from './Button'
+import Button from '.'
 
 const wrap = props => shallow(<Button {...props} />)
 

+ 1 - 1
src/components/atoms/Checkbox/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Checkbox from './Checkbox'
+import Checkbox from '.'
 
 class Wrapper extends React.Component {
   constructor() {

+ 1 - 1
src/components/atoms/Checkbox/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import Checkbox from './Checkbox'
+import Checkbox from '.'
 
 const wrap = props => shallow(<Checkbox {...props} />)
 

+ 1 - 1
src/components/atoms/CopyButton/story.jsx

@@ -16,7 +16,7 @@ import React from 'react'
 import { storiesOf } from '@storybook/react'
 import styled from 'styled-components'
 
-import CopyButton from './CopyButton'
+import CopyButton from '.'
 
 const Wrapper = styled.div`
   cursor: pointer;

+ 1 - 1
src/components/atoms/CopyButton/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import CopyButton from './CopyButton'
+import CopyButton from '.'
 
 const wrap = props => shallow(<CopyButton {...props} />).dive()
 

+ 1 - 1
src/components/atoms/CopyValue/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import CopyValue from './CopyValue'
+import CopyValue from '.'
 
 const wrap = props => shallow(<CopyValue {...props} />).dive()
 

+ 1 - 1
src/components/atoms/DropdownButton/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf, action } from '@storybook/react'
-import DropdownButton from './DropdownButton'
+import DropdownButton from '.'
 
 storiesOf('DropdownButton', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/DropdownButton/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import DropdownButton from './DropdownButton'
+import DropdownButton from '.'
 
 const wrap = props => shallow(<DropdownButton {...props} />).dive()
 

+ 1 - 1
src/components/atoms/EndpointLogos/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 import styled from 'styled-components'
-import EndpointLogos from './EndpointLogos'
+import EndpointLogos from '.'
 
 const Wrapper = styled.div`
   display: flex;

+ 1 - 1
src/components/atoms/EndpointLogos/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import EndpointLogos from './EndpointLogos'
+import EndpointLogos from '.'
 
 const wrap = props => shallow(<EndpointLogos {...props} />).dive()
 

+ 1 - 1
src/components/atoms/Logo/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Logo from './Logo'
+import Logo from '.'
 
 storiesOf('Logo', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/PasswordValue/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import PasswordValue from './PasswordValue'
+import PasswordValue from '.'
 
 storiesOf('PasswordValue', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/PasswordValue/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import PasswordValue from './PasswordValue'
+import PasswordValue from '.'
 
 const wrap = props => shallow(<PasswordValue {...props} />)
 const text = html => html.substring(html.indexOf('>') + 1, html.lastIndexOf('<'))

+ 1 - 1
src/components/atoms/ProgressBar/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 
-import ProgressBar from './ProgressBar'
+import ProgressBar from '.'
 
 let Wrapper = props => <div style={{ width: '800px' }}><ProgressBar {...props} /></div>
 

+ 1 - 1
src/components/atoms/ProgressBar/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import ProgressBar from './ProgressBar'
+import ProgressBar from '.'
 
 const wrap = props => shallow(<ProgressBar {...props} />).dive()
 

+ 1 - 1
src/components/atoms/RadioInput/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import RadioInput from './RadioInput'
+import RadioInput from '.'
 
 storiesOf('RadioInput', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/RadioInput/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import RadioInput from './RadioInput'
+import RadioInput from '.'
 
 const wrap = props => shallow(<RadioInput {...props} />)
 

+ 1 - 1
src/components/atoms/ReloadButton/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import ReloadButton from './ReloadButton'
+import ReloadButton from '.'
 
 storiesOf('ReloadButton', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/ReloadButton/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import ReloadButton from './ReloadButton'
+import ReloadButton from '.'
 
 const wrap = props => shallow(<ReloadButton {...props} />)
 

+ 1 - 1
src/components/atoms/SearchButton/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import SearchButton from './SearchButton'
+import SearchButton from '.'
 
 storiesOf('SearchButton', module)
   .add('default', () => (

+ 1 - 1
src/components/atoms/SearchButton/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import SearchButton from './SearchButton'
+import SearchButton from '.'
 
 const wrap = props => shallow(<SearchButton {...props} />)
 

+ 1 - 1
src/components/atoms/StatusIcon/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import StatusIcon from './StatusIcon'
+import StatusIcon from '.'
 
 storiesOf('StatusIcon', module)
   .add('completed', () => (

+ 1 - 1
src/components/atoms/StatusIcon/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import StatusIcon from './StatusIcon'
+import StatusIcon from '.'
 
 const wrap = props => shallow(<StatusIcon {...props} />)
 

+ 1 - 1
src/components/atoms/StatusImage/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import StatusImage from './StatusImage'
+import StatusImage from '.'
 
 storiesOf('StatusImage', module)
   .add('completed', () => (

+ 1 - 1
src/components/atoms/StatusImage/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import StatusImage from './StatusImage'
+import StatusImage from '.'
 
 const wrap = props => shallow(<StatusImage {...props} />)
 

+ 1 - 1
src/components/atoms/StatusPill/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import StatusPill from './StatusPill'
+import StatusPill from '.'
 
 storiesOf('StatusPill', module)
   .add('completed', () => (

+ 1 - 1
src/components/atoms/StatusPill/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import StatusPill from './StatusPill'
+import StatusPill from '.'
 
 const wrap = props => shallow(<StatusPill {...props} />)
 

+ 1 - 1
src/components/atoms/Switch/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 import PropTypes from 'prop-types'
-import Switch from './Switch'
+import Switch from '.'
 
 class Wrapper extends React.Component {
   static propTypes = {

+ 1 - 1
src/components/atoms/Switch/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import Switch from './Switch'
+import Switch from '.'
 
 const wrap = props => shallow(<Switch {...props} />)
 

+ 1 - 1
src/components/atoms/TextInput/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 import styled from 'styled-components'
-import TextInput from './TextInput'
+import TextInput from '.'
 
 const Wrapper = styled.div`
   display: inline-block;

+ 1 - 1
src/components/atoms/TextInput/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import TextInput from './TextInput'
+import TextInput from '.'
 
 const wrap = props => shallow(<TextInput {...props} />)
 

+ 1 - 1
src/components/atoms/ToggleButtonBar/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import ToggleButtonBar from './ToggleButtonBar'
+import ToggleButtonBar from '.'
 
 class Wrapper extends React.Component {
   constructor() {

+ 1 - 1
src/components/atoms/ToggleButtonBar/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import ToggleButtonBar from './ToggleButtonBar'
+import ToggleButtonBar from '.'
 
 const wrap = props => shallow(<ToggleButtonBar {...props} />)
 const items = [

+ 2 - 2
src/components/atoms/Tooltip/story.jsx

@@ -14,9 +14,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import { WizardOptionsField } from 'components'
+import WizardOptionsField from '../../molecules/WizardOptionsField'
 
-import Tooltip from './Tooltip'
+import Tooltip from '.'
 
 storiesOf('Tooltip', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/DatetimePicker/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 import moment from 'moment'
-import DatetimePicker from './DatetimePicker'
+import DatetimePicker from '.'
 
 class Wrapper extends React.Component {
   render() {

+ 1 - 1
src/components/molecules/DatetimePicker/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import DatetimePicker from './DatetimePicker'
+import DatetimePicker from '.'
 
 const wrap = props => shallow(<DatetimePicker {...props} />)
 

+ 1 - 1
src/components/molecules/DetailsNavigation/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import DetailsNavigation from './DetailsNavigation'
+import DetailsNavigation from '.'
 
 const items = [
   { label: 'Item 1', value: 'item-1' },

+ 1 - 1
src/components/molecules/DetailsNavigation/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import DetailsNavigation from './DetailsNavigation'
+import DetailsNavigation from '.'
 
 const wrap = props => shallow(<DetailsNavigation {...props} />)
 const items = [

+ 1 - 1
src/components/molecules/Dropdown/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Dropdown from './Dropdown'
+import Dropdown from '.'
 
 const items = [
   { label: 'Item 1', value: 'item-1' },

+ 1 - 1
src/components/molecules/Dropdown/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 // import sinon from 'sinon'
-import Dropdown from './Dropdown'
+import Dropdown from '.'
 
 const wrap = props => shallow(<Dropdown {...props} />)
 const items = [

+ 1 - 1
src/components/molecules/DropdownLink/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import DropdownLink from './DropdownLink'
+import DropdownLink from '.'
 
 class Wrapper extends React.Component {
   constructor() {

+ 1 - 1
src/components/molecules/DropdownLink/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import DropdownLink from './DropdownLink'
+import DropdownLink from '.'
 
 const wrap = props => shallow(<DropdownLink {...props} />)
 

+ 1 - 1
src/components/molecules/EndpointField/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import EndpointField from './EndpointField'
+import EndpointField from '.'
 
 class Wrapper extends React.Component {
   constructor() {

+ 1 - 1
src/components/molecules/EndpointField/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import EndpointField from './EndpointField'
+import EndpointField from '.'
 
 const wrap = props => shallow(<EndpointField {...props} />)
 

+ 1 - 1
src/components/molecules/EndpointListItem/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import EndpointListItem from './EndpointListItem'
+import EndpointListItem from '.'
 
 storiesOf('EnpointListItem', module)
   .add('openstack', () => (

+ 1 - 1
src/components/molecules/EndpointListItem/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import EndpointListItem from './EndpointListItem'
+import EndpointListItem from '.'
 
 const wrap = props => shallow(<EndpointListItem {...props} />)
 

+ 1 - 1
src/components/molecules/LoadingButton/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import LoadingButton from './LoadingButton'
+import LoadingButton from '.'
 
 storiesOf('LoadingButton', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/LoadingButton/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import LoadingButton from './LoadingButton'
+import LoadingButton from '.'
 
 it('renders disabled with given label', () => {
   let wrapper = shallow(<LoadingButton>Loading ...</LoadingButton>)

+ 1 - 1
src/components/molecules/LoginFormField/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import LoginFormField from './LoginFormField'
+import LoginFormField from '.'
 
 storiesOf('LoginFormField', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/LoginFormField/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import LoginFormField from './LoginFormField'
+import LoginFormField from '.'
 
 const wrap = props => shallow(<LoginFormField {...props} />)
 

+ 1 - 1
src/components/molecules/LoginOptions/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import LoginOptions from './LoginOptions'
+import LoginOptions from '.'
 
 let buttons = [
   {

+ 1 - 1
src/components/molecules/LoginOptions/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import LoginOptions from './LoginOptions'
+import LoginOptions from '.'
 
 const wrap = props => shallow(<LoginOptions {...props} />)
 

+ 1 - 1
src/components/molecules/MainListFilter/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import MainListFilter from './MainListFilter'
+import MainListFilter from '.'
 
 let items = [
   { label: 'Item 1', value: 'item-1' },

+ 1 - 1
src/components/molecules/MainListFilter/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import MainListFilter from './MainListFilter'
+import MainListFilter from '.'
 
 const wrap = props => shallow(<MainListFilter {...props} />)
 

+ 1 - 1
src/components/molecules/MainListItem/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import MainListItem from './MainListItem'
+import MainListItem from '.'
 
 let item = {
   origin_endpoint_id: 'openstack',

+ 1 - 1
src/components/molecules/MainListItem/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import MainListItem from './MainListItem'
+import MainListItem from '.'
 
 const wrap = props => shallow(<MainListItem {...props} />)
 

+ 1 - 1
src/components/molecules/Modal/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Modal from './Modal'
+import Modal from '.'
 
 storiesOf('Modal', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/Modal/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import Modal from './Modal'
+import Modal from '.'
 
 const wrap = props => shallow(<Modal {...props} />)
 

+ 1 - 1
src/components/molecules/NewItemDropdown/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import NewItemDropdown from './NewItemDropdown'
+import NewItemDropdown from '.'
 
 storiesOf('NewItemDropdown', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/NewItemDropdown/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import NewItemDropdown from './NewItemDropdown'
+import NewItemDropdown from '.'
 
 const wrap = props => shallow(<NewItemDropdown {...props} />)
 

+ 1 - 1
src/components/molecules/NotificationDropdown/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import NotificationDropdown from './NotificationDropdown'
+import NotificationDropdown from '.'
 
 storiesOf('NotificationDropdown', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/NotificationDropdown/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import NotificationDropdown from './NotificationDropdown'
+import NotificationDropdown from '.'
 
 const wrap = props => shallow(<NotificationDropdown {...props} />)
 

+ 1 - 1
src/components/molecules/PropertiesTable/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import PropertiesTable from './PropertiesTable'
+import PropertiesTable from '.'
 
 let properties = [
   { type: 'boolean', name: 'prop-1', label: 'Property 1' },

+ 1 - 1
src/components/molecules/PropertiesTable/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import PropertiesTable from './PropertiesTable'
+import PropertiesTable from '.'
 
 const wrap = props => shallow(<PropertiesTable {...props} />)
 

+ 1 - 1
src/components/molecules/SearchInput/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import SearchInput from './SearchInput'
+import SearchInput from '.'
 
 storiesOf('SearchInput', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/SearchInput/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import SearchInput from './SearchInput'
+import SearchInput from '.'
 
 const wrap = props => shallow(<SearchInput {...props} />)
 

+ 1 - 1
src/components/molecules/SideMenu/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import SideMenu from './SideMenu'
+import SideMenu from '.'
 
 storiesOf('SideMenu', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/SideMenu/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import SideMenu from './SideMenu'
+import SideMenu from '.'
 
 const wrap = props => shallow(<SideMenu {...props} />)
 

+ 1 - 1
src/components/molecules/Table/story.jsx

@@ -17,7 +17,7 @@ import { storiesOf } from '@storybook/react'
 import { css } from 'styled-components'
 import StyleProps from '../../styleUtils/StyleProps'
 import Palette from '../../styleUtils/Palette'
-import Table from './Table'
+import Table from '.'
 
 let items = [
   ['item-1', 'item-2', 'item-3', 'item-4', 'item-5'],

+ 1 - 1
src/components/molecules/Table/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import Table from './Table'
+import Table from '.'
 
 const wrap = props => shallow(<Table {...props} />)
 

+ 1 - 1
src/components/molecules/TaskItem/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import TaskItem from './TaskItem'
+import TaskItem from '.'
 
 let item = {
   progress_updates: [

+ 1 - 1
src/components/molecules/TaskItem/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import TaskItem from './TaskItem'
+import TaskItem from '.'
 
 const wrap = props => shallow(<TaskItem {...props} />)
 

+ 1 - 1
src/components/molecules/Timeline/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Timeline from './Timeline'
+import Timeline from '.'
 
 let items = [
   { id: 'item-1', status: 'ERROR', created_at: new Date() },

+ 1 - 1
src/components/molecules/Timeline/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import Timeline from './Timeline'
+import Timeline from '.'
 
 const wrap = props => shallow(<Timeline {...props} />)
 

+ 1 - 1
src/components/molecules/UserDropdown/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import UserDropdown from './UserDropdown'
+import UserDropdown from '.'
 
 storiesOf('UserDropdown', module)
   .add('default', () => (

+ 1 - 1
src/components/molecules/UserDropdown/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import UserDropdown from './UserDropdown'
+import UserDropdown from '.'
 
 const wrap = props => shallow(<UserDropdown {...props} />)
 

+ 1 - 1
src/components/molecules/WizardBreadcrumbs/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import WizardBreadcrumbs from './WizardBreadcrumbs'
+import WizardBreadcrumbs from '.'
 import { wizardConfig } from '../../../config'
 
 storiesOf('WizardBreadcrumbs', module)

+ 1 - 1
src/components/molecules/WizardBreadcrumbs/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import WizardBreadcrumbs from './WizardBreadcrumbs'
+import WizardBreadcrumbs from '.'
 import { wizardConfig } from '../../../config'
 
 const wrap = props => shallow(<WizardBreadcrumbs {...props} />)

+ 1 - 1
src/components/molecules/WizardOptionsField/story.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { storiesOf } from '@storybook/react'
 import styled from 'styled-components'
-import WizardOptionsField from './WizardOptionsField'
+import WizardOptionsField from '.'
 
 const WizardOptionsFieldStyled = styled(WizardOptionsField) `
   width: 319px;

+ 1 - 1
src/components/molecules/WizardOptionsField/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import WizardOptionsField from './WizardOptionsField'
+import WizardOptionsField from '.'
 
 const wrap = props => shallow(<WizardOptionsField {...props} />)
 

+ 1 - 1
src/components/molecules/WizardType/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import WizardType from './WizardType'
+import WizardType from '.'
 
 class Wrapper extends React.Component {
   constructor() {

+ 1 - 1
src/components/molecules/WizardType/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import WizardType from './WizardType'
+import WizardType from '.'
 
 const wrap = props => shallow(<WizardType {...props} />)
 

+ 1 - 1
src/components/organisms/AlertModal/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import AlertModal from './AlertModal'
+import AlertModal from '.'
 
 storiesOf('AlertModal', module)
   .add('confirmation', () => (

+ 1 - 1
src/components/organisms/AlertModal/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import AlertModal from './AlertModal'
+import AlertModal from '.'
 
 const wrap = props => shallow(<AlertModal {...props} />)
 

+ 1 - 1
src/components/organisms/ChooseProvider/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import ChooseProvider from './ChooseProvider'
+import ChooseProvider from '.'
 
 let providers = {
   azure: { },

+ 1 - 1
src/components/organisms/ChooseProvider/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import ChooseProvider from './ChooseProvider'
+import ChooseProvider from '.'
 
 const wrap = props => shallow(<ChooseProvider {...props} />)
 

+ 1 - 1
src/components/organisms/DetailsContentHeader/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import DetailsContentHeader from './DetailsContentHeader'
+import DetailsContentHeader from '.'
 
 let item = {
   origin_endpoint_id: 'openstack',

+ 1 - 1
src/components/organisms/DetailsContentHeader/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import DetailsContentHeader from './DetailsContentHeader'
+import DetailsContentHeader from '.'
 
 const wrap = props => shallow(<DetailsContentHeader {...props} />)
 

+ 1 - 1
src/components/organisms/DetailsPageHeader/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import { DetailsPageHeader } from './DetailsPageHeader'
+import { DetailsPageHeader } from '.'
 
 storiesOf('DetailsPageHeader', module)
   .add('default', () => (

+ 1 - 1
src/components/organisms/DetailsPageHeader/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import { DetailsPageHeader } from './DetailsPageHeader'
+import { DetailsPageHeader } from '.'
 
 const wrap = props => shallow(<DetailsPageHeader notificationStore={{}} {...props} />)
 

+ 1 - 1
src/components/organisms/EndpointDetailsContent/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import EndpointDetailsContent from './EndpointDetailsContent'
+import EndpointDetailsContent from '.'
 
 let item = {
   name: 'Name',

+ 1 - 1
src/components/organisms/EndpointDetailsContent/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import EndpointDetailsContent from './EndpointDetailsContent'
+import EndpointDetailsContent from '.'
 
 const wrap = props => shallow(<EndpointDetailsContent {...props} />)
 

+ 1 - 1
src/components/organisms/EndpointValidation/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import EndpointValidation from './EndpointValidation'
+import EndpointValidation from '.'
 
 storiesOf('EndpointValidation', module)
   .add('validating', () => (

+ 1 - 1
src/components/organisms/EndpointValidation/test.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { shallow } from 'enzyme'
-import EndpointValidation from './EndpointValidation'
+import EndpointValidation from '.'
 
 const wrap = props => shallow(<EndpointValidation {...props} />)
 

+ 1 - 1
src/components/organisms/Executions/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import Executions from './Executions'
+import Executions from '.'
 
 let tasks = [
   {

+ 1 - 1
src/components/organisms/Executions/test.jsx

@@ -15,7 +15,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import React from 'react'
 import { shallow } from 'enzyme'
 import sinon from 'sinon'
-import Executions from './Executions'
+import Executions from '.'
 
 const wrap = props => shallow(<Executions {...props} />)
 

+ 1 - 1
src/components/organisms/FilterList/story.jsx

@@ -14,7 +14,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import React from 'react'
 import { storiesOf } from '@storybook/react'
-import FilterList from './FilterList'
+import FilterList from '.'
 
 let items = [
   { id: 'item-1', label: 'Item 1' },

Некоторые файлы не были показаны из-за большого количества измененных файлов