chore: move constants file
This commit is contained in:
16
app/assets/javascripts/constants.ts
Normal file
16
app/assets/javascripts/constants.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export const PANEL_NAME_NOTES = 'notes';
|
||||
export const PANEL_NAME_NAVIGATION = 'navigation';
|
||||
|
||||
export const EMAIL_REGEX =
|
||||
/^([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)$/;
|
||||
|
||||
export const MENU_MARGIN_FROM_APP_BORDER = 5;
|
||||
export const MAX_MENU_SIZE_MULTIPLIER = 30;
|
||||
|
||||
export const FOCUSABLE_BUT_NOT_TABBABLE = -1;
|
||||
export const NOTES_LIST_SCROLL_THRESHOLD = 200;
|
||||
|
||||
export const MILLISECONDS_IN_A_DAY = 1000 * 60 * 60 * 24;
|
||||
export const DAYS_IN_A_WEEK = 7;
|
||||
export const DAYS_IN_A_YEAR = 365;
|
||||
export const BYTES_IN_ONE_MEGABYTE = 1000000;
|
||||
Reference in New Issue
Block a user