diff options
author | 2021-07-03 09:43:22 +0530 | |
---|---|---|
committer | 2021-07-04 15:24:59 +0530 | |
commit | 8fc02b903755bfd209edb1744cc82743aa41ba18 (patch) | |
tree | be2ae18db1aea93de6ceb8c2d00d4cd7a55cd1a1 /src/lib | |
parent | Fixed issue with not being able to add new service. (diff) | |
download | ferdium-app-8fc02b903755bfd209edb1744cc82743aa41ba18.tar.gz ferdium-app-8fc02b903755bfd209edb1744cc82743aa41ba18.tar.zst ferdium-app-8fc02b903755bfd209edb1744cc82743aa41ba18.zip |
Use utility methods from 'electron-util'
(already a dependency) rather than re-implementing by ourselves.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index d66fa009f..c60536f0c 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -6,7 +6,7 @@ import { autorun, observable } from 'mobx'; | |||
6 | import { defineMessages } from 'react-intl'; | 6 | import { defineMessages } from 'react-intl'; |
7 | import { CUSTOM_WEBSITE_RECIPE_ID, GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; | 7 | import { CUSTOM_WEBSITE_RECIPE_ID, GITHUB_FERDI_URL, LIVE_API_FERDI_WEBSITE } from '../config'; |
8 | import { | 8 | import { |
9 | cmdKey, ctrlKey, isLinux, isMac, termsBase, | 9 | cmdKey, ctrlKey, isLinux, isMac, aboutAppDetails, termsBase, |
10 | } from '../environment'; | 10 | } from '../environment'; |
11 | import { announcementsStore } from '../features/announcements'; | 11 | import { announcementsStore } from '../features/announcements'; |
12 | import { announcementActions } from '../features/announcements/actions'; | 12 | import { announcementActions } from '../features/announcements/actions'; |
@@ -14,10 +14,6 @@ import { todosStore } from '../features/todos'; | |||
14 | import { todoActions } from '../features/todos/actions'; | 14 | import { todoActions } from '../features/todos/actions'; |
15 | import { workspaceActions } from '../features/workspaces/actions'; | 15 | import { workspaceActions } from '../features/workspaces/actions'; |
16 | import { workspaceStore } from '../features/workspaces/index'; | 16 | import { workspaceStore } from '../features/workspaces/index'; |
17 | import * as buildInfo from '../buildInfo.json'; // eslint-disable-line import/no-unresolved | ||
18 | import { ferdiVersion } from '../helpers/userAgent-helpers'; | ||
19 | |||
20 | const osName = require('os-name'); | ||
21 | 17 | ||
22 | const menuItems = defineMessages({ | 18 | const menuItems = defineMessages({ |
23 | edit: { | 19 | edit: { |
@@ -1025,7 +1021,7 @@ export default class FranzMenu { | |||
1025 | type: 'info', | 1021 | type: 'info', |
1026 | title: 'Franz Ferdinand', | 1022 | title: 'Franz Ferdinand', |
1027 | message: 'Ferdi', | 1023 | message: 'Ferdi', |
1028 | detail: `Version: ${ferdiVersion}\nElectron: ${process.versions.electron}\nChrome: ${process.versions.chrome}\nNode.js: ${process.versions.node}\nPlatform: ${osName()}\nArch: ${process.arch}\nBuild date: ${new Date(Number(buildInfo.timestamp))}\nGit SHA: ${buildInfo.gitHashShort}\nGit branch: ${buildInfo.gitBranch}`, | 1024 | detail: aboutAppDetails(), |
1029 | }); | 1025 | }); |
1030 | }, | 1026 | }, |
1031 | }; | 1027 | }; |