diff options
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/serverless-helpers.ts | 4 | ||||
-rw-r--r-- | src/helpers/url-helpers.ts | 2 | ||||
-rw-r--r-- | src/helpers/validation-helpers.ts | 10 |
3 files changed, 8 insertions, 8 deletions
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) { | |||
12 | // Log into local server | 12 | // Log into local server |
13 | // Credentials are ignored by the server but the client requires them | 13 | // Credentials are ignored by the server but the client requires them |
14 | actions.user.login({ | 14 | actions.user.login({ |
15 | email: 'ferdi@localhost', | 15 | email: 'ferdium@localhost', |
16 | password: 'FERDI_', | 16 | password: 'FERDIUM_', |
17 | }); | 17 | }); |
18 | } | 18 | } |
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'; | |||
6 | 6 | ||
7 | import { ALLOWED_PROTOCOLS } from '../config'; | 7 | import { ALLOWED_PROTOCOLS } from '../config'; |
8 | 8 | ||
9 | const debug = require('debug')('Ferdi:Helpers:url'); | 9 | const debug = require('debug')('Ferdium:Helpers:url'); |
10 | 10 | ||
11 | export function isValidExternalURL(url: string | URL) { | 11 | export function isValidExternalURL(url: string | URL) { |
12 | let parsedUrl: URL; | 12 | 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 }) { | |||
29 | const isValid = field.value.trim() !== ''; | 29 | const isValid = field.value.trim() !== ''; |
30 | return [ | 30 | return [ |
31 | isValid, | 31 | isValid, |
32 | (window as any).ferdi.intl.formatMessage(messages.required, { | 32 | (window as any).ferdium.intl.formatMessage(messages.required, { |
33 | field: field.label, | 33 | field: field.label, |
34 | }), | 34 | }), |
35 | ]; | 35 | ]; |
@@ -40,7 +40,7 @@ export function email({ field }) { | |||
40 | const isValid = isEmail(value); | 40 | const isValid = isEmail(value); |
41 | return [ | 41 | return [ |
42 | isValid, | 42 | isValid, |
43 | (window as any).ferdi.intl.formatMessage(messages.email, { | 43 | (window as any).ferdium.intl.formatMessage(messages.email, { |
44 | field: field.label, | 44 | field: field.label, |
45 | }), | 45 | }), |
46 | ]; | 46 | ]; |
@@ -62,7 +62,7 @@ export function url({ field }) { | |||
62 | 62 | ||
63 | return [ | 63 | return [ |
64 | isValid, | 64 | isValid, |
65 | (window as any).ferdi.intl.formatMessage(messages.url, { | 65 | (window as any).ferdium.intl.formatMessage(messages.url, { |
66 | field: field.label, | 66 | field: field.label, |
67 | }), | 67 | }), |
68 | ]; | 68 | ]; |
@@ -76,7 +76,7 @@ export function minLength(length: number) { | |||
76 | } | 76 | } |
77 | return [ | 77 | return [ |
78 | isValid, | 78 | isValid, |
79 | (window as any).ferdi.intl.formatMessage(messages.minLength, { | 79 | (window as any).ferdium.intl.formatMessage(messages.minLength, { |
80 | field: field.label, | 80 | field: field.label, |
81 | length, | 81 | length, |
82 | }), | 82 | }), |
@@ -89,7 +89,7 @@ export function oneRequired(targets: string[]) { | |||
89 | const invalidFields = targets.filter(target => form.$(target).value === ''); | 89 | const invalidFields = targets.filter(target => form.$(target).value === ''); |
90 | return [ | 90 | return [ |
91 | targets.length !== invalidFields.length, | 91 | targets.length !== invalidFields.length, |
92 | (window as any).ferdi.intl.formatMessage(messages.required, { | 92 | (window as any).ferdium.intl.formatMessage(messages.required, { |
93 | field: field.label, | 93 | field: field.label, |
94 | }), | 94 | }), |
95 | ]; | 95 | ]; |