From 8f7e6c0ba59081d5dc4e50f9ff5873a1a7b89e5f Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Thu, 12 Nov 2020 18:48:59 -0800 Subject: [PATCH] Organize imports --- webapp/src/components/blockIconSelector.tsx | 7 ++-- webapp/src/components/boardCard.tsx | 11 +++---- webapp/src/components/boardComponent.tsx | 25 +++++++-------- webapp/src/components/cardDialog.tsx | 12 +++---- webapp/src/components/comment.tsx | 14 ++++---- webapp/src/components/commentsList.tsx | 8 ++--- webapp/src/components/contentBlock.tsx | 32 +++++++++---------- webapp/src/components/markdownEditor.tsx | 3 +- .../src/components/propertyValueElement.tsx | 5 ++- webapp/src/components/sidebar.tsx | 27 ++++++++-------- webapp/src/components/tableComponent.tsx | 20 ++++++------ webapp/src/components/tableHeaderMenu.tsx | 1 - webapp/src/components/tableRow.tsx | 8 ++--- webapp/src/components/viewHeader.tsx | 31 +++++++++--------- webapp/src/components/viewMenu.tsx | 5 ++- webapp/src/components/viewTitle.tsx | 5 ++- webapp/src/components/workspaceComponent.tsx | 3 +- webapp/src/octoUtils.tsx | 2 +- webapp/src/pages/boardPage.tsx | 6 ++-- webapp/src/pages/loginPage.tsx | 2 -- webapp/src/viewModel/boardTree.ts | 2 +- webapp/src/viewModel/cardTree.ts | 2 +- webapp/src/viewModel/workspaceTree.ts | 6 ++-- 23 files changed, 106 insertions(+), 131 deletions(-) diff --git a/webapp/src/components/blockIconSelector.tsx b/webapp/src/components/blockIconSelector.tsx index b5038d30a..4f8b2673c 100644 --- a/webapp/src/components/blockIconSelector.tsx +++ b/webapp/src/components/blockIconSelector.tsx @@ -7,12 +7,11 @@ import {BlockIcons} from '../blockIcons' import {Board} from '../blocks/board' import {Card} from '../blocks/card' import mutator from '../mutator' +import EmojiPicker from '../widgets/emojiPicker' +import DeleteIcon from '../widgets/icons/delete' +import EmojiIcon from '../widgets/icons/emoji' import Menu from '../widgets/menu' import MenuWrapper from '../widgets/menuWrapper' -import EmojiPicker from '../widgets/emojiPicker' -import EmojiIcon from '../widgets/icons/emoji' -import DeleteIcon from '../widgets/icons/delete' - import './blockIconSelector.scss' type Props = { diff --git a/webapp/src/components/boardCard.tsx b/webapp/src/components/boardCard.tsx index 42f103f8a..98dcd3b02 100644 --- a/webapp/src/components/boardCard.tsx +++ b/webapp/src/components/boardCard.tsx @@ -6,16 +6,15 @@ import {injectIntl, IntlShape} from 'react-intl' import {IPropertyTemplate} from '../blocks/board' import {Card} from '../blocks/card' import mutator from '../mutator' -import MenuWrapper from '../widgets/menuWrapper' -import Menu from '../widgets/menu' -import OptionsIcon from '../widgets/icons/options' +import IconButton from '../widgets/buttons/iconButton' import DeleteIcon from '../widgets/icons/delete' import DuplicateIcon from '../widgets/icons/duplicate' -import IconButton from '../widgets/buttons/iconButton' - -import PropertyValueElement from './propertyValueElement' +import OptionsIcon from '../widgets/icons/options' +import Menu from '../widgets/menu' +import MenuWrapper from '../widgets/menuWrapper' import './boardCard.scss' +import PropertyValueElement from './propertyValueElement' type BoardCardProps = { card: Card diff --git a/webapp/src/components/boardComponent.tsx b/webapp/src/components/boardComponent.tsx index 2b846cf08..79d19d3f8 100644 --- a/webapp/src/components/boardComponent.tsx +++ b/webapp/src/components/boardComponent.tsx @@ -2,38 +2,37 @@ // See LICENSE.txt for license information. /* eslint-disable max-lines */ import React from 'react' -import {injectIntl, IntlShape, FormattedMessage} from 'react-intl' +import {FormattedMessage, injectIntl, IntlShape} from 'react-intl' import {BlockIcons} from '../blockIcons' -import {IPropertyOption, IPropertyTemplate} from '../blocks/board' import {IBlock} from '../blocks/block' +import {IPropertyOption, IPropertyTemplate} from '../blocks/board' import {Card, MutableCard} from '../blocks/card' -import {BoardTree, BoardTreeGroup} from '../viewModel/boardTree' -import {MutableCardTree} from '../viewModel/cardTree' import {CardFilter} from '../cardFilter' import {Constants} from '../constants' import mutator from '../mutator' import {Utils} from '../utils' -import Menu from '../widgets/menu' -import MenuWrapper from '../widgets/menuWrapper' -import OptionsIcon from '../widgets/icons/options' -import AddIcon from '../widgets/icons/add' -import HideIcon from '../widgets/icons/hide' -import ShowIcon from '../widgets/icons/show' -import DeleteIcon from '../widgets/icons/delete' +import {BoardTree, BoardTreeGroup} from '../viewModel/boardTree' +import {MutableCardTree} from '../viewModel/cardTree' import Button from '../widgets/buttons/button' import IconButton from '../widgets/buttons/iconButton' +import AddIcon from '../widgets/icons/add' +import DeleteIcon from '../widgets/icons/delete' +import HideIcon from '../widgets/icons/hide' +import OptionsIcon from '../widgets/icons/options' +import ShowIcon from '../widgets/icons/show' +import Menu from '../widgets/menu' +import MenuWrapper from '../widgets/menuWrapper' import BoardCard from './boardCard' import {BoardColumn} from './boardColumn' +import './boardComponent.scss' import {CardDialog} from './cardDialog' import {Editable} from './editable' import RootPortal from './rootPortal' import ViewHeader from './viewHeader' import ViewTitle from './viewTitle' -import './boardComponent.scss' - type Props = { boardTree: BoardTree showView: (id: string) => void diff --git a/webapp/src/components/cardDialog.tsx b/webapp/src/components/cardDialog.tsx index 775591bbc..5e19542d4 100644 --- a/webapp/src/components/cardDialog.tsx +++ b/webapp/src/components/cardDialog.tsx @@ -1,20 +1,18 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' - import {FormattedMessage} from 'react-intl' -import {BoardTree} from '../viewModel/boardTree' import mutator from '../mutator' -import Menu from '../widgets/menu' -import DeleteIcon from '../widgets/icons/delete' - -import {MutableCardTree, CardTree} from '../viewModel/cardTree' import {OctoListener} from '../octoListener' import {Utils} from '../utils' +import {BoardTree} from '../viewModel/boardTree' +import {CardTree, MutableCardTree} from '../viewModel/cardTree' +import DeleteIcon from '../widgets/icons/delete' +import Menu from '../widgets/menu' -import Dialog from './dialog' import CardDetail from './cardDetail' +import Dialog from './dialog' type Props = { boardTree: BoardTree diff --git a/webapp/src/components/comment.tsx b/webapp/src/components/comment.tsx index 99a1c661e..07a15b70d 100644 --- a/webapp/src/components/comment.tsx +++ b/webapp/src/components/comment.tsx @@ -1,19 +1,17 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {FC} from 'react' -import {IntlShape, injectIntl} from 'react-intl' +import {injectIntl, IntlShape} from 'react-intl' -import mutator from '../mutator' import {IBlock} from '../blocks/block' - -import Menu from '../widgets/menu' -import MenuWrapper from '../widgets/menuWrapper' +import mutator from '../mutator' +import {Utils} from '../utils' +import IconButton from '../widgets/buttons/iconButton' import DeleteIcon from '../widgets/icons/delete' import OptionsIcon from '../widgets/icons/options' -import IconButton from '../widgets/buttons/iconButton' - +import Menu from '../widgets/menu' +import MenuWrapper from '../widgets/menuWrapper' import './comment.scss' -import {Utils} from '../utils' type Props = { comment: IBlock diff --git a/webapp/src/components/commentsList.tsx b/webapp/src/components/commentsList.tsx index 241e25a75..dff78c467 100644 --- a/webapp/src/components/commentsList.tsx +++ b/webapp/src/components/commentsList.tsx @@ -1,17 +1,15 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' -import {injectIntl, IntlShape, FormattedMessage} from 'react-intl' +import {FormattedMessage, injectIntl, IntlShape} from 'react-intl' -import {MutableCommentBlock} from '../blocks/commentBlock' import {IBlock} from '../blocks/block' -import {Utils} from '../utils' +import {MutableCommentBlock} from '../blocks/commentBlock' import mutator from '../mutator' - +import {Utils} from '../utils' import Button from '../widgets/buttons/button' import Comment from './comment' - import './commentsList.scss' import {MarkdownEditor} from './markdownEditor' diff --git a/webapp/src/components/contentBlock.tsx b/webapp/src/components/contentBlock.tsx index 1ee5ee943..bf54113c6 100644 --- a/webapp/src/components/contentBlock.tsx +++ b/webapp/src/components/contentBlock.tsx @@ -3,28 +3,26 @@ import React from 'react' -import {IOrderedBlock} from '../blocks/orderedBlock' -import {OctoUtils} from '../octoUtils' -import mutator from '../mutator' -import {Utils} from '../utils' -import {MutableTextBlock} from '../blocks/textBlock' import {MutableDividerBlock} from '../blocks/dividerBlock' - +import {IOrderedBlock} from '../blocks/orderedBlock' +import {MutableTextBlock} from '../blocks/textBlock' +import mutator from '../mutator' +import {OctoUtils} from '../octoUtils' +import {Utils} from '../utils' +import IconButton from '../widgets/buttons/iconButton' +import AddIcon from '../widgets/icons/add' +import DeleteIcon from '../widgets/icons/delete' +import DividerIcon from '../widgets/icons/divider' +import ImageIcon from '../widgets/icons/image' +import OptionsIcon from '../widgets/icons/options' +import SortDownIcon from '../widgets/icons/sortDown' +import SortUpIcon from '../widgets/icons/sortUp' +import TextIcon from '../widgets/icons/text' import Menu from '../widgets/menu' import MenuWrapper from '../widgets/menuWrapper' -import OptionsIcon from '../widgets/icons/options' -import SortUpIcon from '../widgets/icons/sortUp' -import SortDownIcon from '../widgets/icons/sortDown' -import DeleteIcon from '../widgets/icons/delete' -import AddIcon from '../widgets/icons/add' -import TextIcon from '../widgets/icons/text' -import ImageIcon from '../widgets/icons/image' -import DividerIcon from '../widgets/icons/divider' -import IconButton from '../widgets/buttons/iconButton' - -import {MarkdownEditor} from './markdownEditor' import './contentBlock.scss' +import {MarkdownEditor} from './markdownEditor' type Props = { block: IOrderedBlock diff --git a/webapp/src/components/markdownEditor.tsx b/webapp/src/components/markdownEditor.tsx index eb2e9ae9a..523a24377 100644 --- a/webapp/src/components/markdownEditor.tsx +++ b/webapp/src/components/markdownEditor.tsx @@ -4,9 +4,8 @@ import EasyMDE from 'easymde' import React from 'react' import SimpleMDE from 'react-simplemde-editor' -import './markdownEditor.scss' - import {Utils} from '../utils' +import './markdownEditor.scss' type Props = { text?: string diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index c55d215ab..227acee26 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -3,13 +3,12 @@ import React from 'react' +import {IPropertyOption, IPropertyTemplate} from '../blocks/board' import {Card} from '../blocks/card' -import {IPropertyTemplate, IPropertyOption} from '../blocks/board' -import {OctoUtils} from '../octoUtils' import mutator from '../mutator' +import {OctoUtils} from '../octoUtils' import {Utils} from '../utils' import {BoardTree} from '../viewModel/boardTree' - import Editable from '../widgets/editable' import ValueSelector from '../widgets/valueSelector' diff --git a/webapp/src/components/sidebar.tsx b/webapp/src/components/sidebar.tsx index 63c377741..4326a24b1 100644 --- a/webapp/src/components/sidebar.tsx +++ b/webapp/src/components/sidebar.tsx @@ -1,27 +1,26 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' -import {injectIntl, IntlShape, FormattedMessage} from 'react-intl' +import {FormattedMessage, injectIntl, IntlShape} from 'react-intl' import {Archiver} from '../archiver' -import {mattermostTheme, darkTheme, lightTheme, setTheme} from '../theme' import {Board, MutableBoard} from '../blocks/board' +import {BoardView, MutableBoardView} from '../blocks/boardView' import mutator from '../mutator' -import Menu from '../widgets/menu' -import MenuWrapper from '../widgets/menuWrapper' -import OptionsIcon from '../widgets/icons/options' -import ShowSidebarIcon from '../widgets/icons/showSidebar' -import HideSidebarIcon from '../widgets/icons/hideSidebar' -import HamburgerIcon from '../widgets/icons/hamburger' +import {darkTheme, lightTheme, mattermostTheme, setTheme} from '../theme' +import {WorkspaceTree} from '../viewModel/workspaceTree' +import Button from '../widgets/buttons/button' +import IconButton from '../widgets/buttons/iconButton' import DeleteIcon from '../widgets/icons/delete' -import SubmenuTriangleIcon from '../widgets/icons/submenuTriangle' import DotIcon from '../widgets/icons/dot' import DuplicateIcon from '../widgets/icons/duplicate' -import IconButton from '../widgets/buttons/iconButton' -import Button from '../widgets/buttons/button' -import {WorkspaceTree} from '../viewModel/workspaceTree' -import {BoardView, MutableBoardView} from '../blocks/boardView' - +import HamburgerIcon from '../widgets/icons/hamburger' +import HideSidebarIcon from '../widgets/icons/hideSidebar' +import OptionsIcon from '../widgets/icons/options' +import ShowSidebarIcon from '../widgets/icons/showSidebar' +import SubmenuTriangleIcon from '../widgets/icons/submenuTriangle' +import Menu from '../widgets/menu' +import MenuWrapper from '../widgets/menuWrapper' import './sidebar.scss' type Props = { diff --git a/webapp/src/components/tableComponent.tsx b/webapp/src/components/tableComponent.tsx index ce6041029..e183ab07d 100644 --- a/webapp/src/components/tableComponent.tsx +++ b/webapp/src/components/tableComponent.tsx @@ -3,30 +3,28 @@ import React from 'react' import {FormattedMessage} from 'react-intl' -import {Constants} from '../constants' import {BlockIcons} from '../blockIcons' +import {IBlock} from '../blocks/block' import {IPropertyTemplate} from '../blocks/board' +import {MutableBoardView} from '../blocks/boardView' import {MutableCard} from '../blocks/card' -import {BoardTree} from '../viewModel/boardTree' -import {MutableCardTree} from '../viewModel/cardTree' +import {Constants} from '../constants' import mutator from '../mutator' import {Utils} from '../utils' -import {MutableBoardView} from '../blocks/boardView' -import {IBlock} from '../blocks/block' - -import MenuWrapper from '../widgets/menuWrapper' +import {BoardTree} from '../viewModel/boardTree' +import {MutableCardTree} from '../viewModel/cardTree' import SortDownIcon from '../widgets/icons/sortDown' import SortUpIcon from '../widgets/icons/sortUp' +import MenuWrapper from '../widgets/menuWrapper' import {CardDialog} from './cardDialog' +import {HorizontalGrip} from './horizontalGrip' import RootPortal from './rootPortal' +import './tableComponent.scss' +import TableHeaderMenu from './tableHeaderMenu' import {TableRow} from './tableRow' import ViewHeader from './viewHeader' import ViewTitle from './viewTitle' -import TableHeaderMenu from './tableHeaderMenu' - -import './tableComponent.scss' -import {HorizontalGrip} from './horizontalGrip' type Props = { boardTree: BoardTree diff --git a/webapp/src/components/tableHeaderMenu.tsx b/webapp/src/components/tableHeaderMenu.tsx index 559fbd83f..e420f2955 100644 --- a/webapp/src/components/tableHeaderMenu.tsx +++ b/webapp/src/components/tableHeaderMenu.tsx @@ -5,7 +5,6 @@ import React, {FC} from 'react' import {injectIntl, IntlShape} from 'react-intl' import {Constants} from '../constants' - import mutator from '../mutator' import {BoardTree} from '../viewModel/boardTree' import Menu from '../widgets/menu' diff --git a/webapp/src/components/tableRow.tsx b/webapp/src/components/tableRow.tsx index d9267f67d..fdbb5aac6 100644 --- a/webapp/src/components/tableRow.tsx +++ b/webapp/src/components/tableRow.tsx @@ -3,16 +3,14 @@ import React from 'react' import {FormattedMessage} from 'react-intl' -import {BoardTree} from '../viewModel/boardTree' import {Card} from '../blocks/card' -import mutator from '../mutator' - import {Constants} from '../constants' -import Editable from '../widgets/editable' +import mutator from '../mutator' +import {BoardTree} from '../viewModel/boardTree' import Button from '../widgets/buttons/button' +import Editable from '../widgets/editable' import PropertyValueElement from './propertyValueElement' - import './tableRow.scss' type Props = { diff --git a/webapp/src/components/viewHeader.tsx b/webapp/src/components/viewHeader.tsx index 042f47b71..5c65c6bb7 100644 --- a/webapp/src/components/viewHeader.tsx +++ b/webapp/src/components/viewHeader.tsx @@ -1,34 +1,33 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' -import {injectIntl, IntlShape, FormattedMessage} from 'react-intl' +import {FormattedMessage, injectIntl, IntlShape} from 'react-intl' import {Archiver} from '../archiver' -import {ISortOption, MutableBoardView} from '../blocks/boardView' import {BlockIcons} from '../blockIcons' -import {Constants} from '../constants' -import {MutableCard} from '../blocks/card' import {IPropertyTemplate} from '../blocks/board' -import {BoardTree} from '../viewModel/boardTree' -import ViewMenu from '../components/viewMenu' -import {CsvExporter} from '../csvExporter' +import {ISortOption, MutableBoardView} from '../blocks/boardView' +import {MutableCard} from '../blocks/card' import {CardFilter} from '../cardFilter' +import ViewMenu from '../components/viewMenu' +import {Constants} from '../constants' +import {CsvExporter} from '../csvExporter' import mutator from '../mutator' -import Menu from '../widgets/menu' -import MenuWrapper from '../widgets/menuWrapper' -import CheckIcon from '../widgets/icons/check' -import DropdownIcon from '../widgets/icons/dropdown' -import OptionsIcon from '../widgets/icons/options' -import SortUpIcon from '../widgets/icons/sortUp' -import SortDownIcon from '../widgets/icons/sortDown' +import {BoardTree} from '../viewModel/boardTree' +import Button from '../widgets/buttons/button' import ButtonWithMenu from '../widgets/buttons/buttonWithMenu' import IconButton from '../widgets/buttons/iconButton' -import Button from '../widgets/buttons/button' +import CheckIcon from '../widgets/icons/check' import DeleteIcon from '../widgets/icons/delete' +import DropdownIcon from '../widgets/icons/dropdown' +import OptionsIcon from '../widgets/icons/options' +import SortDownIcon from '../widgets/icons/sortDown' +import SortUpIcon from '../widgets/icons/sortUp' +import Menu from '../widgets/menu' +import MenuWrapper from '../widgets/menuWrapper' import {Editable} from './editable' import FilterComponent from './filterComponent' - import './viewHeader.scss' type Props = { diff --git a/webapp/src/components/viewMenu.tsx b/webapp/src/components/viewMenu.tsx index cbe92bb2f..c1def03ec 100644 --- a/webapp/src/components/viewMenu.tsx +++ b/webapp/src/components/viewMenu.tsx @@ -1,16 +1,15 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' - import {injectIntl, IntlShape} from 'react-intl' import {Board} from '../blocks/board' import {MutableBoardView} from '../blocks/boardView' -import {BoardTree} from '../viewModel/boardTree' +import {Constants} from '../constants' import mutator from '../mutator' import {Utils} from '../utils' +import {BoardTree} from '../viewModel/boardTree' import Menu from '../widgets/menu' -import {Constants} from '../constants' type Props = { boardTree: BoardTree diff --git a/webapp/src/components/viewTitle.tsx b/webapp/src/components/viewTitle.tsx index bd1fe06f7..0afb77e69 100644 --- a/webapp/src/components/viewTitle.tsx +++ b/webapp/src/components/viewTitle.tsx @@ -1,17 +1,16 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react' -import {injectIntl, IntlShape, FormattedMessage} from 'react-intl' +import {FormattedMessage, injectIntl, IntlShape} from 'react-intl' import {BlockIcons} from '../blockIcons' import {Board} from '../blocks/board' import mutator from '../mutator' -import Editable from '../widgets/editable' import Button from '../widgets/buttons/button' +import Editable from '../widgets/editable' import EmojiIcon from '../widgets/icons/emoji' import BlockIconSelector from './blockIconSelector' - import './viewTitle.scss' type Props = { diff --git a/webapp/src/components/workspaceComponent.tsx b/webapp/src/components/workspaceComponent.tsx index ce8abca95..e1bf0f0fa 100644 --- a/webapp/src/components/workspaceComponent.tsx +++ b/webapp/src/components/workspaceComponent.tsx @@ -2,14 +2,13 @@ // See LICENSE.txt for license information. import React from 'react' -import {BoardTree} from '../viewModel/boardTree' import {Utils} from '../utils' +import {BoardTree} from '../viewModel/boardTree' import {WorkspaceTree} from '../viewModel/workspaceTree' import BoardComponent from './boardComponent' import Sidebar from './sidebar' import {TableComponent} from './tableComponent' - import './workspaceComponent.scss' type Props = { diff --git a/webapp/src/octoUtils.tsx b/webapp/src/octoUtils.tsx index 8d9ff6a62..70f3296e1 100644 --- a/webapp/src/octoUtils.tsx +++ b/webapp/src/octoUtils.tsx @@ -5,8 +5,8 @@ import {IPropertyTemplate, MutableBoard} from './blocks/board' import {MutableBoardView} from './blocks/boardView' import {MutableCard} from './blocks/card' import {MutableCommentBlock} from './blocks/commentBlock' -import {MutableImageBlock} from './blocks/imageBlock' import {MutableDividerBlock} from './blocks/dividerBlock' +import {MutableImageBlock} from './blocks/imageBlock' import {IOrderedBlock} from './blocks/orderedBlock' import {MutableTextBlock} from './blocks/textBlock' import {Utils} from './utils' diff --git a/webapp/src/pages/boardPage.tsx b/webapp/src/pages/boardPage.tsx index 61418a821..166b5000f 100644 --- a/webapp/src/pages/boardPage.tsx +++ b/webapp/src/pages/boardPage.tsx @@ -2,14 +2,14 @@ // See LICENSE.txt for license information. import React from 'react' -import {BoardTree, MutableBoardTree} from '../viewModel/boardTree' -import {WorkspaceComponent} from '../components/workspaceComponent' +import {IBlock} from '../blocks/block' import {sendFlashMessage} from '../components/flashMessages' +import {WorkspaceComponent} from '../components/workspaceComponent' import mutator from '../mutator' import {OctoListener} from '../octoListener' import {Utils} from '../utils' +import {BoardTree, MutableBoardTree} from '../viewModel/boardTree' import {MutableWorkspaceTree, WorkspaceTree} from '../viewModel/workspaceTree' -import {IBlock} from '../blocks/block' type Props = { setLanguage: (lang: string) => void diff --git a/webapp/src/pages/loginPage.tsx b/webapp/src/pages/loginPage.tsx index 1122c9f43..97e81554f 100644 --- a/webapp/src/pages/loginPage.tsx +++ b/webapp/src/pages/loginPage.tsx @@ -3,9 +3,7 @@ import React from 'react' import {Utils} from '../utils' - import Button from '../widgets/buttons/button' - import './loginPage.scss' type Props = { diff --git a/webapp/src/viewModel/boardTree.ts b/webapp/src/viewModel/boardTree.ts index 373d2a6ed..f291e3f59 100644 --- a/webapp/src/viewModel/boardTree.ts +++ b/webapp/src/viewModel/boardTree.ts @@ -1,12 +1,12 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. +import {IBlock, IMutableBlock} from '../blocks/block' import {Board, IPropertyOption, IPropertyTemplate, MutableBoard} from '../blocks/board' import {BoardView, MutableBoardView} from '../blocks/boardView' import {Card, MutableCard} from '../blocks/card' import {CardFilter} from '../cardFilter' import {Constants} from '../constants' import octoClient from '../octoClient' -import {IBlock, IMutableBlock} from '../blocks/block' import {OctoUtils} from '../octoUtils' import {Utils} from '../utils' diff --git a/webapp/src/viewModel/cardTree.ts b/webapp/src/viewModel/cardTree.ts index 7d837a78a..1ec470da6 100644 --- a/webapp/src/viewModel/cardTree.ts +++ b/webapp/src/viewModel/cardTree.ts @@ -1,9 +1,9 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. +import {IBlock, MutableBlock} from '../blocks/block' import {Card, MutableCard} from '../blocks/card' import {IOrderedBlock} from '../blocks/orderedBlock' import octoClient from '../octoClient' -import {IBlock, MutableBlock} from '../blocks/block' import {OctoUtils} from '../octoUtils' interface CardTree { diff --git a/webapp/src/viewModel/workspaceTree.ts b/webapp/src/viewModel/workspaceTree.ts index 38465c6a7..0bd67001c 100644 --- a/webapp/src/viewModel/workspaceTree.ts +++ b/webapp/src/viewModel/workspaceTree.ts @@ -1,10 +1,10 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -import {Board} from '../blocks/board' -import octoClient from '../octoClient' import {IBlock} from '../blocks/block' -import {OctoUtils} from '../octoUtils' +import {Board} from '../blocks/board' import {BoardView} from '../blocks/boardView' +import octoClient from '../octoClient' +import {OctoUtils} from '../octoUtils' interface WorkspaceTree { readonly boards: readonly Board[]