2022-03-02 08:16:31 +05:30
|
|
|
import { trackNewRegistrations } from '~/google_tag_manager';
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
import NoEmojiValidator from '~/emoji/no_emoji_validator';
|
2023-05-27 22:25:52 +05:30
|
|
|
import LengthValidator from '~/validators/length_validator';
|
2019-12-21 20:55:43 +05:30
|
|
|
import UsernameValidator from '~/pages/sessions/new/username_validator';
|
2022-08-27 11:52:29 +05:30
|
|
|
import EmailFormatValidator from '~/pages/sessions/new/email_format_validator';
|
2023-03-04 22:38:38 +05:30
|
|
|
import { initLanguageSwitcher } from '~/language_switcher';
|
2022-07-16 23:28:13 +05:30
|
|
|
import Tracking from '~/tracking';
|
2019-12-21 20:55:43 +05:30
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
new UsernameValidator(); // eslint-disable-line no-new
|
|
|
|
new LengthValidator(); // eslint-disable-line no-new
|
|
|
|
new NoEmojiValidator(); // eslint-disable-line no-new
|
2023-05-27 22:25:52 +05:30
|
|
|
new EmailFormatValidator(); // eslint-disable-line no-new
|
2022-08-27 11:52:29 +05:30
|
|
|
|
2022-03-02 08:16:31 +05:30
|
|
|
trackNewRegistrations();
|
2022-07-16 23:28:13 +05:30
|
|
|
|
|
|
|
Tracking.enableFormTracking({
|
|
|
|
forms: { allow: ['new_user'] },
|
|
|
|
});
|
2023-03-04 22:38:38 +05:30
|
|
|
|
|
|
|
initLanguageSwitcher();
|