Update dependecies

This commit is contained in:
Thomas Nordquist
2019-11-13 10:46:22 +01:00
parent 94a92e9b29
commit 763a1aea69
8 changed files with 379 additions and 277 deletions

View File

@@ -25,6 +25,7 @@ function ChartSettings(props: {
const [interpolationVisible, setInterpolationVisible] = React.useState(false) const [interpolationVisible, setInterpolationVisible] = React.useState(false)
const [sizeVisible, setSizeVisible] = React.useState(false) const [sizeVisible, setSizeVisible] = React.useState(false)
const [colorVisible, setColorVisible] = React.useState(false) const [colorVisible, setColorVisible] = React.useState(false)
const open = props.open
const toggleRange = React.useCallback(() => { const toggleRange = React.useCallback(() => {
if (open) { if (open) {

View File

@@ -1,4 +1,3 @@
import { Action } from 'redux'
import { createReducer } from './lib' import { createReducer } from './lib'
import { Record, List } from 'immutable' import { Record, List } from 'immutable'
import MoveUp from '../components/ChartPanel/ChartSettings/MoveUp' import MoveUp from '../components/ChartPanel/ChartSettings/MoveUp'

View File

@@ -1,5 +1,4 @@
import * as q from '../../../backend/src/Model' import * as q from '../../../backend/src/Model'
import { Action } from 'redux'
import { createReducer } from './lib' import { createReducer } from './lib'
import { MqttOptions } from '../../../backend/src/DataSource' import { MqttOptions } from '../../../backend/src/DataSource'
import { TopicViewModel } from '../model/TopicViewModel' import { TopicViewModel } from '../model/TopicViewModel'

View File

@@ -1,4 +1,3 @@
import { Action } from 'redux'
import { ConnectionOptions } from '../model/ConnectionOptions' import { ConnectionOptions } from '../model/ConnectionOptions'
import { createReducer } from './lib' import { createReducer } from './lib'

View File

@@ -1,4 +1,3 @@
import { Action } from 'redux'
import { createReducer } from './lib' import { createReducer } from './lib'
export interface PublishState { export interface PublishState {

View File

@@ -1,5 +1,5 @@
import * as q from '../../../backend/src/Model' import * as q from '../../../backend/src/Model'
import { Action } from 'redux' import { Action as ReduxAction } from 'redux'
import { createReducer } from './lib' import { createReducer } from './lib'
import { Record } from 'immutable' import { Record } from 'immutable'
@@ -11,7 +11,8 @@ const initialStateFactory = Record<SidebarModel>({
compareMessage: undefined, compareMessage: undefined,
}) })
export type Action = SetCompareMessage export type Action = SetCompareMessage | ResetStore
export enum ActionTypes { export enum ActionTypes {
SIDEBAR_SET_COMPARE_MESSAGE = 'SIDEBAR_SET_COMPARE_MESSAGE', SIDEBAR_SET_COMPARE_MESSAGE = 'SIDEBAR_SET_COMPARE_MESSAGE',
SIDEBAR_RESET_STORE = 'SIDEBAR_RESET_STORE', SIDEBAR_RESET_STORE = 'SIDEBAR_RESET_STORE',
@@ -20,7 +21,7 @@ export enum ActionTypes {
export type SidebarState = Record<SidebarModel> export type SidebarState = Record<SidebarModel>
const actions: { const actions: {
[s: string]: (state: SidebarState, action: Action) => SidebarState [s: string]: (state: SidebarState, action: ReduxAction) => SidebarState
} = { } = {
SIDEBAR_SET_COMPARE_MESSAGE: setCompareMessage, SIDEBAR_SET_COMPARE_MESSAGE: setCompareMessage,
SIDEBAR_RESET_STORE: resetStore, SIDEBAR_RESET_STORE: resetStore,

View File

@@ -1,5 +1,5 @@
import * as q from '../../../backend/src/Model' import * as q from '../../../backend/src/Model'
import { Action } from 'redux' import { Action as ReduxAction } from 'redux'
import { createReducer } from './lib' import { createReducer } from './lib'
import { Record } from 'immutable' import { Record } from 'immutable'
import { TopicViewModel } from '../model/TopicViewModel' import { TopicViewModel } from '../model/TopicViewModel'
@@ -50,7 +50,7 @@ const setPaused = (pause: boolean) => (state: TreeState, action: ShowTree): Tree
} }
const actions: { const actions: {
[s: string]: (state: TreeState, action: Action) => TreeState [s: string]: (state: TreeState, action: ReduxAction) => TreeState
} = { } = {
TREE_SHOW_TREE: showTree, TREE_SHOW_TREE: showTree,
TREE_SELECT_TOPIC: selectTopic, TREE_SELECT_TOPIC: selectTopic,

640
yarn.lock

File diff suppressed because it is too large Load Diff