diff options
author | 2022-04-15 02:00:25 -0700 | |
---|---|---|
committer | 2022-04-16 21:57:57 +0530 | |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/internal-server/app | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/internal-server/app')
3 files changed, 11 insertions, 11 deletions
diff --git a/src/internal-server/app/Controllers/Http/RecipeController.js b/src/internal-server/app/Controllers/Http/RecipeController.js index 37a62e2fa..474ffadb4 100644 --- a/src/internal-server/app/Controllers/Http/RecipeController.js +++ b/src/internal-server/app/Controllers/Http/RecipeController.js | |||
@@ -4,11 +4,11 @@ const { validateAll } = use('Validator'); | |||
4 | const Env = use('Env'); | 4 | const Env = use('Env'); |
5 | 5 | ||
6 | const fetch = require('node-fetch'); | 6 | const fetch = require('node-fetch'); |
7 | const debug = require('debug')('Ferdi:internalServer:RecipeController'); | 7 | const debug = require('debug')('Ferdium:internalServer:RecipeController'); |
8 | const { LIVE_FERDI_API } = require('../../../../config'); | 8 | const { LIVE_FERDIUM_API } = require('../../../../config'); |
9 | const { API_VERSION } = require('../../../../environment-remote'); | 9 | const { API_VERSION } = require('../../../../environment-remote'); |
10 | 10 | ||
11 | const RECIPES_URL = `${LIVE_FERDI_API}/${API_VERSION}/recipes`; | 11 | const RECIPES_URL = `${LIVE_FERDIUM_API}/${API_VERSION}/recipes`; |
12 | 12 | ||
13 | class RecipeController { | 13 | class RecipeController { |
14 | // List official and custom recipes | 14 | // List official and custom recipes |
@@ -47,7 +47,7 @@ class RecipeController { | |||
47 | // Get results | 47 | // Get results |
48 | let results; | 48 | let results; |
49 | 49 | ||
50 | if (needle === 'ferdi:custom') { | 50 | if (needle === 'ferdium:custom') { |
51 | const allRecipes = await Recipe.all(); | 51 | const allRecipes = await Recipe.all(); |
52 | const dbResults = allRecipes.toJSON(); | 52 | const dbResults = allRecipes.toJSON(); |
53 | results = dbResults.map(recipe => ({ | 53 | results = dbResults.map(recipe => ({ |
diff --git a/src/internal-server/app/Controllers/Http/StaticController.js b/src/internal-server/app/Controllers/Http/StaticController.js index 99723940a..ac6f89008 100644 --- a/src/internal-server/app/Controllers/Http/StaticController.js +++ b/src/internal-server/app/Controllers/Http/StaticController.js | |||
@@ -14,7 +14,7 @@ class StaticController { | |||
14 | isSettingsWSEnabled: false, | 14 | isSettingsWSEnabled: false, |
15 | isMagicBarEnabled: true, | 15 | isMagicBarEnabled: true, |
16 | isTodosEnabled: true, | 16 | isTodosEnabled: true, |
17 | subscribeURL: 'https://getferdi.com', | 17 | subscribeURL: 'https://ferdium.org', |
18 | hasInlineCheckout: true, | 18 | hasInlineCheckout: true, |
19 | }); | 19 | }); |
20 | } | 20 | } |
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js index abfbc2470..6bd4f85a7 100644 --- a/src/internal-server/app/Controllers/Http/UserController.js +++ b/src/internal-server/app/Controllers/Http/UserController.js | |||
@@ -38,7 +38,7 @@ const DEFAULT_USER_DATA = { | |||
38 | email: '', | 38 | email: '', |
39 | emailValidated: true, | 39 | emailValidated: true, |
40 | features: {}, | 40 | features: {}, |
41 | firstname: 'Ferdi', | 41 | firstname: 'Ferdium', |
42 | id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', | 42 | id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', |
43 | isSubscriptionOwner: true, | 43 | isSubscriptionOwner: true, |
44 | lastname: 'Application', | 44 | lastname: 'Application', |
@@ -221,7 +221,7 @@ class UserController { | |||
221 | } | 221 | } |
222 | 222 | ||
223 | return response.send( | 223 | return response.send( |
224 | 'Your account has been imported. You can now use your Franz account in Ferdi.', | 224 | 'Your account has been imported. You can now use your Franz account in Ferdium.', |
225 | ); | 225 | ); |
226 | } | 226 | } |
227 | 227 | ||
@@ -237,19 +237,19 @@ class UserController { | |||
237 | const workspaces = allWorkspaces.toJSON(); | 237 | const workspaces = allWorkspaces.toJSON(); |
238 | 238 | ||
239 | const exportData = { | 239 | const exportData = { |
240 | username: 'Ferdi', | 240 | username: 'Ferdium', |
241 | mail: 'internal@getferdi.com', | 241 | mail: 'internal@ferdium.org', |
242 | services, | 242 | services, |
243 | workspaces, | 243 | workspaces, |
244 | }; | 244 | }; |
245 | 245 | ||
246 | return response | 246 | return response |
247 | .header('Content-Type', 'application/force-download') | 247 | .header('Content-Type', 'application/force-download') |
248 | .header('Content-disposition', 'attachment; filename=export.ferdi-data') | 248 | .header('Content-disposition', 'attachment; filename=export.ferdium-data') |
249 | .send(exportData); | 249 | .send(exportData); |
250 | } | 250 | } |
251 | 251 | ||
252 | async importFerdi({ request, response }) { | 252 | async importFerdium({ request, response }) { |
253 | const validation = await validateAll(request.all(), { | 253 | const validation = await validateAll(request.all(), { |
254 | file: 'required', | 254 | file: 'required', |
255 | }); | 255 | }); |