reorganize viewModel folder

This commit is contained in:
Chen-I Lim 2020-10-20 18:54:39 -07:00
parent ad44082a8b
commit fb438ac52c
17 changed files with 41 additions and 43 deletions

View file

@ -1,6 +1,6 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {BoardTree} from './boardTree'
import {BoardTree} from './viewModel/boardTree'
import mutator from './mutator'
import {IBlock} from './octoTypes'
import {Utils} from './utils'

View file

@ -6,7 +6,7 @@ import {Archiver} from '../archiver'
import {BlockIcons} from '../blockIcons'
import {IPropertyOption} from '../blocks/board'
import {Card, MutableCard} from '../blocks/card'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import {CardFilter} from '../cardFilter'
import ViewMenu from '../components/viewMenu'
import {Constants} from '../constants'

View file

@ -5,8 +5,8 @@ import { BlockIcons } from '../blockIcons'
import { MutableCommentBlock } from '../blocks/commentBlock'
import { IOrderedBlock } from '../blocks/orderedBlock'
import { MutableTextBlock } from '../blocks/textBlock'
import { BoardTree } from '../boardTree'
import { CardTree, MutableCardTree } from '../cardTree'
import { BoardTree } from '../viewModel/boardTree'
import { CardTree, MutableCardTree } from '../viewModel/cardTree'
import { Menu as OldMenu, MenuOption } from '../menu'
import mutator from '../mutator'
import { OctoListener } from '../octoListener'

View file

@ -3,7 +3,7 @@
import React from 'react'
import {Card} from '../blocks/card'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import mutator from '../mutator'
import Menu from '../widgets/menu'

View file

@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import React from 'react'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import {FilterClause, FilterCondition} from '../filterClause'
import {FilterGroup} from '../filterGroup'
import {Menu} from '../menu'

View file

