Rename types/dashboard.ts to plural for consistency

pull/10616/head
Jared Scheib 2018-06-22 18:08:57 -07:00
parent c7e46bbaee
commit 2626cf8955
26 changed files with 27 additions and 27 deletions

View File

@ -1,12 +1,12 @@
import {Cell} from 'src/types'
import {CellType, ThresholdType} from 'src/types/dashboard'
import {CellType, ThresholdType} from 'src/types/dashboards'
import {ColorNumber, ColorString} from 'src/types/colors'
import {
Axes,
DecimalPlaces,
FieldOption,
TableOptions,
} from 'src/types/dashboard'
} from 'src/types/dashboards'
export type Action =
| ShowCellEditorOverlayAction

View File

@ -67,7 +67,7 @@ import {
TimeRange,
URLQueryParams,
} from 'src/types'
import * as DashboardData from 'src/types/dashboard'
import * as DashboardData from 'src/types/dashboards'
import * as DashboardActions from 'src/types/actions/dashboards'
import * as DashboardAPIs from 'src/types/apis/dashboard'
import * as DashboardReducers from 'src/types/reducers/dashboards'

View File

@ -1,5 +1,5 @@
import React, {Component} from 'react'
import {Cell} from 'src/types/dashboard'
import {Cell} from 'src/types/dashboards'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'

View File

