Fix linter errors
This commit is contained in:
@@ -9,4 +9,3 @@ export const showError = (error?: string) => ({
|
|||||||
export const didLaunch = () => ({
|
export const didLaunch = () => ({
|
||||||
type: ActionTypes.didLaunch,
|
type: ActionTypes.didLaunch,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import {
|
|||||||
SettingsState,
|
SettingsState,
|
||||||
TopicOrder,
|
TopicOrder,
|
||||||
} from '../reducers/Settings'
|
} from '../reducers/Settings'
|
||||||
import { Base64Message } from '../../../backend/src/Model/Base64Message';
|
import { Base64Message } from '../../../backend/src/Model/Base64Message'
|
||||||
import { globalActions } from '.';
|
import { globalActions } from '.'
|
||||||
|
|
||||||
const settingsIdentifier: StorageIdentifier<Partial<SettingsState>> = {
|
const settingsIdentifier: StorageIdentifier<Partial<SettingsState>> = {
|
||||||
id: 'Settings',
|
id: 'Settings',
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { connect } from 'react-redux'
|
|||||||
import { StyleRulesCallback, withStyles } from '@material-ui/core/styles'
|
import { StyleRulesCallback, withStyles } from '@material-ui/core/styles'
|
||||||
import { TopicViewModel } from '../TopicViewModel'
|
import { TopicViewModel } from '../TopicViewModel'
|
||||||
import { Typography } from '@material-ui/core'
|
import { Typography } from '@material-ui/core'
|
||||||
import { Base64Message } from '../../../backend/src/Model/Base64Message';
|
import { Base64Message } from '../../../backend/src/Model/Base64Message'
|
||||||
import lime from '@material-ui/core/colors/teal'
|
import teal from '@material-ui/core/colors/teal'
|
||||||
|
|
||||||
const abbreviate = require('number-abbreviate')
|
const abbreviate = require('number-abbreviate')
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
export enum CodeBlockColors {
|
export enum CodeBlockColors {
|
||||||
text = "#080808",
|
text = '#080808',
|
||||||
background = "#F9F9F9",
|
background = '#F9F9F9',
|
||||||
numeric = "#811F24",
|
numeric = '#811F24',
|
||||||
boolean = "#811F24",
|
boolean = '#811F24',
|
||||||
string = "#0B6125",
|
string = '#0B6125',
|
||||||
variable = "#234A97"
|
variable = '#234A97',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import * as React from 'react'
|
|||||||
import { Theme, withStyles } from '@material-ui/core'
|
import { Theme, withStyles } from '@material-ui/core'
|
||||||
import 'prismjs/components/prism-json'
|
import 'prismjs/components/prism-json'
|
||||||
import 'prismjs/themes/prism-tomorrow.css'
|
import 'prismjs/themes/prism-tomorrow.css'
|
||||||
import { CodeBlockColors } from './CodeBlockColors';
|
import { CodeBlockColors } from './CodeBlockColors'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
previous: string
|
previous: string
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import SplitPane from 'react-split-pane'
|
import ReactSplitPane from 'react-split-pane'
|
||||||
import { Sidebar } from './Sidebar'
|
import { Sidebar } from './Sidebar'
|
||||||
import Tree from './Tree/Tree';
|
import Tree from './Tree/Tree'
|
||||||
|
|
||||||
export default function ContentView(props: {heightProperty: any, paneDefaults: any, connectionId: any}) {
|
export default function ContentView(props: {heightProperty: any, paneDefaults: any, connectionId: any}) {
|
||||||
return (
|
return (
|
||||||
<SplitPane
|
<ReactSplitPane
|
||||||
step={20}
|
step={20}
|
||||||
primary="second"
|
primary="second"
|
||||||
className={props.heightProperty}
|
className={props.heightProperty}
|
||||||
@@ -23,6 +23,6 @@ export default function ContentView(props: {heightProperty: any, paneDefaults: a
|
|||||||
<div className={props.paneDefaults}>
|
<div className={props.paneDefaults}>
|
||||||
<Sidebar connectionId={props.connectionId} />
|
<Sidebar connectionId={props.connectionId} />
|
||||||
</div>
|
</div>
|
||||||
</SplitPane>
|
</ReactSplitPane>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Theme, withStyles } from '@material-ui/core/styles'
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
onClick: any,
|
onClick: any,
|
||||||
classes: any
|
classes: any,
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = (theme: Theme) => ({
|
const styles = (theme: Theme) => ({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import { Theme, withStyles } from '@material-ui/core'
|
import { Theme, withStyles } from '@material-ui/core'
|
||||||
import Key from './Key';
|
import Key from './Key'
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
message?: string
|
message?: string
|
||||||
@@ -8,8 +8,6 @@ interface State {
|
|||||||
location: string
|
location: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Demo extends React.Component<{classes: any}, State> {
|
class Demo extends React.Component<{classes: any}, State> {
|
||||||
private timer: any
|
private timer: any
|
||||||
constructor(props: any) {
|
constructor(props: any) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import ShowText from './ShowText'
|
import ShowText from './ShowText'
|
||||||
import Mouse from './Mouse';
|
import Mouse from './Mouse'
|
||||||
|
|
||||||
(window as any).demo = {}
|
(window as any).demo = {}
|
||||||
|
|
||||||
@@ -11,4 +11,4 @@ export default function render(props: any) {
|
|||||||
<Mouse />
|
<Mouse />
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { bindActionCreators } from 'redux'
|
|||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { treeActions } from '../actions'
|
import { treeActions } from '../actions'
|
||||||
import { StyleRulesCallback, withStyles } from '@material-ui/core/styles'
|
import { StyleRulesCallback, withStyles } from '@material-ui/core/styles'
|
||||||
import { Tooltip } from '@material-ui/core';
|
import { Tooltip } from '@material-ui/core'
|
||||||
|
|
||||||
const styles: StyleRulesCallback = theme => ({ })
|
const styles: StyleRulesCallback = theme => ({ })
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import BarChart from '@material-ui/icons/BarChart'
|
|||||||
import DateFormatter from '../../helper/DateFormatter'
|
import DateFormatter from '../../helper/DateFormatter'
|
||||||
import History from '../History'
|
import History from '../History'
|
||||||
import { TopicViewModel } from '../../../TopicViewModel'
|
import { TopicViewModel } from '../../../TopicViewModel'
|
||||||
import { Base64Message } from '../../../../../backend/src/Model/Base64Message';
|
import { Base64Message } from '../../../../../backend/src/Model/Base64Message'
|
||||||
|
|
||||||
const PlotHistory = React.lazy(() => import('./PlotHistory'))
|
const PlotHistory = React.lazy(() => import('./PlotHistory'))
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import * as React from 'react'
|
|||||||
import DateFormatter from '../../helper/DateFormatter'
|
import DateFormatter from '../../helper/DateFormatter'
|
||||||
import { default as ReactResizeDetector } from 'react-resize-detector'
|
import { default as ReactResizeDetector } from 'react-resize-detector'
|
||||||
import 'react-vis/dist/style.css'
|
import 'react-vis/dist/style.css'
|
||||||
import { Base64Message } from '../../../../../backend/src/Model/Base64Message';
|
import { Base64Message } from '../../../../../backend/src/Model/Base64Message'
|
||||||
const { XYPlot, LineMarkSeries, Hint, YAxis, HorizontalGridLines } = require('react-vis')
|
const { XYPlot, LineMarkSeries, Hint, YAxis, HorizontalGridLines } = require('react-vis')
|
||||||
const abbreviate = require('number-abbreviate')
|
const abbreviate = require('number-abbreviate')
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import ToggleButton from '@material-ui/lab/ToggleButton'
|
|||||||
import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup'
|
import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup'
|
||||||
import ValueRenderer from './ValueRenderer'
|
import ValueRenderer from './ValueRenderer'
|
||||||
import { AppState } from '../../../reducers'
|
import { AppState } from '../../../reducers'
|
||||||
|
import { Base64Message } from '../../../../../backend/src/Model/Base64Message'
|
||||||
import { bindActionCreators } from 'redux'
|
import { bindActionCreators } from 'redux'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { settingsActions, sidebarActions } from '../../../actions'
|
import { settingsActions, sidebarActions } from '../../../actions'
|
||||||
@@ -27,7 +28,6 @@ import {
|
|||||||
withStyles,
|
withStyles,
|
||||||
Theme,
|
Theme,
|
||||||
} from '@material-ui/core'
|
} from '@material-ui/core'
|
||||||
import { Base64Message } from '../../../../../backend/src/Model/Base64Message';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
node?: q.TreeNode<any>
|
node?: q.TreeNode<any>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import {
|
|||||||
Toolbar,
|
Toolbar,
|
||||||
Typography,
|
Typography,
|
||||||
} from '@material-ui/core'
|
} from '@material-ui/core'
|
||||||
import PauseButton from './PauseButton';
|
import PauseButton from './PauseButton'
|
||||||
|
|
||||||
const styles: StyleRulesCallback = theme => ({
|
const styles: StyleRulesCallback = theme => ({
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { connect } from 'react-redux'
|
|||||||
import * as q from '../../../../backend/src/Model'
|
import * as q from '../../../../backend/src/Model'
|
||||||
import { withStyles, Theme } from '@material-ui/core'
|
import { withStyles, Theme } from '@material-ui/core'
|
||||||
import { TopicViewModel } from '../../TopicViewModel'
|
import { TopicViewModel } from '../../TopicViewModel'
|
||||||
import { Base64Message } from '../../../../backend/src/Model/Base64Message';
|
import { Base64Message } from '../../../../backend/src/Model/Base64Message'
|
||||||
const debounce = require('lodash.debounce')
|
const debounce = require('lodash.debounce')
|
||||||
|
|
||||||
export interface TreeNodeProps extends React.HTMLAttributes<HTMLElement> {
|
export interface TreeNodeProps extends React.HTMLAttributes<HTMLElement> {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import * as Url from 'url'
|
|||||||
import { Client, connect as mqttConnect } from 'mqtt'
|
import { Client, connect as mqttConnect } from 'mqtt'
|
||||||
import { DataSource, DataSourceStateMachine } from './'
|
import { DataSource, DataSourceStateMachine } from './'
|
||||||
import { MqttMessage } from '../../../events'
|
import { MqttMessage } from '../../../events'
|
||||||
import { Base64Message } from '../Model/Base64Message';
|
import { Base64Message } from '../Model/Base64Message'
|
||||||
|
|
||||||
export interface MqttOptions {
|
export interface MqttOptions {
|
||||||
url: string
|
url: string
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import {
|
|||||||
updateAvailable,
|
updateAvailable,
|
||||||
} from '../../events'
|
} from '../../events'
|
||||||
|
|
||||||
|
|
||||||
export class ConnectionManager {
|
export class ConnectionManager {
|
||||||
private connections: {[s: string]: DataSource<any>} = {}
|
private connections: {[s: string]: DataSource<any>} = {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { DataSourceState, MqttOptions } from '../backend/src/DataSource'
|
import { DataSourceState, MqttOptions } from '../backend/src/DataSource'
|
||||||
|
|
||||||
import { UpdateInfo } from 'builder-util-runtime'
|
import { UpdateInfo } from 'builder-util-runtime'
|
||||||
import { Base64Message } from '../backend/src/Model/Base64Message';
|
import { Base64Message } from '../backend/src/Model/Base64Message'
|
||||||
|
|
||||||
export { UpdateInfo } from 'builder-util-runtime'
|
export { UpdateInfo } from 'builder-util-runtime'
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"align": false,
|
"align": false,
|
||||||
"variable-name": false,
|
"variable-name": false,
|
||||||
"jsx-no-lambda": false,
|
"jsx-no-lambda": false,
|
||||||
"indent": [true, "spaces", 2]
|
"indent": [true, "spaces", 2],
|
||||||
|
"import-name": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user