diff --git a/src/renderer/src/App.jsx b/src/renderer/src/App.jsx index 6dc1e5d..69c180c 100644 --- a/src/renderer/src/App.jsx +++ b/src/renderer/src/App.jsx @@ -1,4 +1,5 @@ import React from "react" +import versions from "utils/getVersions" import * as antd from "antd" import GlobalStateContext from "contexts/global" @@ -171,7 +172,9 @@ class App extends React.Component { const initResult = await ipc.exec("app:init") - console.log(`[INIT] >`, initResult) + console.log(`Using React version > ${versions["react"]}`) + console.log(`Using DOMRouter version > ${versions["react-router-dom"]}`) + console.log(`[APP] app:init() | Result >`, initResult) app.location.push("/") diff --git a/src/renderer/src/utils/getVersions/index.js b/src/renderer/src/utils/getVersions/index.js new file mode 100644 index 0000000..6203ffc --- /dev/null +++ b/src/renderer/src/utils/getVersions/index.js @@ -0,0 +1,11 @@ +import React from "react" +import { version as reactRouterDomVersion } from "react-router-dom/package.json" +import { version as antdVersion } from "antd" + +export default { + "ui": antdVersion, + "react-router-dom": reactRouterDomVersion, + "react": React.version, + "electron": window.versions.electron, + "node": window.versions.node, +} \ No newline at end of file