diff options
author | 2021-09-13 11:44:22 +0530 | |
---|---|---|
committer | 2021-09-13 11:50:17 +0530 | |
commit | af56a07359400e53cb3096e321bf6ee1bae12068 (patch) | |
tree | 10aeed9aa2650d45c81cff9930ad36b7cac86c3b /src/environment.js | |
parent | Better implementation of confirmation while quitting Ferdi (#1919) (diff) | |
download | ferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.tar.gz ferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.tar.zst ferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.zip |
refactor: reuse method from the core electron framework for the 'About' dialog.
Diffstat (limited to 'src/environment.js')
-rw-r--r-- | src/environment.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/environment.js b/src/environment.js index b30e3778d..9d7ffaf78 100644 --- a/src/environment.js +++ b/src/environment.js | |||
@@ -5,7 +5,6 @@ import { is, api as electronApi } from 'electron-util'; | |||
5 | 5 | ||
6 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; | 6 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; |
7 | 7 | ||
8 | import osName from 'os-name'; | ||
9 | import { | 8 | import { |
10 | LIVE_FERDI_API, | 9 | LIVE_FERDI_API, |
11 | DEV_FRANZ_API, | 10 | DEV_FRANZ_API, |
@@ -24,7 +23,6 @@ import { | |||
24 | } from './config'; | 23 | } from './config'; |
25 | 24 | ||
26 | import { asarPath } from './helpers/asar-helpers'; | 25 | import { asarPath } from './helpers/asar-helpers'; |
27 | import * as buildInfo from './buildInfo.json'; // eslint-disable-line import/no-unresolved | ||
28 | 26 | ||
29 | export const { app } = electronApi; | 27 | export const { app } = electronApi; |
30 | export const ferdiVersion = app.getVersion(); | 28 | export const ferdiVersion = app.getVersion(); |
@@ -173,17 +171,3 @@ export const DEFAULT_APP_SETTINGS = { | |||
173 | alwaysShowWorkspaces: false, | 171 | alwaysShowWorkspaces: false, |
174 | liftSingleInstanceLock: false, | 172 | liftSingleInstanceLock: false, |
175 | }; | 173 | }; |
176 | |||
177 | export function aboutAppDetails() { | ||
178 | return [ | ||
179 | `Version: ${ferdiVersion}`, | ||
180 | `Electron: ${electronVersion}`, | ||
181 | `Chrome: ${chromeVersion}`, | ||
182 | `Node.js: ${nodeVersion}`, | ||
183 | `Platform: ${osName()}`, | ||
184 | `Arch: ${process.arch}`, | ||
185 | `Build date: ${new Date(Number(buildInfo.timestamp))}`, | ||
186 | `Git SHA: ${buildInfo.gitHashShort}`, | ||
187 | `Git branch: ${buildInfo.gitBranch}`, | ||
188 | ].join('\n'); | ||
189 | } | ||