output versions on console

This commit is contained in:
SrGooglo 2024-02-16 01:39:11 +01:00
parent 4ab0bc5975
commit b43cb2073c
2 changed files with 15 additions and 1 deletions

View File

@ -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("/")

View File

@ -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,
}