From 210131ca184c3aa043371857c022aa1aa149efbf Mon Sep 17 00:00:00 2001 From: Aditya Mangalampalli Date: Fri, 15 Apr 2022 02:00:25 -0700 Subject: Matched casing for almost all replacements --- src/internal-server/app/Controllers/Http/RecipeController.js | 8 ++++---- src/internal-server/app/Controllers/Http/StaticController.js | 2 +- src/internal-server/app/Controllers/Http/UserController.js | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/internal-server/app/Controllers') 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'); const Env = use('Env'); const fetch = require('node-fetch'); -const debug = require('debug')('Ferdi:internalServer:RecipeController'); -const { LIVE_FERDI_API } = require('../../../../config'); +const debug = require('debug')('Ferdium:internalServer:RecipeController'); +const { LIVE_FERDIUM_API } = require('../../../../config'); const { API_VERSION } = require('../../../../environment-remote'); -const RECIPES_URL = `${LIVE_FERDI_API}/${API_VERSION}/recipes`; +const RECIPES_URL = `${LIVE_FERDIUM_API}/${API_VERSION}/recipes`; class RecipeController { // List official and custom recipes @@ -47,7 +47,7 @@ class RecipeController { // Get results let results; - if (needle === 'ferdi:custom') { + if (needle === 'ferdium:custom') { const allRecipes = await Recipe.all(); const dbResults = allRecipes.toJSON(); 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 { isSettingsWSEnabled: false, isMagicBarEnabled: true, isTodosEnabled: true, - subscribeURL: 'https://getferdi.com', + subscribeURL: 'https://ferdium.org', hasInlineCheckout: true, }); } 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 = { email: '', emailValidated: true, features: {}, - firstname: 'Ferdi', + firstname: 'Ferdium', id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', isSubscriptionOwner: true, lastname: 'Application', @@ -221,7 +221,7 @@ class UserController { } return response.send( - 'Your account has been imported. You can now use your Franz account in Ferdi.', + 'Your account has been imported. You can now use your Franz account in Ferdium.', ); } @@ -237,19 +237,19 @@ class UserController { const workspaces = allWorkspaces.toJSON(); const exportData = { - username: 'Ferdi', - mail: 'internal@getferdi.com', + username: 'Ferdium', + mail: 'internal@ferdium.org', services, workspaces, }; return response .header('Content-Type', 'application/force-download') - .header('Content-disposition', 'attachment; filename=export.ferdi-data') + .header('Content-disposition', 'attachment; filename=export.ferdium-data') .send(exportData); } - async importFerdi({ request, response }) { + async importFerdium({ request, response }) { const validation = await validateAll(request.all(), { file: 'required', }); -- cgit v1.2.3-54-g00ecf