diff options
author | 2021-06-05 16:28:45 +0530 | |
---|---|---|
committer | 2021-06-05 12:58:45 +0200 | |
commit | aa6689e6158efde28b68948cd8b67d55080158d2 (patch) | |
tree | 6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/config.js | |
parent | Reused commonly defined method for 'apiBase' (diff) | |
download | ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.gz ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.zst ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.zip |
Removed hardcoded strings and reused constants defined in config.js (#1499)
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/config.js b/src/config.js index 189959a4d..d3749b438 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -8,8 +8,10 @@ const { app, nativeTheme } = process.type === 'renderer' ? require('@electron/re | |||
8 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks | 8 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks |
9 | 9 | ||
10 | export const LOCAL_API = 'http://localhost:3000'; | 10 | export const LOCAL_API = 'http://localhost:3000'; |
11 | export const DEV_API = 'https://dev.franzinfra.com'; | 11 | export const DEV_FRANZ_API = 'https://dev.franzinfra.com'; |
12 | export const LIVE_API = 'https://api.getferdi.com'; | 12 | |
13 | export const LIVE_FERDI_API = 'https://api.getferdi.com'; | ||
14 | export const LIVE_FRANZ_API = 'https://api.franzinfra.com'; | ||
13 | 15 | ||
14 | // URL used to submit debugger information, see https://github.com/getferdi/debugger | 16 | // URL used to submit debugger information, see https://github.com/getferdi/debugger |
15 | export const DEBUG_API = 'https://debug.getferdi.com'; | 17 | export const DEBUG_API = 'https://debug.getferdi.com'; |
@@ -19,9 +21,8 @@ export const DEV_WS_API = 'wss://dev.franzinfra.com'; | |||
19 | export const LIVE_WS_API = 'wss://api.franzinfra.com'; | 21 | export const LIVE_WS_API = 'wss://api.franzinfra.com'; |
20 | 22 | ||
21 | export const LOCAL_API_WEBSITE = 'http://localhost:3333'; | 23 | export const LOCAL_API_WEBSITE = 'http://localhost:3333'; |
22 | // export const DEV_API_WEBSITE = 'https://meetfranz.com';t | 24 | export const DEV_API_FRANZ_WEBSITE = 'https://meetfranz.com'; |
23 | export const DEV_API_WEBSITE = 'http://hash-58883791519ef6288c952316bdce7fb462283893.franzstaging.com/'; // TODO: revert me | 25 | export const LIVE_API_FERDI_WEBSITE = 'https://getferdi.com'; |
24 | export const LIVE_API_WEBSITE = 'https://getferdi.com'; | ||
25 | 26 | ||
26 | export const STATS_API = 'https://stats.franzinfra.com'; | 27 | export const STATS_API = 'https://stats.franzinfra.com'; |
27 | 28 | ||
@@ -120,7 +121,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
120 | serviceLimit: 5, | 121 | serviceLimit: 5, |
121 | 122 | ||
122 | // Ferdi specific options | 123 | // Ferdi specific options |
123 | server: LIVE_API, | 124 | server: LIVE_FERDI_API, |
124 | predefinedTodoServer: 'https://app.franztodos.com', | 125 | predefinedTodoServer: 'https://app.franztodos.com', |
125 | autohideMenuBar: false, | 126 | autohideMenuBar: false, |
126 | lockingFeatureEnabled: false, | 127 | lockingFeatureEnabled: false, |
@@ -171,7 +172,9 @@ export const DEFAULT_WINDOW_OPTIONS = { | |||
171 | y: 0, | 172 | y: 0, |
172 | }; | 173 | }; |
173 | 174 | ||
174 | export const FRANZ_SERVICE_REQUEST = 'https://github.com/getferdi/recipes/issues'; | 175 | export const GITHUB_FRANZ_URL = 'https://github.com/meetfranz'; |
176 | export const GITHUB_FERDI_URL = 'https://github.com/getferdi'; | ||
177 | export const FRANZ_SERVICE_REQUEST = `${GITHUB_FERDI_URL}/recipes/issues`; | ||
175 | export const FRANZ_TRANSLATION = 'https://crowdin.com/project/getferdi'; | 178 | export const FRANZ_TRANSLATION = 'https://crowdin.com/project/getferdi'; |
176 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; | 179 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; |
177 | 180 | ||