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/helpers/serverless-helpers.ts | 4 ++-- src/helpers/url-helpers.ts | 2 +- src/helpers/validation-helpers.ts | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/serverless-helpers.ts b/src/helpers/serverless-helpers.ts index 01549e038..a5c1bbbe8 100644 --- a/src/helpers/serverless-helpers.ts +++ b/src/helpers/serverless-helpers.ts @@ -12,7 +12,7 @@ export default function useLocalServer(actions) { // Log into local server // Credentials are ignored by the server but the client requires them actions.user.login({ - email: 'ferdi@localhost', - password: 'FERDI_', + email: 'ferdium@localhost', + password: 'FERDIUM_', }); } diff --git a/src/helpers/url-helpers.ts b/src/helpers/url-helpers.ts index c1ca3ab25..bd9796ab0 100644 --- a/src/helpers/url-helpers.ts +++ b/src/helpers/url-helpers.ts @@ -6,7 +6,7 @@ import { shell } from 'electron'; import { ALLOWED_PROTOCOLS } from '../config'; -const debug = require('debug')('Ferdi:Helpers:url'); +const debug = require('debug')('Ferdium:Helpers:url'); export function isValidExternalURL(url: string | URL) { let parsedUrl: URL; diff --git a/src/helpers/validation-helpers.ts b/src/helpers/validation-helpers.ts index dfaf199ee..4e0af8b08 100644 --- a/src/helpers/validation-helpers.ts +++ b/src/helpers/validation-helpers.ts @@ -29,7 +29,7 @@ export function required({ field }) { const isValid = field.value.trim() !== ''; return [ isValid, - (window as any).ferdi.intl.formatMessage(messages.required, { + (window as any).ferdium.intl.formatMessage(messages.required, { field: field.label, }), ]; @@ -40,7 +40,7 @@ export function email({ field }) { const isValid = isEmail(value); return [ isValid, - (window as any).ferdi.intl.formatMessage(messages.email, { + (window as any).ferdium.intl.formatMessage(messages.email, { field: field.label, }), ]; @@ -62,7 +62,7 @@ export function url({ field }) { return [ isValid, - (window as any).ferdi.intl.formatMessage(messages.url, { + (window as any).ferdium.intl.formatMessage(messages.url, { field: field.label, }), ]; @@ -76,7 +76,7 @@ export function minLength(length: number) { } return [ isValid, - (window as any).ferdi.intl.formatMessage(messages.minLength, { + (window as any).ferdium.intl.formatMessage(messages.minLength, { field: field.label, length, }), @@ -89,7 +89,7 @@ export function oneRequired(targets: string[]) { const invalidFields = targets.filter(target => form.$(target).value === ''); return [ targets.length !== invalidFields.length, - (window as any).ferdi.intl.formatMessage(messages.required, { + (window as any).ferdium.intl.formatMessage(messages.required, { field: field.label, }), ]; -- cgit v1.2.3-54-g00ecf