mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
output versions on console
This commit is contained in:
parent
4ab0bc5975
commit
b43cb2073c
@ -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("/")
|
||||
|
||||
|
11
src/renderer/src/utils/getVersions/index.js
Normal file
11
src/renderer/src/utils/getVersions/index.js
Normal 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,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user