From a5e74493983e57aaa11f6de928184332a79aafad Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 23 May 2019 00:25:20 +0200 Subject: [PATCH] package updates --- package.json | 10 +++++----- src/app/components/Total.jsx | 2 +- src/app/store/AppProvider.jsx | 3 +-- src/{app => }/config.js | 0 src/main.js | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) rename src/{app => }/config.js (100%) diff --git a/package.json b/package.json index 1487902..2829c35 100644 --- a/package.json +++ b/package.json @@ -30,18 +30,18 @@ "react-pose": "^4.0.8" }, "devDependencies": { - "@babel/core": "^7.4.4", + "@babel/core": "^7.4.5", "@babel/plugin-proposal-class-properties": "^7.4.4", "@babel/plugin-transform-runtime": "^7.4.4", - "@babel/preset-env": "^7.4.4", + "@babel/preset-env": "^7.4.5", "@babel/preset-react": "^7.0.0", - "@babel/runtime": "^7.4.4", + "@babel/runtime": "^7.4.5", "@svgr/webpack": "^4.2.0", "babel-eslint": "^10.0.1", "babel-loader": "^8.0.6", "copy-webpack-plugin": "^5.0.3", "css-loader": "^2.1.1", - "electron": "^6.0.0-beta.3", + "electron": "^6.0.0-beta.4", "electron-builder": "^20.40.2", "electron-devtools-installer": "^2.2.4", "electron-store": "^3.2.0", @@ -55,7 +55,7 @@ "style-loader": "^0.23.1", "stylelint": "^10.0.1", "stylelint-config-standard": "^18.3.0", - "webpack": "^4.31.0", + "webpack": "^4.32.1", "webpack-cli": "^3.3.2", "webpack-dev-server": "^3.3.1" }, diff --git a/src/app/components/Total.jsx b/src/app/components/Total.jsx index b9016c4..3430ed6 100644 --- a/src/app/components/Total.jsx +++ b/src/app/components/Total.jsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react' import { AppContext } from '../store/createContext' import Balance from './Balance' -import { prices } from '../config' +import { prices } from '../../config' const calculateTotalBalance = (accounts, currency) => { const balanceTotalArray = [] diff --git a/src/app/store/AppProvider.jsx b/src/app/store/AppProvider.jsx index ead7c8c..efe778a 100644 --- a/src/app/store/AppProvider.jsx +++ b/src/app/store/AppProvider.jsx @@ -5,7 +5,7 @@ import { ipcRenderer } from 'electron' import Store from 'electron-store' import { AppContext } from './createContext' import fetchData from '../utils/fetch' -import { refreshInterval, prices, oceanTokenContract } from '../config' +import { refreshInterval, prices, oceanTokenContract } from '../../config' export default class AppProvider extends PureComponent { static propTypes = { @@ -38,7 +38,6 @@ export default class AppProvider extends PureComponent { const newPrizes = await this.fetchAndSetPrices() this.setState({ prices: newPrizes }) - ipcRenderer.send('prices-updated', newPrizes) await this.setBalances() diff --git a/src/app/config.js b/src/config.js similarity index 100% rename from src/app/config.js rename to src/config.js diff --git a/src/main.js b/src/main.js index 4874212..1049d85 100644 --- a/src/main.js +++ b/src/main.js @@ -4,7 +4,7 @@ const pkg = require('../package.json') const buildMenu = require('./menu') const { buildTouchbar, updateTouchbar } = require('./touchbar') const { rgbaToHex } = require('./utils') -const { prices } = require('./app/config') +const { prices } = require('./config') let mainWindow