diff options
author | 2021-07-30 19:48:40 +0200 | |
---|---|---|
committer | 2021-07-30 23:06:24 +0000 | |
commit | 41d3410efb83d18e81b580dd9acc7da2eee226d6 (patch) | |
tree | 65249a87c9f464ec670273b3f994cca8066587c7 /src/app.js | |
parent | chore: migrate from tslint to @typescript-eslint (#1706) (diff) | |
download | ferdium-app-41d3410efb83d18e81b580dd9acc7da2eee226d6.tar.gz ferdium-app-41d3410efb83d18e81b580dd9acc7da2eee226d6.tar.zst ferdium-app-41d3410efb83d18e81b580dd9acc7da2eee226d6.zip |
chore: cleanup and improve dependencies
- removed `@meetfranz/typings` because it only stubbed external type definitions
- removed `@babel/polyfill` because there are no old browsers in use with Electron
- replaced deprecated `mdi` with `@mdi/font`
- removed unused `atob`, `btoa`, `targz`, `node-fetch`, `terser-webpack-plugin`, `webpack-node-externals`
- added used, but not installed dependencies `color`, `csstype`, `debug`, `minimist`, `jss`
- upgraded `@types/node` to match used node version
- upgraded `@types/fs-extra` to match fs-extra version
- add missing `arrow-parens` rule to `.eslintrc` rulest for .js files
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/app.js b/src/app.js index a2d60dbe4..39b50cb33 100644 --- a/src/app.js +++ b/src/app.js | |||
@@ -4,11 +4,8 @@ import React from 'react'; | |||
4 | import { render } from 'react-dom'; | 4 | import { render } from 'react-dom'; |
5 | import { Provider } from 'mobx-react'; | 5 | import { Provider } from 'mobx-react'; |
6 | import { syncHistoryWithStore, RouterStore } from 'mobx-react-router'; | 6 | import { syncHistoryWithStore, RouterStore } from 'mobx-react-router'; |
7 | import { | 7 | import { hashHistory } from 'react-router'; |
8 | hashHistory, | ||
9 | } from 'react-router'; | ||
10 | 8 | ||
11 | import '@babel/polyfill'; | ||
12 | import smoothScroll from 'smoothscroll-polyfill'; | 9 | import smoothScroll from 'smoothscroll-polyfill'; |
13 | 10 | ||
14 | import ServerApi from './api/server/ServerApi'; | 11 | import ServerApi from './api/server/ServerApi'; |
@@ -59,7 +56,7 @@ window.addEventListener('load', () => { | |||
59 | }); | 56 | }); |
60 | 57 | ||
61 | // Prevent drag and drop into window from redirecting | 58 | // Prevent drag and drop into window from redirecting |
62 | window.addEventListener('dragover', (event) => event.preventDefault()); | 59 | window.addEventListener('dragover', event => event.preventDefault()); |
63 | window.addEventListener('drop', (event) => event.preventDefault()); | 60 | window.addEventListener('drop', event => event.preventDefault()); |
64 | window.addEventListener('dragover', (event) => event.stopPropagation()); | 61 | window.addEventListener('dragover', event => event.stopPropagation()); |
65 | window.addEventListener('drop', (event) => event.stopPropagation()); | 62 | window.addEventListener('drop', event => event.stopPropagation()); |