2023-10-25 11:43:06 +00:00
|
|
|
from collections import namedtuple
|
2023-10-13 13:26:39 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class OnboardingMessages(Enum):
|
2024-02-19 10:18:14 +00:00
|
|
|
WRONG_LOGIN_LESS_LETTERS = 'Display Names must be at least 5 character(s) long'
|
|
|
|
WRONG_LOGIN_SYMBOLS_NOT_ALLOWED = 'Invalid characters (use A-Z and 0-9, hyphens and underscores only)'
|
2023-10-13 13:26:39 +00:00
|
|
|
WRONG_PASSWORD = 'Password must be at least 10 characters long'
|
|
|
|
PASSWORDS_DONT_MATCH = "Passwords don't match"
|
|
|
|
PASSWORD_INCORRECT = 'Password incorrect'
|
2023-10-25 11:43:06 +00:00
|
|
|
|
|
|
|
|
2024-01-12 08:01:08 +00:00
|
|
|
class OnboardingScreensHeaders(Enum):
|
|
|
|
YOUR_EMOJIHASH_AND_IDENTICON_RING_SCREEN_TITLE = 'Your emojihash and identicon ring'
|
|
|
|
YOUR_PROFILE_SCREEN_TITLE = 'Your profile'
|
|
|
|
|
|
|
|
|
2023-10-25 11:43:06 +00:00
|
|
|
password_strength_elements = namedtuple('Password_Strength_Elements',
|
|
|
|
['strength_indicator', 'strength_color', 'strength_messages'])
|
|
|
|
very_weak_lower_elements = password_strength_elements('Very weak', '#ff2d55', ['• Lower case'])
|
|
|
|
very_weak_upper_elements = password_strength_elements('Very weak', '#ff2d55', ['• Upper case'])
|
|
|
|
very_weak_numbers_elements = password_strength_elements('Very weak', '#ff2d55', ['• Numbers'])
|
|
|
|
very_weak_symbols_elements = password_strength_elements('Very weak', '#ff2d55', ['• Symbols'])
|
|
|
|
weak_elements = password_strength_elements('Weak', '#fe8f59', ['• Numbers', '• Symbols'])
|
|
|
|
so_so_elements = password_strength_elements('So-so', '#ffca0f', ['• Lower case', '• Numbers', '• Symbols'])
|
|
|
|
good_elements = password_strength_elements('Good', '#9ea85d',
|
|
|
|
['• Lower case', '• Upper case', '• Numbers', '• Symbols'])
|
|
|
|
great_elements = password_strength_elements('Great', '#4ebc60',
|
|
|
|
['• Lower case', '• Upper case', '• Numbers', '• Symbols'])
|