refactor: upgrade deps

This commit is contained in:
lin onetwo 2022-09-05 18:52:19 +08:00
parent a5bcee553e
commit 2fba0cba7e
4 changed files with 21 additions and 21 deletions

26
package-lock.json generated
View file

@ -14,7 +14,7 @@
"best-effort-json-parser": "0.1.1",
"bluebird": "3.7.2",
"default-gateway": "6.0.3",
"electron-ipc-cat": "1.2.8",
"electron-ipc-cat": "1.2.9",
"electron-is-packaged": "1.0.2",
"electron-settings": "4.0.2",
"electron-squirrel-startup": "1.0.0",
@ -7646,18 +7646,17 @@
}
},
"node_modules/electron-ipc-cat": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/electron-ipc-cat/-/electron-ipc-cat-1.2.8.tgz",
"integrity": "sha512-+Jz1iKaAWO2jnvgHyd86om0c9Bh8KcBLetvizl3cvYRbfewTU+YAekg+5DngG8CR+DlzzEZ4h2a+WuajLryDvg==",
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/electron-ipc-cat/-/electron-ipc-cat-1.2.9.tgz",
"integrity": "sha512-H/d2/sDlc4BP7IlVUONWipGLxYzRxQOVhO5So/DQ7kYCOm4hW+PdHFE0EKUzNeK5W9hQaiYAuQ22k9AQJ/VAyA==",
"dependencies": {
"errio": "1.2.2",
"lodash": "4.17.21",
"type-fest": "^2.12.2",
"uuid": "8.3.2"
"type-fest": "^2.19.0"
},
"peerDependencies": {
"electron": ">= 13.0.0",
"rxjs": "^7.5.0"
"rxjs": ">= 7.5.0"
}
},
"node_modules/electron-is-dev": {
@ -18820,6 +18819,7 @@
"version": "8.3.2",
"resolved": "https://registry.nlark.com/uuid/download/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=",
"dev": true,
"bin": {
"uuid": "dist/bin/uuid"
}
@ -25882,14 +25882,13 @@
}
},
"electron-ipc-cat": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/electron-ipc-cat/-/electron-ipc-cat-1.2.8.tgz",
"integrity": "sha512-+Jz1iKaAWO2jnvgHyd86om0c9Bh8KcBLetvizl3cvYRbfewTU+YAekg+5DngG8CR+DlzzEZ4h2a+WuajLryDvg==",
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/electron-ipc-cat/-/electron-ipc-cat-1.2.9.tgz",
"integrity": "sha512-H/d2/sDlc4BP7IlVUONWipGLxYzRxQOVhO5So/DQ7kYCOm4hW+PdHFE0EKUzNeK5W9hQaiYAuQ22k9AQJ/VAyA==",
"requires": {
"errio": "1.2.2",
"lodash": "4.17.21",
"type-fest": "^2.12.2",
"uuid": "8.3.2"
"type-fest": "^2.19.0"
}
},
"electron-is-dev": {
@ -34500,7 +34499,8 @@
"uuid": {
"version": "8.3.2",
"resolved": "https://registry.nlark.com/uuid/download/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== sha1-gNW1ztJxu5r2xEXyGhoExgbO++I="
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=",
"dev": true
},
"v8-compile-cache-lib": {
"version": "3.0.1",

View file

@ -31,7 +31,7 @@
"best-effort-json-parser": "0.1.1",
"bluebird": "3.7.2",
"default-gateway": "6.0.3",
"electron-ipc-cat": "1.2.8",
"electron-ipc-cat": "1.2.9",
"electron-is-packaged": "1.0.2",
"electron-settings": "4.0.2",
"electron-squirrel-startup": "1.0.0",

View file

@ -4,6 +4,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import i18n from 'i18next';
import { ThemeProvider } from 'styled-components';
import { createRoot } from 'react-dom/client';
import StyledEngineProvider from '@material-ui/core/StyledEngineProvider';
import DateFnsUtils from '@material-ui/lab/AdapterDateFns';
@ -40,11 +41,9 @@ function App(): JSX.Element {
);
}
async function runApp(): Promise<void> {
void window.remote.setVisualZoomLevelLimits(1, 1);
ReactDOM.render(<App />, document.querySelector('#app'));
void window.remote.setVisualZoomLevelLimits(1, 1);
const container = document.getElementById('app');
const root = createRoot(container!);
root.render(<App />);
await initI18N();
}
void runApp();
void initI18N();

View file

@ -43,6 +43,7 @@ export const NativeServiceIPCDescriptor = {
pickDirectory: ProxyPropertyType.Function,
pickFile: ProxyPropertyType.Function,
quit: ProxyPropertyType.Function,
path: ProxyPropertyType.Function,
showElectronMessageBox: ProxyPropertyType.Function,
},
};