aboutsummaryrefslogtreecommitdiffstats
path: root/src/environment.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-01 22:13:42 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-01 22:13:42 +0530
commitd4afc1eec9706d0027ad4b44421f8868688d1969 (patch)
tree3e43ed144c8f76f8c21f738d8c0703490c577afe /src/environment.ts
parentrefactor: split 'environment' into 'environment-remote' with only the remote ... (diff)
downloadferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.tar.gz
ferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.tar.zst
ferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.zip
refactor: move 'DEFAULT_APP_SETTINGS' from 'environment' to 'config' since it doesn't depend on the running process any more.
Diffstat (limited to 'src/environment.ts')
-rw-r--r--src/environment.ts67
1 files changed, 2 insertions, 65 deletions
diff --git a/src/environment.ts b/src/environment.ts
index 99002367f..ce2a77e7a 100644
--- a/src/environment.ts
+++ b/src/environment.ts
@@ -1,13 +1,6 @@
1import os from 'os'; 1// Note: This file has now become devoid of all references to values deduced from the remote process - all those now live in the `environment-remote.js` file
2
3import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme';
4 2
5import { 3import os from 'os';
6 LIVE_FERDI_API,
7 DEFAULT_TODO_SERVICE,
8 SEARCH_ENGINE_DDG,
9 iconSizeBias,
10} from './config';
11 4
12export const isMac = process.platform === 'darwin'; 5export const isMac = process.platform === 'darwin';
13export const isWindows = process.platform === 'win32'; 6export const isWindows = process.platform === 'win32';
@@ -47,59 +40,3 @@ export const addNewServiceShortcutKey = (isAccelerator = true) =>
47 `${cmdOrCtrlShortcutKey(isAccelerator)}+N`; 40 `${cmdOrCtrlShortcutKey(isAccelerator)}+N`;
48export const settingsShortcutKey = (isAccelerator = true) => 41export const settingsShortcutKey = (isAccelerator = true) =>
49 `${cmdOrCtrlShortcutKey(isAccelerator)}+${isMac ? ',' : 'P'}`; 42 `${cmdOrCtrlShortcutKey(isAccelerator)}+${isMac ? ',' : 'P'}`;
50
51export const DEFAULT_APP_SETTINGS = {
52 autoLaunchInBackground: false,
53 runInBackground: true,
54 reloadAfterResume: true,
55 enableSystemTray: true,
56 startMinimized: false,
57 confirmOnQuit: false,
58 minimizeToSystemTray: false,
59 closeToSystemTray: false,
60 privateNotifications: false,
61 clipboardNotifications: true,
62 notifyTaskBarOnMessage: false,
63 showDisabledServices: true,
64 showMessageBadgeWhenMuted: true,
65 showDragArea: false,
66 enableSpellchecking: true,
67 spellcheckerLanguage: 'en-us',
68 darkMode: false,
69 splitMode: false,
70 locale: '',
71 fallbackLocale: 'en-US',
72 beta: false,
73 isAppMuted: false,
74 enableGPUAcceleration: true,
75
76 // Ferdi specific options
77 server: LIVE_FERDI_API,
78 predefinedTodoServer: DEFAULT_TODO_SERVICE,
79 autohideMenuBar: false,
80 lockingFeatureEnabled: false,
81 locked: false,
82 lockedPassword: '',
83 useTouchIdToUnlock: true,
84 scheduledDNDEnabled: false,
85 scheduledDNDStart: '17:00',
86 scheduledDNDEnd: '09:00',
87 hibernateOnStartup: true,
88 hibernationStrategy: '300', // seconds
89 wakeUpStrategy: '300', // seconds
90 inactivityLock: 0,
91 automaticUpdates: true,
92 universalDarkMode: true,
93 userAgentPref: '',
94 adaptableDarkMode: true,
95 accentColor: DEFAULT_ACCENT_COLOR,
96 serviceRibbonWidth: 68,
97 iconSize: iconSizeBias,
98 sentry: false,
99 nightly: false,
100 navigationBarBehaviour: 'custom',
101 searchEngine: SEARCH_ENGINE_DDG,
102 useVerticalStyle: false,
103 alwaysShowWorkspaces: false,
104 liftSingleInstanceLock: false,
105};