diff options
Diffstat (limited to 'src/components/settings/settings/EditSettingsForm.tsx')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.tsx | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.tsx b/src/components/settings/settings/EditSettingsForm.tsx index 81cfe8b12..598158e20 100644 --- a/src/components/settings/settings/EditSettingsForm.tsx +++ b/src/components/settings/settings/EditSettingsForm.tsx | |||
@@ -1,31 +1,20 @@ | |||
1 | import { systemPreferences } from '@electron/remote'; | 1 | import { systemPreferences } from '@electron/remote'; |
2 | import { Component, ReactElement } from 'react'; | ||
3 | import { observer } from 'mobx-react'; | ||
4 | import prettyBytes from 'pretty-bytes'; | ||
5 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
6 | import { mdiGithub, mdiOpenInNew, mdiPowerPlug } from '@mdi/js'; | 2 | import { mdiGithub, mdiOpenInNew, mdiPowerPlug } from '@mdi/js'; |
7 | import { noop } from 'lodash'; | 3 | import { noop } from 'lodash'; |
8 | import Form from '../../../lib/Form'; | 4 | import { observer } from 'mobx-react'; |
9 | import Button from '../../ui/button'; | 5 | import prettyBytes from 'pretty-bytes'; |
10 | import Toggle from '../../ui/toggle'; | 6 | import { Component, type ReactElement } from 'react'; |
11 | import Select from '../../ui/Select'; | ||
12 | import Input from '../../ui/input/index'; | ||
13 | import ColorPickerInput from '../../ui/colorPickerInput'; | ||
14 | import Infobox from '../../ui/Infobox'; | ||
15 | import { H1, H2, H3, H5 } from '../../ui/headline'; | ||
16 | import { | 7 | import { |
17 | ferdiumVersion, | 8 | type WrappedComponentProps, |
18 | userDataCertsPath, | 9 | defineMessages, |
19 | userDataPath, | 10 | injectIntl, |
20 | userDataRecipesPath, | 11 | } from 'react-intl'; |
21 | } from '../../../environment-remote'; | ||
22 | import { updateVersionParse } from '../../../helpers/update-helpers'; | ||
23 | import { | 12 | import { |
24 | DEFAULT_ACCENT_COLOR, | 13 | DEFAULT_ACCENT_COLOR, |
25 | DEFAULT_APP_SETTINGS, | 14 | DEFAULT_APP_SETTINGS, |
26 | FERDIUM_TRANSLATION, | 15 | FERDIUM_TRANSLATION, |
27 | GITHUB_FRANZ_URL, | ||
28 | GITHUB_FERDIUM_URL, | 16 | GITHUB_FERDIUM_URL, |
17 | GITHUB_FRANZ_URL, | ||
29 | SPLIT_COLUMNS_MAX, | 18 | SPLIT_COLUMNS_MAX, |
30 | SPLIT_COLUMNS_MIN, | 19 | SPLIT_COLUMNS_MIN, |
31 | } from '../../../config'; | 20 | } from '../../../config'; |
@@ -35,10 +24,25 @@ import { | |||
35 | isWindows, | 24 | isWindows, |
36 | lockFerdiumShortcutKey, | 25 | lockFerdiumShortcutKey, |
37 | } from '../../../environment'; | 26 | } from '../../../environment'; |
27 | import { | ||
28 | ferdiumVersion, | ||
29 | userDataCertsPath, | ||
30 | userDataPath, | ||
31 | userDataRecipesPath, | ||
32 | } from '../../../environment-remote'; | ||
33 | import { updateVersionParse } from '../../../helpers/update-helpers'; | ||
38 | import { openExternalUrl, openPath } from '../../../helpers/url-helpers'; | 34 | import { openExternalUrl, openPath } from '../../../helpers/url-helpers'; |
39 | import globalMessages from '../../../i18n/globalMessages'; | 35 | import globalMessages from '../../../i18n/globalMessages'; |
40 | import Icon from '../../ui/icon'; | 36 | import type Form from '../../../lib/Form'; |
37 | import Infobox from '../../ui/Infobox'; | ||
38 | import Select from '../../ui/Select'; | ||
41 | import Slider from '../../ui/Slider'; | 39 | import Slider from '../../ui/Slider'; |
40 | import Button from '../../ui/button'; | ||
41 | import ColorPickerInput from '../../ui/colorPickerInput'; | ||
42 | import { H1, H2, H3, H5 } from '../../ui/headline'; | ||
43 | import Icon from '../../ui/icon'; | ||
44 | import Input from '../../ui/input/index'; | ||
45 | import Toggle from '../../ui/toggle'; | ||
42 | 46 | ||
43 | const debug = require('../../../preload-safe-debug')( | 47 | const debug = require('../../../preload-safe-debug')( |
44 | 'Ferdium:EditSettingsForm', | 48 | 'Ferdium:EditSettingsForm', |