Clean up and fix build
This commit is contained in:
@@ -98,7 +98,7 @@ const styles = (theme: Theme) => {
|
|||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
overflowX: 'hidden',
|
overflowX: 'hidden' as 'hidden',
|
||||||
backgroundColor: theme.palette.background.default,
|
backgroundColor: theme.palette.background.default,
|
||||||
transition: theme.transitions.create('transform', {
|
transition: theme.transitions.create('transform', {
|
||||||
easing: theme.transitions.easing.sharp,
|
easing: theme.transitions.easing.sharp,
|
||||||
@@ -107,7 +107,7 @@ const styles = (theme: Theme) => {
|
|||||||
transform: 'translateX(0px)',
|
transform: 'translateX(0px)',
|
||||||
},
|
},
|
||||||
contentShift: {
|
contentShift: {
|
||||||
overflowX: 'hidden',
|
overflowX: 'hidden' as 'hidden',
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
padding: 0,
|
padding: 0,
|
||||||
backgroundColor: theme.palette.background.default,
|
backgroundColor: theme.palette.background.default,
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { createReducer } from './lib'
|
|
||||||
import { createMuiTheme, Theme } from '@material-ui/core'
|
|
||||||
|
|
||||||
const initialState: Theme = createMuiTheme({
|
|
||||||
palette: {
|
|
||||||
type: 'dark',
|
|
||||||
},
|
|
||||||
typography: { useNextVariants: true },
|
|
||||||
})
|
|
||||||
|
|
||||||
export const theme = createReducer(initialState, {})
|
|
||||||
@@ -5,7 +5,6 @@ import { PublishState, publishReducer } from './Publish'
|
|||||||
import { ConnectionState, connectionReducer } from './Connection'
|
import { ConnectionState, connectionReducer } from './Connection'
|
||||||
import { SettingsState, settingsReducer } from './Settings'
|
import { SettingsState, settingsReducer } from './Settings'
|
||||||
import { TreeState, treeReducer } from './Tree'
|
import { TreeState, treeReducer } from './Tree'
|
||||||
import { theme } from './theme'
|
|
||||||
|
|
||||||
export enum ActionTypes {
|
export enum ActionTypes {
|
||||||
showUpdateNotification = 'SHOW_UPDATE_NOTIFICATION',
|
showUpdateNotification = 'SHOW_UPDATE_NOTIFICATION',
|
||||||
@@ -63,7 +62,6 @@ const tooBigReducer: Reducer<TooBigOfState | undefined, CustomAction> = (state =
|
|||||||
}
|
}
|
||||||
|
|
||||||
const reducer = combineReducers({
|
const reducer = combineReducers({
|
||||||
theme,
|
|
||||||
tooBigReducer,
|
tooBigReducer,
|
||||||
publish: publishReducer,
|
publish: publishReducer,
|
||||||
connection: connectionReducer,
|
connection: connectionReducer,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
new LiveReloadPlugin({}),
|
new LiveReloadPlugin({}),
|
||||||
new HtmlWebpackPlugin({ template: './index.html', file: './build/index.html', inject: false }),
|
new HtmlWebpackPlugin({ template: './index.html', file: './build/index.html', inject: false }),
|
||||||
new BundleAnalyzerPlugin(),
|
// new BundleAnalyzerPlugin(),
|
||||||
],
|
],
|
||||||
|
|
||||||
// When importing a module whose path matches one of the following, just
|
// When importing a module whose path matches one of the following, just
|
||||||
|
|||||||
Reference in New Issue
Block a user