@ -12,7 +12,7 @@ import DashboardHeaderEdit from 'src/dashboards/components/DashboardHeaderEdit'
import DashboardSwitcher from 'src/dashboards/components/DashboardSwitcher'
import {Dashboard, TimeRange} from 'src/types'
import {DashboardName} from 'src/types/dashboard'
import {DashboardName} from 'src/types/dashboards'
import * as AppActions from 'src/shared/actions/app'
interface Props {

View File

@ -2,7 +2,7 @@ import React, {PureComponent} from 'react'
import {ErrorHandling} from 'src/shared/decorators/errors'
import OptIn from 'src/shared/components/OptIn'
import {DecimalPlaces} from 'src/types/dashboard'
import {DecimalPlaces} from 'src/types/dashboards'
interface Props extends DecimalPlaces {
onDecimalPlacesChange: (decimalPlaces: DecimalPlaces) => void

View File

@ -24,7 +24,7 @@ import {
import {DEFAULT_TIME_FIELD} from 'src/dashboards/constants'
import {ErrorHandling} from 'src/shared/decorators/errors'
import {DecimalPlaces} from 'src/types/dashboard'
import {DecimalPlaces} from 'src/types/dashboards'
import {QueryConfig} from 'src/types/query'
interface DropdownOption {

View File

@ -15,7 +15,7 @@ import {
DecimalPlaces,
FieldOption,
CellType,
} from 'src/types/dashboard'
} from 'src/types/dashboards'
import {ColorString, ColorNumber} from 'src/types/colors'
interface Props {

View File

@ -1,6 +1,6 @@
import {DEFAULT_TABLE_OPTIONS} from 'src/dashboards/constants'
import {stringifyColorValues} from 'src/shared/constants/colorOperations'
import {CellType, Axis} from 'src/types/dashboard'
import {CellType, Axis} from 'src/types/dashboards'
import {ColorString, ColorNumber} from 'src/types/colors'
export const initializeOptions = (cellType: CellType) => {

View File

@ -3,7 +3,7 @@ import {
DEFAULT_FIX_FIRST_COLUMN,
} from 'src/shared/constants/tableGraph'
import {Cell, QueryConfig} from 'src/types'
import {CellType, Dashboard, DecimalPlaces} from 'src/types/dashboard'
import {CellType, Dashboard, DecimalPlaces} from 'src/types/dashboards'
export const UNTITLED_GRAPH: string = 'Untitled Graph'

View File

@ -59,7 +59,7 @@ import {
TemplateValue,
TimeRange,
} from 'src/types'
import {DashboardName} from 'src/types/dashboard'
import {DashboardName} from 'src/types/dashboards'
import {ColorNumber, ColorString} from 'src/types/colors'
import * as AnnotationActions from 'src/types/actions/annotations'
import * as AppActions from 'src/shared/actions/app'

View File

@ -26,7 +26,7 @@ import {
import {Source, Dashboard} from 'src/types'
import {Notification} from 'src/types/notifications'
import {DashboardFile} from 'src/types/dashboard'
import {DashboardFile} from 'src/types/dashboards'
interface Props {
source: Source

View File

@ -1,6 +1,6 @@
import React, {ReactElement} from 'react'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
type Graphic = ReactElement<HTMLDivElement>

View File

@ -16,7 +16,7 @@ import {
import {initializeOptions} from 'src/dashboards/constants/cellEditor'
import {Action} from 'src/dashboards/actions/cellEditorOverlay'
import {CellType, Cell} from 'src/types'
import {ThresholdType, TableOptions} from 'src/types/dashboard'
import {ThresholdType, TableOptions} from 'src/types/dashboards'
import {ThresholdColor, GaugeColor, LineColor} from 'src/types/colors'
interface CEOInitialState {

View File

@ -1,5 +1,5 @@
import {NEW_DEFAULT_DASHBOARD_CELL} from 'src/dashboards/constants'
import {Cell, CellType, Dashboard} from 'src/types/dashboard'
import {Cell, CellType, Dashboard} from 'src/types/dashboards'
import {NewDefaultCell, UNTITLED_GRAPH} from 'src/dashboards/constants'
const getMostCommonValue = (values: number[]): number => {

View File

@ -13,7 +13,7 @@ import {
FieldOption,
TableOptions,
DecimalPlaces,
} from 'src/types/dashboard'
} from 'src/types/dashboards'
import {TimeSeriesValue} from 'src/types/series'
interface ColumnWidths {

View File

@ -11,7 +11,7 @@ import CustomTimeIndicator from 'src/shared/components/CustomTimeIndicator'
import Authorized, {EDITOR_ROLE} from 'src/auth/Authorized'
import {EDITING} from 'src/shared/annotations/helpers'
import {cellSupportsAnnotations} from 'src/shared/constants/index'
import {Cell} from 'src/types/dashboard'
import {Cell} from 'src/types/dashboards'
import {QueryConfig} from 'src/types/query'
import {

View File

@ -7,7 +7,7 @@ import {SMALL_CELL_HEIGHT} from 'src/shared/graphs/helpers'
import {DYGRAPH_CONTAINER_V_MARGIN} from 'src/shared/constants'
import {generateThresholdsListHexs} from 'src/shared/constants/colorOperations'
import {ColorNumber} from 'src/types/colors'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
import {Data} from 'src/types/dygraphs'
import {ErrorHandling} from 'src/shared/decorators/errors'

View File

@ -36,7 +36,7 @@ import {
FieldOption,
DecimalPlaces,
Sort,
} from 'src/types/dashboard'
} from 'src/types/dashboards'
interface Label {
label: string

View File

@ -4,7 +4,7 @@ import AlertsApp from 'src/alerts/containers/AlertsApp'
import NewsFeed from 'src/status/components/NewsFeed'
import GettingStarted from 'src/status/components/GettingStarted'
import {Cell} from 'src/types/dashboard'
import {Cell} from 'src/types/dashboards'
import {Source} from 'src/types/sources'
import {TimeRange} from 'src/types/query'
import {RECENT_ALERTS_LIMIT} from 'src/status/constants'

View File

@ -7,7 +7,7 @@ import {
THRESHOLD_TYPE_TEXT,
} from 'src/shared/constants/thresholds'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
const getLegibleTextColor = bgColorHex => {
const darkText = '#292933'

View File

@ -1,7 +1,7 @@
import _ from 'lodash'
import {TemplateValueType, TemplateType} from 'src/types'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
export const NO_CELL = 'none'

View File

@ -3,7 +3,7 @@ import {TEMP_VAR_DASHBOARD_TIME} from 'src/shared/constants'
import {NEW_DEFAULT_DASHBOARD_CELL} from 'src/dashboards/constants/index'
import {DEFAULT_AXIS} from 'src/dashboards/constants/cellEditor'
import {Cell, CellQuery, Axes} from 'src/types'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
const emptyQuery: CellQuery = {
query: '',

View File

@ -2,7 +2,7 @@ import {Dispatch} from 'redux'
import {InjectedRouter} from 'react-router'
import {LocationAction} from 'react-router-redux'
import {Source} from 'src/types'
import * as DashboardData from 'src/types/dashboard'
import * as DashboardData from 'src/types/dashboards'
import * as QueryData from 'src/types/query'
import * as TempVarData from 'src/types/tempVars'
import * as ErrorActions from 'src/types/actions/errors'

View File

@ -1,4 +1,4 @@
import {Dashboard} from 'src/types/dashboard'
import {Dashboard} from 'src/types/dashboards'
export interface DashboardsResponse {
dashboards: Dashboard[]

View File

@ -15,9 +15,9 @@ import {
TableOptions,
FieldOption,
DecimalPlaces,
} from 'src/types/dashboard'
} from 'src/types/dashboards'
import {LineColor, ColorNumber} from 'src/types/colors'
import {CellType} from 'src/types/dashboard'
import {CellType} from 'src/types/dashboards'
export const sourceLinks: SourceLinks = {
services: '/chronograf/v1/sources/4',