@ -3,11 +3,11 @@
import React from 'react'
import { Archiver } from '../archiver'
import { Board, MutableBoard } from '../blocks/board'
import { BoardTree } from '../boardTree'
import { BoardTree } from '../viewModel/boardTree'
import mutator from '../mutator'
import Menu from '../widgets/menu'
import MenuWrapper from '../widgets/menuWrapper'
import { WorkspaceTree } from '../workspaceTree'
import { WorkspaceTree } from '../viewModel/workspaceTree'
type Props = {

View file

@ -6,7 +6,7 @@ import {Archiver} from '../archiver'
import {BlockIcons} from '../blockIcons'
import {IPropertyTemplate} from '../blocks/board'
import {Card, MutableCard} from '../blocks/card'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import ViewMenu from '../components/viewMenu'
import {CsvExporter} from '../csvExporter'
import {Menu as OldMenu} from '../menu'

View file

@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import React from 'react'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import {Card} from '../blocks/card'
import mutator from '../mutator'
import {OctoUtils} from '../octoUtils'

View file

@ -4,7 +4,7 @@ import React from 'react'
import {Board} from '../blocks/board'
import {BoardView, MutableBoardView} from '../blocks/boardView'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import mutator from '../mutator'
import {Utils} from '../utils'
import Menu from '../widgets/menu'

View file

@ -2,9 +2,9 @@
// See LICENSE.txt for license information.
import React from 'react'
import {BoardTree} from '../boardTree'
import {BoardTree} from '../viewModel/boardTree'
import {Utils} from '../utils'
import {WorkspaceTree} from '../workspaceTree'
import {WorkspaceTree} from '../viewModel/workspaceTree'
import {BoardComponent} from './boardComponent'
import {Sidebar} from './sidebar'

View file

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {BoardView} from './blocks/boardView'
import {BoardTree} from './boardTree'
import {BoardTree} from './viewModel/boardTree'
import {OctoUtils} from './octoUtils'
import {Utils} from './utils'

View file

@ -6,7 +6,7 @@ import {BoardView, ISortOption, MutableBoardView} from './blocks/boardView'
import {Card, MutableCard} from './blocks/card'
import {MutableImageBlock} from './blocks/imageBlock'
import {IOrderedBlock, MutableOrderedBlock} from './blocks/orderedBlock'
import {BoardTree} from './boardTree'
import {BoardTree} from './viewModel/boardTree'
import {FilterGroup} from './filterGroup'
import octoClient from './octoClient'
import {IBlock} from './octoTypes'

View file

@ -3,14 +3,14 @@
import React from 'react'
import {MutableBlock} from './blocks/block'
import {Board, IPropertyTemplate, MutableBoard} from './blocks/board'
import {BoardView, ISortOption, MutableBoardView} from './blocks/boardView'
import {IPropertyTemplate, MutableBoard} from './blocks/board'
import {ISortOption, MutableBoardView} from './blocks/boardView'
import {Card, MutableCard} from './blocks/card'
import {CommentBlock, MutableCommentBlock} from './blocks/commentBlock'
import {ImageBlock, MutableImageBlock} from './blocks/imageBlock'
import { IOrderedBlock } from './blocks/orderedBlock'
import {MutableTextBlock, TextBlock} from './blocks/textBlock'
import {BoardTree} from './boardTree'
import {MutableCommentBlock} from './blocks/commentBlock'
import {MutableImageBlock} from './blocks/imageBlock'
import {IOrderedBlock} from './blocks/orderedBlock'
import {MutableTextBlock} from './blocks/textBlock'
import {BoardTree} from './viewModel/boardTree'
import {Editable} from './components/editable'
import {Menu} from './menu'
import mutator from './mutator'

View file

@ -4,15 +4,14 @@ import React from 'react'
import ReactDOM from 'react-dom'
import {BoardView} from '../blocks/boardView'
import {BoardTree, MutableBoardTree} from '../boardTree'
import {CardTree} from '../cardTree'
import {MutableBoardTree} from '../viewModel/boardTree'
import {FilterComponent} from '../components/filterComponent'
import {WorkspaceComponent} from '../components/workspaceComponent'
import {FlashMessage} from '../flashMessage'
import mutator from '../mutator'
import {OctoListener} from '../octoListener'
import {Utils} from '../utils'
import {MutableWorkspaceTree, WorkspaceTree} from '../workspaceTree'
import {MutableWorkspaceTree} from '../viewModel/workspaceTree'
type Props = {
}

View file

@ -1,14 +1,13 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {MutableBlock} from './blocks/block'
import {Board, IPropertyOption, IPropertyTemplate, MutableBoard} from './blocks/board'
import {BoardView, MutableBoardView} from './blocks/boardView'
import {Card} from './blocks/card'
import {CardFilter} from './cardFilter'
import octoClient from './octoClient'
import {IBlock} from './octoTypes'
import {OctoUtils} from './octoUtils'
import {Utils} from './utils'
import {Board, IPropertyOption, IPropertyTemplate, MutableBoard} from '../blocks/board'
import {BoardView, MutableBoardView} from '../blocks/boardView'
import {Card} from '../blocks/card'
import {CardFilter} from '../cardFilter'
import octoClient from '../octoClient'
import {IBlock} from '../octoTypes'
import {OctoUtils} from '../octoUtils'
import {Utils} from '../utils'
type Group = { option: IPropertyOption, cards: Card[] }

View file

@ -1,10 +1,10 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Card} from './blocks/card'
import { IOrderedBlock } from './blocks/orderedBlock'
import octoClient from './octoClient'
import {IBlock} from './octoTypes'
import {OctoUtils} from './octoUtils'
import {Card} from '../blocks/card'
import { IOrderedBlock } from '../blocks/orderedBlock'
import octoClient from '../octoClient'
import {IBlock} from '../octoTypes'
import {OctoUtils} from '../octoUtils'
interface CardTree {
readonly card: Card

View file

@ -1,9 +1,9 @@
// 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 './octoTypes'
import {OctoUtils} from './octoUtils'
import {Board} from '../blocks/board'
import octoClient from '../octoClient'
import { IBlock } from '../octoTypes'
import {OctoUtils} from '../octoUtils'
interface WorkspaceTree {
readonly boards: readonly Board[]