mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
* password min length: server + client side registering * tweak text, add tests * misc * use red border for invalid inputs * fix auth form for groups * remove default firefox box shadown on invalid elements * fix css in authForm * fix margings * misc fixes to forms and buttons * fix typo
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
export const MAX_HEALTH = 50;
|
|
export const MAX_LEVEL = 100;
|
|
export const MAX_STAT_POINTS = MAX_LEVEL;
|
|
export const ATTRIBUTES = ['str', 'int', 'con', 'per'];
|
|
export const MAX_INCENTIVES = 500;
|
|
|
|
export const TAVERN_ID = '00000000-0000-4000-A000-000000000000';
|
|
export const LARGE_GROUP_COUNT_MESSAGE_CUTOFF = 5000;
|
|
export const MAX_SUMMARY_SIZE_FOR_GUILDS = 250;
|
|
export const MAX_SUMMARY_SIZE_FOR_CHALLENGES = 250;
|
|
export const MIN_SHORTNAME_SIZE_FOR_CHALLENGES = 3;
|
|
|
|
export const CHAT_FLAG_LIMIT_FOR_HIDING = 2; // hide posts that have this many flags
|
|
export const CHAT_FLAG_FROM_MOD = 5; // a flag from a moderator counts as this many flags
|
|
// a shadow-muted user's post starts with this many flags
|
|
export const CHAT_FLAG_FROM_SHADOW_MUTE = 10;
|
|
// @TODO use those constants to replace hard-coded numbers
|
|
|
|
export const SUPPORTED_SOCIAL_NETWORKS = [
|
|
{ key: 'facebook', name: 'Facebook' },
|
|
{ key: 'google', name: 'Google' },
|
|
];
|
|
|
|
export const GUILDS_PER_PAGE = 30; // number of guilds to return per page when using pagination
|
|
|
|
export const PARTY_LIMIT_MEMBERS = 30;
|
|
|
|
export const MINIMUM_PASSWORD_LENGTH = 8;
|