Rename types/dashboard.ts to plural for consistency
parent
c7e46bbaee
commit
2626cf8955
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
FieldOption,
|
||||
TableOptions,
|
||||
DecimalPlaces,
|
||||
} from 'src/types/dashboard'
|
||||
} from 'src/types/dashboards'
|
||||
import {TimeSeriesValue} from 'src/types/series'
|
||||
|
||||
interface ColumnWidths {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ import {
|
|||
FieldOption,
|
||||
DecimalPlaces,
|
||||
Sort,
|
||||
} from 'src/types/dashboard'
|
||||
} from 'src/types/dashboards'
|
||||
|
||||
interface Label {
|
||||
label: string
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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: '',
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {Dashboard} from 'src/types/dashboard'
|
||||
import {Dashboard} from 'src/types/dashboards'
|
||||
|
||||
export interface DashboardsResponse {
|
||||
dashboards: Dashboard[]
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue